deepline 0.3.88 → 0.3.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/install-commands.json +29 -0
- package/dist/bundling-sources/sdk/src/client.ts +652 -39
- package/dist/bundling-sources/sdk/src/config.ts +77 -0
- package/dist/bundling-sources/sdk/src/http.ts +76 -30
- package/dist/bundling-sources/sdk/src/index.ts +10 -0
- package/dist/bundling-sources/sdk/src/monitor-fleet-contract.ts +1 -1
- package/dist/bundling-sources/sdk/src/pagination.ts +25 -0
- package/dist/bundling-sources/sdk/src/play.ts +15 -1
- package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +3 -3
- package/dist/bundling-sources/sdk/src/release.ts +16 -9
- package/dist/bundling-sources/sdk/src/types.ts +106 -4
- package/dist/bundling-sources/shared_libs/integration-contracts/AGENTS.md +9 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/README.md +3 -0
- package/dist/bundling-sources/shared_libs/integration-contracts/index.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/analytics-install-guides.ts +77 -0
- package/dist/bundling-sources/shared_libs/monitors/analytics-public.ts +10 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/charges.ts +125 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/policy-builders.ts +686 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/pricing.ts +54 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +72 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/session.ts +45 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +454 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +260 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +215 -0
- package/dist/bundling-sources/shared_libs/monitors/callback-security.ts +333 -0
- package/dist/bundling-sources/shared_libs/monitors/cursor-page.ts +42 -0
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +16 -0
- package/dist/bundling-sources/shared_libs/monitors/framework-managed-payload-fields.ts +71 -0
- package/dist/bundling-sources/shared_libs/monitors/generated/provider-monitor-callback-admission-targets.ts +16 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +270 -0
- package/dist/bundling-sources/shared_libs/monitors/inbound-publish-key.ts +39 -0
- package/dist/bundling-sources/shared_libs/monitors/inbound-queue.ts +82 -0
- package/dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/lifecycle-notifications.ts +471 -0
- package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/package.json +36 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-callback-verification.ts +1125 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +305 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +964 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-consumer-health.ts +56 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +131 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +535 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-legacy-aliases.ts +16 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-priority-execution.ts +56 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +28 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-runtime-read-eligibility.ts +38 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +122 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-status.ts +10 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +112 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-webhook-monitor-runtime.ts +300 -0
- package/dist/bundling-sources/shared_libs/monitors/quickstart-prompts.ts +22 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +245 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-message.ts +38 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-ack-probe.ts +94 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +60 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue.ts +60 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-install-validation.ts +93 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-ip2company.ts +332 -0
- package/dist/bundling-sources/shared_libs/monitors/snitcher-radar.ts +221 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +105 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-guidance.ts +73 -0
- package/dist/bundling-sources/shared_libs/monitors/tracking-provider-integrations.ts +81 -0
- package/dist/bundling-sources/shared_libs/monitors/tsconfig.json +10 -0
- package/dist/bundling-sources/shared_libs/observability/build-context.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/log-metadata.ts +160 -0
- package/dist/bundling-sources/shared_libs/observability/request-context.ts +68 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +654 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +35 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/neon-constants.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +272 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +6 -11
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +135 -12
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +66 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-play-invocation.ts +77 -0
- package/dist/bundling-sources/shared_libs/play-runtime/bounceban-batching.ts +137 -0
- package/dist/bundling-sources/shared_libs/play-runtime/checkpoint-boundaries.ts +70 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +1159 -166
- package/dist/bundling-sources/shared_libs/play-runtime/coordinator-headers.ts +1 -32
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +103 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-payload-contract.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-janitor.ts +103 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +725 -0
- package/dist/bundling-sources/shared_libs/play-runtime/default-batch-strategies.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-cache.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +442 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-protocol.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/contracts.ts +66 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/job.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/ports.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/postgres-store.ts +170 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +1322 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-step-ids.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/lane-retirement-gate.ts +189 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-source-policy.ts +112 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/perf-trace.ts +127 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-artifact-runtime-contract.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/contracts.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/index.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/job.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/ports.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/admission/postgres-adapter.ts +54 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/contracts.ts +114 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/engine-suspension.ts +108 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/index.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/job.ts +97 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/ports.ts +104 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/postgres-fence-adapter.ts +263 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/attempts/worker-terminal-projection.ts +64 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/contracts.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/index.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/job.ts +65 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/ports.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/contracts.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/index.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +142 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/ports.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/postgres-adapter.ts +102 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/contracts.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/index.ts +16 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/job.ts +78 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/ports.ts +54 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/postgres-adapter.ts +71 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-status.ts +5 -8
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +23 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +168 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +90 -13
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +6 -12
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-start-admission.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/bundle.ts +0 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +14 -43
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +67 -213
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +201 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-contract.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-env.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +67 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-release-environment.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-contract.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +38 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +108 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +37 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +88 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-deploy-task.ts +124 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-play-run-task.ts +68 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +193 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-queue-lifecycle.ts +269 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-queue-suffix.ts +73 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +6642 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +897 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-metrics.ts +120 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-worker-required-env.ts +76 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +476 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-heavy-request-admission.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +147 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/index.ts +27 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/lazy.ts +50 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-budget-state.ts +260 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +1416 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +1255 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +942 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +14636 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +888 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +355 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-terminal-transition.ts +46 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runner-push.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-api-origin.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-receipt-gateway-health.ts +64 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +835 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +1218 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +207 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-scheduler-schema.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/scheduler-capacity.ts +123 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/scheduler-launch-read-observability.ts +78 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/submit-admission.ts +169 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/terminal-contract.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/worker-queue-metrics.ts +34 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/worker-resource-metrics.ts +249 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sheet-attempt-sql.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/step-progress.ts +296 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/native-batch.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/tool-call/runtime-step-receipts-adapter.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +60 -15
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execution-outcome.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/vercel-protection.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-storage-contract.ts +165 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipts.ts +15 -23
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +169 -0
- package/dist/bundling-sources/shared_libs/play-runtime/zerobounce-batching.ts +122 -0
- package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +8 -3
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +454 -17
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +19 -4
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +8 -14
- package/dist/bundling-sources/shared_libs/plays/core.ts +11 -6
- package/dist/bundling-sources/shared_libs/plays/deployment-status.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +16 -11
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/email-status.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/play-grep-search.ts +39 -0
- package/dist/bundling-sources/shared_libs/plays/resolve-static-pipeline.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/share/copy.ts +271 -0
- package/dist/bundling-sources/shared_libs/plays/share/metrics.ts +140 -0
- package/dist/bundling-sources/shared_libs/plays/share/public-read-model.ts +86 -0
- package/dist/bundling-sources/shared_libs/plays/share/seo-quality.ts +181 -0
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +658 -0
- package/dist/bundling-sources/shared_libs/plays/share/types.ts +197 -0
- package/dist/bundling-sources/shared_libs/plays/slack-hitl-timeout-error.ts +37 -0
- package/dist/bundling-sources/shared_libs/plays/slug.ts +115 -0
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +50 -15
- package/dist/bundling-sources/shared_libs/plays/tool-category-descriptions.ts +2 -2
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +877 -0
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +456 -0
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +566 -0
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +28 -0
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +60 -0
- package/dist/bundling-sources/shared_libs/product-notifications/email.ts +246 -0
- package/dist/bundling-sources/shared_libs/product-notifications/evaluation.ts +280 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +433 -0
- package/dist/bundling-sources/shared_libs/product-notifications/legacy-slack.ts +80 -0
- package/dist/bundling-sources/shared_libs/product-notifications/overflow.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/rolling-limit.ts +24 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +624 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +140 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +75 -0
- package/dist/bundling-sources/shared_libs/product-notifications/workspace.ts +38 -0
- package/dist/bundling-sources/shared_libs/runtime-env.ts +12 -0
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +42 -0
- package/dist/bundling-sources/shared_libs/security/header-safe-env.ts +35 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +50 -0
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +267 -0
- package/dist/bundling-sources/shared_libs/security/slack-sanitize.ts +133 -0
- package/dist/cli/getting-started.d.mts +52 -0
- package/dist/cli/getting-started.d.ts +52 -0
- package/dist/cli/getting-started.js +65 -0
- package/dist/cli/getting-started.mjs +36 -0
- package/dist/cli/index.d.mts +9 -0
- package/dist/cli/index.d.ts +9 -0
- package/dist/cli/index.js +1611 -453
- package/dist/cli/index.mjs +1596 -447
- package/dist/{compiler-manifest-Dbov16F7.d.mts → compiler-manifest-BaJfE-5H.d.mts} +136 -10
- package/dist/{compiler-manifest-Dbov16F7.d.ts → compiler-manifest-BaJfE-5H.d.ts} +136 -10
- package/dist/index.d.mts +910 -155
- package/dist/index.d.ts +910 -155
- package/dist/index.js +550 -64
- package/dist/index.mjs +550 -64
- package/dist/install-integrity.json +193 -4
- package/dist/monitor-fleet-contract.d.mts +138 -0
- package/dist/monitor-fleet-contract.d.ts +138 -0
- package/dist/monitor-fleet-contract.js +404 -0
- package/dist/monitor-fleet-contract.mjs +367 -0
- package/dist/plays/bundle-play-file.d.mts +8 -3
- package/dist/plays/bundle-play-file.d.ts +8 -3
- package/dist/plays/bundle-play-file.mjs +100 -20
- package/dist/release.d.mts +255 -0
- package/dist/release.d.ts +255 -0
- package/dist/release.js +215 -0
- package/dist/release.mjs +188 -0
- package/package.json +23 -4
- /package/dist/bundling-sources/shared_libs/{integrations/bettercontact-execution-policy.ts → integration-contracts/bettercontact/execution-policy.ts} +0 -0
- /package/dist/bundling-sources/shared_libs/{integrations/theirstack-execution-policy.ts → integration-contracts/theirstack/execution-policy.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,130 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { P as PlayCompilerManifest, A as AsyncPlayRunRef$1, a as PlayAuthoringColumnMap, b as PlayAuthoringColumnResolver, c as PlayAuthoringRuntimeContext, d as PlayAuthoringConditionalStepResolver, e as PlayAuthoringCsvInput, f as PlayAuthoringCsvOptions, g as PlayAuthoringDatasetBuilder, h as PlayAuthoringDatasetColumnDefinition, i as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, j as PlayAuthoringReferenceLike, k as PlayReturnObject$1, l as PlayAuthoringDefineConfig, m as PlayAuthoringDefinedPlay, n as PlayAuthoringFetchOptions, o as PlayAuthoringFileInput, p as PlayAuthoringAsyncCallOptions, q as PlayAuthoringBindings, r as PlayAuthoringCallExecution, s as PlayAuthoringCallOptions, t as PlayAuthoringFetchResponse, u as PlayAuthoringInputContract, v as PlayRunId$1, w as PlayAuthoringStepProgramStep, x as PlayAuthoringRuntimeStepOptions, y as PlaySqlListenerDeclaration, z as PlaySqlListenerEvent, B as PlaySqlListenerOperation, C as PlaySqlQuery, D as PlayAuthoringStepOptions, E as PlayAuthoringStepProgram, F as PlayAuthoringStepProgramResolver, G as PlayAuthoringStepResolver, H as PlayToolExecutionRequest, I as PlayAuthoringStepProgramOptions, J as DeeplineError, K as ToolExecutionError, L as ToolExecutionErrorOptions } from './compiler-manifest-BaJfE-5H.js';
|
|
3
|
+
export { M as CtxFetchHttpError, N as DEEPLINE_EXTRACTOR_TARGETS, O as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Q as DeeplineEmailStatusGetterValue, R as DeeplineExtractorTarget, S as DeeplineGetterValue, U as DeeplineGetterValueMap, V as JOB_CHANGE_STATUS_VALUES, W as JobChangeStatus, X as PHONE_STATUS_VALUES, Y as PhoneStatus, Z as PlayDataset, _ as PlayDatasetInput, $ as PreviousCell, a0 as ProviderTransientError, a1 as ProviderTransientErrorCategory, a2 as ProviderUnavailableError, a3 as ProviderUnavailableReason, a4 as ToolExecutionErrorCategory, a5 as ToolExecutionErrorOrigin, a6 as ToolExecutionFailureV1, a7 as ToolExecutionNetworkKind, a8 as ToolExecutionNetworkScope, a9 as ToolExecutionPublicDetails, aa as getProviderUnavailableReason, ab as isDeeplineExtractorTarget, ac as isProviderUnavailable, ad as isProviderWaterfallUnavailableError } from './compiler-manifest-BaJfE-5H.js';
|
|
4
|
+
import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
5
|
+
export { AdmittedMonitorFleetAuthoringContract, MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG, MONITOR_FLEET_AUTHORING_CONTRACT_EDITION, MONITOR_FLEET_DOCUMENTATION, MONITOR_FLEET_FRONTIER_MAX_ROWS, MONITOR_FLEET_MAX_MEMBERS, MonitorFleetAuthoringContractEdition, MonitorFleetAuthoringContractResult, MonitorFleetColumn, MonitorFleetContractIssue, MonitorFleetExpression, MonitorFleetTemplate, admitMonitorFleetAuthoringContract, defineMonitorFleet, fleetColumn, fleetKey, validateMonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
4
6
|
import '@sinclair/typebox';
|
|
5
7
|
|
|
8
|
+
type ProductNotificationFactValue = string | number | boolean;
|
|
9
|
+
type ProductNotificationFacts = Record<string, ProductNotificationFactValue>;
|
|
10
|
+
type ProductNotificationDestinationSettings = {
|
|
11
|
+
kind: 'slack';
|
|
12
|
+
targetKind: 'channel' | 'member';
|
|
13
|
+
targetId: string;
|
|
14
|
+
targetName: string;
|
|
15
|
+
oauthConnectionId: string;
|
|
16
|
+
} | {
|
|
17
|
+
kind: 'email_addresses';
|
|
18
|
+
to: string[];
|
|
19
|
+
cc?: string[];
|
|
20
|
+
bcc?: string[];
|
|
21
|
+
} | {
|
|
22
|
+
kind: 'email_roles';
|
|
23
|
+
roles: string[];
|
|
24
|
+
};
|
|
25
|
+
type ProductNotificationTrigger = {
|
|
26
|
+
kind: 'each_match';
|
|
27
|
+
} | {
|
|
28
|
+
kind: 'state_transition';
|
|
29
|
+
targetState: string;
|
|
30
|
+
reasonCode?: string;
|
|
31
|
+
} | {
|
|
32
|
+
kind: 'threshold_crossing';
|
|
33
|
+
direction: 'above' | 'below' | 'at_or_above';
|
|
34
|
+
threshold: number;
|
|
35
|
+
unit?: string;
|
|
36
|
+
} | {
|
|
37
|
+
kind: 'consecutive_outcomes';
|
|
38
|
+
count: number;
|
|
39
|
+
outcome: string;
|
|
40
|
+
maxLookback: number;
|
|
41
|
+
};
|
|
42
|
+
type ProductNotificationDeliveryTiming = {
|
|
43
|
+
mode: 'immediate';
|
|
44
|
+
} | {
|
|
45
|
+
mode: 'immediate_first' | 'digest_only' | 'rolling_limit';
|
|
46
|
+
windowMs: number;
|
|
47
|
+
};
|
|
48
|
+
type ProductNotificationRepeatMode = 'on_enter' | 'every_match';
|
|
49
|
+
type ProductNotificationDefaultPolicy = {
|
|
50
|
+
version: number;
|
|
51
|
+
groups: ProductNotificationDefaultGroup[];
|
|
52
|
+
destinations: ProductNotificationDefaultDestination[];
|
|
53
|
+
rules: ProductNotificationDefaultRule[];
|
|
54
|
+
};
|
|
55
|
+
type ProductNotificationDefaultGroup = {
|
|
56
|
+
groupKey: string;
|
|
57
|
+
name: string;
|
|
58
|
+
enabled: boolean;
|
|
59
|
+
/** Omitted only by stored compatibility rows; effective groups are normalized. */
|
|
60
|
+
deliveryTiming?: ProductNotificationDeliveryTiming;
|
|
61
|
+
};
|
|
62
|
+
type ProductNotificationDefaultDestination = {
|
|
63
|
+
destinationKey: string;
|
|
64
|
+
groupKey: string;
|
|
65
|
+
name: string;
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
settings: ProductNotificationDestinationSettings;
|
|
68
|
+
};
|
|
69
|
+
type ProductNotificationDefaultRule = {
|
|
70
|
+
ruleKey: string;
|
|
71
|
+
groupKey: string;
|
|
72
|
+
enabled: boolean;
|
|
73
|
+
notificationType: string;
|
|
74
|
+
eventName: string;
|
|
75
|
+
eventFilter: ProductNotificationFacts;
|
|
76
|
+
trigger: ProductNotificationTrigger;
|
|
77
|
+
/** Omitted only by stored compatibility rows; effective rules are normalized. */
|
|
78
|
+
repeatMode?: ProductNotificationRepeatMode;
|
|
79
|
+
/** Omitted only by stored compatibility rows; effective rules are normalized. */
|
|
80
|
+
conditionGeneration?: number;
|
|
81
|
+
};
|
|
82
|
+
type ProductNotificationConfigMode = 'custom' | 'replace_default' | 'disable_default';
|
|
83
|
+
/** The provider-neutral state edited by UI and CLI clients for one group. */
|
|
84
|
+
type ProductNotificationGroupDraft = {
|
|
85
|
+
group: EffectiveProductNotificationGroup;
|
|
86
|
+
destinations: EffectiveProductNotificationDestination[];
|
|
87
|
+
rules: EffectiveProductNotificationRule[];
|
|
88
|
+
};
|
|
89
|
+
/** Public configuration intent. Convex alone derives sparse override writes. */
|
|
90
|
+
type ProductNotificationConfigurationChange = {
|
|
91
|
+
kind: 'save_group';
|
|
92
|
+
draft: ProductNotificationGroupDraft;
|
|
93
|
+
} | {
|
|
94
|
+
kind: 'delete_group';
|
|
95
|
+
groupKey: string;
|
|
96
|
+
};
|
|
97
|
+
type EffectiveProductNotificationGroup = Omit<ProductNotificationDefaultGroup, 'deliveryTiming'> & {
|
|
98
|
+
deliveryTiming: ProductNotificationDeliveryTiming;
|
|
99
|
+
source: 'default' | 'workspace';
|
|
100
|
+
configMode: 'default' | ProductNotificationConfigMode;
|
|
101
|
+
defaultKey?: string;
|
|
102
|
+
version: number;
|
|
103
|
+
};
|
|
104
|
+
type EffectiveProductNotificationDestination = ProductNotificationDefaultDestination & {
|
|
105
|
+
source: 'default' | 'workspace';
|
|
106
|
+
configMode: 'default' | ProductNotificationConfigMode;
|
|
107
|
+
defaultKey?: string;
|
|
108
|
+
version: number;
|
|
109
|
+
status: string;
|
|
110
|
+
};
|
|
111
|
+
type EffectiveProductNotificationRule = Omit<ProductNotificationDefaultRule, 'repeatMode' | 'conditionGeneration'> & {
|
|
112
|
+
repeatMode: ProductNotificationRepeatMode;
|
|
113
|
+
conditionGeneration: number;
|
|
114
|
+
source: 'default' | 'workspace';
|
|
115
|
+
configMode: 'default' | ProductNotificationConfigMode;
|
|
116
|
+
defaultKey?: string;
|
|
117
|
+
version: number;
|
|
118
|
+
};
|
|
119
|
+
type EffectiveProductNotificationConfiguration = {
|
|
120
|
+
/** Exact policy used to materialize this effective configuration. */
|
|
121
|
+
defaultPolicy: ProductNotificationDefaultPolicy | null;
|
|
122
|
+
workspaceVersion: number;
|
|
123
|
+
groups: EffectiveProductNotificationGroup[];
|
|
124
|
+
destinations: EffectiveProductNotificationDestination[];
|
|
125
|
+
rules: EffectiveProductNotificationRule[];
|
|
126
|
+
};
|
|
127
|
+
|
|
6
128
|
declare const FIXTURE_BEHAVIOR_VERSION: 1;
|
|
7
129
|
declare const FIXTURE_BEHAVIOR_RESPONSE_VERSION: 2;
|
|
8
130
|
declare const FIXTURE_BEHAVIOR_REPLAY_VERSION: 3;
|
|
@@ -135,7 +257,11 @@ type PlayActivityState = {
|
|
|
135
257
|
code?: string;
|
|
136
258
|
};
|
|
137
259
|
type PlayActivityObservation = {
|
|
138
|
-
|
|
260
|
+
/**
|
|
261
|
+
* Retired marker. Producers stopped writing it; envelopes still in flight
|
|
262
|
+
* from an older producer carry `1`, so readers tolerate both shapes.
|
|
263
|
+
*/
|
|
264
|
+
schemaVersion?: 1;
|
|
139
265
|
/** Stable within one run, for example `tool:discover_ctos` or `dataset:leads`. */
|
|
140
266
|
activityId: string;
|
|
141
267
|
/** Optional owning play step. */
|
|
@@ -181,6 +307,503 @@ declare function formatPlayBootstrapFinderKinds(): string;
|
|
|
181
307
|
declare function formatPlayBootstrapTemplates(): string;
|
|
182
308
|
declare function formatPlayBootstrapFinderKindsForSentence(): string;
|
|
183
309
|
|
|
310
|
+
/** Type-owned content, independent of email markup and persisted audit strings. */
|
|
311
|
+
type NotificationText = string | readonly (string | {
|
|
312
|
+
strong: string;
|
|
313
|
+
} | {
|
|
314
|
+
workspace: true;
|
|
315
|
+
})[];
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The sections the configuration surface skims by. Declared here so UI, API,
|
|
319
|
+
* and CLI order and label them identically.
|
|
320
|
+
*/
|
|
321
|
+
declare const PRODUCT_NOTIFICATION_CATEGORIES: readonly [{
|
|
322
|
+
readonly id: "credits";
|
|
323
|
+
readonly name: "Credits and usage";
|
|
324
|
+
}, {
|
|
325
|
+
readonly id: "plays";
|
|
326
|
+
readonly name: "Play runs";
|
|
327
|
+
}];
|
|
328
|
+
type ProductNotificationCategoryId = (typeof PRODUCT_NOTIFICATION_CATEGORIES)[number]['id'];
|
|
329
|
+
type ProductNotificationTypeCatalogMetadata = {
|
|
330
|
+
name: string;
|
|
331
|
+
description: string;
|
|
332
|
+
category: ProductNotificationCategoryId;
|
|
333
|
+
allowMultiple: boolean;
|
|
334
|
+
editor: {
|
|
335
|
+
kind: 'threshold';
|
|
336
|
+
label: string;
|
|
337
|
+
defaultThreshold: number;
|
|
338
|
+
minimum: number;
|
|
339
|
+
maximum?: number;
|
|
340
|
+
suffix?: string;
|
|
341
|
+
/**
|
|
342
|
+
* When set, editors show and accept `remainingOf - threshold` (for
|
|
343
|
+
* example percent remaining) while the stored trigger stays in the
|
|
344
|
+
* runtime's "used" terms. Bounds and defaults are stored values.
|
|
345
|
+
*/
|
|
346
|
+
remainingOf?: number;
|
|
347
|
+
} | {
|
|
348
|
+
kind: 'play_failure';
|
|
349
|
+
defaultFailureCount: number;
|
|
350
|
+
} | {
|
|
351
|
+
kind: 'play_scope';
|
|
352
|
+
} | {
|
|
353
|
+
kind: 'none';
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
type ProductNotificationPresentation = {
|
|
357
|
+
title: string;
|
|
358
|
+
summary: NotificationText;
|
|
359
|
+
details: NotificationText[];
|
|
360
|
+
targetUrl: string;
|
|
361
|
+
subjectKind: string;
|
|
362
|
+
subjectId: string;
|
|
363
|
+
};
|
|
364
|
+
type ProductNotificationRuleInput = {
|
|
365
|
+
ruleKey: string;
|
|
366
|
+
groupKey: string;
|
|
367
|
+
notificationType: ConfigurableProductNotificationType;
|
|
368
|
+
threshold?: number;
|
|
369
|
+
playFailure?: ProductNotificationPlayFailureSettings;
|
|
370
|
+
};
|
|
371
|
+
type ProductNotificationRuleBase = Omit<ProductNotificationDefaultRule, 'trigger'>;
|
|
372
|
+
declare function validateInsufficientCreditDisable(trigger: ProductNotificationTrigger): void;
|
|
373
|
+
declare function validateFailedOutcome(trigger: ProductNotificationTrigger): void;
|
|
374
|
+
/** One canonical registry owns every notification type's runtime and UI metadata. */
|
|
375
|
+
declare const PRODUCT_NOTIFICATION_TYPE_REGISTRY: readonly [{
|
|
376
|
+
readonly id: "monitor.disabled.insufficient_credits";
|
|
377
|
+
readonly eventName: "monitor.lifecycle.changed";
|
|
378
|
+
readonly requiredFilter: {};
|
|
379
|
+
readonly allowedTriggers: ["state_transition"];
|
|
380
|
+
readonly catalog: {
|
|
381
|
+
readonly name: "Monitor disabled due to insufficient credits";
|
|
382
|
+
readonly category: "credits";
|
|
383
|
+
readonly description: "Notify when Deepline disables a Monitor because the workspace ran out of credits.";
|
|
384
|
+
readonly allowMultiple: false;
|
|
385
|
+
readonly editor: {
|
|
386
|
+
readonly kind: "none";
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
readonly rule: {
|
|
390
|
+
readonly conditionSubject: "workspace";
|
|
391
|
+
readonly rearm: {
|
|
392
|
+
readonly eventName: "credits.balance.changed";
|
|
393
|
+
readonly matches: (payload: ProductNotificationFacts) => boolean;
|
|
394
|
+
};
|
|
395
|
+
readonly create: (_input: ProductNotificationRuleInput, base: ProductNotificationRuleBase) => {
|
|
396
|
+
trigger: {
|
|
397
|
+
kind: "state_transition";
|
|
398
|
+
targetState: string;
|
|
399
|
+
reasonCode: string;
|
|
400
|
+
};
|
|
401
|
+
groupKey: string;
|
|
402
|
+
enabled: boolean;
|
|
403
|
+
repeatMode?: ProductNotificationRepeatMode | undefined;
|
|
404
|
+
conditionGeneration?: number | undefined;
|
|
405
|
+
ruleKey: string;
|
|
406
|
+
notificationType: string;
|
|
407
|
+
eventName: string;
|
|
408
|
+
eventFilter: ProductNotificationFacts;
|
|
409
|
+
};
|
|
410
|
+
readonly validate: typeof validateInsufficientCreditDisable;
|
|
411
|
+
readonly present: ({ payload }: {
|
|
412
|
+
payload: ProductNotificationFacts;
|
|
413
|
+
trigger: ProductNotificationTrigger;
|
|
414
|
+
}) => {
|
|
415
|
+
title: string;
|
|
416
|
+
summary: (string | {
|
|
417
|
+
workspace: true;
|
|
418
|
+
})[];
|
|
419
|
+
details: never[];
|
|
420
|
+
targetUrl: string;
|
|
421
|
+
subjectKind: string;
|
|
422
|
+
subjectId: string;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
}, {
|
|
426
|
+
readonly id: "play.disabled.insufficient_credits";
|
|
427
|
+
readonly eventName: "play.lifecycle.changed";
|
|
428
|
+
readonly requiredFilter: {};
|
|
429
|
+
readonly allowedTriggers: ["state_transition"];
|
|
430
|
+
readonly catalog: {
|
|
431
|
+
readonly name: "Play temporarily disabled due to insufficient credits";
|
|
432
|
+
readonly category: "credits";
|
|
433
|
+
readonly description: "Notify when Deepline temporarily disables a scheduled Play because the workspace ran out of credits. Future runs resume automatically once the workspace has enough credits.";
|
|
434
|
+
readonly allowMultiple: false;
|
|
435
|
+
readonly editor: {
|
|
436
|
+
readonly kind: "none";
|
|
437
|
+
};
|
|
438
|
+
};
|
|
439
|
+
readonly rule: {
|
|
440
|
+
readonly default: {
|
|
441
|
+
readonly ruleKey: "default.play_disabled";
|
|
442
|
+
readonly groupKey: "default";
|
|
443
|
+
};
|
|
444
|
+
readonly conditionSubject: "workspace";
|
|
445
|
+
readonly rearm: {
|
|
446
|
+
readonly eventName: "credits.balance.changed";
|
|
447
|
+
readonly matches: (payload: ProductNotificationFacts) => boolean;
|
|
448
|
+
};
|
|
449
|
+
readonly create: (_input: ProductNotificationRuleInput, base: ProductNotificationRuleBase) => {
|
|
450
|
+
trigger: {
|
|
451
|
+
kind: "state_transition";
|
|
452
|
+
targetState: string;
|
|
453
|
+
reasonCode: string;
|
|
454
|
+
};
|
|
455
|
+
groupKey: string;
|
|
456
|
+
enabled: boolean;
|
|
457
|
+
repeatMode?: ProductNotificationRepeatMode | undefined;
|
|
458
|
+
conditionGeneration?: number | undefined;
|
|
459
|
+
ruleKey: string;
|
|
460
|
+
notificationType: string;
|
|
461
|
+
eventName: string;
|
|
462
|
+
eventFilter: ProductNotificationFacts;
|
|
463
|
+
};
|
|
464
|
+
readonly validate: typeof validateInsufficientCreditDisable;
|
|
465
|
+
readonly present: ({ payload }: {
|
|
466
|
+
payload: ProductNotificationFacts;
|
|
467
|
+
trigger: ProductNotificationTrigger;
|
|
468
|
+
}) => {
|
|
469
|
+
title: string;
|
|
470
|
+
summary: (string | {
|
|
471
|
+
workspace: true;
|
|
472
|
+
})[];
|
|
473
|
+
details: string[];
|
|
474
|
+
targetUrl: string;
|
|
475
|
+
subjectKind: string;
|
|
476
|
+
subjectId: string;
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
}, {
|
|
480
|
+
readonly id: "usage.monthly.limit_reached";
|
|
481
|
+
readonly eventName: "credits.usage.recorded";
|
|
482
|
+
readonly requiredFilter: {};
|
|
483
|
+
readonly allowedTriggers: ["threshold_crossing"];
|
|
484
|
+
readonly catalog: {
|
|
485
|
+
readonly name: "Usage limit reached";
|
|
486
|
+
readonly category: "credits";
|
|
487
|
+
readonly description: "Notify when monthly usage reaches the workspace limit.";
|
|
488
|
+
readonly allowMultiple: false;
|
|
489
|
+
readonly editor: {
|
|
490
|
+
readonly kind: "none";
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
readonly rule: {
|
|
494
|
+
readonly default: {
|
|
495
|
+
readonly ruleKey: "default.usage_limit_reached";
|
|
496
|
+
readonly groupKey: "default";
|
|
497
|
+
};
|
|
498
|
+
readonly conditionSubject: "workspace";
|
|
499
|
+
readonly create: (_input: ProductNotificationRuleInput, base: ProductNotificationRuleBase) => {
|
|
500
|
+
trigger: {
|
|
501
|
+
kind: "threshold_crossing";
|
|
502
|
+
direction: "at_or_above";
|
|
503
|
+
threshold: number;
|
|
504
|
+
unit: string;
|
|
505
|
+
};
|
|
506
|
+
groupKey: string;
|
|
507
|
+
enabled: boolean;
|
|
508
|
+
repeatMode?: ProductNotificationRepeatMode | undefined;
|
|
509
|
+
conditionGeneration?: number | undefined;
|
|
510
|
+
ruleKey: string;
|
|
511
|
+
notificationType: string;
|
|
512
|
+
eventName: string;
|
|
513
|
+
eventFilter: ProductNotificationFacts;
|
|
514
|
+
};
|
|
515
|
+
readonly validate: (trigger: ProductNotificationTrigger) => void;
|
|
516
|
+
readonly present: ({ payload }: {
|
|
517
|
+
payload: ProductNotificationFacts;
|
|
518
|
+
trigger: ProductNotificationTrigger;
|
|
519
|
+
}) => {
|
|
520
|
+
title: string;
|
|
521
|
+
summary: (string | {
|
|
522
|
+
workspace: true;
|
|
523
|
+
})[];
|
|
524
|
+
details: (string | {
|
|
525
|
+
strong: string;
|
|
526
|
+
})[][];
|
|
527
|
+
targetUrl: string;
|
|
528
|
+
subjectKind: string;
|
|
529
|
+
subjectId: string;
|
|
530
|
+
};
|
|
531
|
+
};
|
|
532
|
+
}, {
|
|
533
|
+
readonly id: "credits.low";
|
|
534
|
+
readonly eventName: "credits.balance.changed";
|
|
535
|
+
readonly requiredFilter: {};
|
|
536
|
+
readonly allowedTriggers: ["threshold_crossing"];
|
|
537
|
+
readonly catalog: {
|
|
538
|
+
readonly name: "Low credit warning";
|
|
539
|
+
readonly category: "credits";
|
|
540
|
+
readonly description: "Notify when the workspace credit balance crosses below a threshold.";
|
|
541
|
+
readonly allowMultiple: false;
|
|
542
|
+
readonly editor: {
|
|
543
|
+
readonly kind: "threshold";
|
|
544
|
+
readonly label: "Credit threshold";
|
|
545
|
+
readonly defaultThreshold: 10;
|
|
546
|
+
readonly minimum: 0;
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
readonly rule: {
|
|
550
|
+
readonly default: {
|
|
551
|
+
readonly ruleKey: "default.low_credits";
|
|
552
|
+
readonly groupKey: "default";
|
|
553
|
+
};
|
|
554
|
+
readonly conditionSubject: "workspace";
|
|
555
|
+
readonly create: (input: ProductNotificationRuleInput, base: ProductNotificationRuleBase, editor: {
|
|
556
|
+
kind: "threshold";
|
|
557
|
+
label: string;
|
|
558
|
+
defaultThreshold: number;
|
|
559
|
+
minimum: number;
|
|
560
|
+
maximum?: number;
|
|
561
|
+
suffix?: string;
|
|
562
|
+
/**
|
|
563
|
+
* When set, editors show and accept `remainingOf - threshold` (for
|
|
564
|
+
* example percent remaining) while the stored trigger stays in the
|
|
565
|
+
* runtime's "used" terms. Bounds and defaults are stored values.
|
|
566
|
+
*/
|
|
567
|
+
remainingOf?: number;
|
|
568
|
+
} | {
|
|
569
|
+
kind: "play_failure";
|
|
570
|
+
defaultFailureCount: number;
|
|
571
|
+
} | {
|
|
572
|
+
kind: "play_scope";
|
|
573
|
+
} | {
|
|
574
|
+
kind: "none";
|
|
575
|
+
}) => {
|
|
576
|
+
trigger: {
|
|
577
|
+
kind: "threshold_crossing";
|
|
578
|
+
direction: "below";
|
|
579
|
+
threshold: number;
|
|
580
|
+
unit: string;
|
|
581
|
+
};
|
|
582
|
+
groupKey: string;
|
|
583
|
+
enabled: boolean;
|
|
584
|
+
repeatMode?: ProductNotificationRepeatMode | undefined;
|
|
585
|
+
conditionGeneration?: number | undefined;
|
|
586
|
+
ruleKey: string;
|
|
587
|
+
notificationType: string;
|
|
588
|
+
eventName: string;
|
|
589
|
+
eventFilter: ProductNotificationFacts;
|
|
590
|
+
};
|
|
591
|
+
readonly validate: (trigger: ProductNotificationTrigger) => void;
|
|
592
|
+
readonly present: ({ payload, trigger }: {
|
|
593
|
+
payload: ProductNotificationFacts;
|
|
594
|
+
trigger: ProductNotificationTrigger;
|
|
595
|
+
}) => {
|
|
596
|
+
title: string;
|
|
597
|
+
summary: (string | {
|
|
598
|
+
workspace: true;
|
|
599
|
+
})[];
|
|
600
|
+
details: (string | {
|
|
601
|
+
strong: string;
|
|
602
|
+
})[][];
|
|
603
|
+
targetUrl: string;
|
|
604
|
+
subjectKind: string;
|
|
605
|
+
subjectId: string;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
}, {
|
|
609
|
+
readonly id: "usage.monthly.nearing_limit";
|
|
610
|
+
readonly eventName: "credits.usage.recorded";
|
|
611
|
+
readonly requiredFilter: {};
|
|
612
|
+
readonly allowedTriggers: ["threshold_crossing"];
|
|
613
|
+
readonly catalog: {
|
|
614
|
+
readonly name: "Usage limit warning";
|
|
615
|
+
readonly category: "credits";
|
|
616
|
+
readonly description: "Notify when only a configurable percentage of the monthly usage limit remains.";
|
|
617
|
+
readonly allowMultiple: false;
|
|
618
|
+
readonly editor: {
|
|
619
|
+
readonly kind: "threshold";
|
|
620
|
+
readonly label: "Remaining usage";
|
|
621
|
+
readonly defaultThreshold: 90;
|
|
622
|
+
readonly minimum: 1;
|
|
623
|
+
readonly maximum: 99;
|
|
624
|
+
readonly suffix: "%";
|
|
625
|
+
readonly remainingOf: 100;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly rule: {
|
|
629
|
+
readonly conditionSubject: "workspace";
|
|
630
|
+
readonly create: (input: ProductNotificationRuleInput, base: ProductNotificationRuleBase, editor: {
|
|
631
|
+
kind: "threshold";
|
|
632
|
+
label: string;
|
|
633
|
+
defaultThreshold: number;
|
|
634
|
+
minimum: number;
|
|
635
|
+
maximum?: number;
|
|
636
|
+
suffix?: string;
|
|
637
|
+
/**
|
|
638
|
+
* When set, editors show and accept `remainingOf - threshold` (for
|
|
639
|
+
* example percent remaining) while the stored trigger stays in the
|
|
640
|
+
* runtime's "used" terms. Bounds and defaults are stored values.
|
|
641
|
+
*/
|
|
642
|
+
remainingOf?: number;
|
|
643
|
+
} | {
|
|
644
|
+
kind: "play_failure";
|
|
645
|
+
defaultFailureCount: number;
|
|
646
|
+
} | {
|
|
647
|
+
kind: "play_scope";
|
|
648
|
+
} | {
|
|
649
|
+
kind: "none";
|
|
650
|
+
}) => {
|
|
651
|
+
trigger: {
|
|
652
|
+
kind: "threshold_crossing";
|
|
653
|
+
direction: "at_or_above";
|
|
654
|
+
threshold: number;
|
|
655
|
+
unit: string;
|
|
656
|
+
};
|
|
657
|
+
groupKey: string;
|
|
658
|
+
enabled: boolean;
|
|
659
|
+
repeatMode?: ProductNotificationRepeatMode | undefined;
|
|
660
|
+
conditionGeneration?: number | undefined;
|
|
661
|
+
ruleKey: string;
|
|
662
|
+
notificationType: string;
|
|
663
|
+
eventName: string;
|
|
664
|
+
eventFilter: ProductNotificationFacts;
|
|
665
|
+
};
|
|
666
|
+
readonly validate: (trigger: ProductNotificationTrigger) => void;
|
|
667
|
+
readonly present: ({ payload, trigger }: {
|
|
668
|
+
payload: ProductNotificationFacts;
|
|
669
|
+
trigger: ProductNotificationTrigger;
|
|
670
|
+
}) => {
|
|
671
|
+
title: string;
|
|
672
|
+
summary: (string | {
|
|
673
|
+
workspace: true;
|
|
674
|
+
})[];
|
|
675
|
+
details: (string | {
|
|
676
|
+
strong: string;
|
|
677
|
+
})[][];
|
|
678
|
+
targetUrl: string;
|
|
679
|
+
subjectKind: string;
|
|
680
|
+
subjectId: string;
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
}, {
|
|
684
|
+
readonly id: "play.failed";
|
|
685
|
+
readonly eventName: "play.run.completed";
|
|
686
|
+
readonly requiredFilter: {
|
|
687
|
+
readonly outcome: "failed";
|
|
688
|
+
};
|
|
689
|
+
readonly allowedTriggers: ["each_match", "consecutive_outcomes"];
|
|
690
|
+
readonly catalog: {
|
|
691
|
+
readonly name: "Play failed";
|
|
692
|
+
readonly category: "plays";
|
|
693
|
+
readonly description: "Notify for all, scheduled, webhook-triggered, or specific Play failures.";
|
|
694
|
+
readonly allowMultiple: true;
|
|
695
|
+
readonly editor: {
|
|
696
|
+
readonly kind: "play_failure";
|
|
697
|
+
readonly defaultFailureCount: 1;
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
readonly rule: {
|
|
701
|
+
readonly create: (input: ProductNotificationRuleInput, base: ProductNotificationRuleBase) => {
|
|
702
|
+
eventFilter: ProductNotificationFacts;
|
|
703
|
+
repeatMode: "on_enter" | "every_match";
|
|
704
|
+
trigger: {
|
|
705
|
+
kind: "each_match";
|
|
706
|
+
count?: undefined;
|
|
707
|
+
outcome?: undefined;
|
|
708
|
+
maxLookback?: undefined;
|
|
709
|
+
} | {
|
|
710
|
+
kind: "consecutive_outcomes";
|
|
711
|
+
count: number;
|
|
712
|
+
outcome: string;
|
|
713
|
+
maxLookback: number;
|
|
714
|
+
};
|
|
715
|
+
groupKey: string;
|
|
716
|
+
enabled: boolean;
|
|
717
|
+
conditionGeneration?: number | undefined;
|
|
718
|
+
ruleKey: string;
|
|
719
|
+
notificationType: string;
|
|
720
|
+
eventName: string;
|
|
721
|
+
};
|
|
722
|
+
readonly validate: typeof validateFailedOutcome;
|
|
723
|
+
readonly present: ({ payload }: {
|
|
724
|
+
payload: ProductNotificationFacts;
|
|
725
|
+
trigger: ProductNotificationTrigger;
|
|
726
|
+
}) => ProductNotificationPresentation;
|
|
727
|
+
};
|
|
728
|
+
}, {
|
|
729
|
+
readonly id: "play.succeeded";
|
|
730
|
+
readonly eventName: "play.run.completed";
|
|
731
|
+
readonly requiredFilter: {
|
|
732
|
+
readonly outcome: "succeeded";
|
|
733
|
+
};
|
|
734
|
+
readonly allowedTriggers: ["each_match"];
|
|
735
|
+
readonly catalog: {
|
|
736
|
+
readonly name: "Play succeeded";
|
|
737
|
+
readonly category: "plays";
|
|
738
|
+
readonly description: "Notify for all, scheduled, webhook-triggered, or specific Play successes.";
|
|
739
|
+
readonly allowMultiple: true;
|
|
740
|
+
readonly editor: {
|
|
741
|
+
readonly kind: "play_scope";
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
readonly rule: {
|
|
745
|
+
readonly create: (input: ProductNotificationRuleInput, base: ProductNotificationRuleBase) => {
|
|
746
|
+
eventFilter: ProductNotificationFacts;
|
|
747
|
+
repeatMode: "every_match";
|
|
748
|
+
trigger: {
|
|
749
|
+
kind: "each_match";
|
|
750
|
+
};
|
|
751
|
+
groupKey: string;
|
|
752
|
+
enabled: boolean;
|
|
753
|
+
conditionGeneration?: number | undefined;
|
|
754
|
+
ruleKey: string;
|
|
755
|
+
notificationType: string;
|
|
756
|
+
eventName: string;
|
|
757
|
+
};
|
|
758
|
+
readonly present: ({ payload }: {
|
|
759
|
+
payload: ProductNotificationFacts;
|
|
760
|
+
trigger: ProductNotificationTrigger;
|
|
761
|
+
}) => ProductNotificationPresentation;
|
|
762
|
+
};
|
|
763
|
+
}, {
|
|
764
|
+
readonly id: "webhook.delivery.failed";
|
|
765
|
+
readonly eventName: "webhook.delivery.completed";
|
|
766
|
+
readonly requiredFilter: {
|
|
767
|
+
readonly outcome: "failed";
|
|
768
|
+
};
|
|
769
|
+
readonly allowedTriggers: ["each_match", "consecutive_outcomes"];
|
|
770
|
+
readonly catalog: undefined;
|
|
771
|
+
readonly rule: {
|
|
772
|
+
readonly validate: typeof validateFailedOutcome;
|
|
773
|
+
readonly present: ({ payload }: {
|
|
774
|
+
payload: ProductNotificationFacts;
|
|
775
|
+
trigger: ProductNotificationTrigger;
|
|
776
|
+
}) => ProductNotificationPresentation;
|
|
777
|
+
};
|
|
778
|
+
}, {
|
|
779
|
+
readonly id: "webhook.delivery.succeeded";
|
|
780
|
+
readonly eventName: "webhook.delivery.completed";
|
|
781
|
+
readonly requiredFilter: {
|
|
782
|
+
readonly outcome: "succeeded";
|
|
783
|
+
};
|
|
784
|
+
readonly allowedTriggers: ["each_match"];
|
|
785
|
+
readonly catalog: undefined;
|
|
786
|
+
readonly rule: {
|
|
787
|
+
readonly present: ({ payload }: {
|
|
788
|
+
payload: ProductNotificationFacts;
|
|
789
|
+
trigger: ProductNotificationTrigger;
|
|
790
|
+
}) => ProductNotificationPresentation;
|
|
791
|
+
};
|
|
792
|
+
}];
|
|
793
|
+
type ConfigurableProductNotificationRegistration = Extract<(typeof PRODUCT_NOTIFICATION_TYPE_REGISTRY)[number], {
|
|
794
|
+
catalog: ProductNotificationTypeCatalogMetadata;
|
|
795
|
+
}>;
|
|
796
|
+
type ConfigurableProductNotificationType = ConfigurableProductNotificationRegistration['id'];
|
|
797
|
+
type ProductNotificationTypeCatalogItem = ProductNotificationTypeCatalogMetadata & {
|
|
798
|
+
id: ConfigurableProductNotificationType;
|
|
799
|
+
};
|
|
800
|
+
type ProductNotificationPlayFailureSettings = {
|
|
801
|
+
scope: 'all' | 'cron' | 'webhook' | 'specific';
|
|
802
|
+
playId?: string;
|
|
803
|
+
playName?: string;
|
|
804
|
+
failureCount: number;
|
|
805
|
+
};
|
|
806
|
+
|
|
184
807
|
/**
|
|
185
808
|
* Options for constructing a {@link DeeplineClient} or connecting via {@link Deepline.connect}.
|
|
186
809
|
*
|
|
@@ -213,6 +836,17 @@ interface DeeplineClientOptions {
|
|
|
213
836
|
timeout?: number;
|
|
214
837
|
/** Maximum retry attempts for transient failures (network errors, 429s). Default: `3`. */
|
|
215
838
|
maxRetries?: number;
|
|
839
|
+
/**
|
|
840
|
+
* Extra request headers attached to every request this client sends.
|
|
841
|
+
*
|
|
842
|
+
* They are merged *after* the headers the transport derives from the
|
|
843
|
+
* environment, so an explicit header replaces the env-derived one. Header
|
|
844
|
+
* names match case-insensitively and are normalized to lowercase.
|
|
845
|
+
*
|
|
846
|
+
* This is transport plumbing only: the server still authorizes every
|
|
847
|
+
* internal header it honors.
|
|
848
|
+
*/
|
|
849
|
+
headers?: Record<string, string>;
|
|
216
850
|
}
|
|
217
851
|
/**
|
|
218
852
|
* Fully resolved configuration used internally by the SDK.
|
|
@@ -228,6 +862,12 @@ interface ResolvedConfig {
|
|
|
228
862
|
timeout: number;
|
|
229
863
|
/** Max retry count for transient failures. */
|
|
230
864
|
maxRetries: number;
|
|
865
|
+
/**
|
|
866
|
+
* Caller-supplied headers merged over the env-derived headers on every
|
|
867
|
+
* request. Absent unless the caller passed
|
|
868
|
+
* {@link DeeplineClientOptions.headers}.
|
|
869
|
+
*/
|
|
870
|
+
headers?: Record<string, string>;
|
|
231
871
|
}
|
|
232
872
|
/** Column metadata returned by a customer data query. */
|
|
233
873
|
interface CustomerDbColumn {
|
|
@@ -912,8 +1552,9 @@ interface PlayStatus {
|
|
|
912
1552
|
/**
|
|
913
1553
|
* Projected settled-charge billing for the run. Returned by `runs.get`.
|
|
914
1554
|
* `totalCredits`/`providerEvents` describe THIS run only; `rollup` (present
|
|
915
|
-
* with `--full`) carries the true subtree cost including
|
|
916
|
-
* Deepline credits only — provider
|
|
1555
|
+
* with `--full`) carries the true subtree cost including independently
|
|
1556
|
+
* executing ctx.runPlayAsync descendants. Deepline credits only — provider
|
|
1557
|
+
* spend is never exposed.
|
|
917
1558
|
*/
|
|
918
1559
|
billing?: RunBillingSummary;
|
|
919
1560
|
/**
|
|
@@ -925,13 +1566,25 @@ interface PlayStatus {
|
|
|
925
1566
|
billingChildCredits?: number;
|
|
926
1567
|
/** True when the child-run billing rollup could not be fully resolved. */
|
|
927
1568
|
billingRollupIncomplete?: boolean;
|
|
928
|
-
/** Durable summaries of ctx.
|
|
1569
|
+
/** Durable summaries of ctx.runPlayAsync children, returned by `runs.get --full`. */
|
|
929
1570
|
childRuns?: ChildRunSummary[];
|
|
1571
|
+
/**
|
|
1572
|
+
* Child Runs grouped by the authored ctx.runPlayAsync launch key. `complete`
|
|
1573
|
+
* is false when the bounded response is a lower bound rather than the full
|
|
1574
|
+
* direct-child set; use each opaque `runId` to retrieve a child Run.
|
|
1575
|
+
*/
|
|
1576
|
+
childRunProjection?: AsyncChildRunProjection;
|
|
930
1577
|
}
|
|
931
|
-
/** One ctx.
|
|
1578
|
+
/** One ctx.runPlayAsync child Run exposed on the parent's `--full` payload. */
|
|
932
1579
|
interface ChildRunSummary {
|
|
933
1580
|
runId: string;
|
|
934
1581
|
playName?: string | null;
|
|
1582
|
+
/** Authored ctx.runPlayAsync key; stable across row fanout. */
|
|
1583
|
+
launchKey?: string | null;
|
|
1584
|
+
/** Opaque durable identity for one authored invocation. */
|
|
1585
|
+
invocationKey?: string | null;
|
|
1586
|
+
/** Whether this child uses root-owned Deepline billing attribution. */
|
|
1587
|
+
rootBillingOwned?: boolean;
|
|
935
1588
|
status: string;
|
|
936
1589
|
parentRunId?: string | null;
|
|
937
1590
|
rootRunId?: string | null;
|
|
@@ -939,6 +1592,29 @@ interface ChildRunSummary {
|
|
|
939
1592
|
startedAt?: number | null;
|
|
940
1593
|
finishedAt?: number | null;
|
|
941
1594
|
}
|
|
1595
|
+
interface AsyncChildRunStatusCounts {
|
|
1596
|
+
total: number;
|
|
1597
|
+
queued: number;
|
|
1598
|
+
active: number;
|
|
1599
|
+
waiting: number;
|
|
1600
|
+
succeeded: number;
|
|
1601
|
+
failed: number;
|
|
1602
|
+
cancelled: number;
|
|
1603
|
+
unknown: number;
|
|
1604
|
+
}
|
|
1605
|
+
interface AsyncChildRunLaunchProjection {
|
|
1606
|
+
launchKey: string | null;
|
|
1607
|
+
playName: string | null;
|
|
1608
|
+
counts: AsyncChildRunStatusCounts;
|
|
1609
|
+
children: ChildRunSummary[];
|
|
1610
|
+
}
|
|
1611
|
+
interface AsyncChildRunProjection {
|
|
1612
|
+
kind: 'async_child_runs';
|
|
1613
|
+
returnedCount: number;
|
|
1614
|
+
complete: boolean;
|
|
1615
|
+
counts: AsyncChildRunStatusCounts;
|
|
1616
|
+
launches: AsyncChildRunLaunchProjection[];
|
|
1617
|
+
}
|
|
942
1618
|
/**
|
|
943
1619
|
* Rolled-up billing for a run subtree, projected from settled Charge Lifecycle
|
|
944
1620
|
* facts. Deepline credits only — never provider spend.
|
|
@@ -1217,6 +1893,21 @@ interface PlayDefinitionDetail {
|
|
|
1217
1893
|
/** Compatibility field for older readers. */
|
|
1218
1894
|
currentPublishedVersion?: number | null;
|
|
1219
1895
|
}
|
|
1896
|
+
type PlayCostEstimate = {
|
|
1897
|
+
status: 'available';
|
|
1898
|
+
source: 'observed' | 'static';
|
|
1899
|
+
unit: 'row' | 'run';
|
|
1900
|
+
lowCredits: number;
|
|
1901
|
+
highCredits: number;
|
|
1902
|
+
sampleRunCount: number;
|
|
1903
|
+
basedOnRunId: string | null;
|
|
1904
|
+
modelVersion: string;
|
|
1905
|
+
} | {
|
|
1906
|
+
status: 'unavailable';
|
|
1907
|
+
reason: 'ambiguous_output_unit' | 'unbounded_loop' | 'unresolved_tool' | 'mixed_run_and_row_costs';
|
|
1908
|
+
message: string;
|
|
1909
|
+
modelVersion: string;
|
|
1910
|
+
};
|
|
1220
1911
|
interface PlayListItem {
|
|
1221
1912
|
playKey?: string;
|
|
1222
1913
|
reference?: string;
|
|
@@ -1246,6 +1937,7 @@ interface PlayListItem {
|
|
|
1246
1937
|
liveRevision?: PlayRevisionSummary | null;
|
|
1247
1938
|
aliases?: string[];
|
|
1248
1939
|
triggerStatus?: PlayTriggerStatus;
|
|
1940
|
+
costEstimate?: PlayCostEstimate;
|
|
1249
1941
|
}
|
|
1250
1942
|
/** Additive live trigger state shared by list, get, and describe. */
|
|
1251
1943
|
interface PlayTriggerStatus {
|
|
@@ -1300,6 +1992,15 @@ interface ProductNotification {
|
|
|
1300
1992
|
lastTestStatus?: string;
|
|
1301
1993
|
lastErrorMessage?: string;
|
|
1302
1994
|
}
|
|
1995
|
+
interface ProductNotificationConfigurationResponse {
|
|
1996
|
+
configuration: EffectiveProductNotificationConfiguration;
|
|
1997
|
+
catalog: readonly ProductNotificationTypeCatalogItem[];
|
|
1998
|
+
slackConnection: {
|
|
1999
|
+
connected: boolean;
|
|
2000
|
+
status: string;
|
|
2001
|
+
connectionId?: string;
|
|
2002
|
+
};
|
|
2003
|
+
}
|
|
1303
2004
|
interface PlayDescription {
|
|
1304
2005
|
name: string;
|
|
1305
2006
|
/** Stable registry key. Same value `plays list` reports for this play. */
|
|
@@ -1919,134 +2620,6 @@ type MonitorControls = {
|
|
|
1919
2620
|
*/
|
|
1920
2621
|
declare function defineMonitor<TPayload extends MonitorPayload = MonitorPayload>(definition: MonitorDefinition<TPayload>): MonitorDefinition<TPayload>;
|
|
1921
2622
|
|
|
1922
|
-
/**
|
|
1923
|
-
* The fleet member ceiling, mirrored — deliberately a literal.
|
|
1924
|
-
*
|
|
1925
|
-
* The canonical declaration is shared_libs/monitors/monitor-fleet-limits.ts,
|
|
1926
|
-
* which the Convex commit mutation reads to size its transaction. This package
|
|
1927
|
-
* cannot import it: the workspace-architecture ratchet forbids NEW shared_libs
|
|
1928
|
-
* imports from packages absolutely (only relocations of pre-existing edges
|
|
1929
|
-
* pass CI), because shared_libs is being migrated into workspace packages.
|
|
1930
|
-
* Until a monitors package exists, the two copies are held equal by
|
|
1931
|
-
* tests/lib/monitors/monitor-fleet-limits-mirror.test.ts — change one without
|
|
1932
|
-
* the other and that test names both files.
|
|
1933
|
-
*/
|
|
1934
|
-
declare const MONITOR_FLEET_MAX_MEMBERS = 1000;
|
|
1935
|
-
declare const MONITOR_FLEET_FRONTIER_MAX_ROWS = 10000;
|
|
1936
|
-
/**
|
|
1937
|
-
* Fleet definitions are admitted once and executed many times. Keep the
|
|
1938
|
-
* edition beside the definition just as Plays keep their authoring-contract
|
|
1939
|
-
* edition: a future syntax change can add a reader without reinterpreting a
|
|
1940
|
-
* stored Fleet under new rules.
|
|
1941
|
-
*/
|
|
1942
|
-
declare const MONITOR_FLEET_AUTHORING_CONTRACT_EDITION: 1;
|
|
1943
|
-
declare const SUPPORTED_MONITOR_FLEET_AUTHORING_CONTRACT_EDITIONS: readonly [1];
|
|
1944
|
-
type MonitorFleetAuthoringContractEdition = (typeof SUPPORTED_MONITOR_FLEET_AUTHORING_CONTRACT_EDITIONS)[number];
|
|
1945
|
-
declare const MONITOR_FLEET_AUTHORING_CONTRACT_CHANGELOG: readonly [{
|
|
1946
|
-
readonly edition: 1;
|
|
1947
|
-
readonly changed: "Initial Fleet JSON contract: bounded sticky table membership, one daily sync, and a seven-day removal grace.";
|
|
1948
|
-
readonly compatibilityOwner: "Monitors Runtime";
|
|
1949
|
-
readonly newWritesEnd: null;
|
|
1950
|
-
readonly readerRemoval: null;
|
|
1951
|
-
}];
|
|
1952
|
-
/**
|
|
1953
|
-
* Public, machine-readable guidance for every Monitor Fleet authoring
|
|
1954
|
-
* surface. SDK clients may render this directly; the CLI uses the same fixed
|
|
1955
|
-
* policy values in its help rather than maintaining another contract.
|
|
1956
|
-
*/
|
|
1957
|
-
declare const MONITOR_FLEET_DOCUMENTATION: {
|
|
1958
|
-
readonly summary: "A Monitor Fleet keeps one bounded, sticky set of ordinary monitors aligned with Customer DB rows.";
|
|
1959
|
-
readonly authoredFields: {
|
|
1960
|
-
readonly id: "Stable lowercase fleet id used by sync, get, and deactivate.";
|
|
1961
|
-
readonly source: "Customer DB table, unique row key, and optional equality filters that select candidate rows.";
|
|
1962
|
-
readonly member: "Ordinary monitor tool, stable key template, and payload evaluated for each selected source row.";
|
|
1963
|
-
readonly selection: "Deterministic ranking and an active-member limit between 1 and 1,000.";
|
|
1964
|
-
};
|
|
1965
|
-
readonly fixedPolicy: {
|
|
1966
|
-
readonly cadence: "daily";
|
|
1967
|
-
readonly membership: "sticky";
|
|
1968
|
-
readonly removalGrace: "7d";
|
|
1969
|
-
readonly onRemoved: "deactivate";
|
|
1970
|
-
readonly ownership: "A Fleet may adopt a same-tool ordinary monitor with its deterministic member key. The first Fleet claim wins; another Fleet or a different tool receives a conflict.";
|
|
1971
|
-
readonly billing: "No Fleet fee, permit, or renewal. Dry-run reports ordinary monitor lifecycle charges due now.";
|
|
1972
|
-
};
|
|
1973
|
-
readonly stickyMembership: "Ranking fills vacancies but never replaces a current member merely because another row ranks higher.";
|
|
1974
|
-
readonly columnExpression: "Use { \"$fleet\": \"column\", \"name\": \"column_name\" } in a member key or payload to read a value from each source row.";
|
|
1975
|
-
};
|
|
1976
|
-
type MonitorFleetColumn = {
|
|
1977
|
-
$fleet: 'column';
|
|
1978
|
-
name: string;
|
|
1979
|
-
};
|
|
1980
|
-
type MonitorFleetTemplate = {
|
|
1981
|
-
$fleet: 'template';
|
|
1982
|
-
parts: Array<string | MonitorFleetColumn>;
|
|
1983
|
-
};
|
|
1984
|
-
type MonitorFleetExpression = MonitorFleetColumn | MonitorFleetTemplate;
|
|
1985
|
-
type MonitorFleetDefinition = {
|
|
1986
|
-
/** Stable lowercase fleet id, used by CLI and API lifecycle commands. */
|
|
1987
|
-
id: string;
|
|
1988
|
-
/** Customer DB rows that may become members. */
|
|
1989
|
-
source: {
|
|
1990
|
-
kind: 'customer_db_table';
|
|
1991
|
-
schema: string;
|
|
1992
|
-
table: string;
|
|
1993
|
-
key: {
|
|
1994
|
-
column: string;
|
|
1995
|
-
type: 'text' | 'uuid' | 'int4' | 'int8';
|
|
1996
|
-
};
|
|
1997
|
-
where?: Record<string, string | number | boolean | null>;
|
|
1998
|
-
};
|
|
1999
|
-
/** One ordinary monitor definition, evaluated once for each selected row. */
|
|
2000
|
-
member: {
|
|
2001
|
-
tool: string;
|
|
2002
|
-
key: MonitorFleetTemplate;
|
|
2003
|
-
payload: Record<string, unknown>;
|
|
2004
|
-
};
|
|
2005
|
-
/**
|
|
2006
|
-
* Bounded deterministic candidate selection. Membership is intentionally
|
|
2007
|
-
* sticky: ranking chooses vacant slots but does not replace existing members
|
|
2008
|
-
* merely because another row's score changed.
|
|
2009
|
-
*/
|
|
2010
|
-
selection: {
|
|
2011
|
-
limit: number;
|
|
2012
|
-
orderBy: Array<{
|
|
2013
|
-
column: string;
|
|
2014
|
-
direction: 'asc' | 'desc';
|
|
2015
|
-
}>;
|
|
2016
|
-
membership: 'sticky';
|
|
2017
|
-
};
|
|
2018
|
-
};
|
|
2019
|
-
type MonitorFleetContractIssue = {
|
|
2020
|
-
path: string;
|
|
2021
|
-
code: string;
|
|
2022
|
-
message: string;
|
|
2023
|
-
};
|
|
2024
|
-
/** The durable, validated snapshot that a Fleet sync is allowed to execute. */
|
|
2025
|
-
type AdmittedMonitorFleetAuthoringContract = {
|
|
2026
|
-
edition: MonitorFleetAuthoringContractEdition;
|
|
2027
|
-
definition: MonitorFleetDefinition;
|
|
2028
|
-
};
|
|
2029
|
-
type MonitorFleetAuthoringContractResult = {
|
|
2030
|
-
valid: boolean;
|
|
2031
|
-
contract?: AdmittedMonitorFleetAuthoringContract;
|
|
2032
|
-
issues: MonitorFleetContractIssue[];
|
|
2033
|
-
};
|
|
2034
|
-
declare function fleetColumn(name: string): MonitorFleetColumn;
|
|
2035
|
-
declare function fleetKey(...parts: Array<string | MonitorFleetColumn>): MonitorFleetTemplate;
|
|
2036
|
-
declare function defineMonitorFleet<const T extends MonitorFleetDefinition>(definition: T): T;
|
|
2037
|
-
declare function validateMonitorFleetDefinition(value: unknown): {
|
|
2038
|
-
valid: boolean;
|
|
2039
|
-
definition?: MonitorFleetDefinition;
|
|
2040
|
-
issues: MonitorFleetContractIssue[];
|
|
2041
|
-
};
|
|
2042
|
-
/**
|
|
2043
|
-
* Compile JSON into the exact authoring snapshot persisted by a Fleet. This
|
|
2044
|
-
* does not inspect the Customer DB or provider; use
|
|
2045
|
-
* `fleets sync --file <fleet.json> --dry-run` for that environment-aware
|
|
2046
|
-
* preflight, which returns the real plan and the credits due.
|
|
2047
|
-
*/
|
|
2048
|
-
declare function admitMonitorFleetAuthoringContract(value: unknown, edition?: number): MonitorFleetAuthoringContractResult;
|
|
2049
|
-
|
|
2050
2623
|
interface PlayStagedFileRef {
|
|
2051
2624
|
storageKind: 'r2';
|
|
2052
2625
|
storageKey: string;
|
|
@@ -2124,6 +2697,28 @@ type UpdateNotificationInput = {
|
|
|
2124
2697
|
name: string;
|
|
2125
2698
|
eventTypes: string[];
|
|
2126
2699
|
} & SlackNotificationTarget);
|
|
2700
|
+
type CreateNotificationGroupInput = {
|
|
2701
|
+
name: string;
|
|
2702
|
+
targets: string[];
|
|
2703
|
+
legacyEvents?: string[];
|
|
2704
|
+
dryRun?: boolean;
|
|
2705
|
+
};
|
|
2706
|
+
type CreateNotificationGroupResult = {
|
|
2707
|
+
mode: 'dry_run';
|
|
2708
|
+
compatibilityMode: boolean;
|
|
2709
|
+
name: string;
|
|
2710
|
+
targets: string[];
|
|
2711
|
+
legacyEvents: string[];
|
|
2712
|
+
} | {
|
|
2713
|
+
mode: 'legacy';
|
|
2714
|
+
notification: unknown;
|
|
2715
|
+
} | {
|
|
2716
|
+
mode: 'native';
|
|
2717
|
+
groupKey: string;
|
|
2718
|
+
targets: string[];
|
|
2719
|
+
group: EffectiveProductNotificationGroup;
|
|
2720
|
+
destinations: EffectiveProductNotificationDestination[];
|
|
2721
|
+
};
|
|
2127
2722
|
type IngestionStorageRepairResult = {
|
|
2128
2723
|
status?: 'repaired';
|
|
2129
2724
|
connection_grants: {
|
|
@@ -2226,6 +2821,32 @@ type RunsListOptions = {
|
|
|
2226
2821
|
/** Zero-based page offset. Requires `play` because status-only inventory is not paginated. */
|
|
2227
2822
|
offset?: number;
|
|
2228
2823
|
};
|
|
2824
|
+
/** One server page; legacy runs.list continues to return an array. */
|
|
2825
|
+
type RunsListPage = {
|
|
2826
|
+
runs: PlayRunListItem[];
|
|
2827
|
+
total?: number;
|
|
2828
|
+
offset?: number;
|
|
2829
|
+
limit?: number;
|
|
2830
|
+
hasMore?: boolean;
|
|
2831
|
+
};
|
|
2832
|
+
type PlaysListOptions = {
|
|
2833
|
+
origin?: 'prebuilt' | 'owned';
|
|
2834
|
+
grep?: string;
|
|
2835
|
+
/**
|
|
2836
|
+
* @deprecated Grep is always evaluated by the Convex full-text index.
|
|
2837
|
+
* This retained option is ignored for source compatibility.
|
|
2838
|
+
*/
|
|
2839
|
+
grepMode?: 'all' | 'any' | 'phrase';
|
|
2840
|
+
categories?: string | string[];
|
|
2841
|
+
includeToolCategories?: boolean;
|
|
2842
|
+
includeArchived?: boolean;
|
|
2843
|
+
includeCostEstimates?: boolean;
|
|
2844
|
+
};
|
|
2845
|
+
type PlaysListPage = {
|
|
2846
|
+
plays: PlayListItem[];
|
|
2847
|
+
cursor: string | null;
|
|
2848
|
+
hasMore: boolean;
|
|
2849
|
+
};
|
|
2229
2850
|
/** Options for `client.runs.get(...)`. */
|
|
2230
2851
|
type RunsGetOptions = {
|
|
2231
2852
|
/** Return the raw status payload instead of the compact package. */
|
|
@@ -2334,12 +2955,16 @@ type PlaySecretMetadata = {
|
|
|
2334
2955
|
updatedAt: number;
|
|
2335
2956
|
lastUsedAt?: number;
|
|
2336
2957
|
};
|
|
2958
|
+
type PlaySecretCheck = {
|
|
2959
|
+
ok: boolean;
|
|
2960
|
+
name: string;
|
|
2961
|
+
playName: string | null;
|
|
2962
|
+
reason: 'active' | 'missing' | 'disabled' | 'empty' | 'invalid_version';
|
|
2963
|
+
secret: PlaySecretMetadata | null;
|
|
2964
|
+
};
|
|
2337
2965
|
/**
|
|
2338
|
-
*
|
|
2339
|
-
*
|
|
2340
|
-
* This namespace mirrors the canonical `/api/v2/runs` resource family and is
|
|
2341
|
-
* the preferred low-level surface for polling, streaming, stopping, reading
|
|
2342
|
-
* logs, and exporting durable dataset rows.
|
|
2966
|
+
* `client.runs` mirrors `/api/v2/runs`: the preferred low-level surface for
|
|
2967
|
+
* polling, streaming, stopping, reading logs, and exporting durable dataset rows.
|
|
2343
2968
|
*
|
|
2344
2969
|
* @sdkReference client 020 client.runs
|
|
2345
2970
|
*/
|
|
@@ -2367,6 +2992,8 @@ type RunsNamespace = {
|
|
|
2367
2992
|
}>;
|
|
2368
2993
|
/** List runs for one play, optionally filtered by status. */
|
|
2369
2994
|
list: (options: RunsListOptions) => Promise<PlayRunListItem[]>;
|
|
2995
|
+
/** Read one run page with total, offset, limit and completeness metadata. */
|
|
2996
|
+
listPage: (options: RunsListOptions) => Promise<RunsListPage>;
|
|
2370
2997
|
/** Stream run events and return the latest/terminal run status. */
|
|
2371
2998
|
tail: (runId: string, options?: RunsTailOptions) => Promise<PlayStatus>;
|
|
2372
2999
|
/** Fetch persisted log lines for a run. */
|
|
@@ -2604,6 +3231,58 @@ type MonitorFleetWaitOptions = {
|
|
|
2604
3231
|
*/
|
|
2605
3232
|
until?: 'converged' | 'deactivated';
|
|
2606
3233
|
};
|
|
3234
|
+
/** A durable monitor batch can name a small key set, a query target, or one Fleet. */
|
|
3235
|
+
type MonitorBatchScope = {
|
|
3236
|
+
kind: 'keys';
|
|
3237
|
+
monitorKeys: string[];
|
|
3238
|
+
} | {
|
|
3239
|
+
kind: 'target';
|
|
3240
|
+
target: 'all' | 'all-active' | 'billing-suspended' | 'needs-repair';
|
|
3241
|
+
} | {
|
|
3242
|
+
kind: 'fleet';
|
|
3243
|
+
fleetId: string;
|
|
3244
|
+
};
|
|
3245
|
+
type MonitorBatchExistingSubmitOptions = {
|
|
3246
|
+
kind: 'audit' | 'deactivate' | 'reactivate' | 'repair';
|
|
3247
|
+
scope: MonitorBatchScope;
|
|
3248
|
+
dryRun?: boolean;
|
|
3249
|
+
/** Required for deactivate; it is the declared reason shown by health/UI. */
|
|
3250
|
+
deactivationReason?: string;
|
|
3251
|
+
/** Stable retry key. Reusing it joins the original durable operation. */
|
|
3252
|
+
idempotencyKey: string;
|
|
3253
|
+
};
|
|
3254
|
+
/** Complete definitions, one JSON object per line; uploaded as bounded shards. */
|
|
3255
|
+
type MonitorBatchDeploySubmitOptions = {
|
|
3256
|
+
kind: 'deploy';
|
|
3257
|
+
manifestNdjson: string;
|
|
3258
|
+
dryRun?: boolean;
|
|
3259
|
+
/** Stable retry key. Reusing it joins the same content-addressed manifest. */
|
|
3260
|
+
idempotencyKey: string;
|
|
3261
|
+
};
|
|
3262
|
+
type MonitorBatchSubmitOptions = MonitorBatchExistingSubmitOptions | MonitorBatchDeploySubmitOptions;
|
|
3263
|
+
type MonitorBatchOperationResult = {
|
|
3264
|
+
ok?: boolean;
|
|
3265
|
+
rejoined?: boolean;
|
|
3266
|
+
operation: {
|
|
3267
|
+
runId: string;
|
|
3268
|
+
kind: 'audit' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3269
|
+
state: 'running' | 'retry_scheduled' | 'completed' | 'failed';
|
|
3270
|
+
dryRun: boolean;
|
|
3271
|
+
scope: unknown;
|
|
3272
|
+
submittedAt: number;
|
|
3273
|
+
updatedAt: number;
|
|
3274
|
+
deactivationReason?: string;
|
|
3275
|
+
nextAttemptAt?: number;
|
|
3276
|
+
completedAt?: number;
|
|
3277
|
+
summary?: Record<string, unknown>;
|
|
3278
|
+
lastError?: string;
|
|
3279
|
+
};
|
|
3280
|
+
results?: {
|
|
3281
|
+
page: Array<Record<string, unknown>>;
|
|
3282
|
+
isDone: boolean;
|
|
3283
|
+
continueCursor: string;
|
|
3284
|
+
};
|
|
3285
|
+
};
|
|
2607
3286
|
type MonitorFleetsNamespace = {
|
|
2608
3287
|
/**
|
|
2609
3288
|
* Create, update, or re-plan a fleet. Pass a definition to admit new source
|
|
@@ -2621,6 +3300,12 @@ type MonitorFleetsNamespace = {
|
|
|
2621
3300
|
/** Poll the fleet until the server reports a terminal status (or the timeout elapses). */
|
|
2622
3301
|
waitForConvergence: (fleetId: string, options?: MonitorFleetWaitOptions) => Promise<MonitorFleetResult>;
|
|
2623
3302
|
};
|
|
3303
|
+
type MonitorBatchNamespace = {
|
|
3304
|
+
submit: (options: MonitorBatchSubmitOptions) => Promise<MonitorBatchOperationResult>;
|
|
3305
|
+
get: (operationId: string, options?: {
|
|
3306
|
+
cursor?: string | null;
|
|
3307
|
+
}) => Promise<MonitorBatchOperationResult>;
|
|
3308
|
+
};
|
|
2624
3309
|
/**
|
|
2625
3310
|
* Delivery and convergence health for a scope, from
|
|
2626
3311
|
* `GET /api/v2/monitors/health`.
|
|
@@ -2638,6 +3323,16 @@ type MonitorsHealth = {
|
|
|
2638
3323
|
scanned: number;
|
|
2639
3324
|
/** True when the scope was larger than one bounded read; counts are partial. */
|
|
2640
3325
|
truncated: boolean;
|
|
3326
|
+
/**
|
|
3327
|
+
* A durable whole-scope snapshot is rebuilding. Counts remain intentionally
|
|
3328
|
+
* partial until it completes; older servers omit this additive field.
|
|
3329
|
+
*/
|
|
3330
|
+
refresh?: {
|
|
3331
|
+
state: 'running' | 'completed';
|
|
3332
|
+
started_at: number;
|
|
3333
|
+
updated_at: number;
|
|
3334
|
+
completed_at: number | null;
|
|
3335
|
+
};
|
|
2641
3336
|
desired: {
|
|
2642
3337
|
active: number;
|
|
2643
3338
|
inactive: number;
|
|
@@ -2652,6 +3347,11 @@ type MonitorsHealth = {
|
|
|
2652
3347
|
};
|
|
2653
3348
|
converged: number;
|
|
2654
3349
|
needs_repair: number;
|
|
3350
|
+
/**
|
|
3351
|
+
* Unknown records without an upstream resource id. Use the exact inventory
|
|
3352
|
+
* reconciler to align them; ordinary repair never guesses an identity.
|
|
3353
|
+
*/
|
|
3354
|
+
alignment_required: number;
|
|
2655
3355
|
/** Observed active, but nothing delivered inside `silent_window_days`. */
|
|
2656
3356
|
silent: number;
|
|
2657
3357
|
silent_window_days: number;
|
|
@@ -2668,6 +3368,24 @@ type MonitorsHealth = {
|
|
|
2668
3368
|
observed_at: number | null;
|
|
2669
3369
|
provider_resource_id: string | null;
|
|
2670
3370
|
}>;
|
|
3371
|
+
/** Bounded current durable monitor work, if the server supports it. */
|
|
3372
|
+
batch_operations?: Array<{
|
|
3373
|
+
run_id: string;
|
|
3374
|
+
kind: 'audit' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3375
|
+
state: 'running' | 'retry_scheduled';
|
|
3376
|
+
updated_at: number;
|
|
3377
|
+
next_attempt_at?: number;
|
|
3378
|
+
summary?: Record<string, unknown>;
|
|
3379
|
+
}>;
|
|
3380
|
+
/** Bounded sample explaining why normal audit did not settle the row. */
|
|
3381
|
+
unaudited_monitors: Array<{
|
|
3382
|
+
monitor_key: string;
|
|
3383
|
+
tool: string;
|
|
3384
|
+
observed: 'unknown' | null;
|
|
3385
|
+
observed_at: number | null;
|
|
3386
|
+
provider_resource_id: string | null;
|
|
3387
|
+
reason: 'not_yet_audited' | 'missing_provider_resource_id' | 'provider_observation_unknown';
|
|
3388
|
+
}>;
|
|
2671
3389
|
};
|
|
2672
3390
|
/** One bounded audit pass, from `POST /api/v2/monitors/audit`. */
|
|
2673
3391
|
type MonitorsAuditResult = {
|
|
@@ -2796,11 +3514,15 @@ type MonitorsNamespace = {
|
|
|
2796
3514
|
health: (options?: {
|
|
2797
3515
|
fleetId?: string;
|
|
2798
3516
|
}) => Promise<MonitorsHealth>;
|
|
3517
|
+
/** Durable bulk audit/deactivation/reactivation/repair with retained progress. */
|
|
3518
|
+
batch: MonitorBatchNamespace;
|
|
2799
3519
|
/** Define, reconcile, and control table-backed monitor fleets. */
|
|
2800
3520
|
fleets: MonitorFleetsNamespace;
|
|
2801
3521
|
};
|
|
2802
3522
|
/** One credit grant pool reported by the billing subscription status endpoint. */
|
|
2803
3523
|
type BillingCreditPool = {
|
|
3524
|
+
/** Stable grant identity; optional when talking to an older server. */
|
|
3525
|
+
grant_id?: string;
|
|
2804
3526
|
pool: string;
|
|
2805
3527
|
credits_remaining: number;
|
|
2806
3528
|
credits_granted: number;
|
|
@@ -2879,10 +3601,10 @@ type TargetBillingOperation = {
|
|
|
2879
3601
|
next_action?: string | null;
|
|
2880
3602
|
};
|
|
2881
3603
|
type TargetBillingPlan = {
|
|
2882
|
-
sku: 'payg-v1' | 'builder-v1' | 'team-v1';
|
|
3604
|
+
sku: 'payg-v1' | 'builder-v1' | 'growth-v1' | 'growth-canary-v1' | 'team-v1';
|
|
2883
3605
|
name: string;
|
|
2884
3606
|
recurring_price_usd: number;
|
|
2885
|
-
interval: 'month';
|
|
3607
|
+
interval: 'month' | 'year';
|
|
2886
3608
|
included_credits: number;
|
|
2887
3609
|
purchased_credit_price_usd: number;
|
|
2888
3610
|
};
|
|
@@ -2936,7 +3658,7 @@ type TargetBillingMutationResult = {
|
|
|
2936
3658
|
};
|
|
2937
3659
|
type TargetBillingPlanTransitionOptions = {
|
|
2938
3660
|
action: 'start_or_change';
|
|
2939
|
-
targetPlanSku: 'payg-v1' | 'builder-v1' | 'team-v1';
|
|
3661
|
+
targetPlanSku: 'payg-v1' | 'builder-v1' | 'growth-v1' | 'growth-canary-v1' | 'team-v1';
|
|
2940
3662
|
idempotencyKey: string;
|
|
2941
3663
|
} | {
|
|
2942
3664
|
action: 'cancel' | 'undo_cancel';
|
|
@@ -3016,7 +3738,12 @@ type WorkspaceCreateResult = {
|
|
|
3016
3738
|
org_name: string;
|
|
3017
3739
|
org_slug: string;
|
|
3018
3740
|
plan_sku: 'payg-v1';
|
|
3019
|
-
|
|
3741
|
+
/**
|
|
3742
|
+
* The PAYG rate policy the workspace was provisioned onto, taken from the
|
|
3743
|
+
* catalog revision its operation pinned: v4 bound payg-rates-v2, v5 binds
|
|
3744
|
+
* the flat payg-rates-v3.
|
|
3745
|
+
*/
|
|
3746
|
+
rate_policy_ref: 'payg-rates-v2' | 'payg-rates-v3';
|
|
3020
3747
|
operation: {
|
|
3021
3748
|
id: string;
|
|
3022
3749
|
state: 'completed';
|
|
@@ -3161,6 +3888,14 @@ declare class DeeplineClient {
|
|
|
3161
3888
|
* @returns Matching active secret metadata, or `null`.
|
|
3162
3889
|
*/
|
|
3163
3890
|
checkSecret(name: string): Promise<PlaySecretMetadata | null>;
|
|
3891
|
+
/** Check effective scope and active-version health without reading the value.
|
|
3892
|
+
* Without playName, checks the organization-scoped secret only. With a Play
|
|
3893
|
+
* name, an active Play secret takes precedence; a deleted/disabled Play
|
|
3894
|
+
* secret falls back to the organization-scoped secret.
|
|
3895
|
+
*/
|
|
3896
|
+
inspectSecret(name: string, options?: {
|
|
3897
|
+
playName?: string;
|
|
3898
|
+
}): Promise<PlaySecretCheck>;
|
|
3164
3899
|
/**
|
|
3165
3900
|
* List all available tools.
|
|
3166
3901
|
*
|
|
@@ -3695,6 +4430,8 @@ declare class DeeplineClient {
|
|
|
3695
4430
|
* ```
|
|
3696
4431
|
*/
|
|
3697
4432
|
listRuns(options: RunsListOptions): Promise<PlayRunListItem[]>;
|
|
4433
|
+
/** Read one run page without discarding server pagination metadata. */
|
|
4434
|
+
listRunsPage(options: RunsListOptions): Promise<RunsListPage>;
|
|
3698
4435
|
/**
|
|
3699
4436
|
* Observe one run's live events. Uses the Convex Run Snapshot subscription
|
|
3700
4437
|
* transport first (ADR-0008), then falls back to the canonical SSE stream
|
|
@@ -3799,19 +4536,19 @@ declare class DeeplineClient {
|
|
|
3799
4536
|
reason?: string;
|
|
3800
4537
|
}): Promise<StopAllPlayRunsResult>;
|
|
3801
4538
|
/**
|
|
3802
|
-
* List callable plays
|
|
4539
|
+
* List one page of callable plays; grep retains exhaustive matching results.
|
|
4540
|
+
* Use listPlaysPage to retain pagination metadata.
|
|
3803
4541
|
*
|
|
3804
4542
|
* Pass `origin: "prebuilt"` for Deepline-managed prebuilts or
|
|
3805
4543
|
* `origin: "owned"` for org-owned plays.
|
|
3806
4544
|
*/
|
|
3807
|
-
listPlays(options?:
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
}): Promise<PlayListItem[]>;
|
|
4545
|
+
listPlays(options?: PlaysListOptions): Promise<PlayListItem[]>;
|
|
4546
|
+
/** Read one bounded inventory page; cursor continues the same filters. */
|
|
4547
|
+
listPlaysPage(options?: PlaysListOptions & {
|
|
4548
|
+
limit?: number;
|
|
4549
|
+
cursor?: string | null;
|
|
4550
|
+
}): Promise<PlaysListPage>;
|
|
4551
|
+
private requestPlaysPage;
|
|
3815
4552
|
/** Set whether an org-owned Play sorts before unpinned Plays. */
|
|
3816
4553
|
setPlayPinned(playName: string, pinned: boolean): Promise<{
|
|
3817
4554
|
name: string;
|
|
@@ -3862,6 +4599,12 @@ declare class DeeplineClient {
|
|
|
3862
4599
|
updateNotificationDlqDelivery(deliveryId: string, action: 'retry' | 'archive'): Promise<unknown>;
|
|
3863
4600
|
/** List the workspace's named notification rules. */
|
|
3864
4601
|
getNotifications(): Promise<ProductNotificationSettings>;
|
|
4602
|
+
/** Read the group-based product-notification configuration and rule catalog. */
|
|
4603
|
+
getNotificationConfiguration(): Promise<ProductNotificationConfigurationResponse>;
|
|
4604
|
+
/** Atomically apply one retry-safe desired configuration change. */
|
|
4605
|
+
changeNotificationConfiguration(expectedWorkspaceVersion: number, change: ProductNotificationConfigurationChange): Promise<Pick<ProductNotificationConfigurationResponse, 'configuration'>>;
|
|
4606
|
+
/** Create one notification group and its destinations as a retry-safe unit. */
|
|
4607
|
+
createNotificationGroup(input: CreateNotificationGroupInput): Promise<CreateNotificationGroupResult>;
|
|
3865
4608
|
/** List Slack channels available to an already-connected Slack integration. */
|
|
3866
4609
|
listNotificationChannels(query?: string): Promise<{
|
|
3867
4610
|
identity: {
|
|
@@ -4170,6 +4913,12 @@ declare class DeeplineClient {
|
|
|
4170
4913
|
readMonitorsHealth(options?: {
|
|
4171
4914
|
fleetId?: string;
|
|
4172
4915
|
}): Promise<MonitorsHealth>;
|
|
4916
|
+
/** Submit durable monitor work; transport retries use the same idempotency key. */
|
|
4917
|
+
submitMonitorBatch(options: MonitorBatchSubmitOptions): Promise<MonitorBatchOperationResult>;
|
|
4918
|
+
/** Get durable batch progress and a bounded retained evidence page. */
|
|
4919
|
+
getMonitorBatch(operationId: string, options?: {
|
|
4920
|
+
cursor?: string | null;
|
|
4921
|
+
}): Promise<MonitorBatchOperationResult>;
|
|
4173
4922
|
/**
|
|
4174
4923
|
* The deployable monitor tools catalog. Pass a tool id (positional or
|
|
4175
4924
|
* `{ tool }`) to describe one tool's full payload/stream contract, or no tool
|
|
@@ -4640,7 +5389,13 @@ type PrebuiltPlayRef = {
|
|
|
4640
5389
|
readonly playName: string;
|
|
4641
5390
|
readonly name: string;
|
|
4642
5391
|
};
|
|
4643
|
-
type PlayReferenceLike = PlayAuthoringReferenceLike
|
|
5392
|
+
type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = PlayAuthoringReferenceLike<TInput>;
|
|
5393
|
+
/** Branded durable identity returned by ctx.runPlayAsync. */
|
|
5394
|
+
type PlayRunId = PlayRunId$1;
|
|
5395
|
+
/** Serializable reference to an independently scheduled Play Run. */
|
|
5396
|
+
type AsyncPlayRunRef = AsyncPlayRunRef$1;
|
|
5397
|
+
/** Author intent for an independently scheduled child Run. */
|
|
5398
|
+
type PlayAsyncCallOptions = PlayAuthoringAsyncCallOptions;
|
|
4644
5399
|
|
|
4645
5400
|
type PlayReturnObject = PlayReturnObject$1;
|
|
4646
5401
|
type PlayInputContract<TInput> = PlayAuthoringInputContract<TInput>;
|
|
@@ -5239,4 +5994,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
5239
5994
|
*/
|
|
5240
5995
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
5241
5996
|
|
|
5242
|
-
export { type
|
|
5997
|
+
export { type AsyncPlayRunRef, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CreateNotificationGroupInput, type CreateNotificationGroupResult, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LiveEventEnvelope, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|