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
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { monitorProviderUsdToRetailCredits } from '@deepline/monitors/billing/pricing';
|
|
2
|
+
import type {
|
|
3
|
+
MonitorCommercialModel,
|
|
4
|
+
MonitorPayloadPricingEntry,
|
|
5
|
+
MonitorPayloadPricingMap,
|
|
6
|
+
} from '@deepline/monitors/billing/types';
|
|
7
|
+
import { publicMonitorPricingEntry } from '@deepline/monitors/billing/public-pricing';
|
|
8
|
+
|
|
9
|
+
export const TAMRADAR_RADAR_TYPE_PRICING = {
|
|
10
|
+
company_job_openings: {
|
|
11
|
+
capability: 'company_radar',
|
|
12
|
+
label: 'Company job openings',
|
|
13
|
+
mode: 'monitor_usage',
|
|
14
|
+
providerCostUsd: 0.025,
|
|
15
|
+
unitLabel: 'finding',
|
|
16
|
+
},
|
|
17
|
+
company_promotions: {
|
|
18
|
+
capability: 'company_radar',
|
|
19
|
+
label: 'Company promotions',
|
|
20
|
+
mode: 'monitor_usage',
|
|
21
|
+
providerCostUsd: 0.035,
|
|
22
|
+
unitLabel: 'finding',
|
|
23
|
+
},
|
|
24
|
+
company_mentions: {
|
|
25
|
+
capability: 'company_radar',
|
|
26
|
+
label: 'Company mentions',
|
|
27
|
+
mode: 'monitor_usage',
|
|
28
|
+
providerCostUsd: 0.03,
|
|
29
|
+
unitLabel: 'finding',
|
|
30
|
+
},
|
|
31
|
+
// Source: TAMRadar per-update pricing (confidential/internal),
|
|
32
|
+
// https://tamradar.mintlify.app/api-reference/create-company-radar (new_hires).
|
|
33
|
+
company_new_hires: {
|
|
34
|
+
capability: 'company_radar',
|
|
35
|
+
label: 'Company new hires',
|
|
36
|
+
mode: 'monitor_usage',
|
|
37
|
+
providerCostUsd: 0.035,
|
|
38
|
+
unitLabel: 'finding',
|
|
39
|
+
},
|
|
40
|
+
// Source: TAMRadar per-update pricing (confidential/internal),
|
|
41
|
+
// https://tamradar.mintlify.app/api-reference/create-company-radar (reviews).
|
|
42
|
+
company_reviews: {
|
|
43
|
+
capability: 'company_radar',
|
|
44
|
+
label: 'Company reviews',
|
|
45
|
+
mode: 'monitor_usage',
|
|
46
|
+
providerCostUsd: 0.03,
|
|
47
|
+
unitLabel: 'finding',
|
|
48
|
+
},
|
|
49
|
+
// Source: TAMRadar per-update pricing (confidential/internal),
|
|
50
|
+
// https://tamradar.mintlify.app/api-reference/create-company-radar (social_posts).
|
|
51
|
+
company_social_posts: {
|
|
52
|
+
capability: 'company_radar',
|
|
53
|
+
label: 'Company social posts',
|
|
54
|
+
mode: 'monitor_usage',
|
|
55
|
+
providerCostUsd: 0.015,
|
|
56
|
+
unitLabel: 'finding',
|
|
57
|
+
},
|
|
58
|
+
// Source: TAMRadar per-update pricing (confidential/internal),
|
|
59
|
+
// https://tamradar.mintlify.app/api-reference/create-company-radar (social_engagements).
|
|
60
|
+
company_social_engagements: {
|
|
61
|
+
capability: 'company_radar',
|
|
62
|
+
label: 'Company social engagements',
|
|
63
|
+
mode: 'monitor_usage',
|
|
64
|
+
providerCostUsd: 0.025,
|
|
65
|
+
unitLabel: 'finding',
|
|
66
|
+
},
|
|
67
|
+
contact_job_changes: {
|
|
68
|
+
capability: 'contact_radar',
|
|
69
|
+
label: 'Contact job changes',
|
|
70
|
+
mode: 'monitor_subscription',
|
|
71
|
+
providerCostUsd: 0.07,
|
|
72
|
+
unitLabel: 'month',
|
|
73
|
+
periodDays: 30,
|
|
74
|
+
},
|
|
75
|
+
// Source: TAMRadar per-update pricing (confidential/internal),
|
|
76
|
+
// https://tamradar.mintlify.app/api-reference/create-contact-radar (social_posts).
|
|
77
|
+
contact_social_posts: {
|
|
78
|
+
capability: 'contact_radar',
|
|
79
|
+
label: 'Contact social posts',
|
|
80
|
+
mode: 'monitor_usage',
|
|
81
|
+
providerCostUsd: 0.03,
|
|
82
|
+
unitLabel: 'finding',
|
|
83
|
+
},
|
|
84
|
+
// Source: TAMRadar per-update pricing (confidential/internal),
|
|
85
|
+
// https://tamradar.mintlify.app/api-reference/create-contact-radar (social_engagements).
|
|
86
|
+
contact_social_engagements: {
|
|
87
|
+
capability: 'contact_radar',
|
|
88
|
+
label: 'Contact social engagements',
|
|
89
|
+
mode: 'monitor_usage',
|
|
90
|
+
providerCostUsd: 0.025,
|
|
91
|
+
unitLabel: 'finding',
|
|
92
|
+
},
|
|
93
|
+
industry_mentions: {
|
|
94
|
+
capability: 'industry_radar',
|
|
95
|
+
label: 'Industry mentions',
|
|
96
|
+
mode: 'monitor_usage',
|
|
97
|
+
providerCostUsd: 0.03,
|
|
98
|
+
unitLabel: 'finding',
|
|
99
|
+
},
|
|
100
|
+
// Source: TAMRadar per-update pricing (confidential/internal),
|
|
101
|
+
// https://tamradar.mintlify.app/api-reference/create-industry-radar (job_openings).
|
|
102
|
+
industry_job_openings: {
|
|
103
|
+
capability: 'industry_radar',
|
|
104
|
+
label: 'Industry job openings',
|
|
105
|
+
mode: 'monitor_usage',
|
|
106
|
+
providerCostUsd: 0.045,
|
|
107
|
+
unitLabel: 'finding',
|
|
108
|
+
},
|
|
109
|
+
// DORMANT (disabled from deployment — see TAMRADAR_DISABLED_RADAR_TYPES).
|
|
110
|
+
// Kept for reversibility: $150/mo resell-tier subscription pricing is retained
|
|
111
|
+
// so the type can be re-enabled per-partner by removing it from the disabled
|
|
112
|
+
// set. It is excluded from the deployable enum + public pricing surface.
|
|
113
|
+
industry_funding_rounds: {
|
|
114
|
+
capability: 'industry_radar',
|
|
115
|
+
label: 'Industry funding rounds',
|
|
116
|
+
mode: 'monitor_subscription',
|
|
117
|
+
providerCostUsd: 150,
|
|
118
|
+
unitLabel: 'month',
|
|
119
|
+
periodDays: 30,
|
|
120
|
+
},
|
|
121
|
+
} as const;
|
|
122
|
+
|
|
123
|
+
export type TamradarRadarType = keyof typeof TAMRADAR_RADAR_TYPE_PRICING;
|
|
124
|
+
|
|
125
|
+
export function isTamradarRadarType(value: string): value is TamradarRadarType {
|
|
126
|
+
return value in TAMRADAR_RADAR_TYPE_PRICING;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Explicit, documented off-switch for radar types that are modeled/priced but
|
|
130
|
+
// intentionally NOT deployable. Each entry carries a one-line CUSTOMER-FACING
|
|
131
|
+
// reason. Disabled types are EXCLUDED from every capability's deployable
|
|
132
|
+
// `radar_type` enum (so they never appear in `monitors tools`/CLI and payload
|
|
133
|
+
// validation rejects them) and from the public pricing surface — the deploy
|
|
134
|
+
// path surfaces a clear "radar type not available for deployment" error rather
|
|
135
|
+
// than a bare enum mismatch. Flipping a type back on is a one-line delete here
|
|
136
|
+
// (the two resell-tier types below carry resell rights and may be enabled
|
|
137
|
+
// per-partner).
|
|
138
|
+
//
|
|
139
|
+
// IMPORTANT (guardrail): these reason strings are CUSTOMER-VISIBLE — they flow
|
|
140
|
+
// into the deploy-rejection `suggestion` via `tamradarDisabledRadarTypeReason`.
|
|
141
|
+
// NEVER put provider spend, resell-tier prices, or any "$X/mo" figure here.
|
|
142
|
+
// Internal price context belongs in the per-entry code comment below, not in
|
|
143
|
+
// the returned string.
|
|
144
|
+
export const TAMRADAR_DISABLED_RADAR_TYPES: Record<string, string> = {
|
|
145
|
+
company_social_posts_cxo:
|
|
146
|
+
'This Deepline radar type is not available for self-serve deploy.',
|
|
147
|
+
// Internal note (NOT customer-visible): $250/mo resell-tier subscription.
|
|
148
|
+
industry_new_companies:
|
|
149
|
+
'This Deepline radar type is not available for self-serve deploy.',
|
|
150
|
+
// Internal note (NOT customer-visible): $150/mo resell-tier subscription.
|
|
151
|
+
industry_funding_rounds:
|
|
152
|
+
'This Deepline radar type is not available for self-serve deploy.',
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
export function isTamradarDisabledRadarType(value: string): boolean {
|
|
156
|
+
return value in TAMRADAR_DISABLED_RADAR_TYPES;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function tamradarDisabledRadarTypeReason(value: string): string | null {
|
|
160
|
+
return TAMRADAR_DISABLED_RADAR_TYPES[value] ?? null;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// Deployable radar types for a capability = priced under that capability MINUS
|
|
164
|
+
// any disabled type. This is the single source the capability enum + public
|
|
165
|
+
// pricing derive from, so disabling a type flips every surface at once.
|
|
166
|
+
export function tamradarDeployableRadarTypesForCapability(
|
|
167
|
+
capability: string,
|
|
168
|
+
): TamradarRadarType[] {
|
|
169
|
+
return (Object.keys(TAMRADAR_RADAR_TYPE_PRICING) as TamradarRadarType[])
|
|
170
|
+
.filter((radarType) => !isTamradarDisabledRadarType(radarType))
|
|
171
|
+
.filter(
|
|
172
|
+
(radarType) =>
|
|
173
|
+
TAMRADAR_RADAR_TYPE_PRICING[radarType].capability === capability,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function tamradarProviderCostKey(input: {
|
|
178
|
+
capability: string;
|
|
179
|
+
radarType: string;
|
|
180
|
+
}) {
|
|
181
|
+
return `deepline_native.${input.capability}.${input.radarType}`;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function entryForRadarType(
|
|
185
|
+
radarType: TamradarRadarType,
|
|
186
|
+
): MonitorPayloadPricingEntry {
|
|
187
|
+
const config = TAMRADAR_RADAR_TYPE_PRICING[radarType];
|
|
188
|
+
return {
|
|
189
|
+
label: config.label,
|
|
190
|
+
mode: config.mode,
|
|
191
|
+
providerCostKey: tamradarProviderCostKey({
|
|
192
|
+
capability: config.capability,
|
|
193
|
+
radarType,
|
|
194
|
+
}),
|
|
195
|
+
providerCostUsd: config.providerCostUsd,
|
|
196
|
+
retailCredits: monitorProviderUsdToRetailCredits(config.providerCostUsd),
|
|
197
|
+
unitLabel: config.unitLabel,
|
|
198
|
+
...(config.mode === 'monitor_subscription'
|
|
199
|
+
? { periodDays: config.periodDays }
|
|
200
|
+
: {}),
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function tamradarPricingEntryForRadarType(
|
|
205
|
+
radarType: string | null | undefined,
|
|
206
|
+
) {
|
|
207
|
+
if (!radarType || !isTamradarRadarType(radarType)) return null;
|
|
208
|
+
return entryForRadarType(radarType);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function tamradarPayloadPricingForCapability(
|
|
212
|
+
capability: string,
|
|
213
|
+
): MonitorPayloadPricingMap {
|
|
214
|
+
const entries = Object.fromEntries(
|
|
215
|
+
Object.keys(TAMRADAR_RADAR_TYPE_PRICING)
|
|
216
|
+
.filter(
|
|
217
|
+
(radarType): radarType is TamradarRadarType =>
|
|
218
|
+
TAMRADAR_RADAR_TYPE_PRICING[radarType as TamradarRadarType]
|
|
219
|
+
.capability === capability,
|
|
220
|
+
)
|
|
221
|
+
.map((radarType) => [radarType, entryForRadarType(radarType)]),
|
|
222
|
+
);
|
|
223
|
+
return {
|
|
224
|
+
discriminator: 'radar_type',
|
|
225
|
+
entries,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function tamradarCommercialModelForCapability(
|
|
230
|
+
capability: string,
|
|
231
|
+
): MonitorCommercialModel {
|
|
232
|
+
const pricing = tamradarPayloadPricingForCapability(capability);
|
|
233
|
+
return {
|
|
234
|
+
kind: 'provider_native_payload_map',
|
|
235
|
+
discriminator: pricing.discriminator,
|
|
236
|
+
entries: Object.fromEntries(
|
|
237
|
+
Object.entries(pricing.entries).map(([radarType, entry]) => [
|
|
238
|
+
radarType,
|
|
239
|
+
{
|
|
240
|
+
mode: entry.mode,
|
|
241
|
+
providerCostKey: entry.providerCostKey,
|
|
242
|
+
},
|
|
243
|
+
]),
|
|
244
|
+
),
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export function tamradarPublicPricingByRadarType(capability: string) {
|
|
249
|
+
const pricing = tamradarPayloadPricingForCapability(capability);
|
|
250
|
+
return Object.fromEntries(
|
|
251
|
+
Object.entries(pricing.entries)
|
|
252
|
+
// Never expose disabled radar types on the public/capability pricing
|
|
253
|
+
// surface — they are not deployable (see TAMRADAR_DISABLED_RADAR_TYPES).
|
|
254
|
+
.filter(([radarType]) => !isTamradarDisabledRadarType(radarType))
|
|
255
|
+
.map(([radarType, entry]) => [
|
|
256
|
+
radarType,
|
|
257
|
+
publicMonitorPricingEntry(entry),
|
|
258
|
+
]),
|
|
259
|
+
);
|
|
260
|
+
}
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
export type MonitorBillingPhase =
|
|
2
|
+
| 'create'
|
|
3
|
+
| 'reactivate'
|
|
4
|
+
| 'periodic_renewal'
|
|
5
|
+
| 'subscription_renewal'
|
|
6
|
+
| 'webhook_event'
|
|
7
|
+
| 'provider_execution'
|
|
8
|
+
| 'manual_update';
|
|
9
|
+
|
|
10
|
+
export type MonitorBillingState =
|
|
11
|
+
| 'active'
|
|
12
|
+
| 'preflight_denied'
|
|
13
|
+
| 'billing_pending'
|
|
14
|
+
| 'billing_suspended'
|
|
15
|
+
| 'upstream_disable_pending'
|
|
16
|
+
| 'upstream_disable_failed'
|
|
17
|
+
| 'disabled';
|
|
18
|
+
|
|
19
|
+
export type MonitorBillingEvidenceStatus = 'verified' | 'partially_unresolved';
|
|
20
|
+
|
|
21
|
+
export type MonitorBillingSourceKind =
|
|
22
|
+
| 'official_provider_docs'
|
|
23
|
+
| 'official_pricing_page'
|
|
24
|
+
| 'official_api_reference'
|
|
25
|
+
| 'provider_account_truth'
|
|
26
|
+
| 'provider_contract_or_invoice';
|
|
27
|
+
|
|
28
|
+
export type MonitorBillingSource = {
|
|
29
|
+
kind: MonitorBillingSourceKind;
|
|
30
|
+
label: string;
|
|
31
|
+
url: string;
|
|
32
|
+
verifiedAt: string;
|
|
33
|
+
notes?: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type MonitorEconomicResponsibility =
|
|
37
|
+
| 'deepline_managed_upstream'
|
|
38
|
+
| 'runtime_upstream_account_owner'
|
|
39
|
+
| 'customer_owned_upstream';
|
|
40
|
+
|
|
41
|
+
export type MonitorRetailChargeSource =
|
|
42
|
+
| 'plan_entitlement_formula'
|
|
43
|
+
| 'metered_monitor_default'
|
|
44
|
+
| 'configured_deepline_retail_fee'
|
|
45
|
+
| 'static_provider_unit_formula'
|
|
46
|
+
| 'provider_truth_markup';
|
|
47
|
+
|
|
48
|
+
export type MonitorRetailChargeComponent =
|
|
49
|
+
| {
|
|
50
|
+
kind: 'fixed_deepline_credits';
|
|
51
|
+
credits: number;
|
|
52
|
+
source: MonitorRetailChargeSource;
|
|
53
|
+
customerLabel: string;
|
|
54
|
+
basis?: {
|
|
55
|
+
minimumMonthlyPlanUsd?: number;
|
|
56
|
+
allocationDivisor?: number;
|
|
57
|
+
usdPerDeeplineCredit?: number;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
| {
|
|
61
|
+
kind: 'upstream_cost_markup';
|
|
62
|
+
multiplier: number;
|
|
63
|
+
source: 'static_provider_unit' | 'provider_truth';
|
|
64
|
+
customerLabel: string;
|
|
65
|
+
providerCostKey: string;
|
|
66
|
+
retailCredits?: number;
|
|
67
|
+
}
|
|
68
|
+
| {
|
|
69
|
+
kind: 'no_customer_charge';
|
|
70
|
+
reason:
|
|
71
|
+
| 'included_in_plan_entitlement'
|
|
72
|
+
| 'customer_paid_upstream'
|
|
73
|
+
| 'provider_documented_no_charge';
|
|
74
|
+
customerLabel: string;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type MonitorRetailCharge = {
|
|
78
|
+
phase: MonitorBillingPhase;
|
|
79
|
+
label: string;
|
|
80
|
+
components: readonly MonitorRetailChargeComponent[];
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type MonitorPayloadPricingMode =
|
|
84
|
+
| 'monitor_usage'
|
|
85
|
+
| 'monitor_subscription';
|
|
86
|
+
|
|
87
|
+
export type MonitorPayloadPricingEntry = {
|
|
88
|
+
label: string;
|
|
89
|
+
mode: MonitorPayloadPricingMode;
|
|
90
|
+
providerCostKey: string;
|
|
91
|
+
providerCostUsd: number;
|
|
92
|
+
retailCredits: number;
|
|
93
|
+
unitLabel: string;
|
|
94
|
+
periodDays?: number;
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export type MonitorPayloadPricingMap = {
|
|
98
|
+
discriminator: string;
|
|
99
|
+
entries: Record<string, MonitorPayloadPricingEntry>;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type MonitorProviderTruthSource =
|
|
103
|
+
| 'provider_response'
|
|
104
|
+
| 'provider_webhook'
|
|
105
|
+
| 'provider_account_balance_delta'
|
|
106
|
+
| 'provider_billing_export'
|
|
107
|
+
| 'provider_ledger_api';
|
|
108
|
+
|
|
109
|
+
export type MonitorProviderChargeComponent =
|
|
110
|
+
| {
|
|
111
|
+
kind: 'provider_documented_no_charge';
|
|
112
|
+
phase: MonitorBillingPhase;
|
|
113
|
+
scope: string;
|
|
114
|
+
sourceLabel: string;
|
|
115
|
+
}
|
|
116
|
+
| {
|
|
117
|
+
kind: 'provider_entitlement_cost';
|
|
118
|
+
phase: MonitorBillingPhase;
|
|
119
|
+
owner: MonitorEconomicResponsibility;
|
|
120
|
+
planName: string;
|
|
121
|
+
minimumMonthlyPlanUsd: number;
|
|
122
|
+
allocation: 'plan_entitlement_retail_formula' | 'customer_paid_directly';
|
|
123
|
+
usageIncluded: boolean;
|
|
124
|
+
}
|
|
125
|
+
| {
|
|
126
|
+
kind: 'provider_metered_static';
|
|
127
|
+
phase: MonitorBillingPhase;
|
|
128
|
+
providerCostKey: string;
|
|
129
|
+
unitName: string;
|
|
130
|
+
units: number | { min: number; max: number };
|
|
131
|
+
unitCostUsd: number;
|
|
132
|
+
retailCredits: number;
|
|
133
|
+
sourceLabel: string;
|
|
134
|
+
}
|
|
135
|
+
| {
|
|
136
|
+
kind: 'provider_metered_dynamic';
|
|
137
|
+
phase: MonitorBillingPhase;
|
|
138
|
+
truthSources: readonly MonitorProviderTruthSource[];
|
|
139
|
+
amountStatus: 'known_at_runtime';
|
|
140
|
+
sourceLabel: string;
|
|
141
|
+
}
|
|
142
|
+
| {
|
|
143
|
+
kind: 'provider_recurring_period';
|
|
144
|
+
phase: 'periodic_renewal';
|
|
145
|
+
periodDays: number;
|
|
146
|
+
amountStatus: 'known_at_runtime' | 'unresolved';
|
|
147
|
+
amountUsd?: number;
|
|
148
|
+
sourceLabel: string;
|
|
149
|
+
}
|
|
150
|
+
| {
|
|
151
|
+
kind: 'unresolved_deepline_paid_exposure';
|
|
152
|
+
phase: MonitorBillingPhase;
|
|
153
|
+
missing: readonly (
|
|
154
|
+
| 'exact_billing_mode'
|
|
155
|
+
| 'exact_usd_amount'
|
|
156
|
+
| 'provider_truth_source'
|
|
157
|
+
)[];
|
|
158
|
+
sourceLabel: string;
|
|
159
|
+
blocksPublicDeploy: true;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
export type MonitorBillingPolicy = {
|
|
163
|
+
provider: string;
|
|
164
|
+
capability: string;
|
|
165
|
+
providerCapability: string;
|
|
166
|
+
pricingMode:
|
|
167
|
+
| 'plan_entitlement'
|
|
168
|
+
| 'metered_static'
|
|
169
|
+
| 'metered_dynamic'
|
|
170
|
+
| 'mixed_provider_native'
|
|
171
|
+
| 'hybrid_unresolved';
|
|
172
|
+
evidenceStatus: MonitorBillingEvidenceStatus;
|
|
173
|
+
economicResponsibility: MonitorEconomicResponsibility;
|
|
174
|
+
sourceDocs: readonly MonitorBillingSource[];
|
|
175
|
+
upstreamMarkupMultiplier: number;
|
|
176
|
+
customerCreateCharge: MonitorRetailCharge;
|
|
177
|
+
customerReactivateCharge: MonitorRetailCharge;
|
|
178
|
+
customerUsageCharges: readonly MonitorRetailCharge[];
|
|
179
|
+
providerChargeComponents: readonly MonitorProviderChargeComponent[];
|
|
180
|
+
disableOnBillingFailure: boolean;
|
|
181
|
+
payloadPricing?: MonitorPayloadPricingMap;
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
export type MonitorBillingSession = {
|
|
185
|
+
key: string;
|
|
186
|
+
orgId: string;
|
|
187
|
+
monitorKey: string;
|
|
188
|
+
billingReason: MonitorBillingPhase;
|
|
189
|
+
providerEventIdOrPeriod: string;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export type MonitorCommercialModel =
|
|
193
|
+
| {
|
|
194
|
+
kind: 'wrapper_entitlement';
|
|
195
|
+
entitlementId: string;
|
|
196
|
+
limitId: string;
|
|
197
|
+
}
|
|
198
|
+
| {
|
|
199
|
+
kind: 'provider_native_usage';
|
|
200
|
+
}
|
|
201
|
+
| {
|
|
202
|
+
kind: 'provider_native_payload_map';
|
|
203
|
+
discriminator: string;
|
|
204
|
+
entries: Record<
|
|
205
|
+
string,
|
|
206
|
+
{
|
|
207
|
+
mode: MonitorPayloadPricingMode;
|
|
208
|
+
providerCostKey: string;
|
|
209
|
+
}
|
|
210
|
+
>;
|
|
211
|
+
}
|
|
212
|
+
| {
|
|
213
|
+
kind: 'unresolved_fail_closed';
|
|
214
|
+
reason: string;
|
|
215
|
+
};
|