compatibility: { authoringContract: 'explicit-freshness' } marker explicitly declares that contract. Existing artifacts retain their pinned edition. Check, publish, and run use the same admitted snapshot.
| Field | Type | Required | Contract |
|---|---|---|---|
displayName | string | No | Optional human-readable Play name. empty uses the derived identifier. |
description | string | No | Optional non-empty human-readable summary of the Play. |
compatibility.toolErrorSchemaVersioncompatibility.authoringContract | 0 | 1'explicit-freshness' | No No | Artifact-pinned tool error behavior, either 0 or 1. Declares the current explicit-freshness contract. Unmarked new source also uses the current edition. Already-pinned artifacts retain their admitted behavior. |
compatibility.toolResponseReceiptRevision | string | No | Explicit durable-receipt revision for a response transformation. bump only when serialized tool output changes. |
inline | boolean | No | Compiler hint for an inline named Play handler. |
billing.maxCreditsPerRun | number | No | Maximum Deepline credits permitted for one Play Run. |
bindings.webhook.hmac.secretEnv | string | Yes | Environment variable containing the webhook HMAC secret. |
bindings.webhook.hmac.algorithm | 'sha256' | No | Webhook signature hash algorithm. Only sha256 is supported. |
bindings.webhook.hmac.header | string | No | HTTP header containing the webhook signature. |
bindings.webhook.hmac.signaturePrefix | string | No | Optional literal before the lowercase hexadecimal HMAC. Set to an empty string for providers that send a bare digest. Defaults to sha256= when a signature header is configured. |
bindings.webhook.auth.type | 'standard-webhooks' | No | Uses the Standard Webhooks v1 symmetric signing scheme. |
bindings.webhook.auth.headerFamily | 'standard' | 'svix' | No | Header namespace expected from the webhook provider. |
bindings.webhook.auth.signingSecrets[] | string | No | Deepline Secret name used to verify Standard Webhooks. |
bindings.webhook.auth.toleranceSeconds | number | No | Accepted delivery timestamp skew in seconds, from 1 through 3600. |
bindings.cron.schedule | string | Yes | Five-field cron expression. |
bindings.cron.timezone | string | No | IANA timezone. Omitted means UTC. |
bindings.cron.input | Record<string, unknown> | No | Static JSON object passed to every run created by this cron binding. |
bindings.cron.overlap | 'allow' | 'skip' | No | What a cron occurrence does while an earlier cron run of this Play is still queued or running: “allow” (default) starts another run, “skip” records the occurrence as skipped. |
bindings.sqlListeners | SqlListener[] | No | Static provider-monitor listener declarations. |
bindings.sqlListeners[].id | string | Yes | Unique static listener identifier within one Play. |
bindings.sqlListeners[].tool | string | Yes | Modeled provider monitor tool id in provider.tool form. |
bindings.sqlListeners[].stream | string | Yes | Static output stream key exposed by the monitor tool. |
bindings.sqlListeners[].operations[] | 'INSERT' | 'UPDATE' | 'DELETE' | No | Database operation that wakes the listener. |
bindings.sqlListeners[].where.before | Record<string, SqlListenerFilterOperator> | No | Column filters evaluated against the row before mutation. |
bindings.sqlListeners[].where.after | Record<string, SqlListenerFilterOperator> | No | Column filters evaluated against the row after mutation. |
bindings.sqlListeners[].where.*.*.eqbindings.sqlListeners[].where.*.*.neq | SqlListenerFilterScalarSqlListenerFilterScalar | No No | Scalar equality condition. Scalar inequality condition. |
bindings.sqlListeners[].where.*.*.inbindings.sqlListeners[].where.*.*.notIn | readonly SqlListenerFilterScalar[]readonly SqlListenerFilterScalar[] | No No | Non-empty scalar membership condition. Non-empty scalar exclusion condition. |
bindings.sqlListeners[].where.*.*.isNullbindings.sqlListeners[].where.*.*.isNotNull | truetrue | No No | Matches null values when set to true. Matches non-null values when set to true. |
bindings.sqlListeners[].where.*.*.ilike | string | No | Case-insensitive SQL pattern condition. |
bindings.secrets[] | string | No | Environment variable made available to the Play. |
staleAfterSeconds | number | null | No | Optional. Omitted is the same as 0: a fresh call with no cross-run reuse (edition 11 and before). A matching operation receipt still recovers that same operation after resume. A positive integer accepts a completed, successful answer to the same request (workspace, credential, tool version) up to that many seconds old, otherwise the tool runs. null accepts an answer of any age. A reused answer makes no provider call and no provider charge. This applies to every tool: a positive window on a write, send or purchase skips a repeat on purpose, so use 0 for a repeat and re-read after a write with 0. Failed, empty and unfinished answers are never reused. |
deepline.tools.execute.retry | PlayToolCallRetryPolicy | No | Optional retry policy for this call, like a durable-execution activity retry policy. Omitted fields take the live Durable retry policy for the failure’s class. maximumAttempts counts every request the provider receives for the call, the first included, in-call resends and durable retries alike (1 to 65). initialIntervalMs, backoffCoefficient and maximumIntervalMs set the durable wait before each retry (1 s to 24 h. The coefficient 1 to 10). nonRetryable lists failure classes that reach the Play after the first attempt. The Play sees the error only after the retries are spent. Where the Play handles the failure itself, such as a waterfall leg that falls back, set a small maximumAttempts (for example 3) so the call never waits on a durable retry. |
deepline.tools.execute.id | string | Yes | Stable durable receipt identity within one execution scope. |
deepline.tools.execute.tool | K | Yes | Integration tool id resolved against the generated ToolMap. |
deepline.tools.execute.connection | string | No | Exact workspace authorization name or Google Workspace domain for the tool. |
deepline.tools.execute.input | K extends keyof ToolMap ? ToolMap[K]['input'] : Record<string, unknown> | Yes | Tool-specific input object. |
deepline.tools.execute.description | string | No | Human-readable purpose of the durable tool call. |
deepline.tools.execute.force | boolean | No | Explicitly bypasses a completed durable tool receipt. |
deepline.tools.execute.timeoutMs | number | No | Positive whole-number runtime transport timeout in milliseconds. |
deepline.tools.execute.receiptWaitMs | number | No | Positive whole-number durable receipt wait budget in milliseconds. |
deepline.csv.options.description | string | No | Non-empty description for a staged CSV load. |
deepline.csv.options.columns | CsvRenameMap | No | Canonical field-to-header aliases for a staged CSV. |
deepline.csv.options.rename | CsvRenameMap | No | Legacy header rename aliases for a staged CSV. |
deepline.csv.options.required | readonly string[] | No | Canonical columns required after CSV normalization. |
deepline.dataset.key | string | Yes | Stable durable identity for one dataset. |
deepline.dataset.run.description | string | No | Non-empty description for one dataset execution. |
deepline.dataset.run.key | DatasetRowKey<InputRow> | No | Stable field or fields used for durable row identity. |
deepline.dataset.run.rowIdentity | 'source_row' | 'key' | No | Edition 11 gives supported durable calls explicit optional freshness (omitted means 0) and semantic identity. CSV inputs always use source-row occurrence identity, even with rowIdentity: “key”. key-based dedup remains available for non-CSV inputs and editions 1–10. |
deepline.dataset.run.onRowError | 'isolate' | 'fail' | No | Whether row failures isolate or fail the whole dataset. |
deepline.dataset.run.mode | 'upsert' | 'net_new' | No | Whether the dataset returns all rows or only newly admitted rows. |
deepline.dataset.run.undrawnColumns | readonly string[] | No | Computed columns deliberately left out of the authored @mermaid diagram. |
deepline.dataset.run.columnOrder | readonly string[] | No | Columns the run page shows first, in this order. The rest keep their written order. |
deepline.step.id | string | Yes | Stable durable identity for one scalar checkpoint. |
deepline.step.semanticKey | string | No | Optional semantic receipt identity for a scalar checkpoint. |
deepline.step.staleAfterSeconds | number | null | No | Optional. Omitted is the same as 0: a fresh call with no cross-run reuse (edition 11 and before). A matching operation receipt still recovers that same operation after resume. A positive integer accepts a completed, successful answer to the same request (workspace, credential, tool version) up to that many seconds old, otherwise the tool runs. null accepts an answer of any age. A reused answer makes no provider call and no provider charge. This applies to every tool: a positive window on a write, send or purchase skips a repeat on purpose, so use 0 for a repeat and re-read after a write with 0. Failed, empty and unfinished answers are never reused. |
deepline.fetch.key | string | Yes | Stable durable identity for one external HTTP request. |
deepline.fetch.staleAfterSeconds | number | null | No | Optional. Omitted is the same as 0: a fresh call with no cross-run reuse (edition 11 and before). A matching operation receipt still recovers that same operation after resume. A positive integer accepts a completed, successful answer to the same request (workspace, credential, tool version) up to that many seconds old, otherwise the tool runs. null accepts an answer of any age. A reused answer makes no provider call and no provider charge. This applies to every tool: a positive window on a write, send or purchase skips a repeat on purpose, so use 0 for a repeat and re-read after a write with 0. Failed, empty and unfinished answers are never reused. |
deepline.runPlay.key | string | Yes | Stable identity for one inline child Play call. |
deepline.runPlay.playRef | string | PlayReferenceLike | Yes | Child Play name or typed Play definition handle. |
deepline.runPlay.input | Record<string, unknown> | Yes | Scalar input object submitted to the child Play. |
deepline.runPlay.options.description | string | Yes | Non-empty purpose for one inline child Play call. |
deepline.runPlay.options.execution | 'inline' | No | Child composition strategy. Only inline is supported. |
deepline.runPlay.options.timeoutMs | never | No | Unsupported legacy child-workflow timeout. |
deepline.runPlayAsync.key | string | Yes | Stable identity for one independent child Play Run. |
deepline.runPlayAsync.playRef | string | PlayReferenceLike | Yes | Independently published scalar child Play name or strongly typed definition handle. |
deepline.runPlayAsync.input | Record<string, unknown> | Yes | Scalar input object submitted to the independent child Run. |
deepline.runPlayAsync.options.description | string | Yes | Non-empty purpose for one independent child Play Run. |
runtime.timeout | string | No | Play-level sandbox deadline. The default is 30m. Use a static duration such as 90m or 2h, up to 4h. |
rateLimit.every | string | No | Start at most one run per window, such as 30s, 5m, or 1h (10s to 24h). |
runtime.size | 'standard' | 'large' | 'xlarge' | '1gb' | '4gb' | '8gb' | No | Deepline-managed sandbox size: standard or 1gb (1 GiB memory, 1 CPU), large or 4gb (4 GiB, 2 CPU), or xlarge or 8gb (8 GiB, 4 CPU). Standard is the default. Each alias selects the same resource profile and compute price as its named size. |
deepline.customerDb.query.statement | SqlQuery | Yes | One non-empty Customer DB SQL string. The deprecated SqlQuery object is accepted only without parameter values. |
deepline.customerDb.query.options.id | string | Yes | Stable operation identity for Customer DB query recovery. |
deepline.customerDb.query.options.staleAfterSeconds | number | null | No | Customer DB queries always execute with freshness 0. |
deepline.customerDb.query.options.maxRows | number | No | Positive whole-number Customer DB response row limit. |
deepline.customerDb.query.options.timeoutMs | number | No | Positive whole-number Customer DB timeout in milliseconds. |
deepline.tool.key | string | Yes | Stable receipt identity for the tool shorthand. |
deepline.tool.tool | string | Yes | Integration tool id for the tool shorthand. |
deepline.tool.input | Record<string, unknown> | Yes | Tool-specific input object for the shorthand. |
deepline.tool.options.description | string | No | Non-empty purpose for the tool shorthand. |
deepline.runSteps.options.description | string | No | Non-empty purpose for a reusable step program. |
deepline.runSteps.options.staleAfterSeconds | number | null | No | Optional. Omitted is the same as 0: a fresh call with no cross-run reuse (edition 11 and before). A matching operation receipt still recovers that same operation after resume. A positive integer accepts a completed, successful answer to the same request (workspace, credential, tool version) up to that many seconds old, otherwise the tool runs. null accepts an answer of any age. A reused answer makes no provider call and no provider charge. This applies to every tool: a positive window on a write, send or purchase skips a repeat on purpose, so use 0 for a repeat and re-read after a write with 0. Failed, empty and unfinished answers are never reused. |
deepline.sleep.ms | number | Yes | Non-negative whole-number sleep duration in milliseconds. |
deepline.fetch.url | string | Yes | HTTP request URL. Secret authentication requires HTTPS. |
deepline.fetch.init.method | string | No | HTTP method. Mutating methods require an Idempotency-Key. |
deepline.fetch.init.headers.Idempotency-Key | string | No | Required for mutating HTTP methods. The provider must support idempotency, and the same key must be retained across retries and replay. |
Durable call keys are static
Durable call keys — the deepline.fetch key, the deepline.dataset key, the deepline.step id — must be static string literals. The key names a durable receipt, so check, publish, and replay have to agree on it before the body runs. A key computed at runtime cannot be resolved at check time and is rejected. This is an architectural constraint, not a style rule. A play cannot loop over a computed key, so it cannot page a large table with a helper like page(pageNumber). Unrolling one literal key per page is not a design at any real page count. Push the aggregation server-side and call it once: a SQL function, a view, or a provider endpoint that returns the whole result. Keep unrolled literal keys only for a handful of genuinely distinct calls. To fan out over rows, use deepline.dataset with a static key — the per-row receipt identity comes from the row, not from the key.Durable HTTP batches
A static deepline.fetch key inside a loop is a warning because every iteration must still have distinct method, URL, body, or safe headers. One durable receipt must never stand in for every request. Keep the static fetch label. For a mutating batch, make the body distinct and use a replay-stable external Idempotency-Key such as${deepline.run.rootId}:signals:${batchIndex}.
deepline.run.id
deepline.run.rootId is the submitted run: it is stable while Deepline retries or resumes that run, and a separately submitted run receives a new one. deepline.run.id names the Play invocation; it equals rootId in a submitted run, but inside an inline deepline.runPlay child it is the child’s composition id, which repeats in every parent run that makes the same call with the same input.
Build external idempotency keys from deepline.run.rootId plus whatever names the operation, such as a batch index or record id. It is correct in a submitted run and inside an inline child.
Runtime capabilities
| Capability | Surface | Contract |
|---|---|---|
| Views | deepline.views.list | Lists this Play’s views in its workspace, most recently changed first. Each has url, which opens the view at its latest run, and runUrl, which opens it at the run that asked. send runUrl from the run so the link shows its result. access says who can open them. The read is fresh on every call and is not a durable receipt. |
| Durable external I/O | deepline.fetch, deepline.tools.execute, deepline.step, deepline.runPlay | Use a deepline.* primitive for external work. Each primitive owns durable receipt identity and replay. raw I/O in play code does not. |
| Web Crypto | crypto.subtle | WebCrypto is available for standards-based signing, verification, encryption, and key import. Keep private material in deepline.secrets. docs-examples/sdk-v2/github-app-jwt.play.ts is an edition-10 compatibility example. edition 11 allows transient fetches only for read-only methods, so do not copy its credential-returning POST into new source. |
| Workspace secrets | deepline.secrets.get, .bearer, .header | Declare the secret at the Play boundary, read it only at runtime, and never return or log it. Secret-bearing HTTP requests require HTTPS. |
| Freshness | staleAfterSeconds on durable calls | New source in edition 11 may choose freshness. omitting it means 0. Zero executes a new logical call, a positive integer is a maximum result age in seconds, and null allows indefinite reuse. A completed operation receipt separately recovers the same intended operation after resume. |