deepline 0.1.301 → 0.1.302
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 +8 -0
- package/dist/bundling-sources/sdk/src/errors.ts +57 -15
- package/dist/bundling-sources/sdk/src/http.ts +82 -5
- package/dist/bundling-sources/sdk/src/index.ts +4 -0
- package/dist/bundling-sources/sdk/src/play.ts +29 -1
- package/dist/bundling-sources/sdk/src/release.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +120 -14
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +59 -11
- package/dist/bundling-sources/shared_libs/play-runtime/execution-ledger-store.ts +3 -3
- package/dist/bundling-sources/shared_libs/play-runtime/execution-plan.ts +0 -15
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +136 -36
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +17 -12
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +210 -5
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipts.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/artifact-contract-version.ts +6 -0
- package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +159 -12
- package/dist/bundling-sources/shared_libs/plays/contracts.ts +69 -1
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +428 -0
- package/dist/cli/index.js +501 -179
- package/dist/cli/index.mjs +501 -179
- package/dist/index.d.mts +39 -18
- package/dist/index.d.ts +39 -18
- package/dist/index.js +394 -59
- package/dist/index.mjs +391 -59
- package/dist/plays/bundle-play-file.d.mts +4 -2
- package/dist/plays/bundle-play-file.d.ts +4 -2
- package/dist/plays/bundle-play-file.mjs +116 -19
- package/dist/{compiler-manifest-BjopNIqx.d.mts → tool-execution-error-9mH4i-mJ.d.mts} +79 -1
- package/dist/{compiler-manifest-BjopNIqx.d.ts → tool-execution-error-9mH4i-mJ.d.ts} +79 -1
- package/package.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/completed-receipt-cache.ts +0 -166
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as PlayCompilerManifest } from './
|
|
1
|
+
import { a as PlayCompilerManifest, D as DeeplineError, c as ToolExecutionError, d as ToolExecutionErrorOptions, T as ToolExecutionErrorSchemaVersion } from './tool-execution-error-9mH4i-mJ.mjs';
|
|
2
|
+
export { e as ProviderTransientError } from './tool-execution-error-9mH4i-mJ.mjs';
|
|
2
3
|
|
|
3
4
|
type PlayRuntimeSelection = {
|
|
4
5
|
environment: 'preview';
|
|
@@ -1587,6 +1588,7 @@ type EnrichStepCommand = {
|
|
|
1587
1588
|
functionExpressionSource: string;
|
|
1588
1589
|
sourceHash: string;
|
|
1589
1590
|
typeImports: string[];
|
|
1591
|
+
runtimeImports?: string[];
|
|
1590
1592
|
};
|
|
1591
1593
|
};
|
|
1592
1594
|
payload: Record<string, unknown>;
|
|
@@ -3188,21 +3190,6 @@ declare const SDK_API_CONTRACT: string;
|
|
|
3188
3190
|
* }
|
|
3189
3191
|
* ```
|
|
3190
3192
|
*/
|
|
3191
|
-
declare class DeeplineError extends Error {
|
|
3192
|
-
/** HTTP status code from the API response, if applicable. */
|
|
3193
|
-
statusCode?: number | undefined;
|
|
3194
|
-
/** Machine-readable error code (e.g. `'AUTH_ERROR'`, `'RATE_LIMIT'`, `'CONFIG_ERROR'`). */
|
|
3195
|
-
code?: string | undefined;
|
|
3196
|
-
/** Additional context from the API response body. */
|
|
3197
|
-
details?: Record<string, unknown> | undefined;
|
|
3198
|
-
constructor(message: string,
|
|
3199
|
-
/** HTTP status code from the API response, if applicable. */
|
|
3200
|
-
statusCode?: number | undefined,
|
|
3201
|
-
/** Machine-readable error code (e.g. `'AUTH_ERROR'`, `'RATE_LIMIT'`, `'CONFIG_ERROR'`). */
|
|
3202
|
-
code?: string | undefined,
|
|
3203
|
-
/** Additional context from the API response body. */
|
|
3204
|
-
details?: Record<string, unknown> | undefined);
|
|
3205
|
-
}
|
|
3206
3193
|
/**
|
|
3207
3194
|
* Thrown when the API rejects the request due to an invalid or missing API key.
|
|
3208
3195
|
*
|
|
@@ -3256,6 +3243,25 @@ declare class RateLimitError extends DeeplineError {
|
|
|
3256
3243
|
retryAfterMs: number;
|
|
3257
3244
|
constructor(retryAfterMs?: number, message?: string);
|
|
3258
3245
|
}
|
|
3246
|
+
/**
|
|
3247
|
+
* Tool-specific 429 preserving both historical RateLimitError catches and the
|
|
3248
|
+
* structured ToolExecutionError ontology. JavaScript has one prototype chain,
|
|
3249
|
+
* so this class extends RateLimitError and carries ToolExecutionError's stable
|
|
3250
|
+
* cross-bundle brand.
|
|
3251
|
+
*/
|
|
3252
|
+
declare class ToolRateLimitError extends RateLimitError {
|
|
3253
|
+
readonly toolId: string;
|
|
3254
|
+
readonly provider: string | null;
|
|
3255
|
+
readonly operation: string | null;
|
|
3256
|
+
readonly code: string | undefined;
|
|
3257
|
+
readonly origin: ToolExecutionError['origin'];
|
|
3258
|
+
readonly category: ToolExecutionError['category'];
|
|
3259
|
+
readonly retryable: boolean;
|
|
3260
|
+
readonly requestId: string | null;
|
|
3261
|
+
readonly networkKind: ToolExecutionError['networkKind'];
|
|
3262
|
+
readonly networkScope: ToolExecutionError['networkScope'];
|
|
3263
|
+
constructor(message: string, options: ToolExecutionErrorOptions);
|
|
3264
|
+
}
|
|
3259
3265
|
/**
|
|
3260
3266
|
* Thrown when the SDK cannot resolve a valid configuration.
|
|
3261
3267
|
*
|
|
@@ -3778,6 +3784,16 @@ type PlayBindings = {
|
|
|
3778
3784
|
* older clients can continue to register revisions during the migration.
|
|
3779
3785
|
*/
|
|
3780
3786
|
description?: string;
|
|
3787
|
+
/**
|
|
3788
|
+
* Public behavior that must remain pinned for this play artifact.
|
|
3789
|
+
*
|
|
3790
|
+
* New plays default to typed tool errors (`1`). Set `toolErrorSchemaVersion`
|
|
3791
|
+
* to `0` only while migrating code that depends on legacy error names,
|
|
3792
|
+
* messages, or classes.
|
|
3793
|
+
*/
|
|
3794
|
+
compatibility?: {
|
|
3795
|
+
toolErrorSchemaVersion: ToolExecutionErrorSchemaVersion;
|
|
3796
|
+
};
|
|
3781
3797
|
/** Allow compilers to bundle this named handler directly without a child run. */
|
|
3782
3798
|
inline?: boolean;
|
|
3783
3799
|
/** Optional per-run billing controls enforced by the runtime. */
|
|
@@ -4352,7 +4368,7 @@ interface DeeplinePlayRuntimeContext {
|
|
|
4352
4368
|
*
|
|
4353
4369
|
* @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
|
|
4354
4370
|
*/
|
|
4355
|
-
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options
|
|
4371
|
+
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options?: PlayCallOptions): Promise<TOutput>;
|
|
4356
4372
|
/**
|
|
4357
4373
|
* Emit a log line visible in `play tail` and the play's progress logs.
|
|
4358
4374
|
*
|
|
@@ -4599,6 +4615,8 @@ type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = {
|
|
|
4599
4615
|
bindings?: PlayBindings;
|
|
4600
4616
|
/** Billing options. */
|
|
4601
4617
|
billing?: PlayBindings['billing'];
|
|
4618
|
+
/** Runtime compatibility override. Omit for the current typed contract. */
|
|
4619
|
+
compatibility?: PlayBindings['compatibility'];
|
|
4602
4620
|
};
|
|
4603
4621
|
declare function steps<TInput>(): StepProgram<TInput, TInput, TInput>;
|
|
4604
4622
|
declare function runIf<Row, Value>(predicate: (row: Row, index: number) => boolean | Promise<boolean>, resolver: StepResolver<Row, Value>): ConditionalStepResolver<Row, Value, null>;
|
|
@@ -4639,6 +4657,8 @@ declare function runIf<Row, Value>(predicate: (row: Row, index: number) => boole
|
|
|
4639
4657
|
type DefinedPlay<TInput, TOutput extends PlayReturnObject> = ((ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>) & DeeplineNamedPlay<TInput, TOutput> & {
|
|
4640
4658
|
/** Optional trigger bindings (cron, webhook). */
|
|
4641
4659
|
readonly bindings?: PlayBindings;
|
|
4660
|
+
/** Runtime compatibility explicitly selected by the author. */
|
|
4661
|
+
readonly compatibility?: PlayBindings['compatibility'];
|
|
4642
4662
|
/** The play's name (same as `.name`). */
|
|
4643
4663
|
readonly playName: string;
|
|
4644
4664
|
};
|
|
@@ -4648,6 +4668,7 @@ type PlayMetadata = {
|
|
|
4648
4668
|
bindings?: PlayBindings;
|
|
4649
4669
|
inputSchema?: Record<string, unknown>;
|
|
4650
4670
|
billing?: PlayBindings['billing'];
|
|
4671
|
+
compatibility?: PlayBindings['compatibility'];
|
|
4651
4672
|
};
|
|
4652
4673
|
/**
|
|
4653
4674
|
* High-level SDK context with tool shortcuts and play handles.
|
|
@@ -5043,4 +5064,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
5043
5064
|
*/
|
|
5044
5065
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
5045
5066
|
|
|
5046
|
-
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, type IngestionStorageRepairResult, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
5067
|
+
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, type IngestionStorageRepairResult, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as PlayCompilerManifest } from './
|
|
1
|
+
import { a as PlayCompilerManifest, D as DeeplineError, c as ToolExecutionError, d as ToolExecutionErrorOptions, T as ToolExecutionErrorSchemaVersion } from './tool-execution-error-9mH4i-mJ.js';
|
|
2
|
+
export { e as ProviderTransientError } from './tool-execution-error-9mH4i-mJ.js';
|
|
2
3
|
|
|
3
4
|
type PlayRuntimeSelection = {
|
|
4
5
|
environment: 'preview';
|
|
@@ -1587,6 +1588,7 @@ type EnrichStepCommand = {
|
|
|
1587
1588
|
functionExpressionSource: string;
|
|
1588
1589
|
sourceHash: string;
|
|
1589
1590
|
typeImports: string[];
|
|
1591
|
+
runtimeImports?: string[];
|
|
1590
1592
|
};
|
|
1591
1593
|
};
|
|
1592
1594
|
payload: Record<string, unknown>;
|
|
@@ -3188,21 +3190,6 @@ declare const SDK_API_CONTRACT: string;
|
|
|
3188
3190
|
* }
|
|
3189
3191
|
* ```
|
|
3190
3192
|
*/
|
|
3191
|
-
declare class DeeplineError extends Error {
|
|
3192
|
-
/** HTTP status code from the API response, if applicable. */
|
|
3193
|
-
statusCode?: number | undefined;
|
|
3194
|
-
/** Machine-readable error code (e.g. `'AUTH_ERROR'`, `'RATE_LIMIT'`, `'CONFIG_ERROR'`). */
|
|
3195
|
-
code?: string | undefined;
|
|
3196
|
-
/** Additional context from the API response body. */
|
|
3197
|
-
details?: Record<string, unknown> | undefined;
|
|
3198
|
-
constructor(message: string,
|
|
3199
|
-
/** HTTP status code from the API response, if applicable. */
|
|
3200
|
-
statusCode?: number | undefined,
|
|
3201
|
-
/** Machine-readable error code (e.g. `'AUTH_ERROR'`, `'RATE_LIMIT'`, `'CONFIG_ERROR'`). */
|
|
3202
|
-
code?: string | undefined,
|
|
3203
|
-
/** Additional context from the API response body. */
|
|
3204
|
-
details?: Record<string, unknown> | undefined);
|
|
3205
|
-
}
|
|
3206
3193
|
/**
|
|
3207
3194
|
* Thrown when the API rejects the request due to an invalid or missing API key.
|
|
3208
3195
|
*
|
|
@@ -3256,6 +3243,25 @@ declare class RateLimitError extends DeeplineError {
|
|
|
3256
3243
|
retryAfterMs: number;
|
|
3257
3244
|
constructor(retryAfterMs?: number, message?: string);
|
|
3258
3245
|
}
|
|
3246
|
+
/**
|
|
3247
|
+
* Tool-specific 429 preserving both historical RateLimitError catches and the
|
|
3248
|
+
* structured ToolExecutionError ontology. JavaScript has one prototype chain,
|
|
3249
|
+
* so this class extends RateLimitError and carries ToolExecutionError's stable
|
|
3250
|
+
* cross-bundle brand.
|
|
3251
|
+
*/
|
|
3252
|
+
declare class ToolRateLimitError extends RateLimitError {
|
|
3253
|
+
readonly toolId: string;
|
|
3254
|
+
readonly provider: string | null;
|
|
3255
|
+
readonly operation: string | null;
|
|
3256
|
+
readonly code: string | undefined;
|
|
3257
|
+
readonly origin: ToolExecutionError['origin'];
|
|
3258
|
+
readonly category: ToolExecutionError['category'];
|
|
3259
|
+
readonly retryable: boolean;
|
|
3260
|
+
readonly requestId: string | null;
|
|
3261
|
+
readonly networkKind: ToolExecutionError['networkKind'];
|
|
3262
|
+
readonly networkScope: ToolExecutionError['networkScope'];
|
|
3263
|
+
constructor(message: string, options: ToolExecutionErrorOptions);
|
|
3264
|
+
}
|
|
3259
3265
|
/**
|
|
3260
3266
|
* Thrown when the SDK cannot resolve a valid configuration.
|
|
3261
3267
|
*
|
|
@@ -3778,6 +3784,16 @@ type PlayBindings = {
|
|
|
3778
3784
|
* older clients can continue to register revisions during the migration.
|
|
3779
3785
|
*/
|
|
3780
3786
|
description?: string;
|
|
3787
|
+
/**
|
|
3788
|
+
* Public behavior that must remain pinned for this play artifact.
|
|
3789
|
+
*
|
|
3790
|
+
* New plays default to typed tool errors (`1`). Set `toolErrorSchemaVersion`
|
|
3791
|
+
* to `0` only while migrating code that depends on legacy error names,
|
|
3792
|
+
* messages, or classes.
|
|
3793
|
+
*/
|
|
3794
|
+
compatibility?: {
|
|
3795
|
+
toolErrorSchemaVersion: ToolExecutionErrorSchemaVersion;
|
|
3796
|
+
};
|
|
3781
3797
|
/** Allow compilers to bundle this named handler directly without a child run. */
|
|
3782
3798
|
inline?: boolean;
|
|
3783
3799
|
/** Optional per-run billing controls enforced by the runtime. */
|
|
@@ -4352,7 +4368,7 @@ interface DeeplinePlayRuntimeContext {
|
|
|
4352
4368
|
*
|
|
4353
4369
|
* @sdkReference runtime 140 ctx.runPlay(key, playRef, input, options)
|
|
4354
4370
|
*/
|
|
4355
|
-
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options
|
|
4371
|
+
runPlay<TOutput = unknown>(key: string, playRef: string | PlayReferenceLike, input: Record<string, unknown>, options?: PlayCallOptions): Promise<TOutput>;
|
|
4356
4372
|
/**
|
|
4357
4373
|
* Emit a log line visible in `play tail` and the play's progress logs.
|
|
4358
4374
|
*
|
|
@@ -4599,6 +4615,8 @@ type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = {
|
|
|
4599
4615
|
bindings?: PlayBindings;
|
|
4600
4616
|
/** Billing options. */
|
|
4601
4617
|
billing?: PlayBindings['billing'];
|
|
4618
|
+
/** Runtime compatibility override. Omit for the current typed contract. */
|
|
4619
|
+
compatibility?: PlayBindings['compatibility'];
|
|
4602
4620
|
};
|
|
4603
4621
|
declare function steps<TInput>(): StepProgram<TInput, TInput, TInput>;
|
|
4604
4622
|
declare function runIf<Row, Value>(predicate: (row: Row, index: number) => boolean | Promise<boolean>, resolver: StepResolver<Row, Value>): ConditionalStepResolver<Row, Value, null>;
|
|
@@ -4639,6 +4657,8 @@ declare function runIf<Row, Value>(predicate: (row: Row, index: number) => boole
|
|
|
4639
4657
|
type DefinedPlay<TInput, TOutput extends PlayReturnObject> = ((ctx: DeeplinePlayRuntimeContext, input: TInput) => Promise<TOutput>) & DeeplineNamedPlay<TInput, TOutput> & {
|
|
4640
4658
|
/** Optional trigger bindings (cron, webhook). */
|
|
4641
4659
|
readonly bindings?: PlayBindings;
|
|
4660
|
+
/** Runtime compatibility explicitly selected by the author. */
|
|
4661
|
+
readonly compatibility?: PlayBindings['compatibility'];
|
|
4642
4662
|
/** The play's name (same as `.name`). */
|
|
4643
4663
|
readonly playName: string;
|
|
4644
4664
|
};
|
|
@@ -4648,6 +4668,7 @@ type PlayMetadata = {
|
|
|
4648
4668
|
bindings?: PlayBindings;
|
|
4649
4669
|
inputSchema?: Record<string, unknown>;
|
|
4650
4670
|
billing?: PlayBindings['billing'];
|
|
4671
|
+
compatibility?: PlayBindings['compatibility'];
|
|
4651
4672
|
};
|
|
4652
4673
|
/**
|
|
4653
4674
|
* High-level SDK context with tool shortcuts and play handles.
|
|
@@ -5043,4 +5064,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
5043
5064
|
*/
|
|
5044
5065
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
5045
5066
|
|
|
5046
|
-
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, type IngestionStorageRepairResult, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, type ToolExecutionRequest, type ToolMetadata, type ToolSearchOptions, type ToolSearchResult, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
5067
|
+
export { AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_EXTRACTOR_TARGETS, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, type DeeplineEmailStatusGetterValue, DeeplineError, type DeeplineExtractorTarget, type DeeplineGetterValue, type DeeplineGetterValueMap, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type FileInput, type IngestionStorageRepairResult, JOB_CHANGE_STATUS_VALUES, type JobChangeStatus, type LiveEventEnvelope, type MonitorCheckResult, type MonitorControls, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PHONE_STATUS_VALUES, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PhoneStatus, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayDataset, type PlayDatasetInput, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, type PreviousCell, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type ResolvedConfig, RunObserveTransportUnavailableError, type RunsListOptions, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopPlayRunResult, type ToolDefinition, type ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, type ToolSearchOptions, type ToolSearchResult, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isDeeplineExtractorTarget, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|