deepline 0.3.87 → 0.3.89
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 +532 -2
- 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 +6 -0
- package/dist/bundling-sources/sdk/src/play.ts +15 -1
- package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +83 -4
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +16 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +263 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +9 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +122 -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 +90 -12
- package/dist/bundling-sources/shared_libs/play-runtime/async-play-invocation.ts +78 -0
- package/dist/bundling-sources/shared_libs/play-runtime/checkpoint-boundaries.ts +70 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +407 -53
- package/dist/bundling-sources/shared_libs/play-runtime/coordinator-headers.ts +1 -32
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +57 -0
- package/dist/bundling-sources/shared_libs/play-runtime/default-batch-strategies.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-protocol.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/lane-retirement-gate.ts +189 -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 +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +23 -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 +18 -4
- 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 +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +10 -8
- 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-scheduler-topology.ts +24 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +30 -1
- package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +6 -3
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +152 -17
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +19 -4
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +6 -14
- package/dist/bundling-sources/shared_libs/plays/core.ts +11 -6
- package/dist/bundling-sources/shared_libs/plays/docflow-binding-owner.ts +16 -11
- package/dist/bundling-sources/shared_libs/plays/resolve-static-pipeline.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/slug.ts +115 -0
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +44 -14
- 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 +560 -0
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +28 -0
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +59 -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/workspace.ts +38 -0
- package/dist/bundling-sources/shared_libs/security/internal-actor.ts +50 -0
- package/dist/cli/index.js +1065 -190
- package/dist/cli/index.mjs +1052 -177
- package/dist/{compiler-manifest-Dbov16F7.d.mts → compiler-manifest-DsLbQaew.d.mts} +132 -8
- package/dist/{compiler-manifest-Dbov16F7.d.ts → compiler-manifest-DsLbQaew.d.ts} +132 -8
- package/dist/index.d.mts +833 -11
- package/dist/index.d.ts +833 -11
- package/dist/index.js +467 -38
- package/dist/index.mjs +467 -38
- package/dist/install-integrity.json +20 -2
- 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/package.json +1 -1
|
@@ -711,7 +711,7 @@ type ToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Par
|
|
|
711
711
|
*/
|
|
712
712
|
type ToolExecuteResult<TResult = unknown, TMeta = Record<string, unknown>, TExtracted extends Record<string, unknown> = Partial<DeeplineGetterValueMap>, TLists extends Record<string, Record<string, unknown>> = Record<string, Record<string, unknown>>> = ToolExecuteResultBase<TResult, TMeta> & ToolExecuteResultAccessors<TExtracted, TLists>;
|
|
713
713
|
|
|
714
|
-
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6];
|
|
714
|
+
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6, 7];
|
|
715
715
|
type PlayAuthoringContractEdition = (typeof SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS)[number];
|
|
716
716
|
type PlaySqlListenerOperation = 'INSERT' | 'UPDATE' | 'DELETE';
|
|
717
717
|
type PlayStandardWebhookHeaderFamily = 'standard' | 'svix';
|
|
@@ -934,6 +934,8 @@ type PlayAuthoringDefinedPlay<TInput, TOutput extends PlayReturnObject, TContext
|
|
|
934
934
|
readonly runtime?: PlayAuthoringBindings<TInput>['runtime'];
|
|
935
935
|
readonly compatibility?: PlayAuthoringBindings<TInput>['compatibility'];
|
|
936
936
|
readonly playName: string;
|
|
937
|
+
/** Type-only input carrier used by typed Play-reference consumers. */
|
|
938
|
+
readonly __inputType?: TInput;
|
|
937
939
|
};
|
|
938
940
|
/** Canonical resolver shape for a customer-authored durable step. */
|
|
939
941
|
type PlayAuthoringStepResolver<Row, Value, TContext> = (row: Row, ctx: TContext, index: number, previousCell?: PreviousCell<Value>) => Value | Promise<Value>;
|
|
@@ -999,7 +1001,6 @@ type PlayAuthoringStepProgramStep<TContext> = {
|
|
|
999
1001
|
readonly resolver: PlayAuthoringStepResolver<Record<string, unknown>, unknown, TContext> | PlayAuthoringConditionalStepResolver<Record<string, unknown>, unknown, TContext> | PlayAuthoringStepProgramResolver<Record<string, unknown>, unknown, TContext>;
|
|
1000
1002
|
};
|
|
1001
1003
|
type PlayAuthoringColumnResolver<Row, Value, TContext> = PlayAuthoringStepResolver<Row, Value, TContext> | PlayAuthoringConditionalStepResolver<Row, Value, TContext> | PlayAuthoringRunnableStepProgram<Value, TContext>;
|
|
1002
|
-
type PlayAuthoringStepProgramOutput<TProgram> = TProgram extends PlayAuthoringStepProgram<unknown, infer Output, unknown, unknown> ? Output : never;
|
|
1003
1004
|
type PlayAuthoringDatasetRowKey<InputRow extends object> = (keyof InputRow & string) | readonly (keyof InputRow & string)[] | ((row: InputRow, index: number) => string | number | readonly unknown[]);
|
|
1004
1005
|
type PlayAuthoringDatasetDefinitionOptions<InputRow extends object> = {
|
|
1005
1006
|
key?: PlayAuthoringDatasetRowKey<InputRow>;
|
|
@@ -1029,7 +1030,7 @@ type PlayAuthoringDatasetBuilder<InputRow extends object, OutputRow extends obje
|
|
|
1029
1030
|
/** Define a nullable output column with a resolver and row-level options. */
|
|
1030
1031
|
withColumn<Name extends string, Value>(name: Name, resolver: PlayAuthoringStepResolver<OutputRow, Value, TContext> | PlayAuthoringRunnableStepProgram<Value, TContext>, options: PlayAuthoringStepOptions<OutputRow, Value>): PlayAuthoringDatasetBuilder<InputRow, OutputRow & Record<Name, Value | null>, TContext>;
|
|
1031
1032
|
/** Add all columns declared by one reusable step program. */
|
|
1032
|
-
withColumns<
|
|
1033
|
+
withColumns<ProgramOutput extends OutputRow, Return>(program: PlayAuthoringStepProgram<OutputRow, ProgramOutput, TContext, Return>): PlayAuthoringDatasetBuilder<InputRow, ProgramOutput, TContext>;
|
|
1033
1034
|
/** @deprecated Dataset `.step(...)` was replaced by `.withColumn(...)`. */
|
|
1034
1035
|
step<Name extends string, Value>(name: Name, resolver: PlayAuthoringColumnResolver<OutputRow, Value, TContext>): never;
|
|
1035
1036
|
/**
|
|
@@ -1040,13 +1041,31 @@ type PlayAuthoringDatasetBuilder<InputRow extends object, OutputRow extends obje
|
|
|
1040
1041
|
*/
|
|
1041
1042
|
run(options?: PlayAuthoringDatasetRunOptions<InputRow>): Promise<PlayDataset<OutputRow>>;
|
|
1042
1043
|
};
|
|
1043
|
-
type PlayAuthoringReferenceLike = {
|
|
1044
|
+
type PlayAuthoringReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = ({
|
|
1044
1045
|
readonly playName: string;
|
|
1045
1046
|
readonly name?: string;
|
|
1046
1047
|
} | {
|
|
1047
1048
|
readonly name: string;
|
|
1048
1049
|
readonly playName?: string;
|
|
1050
|
+
}) & {
|
|
1051
|
+
/** Type-only input carrier used by ctx.runPlayAsync. */
|
|
1052
|
+
readonly __inputType?: TInput;
|
|
1053
|
+
};
|
|
1054
|
+
declare const PLAY_RUN_ID_BRAND: unique symbol;
|
|
1055
|
+
/** Branded run identity returned inside {@link AsyncPlayRunRef}. */
|
|
1056
|
+
type PlayRunId = string & {
|
|
1057
|
+
readonly [PLAY_RUN_ID_BRAND]: 'PlayRunId';
|
|
1049
1058
|
};
|
|
1059
|
+
/**
|
|
1060
|
+
* Serializable reference returned after an async child Run is durable.
|
|
1061
|
+
* @sdkReference runtime 143 AsyncPlayRunRef
|
|
1062
|
+
*/
|
|
1063
|
+
type AsyncPlayRunRef = Readonly<{
|
|
1064
|
+
runId: PlayRunId;
|
|
1065
|
+
}>;
|
|
1066
|
+
type PlayAuthoringAsyncCallOptions = Readonly<{
|
|
1067
|
+
description: string;
|
|
1068
|
+
}>;
|
|
1050
1069
|
type PlayAuthoringCsvRenameMap = Record<string, string | readonly string[]>;
|
|
1051
1070
|
type PlayAuthoringFileInput<TMetadata = unknown> = string & {
|
|
1052
1071
|
readonly __deeplineFileInputMetadata?: TMetadata;
|
|
@@ -1238,6 +1257,20 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1238
1257
|
* @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
|
|
1239
1258
|
*/
|
|
1240
1259
|
runPlay<TOutput = unknown>(key: string, playRef: string | PlayAuthoringReferenceLike, input: Record<string, unknown>, options: PlayAuthoringCallOptions): Promise<TOutput>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Admit an independent scalar Play Run and return its durable identity after scheduler admission, before child completion.
|
|
1262
|
+
* @sdkReference runtime 141 ctx.runPlayAsync(key, playRef, input, options)
|
|
1263
|
+
*/
|
|
1264
|
+
runPlayAsync<TInput extends Record<string, unknown>>(
|
|
1265
|
+
/** Replay-stable identity for this launch site and row scope. */
|
|
1266
|
+
key: string,
|
|
1267
|
+
/** Independently published Play name or definePlay handle carrying its input type. */
|
|
1268
|
+
playRef: PlayAuthoringReferenceLike<TInput>,
|
|
1269
|
+
/** Input checked against the referenced definePlay handle when available. */
|
|
1270
|
+
input: NoInfer<TInput>,
|
|
1271
|
+
/** Human-readable launch purpose recorded in the parent's step history. */
|
|
1272
|
+
options: PlayAuthoringAsyncCallOptions): Promise<AsyncPlayRunRef>;
|
|
1273
|
+
runPlayAsync(key: string, playRef: string, input: Record<string, unknown>, options: PlayAuthoringAsyncCallOptions): Promise<AsyncPlayRunRef>;
|
|
1241
1274
|
/**
|
|
1242
1275
|
* Write a customer-safe line to the durable Run Log Stream. Omitting level
|
|
1243
1276
|
* preserves the historical info-level behavior.
|
|
@@ -2349,6 +2382,82 @@ declare const PLAY_AUTHORING_FIELD_REGISTRY: {
|
|
|
2349
2382
|
readonly description: "Unsupported legacy child-workflow timeout.";
|
|
2350
2383
|
readonly errorMessage: "ctx.runPlay timeoutMs is unsupported because child Plays execute inline.";
|
|
2351
2384
|
};
|
|
2385
|
+
readonly 'ctx.runPlayAsync.key': {
|
|
2386
|
+
readonly schema: _sinclair_typebox.TString;
|
|
2387
|
+
readonly fixtures: {
|
|
2388
|
+
readonly valid: "request-approval";
|
|
2389
|
+
readonly invalid: "";
|
|
2390
|
+
readonly absent: undefined;
|
|
2391
|
+
readonly unresolved: {
|
|
2392
|
+
readonly expression: "callKey";
|
|
2393
|
+
};
|
|
2394
|
+
readonly edition1: "request-approval";
|
|
2395
|
+
};
|
|
2396
|
+
readonly referenceType: "string";
|
|
2397
|
+
readonly required: true;
|
|
2398
|
+
readonly resolution: "runtime-dynamic";
|
|
2399
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2400
|
+
readonly description: "Stable identity for one independent child Play Run.";
|
|
2401
|
+
readonly errorMessage: "ctx.runPlayAsync key must be a non-empty string.";
|
|
2402
|
+
};
|
|
2403
|
+
readonly 'ctx.runPlayAsync.playRef': {
|
|
2404
|
+
readonly schema: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
2405
|
+
playName: _sinclair_typebox.TString;
|
|
2406
|
+
}>, _sinclair_typebox.TObject<{
|
|
2407
|
+
name: _sinclair_typebox.TString;
|
|
2408
|
+
}>]>]>;
|
|
2409
|
+
readonly fixtures: {
|
|
2410
|
+
readonly valid: "request-approval";
|
|
2411
|
+
readonly invalid: {};
|
|
2412
|
+
readonly absent: undefined;
|
|
2413
|
+
readonly unresolved: {
|
|
2414
|
+
readonly expression: "playRef";
|
|
2415
|
+
};
|
|
2416
|
+
readonly edition1: "request-approval";
|
|
2417
|
+
};
|
|
2418
|
+
readonly referenceType: "string | PlayReferenceLike";
|
|
2419
|
+
readonly required: true;
|
|
2420
|
+
readonly resolution: "runtime-dynamic";
|
|
2421
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2422
|
+
readonly description: "Independently published scalar child Play name or strongly typed definition handle.";
|
|
2423
|
+
readonly errorMessage: "ctx.runPlayAsync playRef must be a non-empty Play name or definition handle.";
|
|
2424
|
+
};
|
|
2425
|
+
readonly 'ctx.runPlayAsync.input': {
|
|
2426
|
+
readonly schema: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>;
|
|
2427
|
+
readonly fixtures: {
|
|
2428
|
+
readonly valid: {
|
|
2429
|
+
readonly draftId: "draft-1";
|
|
2430
|
+
};
|
|
2431
|
+
readonly invalid: "draft-1";
|
|
2432
|
+
readonly absent: undefined;
|
|
2433
|
+
readonly unresolved: "childInput";
|
|
2434
|
+
readonly edition1: {};
|
|
2435
|
+
};
|
|
2436
|
+
readonly referenceType: "Record<string, unknown>";
|
|
2437
|
+
readonly required: true;
|
|
2438
|
+
readonly resolution: "runtime-dynamic";
|
|
2439
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2440
|
+
readonly description: "Scalar input object submitted to the independent child Run.";
|
|
2441
|
+
readonly errorMessage: "ctx.runPlayAsync input must be an object.";
|
|
2442
|
+
};
|
|
2443
|
+
readonly 'ctx.runPlayAsync.options.description': {
|
|
2444
|
+
readonly schema: _sinclair_typebox.TString;
|
|
2445
|
+
readonly fixtures: {
|
|
2446
|
+
readonly valid: "Request approval.";
|
|
2447
|
+
readonly invalid: "";
|
|
2448
|
+
readonly absent: undefined;
|
|
2449
|
+
readonly unresolved: {
|
|
2450
|
+
readonly expression: "description";
|
|
2451
|
+
};
|
|
2452
|
+
readonly edition1: "Request approval.";
|
|
2453
|
+
};
|
|
2454
|
+
readonly referenceType: "string";
|
|
2455
|
+
readonly required: true;
|
|
2456
|
+
readonly resolution: "runtime-dynamic";
|
|
2457
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2458
|
+
readonly description: "Non-empty purpose for one independent child Play Run.";
|
|
2459
|
+
readonly errorMessage: "ctx.runPlayAsync options.description must be non-empty.";
|
|
2460
|
+
};
|
|
2352
2461
|
readonly 'runtime.timeout': {
|
|
2353
2462
|
readonly schema: _sinclair_typebox.TString;
|
|
2354
2463
|
readonly fixtures: {
|
|
@@ -2643,10 +2752,13 @@ type PlayImportPolicy = {
|
|
|
2643
2752
|
};
|
|
2644
2753
|
type PlayRuntimeFeature = 'artifact_storage' | 'checkpoint_resume' | 'durable_sleep' | 'packaged_files';
|
|
2645
2754
|
type PlayArtifactCompatibility = {
|
|
2646
|
-
|
|
2755
|
+
/** Historical marker carried by stored artifacts. Nothing branches on it. */
|
|
2756
|
+
apiVersion?: number;
|
|
2647
2757
|
artifactVersion: number;
|
|
2648
|
-
|
|
2649
|
-
|
|
2758
|
+
/** Historical marker carried by stored artifacts. Every runner reads every artifact. */
|
|
2759
|
+
minRunnerVersion?: number;
|
|
2760
|
+
/** Historical marker carried by stored artifacts. Capabilities are named per operation. */
|
|
2761
|
+
runtimeFeatures?: PlayRuntimeFeature[];
|
|
2650
2762
|
runtimeBackend?: string | null;
|
|
2651
2763
|
/** Missing preserves the legacy schema used before this field existed. */
|
|
2652
2764
|
toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
|
|
@@ -2964,6 +3076,18 @@ type PlayStaticSubstep = PlayStaticSubstepMetadata & ({
|
|
|
2964
3076
|
sourceRange?: PlayStaticSourceRange;
|
|
2965
3077
|
callDepth?: number;
|
|
2966
3078
|
callPath?: string[];
|
|
3079
|
+
} | {
|
|
3080
|
+
type: 'play_launch';
|
|
3081
|
+
playId: string;
|
|
3082
|
+
field: string;
|
|
3083
|
+
inLoop?: boolean;
|
|
3084
|
+
pipeline?: PlayStaticPipeline | null;
|
|
3085
|
+
cycleDetected?: boolean;
|
|
3086
|
+
resolutionError?: string;
|
|
3087
|
+
description?: string;
|
|
3088
|
+
sourceRange?: PlayStaticSourceRange;
|
|
3089
|
+
callDepth?: number;
|
|
3090
|
+
callPath?: string[];
|
|
2967
3091
|
} | {
|
|
2968
3092
|
type: 'control_flow';
|
|
2969
3093
|
kind: 'conditional' | 'loop';
|
|
@@ -3029,4 +3153,4 @@ type PlayCompilerManifest = {
|
|
|
3029
3153
|
authoringContract?: AdmittedPlayAuthoringContract;
|
|
3030
3154
|
};
|
|
3031
3155
|
|
|
3032
|
-
export { type
|
|
3156
|
+
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 };
|
|
@@ -711,7 +711,7 @@ type ToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Par
|
|
|
711
711
|
*/
|
|
712
712
|
type ToolExecuteResult<TResult = unknown, TMeta = Record<string, unknown>, TExtracted extends Record<string, unknown> = Partial<DeeplineGetterValueMap>, TLists extends Record<string, Record<string, unknown>> = Record<string, Record<string, unknown>>> = ToolExecuteResultBase<TResult, TMeta> & ToolExecuteResultAccessors<TExtracted, TLists>;
|
|
713
713
|
|
|
714
|
-
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6];
|
|
714
|
+
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6, 7];
|
|
715
715
|
type PlayAuthoringContractEdition = (typeof SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS)[number];
|
|
716
716
|
type PlaySqlListenerOperation = 'INSERT' | 'UPDATE' | 'DELETE';
|
|
717
717
|
type PlayStandardWebhookHeaderFamily = 'standard' | 'svix';
|
|
@@ -934,6 +934,8 @@ type PlayAuthoringDefinedPlay<TInput, TOutput extends PlayReturnObject, TContext
|
|
|
934
934
|
readonly runtime?: PlayAuthoringBindings<TInput>['runtime'];
|
|
935
935
|
readonly compatibility?: PlayAuthoringBindings<TInput>['compatibility'];
|
|
936
936
|
readonly playName: string;
|
|
937
|
+
/** Type-only input carrier used by typed Play-reference consumers. */
|
|
938
|
+
readonly __inputType?: TInput;
|
|
937
939
|
};
|
|
938
940
|
/** Canonical resolver shape for a customer-authored durable step. */
|
|
939
941
|
type PlayAuthoringStepResolver<Row, Value, TContext> = (row: Row, ctx: TContext, index: number, previousCell?: PreviousCell<Value>) => Value | Promise<Value>;
|
|
@@ -999,7 +1001,6 @@ type PlayAuthoringStepProgramStep<TContext> = {
|
|
|
999
1001
|
readonly resolver: PlayAuthoringStepResolver<Record<string, unknown>, unknown, TContext> | PlayAuthoringConditionalStepResolver<Record<string, unknown>, unknown, TContext> | PlayAuthoringStepProgramResolver<Record<string, unknown>, unknown, TContext>;
|
|
1000
1002
|
};
|
|
1001
1003
|
type PlayAuthoringColumnResolver<Row, Value, TContext> = PlayAuthoringStepResolver<Row, Value, TContext> | PlayAuthoringConditionalStepResolver<Row, Value, TContext> | PlayAuthoringRunnableStepProgram<Value, TContext>;
|
|
1002
|
-
type PlayAuthoringStepProgramOutput<TProgram> = TProgram extends PlayAuthoringStepProgram<unknown, infer Output, unknown, unknown> ? Output : never;
|
|
1003
1004
|
type PlayAuthoringDatasetRowKey<InputRow extends object> = (keyof InputRow & string) | readonly (keyof InputRow & string)[] | ((row: InputRow, index: number) => string | number | readonly unknown[]);
|
|
1004
1005
|
type PlayAuthoringDatasetDefinitionOptions<InputRow extends object> = {
|
|
1005
1006
|
key?: PlayAuthoringDatasetRowKey<InputRow>;
|
|
@@ -1029,7 +1030,7 @@ type PlayAuthoringDatasetBuilder<InputRow extends object, OutputRow extends obje
|
|
|
1029
1030
|
/** Define a nullable output column with a resolver and row-level options. */
|
|
1030
1031
|
withColumn<Name extends string, Value>(name: Name, resolver: PlayAuthoringStepResolver<OutputRow, Value, TContext> | PlayAuthoringRunnableStepProgram<Value, TContext>, options: PlayAuthoringStepOptions<OutputRow, Value>): PlayAuthoringDatasetBuilder<InputRow, OutputRow & Record<Name, Value | null>, TContext>;
|
|
1031
1032
|
/** Add all columns declared by one reusable step program. */
|
|
1032
|
-
withColumns<
|
|
1033
|
+
withColumns<ProgramOutput extends OutputRow, Return>(program: PlayAuthoringStepProgram<OutputRow, ProgramOutput, TContext, Return>): PlayAuthoringDatasetBuilder<InputRow, ProgramOutput, TContext>;
|
|
1033
1034
|
/** @deprecated Dataset `.step(...)` was replaced by `.withColumn(...)`. */
|
|
1034
1035
|
step<Name extends string, Value>(name: Name, resolver: PlayAuthoringColumnResolver<OutputRow, Value, TContext>): never;
|
|
1035
1036
|
/**
|
|
@@ -1040,13 +1041,31 @@ type PlayAuthoringDatasetBuilder<InputRow extends object, OutputRow extends obje
|
|
|
1040
1041
|
*/
|
|
1041
1042
|
run(options?: PlayAuthoringDatasetRunOptions<InputRow>): Promise<PlayDataset<OutputRow>>;
|
|
1042
1043
|
};
|
|
1043
|
-
type PlayAuthoringReferenceLike = {
|
|
1044
|
+
type PlayAuthoringReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = ({
|
|
1044
1045
|
readonly playName: string;
|
|
1045
1046
|
readonly name?: string;
|
|
1046
1047
|
} | {
|
|
1047
1048
|
readonly name: string;
|
|
1048
1049
|
readonly playName?: string;
|
|
1050
|
+
}) & {
|
|
1051
|
+
/** Type-only input carrier used by ctx.runPlayAsync. */
|
|
1052
|
+
readonly __inputType?: TInput;
|
|
1053
|
+
};
|
|
1054
|
+
declare const PLAY_RUN_ID_BRAND: unique symbol;
|
|
1055
|
+
/** Branded run identity returned inside {@link AsyncPlayRunRef}. */
|
|
1056
|
+
type PlayRunId = string & {
|
|
1057
|
+
readonly [PLAY_RUN_ID_BRAND]: 'PlayRunId';
|
|
1049
1058
|
};
|
|
1059
|
+
/**
|
|
1060
|
+
* Serializable reference returned after an async child Run is durable.
|
|
1061
|
+
* @sdkReference runtime 143 AsyncPlayRunRef
|
|
1062
|
+
*/
|
|
1063
|
+
type AsyncPlayRunRef = Readonly<{
|
|
1064
|
+
runId: PlayRunId;
|
|
1065
|
+
}>;
|
|
1066
|
+
type PlayAuthoringAsyncCallOptions = Readonly<{
|
|
1067
|
+
description: string;
|
|
1068
|
+
}>;
|
|
1050
1069
|
type PlayAuthoringCsvRenameMap = Record<string, string | readonly string[]>;
|
|
1051
1070
|
type PlayAuthoringFileInput<TMetadata = unknown> = string & {
|
|
1052
1071
|
readonly __deeplineFileInputMetadata?: TMetadata;
|
|
@@ -1238,6 +1257,20 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1238
1257
|
* @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
|
|
1239
1258
|
*/
|
|
1240
1259
|
runPlay<TOutput = unknown>(key: string, playRef: string | PlayAuthoringReferenceLike, input: Record<string, unknown>, options: PlayAuthoringCallOptions): Promise<TOutput>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Admit an independent scalar Play Run and return its durable identity after scheduler admission, before child completion.
|
|
1262
|
+
* @sdkReference runtime 141 ctx.runPlayAsync(key, playRef, input, options)
|
|
1263
|
+
*/
|
|
1264
|
+
runPlayAsync<TInput extends Record<string, unknown>>(
|
|
1265
|
+
/** Replay-stable identity for this launch site and row scope. */
|
|
1266
|
+
key: string,
|
|
1267
|
+
/** Independently published Play name or definePlay handle carrying its input type. */
|
|
1268
|
+
playRef: PlayAuthoringReferenceLike<TInput>,
|
|
1269
|
+
/** Input checked against the referenced definePlay handle when available. */
|
|
1270
|
+
input: NoInfer<TInput>,
|
|
1271
|
+
/** Human-readable launch purpose recorded in the parent's step history. */
|
|
1272
|
+
options: PlayAuthoringAsyncCallOptions): Promise<AsyncPlayRunRef>;
|
|
1273
|
+
runPlayAsync(key: string, playRef: string, input: Record<string, unknown>, options: PlayAuthoringAsyncCallOptions): Promise<AsyncPlayRunRef>;
|
|
1241
1274
|
/**
|
|
1242
1275
|
* Write a customer-safe line to the durable Run Log Stream. Omitting level
|
|
1243
1276
|
* preserves the historical info-level behavior.
|
|
@@ -2349,6 +2382,82 @@ declare const PLAY_AUTHORING_FIELD_REGISTRY: {
|
|
|
2349
2382
|
readonly description: "Unsupported legacy child-workflow timeout.";
|
|
2350
2383
|
readonly errorMessage: "ctx.runPlay timeoutMs is unsupported because child Plays execute inline.";
|
|
2351
2384
|
};
|
|
2385
|
+
readonly 'ctx.runPlayAsync.key': {
|
|
2386
|
+
readonly schema: _sinclair_typebox.TString;
|
|
2387
|
+
readonly fixtures: {
|
|
2388
|
+
readonly valid: "request-approval";
|
|
2389
|
+
readonly invalid: "";
|
|
2390
|
+
readonly absent: undefined;
|
|
2391
|
+
readonly unresolved: {
|
|
2392
|
+
readonly expression: "callKey";
|
|
2393
|
+
};
|
|
2394
|
+
readonly edition1: "request-approval";
|
|
2395
|
+
};
|
|
2396
|
+
readonly referenceType: "string";
|
|
2397
|
+
readonly required: true;
|
|
2398
|
+
readonly resolution: "runtime-dynamic";
|
|
2399
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2400
|
+
readonly description: "Stable identity for one independent child Play Run.";
|
|
2401
|
+
readonly errorMessage: "ctx.runPlayAsync key must be a non-empty string.";
|
|
2402
|
+
};
|
|
2403
|
+
readonly 'ctx.runPlayAsync.playRef': {
|
|
2404
|
+
readonly schema: _sinclair_typebox.TUnion<[_sinclair_typebox.TString, _sinclair_typebox.TUnion<[_sinclair_typebox.TObject<{
|
|
2405
|
+
playName: _sinclair_typebox.TString;
|
|
2406
|
+
}>, _sinclair_typebox.TObject<{
|
|
2407
|
+
name: _sinclair_typebox.TString;
|
|
2408
|
+
}>]>]>;
|
|
2409
|
+
readonly fixtures: {
|
|
2410
|
+
readonly valid: "request-approval";
|
|
2411
|
+
readonly invalid: {};
|
|
2412
|
+
readonly absent: undefined;
|
|
2413
|
+
readonly unresolved: {
|
|
2414
|
+
readonly expression: "playRef";
|
|
2415
|
+
};
|
|
2416
|
+
readonly edition1: "request-approval";
|
|
2417
|
+
};
|
|
2418
|
+
readonly referenceType: "string | PlayReferenceLike";
|
|
2419
|
+
readonly required: true;
|
|
2420
|
+
readonly resolution: "runtime-dynamic";
|
|
2421
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2422
|
+
readonly description: "Independently published scalar child Play name or strongly typed definition handle.";
|
|
2423
|
+
readonly errorMessage: "ctx.runPlayAsync playRef must be a non-empty Play name or definition handle.";
|
|
2424
|
+
};
|
|
2425
|
+
readonly 'ctx.runPlayAsync.input': {
|
|
2426
|
+
readonly schema: _sinclair_typebox.TRecord<_sinclair_typebox.TString, _sinclair_typebox.TUnknown>;
|
|
2427
|
+
readonly fixtures: {
|
|
2428
|
+
readonly valid: {
|
|
2429
|
+
readonly draftId: "draft-1";
|
|
2430
|
+
};
|
|
2431
|
+
readonly invalid: "draft-1";
|
|
2432
|
+
readonly absent: undefined;
|
|
2433
|
+
readonly unresolved: "childInput";
|
|
2434
|
+
readonly edition1: {};
|
|
2435
|
+
};
|
|
2436
|
+
readonly referenceType: "Record<string, unknown>";
|
|
2437
|
+
readonly required: true;
|
|
2438
|
+
readonly resolution: "runtime-dynamic";
|
|
2439
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2440
|
+
readonly description: "Scalar input object submitted to the independent child Run.";
|
|
2441
|
+
readonly errorMessage: "ctx.runPlayAsync input must be an object.";
|
|
2442
|
+
};
|
|
2443
|
+
readonly 'ctx.runPlayAsync.options.description': {
|
|
2444
|
+
readonly schema: _sinclair_typebox.TString;
|
|
2445
|
+
readonly fixtures: {
|
|
2446
|
+
readonly valid: "Request approval.";
|
|
2447
|
+
readonly invalid: "";
|
|
2448
|
+
readonly absent: undefined;
|
|
2449
|
+
readonly unresolved: {
|
|
2450
|
+
readonly expression: "description";
|
|
2451
|
+
};
|
|
2452
|
+
readonly edition1: "Request approval.";
|
|
2453
|
+
};
|
|
2454
|
+
readonly referenceType: "string";
|
|
2455
|
+
readonly required: true;
|
|
2456
|
+
readonly resolution: "runtime-dynamic";
|
|
2457
|
+
readonly issueCode: "play_authoring_run_play_option_invalid";
|
|
2458
|
+
readonly description: "Non-empty purpose for one independent child Play Run.";
|
|
2459
|
+
readonly errorMessage: "ctx.runPlayAsync options.description must be non-empty.";
|
|
2460
|
+
};
|
|
2352
2461
|
readonly 'runtime.timeout': {
|
|
2353
2462
|
readonly schema: _sinclair_typebox.TString;
|
|
2354
2463
|
readonly fixtures: {
|
|
@@ -2643,10 +2752,13 @@ type PlayImportPolicy = {
|
|
|
2643
2752
|
};
|
|
2644
2753
|
type PlayRuntimeFeature = 'artifact_storage' | 'checkpoint_resume' | 'durable_sleep' | 'packaged_files';
|
|
2645
2754
|
type PlayArtifactCompatibility = {
|
|
2646
|
-
|
|
2755
|
+
/** Historical marker carried by stored artifacts. Nothing branches on it. */
|
|
2756
|
+
apiVersion?: number;
|
|
2647
2757
|
artifactVersion: number;
|
|
2648
|
-
|
|
2649
|
-
|
|
2758
|
+
/** Historical marker carried by stored artifacts. Every runner reads every artifact. */
|
|
2759
|
+
minRunnerVersion?: number;
|
|
2760
|
+
/** Historical marker carried by stored artifacts. Capabilities are named per operation. */
|
|
2761
|
+
runtimeFeatures?: PlayRuntimeFeature[];
|
|
2650
2762
|
runtimeBackend?: string | null;
|
|
2651
2763
|
/** Missing preserves the legacy schema used before this field existed. */
|
|
2652
2764
|
toolErrorSchemaVersion?: ToolExecutionErrorSchemaVersion;
|
|
@@ -2964,6 +3076,18 @@ type PlayStaticSubstep = PlayStaticSubstepMetadata & ({
|
|
|
2964
3076
|
sourceRange?: PlayStaticSourceRange;
|
|
2965
3077
|
callDepth?: number;
|
|
2966
3078
|
callPath?: string[];
|
|
3079
|
+
} | {
|
|
3080
|
+
type: 'play_launch';
|
|
3081
|
+
playId: string;
|
|
3082
|
+
field: string;
|
|
3083
|
+
inLoop?: boolean;
|
|
3084
|
+
pipeline?: PlayStaticPipeline | null;
|
|
3085
|
+
cycleDetected?: boolean;
|
|
3086
|
+
resolutionError?: string;
|
|
3087
|
+
description?: string;
|
|
3088
|
+
sourceRange?: PlayStaticSourceRange;
|
|
3089
|
+
callDepth?: number;
|
|
3090
|
+
callPath?: string[];
|
|
2967
3091
|
} | {
|
|
2968
3092
|
type: 'control_flow';
|
|
2969
3093
|
kind: 'conditional' | 'loop';
|
|
@@ -3029,4 +3153,4 @@ type PlayCompilerManifest = {
|
|
|
3029
3153
|
authoringContract?: AdmittedPlayAuthoringContract;
|
|
3030
3154
|
};
|
|
3031
3155
|
|
|
3032
|
-
export { type
|
|
3156
|
+
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 };
|