deepline 0.3.204 → 0.3.206
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 +13 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1 -0
- package/dist/cli/index.js +36 -1
- package/dist/cli/index.mjs +36 -1
- package/dist/index.d.mts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +1 -1
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
|
@@ -63,6 +63,7 @@ import type {
|
|
|
63
63
|
ResolvedConfig,
|
|
64
64
|
PlayRevisionSummary,
|
|
65
65
|
PlayRunListItem,
|
|
66
|
+
PlaysActivityResponse,
|
|
66
67
|
PlayDetail,
|
|
67
68
|
PlayCheckResult,
|
|
68
69
|
PlayRunResult,
|
|
@@ -5466,6 +5467,18 @@ export class DeeplineClient {
|
|
|
5466
5467
|
return this.requestPlaysPage(options);
|
|
5467
5468
|
}
|
|
5468
5469
|
|
|
5470
|
+
/** Count durable Play runs and Monitor deliveries in local calendar days. */
|
|
5471
|
+
async getPlaysActivity(
|
|
5472
|
+
options: {
|
|
5473
|
+
timeZone?: string;
|
|
5474
|
+
days?: number;
|
|
5475
|
+
endDate?: string;
|
|
5476
|
+
groupBy?: 'kind' | 'trigger_source';
|
|
5477
|
+
} = {},
|
|
5478
|
+
): Promise<PlaysActivityResponse> {
|
|
5479
|
+
return this.http.post('/api/v2/plays/activity', options);
|
|
5480
|
+
}
|
|
5481
|
+
|
|
5469
5482
|
private async requestPlaysPage(
|
|
5470
5483
|
options?: PlaysListOptions & {
|
|
5471
5484
|
limit?: number;
|
|
@@ -200,7 +200,7 @@ export const SDK_RELEASE = {
|
|
|
200
200
|
// getters keep their established compatibility behavior.
|
|
201
201
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
202
202
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
203
|
-
version: '0.3.
|
|
203
|
+
version: '0.3.206',
|
|
204
204
|
updateSummary:
|
|
205
205
|
'Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.',
|
|
206
206
|
packageCapabilities: {
|
|
@@ -1134,6 +1134,42 @@ export function isStopAllPlayRunsDryRunResult(
|
|
|
1134
1134
|
return 'dryRun' in result && result.dryRun === true;
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
1137
|
+
/** Bounded daily counts from durable Play runs and Monitor delivery receipts. */
|
|
1138
|
+
export interface PlaysActivityResponse {
|
|
1139
|
+
timeZone: string;
|
|
1140
|
+
groupBy: 'kind' | 'trigger_source';
|
|
1141
|
+
endDate: string;
|
|
1142
|
+
/** Current-day query cutoff, when the window ends today. */
|
|
1143
|
+
asOfAt?: number;
|
|
1144
|
+
buckets: Array<{
|
|
1145
|
+
key: string;
|
|
1146
|
+
label: string;
|
|
1147
|
+
startAt: number;
|
|
1148
|
+
endAt: number;
|
|
1149
|
+
groups: Array<{
|
|
1150
|
+
group:
|
|
1151
|
+
| 'play_run'
|
|
1152
|
+
| 'monitor_delivery'
|
|
1153
|
+
| 'manual'
|
|
1154
|
+
| 'api'
|
|
1155
|
+
| 'cron'
|
|
1156
|
+
| 'webhook'
|
|
1157
|
+
| 'sql_listener'
|
|
1158
|
+
| 'async_child';
|
|
1159
|
+
count: number;
|
|
1160
|
+
}>;
|
|
1161
|
+
failedPlayRuns: number;
|
|
1162
|
+
complete: { playRuns: boolean; monitorDeliveries: boolean };
|
|
1163
|
+
}>;
|
|
1164
|
+
coverage: {
|
|
1165
|
+
playRunsEarliestCompleteAt: number | null;
|
|
1166
|
+
monitorDeliveriesEarliestCompleteAt: number | null;
|
|
1167
|
+
monitorDeliveriesCompleteThroughAt: number | null;
|
|
1168
|
+
projectionPending: boolean;
|
|
1169
|
+
earliestPendingAt: number | null;
|
|
1170
|
+
};
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1137
1173
|
/**
|
|
1138
1174
|
* Summary of a single play run, returned by {@link DeeplineClient.listPlayRuns}.
|
|
1139
1175
|
*/
|
|
@@ -61,7 +61,7 @@ export const SANDBOX_CAPACITY_EXCEEDED_MESSAGE =
|
|
|
61
61
|
export const RUNTIME_CONTROL_PLANE_UNAVAILABLE_MESSAGE =
|
|
62
62
|
'Deepline could not reach the runtime control plane long enough to safely continue this run, so it stopped the execution sandbox. Completed work is preserved. Inspect and export saved datasets before deciding whether to rerun unfinished work; in-flight provider calls are not automatically replayed.';
|
|
63
63
|
export const RUNTIME_RUNNER_LOST_MESSAGE =
|
|
64
|
-
'The
|
|
64
|
+
'The runtime crashed or stopped responding before the Play run finished. Large payloads or heavy processing can contribute to this. You can retry the run. Any rows already saved remain available, and completed steps may be reused. Actions without a saved result can run again.';
|
|
65
65
|
export const RUNTIME_SANDBOX_INSPECTION_UNAVAILABLE_MESSAGE =
|
|
66
66
|
'The play stopped after Deepline could not verify the execution sandbox state. Completed row state was preserved. Re-run from the persisted rows; if this keeps happening, contact Deepline support with the run ID.';
|
|
67
67
|
// The sandbox was accepted but the runner never reported liveness, so the play
|
package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts
CHANGED
|
@@ -4353,9 +4353,15 @@ async function resolveDetachedRunnerOutcome(input: {
|
|
|
4353
4353
|
// only that already-written result before synthesizing RUNNER_LOST: this
|
|
4354
4354
|
// does not execute customer code, and an unavailable inspection preserves
|
|
4355
4355
|
// the existing conservative failure below.
|
|
4356
|
+
let inspection: {
|
|
4357
|
+
exitCode: number | null;
|
|
4358
|
+
result: PlayRunnerResult | null;
|
|
4359
|
+
diagnosis: { stage: string; detail: string | null };
|
|
4360
|
+
} | null = null;
|
|
4361
|
+
let inspectionFailed = false;
|
|
4356
4362
|
if (input.inspectDetachedRunner) {
|
|
4357
4363
|
try {
|
|
4358
|
-
|
|
4364
|
+
inspection = await input.inspectDetachedRunner(suspension);
|
|
4359
4365
|
if (inspection?.result && inspection.result.status !== 'suspended') {
|
|
4360
4366
|
console.info(
|
|
4361
4367
|
'[absurd-runtime.worker] detached_runner_liveness_salvaged',
|
|
@@ -4384,6 +4390,7 @@ async function resolveDetachedRunnerOutcome(input: {
|
|
|
4384
4390
|
);
|
|
4385
4391
|
}
|
|
4386
4392
|
} catch (error) {
|
|
4393
|
+
inspectionFailed = true;
|
|
4387
4394
|
console.warn(
|
|
4388
4395
|
'[absurd-runtime.worker] detached_runner_liveness_inspection_failed',
|
|
4389
4396
|
JSON.stringify({
|
|
@@ -4395,11 +4402,39 @@ async function resolveDetachedRunnerOutcome(input: {
|
|
|
4395
4402
|
);
|
|
4396
4403
|
}
|
|
4397
4404
|
}
|
|
4405
|
+
const safeDiagnosticLabel = (value: unknown): string =>
|
|
4406
|
+
typeof value === 'string' && /^[a-z0-9_]{1,80}$/i.test(value)
|
|
4407
|
+
? value
|
|
4408
|
+
: 'unknown';
|
|
4409
|
+
const runnerLiveness = {
|
|
4410
|
+
event: 'detached_runner_liveness_expired',
|
|
4411
|
+
runnerAttempt: suspension.runnerAttempt,
|
|
4412
|
+
livenessStatus: safeDiagnosticLabel(liveness?.status),
|
|
4413
|
+
lastHeartbeatAt: Number.isFinite(heartbeatAtMs)
|
|
4414
|
+
? new Date(heartbeatAtMs).toISOString()
|
|
4415
|
+
: null,
|
|
4416
|
+
heartbeatAgeMs,
|
|
4417
|
+
heartbeatTimeoutMs,
|
|
4418
|
+
runElapsedMs: Math.max(0, now - suspension.startedAtMs),
|
|
4419
|
+
runtimeCeilingMs: suspension.ceilingMs,
|
|
4420
|
+
reachedRuntimeCeiling: reachedCeiling,
|
|
4421
|
+
terminalResultFound: false,
|
|
4422
|
+
inspectionAttempted: Boolean(input.inspectDetachedRunner),
|
|
4423
|
+
inspectionStage: inspection
|
|
4424
|
+
? safeDiagnosticLabel(inspection.diagnosis.stage)
|
|
4425
|
+
: inspectionFailed
|
|
4426
|
+
? 'inspection_failed'
|
|
4427
|
+
: input.inspectDetachedRunner
|
|
4428
|
+
? 'inspection_empty'
|
|
4429
|
+
: 'not_configured',
|
|
4430
|
+
inspectionExitCode: inspection?.exitCode ?? null,
|
|
4431
|
+
inspectedResultStatus: inspection?.result?.status ?? null,
|
|
4432
|
+
};
|
|
4398
4433
|
return settleFirstWriteWinner({
|
|
4399
4434
|
status: 'failed',
|
|
4400
|
-
error: `RUNTIME_RUNNER_LOST: Detached runner heartbeat expired after ${heartbeatAgeMs ?? 'unknown'}ms without a terminal result.
|
|
4401
|
-
logs: [],
|
|
4402
|
-
stats: {},
|
|
4435
|
+
error: `RUNTIME_RUNNER_LOST: Detached runner heartbeat expired after ${heartbeatAgeMs ?? 'unknown'}ms without a terminal result. Deepline did not automatically retry because external actions may already have completed.`,
|
|
4436
|
+
logs: [`[runtime.failure_diagnostic] ${JSON.stringify(runnerLiveness)}`],
|
|
4437
|
+
stats: { runnerLiveness },
|
|
4403
4438
|
steps: [],
|
|
4404
4439
|
checkpoint: null,
|
|
4405
4440
|
tableNamespace: null,
|
|
@@ -13037,6 +13037,7 @@ function terminalLogLinesForOutbox(
|
|
|
13037
13037
|
// customer/recovery lines after a detached runner has exited.
|
|
13038
13038
|
return (
|
|
13039
13039
|
CTX_LOG_TIMESTAMP_PREFIX_RE.test(normalized) ||
|
|
13040
|
+
normalized.startsWith('[runtime.failure_diagnostic] ') ||
|
|
13040
13041
|
normalized.startsWith('[runtime.phase_summary] ') ||
|
|
13041
13042
|
normalized.startsWith('[runtime.logs] ') ||
|
|
13042
13043
|
normalized.startsWith('[runtime.log_transport] ')
|
package/dist/cli/index.js
CHANGED
|
@@ -3051,7 +3051,7 @@ var SDK_RELEASE = {
|
|
|
3051
3051
|
// getters keep their established compatibility behavior.
|
|
3052
3052
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3053
3053
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3054
|
-
version: "0.3.
|
|
3054
|
+
version: "0.3.206",
|
|
3055
3055
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
3056
3056
|
packageCapabilities: {
|
|
3057
3057
|
updatePreferences: 1
|
|
@@ -9174,6 +9174,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
9174
9174
|
async listPlaysPage(options) {
|
|
9175
9175
|
return this.requestPlaysPage(options);
|
|
9176
9176
|
}
|
|
9177
|
+
/** Count durable Play runs and Monitor deliveries in local calendar days. */
|
|
9178
|
+
async getPlaysActivity(options = {}) {
|
|
9179
|
+
return this.http.post("/api/v2/plays/activity", options);
|
|
9180
|
+
}
|
|
9177
9181
|
async requestPlaysPage(options, paginateInventory = true) {
|
|
9178
9182
|
const params = new URLSearchParams();
|
|
9179
9183
|
if (paginateInventory && !options?.grep?.trim())
|
|
@@ -30935,6 +30939,37 @@ Examples:
|
|
|
30935
30939
|
...options.json ? ["--json"] : []
|
|
30936
30940
|
]);
|
|
30937
30941
|
});
|
|
30942
|
+
play.command("activity").description("Count Play runs and delivered Monitor findings by day.").option("--time-zone <iana>", "Calendar timezone (default: UTC)", "UTC").option("--days <count>", "Trailing calendar days, 1\u201345", "30").option("--end-date <yyyy-mm-dd>", "Last local calendar day").option("--group-by <kind>", "kind or trigger_source", "kind").option("--json", "Emit exact counts and coverage as JSON").action(async (options) => {
|
|
30943
|
+
const days = Number(options.days);
|
|
30944
|
+
if (!Number.isSafeInteger(days) || days < 1 || days > 45) {
|
|
30945
|
+
throw new Error("--days must be an integer from 1 to 45.");
|
|
30946
|
+
}
|
|
30947
|
+
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
30948
|
+
throw new Error("--group-by must be kind or trigger_source.");
|
|
30949
|
+
}
|
|
30950
|
+
const result = await new DeeplineClient().getPlaysActivity({
|
|
30951
|
+
timeZone: options.timeZone,
|
|
30952
|
+
days,
|
|
30953
|
+
...options.endDate ? { endDate: options.endDate } : {},
|
|
30954
|
+
groupBy: options.groupBy
|
|
30955
|
+
});
|
|
30956
|
+
const lines = [`Plays activity \xB7 ${result.timeZone}`];
|
|
30957
|
+
for (const bucket of result.buckets) {
|
|
30958
|
+
const groups = bucket.groups.map((group) => `${group.group}=${group.count}`).join(" ");
|
|
30959
|
+
const coverage = bucket.complete.playRuns && bucket.complete.monitorDeliveries ? "complete" : "incomplete history";
|
|
30960
|
+
lines.push(
|
|
30961
|
+
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
30962
|
+
);
|
|
30963
|
+
}
|
|
30964
|
+
printCommandEnvelope(
|
|
30965
|
+
{ ...result },
|
|
30966
|
+
{
|
|
30967
|
+
json: options.json || !process.stdout.isTTY,
|
|
30968
|
+
text: `${lines.join("\n")}
|
|
30969
|
+
`
|
|
30970
|
+
}
|
|
30971
|
+
);
|
|
30972
|
+
});
|
|
30938
30973
|
play.command("pin <target>").description("Pin an org-owned play to the top of play listings.").option("--dry-run", "Print the planned change without saving it").option("--json", "Emit JSON output").action(async (target, options) => {
|
|
30939
30974
|
process.exitCode = await handlePlayPin(
|
|
30940
30975
|
[
|
package/dist/cli/index.mjs
CHANGED
|
@@ -3046,7 +3046,7 @@ var SDK_RELEASE = {
|
|
|
3046
3046
|
// getters keep their established compatibility behavior.
|
|
3047
3047
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
3048
3048
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
3049
|
-
version: "0.3.
|
|
3049
|
+
version: "0.3.206",
|
|
3050
3050
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
3051
3051
|
packageCapabilities: {
|
|
3052
3052
|
updatePreferences: 1
|
|
@@ -9169,6 +9169,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
9169
9169
|
async listPlaysPage(options) {
|
|
9170
9170
|
return this.requestPlaysPage(options);
|
|
9171
9171
|
}
|
|
9172
|
+
/** Count durable Play runs and Monitor deliveries in local calendar days. */
|
|
9173
|
+
async getPlaysActivity(options = {}) {
|
|
9174
|
+
return this.http.post("/api/v2/plays/activity", options);
|
|
9175
|
+
}
|
|
9172
9176
|
async requestPlaysPage(options, paginateInventory = true) {
|
|
9173
9177
|
const params = new URLSearchParams();
|
|
9174
9178
|
if (paginateInventory && !options?.grep?.trim())
|
|
@@ -31008,6 +31012,37 @@ Examples:
|
|
|
31008
31012
|
...options.json ? ["--json"] : []
|
|
31009
31013
|
]);
|
|
31010
31014
|
});
|
|
31015
|
+
play.command("activity").description("Count Play runs and delivered Monitor findings by day.").option("--time-zone <iana>", "Calendar timezone (default: UTC)", "UTC").option("--days <count>", "Trailing calendar days, 1\u201345", "30").option("--end-date <yyyy-mm-dd>", "Last local calendar day").option("--group-by <kind>", "kind or trigger_source", "kind").option("--json", "Emit exact counts and coverage as JSON").action(async (options) => {
|
|
31016
|
+
const days = Number(options.days);
|
|
31017
|
+
if (!Number.isSafeInteger(days) || days < 1 || days > 45) {
|
|
31018
|
+
throw new Error("--days must be an integer from 1 to 45.");
|
|
31019
|
+
}
|
|
31020
|
+
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
31021
|
+
throw new Error("--group-by must be kind or trigger_source.");
|
|
31022
|
+
}
|
|
31023
|
+
const result = await new DeeplineClient().getPlaysActivity({
|
|
31024
|
+
timeZone: options.timeZone,
|
|
31025
|
+
days,
|
|
31026
|
+
...options.endDate ? { endDate: options.endDate } : {},
|
|
31027
|
+
groupBy: options.groupBy
|
|
31028
|
+
});
|
|
31029
|
+
const lines = [`Plays activity \xB7 ${result.timeZone}`];
|
|
31030
|
+
for (const bucket of result.buckets) {
|
|
31031
|
+
const groups = bucket.groups.map((group) => `${group.group}=${group.count}`).join(" ");
|
|
31032
|
+
const coverage = bucket.complete.playRuns && bucket.complete.monitorDeliveries ? "complete" : "incomplete history";
|
|
31033
|
+
lines.push(
|
|
31034
|
+
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
31035
|
+
);
|
|
31036
|
+
}
|
|
31037
|
+
printCommandEnvelope(
|
|
31038
|
+
{ ...result },
|
|
31039
|
+
{
|
|
31040
|
+
json: options.json || !process.stdout.isTTY,
|
|
31041
|
+
text: `${lines.join("\n")}
|
|
31042
|
+
`
|
|
31043
|
+
}
|
|
31044
|
+
);
|
|
31045
|
+
});
|
|
31011
31046
|
play.command("pin <target>").description("Pin an org-owned play to the top of play listings.").option("--dry-run", "Print the planned change without saving it").option("--json", "Emit JSON output").action(async (target, options) => {
|
|
31012
31047
|
process.exitCode = await handlePlayPin(
|
|
31013
31048
|
[
|
package/dist/index.d.mts
CHANGED
|
@@ -2044,6 +2044,36 @@ interface StopAllPlayRunsDryRunResult {
|
|
|
2044
2044
|
*/
|
|
2045
2045
|
type StopAllPlayRunsResult = StopAllPlayRunsStopResult | StopAllPlayRunsDryRunResult;
|
|
2046
2046
|
declare function isStopAllPlayRunsDryRunResult(result: StopAllPlayRunsResult): result is StopAllPlayRunsDryRunResult;
|
|
2047
|
+
/** Bounded daily counts from durable Play runs and Monitor delivery receipts. */
|
|
2048
|
+
interface PlaysActivityResponse {
|
|
2049
|
+
timeZone: string;
|
|
2050
|
+
groupBy: 'kind' | 'trigger_source';
|
|
2051
|
+
endDate: string;
|
|
2052
|
+
/** Current-day query cutoff, when the window ends today. */
|
|
2053
|
+
asOfAt?: number;
|
|
2054
|
+
buckets: Array<{
|
|
2055
|
+
key: string;
|
|
2056
|
+
label: string;
|
|
2057
|
+
startAt: number;
|
|
2058
|
+
endAt: number;
|
|
2059
|
+
groups: Array<{
|
|
2060
|
+
group: 'play_run' | 'monitor_delivery' | 'manual' | 'api' | 'cron' | 'webhook' | 'sql_listener' | 'async_child';
|
|
2061
|
+
count: number;
|
|
2062
|
+
}>;
|
|
2063
|
+
failedPlayRuns: number;
|
|
2064
|
+
complete: {
|
|
2065
|
+
playRuns: boolean;
|
|
2066
|
+
monitorDeliveries: boolean;
|
|
2067
|
+
};
|
|
2068
|
+
}>;
|
|
2069
|
+
coverage: {
|
|
2070
|
+
playRunsEarliestCompleteAt: number | null;
|
|
2071
|
+
monitorDeliveriesEarliestCompleteAt: number | null;
|
|
2072
|
+
monitorDeliveriesCompleteThroughAt: number | null;
|
|
2073
|
+
projectionPending: boolean;
|
|
2074
|
+
earliestPendingAt: number | null;
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2047
2077
|
/**
|
|
2048
2078
|
* Summary of a single play run, returned by {@link DeeplineClient.listPlayRuns}.
|
|
2049
2079
|
*/
|
|
@@ -5383,6 +5413,13 @@ declare class DeeplineClient {
|
|
|
5383
5413
|
limit?: number;
|
|
5384
5414
|
cursor?: string | null;
|
|
5385
5415
|
}): Promise<PlaysListPage>;
|
|
5416
|
+
/** Count durable Play runs and Monitor deliveries in local calendar days. */
|
|
5417
|
+
getPlaysActivity(options?: {
|
|
5418
|
+
timeZone?: string;
|
|
5419
|
+
days?: number;
|
|
5420
|
+
endDate?: string;
|
|
5421
|
+
groupBy?: 'kind' | 'trigger_source';
|
|
5422
|
+
}): Promise<PlaysActivityResponse>;
|
|
5386
5423
|
private requestPlaysPage;
|
|
5387
5424
|
/** Set whether an org-owned Play sorts before unpinned Plays. */
|
|
5388
5425
|
setPlayPinned(playName: string, pinned: boolean): Promise<{
|
|
@@ -6928,4 +6965,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
6928
6965
|
*/
|
|
6929
6966
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
6930
6967
|
|
|
6931
|
-
export { type AsyncPlayRunRef, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingRecentUsageEntry, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpReceipt, type BillingTopUpResult, type BillingUsageEvent, type BillingUsageOptions, type BillingUsageResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CreateNotificationGroupInput, type CreateNotificationGroupResult, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type ExecutionByKeyResult, type ExecutionRecovery, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LegacyMonitorStatusFilter, type LiveEventEnvelope, MONITOR_JOB_PHASES, MONITOR_JOB_RECONCILIATION_STATES, MONITOR_JOB_STATES, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobPhase, type MonitorJobReconciliationState, type MonitorJobResult, type MonitorJobState, type MonitorJobWaitOptions, type MonitorJobsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorState, type MonitorStateFilter, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type RerunOptions, type RerunPlayRunResult, type ResolvedConfig, type RunLifecycleStatus, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopAllCandidate, type StopAllPlayRunsDryRunResult, type StopAllPlayRunsResult, type StopAllPlayRunsStopResult, type StopAllRunsOptions, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, isStopAllPlayRunsDryRunResult, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
6968
|
+
export { type AsyncPlayRunRef, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingRecentUsageEntry, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpReceipt, type BillingTopUpResult, type BillingUsageEvent, type BillingUsageOptions, type BillingUsageResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CreateNotificationGroupInput, type CreateNotificationGroupResult, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type ExecutionByKeyResult, type ExecutionRecovery, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LegacyMonitorStatusFilter, type LiveEventEnvelope, MONITOR_JOB_PHASES, MONITOR_JOB_RECONCILIATION_STATES, MONITOR_JOB_STATES, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobPhase, type MonitorJobReconciliationState, type MonitorJobResult, type MonitorJobState, type MonitorJobWaitOptions, type MonitorJobsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorState, type MonitorStateFilter, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysActivityResponse, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type RerunOptions, type RerunPlayRunResult, type ResolvedConfig, type RunLifecycleStatus, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopAllCandidate, type StopAllPlayRunsDryRunResult, type StopAllPlayRunsResult, type StopAllPlayRunsStopResult, type StopAllRunsOptions, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, isStopAllPlayRunsDryRunResult, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.d.ts
CHANGED
|
@@ -2044,6 +2044,36 @@ interface StopAllPlayRunsDryRunResult {
|
|
|
2044
2044
|
*/
|
|
2045
2045
|
type StopAllPlayRunsResult = StopAllPlayRunsStopResult | StopAllPlayRunsDryRunResult;
|
|
2046
2046
|
declare function isStopAllPlayRunsDryRunResult(result: StopAllPlayRunsResult): result is StopAllPlayRunsDryRunResult;
|
|
2047
|
+
/** Bounded daily counts from durable Play runs and Monitor delivery receipts. */
|
|
2048
|
+
interface PlaysActivityResponse {
|
|
2049
|
+
timeZone: string;
|
|
2050
|
+
groupBy: 'kind' | 'trigger_source';
|
|
2051
|
+
endDate: string;
|
|
2052
|
+
/** Current-day query cutoff, when the window ends today. */
|
|
2053
|
+
asOfAt?: number;
|
|
2054
|
+
buckets: Array<{
|
|
2055
|
+
key: string;
|
|
2056
|
+
label: string;
|
|
2057
|
+
startAt: number;
|
|
2058
|
+
endAt: number;
|
|
2059
|
+
groups: Array<{
|
|
2060
|
+
group: 'play_run' | 'monitor_delivery' | 'manual' | 'api' | 'cron' | 'webhook' | 'sql_listener' | 'async_child';
|
|
2061
|
+
count: number;
|
|
2062
|
+
}>;
|
|
2063
|
+
failedPlayRuns: number;
|
|
2064
|
+
complete: {
|
|
2065
|
+
playRuns: boolean;
|
|
2066
|
+
monitorDeliveries: boolean;
|
|
2067
|
+
};
|
|
2068
|
+
}>;
|
|
2069
|
+
coverage: {
|
|
2070
|
+
playRunsEarliestCompleteAt: number | null;
|
|
2071
|
+
monitorDeliveriesEarliestCompleteAt: number | null;
|
|
2072
|
+
monitorDeliveriesCompleteThroughAt: number | null;
|
|
2073
|
+
projectionPending: boolean;
|
|
2074
|
+
earliestPendingAt: number | null;
|
|
2075
|
+
};
|
|
2076
|
+
}
|
|
2047
2077
|
/**
|
|
2048
2078
|
* Summary of a single play run, returned by {@link DeeplineClient.listPlayRuns}.
|
|
2049
2079
|
*/
|
|
@@ -5383,6 +5413,13 @@ declare class DeeplineClient {
|
|
|
5383
5413
|
limit?: number;
|
|
5384
5414
|
cursor?: string | null;
|
|
5385
5415
|
}): Promise<PlaysListPage>;
|
|
5416
|
+
/** Count durable Play runs and Monitor deliveries in local calendar days. */
|
|
5417
|
+
getPlaysActivity(options?: {
|
|
5418
|
+
timeZone?: string;
|
|
5419
|
+
days?: number;
|
|
5420
|
+
endDate?: string;
|
|
5421
|
+
groupBy?: 'kind' | 'trigger_source';
|
|
5422
|
+
}): Promise<PlaysActivityResponse>;
|
|
5386
5423
|
private requestPlaysPage;
|
|
5387
5424
|
/** Set whether an org-owned Play sorts before unpinned Plays. */
|
|
5388
5425
|
setPlayPinned(playName: string, pinned: boolean): Promise<{
|
|
@@ -6928,4 +6965,4 @@ declare function writeCsvOutputFile(rows: Array<Record<string, unknown>>, stem:
|
|
|
6928
6965
|
*/
|
|
6929
6966
|
declare function extractSummaryFields(payload: unknown): Record<string, Scalar>;
|
|
6930
6967
|
|
|
6931
|
-
export { type AsyncPlayRunRef, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingRecentUsageEntry, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpReceipt, type BillingTopUpResult, type BillingUsageEvent, type BillingUsageOptions, type BillingUsageResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CreateNotificationGroupInput, type CreateNotificationGroupResult, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type ExecutionByKeyResult, type ExecutionRecovery, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LegacyMonitorStatusFilter, type LiveEventEnvelope, MONITOR_JOB_PHASES, MONITOR_JOB_RECONCILIATION_STATES, MONITOR_JOB_STATES, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobPhase, type MonitorJobReconciliationState, type MonitorJobResult, type MonitorJobState, type MonitorJobWaitOptions, type MonitorJobsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorState, type MonitorStateFilter, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type RerunOptions, type RerunPlayRunResult, type ResolvedConfig, type RunLifecycleStatus, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopAllCandidate, type StopAllPlayRunsDryRunResult, type StopAllPlayRunsResult, type StopAllPlayRunsStopResult, type StopAllRunsOptions, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, isStopAllPlayRunsDryRunResult, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
|
6968
|
+
export { type AsyncPlayRunRef, AuthError, type BillingCreditPool, type BillingInvoiceEntry, type BillingInvoicesResult, type BillingNamespace, type BillingPaymentMethodSummary, type BillingRecentUsageEntry, type BillingSubscriptionCancelResult, type BillingSubscriptionStatus, type BillingTopUpReceipt, type BillingTopUpResult, type BillingUsageEvent, type BillingUsageOptions, type BillingUsageResult, type ClearPlayHistoryRequest, type ClearPlayHistoryResult, type ColumnMap, type ColumnResolver, type ConditionalStepResolver, ConfigError, type CreateNotificationGroupInput, type CreateNotificationGroupResult, type CsvInput, type CsvOptions, type CustomerDbQueryResult, DEEPLINE_TOOL_CATEGORIES, type DatasetBuilder, type DatasetColumnDefinition, type DatasetColumnRunInput, type DbNamespace, Deepline, DeeplineClient, type DeeplineClientOptions, DeeplineContext, DeeplineError, type DeeplineExecutionsNamespace, type DeeplineNamedPlay, type DeeplinePlayRuntimeContext, type DeeplinePlaysNamespace, type DeeplineToolCategory, type DeeplineToolExecuteResult, type DeeplineToolsNamespace, type DefinePlayConfig, type DefinedPlay, type ExecutionByKeyResult, type ExecutionRecovery, type FetchOptions, type FileInput, type IngestionStorageRepairResult, type LegacyMonitorStatusFilter, type LiveEventEnvelope, MONITOR_JOB_PHASES, MONITOR_JOB_RECONCILIATION_STATES, MONITOR_JOB_STATES, type MonitorBatchNamespace, type MonitorCheckResult, type MonitorDefinition, type MonitorDeleteResult, type MonitorDependents, type MonitorDeployResult, type MonitorDetail, type MonitorFleetDeactivateOptions, MonitorFleetDefinition, type MonitorFleetGetOptions, type MonitorFleetReactivateOptions, type MonitorFleetResult, type MonitorFleetStatus, type MonitorFleetSyncOptions, type MonitorFleetWaitOptions, type MonitorFleetsNamespace, type MonitorJobDeployOptions, type MonitorJobLogsOptions, type MonitorJobPhase, type MonitorJobReconciliationState, type MonitorJobResult, type MonitorJobState, type MonitorJobWaitOptions, type MonitorJobsNamespace, type MonitorListEntry, type MonitorPayload, type MonitorReactivateResult, type MonitorSpec, type MonitorState, type MonitorStateFilter, type MonitorUpdateChangeSummary, type MonitorUpdateResult, type MonitorsAccessStatus, type MonitorsAvailableOptions, type MonitorsAvailableResult, type MonitorsListOptions, type MonitorsListResult, type MonitorsNamespace, PLAY_BOOTSTRAP_COMPANY_FIELDS, PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_CONTACT_FIELDS, PLAY_BOOTSTRAP_FINDER_KINDS, PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER, PLAY_BOOTSTRAP_PEOPLE_PROVIDER_CATEGORY, PLAY_BOOTSTRAP_PROVIDER_CATEGORY_BY_FINDER, PLAY_BOOTSTRAP_SOURCE_KINDS, PLAY_BOOTSTRAP_STAGE_KINDS, PLAY_BOOTSTRAP_TEMPLATES, PROD_URL, type PlayActivityObservation, type PlayActivityState, type PlayActivityTarget, type PlayAsyncCallOptions, type PlayBindings, type PlayBootstrapEntityKind, type PlayBootstrapFinderKind, type PlayCallExecution, type PlayCallOptions, type PlayCostEstimate, type PlayFetchResponse, type PlayInputContract, type PlayJob, type PlayListItem, type PlayLiveEvent, type PlayReferenceLike, type PlayRevisionSummary, type PlayRunActionPackage, type PlayRunActivityProjection, type PlayRunDatasetActions, type PlayRunId, type PlayRunPackage, type PlayRunResult, type PlayRunStart, type PlaySheetRow, type PlaySheetRowsResult, type PlayStatus, type PlayStepProgramStep, type PlaysActivityResponse, type PlaysListOptions, type PlaysListPage, type PrebuiltPlayRef, type PublishPlayVersionRequest, type PublishPlayVersionResult, RateLimitError, type RerunOptions, type RerunPlayRunResult, type ResolvedConfig, type RunLifecycleStatus, RunObserveTransportUnavailableError, type RunsListOptions, type RunsListPage, type RunsLogsOptions, type RunsLogsResult, type RunsNamespace, type RunsTailOptions, type RuntimeStepOptions, SDK_API_CONTRACT, SDK_VERSION, type SqlListenerDeclaration, type SqlListenerEvent, type SqlListenerOperation, type SqlQuery, type StartPlayRunRequest, type StepOptions, type StepProgram, type StepProgramResolver, type StepResolver, type StopAllCandidate, type StopAllPlayRunsDryRunResult, type StopAllPlayRunsResult, type StopAllPlayRunsStopResult, type StopAllRunsOptions, type StopPlayRunResult, type ToolDefinition, ToolExecuteResult, type ToolExecution, ToolExecutionError, ToolExecutionErrorOptions, type ToolExecutionRequest, type ToolMetadata, ToolRateLimitError, ToolResultBilling, type ToolSearchOptions, type ToolSearchResult, type WorkspaceCreateResult, type WorkspacesNamespace, defineInput, defineMonitor, definePlay, defineWorkflow, extractSummaryFields, formatPlayBootstrapFinderKinds, formatPlayBootstrapFinderKindsForSentence, formatPlayBootstrapTemplates, getDefinedPlayMetadata, isPlayBootstrapFinderKind, isPlayBootstrapTemplate, isStopAllPlayRunsDryRunResult, resolveConfig, runIf, steps, tryConvertToList, writeCsvOutputFile, writeJsonOutputFile };
|
package/dist/index.js
CHANGED
|
@@ -864,7 +864,7 @@ var SDK_RELEASE = {
|
|
|
864
864
|
// getters keep their established compatibility behavior.
|
|
865
865
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
866
866
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
867
|
-
version: "0.3.
|
|
867
|
+
version: "0.3.206",
|
|
868
868
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
869
869
|
packageCapabilities: {
|
|
870
870
|
updatePreferences: 1
|
|
@@ -6856,6 +6856,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6856
6856
|
async listPlaysPage(options) {
|
|
6857
6857
|
return this.requestPlaysPage(options);
|
|
6858
6858
|
}
|
|
6859
|
+
/** Count durable Play runs and Monitor deliveries in local calendar days. */
|
|
6860
|
+
async getPlaysActivity(options = {}) {
|
|
6861
|
+
return this.http.post("/api/v2/plays/activity", options);
|
|
6862
|
+
}
|
|
6859
6863
|
async requestPlaysPage(options, paginateInventory = true) {
|
|
6860
6864
|
const params = new URLSearchParams();
|
|
6861
6865
|
if (paginateInventory && !options?.grep?.trim())
|
package/dist/index.mjs
CHANGED
|
@@ -768,7 +768,7 @@ var SDK_RELEASE = {
|
|
|
768
768
|
// getters keep their established compatibility behavior.
|
|
769
769
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
770
770
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
771
|
-
version: "0.3.
|
|
771
|
+
version: "0.3.206",
|
|
772
772
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
773
773
|
packageCapabilities: {
|
|
774
774
|
updatePreferences: 1
|
|
@@ -6760,6 +6760,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6760
6760
|
async listPlaysPage(options) {
|
|
6761
6761
|
return this.requestPlaysPage(options);
|
|
6762
6762
|
}
|
|
6763
|
+
/** Count durable Play runs and Monitor deliveries in local calendar days. */
|
|
6764
|
+
async getPlaysActivity(options = {}) {
|
|
6765
|
+
return this.http.post("/api/v2/plays/activity", options);
|
|
6766
|
+
}
|
|
6763
6767
|
async requestPlaysPage(options, paginateInventory = true) {
|
|
6764
6768
|
const params = new URLSearchParams();
|
|
6765
6769
|
if (paginateInventory && !options?.grep?.trim())
|
package/dist/release.d.mts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.206";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ type SdkRelease = {
|
|
|
149
149
|
supportPolicy: SdkSupportPolicy;
|
|
150
150
|
};
|
|
151
151
|
declare const SDK_RELEASE: {
|
|
152
|
-
readonly version: "0.3.
|
|
152
|
+
readonly version: "0.3.206";
|
|
153
153
|
readonly updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.";
|
|
154
154
|
readonly packageCapabilities: {
|
|
155
155
|
readonly updatePreferences: 1;
|
package/dist/release.js
CHANGED
|
@@ -74,7 +74,7 @@ var SDK_RELEASE = {
|
|
|
74
74
|
// getters keep their established compatibility behavior.
|
|
75
75
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
76
76
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
77
|
-
version: "0.3.
|
|
77
|
+
version: "0.3.206",
|
|
78
78
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
79
79
|
packageCapabilities: {
|
|
80
80
|
updatePreferences: 1
|
package/dist/release.mjs
CHANGED
|
@@ -48,7 +48,7 @@ var SDK_RELEASE = {
|
|
|
48
48
|
// getters keep their established compatibility behavior.
|
|
49
49
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
50
50
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
51
|
-
version: "0.3.
|
|
51
|
+
version: "0.3.206",
|
|
52
52
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
53
53
|
packageCapabilities: {
|
|
54
54
|
updatePreferences: 1
|