deepline 0.3.405 → 0.3.407
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 +54 -57
- package/dist/bundling-sources/sdk/src/play.ts +8 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +43 -4
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +101 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +87 -28
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
- package/dist/cli/auth-4JTX6AGM.js +40 -0
- package/dist/cli/{auth-D4GXO4IN.mjs → auth-WURWNNLE.mjs} +4 -4
- package/dist/cli/{billing-TQ4UM4D4.js → billing-2QJGXGJX.js} +73 -73
- package/dist/cli/{billing-NVV5VSUJ.mjs → billing-BP3E6WIM.mjs} +4 -4
- package/dist/cli/{chunk-TECEX3K5.mjs → chunk-4TV43THC.mjs} +3 -3
- package/dist/cli/{chunk-YX7JSSJ2.mjs → chunk-6JZZNP5G.mjs} +2 -2
- package/dist/cli/{chunk-LM2JHRZM.js → chunk-7LKYHZVB.js} +1 -1
- package/dist/cli/{chunk-3DWMYKWU.mjs → chunk-BKC6VMYZ.mjs} +1 -1
- package/dist/cli/{chunk-JPNBAZBR.js → chunk-D2ZRMZKF.js} +6 -6
- package/dist/cli/{chunk-BZBV2GY2.js → chunk-G4LJS2RE.js} +8 -8
- package/dist/cli/{chunk-MZ4LBCV7.js → chunk-G6U74WNM.js} +15 -15
- package/dist/cli/{chunk-3MVBOBV4.js → chunk-H6EWQFPQ.js} +2 -2
- package/dist/cli/{chunk-AAIV3ACM.js → chunk-IY6GKJ4O.js} +50 -50
- package/dist/cli/{chunk-HG5PMETP.mjs → chunk-J67NU4MQ.mjs} +55 -58
- package/dist/cli/{chunk-HYAA3F6U.js → chunk-KUQAU5MG.js} +60 -63
- package/dist/cli/{chunk-B6ME2XIO.mjs → chunk-L25GBGQU.mjs} +5 -5
- package/dist/cli/{chunk-4ONG2MWB.mjs → chunk-N6OAMAO5.mjs} +1 -1
- package/dist/cli/{chunk-EVLCUV64.mjs → chunk-P7HOTKOK.mjs} +4 -4
- package/dist/cli/{chunk-YRZIKG47.mjs → chunk-QJAX7QN7.mjs} +2 -2
- package/dist/cli/{chunk-NAJEB3N4.js → chunk-RMZAOYDN.js} +44 -44
- package/dist/cli/{chunk-6HXTHMHZ.js → chunk-RZLXVHNO.js} +26 -26
- package/dist/cli/{chunk-NLT6GCWZ.js → chunk-SOQIPKF2.js} +8 -8
- package/dist/cli/{chunk-CB6AJNHI.js → chunk-THHM4DPE.js} +4 -4
- package/dist/cli/{chunk-3FF3SPSE.mjs → chunk-UFFSOV6I.mjs} +2 -2
- package/dist/cli/{chunk-EKWJXPIX.mjs → chunk-UPEOEYZ3.mjs} +1 -1
- package/dist/cli/{chunk-MPXPTSGJ.mjs → chunk-XT6GG3QO.mjs} +3 -3
- package/dist/cli/{chunk-WGX7SIGL.js → chunk-Y6CX4QPR.js} +65 -65
- package/dist/cli/{chunk-TPYRDAU7.mjs → chunk-ZBCTXQ3P.mjs} +1 -1
- package/dist/cli/{csv-5AASYDRF.js → csv-7E5BE23B.js} +12 -12
- package/dist/cli/{csv-H7LD6IQK.mjs → csv-N6KYTG7L.mjs} +3 -3
- package/dist/cli/{db-MJBZBDWZ.js → db-4VLZP33O.js} +25 -25
- package/dist/cli/{db-CG3UQUA7.mjs → db-XMBJNVBD.mjs} +4 -4
- package/dist/cli/{describe-2A7GARI2.js → describe-4I6EIVXD.js} +10 -10
- package/dist/cli/{describe-INFC5ACQ.mjs → describe-WERH4TD2.mjs} +6 -6
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-DO47P6MX.mjs → executions-JWQXE7G6.mjs} +4 -4
- package/dist/cli/{executions-AUDQ5HOJ.js → executions-W7TWJRBK.js} +6 -6
- package/dist/cli/{feedback-MNWNDZVU.js → feedback-FMGRC6KO.js} +7 -7
- package/dist/cli/{feedback-XGZSJM2N.mjs → feedback-OEJFX4F7.mjs} +3 -3
- package/dist/cli/{git-2ECFQKAA.mjs → git-IVC4KHXX.mjs} +4 -4
- package/dist/cli/git-OFXE7G4X.js +24 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-534TKEMO.mjs → legacy-noops-LT36CLWZ.mjs} +4 -4
- package/dist/cli/{legacy-noops-3UZTD4DS.js → legacy-noops-X3BQ7MUK.js} +7 -7
- package/dist/cli/{monitors-G4S54JSX.js → monitors-DLIIAVLW.js} +84 -84
- package/dist/cli/{monitors-5ARELE2S.mjs → monitors-MNLCELF7.mjs} +4 -4
- package/dist/cli/{org-RIWF2TLI.js → org-CYHDEW7P.js} +64 -64
- package/dist/cli/{org-BAMOOXQW.mjs → org-QV5LMUPT.mjs} +4 -4
- package/dist/cli/{play-WV4UNGPR.mjs → play-5Z4ROZ3P.mjs} +7 -7
- package/dist/cli/{play-32XSQMFK.js → play-MEFXC2QA.js} +231 -231
- package/dist/cli/{providers-XKY2CNKH.js → providers-2MKUNFBQ.js} +7 -7
- package/dist/cli/{providers-SMSRO23R.mjs → providers-FJLYSHB3.mjs} +4 -4
- package/dist/cli/{quickstart-BFYYEVSS.mjs → quickstart-PQO3OQRT.mjs} +3 -3
- package/dist/cli/{quickstart-Q2TA72HD.js → quickstart-ULWXKAOT.js} +5 -5
- package/dist/cli/search-ANKSJ224.js +30 -0
- package/dist/cli/{search-I2TVB2P5.mjs → search-KGAAXMDG.mjs} +5 -5
- package/dist/cli/{secrets-BHKICIE3.mjs → secrets-PD5I3KAF.mjs} +4 -4
- package/dist/cli/{secrets-B4NYTSL7.js → secrets-X2VGG2PO.js} +13 -13
- package/dist/cli/{sessions-IOR2ZNNH.mjs → sessions-3WVEU4PE.mjs} +4 -4
- package/dist/cli/{sessions-XY2UREJ7.js → sessions-R3XAKTBQ.js} +5 -5
- package/dist/cli/{settings-W6S7B4NH.mjs → settings-645RSFQX.mjs} +7 -7
- package/dist/cli/{settings-ASGROQDE.js → settings-ZIDO3IP6.js} +74 -74
- package/dist/cli/{setup-YIYQ73OV.js → setup-LH5HOZ3D.js} +41 -41
- package/dist/cli/{setup-UUWGI3IN.mjs → setup-LISKIJKP.mjs} +6 -6
- package/dist/cli/{skills-CHA4QCGI.mjs → skills-VVQJHLSF.mjs} +4 -4
- package/dist/cli/skills-WLHYSVQA.js +29 -0
- package/dist/cli/{tools-43ZFJWAQ.js → tools-FTPJCNAM.js} +7 -7
- package/dist/cli/{tools-PMZDYKTT.mjs → tools-Y3LOMXFT.mjs} +6 -6
- package/dist/cli/update-A622H2DZ.js +29 -0
- package/dist/cli/{update-6VSEGTSG.mjs → update-DOBNQNJI.mjs} +6 -6
- package/dist/cli/{workflow-26EOXZ7M.js → workflow-LGENKZBV.js} +15 -15
- package/dist/cli/{workflow-SVMVLQOF.mjs → workflow-ZMAA5VCN.mjs} +5 -5
- package/dist/{client-Buv1_ktG.d.mts → client-6rEB46Lv.d.mts} +55 -57
- package/dist/{client-Db1jFLpF.d.ts → client-IrPHUE5J.d.ts} +55 -57
- package/dist/{compiler-manifest-N77W75Py.d.ts → compiler-manifest-BHnXE43X.d.mts} +6 -1
- package/dist/{compiler-manifest-N77W75Py.d.mts → compiler-manifest-BHnXE43X.d.ts} +6 -1
- package/dist/{index-3WOfyVhW.d.mts → index-Da_Y8z5e.d.mts} +1 -1
- package/dist/{index-CtIJFTCl.d.ts → index-SODb2ROS.d.ts} +1 -1
- package/dist/index.d.mts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +8 -8
- package/dist/index.mjs +5 -5
- package/dist/install-integrity.json +76 -76
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +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 +1 -1
- package/dist/cli/auth-IJKAKAHG.js +0 -40
- package/dist/cli/git-6S64UBWC.js +0 -24
- package/dist/cli/search-GK7P3AZY.js +0 -30
- package/dist/cli/skills-LKNKHB2I.js +0 -29
- package/dist/cli/update-R7FODDIW.js +0 -29
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-H7HIDGZ7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DeeplineClient
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J67NU4MQ.mjs";
|
|
10
10
|
import "./chunk-6IKARAYD.mjs";
|
|
11
11
|
import "./chunk-JI2B4RZP.mjs";
|
|
12
12
|
import "./chunk-EIMG75BT.mjs";
|
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
printJson,
|
|
17
17
|
shouldEmitJson,
|
|
18
18
|
sleep
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-BKC6VMYZ.mjs";
|
|
20
|
+
import "./chunk-ZBCTXQ3P.mjs";
|
|
21
21
|
import "./chunk-YHPYUZZX.mjs";
|
|
22
22
|
import "./chunk-DLIRSHV6.mjs";
|
|
23
23
|
import "./chunk-NXGCO4JB.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-UPEOEYZ3.mjs";
|
|
25
25
|
import "./chunk-WZYKRD7T.mjs";
|
|
26
26
|
import "./chunk-KRD6H754.mjs";
|
|
27
27
|
|
|
@@ -1676,7 +1676,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1676
1676
|
await writeFile(file, compiled.sourceCode, "utf8");
|
|
1677
1677
|
let published = false;
|
|
1678
1678
|
if (publish) {
|
|
1679
|
-
const { handlePlayPublish } = await import("./play-
|
|
1679
|
+
const { handlePlayPublish } = await import("./play-5Z4ROZ3P.mjs");
|
|
1680
1680
|
const code = await handlePlayPublish([file]);
|
|
1681
1681
|
if (code !== 0) {
|
|
1682
1682
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { g as PlayCompilerManifest, ak as ToolResultBilling, Y as BillingEntitlements, ap as BillingBenefitValues } from './compiler-manifest-
|
|
2
|
+
import { g as PlayCompilerManifest, ak as ToolResultBilling, Y as BillingEntitlements, ap as BillingBenefitValues } from './compiler-manifest-BHnXE43X.mjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.mjs';
|
|
5
5
|
|
|
@@ -2492,9 +2492,10 @@ interface StopPlayRunResult {
|
|
|
2492
2492
|
/** True if HITL state or its same-message Slack card still needs retrying. */
|
|
2493
2493
|
hitlCancellationPending?: boolean;
|
|
2494
2494
|
/**
|
|
2495
|
-
* True only when the scheduler and the canonical run ledger disagree
|
|
2496
|
-
*
|
|
2497
|
-
*
|
|
2495
|
+
* True only when the scheduler and the canonical run ledger disagree and
|
|
2496
|
+
* the server could not confirm the stop.
|
|
2497
|
+
* For example, the scheduler can report a terminal run while the ledger
|
|
2498
|
+
* projection is pending. This field is never true for a queued cancellation.
|
|
2498
2499
|
*/
|
|
2499
2500
|
staleSchedulerState?: boolean;
|
|
2500
2501
|
/** Server-side error detail when the stop failed (`state: 'failed'`). */
|
|
@@ -6217,8 +6218,8 @@ declare class DeeplineClient {
|
|
|
6217
6218
|
/**
|
|
6218
6219
|
* Search available tools using Deepline's ranked backend search.
|
|
6219
6220
|
*
|
|
6220
|
-
*
|
|
6221
|
-
* tool metadata, categories, agent guidance, and input schema fields.
|
|
6221
|
+
* The CLI uses the same search.
|
|
6222
|
+
* The search ranks tool metadata, categories, agent guidance, and input schema fields.
|
|
6222
6223
|
*/
|
|
6223
6224
|
searchTools(options?: ToolSearchOptions): Promise<ToolSearchResult>;
|
|
6224
6225
|
/**
|
|
@@ -6256,13 +6257,12 @@ declare class DeeplineClient {
|
|
|
6256
6257
|
/**
|
|
6257
6258
|
* Describe a Deepline Agent model and its provider-specific option surface.
|
|
6258
6259
|
*
|
|
6259
|
-
*
|
|
6260
|
-
*
|
|
6261
|
-
* payloads before executing `deeplineagent`.
|
|
6260
|
+
* The method combines live AI Gateway model metadata with Deepline's generated registry of AI SDK provider options.
|
|
6261
|
+
* Agents can use this information to construct `providerOptions` payloads before they execute `deeplineagent`.
|
|
6262
6262
|
*
|
|
6263
|
-
* The returned
|
|
6264
|
-
*
|
|
6265
|
-
*
|
|
6263
|
+
* The returned schemas describe accepted shapes for provider options.
|
|
6264
|
+
* These schemas do not guarantee that every model supports each option.
|
|
6265
|
+
* Runtime AI SDK and Gateway errors determine support for model-specific values.
|
|
6266
6266
|
*
|
|
6267
6267
|
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
6268
6268
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
@@ -6271,8 +6271,8 @@ declare class DeeplineClient {
|
|
|
6271
6271
|
/**
|
|
6272
6272
|
* Quote dynamic AI inference pricing for a concrete payload.
|
|
6273
6273
|
*
|
|
6274
|
-
* The result
|
|
6275
|
-
*
|
|
6274
|
+
* The result contains a planning estimate and a separate, proven authorization maximum.
|
|
6275
|
+
* Both values use Deepline credits.
|
|
6276
6276
|
*/
|
|
6277
6277
|
quoteInferenceTool(toolId: 'ai_evaluate' | 'ai_inference' | 'deeplineagent', payload: Record<string, unknown>): Promise<InferenceQuote>;
|
|
6278
6278
|
/**
|
|
@@ -6324,13 +6324,16 @@ declare class DeeplineClient {
|
|
|
6324
6324
|
* entrypoints: the CLI, {@link Deepline.connect}, {@link submitPlay},
|
|
6325
6325
|
* or {@link runPlay}.
|
|
6326
6326
|
*
|
|
6327
|
-
*
|
|
6328
|
-
*
|
|
6329
|
-
*
|
|
6330
|
-
*
|
|
6331
|
-
*
|
|
6332
|
-
*
|
|
6333
|
-
*
|
|
6327
|
+
* These interfaces share the run contract and return a workflow or run ID:
|
|
6328
|
+
*
|
|
6329
|
+
* - `deepline plays run`.
|
|
6330
|
+
* - Repository scripts such as `bun run deepline -- plays run`.
|
|
6331
|
+
* - SDK context calls such as `Deepline.connect().play(name).run()`.
|
|
6332
|
+
* - Direct `POST /api/v2/plays/run` calls.
|
|
6333
|
+
*
|
|
6334
|
+
* Read completed output from `getPlayStatus(runId).result`.
|
|
6335
|
+
* For SDK context calls, read output from `PlayJob.get()`.
|
|
6336
|
+
* Execution logs appear under `progress.logs`. The user output object does not contain these logs.
|
|
6334
6337
|
*
|
|
6335
6338
|
* @param request - Play run configuration (name, code, input, etc.)
|
|
6336
6339
|
* @returns Run metadata including the public `workflowId`
|
|
@@ -6464,9 +6467,8 @@ declare class DeeplineClient {
|
|
|
6464
6467
|
/**
|
|
6465
6468
|
* Compile a bundled play artifact into the server-side compiler manifest.
|
|
6466
6469
|
*
|
|
6467
|
-
* The manifest records imports, trigger bindings, static pipeline shape, and
|
|
6468
|
-
*
|
|
6469
|
-
* or run.
|
|
6470
|
+
* The manifest records imports, trigger bindings, static pipeline shape, and runtime metadata.
|
|
6471
|
+
* The compiler needs these records before it checks, registers, or runs a Play artifact.
|
|
6470
6472
|
*/
|
|
6471
6473
|
compilePlayManifest(input: {
|
|
6472
6474
|
name: string;
|
|
@@ -6518,8 +6520,8 @@ declare class DeeplineClient {
|
|
|
6518
6520
|
/**
|
|
6519
6521
|
* Register an already-bundled play artifact and start a run from it.
|
|
6520
6522
|
*
|
|
6521
|
-
*
|
|
6522
|
-
*
|
|
6523
|
+
* SDK and CLI packaging wrappers use this low-level run method for file-based Plays.
|
|
6524
|
+
* Local bundling must produce the runtime artifact first.
|
|
6523
6525
|
*/
|
|
6524
6526
|
startPlayRunFromBundle(input: {
|
|
6525
6527
|
name: string;
|
|
@@ -6537,15 +6539,15 @@ declare class DeeplineClient {
|
|
|
6537
6539
|
/**
|
|
6538
6540
|
* Register a bundled play artifact and start a run from the live revision.
|
|
6539
6541
|
*
|
|
6540
|
-
*
|
|
6541
|
-
*
|
|
6542
|
-
*
|
|
6543
|
-
* durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
6542
|
+
* This method wraps {@link registerPlayArtifact} and {@link startPlayRun}.
|
|
6543
|
+
* Packaging wrappers use this method for file-based Plays.
|
|
6544
|
+
* Pass the returned ID to {@link getPlayStatus}.
|
|
6545
|
+
* The method returns the same durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
6544
6546
|
*
|
|
6545
|
-
* @param code -
|
|
6546
|
-
* @param csvPath - Path to input CSV file, or `null
|
|
6547
|
-
* @param name - Play name
|
|
6548
|
-
* @param options - Additional submission options
|
|
6547
|
+
* @param code - Fallback source string. Pass the bundled artifact in `options.artifact`.
|
|
6548
|
+
* @param csvPath - Path to the input CSV file, or `null`.
|
|
6549
|
+
* @param name - Play name. The SDK derives it from the source when omitted.
|
|
6550
|
+
* @param options - Additional submission options.
|
|
6549
6551
|
* @returns Workflow metadata with `workflowId`
|
|
6550
6552
|
*
|
|
6551
6553
|
* @example
|
|
@@ -6604,9 +6606,8 @@ declare class DeeplineClient {
|
|
|
6604
6606
|
/**
|
|
6605
6607
|
* Mint short-lived presigned upload targets for staged play files.
|
|
6606
6608
|
*
|
|
6607
|
-
* Internal primitive used by {@link stagePlayFiles}.
|
|
6608
|
-
*
|
|
6609
|
-
* already holds, or a presigned PUT URL the caller uploads the body to.
|
|
6609
|
+
* Internal primitive used by {@link stagePlayFiles}. For a content-addressed file already in storage, the server returns a staged reference. That file needs no upload.
|
|
6610
|
+
* For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
|
|
6610
6611
|
*/
|
|
6611
6612
|
mintStagedPlayFileUploads(files: Array<{
|
|
6612
6613
|
logicalPath: string;
|
|
@@ -6617,8 +6618,7 @@ declare class DeeplineClient {
|
|
|
6617
6618
|
/**
|
|
6618
6619
|
* Resolve staged play files by content hash without uploading bytes.
|
|
6619
6620
|
*
|
|
6620
|
-
*
|
|
6621
|
-
* does not already have.
|
|
6621
|
+
* The response identifies missing files. Callers need to upload only these files.
|
|
6622
6622
|
*/
|
|
6623
6623
|
resolveStagedPlayFiles(files: Array<{
|
|
6624
6624
|
logicalPath: string;
|
|
@@ -6832,11 +6832,11 @@ declare class DeeplineClient {
|
|
|
6832
6832
|
/**
|
|
6833
6833
|
* Start a fresh run from a prior run's retained input and pinned revision.
|
|
6834
6834
|
*
|
|
6835
|
-
* Every invocation sends an `Idempotency-Key`.
|
|
6836
|
-
*
|
|
6837
|
-
*
|
|
6838
|
-
* across separate invocations
|
|
6839
|
-
* different key
|
|
6835
|
+
* Every invocation sends an `Idempotency-Key`.
|
|
6836
|
+
* When the caller supplies no key, the SDK creates a fresh key once per call.
|
|
6837
|
+
* The transport reuses that key for network retries, so those retries produce one rerun.
|
|
6838
|
+
* Reuse an explicit key across separate invocations when the previous result is uncertain.
|
|
6839
|
+
* A different key starts another rerun.
|
|
6840
6840
|
*/
|
|
6841
6841
|
rerun(runId: string, options?: RerunOptions): Promise<RerunPlayRunResult>;
|
|
6842
6842
|
/**
|
|
@@ -6914,8 +6914,8 @@ declare class DeeplineClient {
|
|
|
6914
6914
|
/** Stop, or with `dryRun: true` only enumerate, active workspace runs. */
|
|
6915
6915
|
stopAllRuns(options?: StopAllRunsOptions): Promise<StopAllPlayRunsResult>;
|
|
6916
6916
|
/**
|
|
6917
|
-
* List one page of callable
|
|
6918
|
-
* Use listPlaysPage
|
|
6917
|
+
* List one page of callable Plays. With grep, the method retains all matching results.
|
|
6918
|
+
* Use listPlaysPage for pagination metadata.
|
|
6919
6919
|
*
|
|
6920
6920
|
* Pass `origin: "prebuilt"` for Deepline-managed prebuilts or
|
|
6921
6921
|
* `origin: "owned"` for org-owned plays.
|
|
@@ -7056,8 +7056,7 @@ declare class DeeplineClient {
|
|
|
7056
7056
|
/**
|
|
7057
7057
|
* Get the full definition and state of a named play.
|
|
7058
7058
|
*
|
|
7059
|
-
*
|
|
7060
|
-
* sheet processing summary, and database URL.
|
|
7059
|
+
* The response includes revision state (draft or live), recent runs, a summary of sheet processing, and the database URL.
|
|
7061
7060
|
*
|
|
7062
7061
|
* @param name - Play name
|
|
7063
7062
|
* @returns Complete play detail
|
|
@@ -7108,10 +7107,10 @@ declare class DeeplineClient {
|
|
|
7108
7107
|
/**
|
|
7109
7108
|
* Get a normalized play description suitable for agents and CLIs.
|
|
7110
7109
|
*
|
|
7111
|
-
* The description includes runnable examples, input
|
|
7112
|
-
*
|
|
7113
|
-
* `{ pipeline: true }` to include the compiled pipeline
|
|
7114
|
-
* hundreds of kilobytes
|
|
7110
|
+
* The description includes runnable examples, input and output summaries, clone guidance, and revision state.
|
|
7111
|
+
* It also includes metadata for the latest run when available.
|
|
7112
|
+
* Set `{ pipeline: true }` to include the compiled pipeline.
|
|
7113
|
+
* The pipeline can be hundreds of kilobytes. The response omits it by default.
|
|
7115
7114
|
*/
|
|
7116
7115
|
describePlay(name: string, options?: PlayDescriptionOptions): Promise<PlayDescription>;
|
|
7117
7116
|
/**
|
|
@@ -7135,8 +7134,7 @@ declare class DeeplineClient {
|
|
|
7135
7134
|
* Make a play revision live.
|
|
7136
7135
|
*
|
|
7137
7136
|
* When `revisionId` is omitted, the current working revision becomes live.
|
|
7138
|
-
*
|
|
7139
|
-
* specifying an explicit revision.
|
|
7137
|
+
* A call by Play name executes the live revision unless the caller specifies another revision.
|
|
7140
7138
|
*
|
|
7141
7139
|
* @param name - Play name
|
|
7142
7140
|
* @param request - Optional explicit revision to make live
|
|
@@ -7262,9 +7260,9 @@ declare class DeeplineClient {
|
|
|
7262
7260
|
*/
|
|
7263
7261
|
getBillingUsageEvent(requestId: string): Promise<BillingUsageEvent>;
|
|
7264
7262
|
/**
|
|
7265
|
-
*
|
|
7266
|
-
*
|
|
7267
|
-
*
|
|
7263
|
+
* Read Deepline credits billed to each run and whether charges are still settling.
|
|
7264
|
+
* The response never shows provider spend. The dashboard runs grid uses the same read.
|
|
7265
|
+
* HTTP endpoint: `GET /api/v2/runs/billing`.
|
|
7268
7266
|
*/
|
|
7269
7267
|
getRunBilling(runIds: readonly string[]): Promise<RunBillingResult>;
|
|
7270
7268
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { g as PlayCompilerManifest, ak as ToolResultBilling, Y as BillingEntitlements, ap as BillingBenefitValues } from './compiler-manifest-
|
|
2
|
+
import { g as PlayCompilerManifest, ak as ToolResultBilling, Y as BillingEntitlements, ap as BillingBenefitValues } from './compiler-manifest-BHnXE43X.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { MonitorFleetDefinition } from './monitor-fleet-contract.js';
|
|
5
5
|
|
|
@@ -2492,9 +2492,10 @@ interface StopPlayRunResult {
|
|
|
2492
2492
|
/** True if HITL state or its same-message Slack card still needs retrying. */
|
|
2493
2493
|
hitlCancellationPending?: boolean;
|
|
2494
2494
|
/**
|
|
2495
|
-
* True only when the scheduler and the canonical run ledger disagree
|
|
2496
|
-
*
|
|
2497
|
-
*
|
|
2495
|
+
* True only when the scheduler and the canonical run ledger disagree and
|
|
2496
|
+
* the server could not confirm the stop.
|
|
2497
|
+
* For example, the scheduler can report a terminal run while the ledger
|
|
2498
|
+
* projection is pending. This field is never true for a queued cancellation.
|
|
2498
2499
|
*/
|
|
2499
2500
|
staleSchedulerState?: boolean;
|
|
2500
2501
|
/** Server-side error detail when the stop failed (`state: 'failed'`). */
|
|
@@ -6217,8 +6218,8 @@ declare class DeeplineClient {
|
|
|
6217
6218
|
/**
|
|
6218
6219
|
* Search available tools using Deepline's ranked backend search.
|
|
6219
6220
|
*
|
|
6220
|
-
*
|
|
6221
|
-
* tool metadata, categories, agent guidance, and input schema fields.
|
|
6221
|
+
* The CLI uses the same search.
|
|
6222
|
+
* The search ranks tool metadata, categories, agent guidance, and input schema fields.
|
|
6222
6223
|
*/
|
|
6223
6224
|
searchTools(options?: ToolSearchOptions): Promise<ToolSearchResult>;
|
|
6224
6225
|
/**
|
|
@@ -6256,13 +6257,12 @@ declare class DeeplineClient {
|
|
|
6256
6257
|
/**
|
|
6257
6258
|
* Describe a Deepline Agent model and its provider-specific option surface.
|
|
6258
6259
|
*
|
|
6259
|
-
*
|
|
6260
|
-
*
|
|
6261
|
-
* payloads before executing `deeplineagent`.
|
|
6260
|
+
* The method combines live AI Gateway model metadata with Deepline's generated registry of AI SDK provider options.
|
|
6261
|
+
* Agents can use this information to construct `providerOptions` payloads before they execute `deeplineagent`.
|
|
6262
6262
|
*
|
|
6263
|
-
* The returned
|
|
6264
|
-
*
|
|
6265
|
-
*
|
|
6263
|
+
* The returned schemas describe accepted shapes for provider options.
|
|
6264
|
+
* These schemas do not guarantee that every model supports each option.
|
|
6265
|
+
* Runtime AI SDK and Gateway errors determine support for model-specific values.
|
|
6266
6266
|
*
|
|
6267
6267
|
* @param model - Exact-case Gateway model id such as `"openai/gpt-5.6-luna"`
|
|
6268
6268
|
* @returns Model metadata, provider option shapes, and runnable examples
|
|
@@ -6271,8 +6271,8 @@ declare class DeeplineClient {
|
|
|
6271
6271
|
/**
|
|
6272
6272
|
* Quote dynamic AI inference pricing for a concrete payload.
|
|
6273
6273
|
*
|
|
6274
|
-
* The result
|
|
6275
|
-
*
|
|
6274
|
+
* The result contains a planning estimate and a separate, proven authorization maximum.
|
|
6275
|
+
* Both values use Deepline credits.
|
|
6276
6276
|
*/
|
|
6277
6277
|
quoteInferenceTool(toolId: 'ai_evaluate' | 'ai_inference' | 'deeplineagent', payload: Record<string, unknown>): Promise<InferenceQuote>;
|
|
6278
6278
|
/**
|
|
@@ -6324,13 +6324,16 @@ declare class DeeplineClient {
|
|
|
6324
6324
|
* entrypoints: the CLI, {@link Deepline.connect}, {@link submitPlay},
|
|
6325
6325
|
* or {@link runPlay}.
|
|
6326
6326
|
*
|
|
6327
|
-
*
|
|
6328
|
-
*
|
|
6329
|
-
*
|
|
6330
|
-
*
|
|
6331
|
-
*
|
|
6332
|
-
*
|
|
6333
|
-
*
|
|
6327
|
+
* These interfaces share the run contract and return a workflow or run ID:
|
|
6328
|
+
*
|
|
6329
|
+
* - `deepline plays run`.
|
|
6330
|
+
* - Repository scripts such as `bun run deepline -- plays run`.
|
|
6331
|
+
* - SDK context calls such as `Deepline.connect().play(name).run()`.
|
|
6332
|
+
* - Direct `POST /api/v2/plays/run` calls.
|
|
6333
|
+
*
|
|
6334
|
+
* Read completed output from `getPlayStatus(runId).result`.
|
|
6335
|
+
* For SDK context calls, read output from `PlayJob.get()`.
|
|
6336
|
+
* Execution logs appear under `progress.logs`. The user output object does not contain these logs.
|
|
6334
6337
|
*
|
|
6335
6338
|
* @param request - Play run configuration (name, code, input, etc.)
|
|
6336
6339
|
* @returns Run metadata including the public `workflowId`
|
|
@@ -6464,9 +6467,8 @@ declare class DeeplineClient {
|
|
|
6464
6467
|
/**
|
|
6465
6468
|
* Compile a bundled play artifact into the server-side compiler manifest.
|
|
6466
6469
|
*
|
|
6467
|
-
* The manifest records imports, trigger bindings, static pipeline shape, and
|
|
6468
|
-
*
|
|
6469
|
-
* or run.
|
|
6470
|
+
* The manifest records imports, trigger bindings, static pipeline shape, and runtime metadata.
|
|
6471
|
+
* The compiler needs these records before it checks, registers, or runs a Play artifact.
|
|
6470
6472
|
*/
|
|
6471
6473
|
compilePlayManifest(input: {
|
|
6472
6474
|
name: string;
|
|
@@ -6518,8 +6520,8 @@ declare class DeeplineClient {
|
|
|
6518
6520
|
/**
|
|
6519
6521
|
* Register an already-bundled play artifact and start a run from it.
|
|
6520
6522
|
*
|
|
6521
|
-
*
|
|
6522
|
-
*
|
|
6523
|
+
* SDK and CLI packaging wrappers use this low-level run method for file-based Plays.
|
|
6524
|
+
* Local bundling must produce the runtime artifact first.
|
|
6523
6525
|
*/
|
|
6524
6526
|
startPlayRunFromBundle(input: {
|
|
6525
6527
|
name: string;
|
|
@@ -6537,15 +6539,15 @@ declare class DeeplineClient {
|
|
|
6537
6539
|
/**
|
|
6538
6540
|
* Register a bundled play artifact and start a run from the live revision.
|
|
6539
6541
|
*
|
|
6540
|
-
*
|
|
6541
|
-
*
|
|
6542
|
-
*
|
|
6543
|
-
* durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
6542
|
+
* This method wraps {@link registerPlayArtifact} and {@link startPlayRun}.
|
|
6543
|
+
* Packaging wrappers use this method for file-based Plays.
|
|
6544
|
+
* Pass the returned ID to {@link getPlayStatus}.
|
|
6545
|
+
* The method returns the same durable `{ result }` object that the CLI prints after `plays run` completes.
|
|
6544
6546
|
*
|
|
6545
|
-
* @param code -
|
|
6546
|
-
* @param csvPath - Path to input CSV file, or `null
|
|
6547
|
-
* @param name - Play name
|
|
6548
|
-
* @param options - Additional submission options
|
|
6547
|
+
* @param code - Fallback source string. Pass the bundled artifact in `options.artifact`.
|
|
6548
|
+
* @param csvPath - Path to the input CSV file, or `null`.
|
|
6549
|
+
* @param name - Play name. The SDK derives it from the source when omitted.
|
|
6550
|
+
* @param options - Additional submission options.
|
|
6549
6551
|
* @returns Workflow metadata with `workflowId`
|
|
6550
6552
|
*
|
|
6551
6553
|
* @example
|
|
@@ -6604,9 +6606,8 @@ declare class DeeplineClient {
|
|
|
6604
6606
|
/**
|
|
6605
6607
|
* Mint short-lived presigned upload targets for staged play files.
|
|
6606
6608
|
*
|
|
6607
|
-
* Internal primitive used by {@link stagePlayFiles}.
|
|
6608
|
-
*
|
|
6609
|
-
* already holds, or a presigned PUT URL the caller uploads the body to.
|
|
6609
|
+
* Internal primitive used by {@link stagePlayFiles}. For a content-addressed file already in storage, the server returns a staged reference. That file needs no upload.
|
|
6610
|
+
* For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
|
|
6610
6611
|
*/
|
|
6611
6612
|
mintStagedPlayFileUploads(files: Array<{
|
|
6612
6613
|
logicalPath: string;
|
|
@@ -6617,8 +6618,7 @@ declare class DeeplineClient {
|
|
|
6617
6618
|
/**
|
|
6618
6619
|
* Resolve staged play files by content hash without uploading bytes.
|
|
6619
6620
|
*
|
|
6620
|
-
*
|
|
6621
|
-
* does not already have.
|
|
6621
|
+
* The response identifies missing files. Callers need to upload only these files.
|
|
6622
6622
|
*/
|
|
6623
6623
|
resolveStagedPlayFiles(files: Array<{
|
|
6624
6624
|
logicalPath: string;
|
|
@@ -6832,11 +6832,11 @@ declare class DeeplineClient {
|
|
|
6832
6832
|
/**
|
|
6833
6833
|
* Start a fresh run from a prior run's retained input and pinned revision.
|
|
6834
6834
|
*
|
|
6835
|
-
* Every invocation sends an `Idempotency-Key`.
|
|
6836
|
-
*
|
|
6837
|
-
*
|
|
6838
|
-
* across separate invocations
|
|
6839
|
-
* different key
|
|
6835
|
+
* Every invocation sends an `Idempotency-Key`.
|
|
6836
|
+
* When the caller supplies no key, the SDK creates a fresh key once per call.
|
|
6837
|
+
* The transport reuses that key for network retries, so those retries produce one rerun.
|
|
6838
|
+
* Reuse an explicit key across separate invocations when the previous result is uncertain.
|
|
6839
|
+
* A different key starts another rerun.
|
|
6840
6840
|
*/
|
|
6841
6841
|
rerun(runId: string, options?: RerunOptions): Promise<RerunPlayRunResult>;
|
|
6842
6842
|
/**
|
|
@@ -6914,8 +6914,8 @@ declare class DeeplineClient {
|
|
|
6914
6914
|
/** Stop, or with `dryRun: true` only enumerate, active workspace runs. */
|
|
6915
6915
|
stopAllRuns(options?: StopAllRunsOptions): Promise<StopAllPlayRunsResult>;
|
|
6916
6916
|
/**
|
|
6917
|
-
* List one page of callable
|
|
6918
|
-
* Use listPlaysPage
|
|
6917
|
+
* List one page of callable Plays. With grep, the method retains all matching results.
|
|
6918
|
+
* Use listPlaysPage for pagination metadata.
|
|
6919
6919
|
*
|
|
6920
6920
|
* Pass `origin: "prebuilt"` for Deepline-managed prebuilts or
|
|
6921
6921
|
* `origin: "owned"` for org-owned plays.
|
|
@@ -7056,8 +7056,7 @@ declare class DeeplineClient {
|
|
|
7056
7056
|
/**
|
|
7057
7057
|
* Get the full definition and state of a named play.
|
|
7058
7058
|
*
|
|
7059
|
-
*
|
|
7060
|
-
* sheet processing summary, and database URL.
|
|
7059
|
+
* The response includes revision state (draft or live), recent runs, a summary of sheet processing, and the database URL.
|
|
7061
7060
|
*
|
|
7062
7061
|
* @param name - Play name
|
|
7063
7062
|
* @returns Complete play detail
|
|
@@ -7108,10 +7107,10 @@ declare class DeeplineClient {
|
|
|
7108
7107
|
/**
|
|
7109
7108
|
* Get a normalized play description suitable for agents and CLIs.
|
|
7110
7109
|
*
|
|
7111
|
-
* The description includes runnable examples, input
|
|
7112
|
-
*
|
|
7113
|
-
* `{ pipeline: true }` to include the compiled pipeline
|
|
7114
|
-
* hundreds of kilobytes
|
|
7110
|
+
* The description includes runnable examples, input and output summaries, clone guidance, and revision state.
|
|
7111
|
+
* It also includes metadata for the latest run when available.
|
|
7112
|
+
* Set `{ pipeline: true }` to include the compiled pipeline.
|
|
7113
|
+
* The pipeline can be hundreds of kilobytes. The response omits it by default.
|
|
7115
7114
|
*/
|
|
7116
7115
|
describePlay(name: string, options?: PlayDescriptionOptions): Promise<PlayDescription>;
|
|
7117
7116
|
/**
|
|
@@ -7135,8 +7134,7 @@ declare class DeeplineClient {
|
|
|
7135
7134
|
* Make a play revision live.
|
|
7136
7135
|
*
|
|
7137
7136
|
* When `revisionId` is omitted, the current working revision becomes live.
|
|
7138
|
-
*
|
|
7139
|
-
* specifying an explicit revision.
|
|
7137
|
+
* A call by Play name executes the live revision unless the caller specifies another revision.
|
|
7140
7138
|
*
|
|
7141
7139
|
* @param name - Play name
|
|
7142
7140
|
* @param request - Optional explicit revision to make live
|
|
@@ -7262,9 +7260,9 @@ declare class DeeplineClient {
|
|
|
7262
7260
|
*/
|
|
7263
7261
|
getBillingUsageEvent(requestId: string): Promise<BillingUsageEvent>;
|
|
7264
7262
|
/**
|
|
7265
|
-
*
|
|
7266
|
-
*
|
|
7267
|
-
*
|
|
7263
|
+
* Read Deepline credits billed to each run and whether charges are still settling.
|
|
7264
|
+
* The response never shows provider spend. The dashboard runs grid uses the same read.
|
|
7265
|
+
* HTTP endpoint: `GET /api/v2/runs/billing`.
|
|
7268
7266
|
*/
|
|
7269
7267
|
getRunBilling(runIds: readonly string[]): Promise<RunBillingResult>;
|
|
7270
7268
|
/**
|
|
@@ -1276,7 +1276,12 @@ type PlayAuthoringFetchResponse = {
|
|
|
1276
1276
|
/** Full response body as text, with any known secret values redacted. */
|
|
1277
1277
|
bodyText: string;
|
|
1278
1278
|
/**
|
|
1279
|
-
* The
|
|
1279
|
+
* The runtime parses the body at request time.
|
|
1280
|
+
* Read the property with `const body = res.json`. Do not call `await res.json()`.
|
|
1281
|
+
* The value is null when the body is empty or is not valid JSON.
|
|
1282
|
+
* Malformed JSON produces null instead of an error.
|
|
1283
|
+
*
|
|
1284
|
+
* Check `res.ok`. Check `res.bodyText` before you interpret null as an empty response.
|
|
1280
1285
|
*/
|
|
1281
1286
|
json: unknown | null;
|
|
1282
1287
|
};
|
|
@@ -1276,7 +1276,12 @@ type PlayAuthoringFetchResponse = {
|
|
|
1276
1276
|
/** Full response body as text, with any known secret values redacted. */
|
|
1277
1277
|
bodyText: string;
|
|
1278
1278
|
/**
|
|
1279
|
-
* The
|
|
1279
|
+
* The runtime parses the body at request time.
|
|
1280
|
+
* Read the property with `const body = res.json`. Do not call `await res.json()`.
|
|
1281
|
+
* The value is null when the body is empty or is not valid JSON.
|
|
1282
|
+
* Malformed JSON produces null instead of an error.
|
|
1283
|
+
*
|
|
1284
|
+
* Check `res.ok`. Check `res.bodyText` before you interpret null as an empty response.
|
|
1280
1285
|
*/
|
|
1281
1286
|
json: unknown | null;
|
|
1282
1287
|
};
|
|
@@ -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-BHnXE43X.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-BHnXE43X.js';
|
|
3
3
|
|
|
4
4
|
type ImportedPlayDependency = {
|
|
5
5
|
filePath: string;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
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-
|
|
3
|
-
export { Y as BillingEntitlements, Z as CtxFetchHttpError, _ as DEEPLINE_EXTRACTOR_TARGETS, $ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, a0 as DeeplineEmailStatusGetterValue, a1 as DeeplineExtractorTarget, a2 as DeeplineGetterValue, a3 as DeeplineGetterValueMap, a4 as JOB_CHANGE_STATUS_VALUES, a5 as JobChangeStatus, a6 as PHONE_STATUS_VALUES, a7 as PhoneStatus, a8 as PlayDatasetInput, a9 as PreviousCell, aa as ProviderTransientError, ab as ProviderTransientErrorCategory, ac as ProviderUnavailableError, ad as ProviderUnavailableReason, ae as ToolExecutionErrorCategory, af as ToolExecutionErrorOrigin, ag as ToolExecutionFailureV1, ah as ToolExecutionNetworkKind, ai as ToolExecutionNetworkScope, aj as ToolExecutionPublicDetails, ak as ToolResultBilling, al as getProviderUnavailableReason, am as isDeeplineExtractorTarget, an as isProviderUnavailable, ao as isProviderWaterfallUnavailableError } from './compiler-manifest-
|
|
4
|
-
import { b as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, c as ToolMetadata, E as ExecuteToolRawOptions, d as ExecutionRecovery, e as ExecutionByKeyResult, f as PlayListItem, g as PlayDetail, h as PlayRunListItem, i as PlayRevisionSummary, j as PublishPlayVersionResult, C as ClearPlayHistoryResult, k as PlayStatus, l as StopPlayRunResult, a as DeeplineClient, R as ResolvedConfig } from './client-
|
|
5
|
-
export { m as BillingCreditPool, n as BillingInvoiceEntry, o as BillingInvoicesResult, p as BillingPaymentMethodSummary, q as BillingQuoteRequest, r as BillingQuoteResult, s as BillingRecentUsageEntry, t as BillingSubscriptionCancelResult, u as BillingSubscriptionStatus, v as BillingTopUpReceipt, w as BillingTopUpResult, x as BillingUsageEvent, y as BillingUsageOptions, z as BillingUsageResult, A as ChildRunSummary, F as ClearPlayHistoryRequest, G as CreateNotificationGroupInput, H as CreateNotificationGroupResult, I as CustomerDbQueryOptions, J as CustomerDbQueryPlan, K as CustomerDbQueryResult, L as DEEPLINE_TOOL_CATEGORIES, M as DbNamespace, N as DeeplineToolCategory, O as IngestionStorageRepairResult, Q as LegacyMonitorStatusFilter, U as LiveEventEnvelope, V as MONITOR_JOB_PHASES, W as MONITOR_JOB_RECONCILIATION_STATES, X as MONITOR_JOB_STATES, Y as MonitorBatchNamespace, Z as MonitorCheckResult, _ as MonitorDefinition, $ as MonitorDeleteResult, a0 as MonitorDependents, a1 as MonitorDeployResult, a2 as MonitorDetail, a3 as MonitorFleetDeactivateOptions, a4 as MonitorFleetGetOptions, a5 as MonitorFleetReactivateOptions, a6 as MonitorFleetResult, a7 as MonitorFleetStatus, a8 as MonitorFleetSyncOptions, a9 as MonitorFleetWaitOptions, aa as MonitorFleetsNamespace, ab as MonitorJobDeployOptions, ac as MonitorJobLogsOptions, ad as MonitorJobPhase, ae as MonitorJobReconciliationState, af as MonitorJobResult, ag as MonitorJobState, ah as MonitorJobWaitOptions, ai as MonitorJobsNamespace, aj as MonitorListEntry, ak as MonitorPayload, al as MonitorReactivateResult, am as MonitorSpec, an as MonitorState, ao as MonitorStateFilter, ap as MonitorUpdateChangeSummary, aq as MonitorUpdateResult, ar as MonitorsAccessStatus, as as MonitorsAvailableOptions, at as MonitorsAvailableResult, au as MonitorsListOptions, av as MonitorsListResult, aw as MonitorsNamespace, ax as NormalizedRunEventQuery, ay as PlayActivityObservation, az as PlayActivityState, aA as PlayActivityTarget, aB as PlayCostEstimate, aC as PlayCronTriggerConfig, aD as PlayDescriptionOptions, aE as PlayLiveEvent, aF as PlayPath, aG as PlayRunActionPackage, aH as PlayRunActivityProjection, aI as PlayRunDatasetActions, aJ as PlayRunPackage, aK as PlayRunResult, aL as PlayRunRowHistoryOptions, aM as PlayRunStart, aN as PlaySettings, aO as PlaySettingsPatch, aP as PlaySettingsPathsPage, aQ as PlaySettingsResult, aR as PlaySheetRow, aS as PlaySheetRowsResult, aT as PlayTriggerConfigUpdate, aU as PlayTriggerConfigUpdateResult, aV as PlayTriggerConfigView, aW as PlayWebhookAuthConfig, aX as PlayWebhookTriggerConfig, aY as PlaysActivityResponse, aZ as PlaysListOptions, a_ as PlaysListPage, a$ as PublishPlayVersionRequest, b0 as RerunOptions, b1 as RerunPlayRunResult, b2 as RunChildrenPage, b3 as RunEventCountResult, b4 as RunEventField, b5 as RunEventFieldDescriptor, b6 as RunEventFieldOperators, b7 as RunEventFieldsResult, b8 as RunEventGroupValue, b9 as RunEventMeasure, ba as RunEventQueryCriteria, bb as RunEventQueryEvent, bc as RunEventQueryInputError, bd as RunEventQueryOptions, be as RunEventQueryPage, bf as RunEventQueryRetention, bg as RunEventScalar, bh as RunEventSummaryOptions, bi as RunEventSummaryResult, bj as RunEventWhere, bk as RunLifecycleStatus, bl as RunToolReceiptResult, bm as RunToolReceiptsResponse, bn as RunsChildrenOptions, bo as RunsEventPayload, bp as RunsEventSearchEntry, bq as RunsEventSearchOptions, br as RunsEventSearchResult, bs as RunsEventsCountResult, bt as RunsEventsCriteria, bu as RunsEventsFieldsOptions, bv as RunsEventsListOptions, bw as RunsEventsListResult, bx as RunsEventsNamespace, by as RunsEventsSummaryOptions, bz as RunsEventsSummaryResult, bA as RunsHistoryItem, bB as RunsHistoryOptions, bC as RunsHistoryPage, bD as RunsListOptions, bE as RunsListPage, bF as RunsLogCriteria, bG as RunsLogsCountResult, bH as RunsLogsNamespace, bI as RunsLogsOptions, bJ as RunsLogsQueryOptions, bK as RunsLogsQueryResult, bL as RunsLogsResult, bM as RunsLogsSummaryOptions, bN as RunsLogsSummaryResult, bO as RunsNamespace, bP as RunsTailOptions, bQ as RunsWatchOptions, bR as SearchOptions, bS as SearchResult, bT as SearchResultItem, S as SearchType, bU as StartPlayRunRequest, bV as StopAllCandidate, bW as StopAllPlayRunsDryRunResult, bX as StopAllPlayRunsResult, bY as StopAllPlayRunsStopResult, bZ as StopAllRunsOptions, b_ as ToolExecution, b$ as ToolRequestCondition, c0 as ToolRequestWarningRule, c1 as ToolSearchOptions, c2 as ToolSearchResult, c3 as WorkspaceCreateResult, c4 as WorkspacesNamespace, c5 as defineMonitor, c6 as isStopAllPlayRunsDryRunResult, c7 as planCustomerDbQuery } from './client-
|
|
6
|
-
import { b as BundledPlayFileSuccess } from './index-
|
|
2
|
+
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-BHnXE43X.mjs';
|
|
3
|
+
export { Y as BillingEntitlements, Z as CtxFetchHttpError, _ as DEEPLINE_EXTRACTOR_TARGETS, $ as DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS, a0 as DeeplineEmailStatusGetterValue, a1 as DeeplineExtractorTarget, a2 as DeeplineGetterValue, a3 as DeeplineGetterValueMap, a4 as JOB_CHANGE_STATUS_VALUES, a5 as JobChangeStatus, a6 as PHONE_STATUS_VALUES, a7 as PhoneStatus, a8 as PlayDatasetInput, a9 as PreviousCell, aa as ProviderTransientError, ab as ProviderTransientErrorCategory, ac as ProviderUnavailableError, ad as ProviderUnavailableReason, ae as ToolExecutionErrorCategory, af as ToolExecutionErrorOrigin, ag as ToolExecutionFailureV1, ah as ToolExecutionNetworkKind, ai as ToolExecutionNetworkScope, aj as ToolExecutionPublicDetails, ak as ToolResultBilling, al as getProviderUnavailableReason, am as isDeeplineExtractorTarget, an as isProviderUnavailable, ao as isProviderWaterfallUnavailableError } from './compiler-manifest-BHnXE43X.mjs';
|
|
4
|
+
import { b as DeeplineClientOptions, B as BillingNamespace, T as ToolDefinition, c as ToolMetadata, E as ExecuteToolRawOptions, d as ExecutionRecovery, e as ExecutionByKeyResult, f as PlayListItem, g as PlayDetail, h as PlayRunListItem, i as PlayRevisionSummary, j as PublishPlayVersionResult, C as ClearPlayHistoryResult, k as PlayStatus, l as StopPlayRunResult, a as DeeplineClient, R as ResolvedConfig } from './client-6rEB46Lv.mjs';
|
|
5
|
+
export { m as BillingCreditPool, n as BillingInvoiceEntry, o as BillingInvoicesResult, p as BillingPaymentMethodSummary, q as BillingQuoteRequest, r as BillingQuoteResult, s as BillingRecentUsageEntry, t as BillingSubscriptionCancelResult, u as BillingSubscriptionStatus, v as BillingTopUpReceipt, w as BillingTopUpResult, x as BillingUsageEvent, y as BillingUsageOptions, z as BillingUsageResult, A as ChildRunSummary, F as ClearPlayHistoryRequest, G as CreateNotificationGroupInput, H as CreateNotificationGroupResult, I as CustomerDbQueryOptions, J as CustomerDbQueryPlan, K as CustomerDbQueryResult, L as DEEPLINE_TOOL_CATEGORIES, M as DbNamespace, N as DeeplineToolCategory, O as IngestionStorageRepairResult, Q as LegacyMonitorStatusFilter, U as LiveEventEnvelope, V as MONITOR_JOB_PHASES, W as MONITOR_JOB_RECONCILIATION_STATES, X as MONITOR_JOB_STATES, Y as MonitorBatchNamespace, Z as MonitorCheckResult, _ as MonitorDefinition, $ as MonitorDeleteResult, a0 as MonitorDependents, a1 as MonitorDeployResult, a2 as MonitorDetail, a3 as MonitorFleetDeactivateOptions, a4 as MonitorFleetGetOptions, a5 as MonitorFleetReactivateOptions, a6 as MonitorFleetResult, a7 as MonitorFleetStatus, a8 as MonitorFleetSyncOptions, a9 as MonitorFleetWaitOptions, aa as MonitorFleetsNamespace, ab as MonitorJobDeployOptions, ac as MonitorJobLogsOptions, ad as MonitorJobPhase, ae as MonitorJobReconciliationState, af as MonitorJobResult, ag as MonitorJobState, ah as MonitorJobWaitOptions, ai as MonitorJobsNamespace, aj as MonitorListEntry, ak as MonitorPayload, al as MonitorReactivateResult, am as MonitorSpec, an as MonitorState, ao as MonitorStateFilter, ap as MonitorUpdateChangeSummary, aq as MonitorUpdateResult, ar as MonitorsAccessStatus, as as MonitorsAvailableOptions, at as MonitorsAvailableResult, au as MonitorsListOptions, av as MonitorsListResult, aw as MonitorsNamespace, ax as NormalizedRunEventQuery, ay as PlayActivityObservation, az as PlayActivityState, aA as PlayActivityTarget, aB as PlayCostEstimate, aC as PlayCronTriggerConfig, aD as PlayDescriptionOptions, aE as PlayLiveEvent, aF as PlayPath, aG as PlayRunActionPackage, aH as PlayRunActivityProjection, aI as PlayRunDatasetActions, aJ as PlayRunPackage, aK as PlayRunResult, aL as PlayRunRowHistoryOptions, aM as PlayRunStart, aN as PlaySettings, aO as PlaySettingsPatch, aP as PlaySettingsPathsPage, aQ as PlaySettingsResult, aR as PlaySheetRow, aS as PlaySheetRowsResult, aT as PlayTriggerConfigUpdate, aU as PlayTriggerConfigUpdateResult, aV as PlayTriggerConfigView, aW as PlayWebhookAuthConfig, aX as PlayWebhookTriggerConfig, aY as PlaysActivityResponse, aZ as PlaysListOptions, a_ as PlaysListPage, a$ as PublishPlayVersionRequest, b0 as RerunOptions, b1 as RerunPlayRunResult, b2 as RunChildrenPage, b3 as RunEventCountResult, b4 as RunEventField, b5 as RunEventFieldDescriptor, b6 as RunEventFieldOperators, b7 as RunEventFieldsResult, b8 as RunEventGroupValue, b9 as RunEventMeasure, ba as RunEventQueryCriteria, bb as RunEventQueryEvent, bc as RunEventQueryInputError, bd as RunEventQueryOptions, be as RunEventQueryPage, bf as RunEventQueryRetention, bg as RunEventScalar, bh as RunEventSummaryOptions, bi as RunEventSummaryResult, bj as RunEventWhere, bk as RunLifecycleStatus, bl as RunToolReceiptResult, bm as RunToolReceiptsResponse, bn as RunsChildrenOptions, bo as RunsEventPayload, bp as RunsEventSearchEntry, bq as RunsEventSearchOptions, br as RunsEventSearchResult, bs as RunsEventsCountResult, bt as RunsEventsCriteria, bu as RunsEventsFieldsOptions, bv as RunsEventsListOptions, bw as RunsEventsListResult, bx as RunsEventsNamespace, by as RunsEventsSummaryOptions, bz as RunsEventsSummaryResult, bA as RunsHistoryItem, bB as RunsHistoryOptions, bC as RunsHistoryPage, bD as RunsListOptions, bE as RunsListPage, bF as RunsLogCriteria, bG as RunsLogsCountResult, bH as RunsLogsNamespace, bI as RunsLogsOptions, bJ as RunsLogsQueryOptions, bK as RunsLogsQueryResult, bL as RunsLogsResult, bM as RunsLogsSummaryOptions, bN as RunsLogsSummaryResult, bO as RunsNamespace, bP as RunsTailOptions, bQ as RunsWatchOptions, bR as SearchOptions, bS as SearchResult, bT as SearchResultItem, S as SearchType, bU as StartPlayRunRequest, bV as StopAllCandidate, bW as StopAllPlayRunsDryRunResult, bX as StopAllPlayRunsResult, bY as StopAllPlayRunsStopResult, bZ as StopAllRunsOptions, b_ as ToolExecution, b$ as ToolRequestCondition, c0 as ToolRequestWarningRule, c1 as ToolSearchOptions, c2 as ToolSearchResult, c3 as WorkspaceCreateResult, c4 as WorkspacesNamespace, c5 as defineMonitor, c6 as isStopAllPlayRunsDryRunResult, c7 as planCustomerDbQuery } from './client-6rEB46Lv.mjs';
|
|
6
|
+
import { b as BundledPlayFileSuccess } from './index-Da_Y8z5e.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 '@sinclair/typebox';
|
|
@@ -26,8 +26,8 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
|
|
|
26
26
|
* A play can be triggered three ways, declared as the third argument to
|
|
27
27
|
* {@link definePlay}:
|
|
28
28
|
* - `webhook` — an inbound HTTP call (with optional legacy HMAC or Standard
|
|
29
|
-
* Webhooks signature verification)
|
|
30
|
-
* - `cron` — a schedule
|
|
29
|
+
* Webhooks signature verification).
|
|
30
|
+
* - `cron` — a schedule.
|
|
31
31
|
* - `sqlListeners` — a **monitor**: the play runs whenever a monitor writes a new
|
|
32
32
|
* row to its output stream. This is how you build a play "on top of" a monitor
|
|
33
33
|
* (e.g. run enrichment every time a watched company posts a new job). Each
|
|
@@ -558,8 +558,8 @@ declare class DeeplineContext {
|
|
|
558
558
|
* Run a named or prebuilt play and wait for its output.
|
|
559
559
|
*
|
|
560
560
|
* This is the high-level SDK equivalent of `ctx.play(name).runSync(input)`.
|
|
561
|
-
* Inside a
|
|
562
|
-
*
|
|
561
|
+
* Inside a Play, prefer `ctx.runPlay(key, playRef, input, options)`.
|
|
562
|
+
* The runtime checkpoints the child run under a stable key.
|
|
563
563
|
*
|
|
564
564
|
* @param playOrRef - Play name or prebuilt/reference object.
|
|
565
565
|
* @param input - JSON input passed to the play.
|
|
@@ -610,7 +610,10 @@ declare function defineInput<TInput>(schema: Record<string, unknown>): PlayInput
|
|
|
610
610
|
/**
|
|
611
611
|
* Define a play — a composable TypeScript workflow for the Deepline platform.
|
|
612
612
|
*
|
|
613
|
-
* The returned value is both a callable function
|
|
613
|
+
* The returned value is both a callable function and a named Play handle.
|
|
614
|
+
* The Deepline runtime calls the function with a runtime context.
|
|
615
|
+
* The handle provides `.run()`, `.versions()`, `.get()`, and `.publish()` for remote lifecycle operations.
|
|
616
|
+
* Plays define repeatable data pipelines. The runtime executes them durably with automatic retries and timeouts.
|
|
614
617
|
*
|
|
615
618
|
* @typeParam TInput - The input type accepted by the play
|
|
616
619
|
* @typeParam TOutput - The return type of the play
|