deepline 0.3.325 → 0.3.326
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 +23 -25
- package/dist/bundling-sources/sdk/src/compat.ts +11 -6
- package/dist/bundling-sources/sdk/src/db/query.ts +172 -0
- package/dist/bundling-sources/sdk/src/errors.ts +35 -0
- package/dist/bundling-sources/sdk/src/index.ts +13 -0
- package/dist/bundling-sources/sdk/src/play.ts +34 -31
- package/dist/bundling-sources/sdk/src/plays/authoring-graph-path.ts +13 -0
- package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +2 -1
- package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +189 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +84 -10
- package/dist/cli/auth-6STWK6UK.js +31 -0
- package/dist/cli/{auth-PIZESRPC.mjs → auth-VON5FFUK.mjs} +4 -4
- package/dist/cli/{billing-HSL6VTCM.mjs → billing-X6JUEFRE.mjs} +4 -4
- package/dist/cli/{billing-DQKFCQV5.js → billing-YI4RZI2O.js} +70 -70
- package/dist/cli/{chunk-UYFWTIKF.js → chunk-3NGWGFVL.js} +26 -26
- package/dist/cli/{chunk-PWV2M4LW.mjs → chunk-4AB4Y6FF.mjs} +1 -1
- package/dist/cli/{chunk-DLW7X2UK.js → chunk-4LNBSQM4.js} +5928 -5730
- package/dist/cli/{chunk-OOPSX57I.js → chunk-5NXHSRRE.js} +6 -6
- package/dist/cli/{chunk-XNL3SEMC.js → chunk-AFNEQ43J.js} +8 -3
- package/dist/cli/{chunk-XSEMQ4II.js → chunk-AGH6YP2T.js} +2 -1
- package/dist/cli/chunk-AID3OYVJ.js +8 -0
- package/dist/cli/{chunk-NWBARG3F.mjs → chunk-BQJVMKWL.mjs} +1 -1
- package/dist/cli/{chunk-YE3O2UHM.mjs → chunk-BR7GGTAE.mjs} +24 -1
- package/dist/cli/{chunk-K7FC5IUU.js → chunk-BUYZEUY4.js} +1 -1
- package/dist/cli/{chunk-QQ2FG5W3.js → chunk-CUUHQ3AO.js} +6 -6
- package/dist/cli/{chunk-H5TJBRSC.mjs → chunk-DFDXKOLR.mjs} +98 -113
- package/dist/cli/{chunk-HPTQEWCF.js → chunk-EMZ7Y5SW.js} +70 -67
- package/dist/cli/chunk-GVESPYSY.mjs +234 -0
- package/dist/cli/{chunk-MNKDSR2J.js → chunk-GVYKY6T6.js} +344 -254
- package/dist/cli/{chunk-6RMKHN7S.mjs → chunk-IQCCGOQH.mjs} +4 -20
- package/dist/cli/{chunk-76VKBPOC.mjs → chunk-JOA6IKDE.mjs} +7 -2
- package/dist/cli/{chunk-XIVUB36F.mjs → chunk-KLWBAQ5A.mjs} +104 -14
- package/dist/cli/{chunk-CV5GDCKN.js → chunk-KZ4PCK4O.js} +29 -45
- package/dist/cli/chunk-LVEDPCLJ.js +234 -0
- package/dist/cli/{chunk-AQUNQJ5Y.mjs → chunk-M7CPVMDB.mjs} +1 -1
- package/dist/cli/{chunk-HUKWYHBG.js → chunk-MDQZQ3NY.js} +2 -2
- package/dist/cli/{chunk-PBNZXZCW.js → chunk-MKHSZA2X.js} +48 -48
- package/dist/cli/{chunk-5TYU3UIS.mjs → chunk-MOBZS4F3.mjs} +1 -1
- package/dist/cli/chunk-OVDNJAJN.mjs +8 -0
- package/dist/cli/{chunk-KZNFYOHX.js → chunk-T33W6JUJ.js} +6 -6
- package/dist/cli/{chunk-6VZDSBK6.mjs → chunk-TDSNAC3C.mjs} +2 -2
- package/dist/cli/{chunk-PVDQ55PS.js → chunk-TXVOB5J2.js} +29 -6
- package/dist/cli/{chunk-YXRPWMGN.js → chunk-TZQMFWLF.js} +147 -162
- package/dist/cli/{chunk-OPERWJR6.mjs → chunk-VGKVLADU.mjs} +3 -3
- package/dist/cli/{chunk-7MD453WV.mjs → chunk-VKXGOQG5.mjs} +5674 -5476
- package/dist/cli/{chunk-WW4XZIVM.mjs → chunk-W74E5ETE.mjs} +12 -9
- package/dist/cli/{chunk-7PZFGB7L.mjs → chunk-YIY74KUF.mjs} +2 -1
- package/dist/cli/{chunk-5FHU7TV4.mjs → chunk-ZRN6YOF2.mjs} +2 -2
- package/dist/cli/client-TEBW2P24.js +20 -0
- package/dist/cli/{client-57SR4KVM.mjs → client-ZMOKUNL2.mjs} +3 -3
- package/dist/cli/{csv-5DJSC6BD.js → csv-HZRKEI7J.js} +12 -12
- package/dist/cli/{csv-G2FRMOXL.mjs → csv-IICJHJZ4.mjs} +3 -3
- package/dist/cli/{db-NVO7P4VO.js → db-TM5NZF73.js} +226 -149
- package/dist/cli/{db-WWZEXM3N.mjs → db-X4B7YFNY.mjs} +214 -137
- package/dist/cli/{describe-M26LHDBQ.js → describe-BDBARWZJ.js} +28 -27
- package/dist/cli/{describe-26OMF3A4.mjs → describe-GMVS3LFC.mjs} +12 -11
- package/dist/cli/{executions-2LLHY3IL.mjs → executions-447ZJMN4.mjs} +4 -4
- package/dist/cli/{executions-KI47LPKE.js → executions-QX25UOQM.js} +6 -6
- package/dist/cli/{feedback-2Y26C2BZ.js → feedback-4IXUTBX7.js} +6 -6
- package/dist/cli/{feedback-O26VL2OF.mjs → feedback-JB7HHIC6.mjs} +3 -3
- package/dist/cli/git-C7C7DTEH.js +23 -0
- package/dist/cli/{git-UVPGZN3K.mjs → git-VID6KGAA.mjs} +4 -4
- package/dist/cli/index.js +105 -87
- package/dist/cli/index.mjs +65 -47
- package/dist/cli/{legacy-noops-H6Y3SEVB.js → legacy-noops-3FYTCOZO.js} +7 -7
- package/dist/cli/{legacy-noops-IK5CH72U.mjs → legacy-noops-SGR3G5WS.mjs} +4 -4
- package/dist/cli/{monitors-SFVVMAJT.mjs → monitors-SH4FOMBM.mjs} +4 -4
- package/dist/cli/{monitors-JL6TTQCI.js → monitors-SP52UHS4.js} +85 -85
- package/dist/cli/{org-SSDONL57.mjs → org-B32MMIQT.mjs} +4 -4
- package/dist/cli/{org-OVMAZCQS.js → org-UQMX7JOR.js} +60 -60
- package/dist/cli/play-UCIWBN7U.js +153 -0
- package/dist/cli/{play-X6NPACUO.mjs → play-XTE4LUP7.mjs} +11 -10
- package/dist/cli/{providers-E24JDWSR.js → providers-JNMJJ2OH.js} +7 -7
- package/dist/cli/{providers-ONUBYYY4.mjs → providers-RWLN6FUR.mjs} +4 -4
- package/dist/cli/{quickstart-TB7C3DLG.js → quickstart-HK6WZ342.js} +5 -5
- package/dist/cli/{quickstart-B7NIXACV.mjs → quickstart-IDB3Y375.mjs} +3 -3
- package/dist/cli/{search-N3QUIATW.mjs → search-6D3IFNPT.mjs} +5 -5
- package/dist/cli/search-LUZ2S7DH.js +26 -0
- package/dist/cli/{secrets-CPCVFDYB.js → secrets-JOQB57IE.js} +13 -13
- package/dist/cli/{secrets-V7Z4M67T.mjs → secrets-TZ53CQ3D.mjs} +4 -4
- package/dist/cli/{sessions-PDOBKAKO.mjs → sessions-4MBDC4EK.mjs} +4 -4
- package/dist/cli/{sessions-E4FIZLQP.js → sessions-QSAICDXX.js} +5 -5
- package/dist/cli/{settings-UVM2WDE4.js → settings-OTOCW7L7.js} +74 -74
- package/dist/cli/{settings-QYHYHZDI.mjs → settings-RKQFMLDU.mjs} +7 -7
- package/dist/cli/{setup-4RLAETDW.mjs → setup-2S5TNTUB.mjs} +6 -6
- package/dist/cli/{setup-3JFAXQLJ.js → setup-AKZUDVYY.js} +41 -41
- package/dist/cli/skills-26LASHZF.js +28 -0
- package/dist/cli/{skills-ZX2JSWOZ.mjs → skills-AGZXDLSA.mjs} +4 -4
- package/dist/cli/{tools-EGXCVIPJ.mjs → tools-7Y6RD6FY.mjs} +8 -7
- package/dist/cli/tools-L5VIJQWX.js +39 -0
- package/dist/cli/{update-7FEKRQFE.mjs → update-M7YGF67I.mjs} +6 -6
- package/dist/cli/update-MNHF6M2F.js +28 -0
- package/dist/cli/{workflow-7V7TTTKK.mjs → workflow-CTVE7S7W.mjs} +5 -5
- package/dist/cli/{workflow-54VCKIG2.js → workflow-NGMY425T.js} +15 -15
- package/dist/{client-Bb4Jjzmj.d.ts → client-DHq8dJ56.d.ts} +39 -11
- package/dist/{client-COa-3GHK.d.mts → client-wiWPZhnI.d.mts} +39 -11
- package/dist/{compiler-manifest-CsnWj-AK.d.mts → compiler-manifest-9TkZ_ykI.d.mts} +711 -711
- package/dist/{compiler-manifest-CsnWj-AK.d.ts → compiler-manifest-9TkZ_ykI.d.ts} +711 -711
- package/dist/index-B-5_Xhud.d.mts +75 -0
- package/dist/index-ykksoEyR.d.ts +75 -0
- package/dist/index.d.mts +52 -13
- package/dist/index.d.ts +52 -13
- package/dist/index.js +92 -28
- package/dist/index.mjs +91 -27
- package/dist/install-integrity.json +91 -84
- package/dist/plays/bundle-play-file.d.mts +7 -75
- package/dist/plays/bundle-play-file.d.ts +7 -75
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-RXCD4GOV.js +0 -31
- package/dist/cli/chunk-OWJZUE3Y.mjs +0 -103
- package/dist/cli/chunk-SDK3ZA2C.js +0 -103
- package/dist/cli/client-562MULXK.js +0 -20
- package/dist/cli/git-KGPX5YPD.js +0 -23
- package/dist/cli/play-3DB4MSHN.js +0 -152
- package/dist/cli/search-NJ637YGQ.js +0 -26
- package/dist/cli/skills-BYRYG64R.js +0 -28
- package/dist/cli/tools-TAWOAY5X.js +0 -38
- package/dist/cli/update-H24GEBXM.js +0 -28
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/// <reference path="./text-imports.d.ts" />
|
|
2
|
+
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind } from './compiler-manifest-9TkZ_ykI.mjs';
|
|
3
|
+
|
|
4
|
+
type ImportedPlayDependency = {
|
|
5
|
+
filePath: string;
|
|
6
|
+
playName: string;
|
|
7
|
+
};
|
|
8
|
+
type PlayLocalFileReference = {
|
|
9
|
+
sourceFragment: string;
|
|
10
|
+
logicalPath: string;
|
|
11
|
+
absolutePath: string;
|
|
12
|
+
bytes: number;
|
|
13
|
+
contentHash: string;
|
|
14
|
+
contentType: string;
|
|
15
|
+
};
|
|
16
|
+
type PlayLocalFileDiscoveryError = {
|
|
17
|
+
sourceFragment: string;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
type PlayLocalFileDiscoveryResult = {
|
|
21
|
+
files: PlayLocalFileReference[];
|
|
22
|
+
unresolved: PlayLocalFileDiscoveryError[];
|
|
23
|
+
};
|
|
24
|
+
type PlayBundlingAdapter = {
|
|
25
|
+
projectRoot: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional root that makes the artifact independent of where it was built:
|
|
28
|
+
* source paths in the graph hash and esbuild's working directory (which it
|
|
29
|
+
* writes into every module-header comment, and so into `artifactHash`) are
|
|
30
|
+
* both taken relative to it instead of to the build's absolute location.
|
|
31
|
+
*/
|
|
32
|
+
sourceIdentityRoot?: string;
|
|
33
|
+
nodeModulesDir: string;
|
|
34
|
+
/** null disables disk caching (for ephemeral serverless build invocations). */
|
|
35
|
+
cacheDir?: string | null;
|
|
36
|
+
sdkSourceRoot: string;
|
|
37
|
+
sdkPackageJson: string;
|
|
38
|
+
sdkEntryFile: string;
|
|
39
|
+
sdkTypesEntryFile?: string;
|
|
40
|
+
discoverPackagedLocalFiles(filePath: string): Promise<PlayLocalFileDiscoveryResult>;
|
|
41
|
+
typecheckPlaySource?(input: {
|
|
42
|
+
sourceCode: string;
|
|
43
|
+
sourcePath: string;
|
|
44
|
+
importedFilePaths: string[];
|
|
45
|
+
}): Promise<string[]> | string[];
|
|
46
|
+
warnAboutNonDevelopmentBundling?(filePath: string): void;
|
|
47
|
+
};
|
|
48
|
+
type BundledPlayFileSuccess = {
|
|
49
|
+
success: true;
|
|
50
|
+
artifact: PlayBundleArtifact;
|
|
51
|
+
sourceCode: string;
|
|
52
|
+
sourceFiles: Record<string, string>;
|
|
53
|
+
filePath: string;
|
|
54
|
+
playName: string | null;
|
|
55
|
+
playDescription: string | null;
|
|
56
|
+
sandboxRuntimeDeclaration: PlaySandboxRuntimeDeclaration | null;
|
|
57
|
+
compilerManifest?: PlayCompilerManifest;
|
|
58
|
+
packagedFiles: PlayLocalFileReference[];
|
|
59
|
+
unresolvedFileReferences: PlayLocalFileDiscoveryError[];
|
|
60
|
+
importedPlayDependencies: ImportedPlayDependency[];
|
|
61
|
+
};
|
|
62
|
+
type BundledPlayFileFailure = {
|
|
63
|
+
success: false;
|
|
64
|
+
errors: string[];
|
|
65
|
+
filePath: string;
|
|
66
|
+
};
|
|
67
|
+
type BundledPlayFileResult = BundledPlayFileSuccess | BundledPlayFileFailure;
|
|
68
|
+
declare function extractDefinedPlayName(sourceCode: string): string | null;
|
|
69
|
+
type BundlePlayFileOptions = {
|
|
70
|
+
/** Must be `cjs_node20`; retained as an explicit compile-contract assertion. */
|
|
71
|
+
target?: PlayArtifactKind;
|
|
72
|
+
exportName?: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { type BundledPlayFileResult as B, type ImportedPlayDependency as I, type PlayBundlingAdapter as P, type BundlePlayFileOptions as a, type BundledPlayFileSuccess as b, type PlayLocalFileDiscoveryError as c, type PlayLocalFileReference as d, extractDefinedPlayName as e };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/// <reference path="./text-imports.d.ts" />
|
|
2
|
+
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind } from './compiler-manifest-9TkZ_ykI.js';
|
|
3
|
+
|
|
4
|
+
type ImportedPlayDependency = {
|
|
5
|
+
filePath: string;
|
|
6
|
+
playName: string;
|
|
7
|
+
};
|
|
8
|
+
type PlayLocalFileReference = {
|
|
9
|
+
sourceFragment: string;
|
|
10
|
+
logicalPath: string;
|
|
11
|
+
absolutePath: string;
|
|
12
|
+
bytes: number;
|
|
13
|
+
contentHash: string;
|
|
14
|
+
contentType: string;
|
|
15
|
+
};
|
|
16
|
+
type PlayLocalFileDiscoveryError = {
|
|
17
|
+
sourceFragment: string;
|
|
18
|
+
message: string;
|
|
19
|
+
};
|
|
20
|
+
type PlayLocalFileDiscoveryResult = {
|
|
21
|
+
files: PlayLocalFileReference[];
|
|
22
|
+
unresolved: PlayLocalFileDiscoveryError[];
|
|
23
|
+
};
|
|
24
|
+
type PlayBundlingAdapter = {
|
|
25
|
+
projectRoot: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional root that makes the artifact independent of where it was built:
|
|
28
|
+
* source paths in the graph hash and esbuild's working directory (which it
|
|
29
|
+
* writes into every module-header comment, and so into `artifactHash`) are
|
|
30
|
+
* both taken relative to it instead of to the build's absolute location.
|
|
31
|
+
*/
|
|
32
|
+
sourceIdentityRoot?: string;
|
|
33
|
+
nodeModulesDir: string;
|
|
34
|
+
/** null disables disk caching (for ephemeral serverless build invocations). */
|
|
35
|
+
cacheDir?: string | null;
|
|
36
|
+
sdkSourceRoot: string;
|
|
37
|
+
sdkPackageJson: string;
|
|
38
|
+
sdkEntryFile: string;
|
|
39
|
+
sdkTypesEntryFile?: string;
|
|
40
|
+
discoverPackagedLocalFiles(filePath: string): Promise<PlayLocalFileDiscoveryResult>;
|
|
41
|
+
typecheckPlaySource?(input: {
|
|
42
|
+
sourceCode: string;
|
|
43
|
+
sourcePath: string;
|
|
44
|
+
importedFilePaths: string[];
|
|
45
|
+
}): Promise<string[]> | string[];
|
|
46
|
+
warnAboutNonDevelopmentBundling?(filePath: string): void;
|
|
47
|
+
};
|
|
48
|
+
type BundledPlayFileSuccess = {
|
|
49
|
+
success: true;
|
|
50
|
+
artifact: PlayBundleArtifact;
|
|
51
|
+
sourceCode: string;
|
|
52
|
+
sourceFiles: Record<string, string>;
|
|
53
|
+
filePath: string;
|
|
54
|
+
playName: string | null;
|
|
55
|
+
playDescription: string | null;
|
|
56
|
+
sandboxRuntimeDeclaration: PlaySandboxRuntimeDeclaration | null;
|
|
57
|
+
compilerManifest?: PlayCompilerManifest;
|
|
58
|
+
packagedFiles: PlayLocalFileReference[];
|
|
59
|
+
unresolvedFileReferences: PlayLocalFileDiscoveryError[];
|
|
60
|
+
importedPlayDependencies: ImportedPlayDependency[];
|
|
61
|
+
};
|
|
62
|
+
type BundledPlayFileFailure = {
|
|
63
|
+
success: false;
|
|
64
|
+
errors: string[];
|
|
65
|
+
filePath: string;
|
|
66
|
+
};
|
|
67
|
+
type BundledPlayFileResult = BundledPlayFileSuccess | BundledPlayFileFailure;
|
|
68
|
+
declare function extractDefinedPlayName(sourceCode: string): string | null;
|
|
69
|
+
type BundlePlayFileOptions = {
|
|
70
|
+
/** Must be `cjs_node20`; retained as an explicit compile-contract assertion. */
|
|
71
|
+
target?: PlayArtifactKind;
|
|
72
|
+
exportName?: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export { type BundledPlayFileResult as B, type ImportedPlayDependency as I, type PlayBundlingAdapter as P, type BundlePlayFileOptions as a, type BundledPlayFileSuccess as b, type PlayLocalFileDiscoveryError as c, type PlayLocalFileReference as d, extractDefinedPlayName as e };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as
|
|
3
|
-
export {
|
|
4
|
-
import { 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-
|
|
5
|
-
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 ToolResultBilling, aj as getProviderUnavailableReason, ak as isDeeplineExtractorTarget, al as isProviderUnavailable, am as isProviderWaterfallUnavailableError } from './compiler-manifest-
|
|
2
|
+
import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as ExecuteToolRawOptions, b as ExecutionRecovery, c as ExecutionByKeyResult, P as PlayListItem, d as PlayDetail, e as PlayRunListItem, f as PlayRevisionSummary, g as PublishPlayVersionResult, C as ClearPlayHistoryResult, h as PlayStatus, S as StopPlayRunResult, i as DeeplineClient, R as ResolvedConfig } from './client-wiWPZhnI.mjs';
|
|
3
|
+
export { j as BillingCreditPool, k as BillingInvoiceEntry, l as BillingInvoicesResult, m as BillingPaymentMethodSummary, n as BillingRecentUsageEntry, o as BillingSubscriptionCancelResult, p as BillingSubscriptionStatus, q as BillingTopUpReceipt, r as BillingTopUpResult, s as BillingUsageEvent, t as BillingUsageOptions, u as BillingUsageResult, v as ChildRunSummary, w as ClearPlayHistoryRequest, x as CreateNotificationGroupInput, y as CreateNotificationGroupResult, z as CustomerDbQueryOptions, A as CustomerDbQueryPlan, F as CustomerDbQueryResult, G as DEEPLINE_TOOL_CATEGORIES, H as DbNamespace, I as DeeplineToolCategory, J as IngestionStorageRepairResult, L as LegacyMonitorStatusFilter, K as LiveEventEnvelope, M as MONITOR_JOB_PHASES, N as MONITOR_JOB_RECONCILIATION_STATES, O as MONITOR_JOB_STATES, Q as MonitorBatchNamespace, U as MonitorCheckResult, V as MonitorDefinition, W as MonitorDeleteResult, X as MonitorDependents, Y as MonitorDeployResult, Z as MonitorDetail, _ as MonitorFleetDeactivateOptions, $ as MonitorFleetGetOptions, a0 as MonitorFleetReactivateOptions, a1 as MonitorFleetResult, a2 as MonitorFleetStatus, a3 as MonitorFleetSyncOptions, a4 as MonitorFleetWaitOptions, a5 as MonitorFleetsNamespace, a6 as MonitorJobDeployOptions, a7 as MonitorJobLogsOptions, a8 as MonitorJobPhase, a9 as MonitorJobReconciliationState, aa as MonitorJobResult, ab as MonitorJobState, ac as MonitorJobWaitOptions, ad as MonitorJobsNamespace, ae as MonitorListEntry, af as MonitorPayload, ag as MonitorReactivateResult, ah as MonitorSpec, ai as MonitorState, aj as MonitorStateFilter, ak as MonitorUpdateChangeSummary, al as MonitorUpdateResult, am as MonitorsAccessStatus, an as MonitorsAvailableOptions, ao as MonitorsAvailableResult, ap as MonitorsListOptions, aq as MonitorsListResult, ar as MonitorsNamespace, as as NormalizedRunEventQuery, at as PLAY_BOOTSTRAP_COMPANY_FIELDS, au as PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, av as PLAY_BOOTSTRAP_CONTACT_FIELDS, aw as PLAY_BOOTSTRAP_FINDER_KINDS, ax as PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, ay as PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, az as PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, aA as PLAY_BOOTSTRAP_SOURCE_KINDS, aB as PLAY_BOOTSTRAP_STAGE_KINDS, aC as PLAY_BOOTSTRAP_TEMPLATES, aD as PlayActivityObservation, aE as PlayActivityState, aF as PlayActivityTarget, aG as PlayBootstrapEntityKind, aH as PlayBootstrapFinderKind, aI as PlayCostEstimate, aJ as PlayCronTriggerConfig, aK as PlayLiveEvent, aL as PlayPath, aM as PlayRunActionPackage, aN as PlayRunActivityProjection, aO as PlayRunDatasetActions, aP as PlayRunPackage, aQ as PlayRunResult, aR as PlayRunStart, aS as PlaySettings, aT as PlaySettingsPatch, aU as PlaySettingsPathsPage, aV as PlaySettingsResult, aW as PlaySheetRow, aX as PlaySheetRowsResult, aY as PlayTriggerConfigUpdate, aZ as PlayTriggerConfigUpdateResult, a_ as PlayTriggerConfigView, a$ as PlayWebhookAuthConfig, b0 as PlayWebhookTriggerConfig, b1 as PlaysActivityResponse, b2 as PlaysListOptions, b3 as PlaysListPage, b4 as PublishPlayVersionRequest, b5 as RerunOptions, b6 as RerunPlayRunResult, b7 as RunChildrenPage, b8 as RunEventCountResult, b9 as RunEventField, ba as RunEventFieldDescriptor, bb as RunEventFieldOperators, bc as RunEventFieldsResult, bd as RunEventGroupValue, be as RunEventMeasure, bf as RunEventQueryCriteria, bg as RunEventQueryEvent, bh as RunEventQueryInputError, bi as RunEventQueryOptions, bj as RunEventQueryPage, bk as RunEventQueryRetention, bl as RunEventScalar, bm as RunEventSummaryOptions, bn as RunEventSummaryResult, bo as RunEventWhere, bp as RunLifecycleStatus, bq as RunToolReceiptResult, br as RunToolReceiptsResponse, bs as RunsChildrenOptions, bt as RunsEventPayload, bu as RunsEventSearchEntry, bv as RunsEventSearchOptions, bw as RunsEventSearchResult, bx as RunsEventsCountResult, by as RunsEventsCriteria, bz as RunsEventsFieldsOptions, bA as RunsEventsListOptions, bB as RunsEventsListResult, bC as RunsEventsNamespace, bD as RunsEventsSummaryOptions, bE as RunsEventsSummaryResult, bF as RunsHistoryItem, bG as RunsHistoryOptions, bH as RunsHistoryPage, bI as RunsListOptions, bJ as RunsListPage, bK as RunsLogCriteria, bL as RunsLogsCountResult, bM as RunsLogsNamespace, bN as RunsLogsOptions, bO as RunsLogsQueryOptions, bP as RunsLogsQueryResult, bQ as RunsLogsResult, bR as RunsLogsSummaryOptions, bS as RunsLogsSummaryResult, bT as RunsNamespace, bU as RunsTailOptions, bV as RunsWatchOptions, bW as SearchOptions, bX as SearchResult, bY as SearchResultItem, bZ as SearchType, b_ as StartPlayRunRequest, b$ as StopAllCandidate, c0 as StopAllPlayRunsDryRunResult, c1 as StopAllPlayRunsResult, c2 as StopAllPlayRunsStopResult, c3 as StopAllRunsOptions, c4 as ToolExecution, c5 as ToolSearchOptions, c6 as ToolSearchResult, c7 as WorkspaceCreateResult, c8 as WorkspacesNamespace, c9 as defineMonitor, ca as formatPlayBootstrapFinderKinds, cb as formatPlayBootstrapFinderKindsForSentence, cc as formatPlayBootstrapTemplates, cd as isPlayBootstrapFinderKind, ce as isPlayBootstrapTemplate, cf as isStopAllPlayRunsDryRunResult, cg as planCustomerDbQuery } from './client-wiWPZhnI.mjs';
|
|
4
|
+
import { 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-9TkZ_ykI.mjs';
|
|
5
|
+
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 ToolResultBilling, aj as getProviderUnavailableReason, ak as isDeeplineExtractorTarget, al as isProviderUnavailable, am as isProviderWaterfallUnavailableError } from './compiler-manifest-9TkZ_ykI.mjs';
|
|
6
|
+
import { b as BundledPlayFileSuccess } from './index-B-5_Xhud.mjs';
|
|
6
7
|
export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.mjs';
|
|
7
8
|
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, MonitorFleetDefinition, MonitorFleetExpression, MonitorFleetTemplate, admitMonitorFleetAuthoringContract, defineMonitorFleet, fleetColumn, fleetKey, lintMonitorFleetInput, validateMonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
8
9
|
import 'zod';
|
|
@@ -349,6 +350,8 @@ interface DeeplineNamedPlay<TInput = Record<string, unknown>, TOutput = unknown>
|
|
|
349
350
|
profile?: string;
|
|
350
351
|
}): Promise<TOutput>;
|
|
351
352
|
}
|
|
353
|
+
/** Per-call HTTP deadline and recovery identity for a direct tool operation. */
|
|
354
|
+
type DeeplineToolCallOptions = Pick<ExecuteToolRawOptions, 'timeout' | 'idempotencyKey' | 'recover' | 'onExecution' | 'recoveryTimeoutMs'>;
|
|
352
355
|
/**
|
|
353
356
|
* Tool/provider operations available from a connected {@link DeeplineContext}.
|
|
354
357
|
*
|
|
@@ -363,20 +366,15 @@ type DeeplineToolsNamespace = {
|
|
|
363
366
|
list(): Promise<ToolDefinition[]>;
|
|
364
367
|
/** Get detailed metadata for one provider-backed tool. */
|
|
365
368
|
get(toolId: string): Promise<ToolMetadata>;
|
|
369
|
+
/** Call one tool. A key or recover enables same-execution recovery after a lost response. */
|
|
370
|
+
call(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
|
|
366
371
|
/**
|
|
367
372
|
* Execute a provider-backed tool from a regular SDK process.
|
|
368
373
|
*
|
|
369
374
|
* For durable play code, prefer `ctx.tools.execute(...)` because the play
|
|
370
375
|
* runtime records the call under a stable id.
|
|
371
376
|
*/
|
|
372
|
-
execute(toolId: string, input: Record<string, unknown>, options?:
|
|
373
|
-
idempotencyKey?: string;
|
|
374
|
-
recover?: boolean;
|
|
375
|
-
onExecution?: (execution: {
|
|
376
|
-
idempotencyKey: string;
|
|
377
|
-
}) => void | Promise<void>;
|
|
378
|
-
recoveryTimeoutMs?: number;
|
|
379
|
-
}): Promise<DeeplineToolExecuteResult>;
|
|
377
|
+
execute(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
|
|
380
378
|
};
|
|
381
379
|
type DeeplineToolExecuteResult = ToolExecuteResult & {
|
|
382
380
|
/** Stable key used to recover this direct tool execution, when enabled. */
|
|
@@ -724,6 +722,36 @@ declare const defineWorkflow: typeof definePlay;
|
|
|
724
722
|
*/
|
|
725
723
|
declare function getDefinedPlayMetadata(value: unknown): PlayMetadata | null;
|
|
726
724
|
|
|
725
|
+
type LocalPlayGraph = {
|
|
726
|
+
root: BundledPlayFileSuccess;
|
|
727
|
+
nodes: Map<string, BundledPlayFileSuccess>;
|
|
728
|
+
};
|
|
729
|
+
/** Describe local execution without storing artifacts or starting cloud work. */
|
|
730
|
+
declare function planLocalPlayExecution(graph: LocalPlayGraph, input?: {
|
|
731
|
+
runIdFile?: string | null;
|
|
732
|
+
}): {
|
|
733
|
+
command: string;
|
|
734
|
+
root: {
|
|
735
|
+
name: string | null;
|
|
736
|
+
artifactHash: string;
|
|
737
|
+
publication: "unpublished";
|
|
738
|
+
};
|
|
739
|
+
importedPlays: {
|
|
740
|
+
publication: "pinned";
|
|
741
|
+
name: string;
|
|
742
|
+
artifactHash: string;
|
|
743
|
+
graphHash: string;
|
|
744
|
+
}[];
|
|
745
|
+
effects: {
|
|
746
|
+
cloudMutations: string[];
|
|
747
|
+
localWrites: string[];
|
|
748
|
+
creditSpending: "tool_calls_may_spend";
|
|
749
|
+
recovery: "inspect_or_resume_original_run_id";
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
/** Store immutable imported execution content without changing draft or live revisions. */
|
|
753
|
+
declare function pinLocalPlayImports(client: Pick<DeeplineClient, 'registerPlayArtifact'>, graph: LocalPlayGraph): Promise<LocalPlayGraph>;
|
|
754
|
+
|
|
727
755
|
/**
|
|
728
756
|
* Compatibility export retained for SDK callers that imported the old error.
|
|
729
757
|
* Run watching now uses authenticated REST snapshot polling and does not throw
|
|
@@ -741,6 +769,17 @@ declare const SDK_VERSION: string;
|
|
|
741
769
|
/** @deprecated Transitional wire id for pre-major-header SDKs only. */
|
|
742
770
|
declare const SDK_API_CONTRACT: string;
|
|
743
771
|
|
|
772
|
+
/** SQL may have committed, but its response was not confirmed. */
|
|
773
|
+
declare class CustomerDbQueryOutcomeUnknownError extends DeeplineError {
|
|
774
|
+
readonly cause: DeeplineError;
|
|
775
|
+
readonly outcome: "unknown";
|
|
776
|
+
readonly operationKey?: string;
|
|
777
|
+
readonly retryable: boolean;
|
|
778
|
+
constructor(cause: DeeplineError, operationKey?: string, options?: {
|
|
779
|
+
recoveryAvailable?: boolean;
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
|
|
744
783
|
/**
|
|
745
784
|
* Thrown when the API rejects the request due to an invalid or missing API key.
|
|
746
785
|
*
|
|
@@ -1016,4 +1055,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
1016
1055
|
*/
|
|
1017
1056
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
1018
1057
|
|
|
1019
|
-
export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, ExecutionByKeyResult, ExecutionRecovery, type FetchOptions, type FileInput, PROD_URL, type PlayAsyncCallOptions, type PlayBindings, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, PlayListItem, type PlayReferenceLike, PlayRevisionSummary, type PlayRunId, PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, PublishPlayVersionResult, RateLimitError, ResolvedConfig, RunObserveTransportUnavailableError, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, StopPlayRunResult, ToolDefinition, ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
1058
|
+
export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, CustomerDbQueryOutcomeUnknownError, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCallOptions, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, ExecutionByKeyResult, ExecutionRecovery, type FetchOptions, type FileInput, type LocalPlayGraph, PROD_URL, type PlayAsyncCallOptions, type PlayBindings, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, PlayListItem, type PlayReferenceLike, PlayRevisionSummary, type PlayRunId, PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, PublishPlayVersionResult, RateLimitError, ResolvedConfig, RunObserveTransportUnavailableError, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, StopPlayRunResult, ToolDefinition, ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, pinLocalPlayImports, planLocalPlayExecution, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as
|
|
3
|
-
export {
|
|
4
|
-
import { 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-
|
|
5
|
-
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 ToolResultBilling, aj as getProviderUnavailableReason, ak as isDeeplineExtractorTarget, al as isProviderUnavailable, am as isProviderWaterfallUnavailableError } from './compiler-manifest-
|
|
2
|
+
import { D as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, a as ToolMetadata, E as ExecuteToolRawOptions, b as ExecutionRecovery, c as ExecutionByKeyResult, P as PlayListItem, d as PlayDetail, e as PlayRunListItem, f as PlayRevisionSummary, g as PublishPlayVersionResult, C as ClearPlayHistoryResult, h as PlayStatus, S as StopPlayRunResult, i as DeeplineClient, R as ResolvedConfig } from './client-DHq8dJ56.js';
|
|
3
|
+
export { j as BillingCreditPool, k as BillingInvoiceEntry, l as BillingInvoicesResult, m as BillingPaymentMethodSummary, n as BillingRecentUsageEntry, o as BillingSubscriptionCancelResult, p as BillingSubscriptionStatus, q as BillingTopUpReceipt, r as BillingTopUpResult, s as BillingUsageEvent, t as BillingUsageOptions, u as BillingUsageResult, v as ChildRunSummary, w as ClearPlayHistoryRequest, x as CreateNotificationGroupInput, y as CreateNotificationGroupResult, z as CustomerDbQueryOptions, A as CustomerDbQueryPlan, F as CustomerDbQueryResult, G as DEEPLINE_TOOL_CATEGORIES, H as DbNamespace, I as DeeplineToolCategory, J as IngestionStorageRepairResult, L as LegacyMonitorStatusFilter, K as LiveEventEnvelope, M as MONITOR_JOB_PHASES, N as MONITOR_JOB_RECONCILIATION_STATES, O as MONITOR_JOB_STATES, Q as MonitorBatchNamespace, U as MonitorCheckResult, V as MonitorDefinition, W as MonitorDeleteResult, X as MonitorDependents, Y as MonitorDeployResult, Z as MonitorDetail, _ as MonitorFleetDeactivateOptions, $ as MonitorFleetGetOptions, a0 as MonitorFleetReactivateOptions, a1 as MonitorFleetResult, a2 as MonitorFleetStatus, a3 as MonitorFleetSyncOptions, a4 as MonitorFleetWaitOptions, a5 as MonitorFleetsNamespace, a6 as MonitorJobDeployOptions, a7 as MonitorJobLogsOptions, a8 as MonitorJobPhase, a9 as MonitorJobReconciliationState, aa as MonitorJobResult, ab as MonitorJobState, ac as MonitorJobWaitOptions, ad as MonitorJobsNamespace, ae as MonitorListEntry, af as MonitorPayload, ag as MonitorReactivateResult, ah as MonitorSpec, ai as MonitorState, aj as MonitorStateFilter, ak as MonitorUpdateChangeSummary, al as MonitorUpdateResult, am as MonitorsAccessStatus, an as MonitorsAvailableOptions, ao as MonitorsAvailableResult, ap as MonitorsListOptions, aq as MonitorsListResult, ar as MonitorsNamespace, as as NormalizedRunEventQuery, at as PLAY_BOOTSTRAP_COMPANY_FIELDS, au as PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, av as PLAY_BOOTSTRAP_CONTACT_FIELDS, aw as PLAY_BOOTSTRAP_FINDER_KINDS, ax as PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, ay as PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, az as PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, aA as PLAY_BOOTSTRAP_SOURCE_KINDS, aB as PLAY_BOOTSTRAP_STAGE_KINDS, aC as PLAY_BOOTSTRAP_TEMPLATES, aD as PlayActivityObservation, aE as PlayActivityState, aF as PlayActivityTarget, aG as PlayBootstrapEntityKind, aH as PlayBootstrapFinderKind, aI as PlayCostEstimate, aJ as PlayCronTriggerConfig, aK as PlayLiveEvent, aL as PlayPath, aM as PlayRunActionPackage, aN as PlayRunActivityProjection, aO as PlayRunDatasetActions, aP as PlayRunPackage, aQ as PlayRunResult, aR as PlayRunStart, aS as PlaySettings, aT as PlaySettingsPatch, aU as PlaySettingsPathsPage, aV as PlaySettingsResult, aW as PlaySheetRow, aX as PlaySheetRowsResult, aY as PlayTriggerConfigUpdate, aZ as PlayTriggerConfigUpdateResult, a_ as PlayTriggerConfigView, a$ as PlayWebhookAuthConfig, b0 as PlayWebhookTriggerConfig, b1 as PlaysActivityResponse, b2 as PlaysListOptions, b3 as PlaysListPage, b4 as PublishPlayVersionRequest, b5 as RerunOptions, b6 as RerunPlayRunResult, b7 as RunChildrenPage, b8 as RunEventCountResult, b9 as RunEventField, ba as RunEventFieldDescriptor, bb as RunEventFieldOperators, bc as RunEventFieldsResult, bd as RunEventGroupValue, be as RunEventMeasure, bf as RunEventQueryCriteria, bg as RunEventQueryEvent, bh as RunEventQueryInputError, bi as RunEventQueryOptions, bj as RunEventQueryPage, bk as RunEventQueryRetention, bl as RunEventScalar, bm as RunEventSummaryOptions, bn as RunEventSummaryResult, bo as RunEventWhere, bp as RunLifecycleStatus, bq as RunToolReceiptResult, br as RunToolReceiptsResponse, bs as RunsChildrenOptions, bt as RunsEventPayload, bu as RunsEventSearchEntry, bv as RunsEventSearchOptions, bw as RunsEventSearchResult, bx as RunsEventsCountResult, by as RunsEventsCriteria, bz as RunsEventsFieldsOptions, bA as RunsEventsListOptions, bB as RunsEventsListResult, bC as RunsEventsNamespace, bD as RunsEventsSummaryOptions, bE as RunsEventsSummaryResult, bF as RunsHistoryItem, bG as RunsHistoryOptions, bH as RunsHistoryPage, bI as RunsListOptions, bJ as RunsListPage, bK as RunsLogCriteria, bL as RunsLogsCountResult, bM as RunsLogsNamespace, bN as RunsLogsOptions, bO as RunsLogsQueryOptions, bP as RunsLogsQueryResult, bQ as RunsLogsResult, bR as RunsLogsSummaryOptions, bS as RunsLogsSummaryResult, bT as RunsNamespace, bU as RunsTailOptions, bV as RunsWatchOptions, bW as SearchOptions, bX as SearchResult, bY as SearchResultItem, bZ as SearchType, b_ as StartPlayRunRequest, b$ as StopAllCandidate, c0 as StopAllPlayRunsDryRunResult, c1 as StopAllPlayRunsResult, c2 as StopAllPlayRunsStopResult, c3 as StopAllRunsOptions, c4 as ToolExecution, c5 as ToolSearchOptions, c6 as ToolSearchResult, c7 as WorkspaceCreateResult, c8 as WorkspacesNamespace, c9 as defineMonitor, ca as formatPlayBootstrapFinderKinds, cb as formatPlayBootstrapFinderKindsForSentence, cc as formatPlayBootstrapTemplates, cd as isPlayBootstrapFinderKind, ce as isPlayBootstrapTemplate, cf as isStopAllPlayRunsDryRunResult, cg as planCustomerDbQuery } from './client-DHq8dJ56.js';
|
|
4
|
+
import { 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-9TkZ_ykI.js';
|
|
5
|
+
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 ToolResultBilling, aj as getProviderUnavailableReason, ak as isDeeplineExtractorTarget, al as isProviderUnavailable, am as isProviderWaterfallUnavailableError } from './compiler-manifest-9TkZ_ykI.js';
|
|
6
|
+
import { b as BundledPlayFileSuccess } from './index-ykksoEyR.js';
|
|
6
7
|
export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.js';
|
|
7
8
|
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, MonitorFleetDefinition, MonitorFleetExpression, MonitorFleetTemplate, admitMonitorFleetAuthoringContract, defineMonitorFleet, fleetColumn, fleetKey, lintMonitorFleetInput, validateMonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
8
9
|
import 'zod';
|
|
@@ -349,6 +350,8 @@ interface DeeplineNamedPlay<TInput = Record<string, unknown>, TOutput = unknown>
|
|
|
349
350
|
profile?: string;
|
|
350
351
|
}): Promise<TOutput>;
|
|
351
352
|
}
|
|
353
|
+
/** Per-call HTTP deadline and recovery identity for a direct tool operation. */
|
|
354
|
+
type DeeplineToolCallOptions = Pick<ExecuteToolRawOptions, 'timeout' | 'idempotencyKey' | 'recover' | 'onExecution' | 'recoveryTimeoutMs'>;
|
|
352
355
|
/**
|
|
353
356
|
* Tool/provider operations available from a connected {@link DeeplineContext}.
|
|
354
357
|
*
|
|
@@ -363,20 +366,15 @@ type DeeplineToolsNamespace = {
|
|
|
363
366
|
list(): Promise<ToolDefinition[]>;
|
|
364
367
|
/** Get detailed metadata for one provider-backed tool. */
|
|
365
368
|
get(toolId: string): Promise<ToolMetadata>;
|
|
369
|
+
/** Call one tool. A key or recover enables same-execution recovery after a lost response. */
|
|
370
|
+
call(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
|
|
366
371
|
/**
|
|
367
372
|
* Execute a provider-backed tool from a regular SDK process.
|
|
368
373
|
*
|
|
369
374
|
* For durable play code, prefer `ctx.tools.execute(...)` because the play
|
|
370
375
|
* runtime records the call under a stable id.
|
|
371
376
|
*/
|
|
372
|
-
execute(toolId: string, input: Record<string, unknown>, options?:
|
|
373
|
-
idempotencyKey?: string;
|
|
374
|
-
recover?: boolean;
|
|
375
|
-
onExecution?: (execution: {
|
|
376
|
-
idempotencyKey: string;
|
|
377
|
-
}) => void | Promise<void>;
|
|
378
|
-
recoveryTimeoutMs?: number;
|
|
379
|
-
}): Promise<DeeplineToolExecuteResult>;
|
|
377
|
+
execute(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
|
|
380
378
|
};
|
|
381
379
|
type DeeplineToolExecuteResult = ToolExecuteResult & {
|
|
382
380
|
/** Stable key used to recover this direct tool execution, when enabled. */
|
|
@@ -724,6 +722,36 @@ declare const defineWorkflow: typeof definePlay;
|
|
|
724
722
|
*/
|
|
725
723
|
declare function getDefinedPlayMetadata(value: unknown): PlayMetadata | null;
|
|
726
724
|
|
|
725
|
+
type LocalPlayGraph = {
|
|
726
|
+
root: BundledPlayFileSuccess;
|
|
727
|
+
nodes: Map<string, BundledPlayFileSuccess>;
|
|
728
|
+
};
|
|
729
|
+
/** Describe local execution without storing artifacts or starting cloud work. */
|
|
730
|
+
declare function planLocalPlayExecution(graph: LocalPlayGraph, input?: {
|
|
731
|
+
runIdFile?: string | null;
|
|
732
|
+
}): {
|
|
733
|
+
command: string;
|
|
734
|
+
root: {
|
|
735
|
+
name: string | null;
|
|
736
|
+
artifactHash: string;
|
|
737
|
+
publication: "unpublished";
|
|
738
|
+
};
|
|
739
|
+
importedPlays: {
|
|
740
|
+
publication: "pinned";
|
|
741
|
+
name: string;
|
|
742
|
+
artifactHash: string;
|
|
743
|
+
graphHash: string;
|
|
744
|
+
}[];
|
|
745
|
+
effects: {
|
|
746
|
+
cloudMutations: string[];
|
|
747
|
+
localWrites: string[];
|
|
748
|
+
creditSpending: "tool_calls_may_spend";
|
|
749
|
+
recovery: "inspect_or_resume_original_run_id";
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
/** Store immutable imported execution content without changing draft or live revisions. */
|
|
753
|
+
declare function pinLocalPlayImports(client: Pick<DeeplineClient, 'registerPlayArtifact'>, graph: LocalPlayGraph): Promise<LocalPlayGraph>;
|
|
754
|
+
|
|
727
755
|
/**
|
|
728
756
|
* Compatibility export retained for SDK callers that imported the old error.
|
|
729
757
|
* Run watching now uses authenticated REST snapshot polling and does not throw
|
|
@@ -741,6 +769,17 @@ declare const SDK_VERSION: string;
|
|
|
741
769
|
/** @deprecated Transitional wire id for pre-major-header SDKs only. */
|
|
742
770
|
declare const SDK_API_CONTRACT: string;
|
|
743
771
|
|
|
772
|
+
/** SQL may have committed, but its response was not confirmed. */
|
|
773
|
+
declare class CustomerDbQueryOutcomeUnknownError extends DeeplineError {
|
|
774
|
+
readonly cause: DeeplineError;
|
|
775
|
+
readonly outcome: "unknown";
|
|
776
|
+
readonly operationKey?: string;
|
|
777
|
+
readonly retryable: boolean;
|
|
778
|
+
constructor(cause: DeeplineError, operationKey?: string, options?: {
|
|
779
|
+
recoveryAvailable?: boolean;
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
|
|
744
783
|
/**
|
|
745
784
|
* Thrown when the API rejects the request due to an invalid or missing API key.
|
|
746
785
|
*
|
|
@@ -1016,4 +1055,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
1016
1055
|
*/
|
|
1017
1056
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
1018
1057
|
|
|
1019
|
-
export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, ExecutionByKeyResult, ExecutionRecovery, type FetchOptions, type FileInput, PROD_URL, type PlayAsyncCallOptions, type PlayBindings, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, PlayListItem, type PlayReferenceLike, PlayRevisionSummary, type PlayRunId, PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, PublishPlayVersionResult, RateLimitError, ResolvedConfig, RunObserveTransportUnavailableError, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, StopPlayRunResult, ToolDefinition, ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
1058
|
+
export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, CustomerDbQueryOutcomeUnknownError, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, Deepline, DeeplineClient, DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCallOptions, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, ExecutionByKeyResult, ExecutionRecovery, type FetchOptions, type FileInput, type LocalPlayGraph, PROD_URL, type PlayAsyncCallOptions, type PlayBindings, type PlayCallExecution, type PlayCallOptions, type PlayFetchResponse, type PlayInputContract, type PlayJob, PlayListItem, type PlayReferenceLike, PlayRevisionSummary, type PlayRunId, PlayStatus, type PlayStepProgramStep, type PrebuiltPlayRef, PublishPlayVersionResult, RateLimitError, ResolvedConfig, RunObserveTransportUnavailableError, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, StopPlayRunResult, ToolDefinition, ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, pinLocalPlayImports, planLocalPlayExecution, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|