deepline 0.3.422 → 0.3.424
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 +15 -8
- package/dist/bundling-sources/sdk/src/index.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +227 -184
- package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +9 -2
- package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -5
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +11 -1
- package/dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts +38 -4
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +12 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-control-plane-capability.ts +25 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +10 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +201 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +42 -5
- package/dist/bundling-sources/shared_libs/monitors/provider-webhook-monitor-runtime.ts +5 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -36
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +179 -38
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +2 -2
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +4 -0
- package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +12 -4
- package/dist/bundling-sources/shared_libs/plays/play-exports.ts +27 -5
- package/dist/bundling-sources/shared_libs/plays/script-entry.ts +992 -0
- package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +63 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +8 -4
- package/dist/bundling-sources/shared_libs/plays/ts-ast.ts +2 -0
- package/dist/cli/auth-MN7MWTFR.js +40 -0
- package/dist/cli/{auth-DMLBSXLV.mjs → auth-QITAQMHF.mjs} +4 -4
- package/dist/cli/{billing-IFGFPGJV.js → billing-N5AOFDSU.js} +73 -73
- package/dist/cli/{billing-SEXKROBQ.mjs → billing-UX2GH5L2.mjs} +4 -4
- package/dist/cli/{chunk-BL3LY54Y.js → chunk-22XGRO2M.js} +8 -8
- package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
- package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
- package/dist/cli/{chunk-QNBHQM5R.mjs → chunk-3FQUUVN2.mjs} +1 -1
- package/dist/cli/{chunk-4CAVSRQH.mjs → chunk-3O7KATMQ.mjs} +1 -1
- package/dist/cli/{chunk-S4KGXRCV.js → chunk-3VB5DQ7Y.js} +20 -20
- package/dist/cli/{chunk-VT6WJ26Y.mjs → chunk-5MD5I4MM.mjs} +1 -1
- package/dist/cli/{chunk-W74RDGRL.mjs → chunk-5OBCPN2C.mjs} +2 -2
- package/dist/cli/{chunk-LXRDHISW.js → chunk-5YLEB4CL.js} +8 -8
- package/dist/cli/{chunk-2JKQORUX.mjs → chunk-7KNBC4RJ.mjs} +2 -2
- package/dist/cli/{chunk-MLP4CAY7.mjs → chunk-7VC7STG5.mjs} +4 -4
- package/dist/cli/{chunk-KBJP3UAU.js → chunk-7W4N6VRE.js} +35 -35
- package/dist/cli/{chunk-3CE3WGKP.mjs → chunk-7Y5M5YE3.mjs} +2 -2
- package/dist/cli/{chunk-V4RAH5D6.js → chunk-CJD5QKYK.js} +26 -26
- package/dist/cli/{chunk-AYM2KZN3.js → chunk-DD6MM6WX.js} +6 -6
- package/dist/cli/{chunk-63ILLN5H.mjs → chunk-DS7Y7X26.mjs} +2 -2
- package/dist/cli/{chunk-CTNA5QY2.mjs → chunk-EER67G2B.mjs} +43 -28
- package/dist/cli/{chunk-OZHPZCAU.js → chunk-F3MMA7JY.js} +52 -52
- package/dist/cli/{chunk-CO3VMH33.mjs → chunk-FJ5U2IZY.mjs} +28 -27
- package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
- package/dist/cli/{chunk-AXDEH2AM.mjs → chunk-HBW6PEVG.mjs} +2 -2
- package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
- package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
- package/dist/cli/{chunk-2LVM22ZU.js → chunk-LSZZVHQP.js} +2 -2
- package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
- package/dist/cli/{chunk-WGO2DY4L.js → chunk-M2VXDQI2.js} +11 -11
- package/dist/cli/{chunk-7OJEYJ6G.mjs → chunk-M67UCQKW.mjs} +3 -3
- package/dist/cli/{chunk-KXPIFC5S.mjs → chunk-MFXQVT7P.mjs} +3 -3
- package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
- package/dist/cli/{chunk-4EV2FKBI.js → chunk-OSNDC3VF.js} +16 -16
- package/dist/cli/{chunk-PXO253DP.mjs → chunk-OWWFCA7A.mjs} +1 -1
- package/dist/cli/{chunk-VRI3ABTK.js → chunk-PNGJIAJ3.js} +50 -50
- package/dist/cli/{chunk-HCYNAIHZ.js → chunk-QP5ATTMC.js} +4 -4
- package/dist/cli/{chunk-GEJDBXXM.js → chunk-QWRHGGUH.js} +1 -1
- package/dist/cli/{chunk-AD47BXN2.js → chunk-R2QWSSAG.js} +8 -8
- package/dist/cli/{chunk-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
- package/dist/cli/{chunk-JRSULUPQ.js → chunk-RISEING7.js} +2 -2
- package/dist/cli/{chunk-M6SXXFMT.mjs → chunk-UOZCQPD4.mjs} +2 -2
- package/dist/cli/{chunk-TP26TAAF.mjs → chunk-UPH6UNUI.mjs} +1 -1
- package/dist/cli/{chunk-UQQRMCOL.js → chunk-UTF57UBW.js} +6 -6
- package/dist/cli/{chunk-FEKJENBB.mjs → chunk-VC5NKF4B.mjs} +3 -3
- package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
- package/dist/cli/{chunk-WP7T4BPE.js → chunk-YA3LMTLU.js} +1 -1
- package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
- package/dist/cli/{chunk-K4X472AT.js → chunk-YMASNIC5.js} +260 -259
- package/dist/cli/{chunk-SDCIROIS.mjs → chunk-ZMU2DDID.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-J7UVP4KB.mjs → csv-NM5IHLVM.mjs} +3 -3
- package/dist/cli/{csv-Y4YWZSLB.js → csv-RL53NPRV.js} +12 -12
- package/dist/cli/{db-CQ6NHMLG.mjs → db-FZTIS4QG.mjs} +5 -5
- package/dist/cli/{db-SVFCM6YZ.js → db-RJCFUM2J.js} +26 -26
- package/dist/cli/{describe-FSDW6LTN.js → describe-A2MGAI3Y.js} +24 -24
- package/dist/cli/{describe-Y65BU7ZY.mjs → describe-T77IEILZ.mjs} +16 -16
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-IW762OIJ.mjs → executions-AMQK53QX.mjs} +4 -4
- package/dist/cli/{executions-SJIKBRHT.js → executions-R6UPRZ5N.js} +6 -6
- package/dist/cli/{feedback-VMJIWAMT.mjs → feedback-BA5ZHVCZ.mjs} +3 -3
- package/dist/cli/{feedback-RCYSUOB3.js → feedback-JFT536KI.js} +7 -7
- package/dist/cli/{git-Q2WY3K6X.mjs → git-5ONARXFO.mjs} +4 -4
- package/dist/cli/git-NHQR3NKF.js +24 -0
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-JVEE2VHK.mjs → legacy-noops-7J4K6QUX.mjs} +4 -4
- package/dist/cli/{legacy-noops-U4YPPYXU.js → legacy-noops-WT7M7WYD.js} +7 -7
- package/dist/cli/{monitors-AY4KQRTC.mjs → monitors-N3WDXW7H.mjs} +19 -13
- package/dist/cli/{monitors-BMAOQ37R.js → monitors-YH6PKEIW.js} +99 -93
- package/dist/cli/{org-ME4X6HWH.mjs → org-2V5ELSYS.mjs} +4 -4
- package/dist/cli/{org-G5IURX74.js → org-KGYHMT5P.js} +64 -64
- package/dist/cli/{play-X5GSZOKZ.js → play-2JOQQRZI.js} +606 -567
- package/dist/cli/{play-WLYU7WQL.mjs → play-CL2LCBAF.mjs} +113 -74
- package/dist/cli/{providers-2LBMNB7B.mjs → providers-I7EEPWNW.mjs} +4 -4
- package/dist/cli/{providers-AHEUVD3R.js → providers-VIP6MCWC.js} +7 -7
- package/dist/cli/{quickstart-DP2SKLIG.js → quickstart-33WC2KWE.js} +5 -5
- package/dist/cli/{quickstart-DBLYGHJP.mjs → quickstart-VRBKQODE.mjs} +3 -3
- package/dist/cli/{search-YKJHY3ZJ.mjs → search-7TDSKXOO.mjs} +5 -5
- package/dist/cli/search-A6RZZ4LK.js +30 -0
- package/dist/cli/{secrets-ECLARBO6.mjs → secrets-DGLCIN7Y.mjs} +4 -4
- package/dist/cli/{secrets-2P3I3OEZ.js → secrets-TQH5FXAC.js} +13 -13
- package/dist/cli/{sessions-MC4ZCTSN.js → sessions-4D4UDPIS.js} +5 -5
- package/dist/cli/{sessions-3GDFID7R.mjs → sessions-D6QGKQ2G.mjs} +4 -4
- package/dist/cli/{settings-RTPJXMOA.mjs → settings-6HVXBCVR.mjs} +8 -8
- package/dist/cli/{settings-7SVR2OVL.js → settings-V3QRG4AO.js} +75 -75
- package/dist/cli/{setup-4WLIJX36.js → setup-6WP7D5I3.js} +42 -42
- package/dist/cli/{setup-OKAZZGAW.mjs → setup-CSJ3HSL7.mjs} +7 -7
- package/dist/cli/{skills-2CVL6RG5.mjs → skills-2MTWP4PS.mjs} +5 -5
- package/dist/cli/skills-QOYOARZT.js +29 -0
- package/dist/cli/{tools-KAFHP6J4.mjs → tools-GAR3BWB6.mjs} +15 -15
- package/dist/cli/tools-MGEKAIOU.js +44 -0
- package/dist/cli/update-HMZCLFLZ.js +31 -0
- package/dist/cli/{update-3ZV3W7I4.mjs → update-XV3WV3MU.mjs} +7 -7
- package/dist/cli/{workflow-DKSUNZXE.mjs → workflow-DTZAWSB2.mjs} +9 -9
- package/dist/cli/{workflow-GULDFFP3.js → workflow-WNE7ORMT.js} +19 -19
- package/dist/{client-CCWIUnk7.d.mts → client-BcfFWD4Z.d.mts} +19 -15
- package/dist/{client-vHqBm-OL.d.ts → client-DH-fmT69.d.ts} +19 -15
- package/dist/{compiler-manifest-lzWpbV3w.d.mts → compiler-manifest-DaFuA1ki.d.mts} +35 -32
- package/dist/{compiler-manifest-lzWpbV3w.d.ts → compiler-manifest-DaFuA1ki.d.ts} +35 -32
- package/dist/{index-CtNK-0nI.d.mts → index-0yS9ihly.d.mts} +10 -3
- package/dist/{index-C8Cy-YTm.d.ts → index-CRAScKPg.d.ts} +10 -3
- package/dist/index.d.mts +120 -150
- package/dist/index.d.ts +120 -150
- package/dist/index.js +77 -12
- package/dist/index.mjs +74 -9
- package/dist/install-integrity.json +99 -98
- 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 +1 -1
- 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-HD5AM2WM.js +0 -40
- package/dist/cli/git-JAW3UEGA.js +0 -24
- package/dist/cli/search-4K3VSDS5.js +0 -30
- package/dist/cli/skills-ZNSQOXO2.js +0 -29
- package/dist/cli/tools-W4U4FT3R.js +0 -44
- package/dist/cli/update-IE2FPLB5.js +0 -31
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference path="./text-imports.d.ts" />
|
|
2
|
-
import { i as PlayAuthoringFetchResponse, T as ToolExecuteResult, B as BasicToolExecuteResult, j as PlayDataset, A as AsyncPlayRunRef$1, k as PlayAuthoringColumnMap, l as PlayAuthoringColumnResolver, m as PlayAuthoringRuntimeContext, n as PlayAuthoringConditionalStepResolver, o as PlayAuthoringCsvInput, p as PlayAuthoringCsvOptions, q as PlayAuthoringDatasetBuilder, r as PlayAuthoringDatasetColumnDefinition, s as PlayAuthoringDatasetColumnRunInput, t as PlayAuthoringReferenceLike, u as PlayReturnObject$1, v as PlayAuthoringDefineConfig, w as PlayAuthoringDefinedPlay, x as PlayAuthoringFetchOptions, y as PlayAuthoringFileInput, z as PlayAuthoringAsyncCallOptions, C as PlayAuthoringBindings, D as PlayAuthoringCallExecution, E as PlayAuthoringCallOptions, 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 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-
|
|
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 ToolCategoryListing, b$ as ToolCategorySummary, c0 as ToolExecution, c1 as ToolRequestCondition, c2 as ToolRequestWarningRule, c3 as ToolSearchOptions, c4 as ToolSearchResult, c5 as WorkspaceCreateResult, c6 as WorkspacesNamespace, c7 as defineMonitor, c8 as isStopAllPlayRunsDryRunResult, c9 as planCustomerDbQuery } from './client-
|
|
6
|
-
import { b as BundledPlayFileSuccess } from './index-
|
|
2
|
+
import { i as PlayAuthoringFetchResponse, T as ToolExecuteResult, B as BasicToolExecuteResult, j as PlayDataset, A as AsyncPlayRunRef$1, k as PlayAuthoringColumnMap, l as PlayAuthoringColumnResolver, m as PlayAuthoringRuntimeContext, n as PlayAuthoringConditionalStepResolver, o as PlayAuthoringCsvInput, p as PlayAuthoringCsvOptions, q as PlayAuthoringDatasetBuilder, r as PlayAuthoringDatasetColumnDefinition, s as PlayAuthoringDatasetColumnRunInput, t as PlayAuthoringReferenceLike, u as PlayReturnObject$1, v as PlayAuthoringDefineConfig, w as PlayAuthoringDefinedPlay, x as PlayAuthoringFetchOptions, y as PlayAuthoringFileInput, z as PlayAuthoringAsyncCallOptions, C as PlayAuthoringBindings, D as PlayAuthoringCallExecution, E as PlayAuthoringCallOptions, 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-DaFuA1ki.js';
|
|
3
|
+
export { Y as BillingEntitlements, 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-DaFuA1ki.js';
|
|
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-DH-fmT69.js';
|
|
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 ToolCategoryListing, b$ as ToolCategorySummary, c0 as ToolExecution, c1 as ToolRequestCondition, c2 as ToolRequestWarningRule, c3 as ToolSearchOptions, c4 as ToolSearchResult, c5 as WorkspaceCreateResult, c6 as WorkspacesNamespace, c7 as defineMonitor, c8 as isStopAllPlayRunsDryRunResult, c9 as planCustomerDbQuery } from './client-DH-fmT69.js';
|
|
6
|
+
import { b as BundledPlayFileSuccess } from './index-CRAScKPg.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 '@sinclair/typebox';
|
|
@@ -20,7 +20,7 @@ declare class CtxFetchAmbiguousWriteError extends Error {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Edition 5+ `
|
|
23
|
+
* Edition 5+ `deepline.fetch` error for a non-2xx response. Its full readable body is secret-redacted; editions 1–4 retain `PlayFetchResponse { ok: false }`.
|
|
24
24
|
*
|
|
25
25
|
* @sdkReference runtime 178 CtxFetchHttpError
|
|
26
26
|
*/
|
|
@@ -61,10 +61,13 @@ type RuntimeStepOptions = PlayAuthoringRuntimeStepOptions;
|
|
|
61
61
|
type FetchOptions = PlayAuthoringFetchOptions;
|
|
62
62
|
type PlayFetchResponse = PlayAuthoringFetchResponse;
|
|
63
63
|
/**
|
|
64
|
-
* Optional Play configuration,
|
|
64
|
+
* Optional Play configuration, declared once at the top of the play file as
|
|
65
|
+
* an object literal: `export const config = { ... };`. Settings: `name`
|
|
66
|
+
* (defaults to the file name), `description`, `displayName`, `cron`,
|
|
67
|
+
* `webhook`, `sqlListeners`, `runtime`, `billing`, `compatibility`. It is
|
|
68
|
+
* read without running the play, so its values must be literals.
|
|
65
69
|
*
|
|
66
|
-
* A play can be triggered three ways
|
|
67
|
-
* {@link definePlay}:
|
|
70
|
+
* A play can be triggered three ways:
|
|
68
71
|
* - `webhook` — an inbound HTTP call (with optional legacy HMAC or Standard
|
|
69
72
|
* Webhooks signature verification).
|
|
70
73
|
* - `cron` — a schedule.
|
|
@@ -73,17 +76,17 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
|
|
|
73
76
|
* (e.g. run enrichment every time a watched company posts a new job). Each
|
|
74
77
|
* listener binds to a monitor tool id + one of its output stream keys (see
|
|
75
78
|
* `deepline monitors available <id>` for a tool's streams and row columns).
|
|
76
|
-
* The changed row is delivered
|
|
79
|
+
* The changed row is delivered as the listener event's `after` in the play function's input.
|
|
77
80
|
*
|
|
78
81
|
* The default Play runtime is 30 minutes. For bounded long-running batches, add
|
|
79
82
|
* `runtime: { timeout: '90m', size: 'standard' }`; duration values are whole minutes or hours, up to `4h`.
|
|
80
|
-
* It differs from `
|
|
83
|
+
* It differs from `deepline.tools.execute({ timeoutMs })`, which limits one provider call.
|
|
81
84
|
*
|
|
82
85
|
* @example Webhook with HMAC verification. `secretEnv` is the Deepline Secret
|
|
83
86
|
* name configured with `deepline secrets set`, retained as the legacy field
|
|
84
87
|
* name for SDK compatibility.
|
|
85
88
|
* ```typescript
|
|
86
|
-
*
|
|
89
|
+
* export const config = {
|
|
87
90
|
* webhook: {
|
|
88
91
|
* hmac: {
|
|
89
92
|
* algorithm: 'sha256',
|
|
@@ -93,12 +96,12 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
|
|
|
93
96
|
* secretEnv: 'WEBHOOK_SECRET',
|
|
94
97
|
* },
|
|
95
98
|
* },
|
|
96
|
-
* }
|
|
99
|
+
* };
|
|
97
100
|
* ```
|
|
98
101
|
*
|
|
99
102
|
* @example Svix / Standard Webhooks verification with Deepline Secrets
|
|
100
103
|
* ```typescript
|
|
101
|
-
*
|
|
104
|
+
* export const config = {
|
|
102
105
|
* webhook: {
|
|
103
106
|
* auth: {
|
|
104
107
|
* type: 'standard-webhooks',
|
|
@@ -106,19 +109,17 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
|
|
|
106
109
|
* signingSecrets: ['VECTOR_WEBHOOK_SECRET'],
|
|
107
110
|
* },
|
|
108
111
|
* },
|
|
109
|
-
* }
|
|
112
|
+
* };
|
|
110
113
|
* ```
|
|
111
114
|
*
|
|
112
115
|
* @example Cron schedule
|
|
113
116
|
* ```typescript
|
|
114
|
-
*
|
|
115
|
-
* cron: { schedule: '0 2 * * *', timezone: 'UTC' },
|
|
116
|
-
* });
|
|
117
|
+
* export const config = { cron: { schedule: '0 2 * * *', timezone: 'UTC' } };
|
|
117
118
|
* ```
|
|
118
119
|
*
|
|
119
120
|
* @example Monitor-triggered (run a play on a monitor's output)
|
|
120
121
|
* ```typescript
|
|
121
|
-
*
|
|
122
|
+
* export const config = {
|
|
122
123
|
* sqlListeners: [
|
|
123
124
|
* {
|
|
124
125
|
* id: 'jobs',
|
|
@@ -127,19 +128,19 @@ type PlayFetchResponse = PlayAuthoringFetchResponse;
|
|
|
127
128
|
* operations: ['INSERT'],
|
|
128
129
|
* },
|
|
129
130
|
* ],
|
|
130
|
-
* }
|
|
131
|
+
* };
|
|
131
132
|
* ```
|
|
132
133
|
*
|
|
133
|
-
* @sdkReference runtime
|
|
134
|
+
* @sdkReference runtime 006 export const config
|
|
134
135
|
*/
|
|
135
136
|
type PlayBindings<TInput = Record<string, unknown>> = PlayAuthoringBindings<TInput>;
|
|
136
137
|
type SqlListenerOperation = PlaySqlListenerOperation;
|
|
137
138
|
type SqlListenerDeclaration = PlaySqlListenerDeclaration;
|
|
138
139
|
type SqlListenerEvent<T extends object = Record<string, unknown>> = PlaySqlListenerEvent<T>;
|
|
139
|
-
/** @deprecated Pass a SQL string directly to
|
|
140
|
+
/** @deprecated Pass a SQL string directly to deepline.customerDb.query. */
|
|
140
141
|
type SqlQuery = PlaySqlQuery;
|
|
141
142
|
/**
|
|
142
|
-
* Keyword-style request object for `
|
|
143
|
+
* Keyword-style request object for `deepline.tools.execute(...)`.
|
|
143
144
|
*
|
|
144
145
|
* The `tool` value comes from live tool discovery. The `id` is the stable
|
|
145
146
|
* logical call name used for logs, metadata, and result-cache identity. Provider
|
|
@@ -178,7 +179,7 @@ type StepProgramResolver<Input, Return> = PlayAuthoringStepProgramResolver<Input
|
|
|
178
179
|
type PlayStepProgramStep = PlayAuthoringStepProgramStep<DeeplinePlayRuntimeContext>;
|
|
179
180
|
type ColumnResolver<Row, Value> = PlayAuthoringColumnResolver<Row, Value, DeeplinePlayRuntimeContext>;
|
|
180
181
|
/**
|
|
181
|
-
* Builder returned by `
|
|
182
|
+
* Builder returned by `deepline.dataset(...)` for row-level durable columns.
|
|
182
183
|
*
|
|
183
184
|
* @sdkReference runtime 070 .dataset(...).withColumn(name, resolver).run(options)
|
|
184
185
|
*/
|
|
@@ -198,57 +199,98 @@ type FileInput<TMetadata = unknown> = PlayAuthoringFileInput<TMetadata>;
|
|
|
198
199
|
type CsvInput<TRow extends object = Record<string, unknown>> = PlayAuthoringCsvInput<TRow>;
|
|
199
200
|
type ColumnMap<TRow extends object> = PlayAuthoringColumnMap<TRow>;
|
|
200
201
|
/**
|
|
201
|
-
* Options for loading a staged CSV with `
|
|
202
|
+
* Options for loading a staged CSV with `deepline.csv(...)`.
|
|
202
203
|
*
|
|
203
204
|
* @sdkReference runtime 050
|
|
204
205
|
*/
|
|
205
206
|
type CsvOptions = PlayAuthoringCsvOptions;
|
|
206
207
|
/**
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* Provides methods for calling tools, processing data, and emitting logs.
|
|
210
|
-
* This context is injected by the Temporal worker — you never construct it directly.
|
|
208
|
+
* The play runtime: every member of `deepline` except `config`, `input` and
|
|
209
|
+
* `output`. Use it to type a helper module's parameter; pass `deepline` in.
|
|
211
210
|
*
|
|
212
211
|
* @example
|
|
213
212
|
* ```typescript
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
213
|
+
* // enrich.ts
|
|
214
|
+
* import type { DeeplinePlayRuntimeContext } from 'deepline';
|
|
215
|
+
*
|
|
216
|
+
* export function lookUp(deepline: DeeplinePlayRuntimeContext, domain: string) {
|
|
217
|
+
* return deepline.tools.execute({
|
|
218
|
+
* id: 'company',
|
|
219
|
+
* tool: 'company_lookup',
|
|
220
|
+
* input: { domain },
|
|
221
|
+
* description: 'Look up the company.',
|
|
222
|
+
* });
|
|
223
|
+
* }
|
|
224
|
+
* ```
|
|
225
|
+
*/
|
|
226
|
+
type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext<'array'>;
|
|
227
|
+
/**
|
|
228
|
+
* `import deepline from 'deepline'` — the play runtime. A play is a
|
|
229
|
+
* `.play.ts` file that default-exports an async function of its input; the
|
|
230
|
+
* file name is the play name. The parameter's type is the input contract and
|
|
231
|
+
* the returned object is the result. Every
|
|
232
|
+
* runtime call below is `deepline.<name>`, including inside dataset resolvers
|
|
233
|
+
* and step bodies.
|
|
234
|
+
*
|
|
235
|
+
* ```ts
|
|
236
|
+
* import deepline from 'deepline';
|
|
237
|
+
*
|
|
238
|
+
* export default async function (input: { domain: string }) {
|
|
239
|
+
* const company = await deepline.tools.execute({
|
|
240
|
+
* id: 'company',
|
|
241
|
+
* tool: 'company_lookup',
|
|
219
242
|
* input: { domain: input.domain },
|
|
220
|
-
* description: 'Look up company
|
|
243
|
+
* description: 'Look up the company.',
|
|
244
|
+
* staleAfterSeconds: 0,
|
|
221
245
|
* });
|
|
246
|
+
* return { company };
|
|
247
|
+
* }
|
|
248
|
+
* ```
|
|
222
249
|
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* rowCtx.tools.execute({
|
|
228
|
-
* id: 'company_search',
|
|
229
|
-
* tool: 'test_company_search',
|
|
230
|
-
* input: { domain: row.domain },
|
|
231
|
-
* description: 'Look up company details by domain.',
|
|
232
|
-
* }))
|
|
233
|
-
* .run({ description: 'Look up company details.' });
|
|
234
|
-
*
|
|
235
|
-
* // Load CSV data from a submitted play input field.
|
|
236
|
-
* const leads = await ctx.csv(input.csv);
|
|
237
|
-
*
|
|
238
|
-
* // Emit a log line (visible in `play tail`)
|
|
239
|
-
* ctx.log(`Loaded ${await leads.count()} leads`);
|
|
250
|
+
* ```bash
|
|
251
|
+
* deepline plays run lookup.play.ts --input '{"domain":"stripe.com"}'
|
|
252
|
+
* deepline plays run -e 'deepline.log("hello"); return { ok: true };'
|
|
253
|
+
* ```
|
|
240
254
|
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
255
|
+
* Compose with `import child from './child.play'` and
|
|
256
|
+
* `await deepline.runPlay('key', child, input, { description })`, or by name.
|
|
257
|
+
* `deepline` works only in the play file; pass it to helper modules as an
|
|
258
|
+
* argument typed {@link DeeplinePlayRuntimeContext}. The file exports only
|
|
259
|
+
* the play function and, optionally, its `config`.
|
|
243
260
|
*
|
|
244
|
-
*
|
|
245
|
-
|
|
261
|
+
* @sdkReference runtime 005 deepline
|
|
262
|
+
*/
|
|
263
|
+
type ScriptPlayContext = DeeplinePlayRuntimeContext & {
|
|
264
|
+
/** The same settings as `export const config = { ... }`. */
|
|
265
|
+
config(config: PlayBindings & {
|
|
266
|
+
name?: string;
|
|
267
|
+
}): void;
|
|
268
|
+
/**
|
|
269
|
+
* The run's input. A play function receives it as its parameter instead;
|
|
270
|
+
* this is not called at the top of a play file.
|
|
271
|
+
*/
|
|
272
|
+
input<TInput = Record<string, unknown>>(): TInput;
|
|
273
|
+
/**
|
|
274
|
+
* Sets the play's result; deepline calls after it fail. A play function
|
|
275
|
+
* returns its result instead; this is not called at the top of a play file.
|
|
276
|
+
*/
|
|
277
|
+
output(result: PlayReturnObject): void;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* Runs a play module's body with `deepline` bound to this run. The bundler
|
|
281
|
+
* wraps the module's code, and the dispatch to its default-exported play
|
|
282
|
+
* function, in this call, so the artifact keeps the runner's
|
|
283
|
+
* `(context, input) => result` contract.
|
|
246
284
|
*
|
|
247
|
-
*
|
|
248
|
-
* });
|
|
249
|
-
* ```
|
|
285
|
+
* @internal
|
|
250
286
|
*/
|
|
251
|
-
|
|
287
|
+
declare function runScriptPlay(context: DeeplinePlayRuntimeContext, input: unknown, body: () => Promise<unknown>): Promise<PlayReturnObject>;
|
|
288
|
+
/**
|
|
289
|
+
* The live play runtime for a script play. Inside a run it is that run's
|
|
290
|
+
* context (bound per async flow, so concurrent rows and steps keep their own
|
|
291
|
+
* scope); anywhere else, using it is a mistake worth a clear error.
|
|
292
|
+
*/
|
|
293
|
+
declare const deepline: ScriptPlayContext;
|
|
252
294
|
/**
|
|
253
295
|
* Handle to a Play execution: inspect status, stream logs, await output, or cancel.
|
|
254
296
|
* Like `deepline plays run` and `POST /api/v2/plays/run`, it returns a run id first.
|
|
@@ -259,7 +301,8 @@ type DeeplinePlayRuntimeContext = PlayAuthoringRuntimeContext<'array'>;
|
|
|
259
301
|
*
|
|
260
302
|
* @example
|
|
261
303
|
* ```typescript
|
|
262
|
-
* const
|
|
304
|
+
* const client = await Deepline.connect();
|
|
305
|
+
* const job: PlayJob = await client.play('my-play').run({ domain: 'stripe.com' });
|
|
263
306
|
*
|
|
264
307
|
* // Poll status
|
|
265
308
|
* const status = await job.status();
|
|
@@ -328,8 +371,8 @@ interface PlayJob<TOutput = unknown> {
|
|
|
328
371
|
*
|
|
329
372
|
* @example
|
|
330
373
|
* ```typescript
|
|
331
|
-
* const
|
|
332
|
-
* const play =
|
|
374
|
+
* const client = await Deepline.connect();
|
|
375
|
+
* const play = client.play<{ domain: string }, Company>('company-lookup');
|
|
333
376
|
*
|
|
334
377
|
* // Get play definition
|
|
335
378
|
* const detail = await play.get();
|
|
@@ -402,8 +445,8 @@ type DeeplineToolCallOptions = Pick<ExecuteToolRawOptions, 'timeout' | 'idempote
|
|
|
402
445
|
* Tool/provider operations available from a connected {@link DeeplineContext}.
|
|
403
446
|
*
|
|
404
447
|
* This namespace is for regular SDK callers outside a play runtime. Inside a
|
|
405
|
-
*
|
|
406
|
-
*
|
|
448
|
+
* play, use `deepline.tools.execute({ id, tool, input, ... })` so provider
|
|
449
|
+
* calls become durable runtime checkpoints.
|
|
407
450
|
*
|
|
408
451
|
* @sdkReference tools 010 DeeplineContext.tools
|
|
409
452
|
*/
|
|
@@ -417,7 +460,7 @@ type DeeplineToolsNamespace = {
|
|
|
417
460
|
/**
|
|
418
461
|
* Execute a provider-backed tool from a regular SDK process.
|
|
419
462
|
*
|
|
420
|
-
* For durable play code, prefer `
|
|
463
|
+
* For durable play code, prefer `deepline.tools.execute(...)` because the play
|
|
421
464
|
* runtime records the call under a stable id.
|
|
422
465
|
*/
|
|
423
466
|
execute(toolId: string, input: Record<string, unknown>, options?: DeeplineToolCallOptions): Promise<DeeplineToolExecuteResult>;
|
|
@@ -447,7 +490,7 @@ type PrebuiltPlayRef = {
|
|
|
447
490
|
readonly name: string;
|
|
448
491
|
};
|
|
449
492
|
type PlayReferenceLike<TInput extends Record<string, unknown> = Record<string, unknown>> = PlayAuthoringReferenceLike<TInput>;
|
|
450
|
-
/** Branded durable identity returned by
|
|
493
|
+
/** Branded durable identity returned by deepline.runPlayAsync. */
|
|
451
494
|
type PlayRunId = PlayRunId$1;
|
|
452
495
|
/** Serializable reference to an independently scheduled Play Run. */
|
|
453
496
|
type AsyncPlayRunRef = AsyncPlayRunRef$1;
|
|
@@ -457,14 +500,9 @@ type PlayAsyncCallOptions = PlayAuthoringAsyncCallOptions;
|
|
|
457
500
|
type PlayReturnObject = PlayReturnObject$1;
|
|
458
501
|
type PlayInputContract<TInput> = PlayAuthoringInputContract<TInput>;
|
|
459
502
|
/**
|
|
460
|
-
* Object-form
|
|
503
|
+
* Object-form config accepted by the older `definePlay(config)` form. Files
|
|
504
|
+
* that export `definePlay(...)` keep working; new plays use {@link deepline}.
|
|
461
505
|
*
|
|
462
|
-
* Use this form when the input contract should be explicit at definition time
|
|
463
|
-
* through `defineInput<T>(schema)`, or when configuration reads clearer as one
|
|
464
|
-
* object. The shorthand `definePlay(name, fn, bindings?)` is equivalent for
|
|
465
|
-
* simple file-backed plays.
|
|
466
|
-
*
|
|
467
|
-
* @sdkReference runtime 020
|
|
468
506
|
*/
|
|
469
507
|
type DefinePlayConfig<TInput, TOutput extends PlayReturnObject> = PlayAuthoringDefineConfig<TInput, TOutput, DeeplinePlayRuntimeContext>;
|
|
470
508
|
declare function steps<TInput>(options?: StepProgramOptions): StepProgram<TInput, TInput, TInput>;
|
|
@@ -565,7 +603,7 @@ declare class DeeplineContext {
|
|
|
565
603
|
* Play discovery and named-play handles.
|
|
566
604
|
*
|
|
567
605
|
* Use `plays.list()` for discovery and `plays.get(name)` when you prefer a
|
|
568
|
-
* namespace spelling over `
|
|
606
|
+
* namespace spelling over `play(name)`.
|
|
569
607
|
*/
|
|
570
608
|
get plays(): DeeplinePlaysNamespace;
|
|
571
609
|
/**
|
|
@@ -573,7 +611,7 @@ declare class DeeplineContext {
|
|
|
573
611
|
*
|
|
574
612
|
* Known prebuilts are exposed by camel-cased aliases. Any other property is
|
|
575
613
|
* converted into `prebuilt/<property>` so callers can pass the reference to
|
|
576
|
-
* `
|
|
614
|
+
* `deepline.runPlay(...)` inside a play.
|
|
577
615
|
*/
|
|
578
616
|
get prebuilt(): Record<string, PrebuiltPlayRef>;
|
|
579
617
|
/**
|
|
@@ -586,7 +624,7 @@ declare class DeeplineContext {
|
|
|
586
624
|
*
|
|
587
625
|
* @example
|
|
588
626
|
* ```typescript
|
|
589
|
-
* const play =
|
|
627
|
+
* const play = client.play<{ domain: string }>('email-waterfall');
|
|
590
628
|
* const job = await play.run({ domain: 'stripe.com' });
|
|
591
629
|
* const result = await job.get();
|
|
592
630
|
* ```
|
|
@@ -595,8 +633,8 @@ declare class DeeplineContext {
|
|
|
595
633
|
/**
|
|
596
634
|
* Run a named or prebuilt play and wait for its output.
|
|
597
635
|
*
|
|
598
|
-
* This is the high-level SDK equivalent of `
|
|
599
|
-
* Inside a
|
|
636
|
+
* This is the high-level SDK equivalent of `client.play(name).runSync(input)`.
|
|
637
|
+
* Inside a play, use `deepline.runPlay(key, playRef, input, options)`.
|
|
600
638
|
* The runtime checkpoints the child run under a stable key.
|
|
601
639
|
*
|
|
602
640
|
* @param playOrRef - Play name or prebuilt/reference object.
|
|
@@ -646,12 +684,8 @@ declare class Deepline {
|
|
|
646
684
|
}
|
|
647
685
|
declare function defineInput<TInput>(schema: Record<string, unknown>): PlayInputContract<TInput>;
|
|
648
686
|
/**
|
|
649
|
-
*
|
|
650
|
-
*
|
|
651
|
-
* The returned value is both a callable function and a named Play handle.
|
|
652
|
-
* The Deepline runtime calls the function with a runtime context.
|
|
653
|
-
* The handle provides `.run()`, `.versions()`, `.get()`, and `.publish()` for remote lifecycle operations.
|
|
654
|
-
* Plays define repeatable data pipelines. The runtime executes them durably with automatic retries and timeouts.
|
|
687
|
+
* The older play form. Files that export `definePlay(...)` keep working; new
|
|
688
|
+
* plays are scripts that use {@link deepline}.
|
|
655
689
|
*
|
|
656
690
|
* @typeParam TInput - The input type accepted by the play
|
|
657
691
|
* @typeParam TOutput - The return type of the play
|
|
@@ -660,70 +694,6 @@ declare function defineInput<TInput>(schema: Record<string, unknown>): PlayInput
|
|
|
660
694
|
* @param fn - Play function.
|
|
661
695
|
* @param bindings - Play configuration, including runtime limits and triggers.
|
|
662
696
|
* @returns A {@link DefinedPlay} that is both callable and has lifecycle methods
|
|
663
|
-
*
|
|
664
|
-
* @example Basic play
|
|
665
|
-
* ```typescript
|
|
666
|
-
* import { definePlay } from 'deepline';
|
|
667
|
-
*
|
|
668
|
-
* export default definePlay('company-lookup', async (ctx, input: { domain: string }) => {
|
|
669
|
-
* ctx.log(`Searching for ${input.domain}`);
|
|
670
|
-
* const company = await ctx.tools.execute({
|
|
671
|
-
* id: 'company_search',
|
|
672
|
-
* tool: 'test_company_search',
|
|
673
|
-
* input: { domain: input.domain },
|
|
674
|
-
* description: 'Look up company details by domain.',
|
|
675
|
-
* });
|
|
676
|
-
* return company;
|
|
677
|
-
* });
|
|
678
|
-
* ```
|
|
679
|
-
*
|
|
680
|
-
* @example CSV processing play
|
|
681
|
-
* ```typescript
|
|
682
|
-
* export default definePlay('bulk-enrich', async (ctx, input: { csv: string }) => {
|
|
683
|
-
* const leads = await ctx.csv(input.csv);
|
|
684
|
-
* ctx.log(`Processing ${await leads.count()} rows`);
|
|
685
|
-
* const results = await ctx
|
|
686
|
-
* .dataset('companies', leads)
|
|
687
|
-
* .withColumn('company', (row, ctx) =>
|
|
688
|
-
* ctx.tools.execute({
|
|
689
|
-
* id: 'company_search',
|
|
690
|
-
* tool: 'test_company_search',
|
|
691
|
-
* input: { domain: row.domain },
|
|
692
|
-
* description: 'Look up company details by domain.',
|
|
693
|
-
* }))
|
|
694
|
-
* .run({ description: 'Enrich lead companies.' });
|
|
695
|
-
* return results;
|
|
696
|
-
* });
|
|
697
|
-
* ```
|
|
698
|
-
*
|
|
699
|
-
* @example With cron binding
|
|
700
|
-
* ```typescript
|
|
701
|
-
* export default definePlay('daily-report', async (ctx) => {
|
|
702
|
-
* const data = await ctx.tools.execute({
|
|
703
|
-
* id: 'crm_export',
|
|
704
|
-
* tool: 'crm_export',
|
|
705
|
-
* input: { since: 'yesterday' },
|
|
706
|
-
* description: 'Export yesterday CRM records.',
|
|
707
|
-
* });
|
|
708
|
-
* return data;
|
|
709
|
-
* }, {
|
|
710
|
-
* cron: { schedule: '0 9 * * *', timezone: 'America/New_York' },
|
|
711
|
-
* });
|
|
712
|
-
* ```
|
|
713
|
-
*
|
|
714
|
-
* @example Programmatic lifecycle
|
|
715
|
-
* ```typescript
|
|
716
|
-
* const myPlay = definePlay('my-play', handler);
|
|
717
|
-
*
|
|
718
|
-
* // Get play definition:
|
|
719
|
-
* const detail = await myPlay.get();
|
|
720
|
-
*
|
|
721
|
-
* // Run remotely:
|
|
722
|
-
* const result = await myPlay.runSync({ domain: 'stripe.com' });
|
|
723
|
-
*
|
|
724
|
-
* // Make the current draft live:
|
|
725
|
-
* await myPlay.publish();
|
|
726
|
-
* ```
|
|
727
697
|
*/
|
|
728
698
|
declare function definePlay<TInput, TOutput extends PlayReturnObject>(config: DefinePlayConfig<TInput, TOutput>): DefinedPlay<TInput, TOutput>;
|
|
729
699
|
/** @internal Contextually type unannotated monitor-event handlers as unknown. */
|
|
@@ -1102,4 +1072,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
1102
1072
|
*/
|
|
1103
1073
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
1104
1074
|
|
|
1105
|
-
export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, CtxFetchAmbiguousWriteError, CtxFetchHttpError, 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 };
|
|
1075
|
+
export { type AsyncPlayRunRef, AuthError, BillingNamespace, ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CsvInput, type CsvOptions, CtxFetchAmbiguousWriteError, CtxFetchHttpError, 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 ScriptPlayContext, 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, deepline, deepline as default, defineInput, definePlay, defineWorkflow, extractSummaryFields, getDefinedPlayMetadata, pinLocalPlayImports, planLocalPlayExecution, readList, resolveConfig, runIf, runScriptPlay, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|