deepline 0.3.328 → 0.3.329
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/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/play.ts +55 -45
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +16 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +31 -15
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +22 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +29 -11
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +145 -19
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -10
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +59 -10
- package/dist/cli/{auth-ANHHABWT.mjs → auth-MFFVOITR.mjs} +4 -4
- package/dist/cli/auth-W2MQM6GQ.js +31 -0
- package/dist/cli/{billing-R6NYYO6G.mjs → billing-LRBHWLIQ.mjs} +4 -4
- package/dist/cli/{billing-GGVKLFE6.js → billing-V4Y4OVQ7.js} +70 -70
- package/dist/cli/{chunk-7MABE3ZK.mjs → chunk-3RZJ3GEG.mjs} +135 -5
- package/dist/cli/{chunk-UDIPEHNJ.js → chunk-4FLEXYUC.js} +141 -11
- package/dist/cli/{chunk-LJWC5HSO.js → chunk-75ZOTF3K.js} +15 -15
- package/dist/cli/{chunk-6ENR652E.mjs → chunk-7T6DX5RK.mjs} +21 -14
- package/dist/cli/{chunk-Y4LXIUHX.js → chunk-AD23W4S5.js} +1 -1
- package/dist/cli/{chunk-B2R66UTW.mjs → chunk-EROOAI5G.mjs} +1 -1
- package/dist/cli/{chunk-UM4ZE3P7.mjs → chunk-ERU2OR6F.mjs} +2 -2
- package/dist/cli/{chunk-YIY74KUF.mjs → chunk-EV4QJE4J.mjs} +1 -1
- package/dist/cli/{chunk-WWVE4HFN.mjs → chunk-FK7PW6BP.mjs} +1 -1
- package/dist/cli/{chunk-2HKPAZVJ.js → chunk-FKKNYKDY.js} +14 -3
- package/dist/cli/{chunk-YFCHBN3C.mjs → chunk-GCNER3HV.mjs} +1 -1
- package/dist/cli/{chunk-ITFUZEHE.js → chunk-GY2EEO2Y.js} +9 -9
- package/dist/cli/{chunk-GZV5F6CL.mjs → chunk-HI7TAWFS.mjs} +79 -26
- package/dist/cli/{chunk-AKKQ26RX.mjs → chunk-HVPRQGF4.mjs} +1 -1
- package/dist/cli/{chunk-ZFKUVDOM.js → chunk-J2E5R2VH.js} +60 -60
- package/dist/cli/{chunk-XVKQ6D4K.js → chunk-KHZQFFOQ.js} +2 -2
- package/dist/cli/{chunk-SMGNDW7O.mjs → chunk-MFQQINUY.mjs} +2 -2
- package/dist/cli/{chunk-ZND34HL7.mjs → chunk-MO2XSC5I.mjs} +4 -4
- package/dist/cli/{chunk-KP7W5NO6.mjs → chunk-NTVTZAVZ.mjs} +13 -2
- package/dist/cli/{chunk-7DDNACAQ.js → chunk-OUTIWGKY.js} +26 -26
- package/dist/cli/{chunk-7R6KQSFA.mjs → chunk-OZGU7P2S.mjs} +1 -1
- package/dist/cli/{chunk-BC7FMQ2G.mjs → chunk-SJV5MTOJ.mjs} +1 -1
- package/dist/cli/{chunk-DNMV2L7Q.js → chunk-U2N4CYT7.js} +6 -6
- package/dist/cli/{chunk-W6WV6UME.js → chunk-U4CTHVN7.js} +255 -248
- package/dist/cli/{chunk-AGH6YP2T.js → chunk-UQV5M6HN.js} +3 -3
- package/dist/cli/{chunk-O5GPNPOC.js → chunk-VDIHLKGG.js} +4 -4
- package/dist/cli/{chunk-DNYRAZSK.js → chunk-VLDLJZ75.js} +48 -48
- package/dist/cli/{chunk-2FPVWL4W.js → chunk-XRYKLK56.js} +119 -66
- package/dist/cli/{chunk-OOLIEDIJ.mjs → chunk-YNSCELIJ.mjs} +2 -2
- package/dist/cli/{chunk-LEEXRXQQ.js → chunk-ZXGUYTIT.js} +6 -6
- package/dist/cli/client-5AIFBLKQ.js +20 -0
- package/dist/cli/{client-ZABA5NMD.mjs → client-BNLD775D.mjs} +3 -3
- package/dist/cli/{csv-VECE3PWX.mjs → csv-7MVQECWG.mjs} +3 -3
- package/dist/cli/{csv-4ZK5ZJAJ.js → csv-ZT6ZRQ3Z.js} +12 -12
- package/dist/cli/{db-6VE4OEWW.mjs → db-ABLWLMX5.mjs} +4 -4
- package/dist/cli/{db-UJPCDBV7.js → db-C4BMZXJK.js} +29 -29
- package/dist/cli/{describe-W6X5G4JR.mjs → describe-XWOWAR32.mjs} +10 -10
- package/dist/cli/{describe-CFUZZ326.js → describe-YALVN4WH.js} +17 -17
- package/dist/cli/{executions-ZZWB75DF.mjs → executions-7IZVKQ3O.mjs} +4 -4
- package/dist/cli/{executions-AI4DTQQL.js → executions-U4TNRP26.js} +6 -6
- package/dist/cli/{feedback-IM5Z6T5K.mjs → feedback-GO5XPEKY.mjs} +3 -3
- package/dist/cli/{feedback-FYSNSYUU.js → feedback-NWMRT5W4.js} +6 -6
- package/dist/cli/{git-YNYTK3YW.mjs → git-R53WS4WA.mjs} +4 -4
- package/dist/cli/git-YWRLAOBY.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-4DTMYYUY.mjs → legacy-noops-6QAZW7WJ.mjs} +4 -4
- package/dist/cli/{legacy-noops-PHJE2XFK.js → legacy-noops-NJWM53DE.js} +7 -7
- package/dist/cli/{monitors-27JP76WE.js → monitors-2I2MYAPS.js} +85 -85
- package/dist/cli/{monitors-HUP4MVWJ.mjs → monitors-2N4BRU5M.mjs} +4 -4
- package/dist/cli/{org-L3B2RR4U.mjs → org-D3RHK2Q7.mjs} +4 -4
- package/dist/cli/{org-RHVDMUKN.js → org-XVNAE2JV.js} +60 -60
- package/dist/cli/{play-UXIJVYNF.mjs → play-L7MYJZ65.mjs} +9 -9
- package/dist/cli/play-OYRHI7G3.js +153 -0
- package/dist/cli/{providers-VL6VY56M.js → providers-5BTDAZHN.js} +7 -7
- package/dist/cli/{providers-FABWTNKR.mjs → providers-YM4E7WZD.mjs} +4 -4
- package/dist/cli/{quickstart-IIPZ6DSY.js → quickstart-5A3FHAH3.js} +5 -5
- package/dist/cli/{quickstart-OA54A4IE.mjs → quickstart-ARPLJOLH.mjs} +3 -3
- package/dist/cli/{search-YDK4V2EW.mjs → search-KKJEVV27.mjs} +5 -5
- package/dist/cli/search-VE3O3ZEM.js +26 -0
- package/dist/cli/{secrets-4MQF6RF6.mjs → secrets-DGRJ4DO5.mjs} +4 -4
- package/dist/cli/{secrets-JGU7ZRUW.js → secrets-DVPVCSZD.js} +13 -13
- package/dist/cli/{sessions-PTHOMSZ5.mjs → sessions-56EHXLZD.mjs} +4 -4
- package/dist/cli/{sessions-I7ZZYSYW.js → sessions-VG4ATQ5Y.js} +5 -5
- package/dist/cli/{settings-X4ENSGNK.mjs → settings-4U5XG7QI.mjs} +7 -7
- package/dist/cli/{settings-ZUUBKIG6.js → settings-BLOTIW2G.js} +74 -74
- package/dist/cli/{setup-6L576TQE.js → setup-L7AMAXCH.js} +41 -41
- package/dist/cli/{setup-4UM6FCZL.mjs → setup-RHJAHPOR.mjs} +6 -6
- package/dist/cli/skills-QB4OQGGP.js +28 -0
- package/dist/cli/{skills-U3BS5KUI.mjs → skills-VU55YFCI.mjs} +4 -4
- package/dist/cli/tools-2CPFYNK7.js +40 -0
- package/dist/cli/{tools-O4PX6UVB.mjs → tools-JS3YIDOH.mjs} +7 -6
- package/dist/cli/{update-OHWSK2WN.mjs → update-EHI5QUXM.mjs} +6 -6
- package/dist/cli/update-WXP24GU5.js +28 -0
- package/dist/cli/{workflow-RVMGBMLX.mjs → workflow-BITLTLRF.mjs} +5 -5
- package/dist/cli/{workflow-QWTZBLT3.js → workflow-NE4SYRAT.js} +15 -15
- package/dist/{client-wiWPZhnI.d.mts → client-D5XOQKsA.d.mts} +20 -1
- package/dist/{client-DHq8dJ56.d.ts → client-l-IoLh8Z.d.ts} +20 -1
- package/dist/{compiler-manifest-9TkZ_ykI.d.mts → compiler-manifest-82q4jtfQ.d.mts} +44 -17
- package/dist/{compiler-manifest-9TkZ_ykI.d.ts → compiler-manifest-82q4jtfQ.d.ts} +44 -17
- package/dist/{index-B-5_Xhud.d.mts → index-BPbW2XHF.d.mts} +1 -1
- package/dist/{index-ykksoEyR.d.ts → index-k0rquHIm.d.ts} +1 -1
- package/dist/index.d.mts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +194 -69
- package/dist/index.mjs +162 -37
- package/dist/install-integrity.json +84 -84
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- 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 +2 -1
- package/dist/cli/auth-EKRB4GMP.js +0 -31
- package/dist/cli/client-55BDB4LE.js +0 -20
- package/dist/cli/git-VWXH6LCP.js +0 -23
- package/dist/cli/play-UKH4VFPF.js +0 -153
- package/dist/cli/search-JD2VTR4A.js +0 -26
- package/dist/cli/skills-TLPNCERR.js +0 -28
- package/dist/cli/tools-26JTFFU4.js +0 -39
- package/dist/cli/update-35RRCU2G.js +0 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { g as PlayCompilerManifest,
|
|
3
|
+
import { g as PlayCompilerManifest, aj as ToolResultBilling } from './compiler-manifest-82q4jtfQ.mjs';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
5
5
|
|
|
6
6
|
declare const playPathSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
@@ -1472,6 +1472,25 @@ interface ToolPricingSummary {
|
|
|
1472
1472
|
summary: string | null;
|
|
1473
1473
|
/** Additional user-facing pricing notes. */
|
|
1474
1474
|
details: string[];
|
|
1475
|
+
/** Estimated prices for listed single-unit configurations, not a charge ceiling. */
|
|
1476
|
+
estimatedRange?: {
|
|
1477
|
+
minCreditsPerUnit: number;
|
|
1478
|
+
maxCreditsPerUnit: number;
|
|
1479
|
+
scope: string;
|
|
1480
|
+
configurations: {
|
|
1481
|
+
name: string;
|
|
1482
|
+
creditsPerUnit: number;
|
|
1483
|
+
}[];
|
|
1484
|
+
};
|
|
1485
|
+
/** Historical customer charge, not a guaranteed rate or provider tariff. */
|
|
1486
|
+
observedReference?: {
|
|
1487
|
+
creditsPerCall: number;
|
|
1488
|
+
usdPerCall: number | null;
|
|
1489
|
+
source: 'observed';
|
|
1490
|
+
observedAt: string;
|
|
1491
|
+
sampleSize: number;
|
|
1492
|
+
inputMode: string;
|
|
1493
|
+
};
|
|
1475
1494
|
}
|
|
1476
1495
|
/** A discoverable provider, returned by {@link DeeplineClient.listProviders}. */
|
|
1477
1496
|
interface ProviderDefinition {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { g as PlayCompilerManifest,
|
|
3
|
+
import { g as PlayCompilerManifest, aj as ToolResultBilling } from './compiler-manifest-82q4jtfQ.js';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
5
5
|
|
|
6
6
|
declare const playPathSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodObject<{
|
|
@@ -1472,6 +1472,25 @@ interface ToolPricingSummary {
|
|
|
1472
1472
|
summary: string | null;
|
|
1473
1473
|
/** Additional user-facing pricing notes. */
|
|
1474
1474
|
details: string[];
|
|
1475
|
+
/** Estimated prices for listed single-unit configurations, not a charge ceiling. */
|
|
1476
|
+
estimatedRange?: {
|
|
1477
|
+
minCreditsPerUnit: number;
|
|
1478
|
+
maxCreditsPerUnit: number;
|
|
1479
|
+
scope: string;
|
|
1480
|
+
configurations: {
|
|
1481
|
+
name: string;
|
|
1482
|
+
creditsPerUnit: number;
|
|
1483
|
+
}[];
|
|
1484
|
+
};
|
|
1485
|
+
/** Historical customer charge, not a guaranteed rate or provider tariff. */
|
|
1486
|
+
observedReference?: {
|
|
1487
|
+
creditsPerCall: number;
|
|
1488
|
+
usdPerCall: number | null;
|
|
1489
|
+
source: 'observed';
|
|
1490
|
+
observedAt: string;
|
|
1491
|
+
sampleSize: number;
|
|
1492
|
+
inputMode: string;
|
|
1493
|
+
};
|
|
1475
1494
|
}
|
|
1476
1495
|
/** A discoverable provider, returned by {@link DeeplineClient.listProviders}. */
|
|
1477
1496
|
interface ProviderDefinition {
|
|
@@ -615,6 +615,9 @@ interface PlayDataset<T> extends AsyncIterable<T> {
|
|
|
615
615
|
* Explicit escape hatch for bounded result sets.
|
|
616
616
|
* Large datasets should flow by handle through Neon-backed storage, not
|
|
617
617
|
* through worker memory as giant arrays.
|
|
618
|
+
* No argument loads the complete current handle within the memory cap or
|
|
619
|
+
* throws. A numeric limit loads only a prefix, not proof of completeness.
|
|
620
|
+
* Materializing a tool-result list does not fetch more provider pages.
|
|
618
621
|
*/
|
|
619
622
|
materialize(options?: number | PlayDatasetMaterializeOptions): Promise<T[]>;
|
|
620
623
|
toJSON(): {
|
|
@@ -696,8 +699,33 @@ type ToolResultTargetAccessor<T = unknown> = ToolResultTargetMetadata & {
|
|
|
696
699
|
};
|
|
697
700
|
type ToolResultListAccessor<T = Record<string, unknown>, TKey extends string = string> = Omit<ToolResultListMetadata, 'keys'> & {
|
|
698
701
|
keys: Partial<Record<TKey, string>> & Record<string, string>;
|
|
702
|
+
/**
|
|
703
|
+
* Editions 1–9: dataset handle, not a JavaScript array. Edition 10 uses
|
|
704
|
+
* BasicToolResultListAccessor instead; its .get() returns an ordinary array.
|
|
705
|
+
* Pass it to ctx.dataset, use first() or async iteration, or await
|
|
706
|
+
* get().materialize() for the complete current list within the memory cap.
|
|
707
|
+
* materialize(n) and peek(n) return a prefix; none fetch provider pages.
|
|
708
|
+
*/
|
|
699
709
|
get(): PlayDataset<T>;
|
|
700
710
|
};
|
|
711
|
+
/** Edition-10 getter: ordinary data, not a dataset or a promise. */
|
|
712
|
+
type BasicToolResultListAccessor<T = Record<string, unknown>, TKey extends string = string> = Omit<ToolResultListAccessor<T, TKey>, 'get'> & {
|
|
713
|
+
/** Complete resident response list. Throws for a lazy or incomplete list. */
|
|
714
|
+
get(): T[];
|
|
715
|
+
};
|
|
716
|
+
type BasicToolExecuteResultBase<TResult = unknown, TMeta = Record<string, unknown>> = Omit<ToolExecuteResultBase<TResult, TMeta>, 'extractedLists'> & {
|
|
717
|
+
extractedLists: Record<string, BasicToolResultListAccessor>;
|
|
718
|
+
};
|
|
719
|
+
type BasicToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Partial<DeeplineGetterValueMap>, TLists extends Record<string, Record<string, unknown>> = Record<string, Record<string, unknown>>> = {
|
|
720
|
+
extractedValues: {
|
|
721
|
+
[K in keyof TExtracted]: ToolResultTargetAccessor<TExtracted[K]>;
|
|
722
|
+
};
|
|
723
|
+
extractedLists: {
|
|
724
|
+
[K in keyof TLists]: BasicToolResultListAccessor<TLists[K]>;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
/** Public source-SDK result for new Plays; receipts retain the canonical form. */
|
|
728
|
+
type BasicToolExecuteResult<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>>> = BasicToolExecuteResultBase<TResult, TMeta> & BasicToolExecuteResultAccessors<TExtracted, TLists>;
|
|
701
729
|
type ToolResponseEnvelope<TData = unknown, TMeta = Record<string, unknown>> = {
|
|
702
730
|
/** @deprecated Use declared getters or toolResponse.rawV2. */
|
|
703
731
|
raw: TData;
|
|
@@ -746,23 +774,22 @@ type ToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Par
|
|
|
746
774
|
/**
|
|
747
775
|
* Canonical result returned by Deepline tool execution.
|
|
748
776
|
*
|
|
749
|
-
*
|
|
750
|
-
*
|
|
751
|
-
* `toolResponse.rawV2`. Response metadata lives under `toolResponse.meta`. Semantic single-value
|
|
752
|
-
* getters live under `extractedValues.<name>.get()`, and list getters live
|
|
753
|
-
* under `extractedLists.<name>.get()`.
|
|
777
|
+
* Provider data: `toolResponse.rawV2`; metadata: `toolResponse.meta`.
|
|
778
|
+
* Single-value getters: `extractedValues.<name>.get()`; lists: `extractedLists.<name>.get()`.
|
|
754
779
|
*
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
*
|
|
758
|
-
*
|
|
759
|
-
*
|
|
780
|
+
* Prefer declared getters. New Plays (edition 10) receive ordinary arrays from
|
|
781
|
+
* list `.get()` synchronously; persist explicitly with ctx.dataset. Lazy or
|
|
782
|
+
* incomplete lists throw: use readList(result, path) for explicit dataset access.
|
|
783
|
+
* Provider pagination requires a separate request; getters never fetch it.
|
|
784
|
+
* Historical editions 1–9 retain PlayDataset getters and async materialize/peek;
|
|
785
|
+
* missing getters never mean empty results. Inspect rawV2 for debugging: parsed,
|
|
786
|
+
* scrubbed envelopes, pagination and siblings, not HTTP bytes or headers.
|
|
760
787
|
*
|
|
761
788
|
* @sdkReference runtime 200
|
|
762
789
|
*/
|
|
763
790
|
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>;
|
|
764
791
|
|
|
765
|
-
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
792
|
+
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
766
793
|
type PlayAuthoringContractEdition = (typeof SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS)[number];
|
|
767
794
|
type PlaySqlListenerOperation = 'INSERT' | 'UPDATE' | 'DELETE';
|
|
768
795
|
type PlayStandardWebhookHeaderFamily = 'standard' | 'svix';
|
|
@@ -1235,7 +1262,7 @@ type PlayAuthoringRunScope = {
|
|
|
1235
1262
|
readonly id: string;
|
|
1236
1263
|
};
|
|
1237
1264
|
/** The complete customer-authored `ctx` Interface shared by every Adapter. */
|
|
1238
|
-
interface PlayAuthoringRuntimeContext {
|
|
1265
|
+
interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' = 'dataset'> {
|
|
1239
1266
|
/**
|
|
1240
1267
|
* Load a staged CSV file as a durable dataset handle.
|
|
1241
1268
|
* @sdkReference runtime 040 ctx.csv(path, options)
|
|
@@ -1245,7 +1272,7 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1245
1272
|
* Create a persisted row dataset and define durable output columns.
|
|
1246
1273
|
* @sdkReference runtime 060 ctx.dataset(key, items)
|
|
1247
1274
|
*/
|
|
1248
|
-
dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): PlayAuthoringDatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object, PlayAuthoringRuntimeContext
|
|
1275
|
+
dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): PlayAuthoringDatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object, PlayAuthoringRuntimeContext<TListGetter>>;
|
|
1249
1276
|
/** @deprecated `ctx.map(...)` was replaced by `ctx.dataset(...)`. */
|
|
1250
1277
|
map<TSource extends PlayDatasetInput<object>>(key: string, items: TSource, options?: PlayAuthoringDatasetDefinitionOptions<PlayDatasetRow<TSource> & object>): never;
|
|
1251
1278
|
/**
|
|
@@ -1258,7 +1285,7 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1258
1285
|
* Execute a provider tool through the terminal-result cache contract.
|
|
1259
1286
|
* @sdkReference runtime 150 ctx.tools.execute(request)
|
|
1260
1287
|
*/
|
|
1261
|
-
execute<TOutput = PlayLooseObject>(request: PlayToolExecutionRequest): Promise<ToolExecuteResult<TOutput>>;
|
|
1288
|
+
execute<TOutput = PlayLooseObject>(request: PlayToolExecutionRequest): Promise<TListGetter extends 'array' ? BasicToolExecuteResult<TOutput> : ToolExecuteResult<TOutput>>;
|
|
1262
1289
|
};
|
|
1263
1290
|
customerDb: {
|
|
1264
1291
|
query<TRow extends object = Record<string, unknown>>(statement: PlaySqlQuery | string, options?: PlayAuthoringCustomerDbQueryOptions): Promise<TRow[]>;
|
|
@@ -1266,12 +1293,12 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1266
1293
|
/** Shorthand for one managed tool call. */
|
|
1267
1294
|
tool<TOutput = PlayLooseObject>(key: string, toolId: string, input: Record<string, unknown>, options?: {
|
|
1268
1295
|
description?: string;
|
|
1269
|
-
}): Promise<ToolExecuteResult<TOutput>>;
|
|
1296
|
+
}): Promise<TListGetter extends 'array' ? BasicToolExecuteResult<TOutput> : ToolExecuteResult<TOutput>>;
|
|
1270
1297
|
/**
|
|
1271
1298
|
* Execute one reusable step program against a scalar input.
|
|
1272
1299
|
* @sdkReference runtime 180 ctx.runSteps(program, input, options)
|
|
1273
1300
|
*/
|
|
1274
|
-
runSteps<TInput extends Record<string, unknown>, TOutput>(program: PlayAuthoringRunnableStepProgram<TOutput, PlayAuthoringRuntimeContext
|
|
1301
|
+
runSteps<TInput extends Record<string, unknown>, TOutput>(program: PlayAuthoringRunnableStepProgram<TOutput, PlayAuthoringRuntimeContext<TListGetter>> & {
|
|
1275
1302
|
readonly __inputType?: (input: TInput) => void;
|
|
1276
1303
|
}, input: TInput, options?: PlayAuthoringRunStepsOptions): Promise<TOutput>;
|
|
1277
1304
|
/**
|
|
@@ -3283,4 +3310,4 @@ type PlayCompilerManifest = {
|
|
|
3283
3310
|
authoringContract?: AdmittedPlayAuthoringContract;
|
|
3284
3311
|
};
|
|
3285
3312
|
|
|
3286
|
-
export { type
|
|
3313
|
+
export { type DeeplineEmailStatusGetterValue as $, type AsyncPlayRunRef as A, type BasicToolExecuteResult as B, type PlayAuthoringCallExecution as C, type PlayAuthoringCallOptions as D, type PlayAuthoringFetchResponse as E, type PlayAuthoringInputContract as F, type PlayRunId as G, type PlayAuthoringStepProgramStep as H, type PlayAuthoringRuntimeStepOptions as I, type PlaySqlListenerDeclaration as J, type PlaySqlListenerEvent as K, type PlaySqlListenerOperation as L, type PlaySqlQuery as M, type PlayAuthoringStepOptions as N, type PlayAuthoringStepProgram as O, PLAY_ARTIFACT_KINDS as P, type PlayAuthoringStepProgramResolver as Q, type PlayAuthoringStepResolver as R, type PlayToolExecutionRequest as S, type ToolExecuteResult as T, type PlayAuthoringStepProgramOptions as U, DeeplineError as V, ToolExecutionError as W, type ToolExecutionErrorOptions as X, CtxFetchHttpError as Y, DEEPLINE_EXTRACTOR_TARGETS as Z, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as _, type PlayArtifactCompatibility as a, type DeeplineExtractorTarget as a0, type DeeplineGetterValue as a1, type DeeplineGetterValueMap as a2, JOB_CHANGE_STATUS_VALUES as a3, type JobChangeStatus as a4, PHONE_STATUS_VALUES as a5, type PhoneStatus as a6, type PlayDatasetInput as a7, type PreviousCell as a8, ProviderTransientError as a9, type ProviderTransientErrorCategory as aa, type ProviderUnavailableError as ab, type ProviderUnavailableReason as ac, type ToolExecutionErrorCategory as ad, type ToolExecutionErrorOrigin as ae, type ToolExecutionFailureV1 as af, type ToolExecutionNetworkKind as ag, type ToolExecutionNetworkScope as ah, type ToolExecutionPublicDetails as ai, type ToolResultBilling as aj, getProviderUnavailableReason as ak, isDeeplineExtractorTarget as al, isProviderUnavailable as am, isProviderWaterfallUnavailableError as an, type PlayBundleArtifact as b, type PlayImportPolicy as c, type PlayPackageImport as d, type PlayRuntimeFeature as e, type PlaySandboxRuntimeDeclaration as f, type PlayCompilerManifest as g, type PlayArtifactKind as h, type PlayDataset as i, type PlayAuthoringColumnMap as j, type PlayAuthoringColumnResolver as k, type PlayAuthoringRuntimeContext as l, type PlayAuthoringConditionalStepResolver as m, type PlayAuthoringCsvInput as n, type PlayAuthoringCsvOptions as o, type PlayAuthoringDatasetBuilder as p, type PlayAuthoringDatasetColumnDefinition as q, type PlayAuthoringDatasetColumnRunInput as r, type PlayAuthoringReferenceLike as s, type PlayReturnObject as t, type PlayAuthoringDefineConfig as u, type PlayAuthoringDefinedPlay as v, type PlayAuthoringFetchOptions as w, type PlayAuthoringFileInput as x, type PlayAuthoringAsyncCallOptions as y, type PlayAuthoringBindings as z };
|
|
@@ -615,6 +615,9 @@ interface PlayDataset<T> extends AsyncIterable<T> {
|
|
|
615
615
|
* Explicit escape hatch for bounded result sets.
|
|
616
616
|
* Large datasets should flow by handle through Neon-backed storage, not
|
|
617
617
|
* through worker memory as giant arrays.
|
|
618
|
+
* No argument loads the complete current handle within the memory cap or
|
|
619
|
+
* throws. A numeric limit loads only a prefix, not proof of completeness.
|
|
620
|
+
* Materializing a tool-result list does not fetch more provider pages.
|
|
618
621
|
*/
|
|
619
622
|
materialize(options?: number | PlayDatasetMaterializeOptions): Promise<T[]>;
|
|
620
623
|
toJSON(): {
|
|
@@ -696,8 +699,33 @@ type ToolResultTargetAccessor<T = unknown> = ToolResultTargetMetadata & {
|
|
|
696
699
|
};
|
|
697
700
|
type ToolResultListAccessor<T = Record<string, unknown>, TKey extends string = string> = Omit<ToolResultListMetadata, 'keys'> & {
|
|
698
701
|
keys: Partial<Record<TKey, string>> & Record<string, string>;
|
|
702
|
+
/**
|
|
703
|
+
* Editions 1–9: dataset handle, not a JavaScript array. Edition 10 uses
|
|
704
|
+
* BasicToolResultListAccessor instead; its .get() returns an ordinary array.
|
|
705
|
+
* Pass it to ctx.dataset, use first() or async iteration, or await
|
|
706
|
+
* get().materialize() for the complete current list within the memory cap.
|
|
707
|
+
* materialize(n) and peek(n) return a prefix; none fetch provider pages.
|
|
708
|
+
*/
|
|
699
709
|
get(): PlayDataset<T>;
|
|
700
710
|
};
|
|
711
|
+
/** Edition-10 getter: ordinary data, not a dataset or a promise. */
|
|
712
|
+
type BasicToolResultListAccessor<T = Record<string, unknown>, TKey extends string = string> = Omit<ToolResultListAccessor<T, TKey>, 'get'> & {
|
|
713
|
+
/** Complete resident response list. Throws for a lazy or incomplete list. */
|
|
714
|
+
get(): T[];
|
|
715
|
+
};
|
|
716
|
+
type BasicToolExecuteResultBase<TResult = unknown, TMeta = Record<string, unknown>> = Omit<ToolExecuteResultBase<TResult, TMeta>, 'extractedLists'> & {
|
|
717
|
+
extractedLists: Record<string, BasicToolResultListAccessor>;
|
|
718
|
+
};
|
|
719
|
+
type BasicToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Partial<DeeplineGetterValueMap>, TLists extends Record<string, Record<string, unknown>> = Record<string, Record<string, unknown>>> = {
|
|
720
|
+
extractedValues: {
|
|
721
|
+
[K in keyof TExtracted]: ToolResultTargetAccessor<TExtracted[K]>;
|
|
722
|
+
};
|
|
723
|
+
extractedLists: {
|
|
724
|
+
[K in keyof TLists]: BasicToolResultListAccessor<TLists[K]>;
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
/** Public source-SDK result for new Plays; receipts retain the canonical form. */
|
|
728
|
+
type BasicToolExecuteResult<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>>> = BasicToolExecuteResultBase<TResult, TMeta> & BasicToolExecuteResultAccessors<TExtracted, TLists>;
|
|
701
729
|
type ToolResponseEnvelope<TData = unknown, TMeta = Record<string, unknown>> = {
|
|
702
730
|
/** @deprecated Use declared getters or toolResponse.rawV2. */
|
|
703
731
|
raw: TData;
|
|
@@ -746,23 +774,22 @@ type ToolExecuteResultAccessors<TExtracted extends Record<string, unknown> = Par
|
|
|
746
774
|
/**
|
|
747
775
|
* Canonical result returned by Deepline tool execution.
|
|
748
776
|
*
|
|
749
|
-
*
|
|
750
|
-
*
|
|
751
|
-
* `toolResponse.rawV2`. Response metadata lives under `toolResponse.meta`. Semantic single-value
|
|
752
|
-
* getters live under `extractedValues.<name>.get()`, and list getters live
|
|
753
|
-
* under `extractedLists.<name>.get()`.
|
|
777
|
+
* Provider data: `toolResponse.rawV2`; metadata: `toolResponse.meta`.
|
|
778
|
+
* Single-value getters: `extractedValues.<name>.get()`; lists: `extractedLists.<name>.get()`.
|
|
754
779
|
*
|
|
755
|
-
*
|
|
756
|
-
*
|
|
757
|
-
*
|
|
758
|
-
*
|
|
759
|
-
*
|
|
780
|
+
* Prefer declared getters. New Plays (edition 10) receive ordinary arrays from
|
|
781
|
+
* list `.get()` synchronously; persist explicitly with ctx.dataset. Lazy or
|
|
782
|
+
* incomplete lists throw: use readList(result, path) for explicit dataset access.
|
|
783
|
+
* Provider pagination requires a separate request; getters never fetch it.
|
|
784
|
+
* Historical editions 1–9 retain PlayDataset getters and async materialize/peek;
|
|
785
|
+
* missing getters never mean empty results. Inspect rawV2 for debugging: parsed,
|
|
786
|
+
* scrubbed envelopes, pagination and siblings, not HTTP bytes or headers.
|
|
760
787
|
*
|
|
761
788
|
* @sdkReference runtime 200
|
|
762
789
|
*/
|
|
763
790
|
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>;
|
|
764
791
|
|
|
765
|
-
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
792
|
+
declare const SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
|
|
766
793
|
type PlayAuthoringContractEdition = (typeof SUPPORTED_PLAY_AUTHORING_CONTRACT_EDITIONS)[number];
|
|
767
794
|
type PlaySqlListenerOperation = 'INSERT' | 'UPDATE' | 'DELETE';
|
|
768
795
|
type PlayStandardWebhookHeaderFamily = 'standard' | 'svix';
|
|
@@ -1235,7 +1262,7 @@ type PlayAuthoringRunScope = {
|
|
|
1235
1262
|
readonly id: string;
|
|
1236
1263
|
};
|
|
1237
1264
|
/** The complete customer-authored `ctx` Interface shared by every Adapter. */
|
|
1238
|
-
interface PlayAuthoringRuntimeContext {
|
|
1265
|
+
interface PlayAuthoringRuntimeContext<TListGetter extends 'dataset' | 'array' = 'dataset'> {
|
|
1239
1266
|
/**
|
|
1240
1267
|
* Load a staged CSV file as a durable dataset handle.
|
|
1241
1268
|
* @sdkReference runtime 040 ctx.csv(path, options)
|
|
@@ -1245,7 +1272,7 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1245
1272
|
* Create a persisted row dataset and define durable output columns.
|
|
1246
1273
|
* @sdkReference runtime 060 ctx.dataset(key, items)
|
|
1247
1274
|
*/
|
|
1248
|
-
dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): PlayAuthoringDatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object, PlayAuthoringRuntimeContext
|
|
1275
|
+
dataset<TSource extends PlayDatasetInput<object>>(key: string, items: TSource): PlayAuthoringDatasetBuilder<PlayDatasetRow<TSource> & object, PlayDatasetRow<TSource> & object, PlayAuthoringRuntimeContext<TListGetter>>;
|
|
1249
1276
|
/** @deprecated `ctx.map(...)` was replaced by `ctx.dataset(...)`. */
|
|
1250
1277
|
map<TSource extends PlayDatasetInput<object>>(key: string, items: TSource, options?: PlayAuthoringDatasetDefinitionOptions<PlayDatasetRow<TSource> & object>): never;
|
|
1251
1278
|
/**
|
|
@@ -1258,7 +1285,7 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1258
1285
|
* Execute a provider tool through the terminal-result cache contract.
|
|
1259
1286
|
* @sdkReference runtime 150 ctx.tools.execute(request)
|
|
1260
1287
|
*/
|
|
1261
|
-
execute<TOutput = PlayLooseObject>(request: PlayToolExecutionRequest): Promise<ToolExecuteResult<TOutput>>;
|
|
1288
|
+
execute<TOutput = PlayLooseObject>(request: PlayToolExecutionRequest): Promise<TListGetter extends 'array' ? BasicToolExecuteResult<TOutput> : ToolExecuteResult<TOutput>>;
|
|
1262
1289
|
};
|
|
1263
1290
|
customerDb: {
|
|
1264
1291
|
query<TRow extends object = Record<string, unknown>>(statement: PlaySqlQuery | string, options?: PlayAuthoringCustomerDbQueryOptions): Promise<TRow[]>;
|
|
@@ -1266,12 +1293,12 @@ interface PlayAuthoringRuntimeContext {
|
|
|
1266
1293
|
/** Shorthand for one managed tool call. */
|
|
1267
1294
|
tool<TOutput = PlayLooseObject>(key: string, toolId: string, input: Record<string, unknown>, options?: {
|
|
1268
1295
|
description?: string;
|
|
1269
|
-
}): Promise<ToolExecuteResult<TOutput>>;
|
|
1296
|
+
}): Promise<TListGetter extends 'array' ? BasicToolExecuteResult<TOutput> : ToolExecuteResult<TOutput>>;
|
|
1270
1297
|
/**
|
|
1271
1298
|
* Execute one reusable step program against a scalar input.
|
|
1272
1299
|
* @sdkReference runtime 180 ctx.runSteps(program, input, options)
|
|
1273
1300
|
*/
|
|
1274
|
-
runSteps<TInput extends Record<string, unknown>, TOutput>(program: PlayAuthoringRunnableStepProgram<TOutput, PlayAuthoringRuntimeContext
|
|
1301
|
+
runSteps<TInput extends Record<string, unknown>, TOutput>(program: PlayAuthoringRunnableStepProgram<TOutput, PlayAuthoringRuntimeContext<TListGetter>> & {
|
|
1275
1302
|
readonly __inputType?: (input: TInput) => void;
|
|
1276
1303
|
}, input: TInput, options?: PlayAuthoringRunStepsOptions): Promise<TOutput>;
|
|
1277
1304
|
/**
|
|
@@ -3283,4 +3310,4 @@ type PlayCompilerManifest = {
|
|
|
3283
3310
|
authoringContract?: AdmittedPlayAuthoringContract;
|
|
3284
3311
|
};
|
|
3285
3312
|
|
|
3286
|
-
export { type
|
|
3313
|
+
export { type DeeplineEmailStatusGetterValue as $, type AsyncPlayRunRef as A, type BasicToolExecuteResult as B, type PlayAuthoringCallExecution as C, type PlayAuthoringCallOptions as D, type PlayAuthoringFetchResponse as E, type PlayAuthoringInputContract as F, type PlayRunId as G, type PlayAuthoringStepProgramStep as H, type PlayAuthoringRuntimeStepOptions as I, type PlaySqlListenerDeclaration as J, type PlaySqlListenerEvent as K, type PlaySqlListenerOperation as L, type PlaySqlQuery as M, type PlayAuthoringStepOptions as N, type PlayAuthoringStepProgram as O, PLAY_ARTIFACT_KINDS as P, type PlayAuthoringStepProgramResolver as Q, type PlayAuthoringStepResolver as R, type PlayToolExecutionRequest as S, type ToolExecuteResult as T, type PlayAuthoringStepProgramOptions as U, DeeplineError as V, ToolExecutionError as W, type ToolExecutionErrorOptions as X, CtxFetchHttpError as Y, DEEPLINE_EXTRACTOR_TARGETS as Z, DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS as _, type PlayArtifactCompatibility as a, type DeeplineExtractorTarget as a0, type DeeplineGetterValue as a1, type DeeplineGetterValueMap as a2, JOB_CHANGE_STATUS_VALUES as a3, type JobChangeStatus as a4, PHONE_STATUS_VALUES as a5, type PhoneStatus as a6, type PlayDatasetInput as a7, type PreviousCell as a8, ProviderTransientError as a9, type ProviderTransientErrorCategory as aa, type ProviderUnavailableError as ab, type ProviderUnavailableReason as ac, type ToolExecutionErrorCategory as ad, type ToolExecutionErrorOrigin as ae, type ToolExecutionFailureV1 as af, type ToolExecutionNetworkKind as ag, type ToolExecutionNetworkScope as ah, type ToolExecutionPublicDetails as ai, type ToolResultBilling as aj, getProviderUnavailableReason as ak, isDeeplineExtractorTarget as al, isProviderUnavailable as am, isProviderWaterfallUnavailableError as an, type PlayBundleArtifact as b, type PlayImportPolicy as c, type PlayPackageImport as d, type PlayRuntimeFeature as e, type PlaySandboxRuntimeDeclaration as f, type PlayCompilerManifest as g, type PlayArtifactKind as h, type PlayDataset as i, type PlayAuthoringColumnMap as j, type PlayAuthoringColumnResolver as k, type PlayAuthoringRuntimeContext as l, type PlayAuthoringConditionalStepResolver as m, type PlayAuthoringCsvInput as n, type PlayAuthoringCsvOptions as o, type PlayAuthoringDatasetBuilder as p, type PlayAuthoringDatasetColumnDefinition as q, type PlayAuthoringDatasetColumnRunInput as r, type PlayAuthoringReferenceLike as s, type PlayReturnObject as t, type PlayAuthoringDefineConfig as u, type PlayAuthoringDefinedPlay as v, type PlayAuthoringFetchOptions as w, type PlayAuthoringFileInput as x, type PlayAuthoringAsyncCallOptions as y, type PlayAuthoringBindings as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind } from './compiler-manifest-
|
|
2
|
+
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind } from './compiler-manifest-82q4jtfQ.mjs';
|
|
3
3
|
|
|
4
4
|
type ImportedPlayDependency = {
|
|
5
5
|
filePath: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind } from './compiler-manifest-
|
|
2
|
+
import { b as PlayBundleArtifact, f as PlaySandboxRuntimeDeclaration, g as PlayCompilerManifest, h as PlayArtifactKind } from './compiler-manifest-82q4jtfQ.js';
|
|
3
3
|
|
|
4
4
|
type ImportedPlayDependency = {
|
|
5
5
|
filePath: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
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-
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
import { b as BundledPlayFileSuccess } from './index-
|
|
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-D5XOQKsA.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-D5XOQKsA.mjs';
|
|
4
|
+
import { T as ToolExecuteResult, B as BasicToolExecuteResult, i as PlayDataset, A as AsyncPlayRunRef$1, j as PlayAuthoringColumnMap, k as PlayAuthoringColumnResolver, l as PlayAuthoringRuntimeContext, m as PlayAuthoringConditionalStepResolver, n as PlayAuthoringCsvInput, o as PlayAuthoringCsvOptions, p as PlayAuthoringDatasetBuilder, q as PlayAuthoringDatasetColumnDefinition, r as PlayAuthoringDatasetColumnRunInput, s as PlayAuthoringReferenceLike, t as PlayReturnObject$1, u as PlayAuthoringDefineConfig, v as PlayAuthoringDefinedPlay, w as PlayAuthoringFetchOptions, x as PlayAuthoringFileInput, y as PlayAuthoringAsyncCallOptions, z as PlayAuthoringBindings, C as PlayAuthoringCallExecution, D as PlayAuthoringCallOptions, E as PlayAuthoringFetchResponse, F as PlayAuthoringInputContract, G as PlayRunId$1, H as PlayAuthoringStepProgramStep, I as PlayAuthoringRuntimeStepOptions, J as PlaySqlListenerDeclaration, K as PlaySqlListenerEvent, L as PlaySqlListenerOperation, M as PlaySqlQuery, N as PlayAuthoringStepOptions, O as PlayAuthoringStepProgram, Q as PlayAuthoringStepProgramResolver, R as PlayAuthoringStepResolver, S as PlayToolExecutionRequest, U as PlayAuthoringStepProgramOptions, V as DeeplineError, W as ToolExecutionError, X as ToolExecutionErrorOptions } from './compiler-manifest-82q4jtfQ.mjs';
|
|
5
|
+
export { Y as CtxFetchHttpError, Z as DEEPLINE_EXTRACTOR_TARGETS, _ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, $ as DeeplineEmailStatusGetterValue, a0 as DeeplineExtractorTarget, a1 as DeeplineGetterValue, a2 as DeeplineGetterValueMap, a3 as JOB_CHANGE_STATUS_VALUES, a4 as JobChangeStatus, a5 as PHONE_STATUS_VALUES, a6 as PhoneStatus, a7 as PlayDatasetInput, a8 as PreviousCell, a9 as ProviderTransientError, aa as ProviderTransientErrorCategory, ab as ProviderUnavailableError, ac as ProviderUnavailableReason, ad as ToolExecutionErrorCategory, ae as ToolExecutionErrorOrigin, af as ToolExecutionFailureV1, ag as ToolExecutionNetworkKind, ah as ToolExecutionNetworkScope, ai as ToolExecutionPublicDetails, aj as ToolResultBilling, ak as getProviderUnavailableReason, al as isDeeplineExtractorTarget, am as isProviderUnavailable, an as isProviderWaterfallUnavailableError } from './compiler-manifest-82q4jtfQ.mjs';
|
|
6
|
+
import { b as BundledPlayFileSuccess } from './index-BPbW2XHF.mjs';
|
|
7
7
|
export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.mjs';
|
|
8
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';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@sinclair/typebox';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Read array rows out of a tool result — by selector paths, else the first
|
|
14
|
+
* declared list accessor. Companion to {@link readValue} for `extractList`.
|
|
15
|
+
*/
|
|
16
|
+
declare function readList(result: ToolExecuteResult | BasicToolExecuteResult, selector?: readonly string[] | string): PlayDataset<Record<string, unknown>> | Record<string, unknown>[];
|
|
17
|
+
|
|
12
18
|
type PlayCallExecution = PlayAuthoringCallExecution;
|
|
13
19
|
type PlayCallOptions = PlayAuthoringCallOptions;
|
|
14
20
|
type RuntimeStepOptions = PlayAuthoringRuntimeStepOptions;
|
|
@@ -202,7 +208,7 @@ type CsvOptions = PlayAuthoringCsvOptions;
|
|
|
202
208
|
* });
|
|
203
209
|
* ```
|
|
204
210
|
*/
|
|
205
|
-
type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext
|
|
211
|
+
type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext<'array'>;
|
|
206
212
|
/**
|
|
207
213
|
* Handle to a Play execution: inspect status, stream logs, await output, or cancel.
|
|
208
214
|
* Like `deepline plays run` and `POST /api/v2/plays/run`, it returns a run id first.
|
|
@@ -376,7 +382,7 @@ type DeeplineToolsNamespace = {
|
|
|
376
382
|
*/
|
|
377
383
|
execute(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
|
|
378
384
|
};
|
|
379
|
-
type DeeplineToolExecuteResult =
|
|
385
|
+
type DeeplineToolExecuteResult = BasicToolExecuteResult & {
|
|
380
386
|
/** Stable key used to recover this direct tool execution, when enabled. */
|
|
381
387
|
idempotencyKey?: string;
|
|
382
388
|
executionRecovery?: ExecutionRecovery;
|
|
@@ -1055,4 +1061,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
1055
1061
|
*/
|
|
1056
1062
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
1057
1063
|
|
|
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 };
|
|
1064
|
+
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, PlayDataset, 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, BasicToolExecuteResult as ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, pinLocalPlayImports, planLocalPlayExecution, readList, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
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-
|
|
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-
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
6
|
-
import { b as BundledPlayFileSuccess } from './index-
|
|
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-l-IoLh8Z.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-l-IoLh8Z.js';
|
|
4
|
+
import { T as ToolExecuteResult, B as BasicToolExecuteResult, i as PlayDataset, A as AsyncPlayRunRef$1, j as PlayAuthoringColumnMap, k as PlayAuthoringColumnResolver, l as PlayAuthoringRuntimeContext, m as PlayAuthoringConditionalStepResolver, n as PlayAuthoringCsvInput, o as PlayAuthoringCsvOptions, p as PlayAuthoringDatasetBuilder, q as PlayAuthoringDatasetColumnDefinition, r as PlayAuthoringDatasetColumnRunInput, s as PlayAuthoringReferenceLike, t as PlayReturnObject$1, u as PlayAuthoringDefineConfig, v as PlayAuthoringDefinedPlay, w as PlayAuthoringFetchOptions, x as PlayAuthoringFileInput, y as PlayAuthoringAsyncCallOptions, z as PlayAuthoringBindings, C as PlayAuthoringCallExecution, D as PlayAuthoringCallOptions, E as PlayAuthoringFetchResponse, F as PlayAuthoringInputContract, G as PlayRunId$1, H as PlayAuthoringStepProgramStep, I as PlayAuthoringRuntimeStepOptions, J as PlaySqlListenerDeclaration, K as PlaySqlListenerEvent, L as PlaySqlListenerOperation, M as PlaySqlQuery, N as PlayAuthoringStepOptions, O as PlayAuthoringStepProgram, Q as PlayAuthoringStepProgramResolver, R as PlayAuthoringStepResolver, S as PlayToolExecutionRequest, U as PlayAuthoringStepProgramOptions, V as DeeplineError, W as ToolExecutionError, X as ToolExecutionErrorOptions } from './compiler-manifest-82q4jtfQ.js';
|
|
5
|
+
export { Y as CtxFetchHttpError, Z as DEEPLINE_EXTRACTOR_TARGETS, _ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, $ as DeeplineEmailStatusGetterValue, a0 as DeeplineExtractorTarget, a1 as DeeplineGetterValue, a2 as DeeplineGetterValueMap, a3 as JOB_CHANGE_STATUS_VALUES, a4 as JobChangeStatus, a5 as PHONE_STATUS_VALUES, a6 as PhoneStatus, a7 as PlayDatasetInput, a8 as PreviousCell, a9 as ProviderTransientError, aa as ProviderTransientErrorCategory, ab as ProviderUnavailableError, ac as ProviderUnavailableReason, ad as ToolExecutionErrorCategory, ae as ToolExecutionErrorOrigin, af as ToolExecutionFailureV1, ag as ToolExecutionNetworkKind, ah as ToolExecutionNetworkScope, ai as ToolExecutionPublicDetails, aj as ToolResultBilling, ak as getProviderUnavailableReason, al as isDeeplineExtractorTarget, am as isProviderUnavailable, an as isProviderWaterfallUnavailableError } from './compiler-manifest-82q4jtfQ.js';
|
|
6
|
+
import { b as BundledPlayFileSuccess } from './index-k0rquHIm.js';
|
|
7
7
|
export { BatchMonitorInput, MonitorInputIssue, MonitorSpec as MonitorInputSpec, lintMonitorBatchInput, lintMonitorSpecTemplate, renderMonitorSpecTemplate } from './monitor-input-contract.js';
|
|
8
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';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@sinclair/typebox';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Read array rows out of a tool result — by selector paths, else the first
|
|
14
|
+
* declared list accessor. Companion to {@link readValue} for `extractList`.
|
|
15
|
+
*/
|
|
16
|
+
declare function readList(result: ToolExecuteResult | BasicToolExecuteResult, selector?: readonly string[] | string): PlayDataset<Record<string, unknown>> | Record<string, unknown>[];
|
|
17
|
+
|
|
12
18
|
type PlayCallExecution = PlayAuthoringCallExecution;
|
|
13
19
|
type PlayCallOptions = PlayAuthoringCallOptions;
|
|
14
20
|
type RuntimeStepOptions = PlayAuthoringRuntimeStepOptions;
|
|
@@ -202,7 +208,7 @@ type CsvOptions = PlayAuthoringCsvOptions;
|
|
|
202
208
|
* });
|
|
203
209
|
* ```
|
|
204
210
|
*/
|
|
205
|
-
type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext
|
|
211
|
+
type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext<'array'>;
|
|
206
212
|
/**
|
|
207
213
|
* Handle to a Play execution: inspect status, stream logs, await output, or cancel.
|
|
208
214
|
* Like `deepline plays run` and `POST /api/v2/plays/run`, it returns a run id first.
|
|
@@ -376,7 +382,7 @@ type DeeplineToolsNamespace = {
|
|
|
376
382
|
*/
|
|
377
383
|
execute(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
|
|
378
384
|
};
|
|
379
|
-
type DeeplineToolExecuteResult =
|
|
385
|
+
type DeeplineToolExecuteResult = BasicToolExecuteResult & {
|
|
380
386
|
/** Stable key used to recover this direct tool execution, when enabled. */
|
|
381
387
|
idempotencyKey?: string;
|
|
382
388
|
executionRecovery?: ExecutionRecovery;
|
|
@@ -1055,4 +1061,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
1055
1061
|
*/
|
|
1056
1062
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
1057
1063
|
|
|
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 };
|
|
1064
|
+
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, PlayDataset, 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, BasicToolExecuteResult as ToolExecuteResult, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, ToolMetadata, ToolRateLimitError, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, pinLocalPlayImports, planLocalPlayExecution, readList, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|