deepline 0.3.90 → 0.3.92
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/dist/bundling-sources/sdk/src/client.ts +101 -6
- package/dist/bundling-sources/sdk/src/monitor-fleet-contract.ts +2 -556
- package/dist/bundling-sources/sdk/src/monitor-fleets.ts +2 -2
- package/dist/bundling-sources/sdk/src/release.ts +7 -12
- package/dist/bundling-sources/sdk/src/types.ts +6 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +549 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +96 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +320 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +106 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +5 -1
- package/dist/bundling-sources/shared_libs/monitors/monitor-fleet-limits.ts +2 -12
- package/dist/bundling-sources/shared_libs/monitors/package.json +107 -5
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +12 -7
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +48 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-lease-store.ts +578 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +521 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1378 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +1024 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-gateway-route-probe.ts +193 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +104 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +1844 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/process-tree.ts +40 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-gateway-drain.ts +262 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-surface.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +303 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-tuple-publication-guardian.ts +70 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-tuple-recovery.ts +519 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +280 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-production-gate.ts +159 -0
- package/dist/bundling-sources/shared_libs/play-runtime/integration-operation-reader-fence/memory-store.ts +114 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +44 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/child-play-resolver.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +3662 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/progress-sidecar.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-deadline.ts +84 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-gateway-transport.ts +91 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +424 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +321 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-sheet-persistence-retry.ts +110 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +625 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +46 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/webhook-receipt-retry.ts +50 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/repository-adapter.ts +24 -0
- package/dist/bundling-sources/shared_libs/plays/child-run-projection.ts +174 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +267 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/control-plane-types.ts +73 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/manifest.ts +162 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/project-serializer.ts +87 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/source-file-path.ts +26 -0
- package/dist/bundling-sources/shared_libs/plays/deploy/target-paths.ts +36 -0
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +400 -0
- package/dist/bundling-sources/shared_libs/plays/launch/prepare.ts +96 -0
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +385 -0
- package/dist/bundling-sources/shared_libs/plays/play-grep-search.ts +79 -6
- package/dist/bundling-sources/shared_libs/plays/play-reference.ts +117 -0
- package/dist/bundling-sources/shared_libs/plays/run-input-summary.ts +260 -0
- package/dist/bundling-sources/shared_libs/plays/run-summary-types.ts +49 -0
- package/dist/bundling-sources/shared_libs/plays/secrets/errors.ts +19 -0
- package/dist/bundling-sources/shared_libs/plays/sheet-filter.ts +347 -0
- package/dist/bundling-sources/shared_libs/plays/standard-webhooks.ts +117 -0
- package/dist/bundling-sources/shared_libs/plays/status-result.ts +388 -0
- package/dist/bundling-sources/shared_libs/plays/transform-factor-structure.ts +377 -0
- package/dist/bundling-sources/shared_libs/plays/webhook-payload.ts +113 -0
- package/dist/cli/index.js +369 -162
- package/dist/cli/index.mjs +369 -162
- package/dist/{compiler-manifest-BaJfE-5H.d.mts → compiler-manifest-x14KL83E.d.mts} +1 -1
- package/dist/{compiler-manifest-BaJfE-5H.d.ts → compiler-manifest-x14KL83E.d.ts} +1 -1
- package/dist/index.d.mts +45 -8
- package/dist/index.d.ts +45 -8
- package/dist/index.js +61 -14
- package/dist/index.mjs +61 -14
- package/dist/install-integrity.json +54 -2
- package/dist/monitor-fleet-contract.d.mts +3 -10
- package/dist/monitor-fleet-contract.d.ts +3 -10
- package/dist/monitor-fleet-contract.js +2 -0
- package/dist/monitor-fleet-contract.mjs +1 -1
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/release.d.mts +3 -3
- package/dist/release.d.ts +3 -3
- package/dist/release.js +7 -12
- package/dist/release.mjs +7 -12
- package/package.json +2 -2
|
@@ -3155,4 +3155,4 @@ type PlayCompilerManifest = {
|
|
|
3155
3155
|
authoringContract?: AdmittedPlayAuthoringContract;
|
|
3156
3156
|
};
|
|
3157
3157
|
|
|
3158
|
-
export { type
|
|
3158
|
+
export { type DeeplineGetterValue as $, type AsyncPlayRunRef as A, type PlayAuthoringCallOptions as B, type PlayAuthoringFetchResponse as C, type PlayAuthoringInputContract as D, type PlayRunId as E, type PlayAuthoringStepProgramStep as F, type PlayAuthoringRuntimeStepOptions as G, type PlaySqlListenerDeclaration as H, type PlaySqlListenerEvent as I, type PlaySqlListenerOperation as J, type PlaySqlQuery as K, type PlayAuthoringStepOptions as L, type PlayAuthoringStepProgram as M, type PlayAuthoringStepProgramResolver as N, type PlayAuthoringStepResolver as O, type PlayArtifactKind as P, type PlayToolExecutionRequest as Q, type PlayAuthoringStepProgramOptions as R, DeeplineError as S, type ToolExecuteResult as T, ToolExecutionError as U, type ToolExecutionErrorOptions as V, CtxFetchHttpError as W, DEEPLINE_EXTRACTOR_TARGETS as X, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as Y, type DeeplineEmailStatusGetterValue as Z, type DeeplineExtractorTarget as _, type PlayBundleArtifact as a, type DeeplineGetterValueMap as a0, JOB_CHANGE_STATUS_VALUES as a1, type JobChangeStatus as a2, PHONE_STATUS_VALUES as a3, type PhoneStatus as a4, type PlayDataset as a5, type PlayDatasetInput as a6, type PreviousCell as a7, ProviderTransientError as a8, type ProviderTransientErrorCategory as a9, type ProviderUnavailableError as aa, type ProviderUnavailableReason as ab, type ToolExecutionErrorCategory as ac, type ToolExecutionErrorOrigin as ad, type ToolExecutionFailureV1 as ae, type ToolExecutionNetworkKind as af, type ToolExecutionNetworkScope as ag, type ToolExecutionPublicDetails as ah, getProviderUnavailableReason as ai, isDeeplineExtractorTarget as aj, isProviderUnavailable as ak, isProviderWaterfallUnavailableError as al, type PlaySandboxRuntimeDeclaration as b, type PlayCompilerManifest as c, PLAY_ARTIFACT_KINDS as d, type PlayArtifactCompatibility as e, type PlayImportPolicy as f, type PlayPackageImport as g, type PlayRuntimeFeature as h, type PlayAuthoringColumnMap as i, type PlayAuthoringColumnResolver as j, type PlayAuthoringRuntimeContext as k, type PlayAuthoringConditionalStepResolver as l, type PlayAuthoringCsvInput as m, type PlayAuthoringCsvOptions as n, type PlayAuthoringDatasetBuilder as o, type PlayAuthoringDatasetColumnDefinition as p, type PlayAuthoringDatasetColumnRunInput as q, type PlayAuthoringReferenceLike as r, type PlayReturnObject as s, type PlayAuthoringDefineConfig as t, type PlayAuthoringDefinedPlay as u, type PlayAuthoringFetchOptions as v, type PlayAuthoringFileInput as w, type PlayAuthoringAsyncCallOptions as x, type PlayAuthoringBindings as y, type PlayAuthoringCallExecution as z };
|
|
@@ -3155,4 +3155,4 @@ type PlayCompilerManifest = {
|
|
|
3155
3155
|
authoringContract?: AdmittedPlayAuthoringContract;
|
|
3156
3156
|
};
|
|
3157
3157
|
|
|
3158
|
-
export { type
|
|
3158
|
+
export { type DeeplineGetterValue as $, type AsyncPlayRunRef as A, type PlayAuthoringCallOptions as B, type PlayAuthoringFetchResponse as C, type PlayAuthoringInputContract as D, type PlayRunId as E, type PlayAuthoringStepProgramStep as F, type PlayAuthoringRuntimeStepOptions as G, type PlaySqlListenerDeclaration as H, type PlaySqlListenerEvent as I, type PlaySqlListenerOperation as J, type PlaySqlQuery as K, type PlayAuthoringStepOptions as L, type PlayAuthoringStepProgram as M, type PlayAuthoringStepProgramResolver as N, type PlayAuthoringStepResolver as O, type PlayArtifactKind as P, type PlayToolExecutionRequest as Q, type PlayAuthoringStepProgramOptions as R, DeeplineError as S, type ToolExecuteResult as T, ToolExecutionError as U, type ToolExecutionErrorOptions as V, CtxFetchHttpError as W, DEEPLINE_EXTRACTOR_TARGETS as X, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as Y, type DeeplineEmailStatusGetterValue as Z, type DeeplineExtractorTarget as _, type PlayBundleArtifact as a, type DeeplineGetterValueMap as a0, JOB_CHANGE_STATUS_VALUES as a1, type JobChangeStatus as a2, PHONE_STATUS_VALUES as a3, type PhoneStatus as a4, type PlayDataset as a5, type PlayDatasetInput as a6, type PreviousCell as a7, ProviderTransientError as a8, type ProviderTransientErrorCategory as a9, type ProviderUnavailableError as aa, type ProviderUnavailableReason as ab, type ToolExecutionErrorCategory as ac, type ToolExecutionErrorOrigin as ad, type ToolExecutionFailureV1 as ae, type ToolExecutionNetworkKind as af, type ToolExecutionNetworkScope as ag, type ToolExecutionPublicDetails as ah, getProviderUnavailableReason as ai, isDeeplineExtractorTarget as aj, isProviderUnavailable as ak, isProviderWaterfallUnavailableError as al, type PlaySandboxRuntimeDeclaration as b, type PlayCompilerManifest as c, PLAY_ARTIFACT_KINDS as d, type PlayArtifactCompatibility as e, type PlayImportPolicy as f, type PlayPackageImport as g, type PlayRuntimeFeature as h, type PlayAuthoringColumnMap as i, type PlayAuthoringColumnResolver as j, type PlayAuthoringRuntimeContext as k, type PlayAuthoringConditionalStepResolver as l, type PlayAuthoringCsvInput as m, type PlayAuthoringCsvOptions as n, type PlayAuthoringDatasetBuilder as o, type PlayAuthoringDatasetColumnDefinition as p, type PlayAuthoringDatasetColumnRunInput as q, type PlayAuthoringReferenceLike as r, type PlayReturnObject as s, type PlayAuthoringDefineConfig as t, type PlayAuthoringDefinedPlay as u, type PlayAuthoringFetchOptions as v, type PlayAuthoringFileInput as w, type PlayAuthoringAsyncCallOptions as x, type PlayAuthoringBindings as y, type PlayAuthoringCallExecution as z };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { c as PlayCompilerManifest, A as AsyncPlayRunRef$1, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringAsyncCallOptions, y as PlayAuthoringBindings, z as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, D as PlayAuthoringInputContract, E as PlayRunId$1, F as PlayAuthoringStepProgramStep, G as PlayAuthoringRuntimeStepOptions, H as PlaySqlListenerDeclaration, I as PlaySqlListenerEvent, J as PlaySqlListenerOperation, K as PlaySqlQuery, L as PlayAuthoringStepOptions, M as PlayAuthoringStepProgram, N as PlayAuthoringStepProgramResolver, O as PlayAuthoringStepResolver, Q as PlayToolExecutionRequest, R as PlayAuthoringStepProgramOptions, S as DeeplineError, U as ToolExecutionError, V as ToolExecutionErrorOptions } from './compiler-manifest-x14KL83E.mjs';
|
|
3
|
+
export { W as CtxFetchHttpError, X as DEEPLINE_EXTRACTOR_TARGETS, Y as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Z as DeeplineEmailStatusGetterValue, _ as DeeplineExtractorTarget, $ as DeeplineGetterValue, a0 as DeeplineGetterValueMap, a1 as JOB_CHANGE_STATUS_VALUES, a2 as JobChangeStatus, a3 as PHONE_STATUS_VALUES, a4 as PhoneStatus, a5 as PlayDataset, a6 as PlayDatasetInput, a7 as PreviousCell, a8 as ProviderTransientError, a9 as ProviderTransientErrorCategory, aa as ProviderUnavailableError, ab as ProviderUnavailableReason, ac as ToolExecutionErrorCategory, ad as ToolExecutionErrorOrigin, ae as ToolExecutionFailureV1, af as ToolExecutionNetworkKind, ag as ToolExecutionNetworkScope, ah as ToolExecutionPublicDetails, ai as getProviderUnavailableReason, aj as isDeeplineExtractorTarget, ak as isProviderUnavailable, al as isProviderWaterfallUnavailableError } from './compiler-manifest-x14KL83E.mjs';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
5
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.mjs';
|
|
6
6
|
import '@sinclair/typebox';
|
|
@@ -159,6 +159,11 @@ type FixtureBehaviorV3 = {
|
|
|
159
159
|
};
|
|
160
160
|
type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
|
|
161
161
|
|
|
162
|
+
type PlayGrepMatch = {
|
|
163
|
+
field: 'name' | 'description' | 'provider' | 'source';
|
|
164
|
+
terms: string[];
|
|
165
|
+
};
|
|
166
|
+
|
|
162
167
|
declare const PLAY_RUNTIME_BACKENDS: {
|
|
163
168
|
readonly localProcess: "local_process";
|
|
164
169
|
readonly daytona: "daytona";
|
|
@@ -1397,6 +1402,9 @@ type PlayRunDatasetActions = {
|
|
|
1397
1402
|
};
|
|
1398
1403
|
exportCsv?: PlayRunExportAction & {
|
|
1399
1404
|
scope?: {
|
|
1405
|
+
kind: 'database';
|
|
1406
|
+
mutability: 'current';
|
|
1407
|
+
} | {
|
|
1400
1408
|
kind: 'run';
|
|
1401
1409
|
runId: string;
|
|
1402
1410
|
};
|
|
@@ -1938,6 +1946,8 @@ interface PlayListItem {
|
|
|
1938
1946
|
aliases?: string[];
|
|
1939
1947
|
triggerStatus?: PlayTriggerStatus;
|
|
1940
1948
|
costEstimate?: PlayCostEstimate;
|
|
1949
|
+
/** Indexed fields that matched a grep query. */
|
|
1950
|
+
matches?: PlayGrepMatch[];
|
|
1941
1951
|
}
|
|
1942
1952
|
/** Additive live trigger state shared by list, get, and describe. */
|
|
1943
1953
|
interface PlayTriggerStatus {
|
|
@@ -2949,6 +2959,7 @@ type PlaySecretMetadata = {
|
|
|
2949
2959
|
scope: 'org' | 'play';
|
|
2950
2960
|
playName?: string;
|
|
2951
2961
|
name: string;
|
|
2962
|
+
note?: string;
|
|
2952
2963
|
status: string;
|
|
2953
2964
|
hasValue: boolean;
|
|
2954
2965
|
createdAt: number;
|
|
@@ -3265,7 +3276,7 @@ type MonitorBatchOperationResult = {
|
|
|
3265
3276
|
rejoined?: boolean;
|
|
3266
3277
|
operation: {
|
|
3267
3278
|
runId: string;
|
|
3268
|
-
kind: 'audit' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3279
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3269
3280
|
state: 'running' | 'retry_scheduled' | 'completed' | 'failed';
|
|
3270
3281
|
dryRun: boolean;
|
|
3271
3282
|
scope: unknown;
|
|
@@ -3371,7 +3382,7 @@ type MonitorsHealth = {
|
|
|
3371
3382
|
/** Bounded current durable monitor work, if the server supports it. */
|
|
3372
3383
|
batch_operations?: Array<{
|
|
3373
3384
|
run_id: string;
|
|
3374
|
-
kind: 'audit' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3385
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3375
3386
|
state: 'running' | 'retry_scheduled';
|
|
3376
3387
|
updated_at: number;
|
|
3377
3388
|
next_attempt_at?: number;
|
|
@@ -3607,6 +3618,7 @@ type TargetBillingPlan = {
|
|
|
3607
3618
|
interval: 'month' | 'year';
|
|
3608
3619
|
included_credits: number;
|
|
3609
3620
|
purchased_credit_price_usd: number;
|
|
3621
|
+
acquisition_enabled: boolean;
|
|
3610
3622
|
};
|
|
3611
3623
|
type TargetBillingPlansResult = {
|
|
3612
3624
|
org_id: string;
|
|
@@ -3614,6 +3626,7 @@ type TargetBillingPlansResult = {
|
|
|
3614
3626
|
current_plan_sku: string;
|
|
3615
3627
|
pending_plan_sku: string | null;
|
|
3616
3628
|
acquisition_enabled: boolean;
|
|
3629
|
+
enabled_offer_keys: TargetBillingPlan['sku'][];
|
|
3617
3630
|
};
|
|
3618
3631
|
type TargetBillingStatusResult = {
|
|
3619
3632
|
org_id: string;
|
|
@@ -3641,6 +3654,8 @@ type TargetAutoRechargeResult = {
|
|
|
3641
3654
|
threshold_credits: number | null;
|
|
3642
3655
|
refill_to_credits: number | null;
|
|
3643
3656
|
rolling_limit_cents: null;
|
|
3657
|
+
purchase_limit_cents?: number | null;
|
|
3658
|
+
rolling_committed_cents?: number;
|
|
3644
3659
|
};
|
|
3645
3660
|
type TargetAutoRechargeUpdateOptions = {
|
|
3646
3661
|
enabled: false;
|
|
@@ -3649,6 +3664,8 @@ type TargetAutoRechargeUpdateOptions = {
|
|
|
3649
3664
|
enabled: true;
|
|
3650
3665
|
thresholdCredits: number;
|
|
3651
3666
|
refillToCredits: number;
|
|
3667
|
+
/** Maximum automatic purchases in a rolling 30-day window, in USD cents. */
|
|
3668
|
+
purchaseLimitCents?: number | null;
|
|
3652
3669
|
idempotencyKey: string;
|
|
3653
3670
|
};
|
|
3654
3671
|
type TargetBillingMutationResult = {
|
|
@@ -3760,10 +3777,8 @@ type WorkspacesNamespace = {
|
|
|
3760
3777
|
}) => Promise<WorkspaceCreateResult>;
|
|
3761
3778
|
};
|
|
3762
3779
|
/**
|
|
3763
|
-
* Public billing namespace
|
|
3764
|
-
*
|
|
3765
|
-
* Carries plans, subscription state, cancellation, and invoice/receipt history
|
|
3766
|
-
* so CLI commands and programmatic callers share one surface.
|
|
3780
|
+
* Public `client.billing` namespace for CLI commands and programmatic callers.
|
|
3781
|
+
* Covers plans, subscription state, cancellation, and invoice/receipt history.
|
|
3767
3782
|
*
|
|
3768
3783
|
* @sdkReference client 030 client.billing
|
|
3769
3784
|
*/
|
|
@@ -3799,6 +3814,14 @@ type BillingNamespace = {
|
|
|
3799
3814
|
/** Read and manage the Metronome-backed automatic recharge configuration. */
|
|
3800
3815
|
autoRecharge: {
|
|
3801
3816
|
get: () => Promise<TargetAutoRechargeResult>;
|
|
3817
|
+
trigger: (options?: {
|
|
3818
|
+
idempotencyKey: string;
|
|
3819
|
+
}) => Promise<{
|
|
3820
|
+
data: {
|
|
3821
|
+
status: string;
|
|
3822
|
+
operation_id?: string;
|
|
3823
|
+
};
|
|
3824
|
+
}>;
|
|
3802
3825
|
update: (options: TargetAutoRechargeUpdateOptions) => Promise<TargetAutoRechargeResult>;
|
|
3803
3826
|
};
|
|
3804
3827
|
/** Buy Deepline credits through a payment-gated Metronome commit. */
|
|
@@ -3806,6 +3829,12 @@ type BillingNamespace = {
|
|
|
3806
3829
|
credits: number;
|
|
3807
3830
|
idempotencyKey: string;
|
|
3808
3831
|
}) => Promise<TargetBillingMutationResult>;
|
|
3832
|
+
/** Inspect or retire the original purchase intent without starting a payment. */
|
|
3833
|
+
recoverCreditPurchase: (options: {
|
|
3834
|
+
credits: number;
|
|
3835
|
+
orgId: string;
|
|
3836
|
+
idempotencyKey: string;
|
|
3837
|
+
}) => Promise<TargetBillingMutationResult>;
|
|
3809
3838
|
/** Start, change, cancel, or undo a target plan transition. */
|
|
3810
3839
|
transitionPlan: (options: TargetBillingPlanTransitionOptions) => Promise<TargetBillingMutationResult>;
|
|
3811
3840
|
/** Create a Stripe-hosted billing Portal session. */
|
|
@@ -3896,6 +3925,8 @@ declare class DeeplineClient {
|
|
|
3896
3925
|
inspectSecret(name: string, options?: {
|
|
3897
3926
|
playName?: string;
|
|
3898
3927
|
}): Promise<PlaySecretCheck>;
|
|
3928
|
+
/** Add, replace, or clear the non-sensitive note attached to one secret. */
|
|
3929
|
+
updateSecretNote(secretId: string, note: string): Promise<PlaySecretMetadata>;
|
|
3899
3930
|
/**
|
|
3900
3931
|
* List all available tools.
|
|
3901
3932
|
*
|
|
@@ -4874,6 +4905,12 @@ declare class DeeplineClient {
|
|
|
4874
4905
|
credits: number;
|
|
4875
4906
|
idempotencyKey: string;
|
|
4876
4907
|
}): Promise<TargetBillingMutationResult>;
|
|
4908
|
+
/** Recover only the original workspace, credit amount, and purchase key; never charge. */
|
|
4909
|
+
recoverTargetBillingCreditPurchase(options: {
|
|
4910
|
+
credits: number;
|
|
4911
|
+
orgId: string;
|
|
4912
|
+
idempotencyKey: string;
|
|
4913
|
+
}): Promise<TargetBillingMutationResult>;
|
|
4877
4914
|
/**
|
|
4878
4915
|
* Start, change, cancel, or restore a target plan through one idempotent
|
|
4879
4916
|
* commercial operation.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { c as PlayCompilerManifest, A as AsyncPlayRunRef$1, i as PlayAuthoringColumnMap, j as PlayAuthoringColumnResolver, k as PlayAuthoringRuntimeContext, l as PlayAuthoringConditionalStepResolver, m as PlayAuthoringCsvInput, n as PlayAuthoringCsvOptions, o as PlayAuthoringDatasetBuilder, p as PlayAuthoringDatasetColumnDefinition, q as PlayAuthoringDatasetColumnRunInput, T as ToolExecuteResult, r as PlayAuthoringReferenceLike, s as PlayReturnObject$1, t as PlayAuthoringDefineConfig, u as PlayAuthoringDefinedPlay, v as PlayAuthoringFetchOptions, w as PlayAuthoringFileInput, x as PlayAuthoringAsyncCallOptions, y as PlayAuthoringBindings, z as PlayAuthoringCallExecution, B as PlayAuthoringCallOptions, C as PlayAuthoringFetchResponse, D as PlayAuthoringInputContract, E as PlayRunId$1, F as PlayAuthoringStepProgramStep, G as PlayAuthoringRuntimeStepOptions, H as PlaySqlListenerDeclaration, I as PlaySqlListenerEvent, J as PlaySqlListenerOperation, K as PlaySqlQuery, L as PlayAuthoringStepOptions, M as PlayAuthoringStepProgram, N as PlayAuthoringStepProgramResolver, O as PlayAuthoringStepResolver, Q as PlayToolExecutionRequest, R as PlayAuthoringStepProgramOptions, S as DeeplineError, U as ToolExecutionError, V as ToolExecutionErrorOptions } from './compiler-manifest-x14KL83E.js';
|
|
3
|
+
export { W as CtxFetchHttpError, X as DEEPLINE_EXTRACTOR_TARGETS, Y as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, Z as DeeplineEmailStatusGetterValue, _ as DeeplineExtractorTarget, $ as DeeplineGetterValue, a0 as DeeplineGetterValueMap, a1 as JOB_CHANGE_STATUS_VALUES, a2 as JobChangeStatus, a3 as PHONE_STATUS_VALUES, a4 as PhoneStatus, a5 as PlayDataset, a6 as PlayDatasetInput, a7 as PreviousCell, a8 as ProviderTransientError, a9 as ProviderTransientErrorCategory, aa as ProviderUnavailableError, ab as ProviderUnavailableReason, ac as ToolExecutionErrorCategory, ad as ToolExecutionErrorOrigin, ae as ToolExecutionFailureV1, af as ToolExecutionNetworkKind, ag as ToolExecutionNetworkScope, ah as ToolExecutionPublicDetails, ai as getProviderUnavailableReason, aj as isDeeplineExtractorTarget, ak as isProviderUnavailable, al as isProviderWaterfallUnavailableError } from './compiler-manifest-x14KL83E.js';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
5
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';
|
|
6
6
|
import '@sinclair/typebox';
|
|
@@ -159,6 +159,11 @@ type FixtureBehaviorV3 = {
|
|
|
159
159
|
};
|
|
160
160
|
type FixtureBehavior = FixtureBehaviorV1 | FixtureBehaviorV2 | FixtureBehaviorV3;
|
|
161
161
|
|
|
162
|
+
type PlayGrepMatch = {
|
|
163
|
+
field: 'name' | 'description' | 'provider' | 'source';
|
|
164
|
+
terms: string[];
|
|
165
|
+
};
|
|
166
|
+
|
|
162
167
|
declare const PLAY_RUNTIME_BACKENDS: {
|
|
163
168
|
readonly localProcess: "local_process";
|
|
164
169
|
readonly daytona: "daytona";
|
|
@@ -1397,6 +1402,9 @@ type PlayRunDatasetActions = {
|
|
|
1397
1402
|
};
|
|
1398
1403
|
exportCsv?: PlayRunExportAction & {
|
|
1399
1404
|
scope?: {
|
|
1405
|
+
kind: 'database';
|
|
1406
|
+
mutability: 'current';
|
|
1407
|
+
} | {
|
|
1400
1408
|
kind: 'run';
|
|
1401
1409
|
runId: string;
|
|
1402
1410
|
};
|
|
@@ -1938,6 +1946,8 @@ interface PlayListItem {
|
|
|
1938
1946
|
aliases?: string[];
|
|
1939
1947
|
triggerStatus?: PlayTriggerStatus;
|
|
1940
1948
|
costEstimate?: PlayCostEstimate;
|
|
1949
|
+
/** Indexed fields that matched a grep query. */
|
|
1950
|
+
matches?: PlayGrepMatch[];
|
|
1941
1951
|
}
|
|
1942
1952
|
/** Additive live trigger state shared by list, get, and describe. */
|
|
1943
1953
|
interface PlayTriggerStatus {
|
|
@@ -2949,6 +2959,7 @@ type PlaySecretMetadata = {
|
|
|
2949
2959
|
scope: 'org' | 'play';
|
|
2950
2960
|
playName?: string;
|
|
2951
2961
|
name: string;
|
|
2962
|
+
note?: string;
|
|
2952
2963
|
status: string;
|
|
2953
2964
|
hasValue: boolean;
|
|
2954
2965
|
createdAt: number;
|
|
@@ -3265,7 +3276,7 @@ type MonitorBatchOperationResult = {
|
|
|
3265
3276
|
rejoined?: boolean;
|
|
3266
3277
|
operation: {
|
|
3267
3278
|
runId: string;
|
|
3268
|
-
kind: 'audit' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3279
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'deploy' | 'repair';
|
|
3269
3280
|
state: 'running' | 'retry_scheduled' | 'completed' | 'failed';
|
|
3270
3281
|
dryRun: boolean;
|
|
3271
3282
|
scope: unknown;
|
|
@@ -3371,7 +3382,7 @@ type MonitorsHealth = {
|
|
|
3371
3382
|
/** Bounded current durable monitor work, if the server supports it. */
|
|
3372
3383
|
batch_operations?: Array<{
|
|
3373
3384
|
run_id: string;
|
|
3374
|
-
kind: 'audit' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3385
|
+
kind: 'audit' | 'converge' | 'deactivate' | 'reactivate' | 'repair' | 'deploy';
|
|
3375
3386
|
state: 'running' | 'retry_scheduled';
|
|
3376
3387
|
updated_at: number;
|
|
3377
3388
|
next_attempt_at?: number;
|
|
@@ -3607,6 +3618,7 @@ type TargetBillingPlan = {
|
|
|
3607
3618
|
interval: 'month' | 'year';
|
|
3608
3619
|
included_credits: number;
|
|
3609
3620
|
purchased_credit_price_usd: number;
|
|
3621
|
+
acquisition_enabled: boolean;
|
|
3610
3622
|
};
|
|
3611
3623
|
type TargetBillingPlansResult = {
|
|
3612
3624
|
org_id: string;
|
|
@@ -3614,6 +3626,7 @@ type TargetBillingPlansResult = {
|
|
|
3614
3626
|
current_plan_sku: string;
|
|
3615
3627
|
pending_plan_sku: string | null;
|
|
3616
3628
|
acquisition_enabled: boolean;
|
|
3629
|
+
enabled_offer_keys: TargetBillingPlan['sku'][];
|
|
3617
3630
|
};
|
|
3618
3631
|
type TargetBillingStatusResult = {
|
|
3619
3632
|
org_id: string;
|
|
@@ -3641,6 +3654,8 @@ type TargetAutoRechargeResult = {
|
|
|
3641
3654
|
threshold_credits: number | null;
|
|
3642
3655
|
refill_to_credits: number | null;
|
|
3643
3656
|
rolling_limit_cents: null;
|
|
3657
|
+
purchase_limit_cents?: number | null;
|
|
3658
|
+
rolling_committed_cents?: number;
|
|
3644
3659
|
};
|
|
3645
3660
|
type TargetAutoRechargeUpdateOptions = {
|
|
3646
3661
|
enabled: false;
|
|
@@ -3649,6 +3664,8 @@ type TargetAutoRechargeUpdateOptions = {
|
|
|
3649
3664
|
enabled: true;
|
|
3650
3665
|
thresholdCredits: number;
|
|
3651
3666
|
refillToCredits: number;
|
|
3667
|
+
/** Maximum automatic purchases in a rolling 30-day window, in USD cents. */
|
|
3668
|
+
purchaseLimitCents?: number | null;
|
|
3652
3669
|
idempotencyKey: string;
|
|
3653
3670
|
};
|
|
3654
3671
|
type TargetBillingMutationResult = {
|
|
@@ -3760,10 +3777,8 @@ type WorkspacesNamespace = {
|
|
|
3760
3777
|
}) => Promise<WorkspaceCreateResult>;
|
|
3761
3778
|
};
|
|
3762
3779
|
/**
|
|
3763
|
-
* Public billing namespace
|
|
3764
|
-
*
|
|
3765
|
-
* Carries plans, subscription state, cancellation, and invoice/receipt history
|
|
3766
|
-
* so CLI commands and programmatic callers share one surface.
|
|
3780
|
+
* Public `client.billing` namespace for CLI commands and programmatic callers.
|
|
3781
|
+
* Covers plans, subscription state, cancellation, and invoice/receipt history.
|
|
3767
3782
|
*
|
|
3768
3783
|
* @sdkReference client 030 client.billing
|
|
3769
3784
|
*/
|
|
@@ -3799,6 +3814,14 @@ type BillingNamespace = {
|
|
|
3799
3814
|
/** Read and manage the Metronome-backed automatic recharge configuration. */
|
|
3800
3815
|
autoRecharge: {
|
|
3801
3816
|
get: () => Promise<TargetAutoRechargeResult>;
|
|
3817
|
+
trigger: (options?: {
|
|
3818
|
+
idempotencyKey: string;
|
|
3819
|
+
}) => Promise<{
|
|
3820
|
+
data: {
|
|
3821
|
+
status: string;
|
|
3822
|
+
operation_id?: string;
|
|
3823
|
+
};
|
|
3824
|
+
}>;
|
|
3802
3825
|
update: (options: TargetAutoRechargeUpdateOptions) => Promise<TargetAutoRechargeResult>;
|
|
3803
3826
|
};
|
|
3804
3827
|
/** Buy Deepline credits through a payment-gated Metronome commit. */
|
|
@@ -3806,6 +3829,12 @@ type BillingNamespace = {
|
|
|
3806
3829
|
credits: number;
|
|
3807
3830
|
idempotencyKey: string;
|
|
3808
3831
|
}) => Promise<TargetBillingMutationResult>;
|
|
3832
|
+
/** Inspect or retire the original purchase intent without starting a payment. */
|
|
3833
|
+
recoverCreditPurchase: (options: {
|
|
3834
|
+
credits: number;
|
|
3835
|
+
orgId: string;
|
|
3836
|
+
idempotencyKey: string;
|
|
3837
|
+
}) => Promise<TargetBillingMutationResult>;
|
|
3809
3838
|
/** Start, change, cancel, or undo a target plan transition. */
|
|
3810
3839
|
transitionPlan: (options: TargetBillingPlanTransitionOptions) => Promise<TargetBillingMutationResult>;
|
|
3811
3840
|
/** Create a Stripe-hosted billing Portal session. */
|
|
@@ -3896,6 +3925,8 @@ declare class DeeplineClient {
|
|
|
3896
3925
|
inspectSecret(name: string, options?: {
|
|
3897
3926
|
playName?: string;
|
|
3898
3927
|
}): Promise<PlaySecretCheck>;
|
|
3928
|
+
/** Add, replace, or clear the non-sensitive note attached to one secret. */
|
|
3929
|
+
updateSecretNote(secretId: string, note: string): Promise<PlaySecretMetadata>;
|
|
3899
3930
|
/**
|
|
3900
3931
|
* List all available tools.
|
|
3901
3932
|
*
|
|
@@ -4874,6 +4905,12 @@ declare class DeeplineClient {
|
|
|
4874
4905
|
credits: number;
|
|
4875
4906
|
idempotencyKey: string;
|
|
4876
4907
|
}): Promise<TargetBillingMutationResult>;
|
|
4908
|
+
/** Recover only the original workspace, credit amount, and purchase key; never charge. */
|
|
4909
|
+
recoverTargetBillingCreditPurchase(options: {
|
|
4910
|
+
credits: number;
|
|
4911
|
+
orgId: string;
|
|
4912
|
+
idempotencyKey: string;
|
|
4913
|
+
}): Promise<TargetBillingMutationResult>;
|
|
4877
4914
|
/**
|
|
4878
4915
|
* Start, change, cancel, or restore a target plan through one idempotent
|
|
4879
4916
|
* commercial operation.
|
package/dist/index.js
CHANGED
|
@@ -855,27 +855,22 @@ var SDK_RELEASE = {
|
|
|
855
855
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
856
856
|
// getters keep their established compatibility behavior.
|
|
857
857
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
858
|
-
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
version: "0.3.90",
|
|
862
|
-
updateSummary: "Play grep now uses one source-only Convex full-text index. It no longer scans the registry, pages through the complete indexed match set, and rejects retired grep modes. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
858
|
+
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
859
|
+
version: "0.3.92",
|
|
860
|
+
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
863
861
|
packageCapabilities: {
|
|
864
862
|
updatePreferences: 1
|
|
865
863
|
},
|
|
866
864
|
contracts: {
|
|
867
865
|
api: {
|
|
868
866
|
name: "sdk-http-api",
|
|
869
|
-
//
|
|
870
|
-
//
|
|
871
|
-
// registry scanner nor another grep reader: every accepted grep request
|
|
872
|
-
// uses the same indexed query and retired flags fail at the API boundary.
|
|
867
|
+
// Concise Play grep has the current wire id. Older ids follow the
|
|
868
|
+
// standard API support window.
|
|
873
869
|
currentMajor: 3,
|
|
874
870
|
supportedMajors: [3, 2],
|
|
875
|
-
//
|
|
876
|
-
// accepted only while the API v2 support window is open.
|
|
871
|
+
// Older ids remain subject to the API support window.
|
|
877
872
|
legacyWireIds: [
|
|
878
|
-
"2026-09-play-grep-
|
|
873
|
+
"2026-09-play-grep-concise-results",
|
|
879
874
|
"2026-07-admin-cli-local-cutover",
|
|
880
875
|
"2026-07-native-monitor-launch-hard-cutover"
|
|
881
876
|
]
|
|
@@ -4613,9 +4608,19 @@ var DeeplineClient = class {
|
|
|
4613
4608
|
targetStatus: () => this.getTargetBillingStatus(),
|
|
4614
4609
|
autoRecharge: {
|
|
4615
4610
|
get: () => this.getTargetAutoRecharge(),
|
|
4611
|
+
trigger: (options2) => this.http.post(
|
|
4612
|
+
"/api/v2/billing/auto-recharge/trigger",
|
|
4613
|
+
{},
|
|
4614
|
+
{
|
|
4615
|
+
"Idempotency-Key": requireTargetBillingIdempotencyKey(
|
|
4616
|
+
options2?.idempotencyKey ?? globalThis.crypto.randomUUID()
|
|
4617
|
+
)
|
|
4618
|
+
}
|
|
4619
|
+
),
|
|
4616
4620
|
update: (options2) => this.updateTargetAutoRecharge(options2)
|
|
4617
4621
|
},
|
|
4618
4622
|
purchaseCredits: (options2) => this.purchaseTargetBillingCredits(options2),
|
|
4623
|
+
recoverCreditPurchase: (options2) => this.recoverTargetBillingCreditPurchase(options2),
|
|
4619
4624
|
transitionPlan: (options2) => this.transitionTargetBillingPlan(options2),
|
|
4620
4625
|
portalSession: () => this.createTargetBillingPortalSession()
|
|
4621
4626
|
};
|
|
@@ -4784,6 +4789,14 @@ var DeeplineClient = class {
|
|
|
4784
4789
|
if (options.playName !== void 0) params.set("play", options.playName);
|
|
4785
4790
|
return this.http.get(`/api/v2/secrets?${params.toString()}`);
|
|
4786
4791
|
}
|
|
4792
|
+
/** Add, replace, or clear the non-sensitive note attached to one secret. */
|
|
4793
|
+
async updateSecretNote(secretId, note) {
|
|
4794
|
+
const response = await this.http.patch(
|
|
4795
|
+
`/api/v2/secrets/${encodeURIComponent(secretId)}`,
|
|
4796
|
+
{ note }
|
|
4797
|
+
);
|
|
4798
|
+
return response.secret;
|
|
4799
|
+
}
|
|
4787
4800
|
// ——————————————————————————————————————————————————————————
|
|
4788
4801
|
// Tools
|
|
4789
4802
|
// ——————————————————————————————————————————————————————————
|
|
@@ -6977,7 +6990,8 @@ var DeeplineClient = class {
|
|
|
6977
6990
|
options.enabled ? {
|
|
6978
6991
|
enabled: true,
|
|
6979
6992
|
threshold_credits: options.thresholdCredits,
|
|
6980
|
-
refill_to_credits: options.refillToCredits
|
|
6993
|
+
refill_to_credits: options.refillToCredits,
|
|
6994
|
+
...options.purchaseLimitCents !== void 0 ? { purchase_limit_cents: options.purchaseLimitCents } : {}
|
|
6981
6995
|
} : { enabled: false },
|
|
6982
6996
|
{ "Idempotency-Key": idempotencyKey }
|
|
6983
6997
|
);
|
|
@@ -6998,6 +7012,39 @@ var DeeplineClient = class {
|
|
|
6998
7012
|
{ maxRetries: 0, exactUrlOnly: true }
|
|
6999
7013
|
);
|
|
7000
7014
|
}
|
|
7015
|
+
/** Recover only the original workspace, credit amount, and purchase key; never charge. */
|
|
7016
|
+
async recoverTargetBillingCreditPurchase(options) {
|
|
7017
|
+
if (typeof options.idempotencyKey !== "string") {
|
|
7018
|
+
throw new DeeplineError(
|
|
7019
|
+
"The original billing idempotencyKey is required.",
|
|
7020
|
+
void 0,
|
|
7021
|
+
"INVALID_BILLING_IDEMPOTENCY_KEY"
|
|
7022
|
+
);
|
|
7023
|
+
}
|
|
7024
|
+
const idempotencyKey = requireTargetBillingIdempotencyKey(
|
|
7025
|
+
options.idempotencyKey
|
|
7026
|
+
);
|
|
7027
|
+
if (!Number.isSafeInteger(options.credits) || options.credits <= 0) {
|
|
7028
|
+
throw new DeeplineError(
|
|
7029
|
+
"credits must be a positive safe integer.",
|
|
7030
|
+
void 0,
|
|
7031
|
+
"INVALID_CREDITS"
|
|
7032
|
+
);
|
|
7033
|
+
}
|
|
7034
|
+
if (typeof options.orgId !== "string" || !options.orgId.trim() || options.orgId !== options.orgId.trim()) {
|
|
7035
|
+
throw new DeeplineError(
|
|
7036
|
+
"The original orgId is required without surrounding whitespace.",
|
|
7037
|
+
void 0,
|
|
7038
|
+
"INVALID_ORG_ID"
|
|
7039
|
+
);
|
|
7040
|
+
}
|
|
7041
|
+
return this.http.post(
|
|
7042
|
+
"/api/v2/billing/credit-purchases/recover",
|
|
7043
|
+
{ credits: options.credits, org_id: options.orgId },
|
|
7044
|
+
{ "Idempotency-Key": idempotencyKey },
|
|
7045
|
+
{ maxRetries: 0, exactUrlOnly: true }
|
|
7046
|
+
);
|
|
7047
|
+
}
|
|
7001
7048
|
/**
|
|
7002
7049
|
* Start, change, cancel, or restore a target plan through one idempotent
|
|
7003
7050
|
* commercial operation.
|
|
@@ -11192,7 +11239,7 @@ function defineMonitor(definition) {
|
|
|
11192
11239
|
return definition;
|
|
11193
11240
|
}
|
|
11194
11241
|
|
|
11195
|
-
//
|
|
11242
|
+
// ../integration-contracts/monitor-fleet-contract.ts
|
|
11196
11243
|
var MONITOR_FLEET_MAX_MEMBERS = 1e3;
|
|
11197
11244
|
var MONITOR_FLEET_FRONTIER_MAX_ROWS = 1e4;
|
|
11198
11245
|
var MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = 1;
|
package/dist/index.mjs
CHANGED
|
@@ -767,27 +767,22 @@ var SDK_RELEASE = {
|
|
|
767
767
|
// available at toolResponse.rawV2 while toolResponse.raw and all declared
|
|
768
768
|
// getters keep their established compatibility behavior.
|
|
769
769
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
770
|
-
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
version: "0.3.90",
|
|
774
|
-
updateSummary: "Play grep now uses one source-only Convex full-text index. It no longer scans the registry, pages through the complete indexed match set, and rejects retired grep modes. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
770
|
+
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
+
version: "0.3.92",
|
|
772
|
+
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
775
773
|
packageCapabilities: {
|
|
776
774
|
updatePreferences: 1
|
|
777
775
|
},
|
|
778
776
|
contracts: {
|
|
779
777
|
api: {
|
|
780
778
|
name: "sdk-http-api",
|
|
781
|
-
//
|
|
782
|
-
//
|
|
783
|
-
// registry scanner nor another grep reader: every accepted grep request
|
|
784
|
-
// uses the same indexed query and retired flags fail at the API boundary.
|
|
779
|
+
// Concise Play grep has the current wire id. Older ids follow the
|
|
780
|
+
// standard API support window.
|
|
785
781
|
currentMajor: 3,
|
|
786
782
|
supportedMajors: [3, 2],
|
|
787
|
-
//
|
|
788
|
-
// accepted only while the API v2 support window is open.
|
|
783
|
+
// Older ids remain subject to the API support window.
|
|
789
784
|
legacyWireIds: [
|
|
790
|
-
"2026-09-play-grep-
|
|
785
|
+
"2026-09-play-grep-concise-results",
|
|
791
786
|
"2026-07-admin-cli-local-cutover",
|
|
792
787
|
"2026-07-native-monitor-launch-hard-cutover"
|
|
793
788
|
]
|
|
@@ -4525,9 +4520,19 @@ var DeeplineClient = class {
|
|
|
4525
4520
|
targetStatus: () => this.getTargetBillingStatus(),
|
|
4526
4521
|
autoRecharge: {
|
|
4527
4522
|
get: () => this.getTargetAutoRecharge(),
|
|
4523
|
+
trigger: (options2) => this.http.post(
|
|
4524
|
+
"/api/v2/billing/auto-recharge/trigger",
|
|
4525
|
+
{},
|
|
4526
|
+
{
|
|
4527
|
+
"Idempotency-Key": requireTargetBillingIdempotencyKey(
|
|
4528
|
+
options2?.idempotencyKey ?? globalThis.crypto.randomUUID()
|
|
4529
|
+
)
|
|
4530
|
+
}
|
|
4531
|
+
),
|
|
4528
4532
|
update: (options2) => this.updateTargetAutoRecharge(options2)
|
|
4529
4533
|
},
|
|
4530
4534
|
purchaseCredits: (options2) => this.purchaseTargetBillingCredits(options2),
|
|
4535
|
+
recoverCreditPurchase: (options2) => this.recoverTargetBillingCreditPurchase(options2),
|
|
4531
4536
|
transitionPlan: (options2) => this.transitionTargetBillingPlan(options2),
|
|
4532
4537
|
portalSession: () => this.createTargetBillingPortalSession()
|
|
4533
4538
|
};
|
|
@@ -4696,6 +4701,14 @@ var DeeplineClient = class {
|
|
|
4696
4701
|
if (options.playName !== void 0) params.set("play", options.playName);
|
|
4697
4702
|
return this.http.get(`/api/v2/secrets?${params.toString()}`);
|
|
4698
4703
|
}
|
|
4704
|
+
/** Add, replace, or clear the non-sensitive note attached to one secret. */
|
|
4705
|
+
async updateSecretNote(secretId, note) {
|
|
4706
|
+
const response = await this.http.patch(
|
|
4707
|
+
`/api/v2/secrets/${encodeURIComponent(secretId)}`,
|
|
4708
|
+
{ note }
|
|
4709
|
+
);
|
|
4710
|
+
return response.secret;
|
|
4711
|
+
}
|
|
4699
4712
|
// ——————————————————————————————————————————————————————————
|
|
4700
4713
|
// Tools
|
|
4701
4714
|
// ——————————————————————————————————————————————————————————
|
|
@@ -6889,7 +6902,8 @@ var DeeplineClient = class {
|
|
|
6889
6902
|
options.enabled ? {
|
|
6890
6903
|
enabled: true,
|
|
6891
6904
|
threshold_credits: options.thresholdCredits,
|
|
6892
|
-
refill_to_credits: options.refillToCredits
|
|
6905
|
+
refill_to_credits: options.refillToCredits,
|
|
6906
|
+
...options.purchaseLimitCents !== void 0 ? { purchase_limit_cents: options.purchaseLimitCents } : {}
|
|
6893
6907
|
} : { enabled: false },
|
|
6894
6908
|
{ "Idempotency-Key": idempotencyKey }
|
|
6895
6909
|
);
|
|
@@ -6910,6 +6924,39 @@ var DeeplineClient = class {
|
|
|
6910
6924
|
{ maxRetries: 0, exactUrlOnly: true }
|
|
6911
6925
|
);
|
|
6912
6926
|
}
|
|
6927
|
+
/** Recover only the original workspace, credit amount, and purchase key; never charge. */
|
|
6928
|
+
async recoverTargetBillingCreditPurchase(options) {
|
|
6929
|
+
if (typeof options.idempotencyKey !== "string") {
|
|
6930
|
+
throw new DeeplineError(
|
|
6931
|
+
"The original billing idempotencyKey is required.",
|
|
6932
|
+
void 0,
|
|
6933
|
+
"INVALID_BILLING_IDEMPOTENCY_KEY"
|
|
6934
|
+
);
|
|
6935
|
+
}
|
|
6936
|
+
const idempotencyKey = requireTargetBillingIdempotencyKey(
|
|
6937
|
+
options.idempotencyKey
|
|
6938
|
+
);
|
|
6939
|
+
if (!Number.isSafeInteger(options.credits) || options.credits <= 0) {
|
|
6940
|
+
throw new DeeplineError(
|
|
6941
|
+
"credits must be a positive safe integer.",
|
|
6942
|
+
void 0,
|
|
6943
|
+
"INVALID_CREDITS"
|
|
6944
|
+
);
|
|
6945
|
+
}
|
|
6946
|
+
if (typeof options.orgId !== "string" || !options.orgId.trim() || options.orgId !== options.orgId.trim()) {
|
|
6947
|
+
throw new DeeplineError(
|
|
6948
|
+
"The original orgId is required without surrounding whitespace.",
|
|
6949
|
+
void 0,
|
|
6950
|
+
"INVALID_ORG_ID"
|
|
6951
|
+
);
|
|
6952
|
+
}
|
|
6953
|
+
return this.http.post(
|
|
6954
|
+
"/api/v2/billing/credit-purchases/recover",
|
|
6955
|
+
{ credits: options.credits, org_id: options.orgId },
|
|
6956
|
+
{ "Idempotency-Key": idempotencyKey },
|
|
6957
|
+
{ maxRetries: 0, exactUrlOnly: true }
|
|
6958
|
+
);
|
|
6959
|
+
}
|
|
6913
6960
|
/**
|
|
6914
6961
|
* Start, change, cancel, or restore a target plan through one idempotent
|
|
6915
6962
|
* commercial operation.
|
|
@@ -11104,7 +11151,7 @@ function defineMonitor(definition) {
|
|
|
11104
11151
|
return definition;
|
|
11105
11152
|
}
|
|
11106
11153
|
|
|
11107
|
-
//
|
|
11154
|
+
// ../integration-contracts/monitor-fleet-contract.ts
|
|
11108
11155
|
var MONITOR_FLEET_MAX_MEMBERS = 1e3;
|
|
11109
11156
|
var MONITOR_FLEET_FRONTIER_MAX_ROWS = 1e4;
|
|
11110
11157
|
var MONITOR_FLEET_AUTHORING_CONTRACT_EDITION = 1;
|