deepline 0.3.307 → 0.3.308
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/README.md +2 -1
- package/dist/bundling-sources/sdk/src/client.ts +270 -11
- package/dist/bundling-sources/sdk/src/compat.ts +27 -9
- package/dist/bundling-sources/sdk/src/index.ts +35 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/batch-runtime.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/batching-types.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +46 -16
- package/dist/bundling-sources/shared_libs/play-runtime/fullenrich-batching.ts +24 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-event-query.ts +872 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +595 -0
- package/dist/cli/auth-LWNR7TQB.js +31 -0
- package/dist/cli/{auth-AJPTFFC7.mjs → auth-ZWX4BF5K.mjs} +4 -4
- package/dist/cli/{billing-LPDYJLIL.mjs → billing-CLV5QRFQ.mjs} +4 -4
- package/dist/cli/{billing-SPBWUEOS.js → billing-H24FGAKE.js} +70 -70
- package/dist/cli/{chunk-O4OESDIN.mjs → chunk-3GIUCJAT.mjs} +1 -1
- package/dist/cli/{chunk-D55NIPGU.mjs → chunk-ABMGEW3C.mjs} +1 -1
- package/dist/cli/{chunk-RXYYANYP.mjs → chunk-ASWZTTKT.mjs} +13 -5
- package/dist/cli/{chunk-G4SSYZND.mjs → chunk-BPD7TR27.mjs} +1 -1
- package/dist/cli/{chunk-ZGICKTW7.mjs → chunk-CXU7ME5X.mjs} +2 -2
- package/dist/cli/{chunk-HWCB5MHF.js → chunk-GBFIAI4L.js} +68 -60
- package/dist/cli/{chunk-MZQP7CIL.js → chunk-GONK2N7U.js} +1 -1
- package/dist/cli/{chunk-TLTKAJ6S.mjs → chunk-HGI6RGHB.mjs} +653 -5
- package/dist/cli/{chunk-K2CQ2RBJ.js → chunk-IFIGQWHC.js} +6 -6
- package/dist/cli/{chunk-7ONALPWY.mjs → chunk-JUAVGRD7.mjs} +4 -4
- package/dist/cli/{chunk-GUIQWUCB.js → chunk-O7NNH76S.js} +6 -6
- package/dist/cli/{chunk-2IKIG333.js → chunk-QJBJZVG6.js} +15 -4
- package/dist/cli/{chunk-AKE6ZFIJ.js → chunk-QTCFSRGC.js} +4 -4
- package/dist/cli/{chunk-ZIF6JOOI.js → chunk-SRZ6XDX3.js} +26 -26
- package/dist/cli/{chunk-MPVXXDWH.mjs → chunk-T3P4NRZU.mjs} +1 -1
- package/dist/cli/{chunk-KCHBE2J3.js → chunk-TH3YBIJT.js} +852 -204
- package/dist/cli/{chunk-DF3XJ2V2.js → chunk-UGTYNMRX.js} +48 -48
- package/dist/cli/{chunk-76MFV3AC.js → chunk-WEZVPZPE.js} +2 -2
- package/dist/cli/{chunk-UABLQKTZ.mjs → chunk-WXLOW623.mjs} +11 -0
- package/dist/cli/{chunk-ILOCS73R.mjs → chunk-XFYVL7EM.mjs} +2 -2
- package/dist/cli/{chunk-BDFVIOLY.mjs → chunk-XSDL3NHZ.mjs} +3 -3
- package/dist/cli/{chunk-JNHXSZPB.js → chunk-YEJMVAD3.js} +6 -6
- package/dist/cli/{chunk-QACDLYNO.mjs → chunk-YSZSERRZ.mjs} +1 -1
- package/dist/cli/{chunk-IVXD2KA2.js → chunk-ZHHF24O5.js} +15 -15
- package/dist/cli/client-3J76AMVE.js +20 -0
- package/dist/cli/{client-7ZL4ROII.mjs → client-A5ILG5GT.mjs} +3 -3
- package/dist/cli/{csv-Y3LYCTGD.mjs → csv-NZ7KAYEF.mjs} +3 -3
- package/dist/cli/{csv-JUDFG7JV.js → csv-VSSAAXFX.js} +12 -12
- package/dist/cli/{db-5IXGEXNT.js → db-ICLEBSNO.js} +20 -20
- package/dist/cli/{db-GCOJD2BD.mjs → db-YSAJUBLD.mjs} +4 -4
- package/dist/cli/{executions-FIICTMSY.mjs → executions-MUJRAT5R.mjs} +4 -4
- package/dist/cli/{executions-LIEQKFT7.js → executions-XCAJB5TF.js} +6 -6
- package/dist/cli/{feedback-3OVAA3C7.mjs → feedback-6C7Y2SCJ.mjs} +3 -3
- package/dist/cli/{feedback-FAADYNAR.js → feedback-DBZMBHZG.js} +6 -6
- package/dist/cli/git-2NSE4WIK.js +23 -0
- package/dist/cli/{git-ESMYCYJO.mjs → git-EAH67ITA.mjs} +4 -4
- package/dist/cli/index.js +79 -77
- package/dist/cli/index.mjs +33 -31
- package/dist/cli/{legacy-noops-PKI3RFZW.js → legacy-noops-EJTOLTVO.js} +7 -7
- package/dist/cli/{legacy-noops-KP5CPZRK.mjs → legacy-noops-O5INQP6Q.mjs} +4 -4
- package/dist/cli/{monitors-KCFBLAFZ.js → monitors-5OYO2DPJ.js} +85 -85
- package/dist/cli/{monitors-A6KGGSBO.mjs → monitors-SBBBMUFY.mjs} +4 -4
- package/dist/cli/{org-WI6DEXZQ.js → org-SJRPJG42.js} +60 -60
- package/dist/cli/{org-DHI24UOK.mjs → org-Z7LTOL3H.mjs} +4 -4
- package/dist/cli/{play-2YXLQD24.mjs → play-2JTIEOZM.mjs} +472 -55
- package/dist/cli/{play-4EUUN76H.js → play-VQJ6ABZ2.js} +961 -544
- package/dist/cli/{providers-DWS3XIM6.js → providers-43MR5XOV.js} +7 -7
- package/dist/cli/{providers-2WZ6KHH2.mjs → providers-MX4CV2EH.mjs} +4 -4
- package/dist/cli/{quickstart-TDTDKM6F.js → quickstart-A6W3HEE2.js} +5 -5
- package/dist/cli/{quickstart-ZFZVG6UO.mjs → quickstart-Y4YLKRZ3.mjs} +3 -3
- package/dist/cli/{search-GMPXRQF4.js → search-AMUFSAFP.js} +6 -6
- package/dist/cli/{search-BBE2ZMCI.mjs → search-FRKDLJQG.mjs} +5 -5
- package/dist/cli/{secrets-JEJL3KIM.mjs → secrets-E4EX7O3J.mjs} +4 -4
- package/dist/cli/{secrets-SMBX4IE6.js → secrets-XITHKZW2.js} +13 -13
- package/dist/cli/{sessions-S6AWG747.js → sessions-6HJFDIR2.js} +5 -5
- package/dist/cli/{sessions-AVU353UT.mjs → sessions-6YXAUJII.mjs} +4 -4
- package/dist/cli/{settings-KBW4ROHC.js → settings-J5NRLCV2.js} +74 -74
- package/dist/cli/{settings-GY5CYRLF.mjs → settings-LBJSZIET.mjs} +7 -7
- package/dist/cli/{setup-WSVIDSEV.js → setup-2ES4CTO5.js} +41 -41
- package/dist/cli/{setup-4CW3XGGX.mjs → setup-75FENNVH.mjs} +6 -6
- package/dist/cli/skills-VLTAVA4K.js +28 -0
- package/dist/cli/{skills-U3NXFSFK.mjs → skills-XGZDUXW6.mjs} +4 -4
- package/dist/cli/{tools-XU6KLJZT.mjs → tools-2LEKXOGY.mjs} +58 -42
- package/dist/cli/{tools-KZKELW25.js → tools-ZOQOGDKI.js} +111 -95
- package/dist/cli/update-5CZOVYQT.js +28 -0
- package/dist/cli/{update-RZLH46DR.mjs → update-SNK3IN3I.mjs} +6 -6
- package/dist/cli/{workflow-ZQUKQI35.mjs → workflow-G7ZM3MAC.mjs} +5 -5
- package/dist/cli/{workflow-GDOGDGTZ.js → workflow-W3AYTB3J.js} +15 -15
- package/dist/{client-Dj8MAkDc.d.mts → client-DpnkGBn-.d.mts} +324 -11
- package/dist/{client-DsrFGXJf.d.ts → client-ypdBvf1o.d.ts} +324 -11
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -6
- package/dist/index.mjs +5 -3
- package/dist/install-integrity.json +73 -72
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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-TUQTQIH4.js +0 -31
- package/dist/cli/client-S3MIFPM2.js +0 -20
- package/dist/cli/git-GG6LWE2R.js +0 -23
- package/dist/cli/skills-6AU3RRAD.js +0 -28
- package/dist/cli/update-LVXXQF4A.js +0 -28
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
var _chunk3XX5TEA4js = require('./chunk-3XX5TEA4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTH3YBIJTjs = require('./chunk-TH3YBIJT.js');
|
|
7
7
|
require('./chunk-LA46MMTL.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
13
|
+
var _chunkYEJMVAD3js = require('./chunk-YEJMVAD3.js');
|
|
14
|
+
require('./chunk-QTCFSRGC.js');
|
|
15
15
|
require('./chunk-XNYIZMNQ.js');
|
|
16
|
-
require('./chunk-
|
|
16
|
+
require('./chunk-GONK2N7U.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunk3KC45UVFjs = require('./chunk-3KC45UVF.js');
|
|
@@ -1600,18 +1600,18 @@ function noticeToStderr(command) {
|
|
|
1600
1600
|
);
|
|
1601
1601
|
}
|
|
1602
1602
|
function emitPassThrough(command, payload, options) {
|
|
1603
|
-
const json =
|
|
1603
|
+
const json = _chunkYEJMVAD3js.shouldEmitJson.call(void 0, options.json);
|
|
1604
1604
|
const deprecation = migrationDeprecation(command);
|
|
1605
1605
|
if (json) {
|
|
1606
1606
|
const enriched = payload && typeof payload === "object" && !Array.isArray(payload) ? { ...payload, deprecation } : { result: payload, deprecation };
|
|
1607
|
-
|
|
1607
|
+
_chunkYEJMVAD3js.printJson.call(void 0, enriched);
|
|
1608
1608
|
return;
|
|
1609
1609
|
}
|
|
1610
|
-
|
|
1610
|
+
_chunkYEJMVAD3js.printJson.call(void 0, payload);
|
|
1611
1611
|
noticeToStderr(command);
|
|
1612
1612
|
}
|
|
1613
1613
|
function client() {
|
|
1614
|
-
return new (0,
|
|
1614
|
+
return new (0, _chunkTH3YBIJTjs.DeeplineClient)();
|
|
1615
1615
|
}
|
|
1616
1616
|
function clientWithTimeout(timeoutSeconds) {
|
|
1617
1617
|
if (!timeoutSeconds) return client();
|
|
@@ -1619,7 +1619,7 @@ function clientWithTimeout(timeoutSeconds) {
|
|
|
1619
1619
|
if (!Number.isFinite(seconds) || seconds <= 0) {
|
|
1620
1620
|
throw new Error("--timeout must be a positive number of seconds.");
|
|
1621
1621
|
}
|
|
1622
|
-
return new (0,
|
|
1622
|
+
return new (0, _chunkTH3YBIJTjs.DeeplineClient)({ timeout: seconds * 1e3 });
|
|
1623
1623
|
}
|
|
1624
1624
|
function readStatus(payload) {
|
|
1625
1625
|
if (!payload || typeof payload !== "object") return null;
|
|
@@ -1673,7 +1673,7 @@ async function transformOne(api, workflowId, outDir, publish) {
|
|
|
1673
1673
|
await _promises.writeFile.call(void 0, file, compiled.sourceCode, "utf8");
|
|
1674
1674
|
let published = false;
|
|
1675
1675
|
if (publish) {
|
|
1676
|
-
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
1676
|
+
const { handlePlayPublish } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-VQJ6ABZ2.js")));
|
|
1677
1677
|
const code = await handlePlayPublish([file]);
|
|
1678
1678
|
if (code !== 0) {
|
|
1679
1679
|
return {
|
|
@@ -1748,10 +1748,10 @@ async function handleTransform(id, options) {
|
|
|
1748
1748
|
for (const workflowId of ids) {
|
|
1749
1749
|
outcomes.push(await transformOne(api, workflowId, outDir, publish));
|
|
1750
1750
|
}
|
|
1751
|
-
|
|
1751
|
+
_chunkYEJMVAD3js.printCommandEnvelope.call(void 0,
|
|
1752
1752
|
{ outcomes, deprecation: null },
|
|
1753
1753
|
{
|
|
1754
|
-
json:
|
|
1754
|
+
json: _chunkYEJMVAD3js.shouldEmitJson.call(void 0, options.json),
|
|
1755
1755
|
text: renderTransformReport(outcomes)
|
|
1756
1756
|
}
|
|
1757
1757
|
);
|
|
@@ -1772,11 +1772,11 @@ async function handleDelete(id, options) {
|
|
|
1772
1772
|
}
|
|
1773
1773
|
async function handleDisable(id, options) {
|
|
1774
1774
|
const result = await client().disableWorkflow(id);
|
|
1775
|
-
|
|
1775
|
+
_chunkYEJMVAD3js.printJson.call(void 0, result);
|
|
1776
1776
|
}
|
|
1777
1777
|
async function handleEnable(id, options) {
|
|
1778
1778
|
const result = await client().enableWorkflow(id);
|
|
1779
|
-
|
|
1779
|
+
_chunkYEJMVAD3js.printJson.call(void 0, result);
|
|
1780
1780
|
}
|
|
1781
1781
|
async function handleApply(options) {
|
|
1782
1782
|
const body = await readJsonOption(options.payload, options.file);
|
|
@@ -1841,7 +1841,7 @@ async function handleTail(id, runId, options) {
|
|
|
1841
1841
|
if (status && TERMINAL_RUN_STATUSES.has(status) || Date.now() > deadline) {
|
|
1842
1842
|
return;
|
|
1843
1843
|
}
|
|
1844
|
-
await
|
|
1844
|
+
await _chunkYEJMVAD3js.sleep.call(void 0, intervalMs);
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
function registerWorkflowCommands(program) {
|
|
@@ -313,6 +313,9 @@ type PlayRuntimeSelection = {
|
|
|
313
313
|
sandboxPlacementPolicy?: string;
|
|
314
314
|
};
|
|
315
315
|
|
|
316
|
+
declare const RUN_LOG_LEVELS: readonly ["debug", "info", "warn", "error"];
|
|
317
|
+
type RunLogLevel = (typeof RUN_LOG_LEVELS)[number];
|
|
318
|
+
|
|
316
319
|
/**
|
|
317
320
|
* Canonical, producer-facing description of what a play is doing.
|
|
318
321
|
*
|
|
@@ -3435,6 +3438,233 @@ type ToolExecution<TData = unknown, TMeta = Record<string, unknown>> = {
|
|
|
3435
3438
|
[key: string]: unknown;
|
|
3436
3439
|
};
|
|
3437
3440
|
|
|
3441
|
+
/** Public criteria shared by the API, SDK and CLI; no database/runtime imports. */
|
|
3442
|
+
type RunEventScalar = string | number | boolean | null;
|
|
3443
|
+
type RunEventField = keyof typeof RUN_EVENT_QUERY_FIELD_CATALOG | `context.${string}`;
|
|
3444
|
+
type RunEventFieldOperators<T extends RunEventScalar = RunEventScalar> = {
|
|
3445
|
+
eq?: T;
|
|
3446
|
+
ne?: T;
|
|
3447
|
+
gt?: Exclude<T, boolean | null>;
|
|
3448
|
+
gte?: Exclude<T, boolean | null>;
|
|
3449
|
+
lt?: Exclude<T, boolean | null>;
|
|
3450
|
+
lte?: Exclude<T, boolean | null>;
|
|
3451
|
+
exists?: boolean;
|
|
3452
|
+
in?: readonly T[];
|
|
3453
|
+
};
|
|
3454
|
+
type Filter<T extends RunEventScalar> = T | RunEventFieldOperators<T>;
|
|
3455
|
+
type RunEventWhere = {
|
|
3456
|
+
eventId?: Filter<string>;
|
|
3457
|
+
orgId?: Filter<string>;
|
|
3458
|
+
runtimeScope?: Filter<string>;
|
|
3459
|
+
runId?: Filter<string>;
|
|
3460
|
+
playName?: Filter<string>;
|
|
3461
|
+
occurredAt?: Filter<string>;
|
|
3462
|
+
kind?: Filter<string>;
|
|
3463
|
+
source?: Filter<string | null>;
|
|
3464
|
+
status?: Filter<string | null>;
|
|
3465
|
+
level?: Filter<RunLogLevel | null>;
|
|
3466
|
+
stepId?: Filter<string | null>;
|
|
3467
|
+
stepKind?: Filter<string | null>;
|
|
3468
|
+
datasetId?: Filter<string | null>;
|
|
3469
|
+
phase?: Filter<string | null>;
|
|
3470
|
+
provider?: Filter<string | null>;
|
|
3471
|
+
operation?: Filter<string | null>;
|
|
3472
|
+
producerAttempt?: Filter<number | null>;
|
|
3473
|
+
context?: Readonly<Record<string, Filter<RunEventScalar>>>;
|
|
3474
|
+
and?: readonly RunEventWhere[];
|
|
3475
|
+
or?: readonly RunEventWhere[];
|
|
3476
|
+
} & {
|
|
3477
|
+
[K in `context.${string}`]?: Filter<RunEventScalar>;
|
|
3478
|
+
};
|
|
3479
|
+
type RunEventQueryCriteria = {
|
|
3480
|
+
since?: string | number;
|
|
3481
|
+
until?: string | number;
|
|
3482
|
+
where?: RunEventWhere | string;
|
|
3483
|
+
runId?: string;
|
|
3484
|
+
stepId?: string;
|
|
3485
|
+
minLevel?: RunLogLevel;
|
|
3486
|
+
text?: string;
|
|
3487
|
+
playName?: string;
|
|
3488
|
+
kind?: string;
|
|
3489
|
+
};
|
|
3490
|
+
type NormalizedRunEventQuery = Omit<RunEventQueryCriteria, 'since' | 'until' | 'where'> & {
|
|
3491
|
+
since: string;
|
|
3492
|
+
until: string;
|
|
3493
|
+
where?: RunEventWhere;
|
|
3494
|
+
};
|
|
3495
|
+
type RunEventQueryOptions = {
|
|
3496
|
+
limit?: number;
|
|
3497
|
+
cursor?: string;
|
|
3498
|
+
includePayloads?: boolean;
|
|
3499
|
+
};
|
|
3500
|
+
type RunEventMeasure = {
|
|
3501
|
+
op: 'count';
|
|
3502
|
+
as?: string;
|
|
3503
|
+
} | {
|
|
3504
|
+
op: 'sum';
|
|
3505
|
+
field: RunEventField;
|
|
3506
|
+
as?: string;
|
|
3507
|
+
};
|
|
3508
|
+
type RunEventSummaryOptions = {
|
|
3509
|
+
groupBy: readonly RunEventField[];
|
|
3510
|
+
measures?: readonly RunEventMeasure[];
|
|
3511
|
+
limit?: number;
|
|
3512
|
+
cursor?: string;
|
|
3513
|
+
};
|
|
3514
|
+
type RunEventQueryEvent = {
|
|
3515
|
+
eventId: string;
|
|
3516
|
+
occurredAt: string;
|
|
3517
|
+
ingestedAt: string;
|
|
3518
|
+
runId: string;
|
|
3519
|
+
playName: string;
|
|
3520
|
+
kind: string;
|
|
3521
|
+
level: RunLogLevel | null;
|
|
3522
|
+
message: string | null;
|
|
3523
|
+
source?: string;
|
|
3524
|
+
stepId?: string;
|
|
3525
|
+
status?: string;
|
|
3526
|
+
stepKind?: string;
|
|
3527
|
+
datasetId?: string;
|
|
3528
|
+
phase?: string;
|
|
3529
|
+
provider?: string;
|
|
3530
|
+
operation?: string;
|
|
3531
|
+
producerAttempt?: number;
|
|
3532
|
+
context?: Record<string, RunEventScalar>;
|
|
3533
|
+
eventPayload?: Record<string, unknown>;
|
|
3534
|
+
payload?: unknown;
|
|
3535
|
+
};
|
|
3536
|
+
type RunEventQueryPage = {
|
|
3537
|
+
returnedCount: number;
|
|
3538
|
+
hasMore: boolean;
|
|
3539
|
+
nextCursor: string | null;
|
|
3540
|
+
};
|
|
3541
|
+
type RunEventQueryRetention = {
|
|
3542
|
+
retainedSince: string;
|
|
3543
|
+
retentionDays: 7;
|
|
3544
|
+
};
|
|
3545
|
+
type ResultBase = {
|
|
3546
|
+
query: NormalizedRunEventQuery;
|
|
3547
|
+
retention: RunEventQueryRetention;
|
|
3548
|
+
};
|
|
3549
|
+
type RunEventLogsResult = ResultBase & {
|
|
3550
|
+
logs: RunEventQueryEvent[];
|
|
3551
|
+
page: RunEventQueryPage;
|
|
3552
|
+
};
|
|
3553
|
+
type RunEventEventsResult = ResultBase & {
|
|
3554
|
+
events: RunEventQueryEvent[];
|
|
3555
|
+
page: RunEventQueryPage;
|
|
3556
|
+
};
|
|
3557
|
+
type RunEventCountResult = ResultBase & {
|
|
3558
|
+
matchedCount: number;
|
|
3559
|
+
exact: true;
|
|
3560
|
+
};
|
|
3561
|
+
type RunEventGroupValue = RunEventScalar | {
|
|
3562
|
+
missing: true;
|
|
3563
|
+
};
|
|
3564
|
+
type RunEventSummaryResult = ResultBase & {
|
|
3565
|
+
groupBy: readonly RunEventField[];
|
|
3566
|
+
measures: readonly RunEventMeasure[];
|
|
3567
|
+
groups: Array<{
|
|
3568
|
+
keys: Record<string, RunEventGroupValue>;
|
|
3569
|
+
measures: Record<string, number>;
|
|
3570
|
+
}>;
|
|
3571
|
+
page: RunEventQueryPage;
|
|
3572
|
+
};
|
|
3573
|
+
type RunEventFieldDescriptor = {
|
|
3574
|
+
field: RunEventField;
|
|
3575
|
+
type: 'string' | 'number' | 'timestamp' | 'level';
|
|
3576
|
+
nullable: boolean;
|
|
3577
|
+
operators: readonly string[];
|
|
3578
|
+
groupable: boolean;
|
|
3579
|
+
summable: boolean;
|
|
3580
|
+
};
|
|
3581
|
+
type RunEventFieldsResult = {
|
|
3582
|
+
fields: readonly RunEventFieldDescriptor[];
|
|
3583
|
+
context: {
|
|
3584
|
+
field: 'context.<key>';
|
|
3585
|
+
type: 'scalar';
|
|
3586
|
+
operators: readonly string[];
|
|
3587
|
+
groupable: true;
|
|
3588
|
+
summable: true;
|
|
3589
|
+
missing: 'distinct_from_null';
|
|
3590
|
+
};
|
|
3591
|
+
};
|
|
3592
|
+
/** Supported fields are declared, never inferred from rows or raw payloads. */
|
|
3593
|
+
declare const RUN_EVENT_QUERY_FIELD_CATALOG: {
|
|
3594
|
+
readonly eventId: {
|
|
3595
|
+
readonly type: "string";
|
|
3596
|
+
readonly nullable: false;
|
|
3597
|
+
};
|
|
3598
|
+
readonly orgId: {
|
|
3599
|
+
readonly type: "string";
|
|
3600
|
+
readonly nullable: false;
|
|
3601
|
+
};
|
|
3602
|
+
readonly runtimeScope: {
|
|
3603
|
+
readonly type: "string";
|
|
3604
|
+
readonly nullable: false;
|
|
3605
|
+
};
|
|
3606
|
+
readonly runId: {
|
|
3607
|
+
readonly type: "string";
|
|
3608
|
+
readonly nullable: false;
|
|
3609
|
+
};
|
|
3610
|
+
readonly playName: {
|
|
3611
|
+
readonly type: "string";
|
|
3612
|
+
readonly nullable: false;
|
|
3613
|
+
};
|
|
3614
|
+
readonly kind: {
|
|
3615
|
+
readonly type: "string";
|
|
3616
|
+
readonly nullable: false;
|
|
3617
|
+
};
|
|
3618
|
+
readonly source: {
|
|
3619
|
+
readonly type: "string";
|
|
3620
|
+
readonly nullable: true;
|
|
3621
|
+
};
|
|
3622
|
+
readonly occurredAt: {
|
|
3623
|
+
readonly type: "timestamp";
|
|
3624
|
+
readonly nullable: false;
|
|
3625
|
+
};
|
|
3626
|
+
readonly status: {
|
|
3627
|
+
readonly type: "string";
|
|
3628
|
+
readonly nullable: true;
|
|
3629
|
+
};
|
|
3630
|
+
readonly level: {
|
|
3631
|
+
readonly type: "level";
|
|
3632
|
+
readonly nullable: true;
|
|
3633
|
+
};
|
|
3634
|
+
readonly stepId: {
|
|
3635
|
+
readonly type: "string";
|
|
3636
|
+
readonly nullable: true;
|
|
3637
|
+
};
|
|
3638
|
+
readonly stepKind: {
|
|
3639
|
+
readonly type: "string";
|
|
3640
|
+
readonly nullable: true;
|
|
3641
|
+
};
|
|
3642
|
+
readonly datasetId: {
|
|
3643
|
+
readonly type: "string";
|
|
3644
|
+
readonly nullable: true;
|
|
3645
|
+
};
|
|
3646
|
+
readonly phase: {
|
|
3647
|
+
readonly type: "string";
|
|
3648
|
+
readonly nullable: true;
|
|
3649
|
+
};
|
|
3650
|
+
readonly provider: {
|
|
3651
|
+
readonly type: "string";
|
|
3652
|
+
readonly nullable: true;
|
|
3653
|
+
};
|
|
3654
|
+
readonly operation: {
|
|
3655
|
+
readonly type: "string";
|
|
3656
|
+
readonly nullable: true;
|
|
3657
|
+
};
|
|
3658
|
+
readonly producerAttempt: {
|
|
3659
|
+
readonly type: "number";
|
|
3660
|
+
readonly nullable: true;
|
|
3661
|
+
};
|
|
3662
|
+
};
|
|
3663
|
+
declare class RunEventQueryInputError extends TypeError {
|
|
3664
|
+
readonly code: string;
|
|
3665
|
+
constructor(message: string, code?: string);
|
|
3666
|
+
}
|
|
3667
|
+
|
|
3438
3668
|
/**
|
|
3439
3669
|
* Monitor authoring and typing for the Deepline SDK.
|
|
3440
3670
|
*
|
|
@@ -4141,6 +4371,72 @@ type RunsEventPayload = {
|
|
|
4141
4371
|
/** Stored structured failure details, or null when absent. */
|
|
4142
4372
|
errorPayload: unknown | null;
|
|
4143
4373
|
};
|
|
4374
|
+
/** Structured log criteria; relative `since` values such as `1h` are resolved once. */
|
|
4375
|
+
type RunsLogCriteria = Omit<RunEventQueryCriteria, 'runId'> & {
|
|
4376
|
+
/** Read an explicitly authorized Preview scope using its runtime credential. */
|
|
4377
|
+
runtime?: PlayRuntimeSelection;
|
|
4378
|
+
};
|
|
4379
|
+
/** One structured log page; filters are evaluated before the page limit. */
|
|
4380
|
+
type RunsLogsQueryOptions = RunsLogCriteria & RunEventQueryOptions;
|
|
4381
|
+
type RunQueryResultWithRuntime<T extends {
|
|
4382
|
+
query: NormalizedRunEventQuery;
|
|
4383
|
+
}> = Omit<T, 'query'> & {
|
|
4384
|
+
query: T['query'] & {
|
|
4385
|
+
runtime?: PlayRuntimeSelection;
|
|
4386
|
+
};
|
|
4387
|
+
};
|
|
4388
|
+
type RunLogQueryResult<T extends {
|
|
4389
|
+
query: NormalizedRunEventQuery;
|
|
4390
|
+
}> = Omit<T, 'query'> & {
|
|
4391
|
+
query: Omit<T['query'], 'runId'> & {
|
|
4392
|
+
runtime?: PlayRuntimeSelection;
|
|
4393
|
+
};
|
|
4394
|
+
};
|
|
4395
|
+
type RunsLogsQueryResult = RunLogQueryResult<RunEventLogsResult>;
|
|
4396
|
+
type RunsLogsCountResult = RunLogQueryResult<RunEventCountResult>;
|
|
4397
|
+
type RunsLogsSummaryOptions = RunsLogCriteria & RunEventSummaryOptions;
|
|
4398
|
+
type RunsLogsSummaryResult = RunLogQueryResult<RunEventSummaryResult>;
|
|
4399
|
+
/** Event criteria may span the active organization or target one run. */
|
|
4400
|
+
type RunsEventsCriteria = RunsLogCriteria & {
|
|
4401
|
+
runId?: string;
|
|
4402
|
+
};
|
|
4403
|
+
type RunsEventsListOptions = RunsEventsCriteria & RunEventQueryOptions;
|
|
4404
|
+
type RunsEventsListResult = RunQueryResultWithRuntime<RunEventEventsResult>;
|
|
4405
|
+
type RunsEventsCountResult = RunQueryResultWithRuntime<RunEventCountResult>;
|
|
4406
|
+
type RunsEventsSummaryResult = RunQueryResultWithRuntime<RunEventSummaryResult>;
|
|
4407
|
+
type RunsEventsSummaryOptions = RunsEventsCriteria & RunEventSummaryOptions;
|
|
4408
|
+
type RunsEventsFieldsOptions = {
|
|
4409
|
+
runtime?: PlayRuntimeSelection;
|
|
4410
|
+
};
|
|
4411
|
+
/**
|
|
4412
|
+
* Use `client.runs.logs(runId, options)` for the established text reader, or
|
|
4413
|
+
* `client.runs.logs.query/count/summarize/fields` for structured retained logs.
|
|
4414
|
+
*/
|
|
4415
|
+
type RunsLogsNamespace = {
|
|
4416
|
+
(runId: string, options?: RunsLogsOptions): Promise<RunsLogsResult>;
|
|
4417
|
+
/** Filter retained log records, newest first, in one server page. */
|
|
4418
|
+
query: (runId: string, options?: RunsLogsQueryOptions) => Promise<RunsLogsQueryResult>;
|
|
4419
|
+
/** Exact count of matching retained records; does not list or retrieve payloads. */
|
|
4420
|
+
count: (runId: string, criteria?: RunsLogCriteria) => Promise<RunsLogsCountResult>;
|
|
4421
|
+
/** Group matching retained records; groups have their own continuation cursor. */
|
|
4422
|
+
summarize: (runId: string, options: RunsLogsSummaryOptions) => Promise<RunsLogsSummaryResult>;
|
|
4423
|
+
/** Discover filter fields, operators, types and availability. */
|
|
4424
|
+
fields: (options?: RunsEventsFieldsOptions) => Promise<RunEventFieldsResult>;
|
|
4425
|
+
};
|
|
4426
|
+
/**
|
|
4427
|
+
* Use `client.runs.events` for lifecycle, receipt and organization-wide events.
|
|
4428
|
+
* Omit `runId` to query the active organization's retained events.
|
|
4429
|
+
*/
|
|
4430
|
+
type RunsEventsNamespace = {
|
|
4431
|
+
/** Filter retained events, newest first, in one server page. */
|
|
4432
|
+
list: (options?: RunsEventsListOptions) => Promise<RunsEventsListResult>;
|
|
4433
|
+
/** Exact count of matching retained events without listing or payload reads. */
|
|
4434
|
+
count: (criteria?: RunsEventsCriteria) => Promise<RunsEventsCountResult>;
|
|
4435
|
+
/** Group matching retained events with an independent continuation cursor. */
|
|
4436
|
+
summarize: (options: RunsEventsSummaryOptions) => Promise<RunsEventsSummaryResult>;
|
|
4437
|
+
/** Discover declared filter fields, operators, types and availability. */
|
|
4438
|
+
fields: (options?: RunsEventsFieldsOptions) => Promise<RunEventFieldsResult>;
|
|
4439
|
+
};
|
|
4144
4440
|
/** One persisted runtime-sheet row returned by `client.runs.exportDatasetRows(...)`. */
|
|
4145
4441
|
type PlaySheetRow = {
|
|
4146
4442
|
key?: string;
|
|
@@ -4193,7 +4489,7 @@ type PlaySecretCheck = {
|
|
|
4193
4489
|
secret: PlaySecretMetadata | null;
|
|
4194
4490
|
};
|
|
4195
4491
|
/**
|
|
4196
|
-
* Use `client.runs`
|
|
4492
|
+
* Use `client.runs` to watch, stop, query logs/events, and export durable dataset rows.
|
|
4197
4493
|
*
|
|
4198
4494
|
* @sdkReference client 020 client.runs
|
|
4199
4495
|
*/
|
|
@@ -4231,8 +4527,10 @@ type RunsNamespace = {
|
|
|
4231
4527
|
watch: (runId: string, options?: RunsWatchOptions) => Promise<PlayStatus>;
|
|
4232
4528
|
/** @deprecated Use `watch`; retained as a source-compatible alias. */
|
|
4233
4529
|
tail: (runId: string, options?: RunsTailOptions) => Promise<PlayStatus>;
|
|
4234
|
-
/**
|
|
4235
|
-
logs:
|
|
4530
|
+
/** Call for the retained text tail, full stream (`all`) or terminal failure window (`failed`). Use `logs.query/count/summarize/fields` for structured filters and exact aggregates; see [run logs and events](run-events.md). */
|
|
4531
|
+
logs: RunsLogsNamespace;
|
|
4532
|
+
/** Use `events.list/count/summarize/fields` for lifecycle, receipt and organization-wide events; see [run logs and events](run-events.md). */
|
|
4533
|
+
events: RunsEventsNamespace;
|
|
4236
4534
|
/** Search existing events across the active organization; default last hour, up to 200 events per page (ten with payloads). See [run logs and events](run-events.md) for the catalog, query fields and response types. */
|
|
4237
4535
|
searchEvents: (options?: RunsEventSearchOptions) => Promise<RunsEventSearchResult>;
|
|
4238
4536
|
/** Export persisted rows for a runtime-sheet dataset/table namespace. */
|
|
@@ -4972,13 +5270,9 @@ type MonitorsRepairResult = {
|
|
|
4972
5270
|
health: MonitorsHealth;
|
|
4973
5271
|
};
|
|
4974
5272
|
/**
|
|
4975
|
-
*
|
|
4976
|
-
*
|
|
4977
|
-
*
|
|
4978
|
-
* programmatic callers share one product surface — every `deepline monitors`
|
|
4979
|
-
* verb maps to a method here. Monitors are fully expressible as SDK code: author
|
|
4980
|
-
* a definition with {@link defineMonitor}, then check/deploy/list/get/update/
|
|
4981
|
-
* delete/reactivate through this namespace.
|
|
5273
|
+
* Use `client.monitors` for the /api/v2/monitors resource family.
|
|
5274
|
+
* Every `deepline monitors` verb maps here. Author a definition with {@link defineMonitor},
|
|
5275
|
+
* then check/deploy/list/get/update/delete/reactivate through this namespace.
|
|
4982
5276
|
*
|
|
4983
5277
|
* @sdkReference client 040 client.monitors
|
|
4984
5278
|
*/
|
|
@@ -6227,6 +6521,25 @@ declare class DeeplineClient {
|
|
|
6227
6521
|
* ```
|
|
6228
6522
|
*/
|
|
6229
6523
|
getRunLogs(runId: string, options?: RunsLogsOptions): Promise<RunsLogsResult>;
|
|
6524
|
+
/** Query one page of this run's retained logs. `where` accepts typed objects or the shared filter language. */
|
|
6525
|
+
private queryRunLogs;
|
|
6526
|
+
/** Count matching retained logs exactly, without fetching list pages or saved results. */
|
|
6527
|
+
private countRunLogs;
|
|
6528
|
+
/** Summarize retained logs with explicit group pagination and count or numeric sums. */
|
|
6529
|
+
private summarizeRunLogs;
|
|
6530
|
+
/** Query one page of retained lifecycle, log and receipt events in the active organization. */
|
|
6531
|
+
private listRunEvents;
|
|
6532
|
+
/** Count matching retained events exactly in one server query. */
|
|
6533
|
+
private countRunEvents;
|
|
6534
|
+
/**
|
|
6535
|
+
* Group retained events with exact counts, numeric sums and continuation.
|
|
6536
|
+
* Fractional sums use JavaScript number precision.
|
|
6537
|
+
*/
|
|
6538
|
+
private summarizeRunEvents;
|
|
6539
|
+
/** Discover query fields and their recorded types; custom scalar fields use `context.<key>`. */
|
|
6540
|
+
private getRunEventFields;
|
|
6541
|
+
private postRunEventQuery;
|
|
6542
|
+
private assertRunLogQueryRunId;
|
|
6230
6543
|
/** Read structured history across the active organization without requiring a run ID. Defaults to the last hour, newest first; use the returned cursor and exact time bounds to continue. See [run logs and events](run-events.md) for all kinds, indexed fields, payloads and SDK/API response types. */
|
|
6231
6544
|
searchRunEvents(options?: RunsEventSearchOptions): Promise<RunsEventSearchResult>;
|
|
6232
6545
|
/**
|
|
@@ -6849,4 +7162,4 @@ declare class DeeplineClient {
|
|
|
6849
7162
|
}>;
|
|
6850
7163
|
}
|
|
6851
7164
|
|
|
6852
|
-
export { type MonitorFleetStatus as $, DeeplineClient as A, type BillingNamespace as B, type ClearPlayHistoryResult as C, type DeeplineClientOptions as D, type ExecutionRecovery as E, type DeeplineToolCategory as F, type LiveEventEnvelope as G, MONITOR_JOB_RECONCILIATION_STATES as H, type IngestionStorageRepairResult as I, MONITOR_JOB_STATES as J, type MonitorBatchNamespace as K, type LegacyMonitorStatusFilter as L, MONITOR_JOB_PHASES as M, type MonitorCheckResult as N, type MonitorDefinition as O, type PlayListItem as P, type MonitorDeleteResult as Q, type ResolvedConfig as R, type StopPlayRunResult as S, type ToolDefinition as T, type MonitorDependents as U, type MonitorDeployResult as V, type MonitorDetail as W, type MonitorFleetDeactivateOptions as X, type MonitorFleetGetOptions as Y, type MonitorFleetReactivateOptions as Z, type MonitorFleetResult as _, type ToolMetadata as a, type
|
|
7165
|
+
export { type MonitorFleetStatus as $, DeeplineClient as A, type BillingNamespace as B, type ClearPlayHistoryResult as C, type DeeplineClientOptions as D, type ExecutionRecovery as E, type DeeplineToolCategory as F, type LiveEventEnvelope as G, MONITOR_JOB_RECONCILIATION_STATES as H, type IngestionStorageRepairResult as I, MONITOR_JOB_STATES as J, type MonitorBatchNamespace as K, type LegacyMonitorStatusFilter as L, MONITOR_JOB_PHASES as M, type MonitorCheckResult as N, type MonitorDefinition as O, type PlayListItem as P, type MonitorDeleteResult as Q, type ResolvedConfig as R, type StopPlayRunResult as S, type ToolDefinition as T, type MonitorDependents as U, type MonitorDeployResult as V, type MonitorDetail as W, type MonitorFleetDeactivateOptions as X, type MonitorFleetGetOptions as Y, type MonitorFleetReactivateOptions as Z, type MonitorFleetResult as _, type ToolMetadata as a, type PlaysListOptions as a$, type MonitorFleetSyncOptions as a0, type MonitorFleetWaitOptions as a1, type MonitorFleetsNamespace as a2, type MonitorJobDeployOptions as a3, type MonitorJobLogsOptions as a4, type MonitorJobPhase as a5, type MonitorJobReconciliationState as a6, type MonitorJobResult as a7, type MonitorJobState as a8, type MonitorJobWaitOptions as a9, type PlayActivityObservation as aA, type PlayActivityState as aB, type PlayActivityTarget as aC, type PlayBootstrapEntityKind as aD, type PlayBootstrapFinderKind as aE, type PlayCostEstimate as aF, type PlayCronTriggerConfig as aG, type PlayLiveEvent as aH, type PlayPath as aI, type PlayRunActionPackage as aJ, type PlayRunActivityProjection as aK, type PlayRunDatasetActions as aL, type PlayRunPackage as aM, type PlayRunResult as aN, type PlayRunStart as aO, type PlaySettings as aP, type PlaySettingsPatch as aQ, type PlaySettingsPathsPage as aR, type PlaySettingsResult as aS, type PlaySheetRow as aT, type PlaySheetRowsResult as aU, type PlayTriggerConfigUpdate as aV, type PlayTriggerConfigUpdateResult as aW, type PlayTriggerConfigView as aX, type PlayWebhookAuthConfig as aY, type PlayWebhookTriggerConfig as aZ, type PlaysActivityResponse as a_, type MonitorJobsNamespace as aa, type MonitorListEntry as ab, type MonitorPayload as ac, type MonitorReactivateResult as ad, type MonitorSpec as ae, type MonitorState as af, type MonitorStateFilter as ag, type MonitorUpdateChangeSummary as ah, type MonitorUpdateResult as ai, type MonitorsAccessStatus as aj, type MonitorsAvailableOptions as ak, type MonitorsAvailableResult as al, type MonitorsListOptions as am, type MonitorsListResult as an, type MonitorsNamespace as ao, type NormalizedRunEventQuery as ap, PLAY_BOOTSTRAP_COMPANY_FIELDS as aq, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY as ar, PLAY_BOOTSTRAP_CONTACT_FIELDS as as, PLAY_BOOTSTRAP_FINDER_KINDS as at, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER as au, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY as av, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER as aw, PLAY_BOOTSTRAP_SOURCE_KINDS as ax, PLAY_BOOTSTRAP_STAGE_KINDS as ay, PLAY_BOOTSTRAP_TEMPLATES as az, type ExecutionByKeyResult as b, type StopAllPlayRunsStopResult as b$, type PlaysListPage as b0, type PublishPlayVersionRequest as b1, type RerunOptions as b2, type RerunPlayRunResult as b3, type RunChildrenPage as b4, type RunEventCountResult as b5, type RunEventField as b6, type RunEventFieldDescriptor as b7, type RunEventFieldOperators as b8, type RunEventFieldsResult as b9, type RunsEventsSummaryOptions as bA, type RunsEventsSummaryResult as bB, type RunsHistoryItem as bC, type RunsHistoryOptions as bD, type RunsHistoryPage as bE, type RunsListOptions as bF, type RunsListPage as bG, type RunsLogCriteria as bH, type RunsLogsCountResult as bI, type RunsLogsNamespace as bJ, type RunsLogsOptions as bK, type RunsLogsQueryOptions as bL, type RunsLogsQueryResult as bM, type RunsLogsResult as bN, type RunsLogsSummaryOptions as bO, type RunsLogsSummaryResult as bP, type RunsNamespace as bQ, type RunsTailOptions as bR, type RunsWatchOptions as bS, type SearchOptions as bT, type SearchResult as bU, type SearchResultItem as bV, type SearchType as bW, type StartPlayRunRequest as bX, type StopAllCandidate as bY, type StopAllPlayRunsDryRunResult as bZ, type StopAllPlayRunsResult as b_, type RunEventGroupValue as ba, type RunEventMeasure as bb, type RunEventQueryCriteria as bc, type RunEventQueryEvent as bd, RunEventQueryInputError as be, type RunEventQueryOptions as bf, type RunEventQueryPage as bg, type RunEventQueryRetention as bh, type RunEventScalar as bi, type RunEventSummaryOptions as bj, type RunEventSummaryResult as bk, type RunEventWhere as bl, type RunLifecycleStatus as bm, type RunToolReceiptResult as bn, type RunToolReceiptsResponse as bo, type RunsChildrenOptions as bp, type RunsEventPayload as bq, type RunsEventSearchEntry as br, type RunsEventSearchOptions as bs, type RunsEventSearchResult as bt, type RunsEventsCountResult as bu, type RunsEventsCriteria as bv, type RunsEventsFieldsOptions as bw, type RunsEventsListOptions as bx, type RunsEventsListResult as by, type RunsEventsNamespace as bz, type PlayDetail as c, type StopAllRunsOptions as c0, type ToolExecution as c1, type ToolSearchOptions as c2, type ToolSearchResult as c3, type WorkspaceCreateResult as c4, type WorkspacesNamespace as c5, defineMonitor as c6, formatPlayBootstrapFinderKinds as c7, formatPlayBootstrapFinderKindsForSentence as c8, formatPlayBootstrapTemplates as c9, normalizePlayRunStart as cA, playRunFileInputBindings as cB, setDottedInputValue as cC, stageFileInputs as cD, stagePlayFiles as cE, stagedFileContentType as cF, startPlayRun as cG, webStagedFileCodec as cH, isPlayBootstrapFinderKind as ca, isPlayBootstrapTemplate as cb, isStopAllPlayRunsDryRunResult as cc, CSV_DATA_INPUT_KEY as cd, type FileInputBinding as ce, type LocalFileInput as cf, type MintStagedFileUpload as cg, PLAY_FILES_STAGE_MINT_PATH as ch, PLAY_FILES_STAGE_PATH as ci, PLAY_RUN_START_PATH as cj, PLAY_RUN_START_STREAM_PATH as ck, type PlayRunHttp as cl, type ResolvedStartPlayRunRequest as cm, STAGE_LEGACY_MULTIPART_MAX_BYTES as cn, type StagedFileCodec as co, type StagedFileInputs as cp, type StagedFileUpload as cq, buildNamedPlayRunRequest as cr, buildPlayRunStartBody as cs, createSessionPlayRunHttp as ct, createStagedFileUpload as cu, fileInputBindingsFromPlaySchema as cv, fileInputBindingsFromStaticPipeline as cw, getDottedInputValue as cx, isPlayRunPackage as cy, mintStagedPlayFileUploads as cz, type PlayRunListItem as d, type PlayRevisionSummary as e, type PublishPlayVersionResult as f, type PlayStatus as g, type BillingCreditPool as h, type BillingInvoiceEntry as i, type BillingInvoicesResult as j, type BillingPaymentMethodSummary as k, type BillingRecentUsageEntry as l, type BillingSubscriptionCancelResult as m, type BillingSubscriptionStatus as n, type BillingTopUpReceipt as o, type BillingTopUpResult as p, type BillingUsageEvent as q, type BillingUsageOptions as r, type BillingUsageResult as s, type ChildRunSummary as t, type ClearPlayHistoryRequest as u, type CreateNotificationGroupInput as v, type CreateNotificationGroupResult as w, type CustomerDbQueryResult as x, DEEPLINE_TOOL_CATEGORIES as y, type DbNamespace as z };
|