deepline 0.3.101 → 0.3.103
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 +45 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/index.js +57 -12
- package/dist/cli/index.mjs +57 -12
- package/dist/index.d.mts +32 -2
- package/dist/index.d.ts +32 -2
- package/dist/index.js +17 -1
- package/dist/index.mjs +17 -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
|
@@ -766,8 +766,7 @@ export type PlaySecretCheck = {
|
|
|
766
766
|
};
|
|
767
767
|
|
|
768
768
|
/**
|
|
769
|
-
* `client.runs`
|
|
770
|
-
* polling, streaming, stopping, reading logs, and exporting durable dataset rows.
|
|
769
|
+
* Use `client.runs` (`/api/v2/runs`) to poll, stream, stop, read logs, and export durable dataset rows.
|
|
771
770
|
*
|
|
772
771
|
* @sdkReference client 020 client.runs
|
|
773
772
|
*/
|
|
@@ -5092,6 +5091,50 @@ export class DeeplineClient {
|
|
|
5092
5091
|
return this.http.get<PlayDetail>(`/api/v2/plays/${encodedName}${query}`);
|
|
5093
5092
|
}
|
|
5094
5093
|
|
|
5094
|
+
/** Read one trigger inventory page without loading run histories. */
|
|
5095
|
+
async listPlayTriggerInventory(options?: { cursor?: string }): Promise<{
|
|
5096
|
+
page: Array<{
|
|
5097
|
+
bindingId: string;
|
|
5098
|
+
name: string;
|
|
5099
|
+
type: string;
|
|
5100
|
+
status: string;
|
|
5101
|
+
cron: string | null;
|
|
5102
|
+
timezone: string | null;
|
|
5103
|
+
nextScheduledAt: number | null;
|
|
5104
|
+
}>;
|
|
5105
|
+
continueCursor: string;
|
|
5106
|
+
isDone: boolean;
|
|
5107
|
+
}> {
|
|
5108
|
+
const params = new URLSearchParams({ view: 'inventory' });
|
|
5109
|
+
if (options?.cursor) params.set('cursor', options.cursor);
|
|
5110
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
5111
|
+
}
|
|
5112
|
+
|
|
5113
|
+
/** Read one trigger's recent runs, with an explicit partial-history flag. */
|
|
5114
|
+
async getPlayTriggerHistory(
|
|
5115
|
+
bindingId: string,
|
|
5116
|
+
options?: { limit?: number },
|
|
5117
|
+
): Promise<{
|
|
5118
|
+
recentRuns: Array<{
|
|
5119
|
+
workflowId: string;
|
|
5120
|
+
runId: string | null;
|
|
5121
|
+
status: string;
|
|
5122
|
+
createdAt: number;
|
|
5123
|
+
startedAt: number | null;
|
|
5124
|
+
finishedAt: number | null;
|
|
5125
|
+
}>;
|
|
5126
|
+
truncated: boolean;
|
|
5127
|
+
cronInput: Record<string, unknown> | null;
|
|
5128
|
+
}> {
|
|
5129
|
+
const params = new URLSearchParams({
|
|
5130
|
+
view: 'history',
|
|
5131
|
+
binding_id: bindingId,
|
|
5132
|
+
});
|
|
5133
|
+
if (options?.limit !== undefined)
|
|
5134
|
+
params.set('history_limit', String(options.limit));
|
|
5135
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
5136
|
+
}
|
|
5137
|
+
|
|
5095
5138
|
/**
|
|
5096
5139
|
* Get a normalized play description suitable for agents and CLIs.
|
|
5097
5140
|
*
|
|
@@ -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.103',
|
|
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: {
|
package/dist/cli/index.js
CHANGED
|
@@ -1298,7 +1298,7 @@ var SDK_RELEASE = {
|
|
|
1298
1298
|
// getters keep their established compatibility behavior.
|
|
1299
1299
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
1300
1300
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
1301
|
-
version: "0.3.
|
|
1301
|
+
version: "0.3.103",
|
|
1302
1302
|
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.",
|
|
1303
1303
|
packageCapabilities: {
|
|
1304
1304
|
updatePreferences: 1
|
|
@@ -7225,6 +7225,22 @@ var DeeplineClient = class {
|
|
|
7225
7225
|
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : options?.guidance ? "?include=guidance" : "";
|
|
7226
7226
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
7227
7227
|
}
|
|
7228
|
+
/** Read one trigger inventory page without loading run histories. */
|
|
7229
|
+
async listPlayTriggerInventory(options) {
|
|
7230
|
+
const params = new URLSearchParams({ view: "inventory" });
|
|
7231
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
7232
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
7233
|
+
}
|
|
7234
|
+
/** Read one trigger's recent runs, with an explicit partial-history flag. */
|
|
7235
|
+
async getPlayTriggerHistory(bindingId, options) {
|
|
7236
|
+
const params = new URLSearchParams({
|
|
7237
|
+
view: "history",
|
|
7238
|
+
binding_id: bindingId
|
|
7239
|
+
});
|
|
7240
|
+
if (options?.limit !== void 0)
|
|
7241
|
+
params.set("history_limit", String(options.limit));
|
|
7242
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
7243
|
+
}
|
|
7228
7244
|
/**
|
|
7229
7245
|
* Get a normalized play description suitable for agents and CLIs.
|
|
7230
7246
|
*
|
|
@@ -25557,6 +25573,29 @@ Examples:
|
|
|
25557
25573
|
...options.revision ? ["--revision", options.revision] : []
|
|
25558
25574
|
]);
|
|
25559
25575
|
});
|
|
25576
|
+
play.command("triggers").description(
|
|
25577
|
+
"List a bounded page of triggers, or read one trigger\u2019s recent history."
|
|
25578
|
+
).option("--cursor <cursor>", "Continue the trigger inventory").option("--binding <id>", "Read history for this trigger binding").option("--history-limit <count>", "Recent history cap, 1\u201330", "10").option("--json", "Emit JSON output").action(async (options) => {
|
|
25579
|
+
if (options.cursor && options.binding)
|
|
25580
|
+
throw new Error("--cursor and --binding cannot be combined.");
|
|
25581
|
+
const limit = Number(options.historyLimit);
|
|
25582
|
+
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
25583
|
+
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
25584
|
+
const client2 = new DeeplineClient();
|
|
25585
|
+
if (options.binding) {
|
|
25586
|
+
printCompactJson(
|
|
25587
|
+
await client2.getPlayTriggerHistory(options.binding, { limit })
|
|
25588
|
+
);
|
|
25589
|
+
return;
|
|
25590
|
+
}
|
|
25591
|
+
const result = await client2.listPlayTriggerInventory({
|
|
25592
|
+
cursor: options.cursor
|
|
25593
|
+
});
|
|
25594
|
+
printCompactJson({
|
|
25595
|
+
...result,
|
|
25596
|
+
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
25597
|
+
});
|
|
25598
|
+
});
|
|
25560
25599
|
play.command("list").description("List saved and prebuilt plays.").addHelpText(
|
|
25561
25600
|
"after",
|
|
25562
25601
|
`
|
|
@@ -42602,24 +42641,27 @@ var CapabilityDescription = class _CapabilityDescription {
|
|
|
42602
42641
|
const canonicalUsd = numberValue(
|
|
42603
42642
|
pricing.usdPerUnit ?? pricing.usd_per_unit
|
|
42604
42643
|
);
|
|
42644
|
+
const billingSource = stringValue4(
|
|
42645
|
+
this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
|
|
42646
|
+
);
|
|
42647
|
+
const billingSourceLabel = stringValue4(
|
|
42648
|
+
this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
|
|
42649
|
+
);
|
|
42650
|
+
const isFree = billingSource === "free";
|
|
42605
42651
|
return {
|
|
42606
42652
|
pricingModel: pricingModel || null,
|
|
42607
42653
|
unit: unit || null,
|
|
42608
|
-
displayText: stringValue4(pricing.displayText ?? pricing.display_text),
|
|
42609
|
-
summary: stringValue4(pricing.summary),
|
|
42654
|
+
displayText: isFree ? "Free" : stringValue4(pricing.displayText ?? pricing.display_text),
|
|
42655
|
+
summary: isFree ? null : stringValue4(pricing.summary),
|
|
42610
42656
|
billingMode: stringValue4(
|
|
42611
42657
|
legacyCost.billingMode ?? legacyCost.billing_mode
|
|
42612
42658
|
),
|
|
42613
|
-
billingSource
|
|
42614
|
-
|
|
42615
|
-
|
|
42616
|
-
billingSourceLabel: stringValue4(
|
|
42617
|
-
this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
|
|
42618
|
-
),
|
|
42619
|
-
deeplineCreditsPerPricingUnit: canonicalCredits ?? numberValue(
|
|
42659
|
+
billingSource,
|
|
42660
|
+
billingSourceLabel,
|
|
42661
|
+
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits ?? numberValue(
|
|
42620
42662
|
this.#catalogEntry.deeplineCreditsPerPricingUnit ?? this.#catalogEntry.deepline_credits_per_pricing_unit
|
|
42621
42663
|
),
|
|
42622
|
-
deeplineUsdPerPricingUnit: canonicalUsd ?? numberValue(
|
|
42664
|
+
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd ?? numberValue(
|
|
42623
42665
|
this.#catalogEntry.deeplineUsdPerPricingUnit ?? this.#catalogEntry.deepline_usd_per_pricing_unit
|
|
42624
42666
|
)
|
|
42625
42667
|
};
|
|
@@ -43832,7 +43874,7 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
|
|
|
43832
43874
|
const contract = toolContractJsonForDescribe(tool, requestedToolId);
|
|
43833
43875
|
const cost = isRecord12(contract.cost) ? contract.cost : {};
|
|
43834
43876
|
const pricingModel = stringField2(cost, "pricingModel") || "unknown";
|
|
43835
|
-
const billing = stringField2(cost, "
|
|
43877
|
+
const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
|
|
43836
43878
|
const explicitUnit = stringField2(cost, "unit");
|
|
43837
43879
|
const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
|
|
43838
43880
|
const credits = numberField2(cost, "deeplineCreditsPerPricingUnit");
|
|
@@ -44105,6 +44147,9 @@ function listedToolDescription(tool) {
|
|
|
44105
44147
|
}
|
|
44106
44148
|
function formatListedToolCost(tool) {
|
|
44107
44149
|
const record3 = tool;
|
|
44150
|
+
if (stringField2(record3, "billingSource", "billing_source") === "free") {
|
|
44151
|
+
return "Cost: Free";
|
|
44152
|
+
}
|
|
44108
44153
|
const pricing = recordField2(record3, "pricing");
|
|
44109
44154
|
const displayText = stringField2(pricing, "displayText", "display_text");
|
|
44110
44155
|
return displayText ? `Cost: ${displayText}` : "";
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1271,7 +1271,7 @@ var SDK_RELEASE = {
|
|
|
1271
1271
|
// getters keep their established compatibility behavior.
|
|
1272
1272
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
1273
1273
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
1274
|
-
version: "0.3.
|
|
1274
|
+
version: "0.3.103",
|
|
1275
1275
|
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.",
|
|
1276
1276
|
packageCapabilities: {
|
|
1277
1277
|
updatePreferences: 1
|
|
@@ -7198,6 +7198,22 @@ var DeeplineClient = class {
|
|
|
7198
7198
|
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : options?.guidance ? "?include=guidance" : "";
|
|
7199
7199
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
7200
7200
|
}
|
|
7201
|
+
/** Read one trigger inventory page without loading run histories. */
|
|
7202
|
+
async listPlayTriggerInventory(options) {
|
|
7203
|
+
const params = new URLSearchParams({ view: "inventory" });
|
|
7204
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
7205
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
7206
|
+
}
|
|
7207
|
+
/** Read one trigger's recent runs, with an explicit partial-history flag. */
|
|
7208
|
+
async getPlayTriggerHistory(bindingId, options) {
|
|
7209
|
+
const params = new URLSearchParams({
|
|
7210
|
+
view: "history",
|
|
7211
|
+
binding_id: bindingId
|
|
7212
|
+
});
|
|
7213
|
+
if (options?.limit !== void 0)
|
|
7214
|
+
params.set("history_limit", String(options.limit));
|
|
7215
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
7216
|
+
}
|
|
7201
7217
|
/**
|
|
7202
7218
|
* Get a normalized play description suitable for agents and CLIs.
|
|
7203
7219
|
*
|
|
@@ -25607,6 +25623,29 @@ Examples:
|
|
|
25607
25623
|
...options.revision ? ["--revision", options.revision] : []
|
|
25608
25624
|
]);
|
|
25609
25625
|
});
|
|
25626
|
+
play.command("triggers").description(
|
|
25627
|
+
"List a bounded page of triggers, or read one trigger\u2019s recent history."
|
|
25628
|
+
).option("--cursor <cursor>", "Continue the trigger inventory").option("--binding <id>", "Read history for this trigger binding").option("--history-limit <count>", "Recent history cap, 1\u201330", "10").option("--json", "Emit JSON output").action(async (options) => {
|
|
25629
|
+
if (options.cursor && options.binding)
|
|
25630
|
+
throw new Error("--cursor and --binding cannot be combined.");
|
|
25631
|
+
const limit = Number(options.historyLimit);
|
|
25632
|
+
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
25633
|
+
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
25634
|
+
const client2 = new DeeplineClient();
|
|
25635
|
+
if (options.binding) {
|
|
25636
|
+
printCompactJson(
|
|
25637
|
+
await client2.getPlayTriggerHistory(options.binding, { limit })
|
|
25638
|
+
);
|
|
25639
|
+
return;
|
|
25640
|
+
}
|
|
25641
|
+
const result = await client2.listPlayTriggerInventory({
|
|
25642
|
+
cursor: options.cursor
|
|
25643
|
+
});
|
|
25644
|
+
printCompactJson({
|
|
25645
|
+
...result,
|
|
25646
|
+
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
25647
|
+
});
|
|
25648
|
+
});
|
|
25610
25649
|
play.command("list").description("List saved and prebuilt plays.").addHelpText(
|
|
25611
25650
|
"after",
|
|
25612
25651
|
`
|
|
@@ -42723,24 +42762,27 @@ var CapabilityDescription = class _CapabilityDescription {
|
|
|
42723
42762
|
const canonicalUsd = numberValue(
|
|
42724
42763
|
pricing.usdPerUnit ?? pricing.usd_per_unit
|
|
42725
42764
|
);
|
|
42765
|
+
const billingSource = stringValue4(
|
|
42766
|
+
this.#catalogEntry.billingSource ?? this.#catalogEntry.billing_source
|
|
42767
|
+
);
|
|
42768
|
+
const billingSourceLabel = stringValue4(
|
|
42769
|
+
this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
|
|
42770
|
+
);
|
|
42771
|
+
const isFree = billingSource === "free";
|
|
42726
42772
|
return {
|
|
42727
42773
|
pricingModel: pricingModel || null,
|
|
42728
42774
|
unit: unit || null,
|
|
42729
|
-
displayText: stringValue4(pricing.displayText ?? pricing.display_text),
|
|
42730
|
-
summary: stringValue4(pricing.summary),
|
|
42775
|
+
displayText: isFree ? "Free" : stringValue4(pricing.displayText ?? pricing.display_text),
|
|
42776
|
+
summary: isFree ? null : stringValue4(pricing.summary),
|
|
42731
42777
|
billingMode: stringValue4(
|
|
42732
42778
|
legacyCost.billingMode ?? legacyCost.billing_mode
|
|
42733
42779
|
),
|
|
42734
|
-
billingSource
|
|
42735
|
-
|
|
42736
|
-
|
|
42737
|
-
billingSourceLabel: stringValue4(
|
|
42738
|
-
this.#catalogEntry.billingSourceLabel ?? this.#catalogEntry.billing_source_label
|
|
42739
|
-
),
|
|
42740
|
-
deeplineCreditsPerPricingUnit: canonicalCredits ?? numberValue(
|
|
42780
|
+
billingSource,
|
|
42781
|
+
billingSourceLabel,
|
|
42782
|
+
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits ?? numberValue(
|
|
42741
42783
|
this.#catalogEntry.deeplineCreditsPerPricingUnit ?? this.#catalogEntry.deepline_credits_per_pricing_unit
|
|
42742
42784
|
),
|
|
42743
|
-
deeplineUsdPerPricingUnit: canonicalUsd ?? numberValue(
|
|
42785
|
+
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd ?? numberValue(
|
|
42744
42786
|
this.#catalogEntry.deeplineUsdPerPricingUnit ?? this.#catalogEntry.deepline_usd_per_pricing_unit
|
|
42745
42787
|
)
|
|
42746
42788
|
};
|
|
@@ -43953,7 +43995,7 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
|
|
|
43953
43995
|
const contract = toolContractJsonForDescribe(tool, requestedToolId);
|
|
43954
43996
|
const cost = isRecord12(contract.cost) ? contract.cost : {};
|
|
43955
43997
|
const pricingModel = stringField2(cost, "pricingModel") || "unknown";
|
|
43956
|
-
const billing = stringField2(cost, "
|
|
43998
|
+
const billing = stringField2(cost, "billingSourceLabel") || stringField2(cost, "billingSource") || stringField2(cost, "billingMode") || "unknown";
|
|
43957
43999
|
const explicitUnit = stringField2(cost, "unit");
|
|
43958
44000
|
const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
|
|
43959
44001
|
const credits = numberField2(cost, "deeplineCreditsPerPricingUnit");
|
|
@@ -44226,6 +44268,9 @@ function listedToolDescription(tool) {
|
|
|
44226
44268
|
}
|
|
44227
44269
|
function formatListedToolCost(tool) {
|
|
44228
44270
|
const record3 = tool;
|
|
44271
|
+
if (stringField2(record3, "billingSource", "billing_source") === "free") {
|
|
44272
|
+
return "Cost: Free";
|
|
44273
|
+
}
|
|
44229
44274
|
const pricing = recordField2(record3, "pricing");
|
|
44230
44275
|
const displayText = stringField2(pricing, "displayText", "display_text");
|
|
44231
44276
|
return displayText ? `Cost: ${displayText}` : "";
|
package/dist/index.d.mts
CHANGED
|
@@ -2957,8 +2957,7 @@ type PlaySecretCheck = {
|
|
|
2957
2957
|
secret: PlaySecretMetadata | null;
|
|
2958
2958
|
};
|
|
2959
2959
|
/**
|
|
2960
|
-
* `client.runs`
|
|
2961
|
-
* polling, streaming, stopping, reading logs, and exporting durable dataset rows.
|
|
2960
|
+
* Use `client.runs` (`/api/v2/runs`) to poll, stream, stop, read logs, and export durable dataset rows.
|
|
2962
2961
|
*
|
|
2963
2962
|
* @sdkReference client 020 client.runs
|
|
2964
2963
|
*/
|
|
@@ -4715,6 +4714,37 @@ declare class DeeplineClient {
|
|
|
4715
4714
|
source?: 'working' | 'live' | `version:${number}`;
|
|
4716
4715
|
guidance?: boolean;
|
|
4717
4716
|
}): Promise<PlayDetail>;
|
|
4717
|
+
/** Read one trigger inventory page without loading run histories. */
|
|
4718
|
+
listPlayTriggerInventory(options?: {
|
|
4719
|
+
cursor?: string;
|
|
4720
|
+
}): Promise<{
|
|
4721
|
+
page: Array<{
|
|
4722
|
+
bindingId: string;
|
|
4723
|
+
name: string;
|
|
4724
|
+
type: string;
|
|
4725
|
+
status: string;
|
|
4726
|
+
cron: string | null;
|
|
4727
|
+
timezone: string | null;
|
|
4728
|
+
nextScheduledAt: number | null;
|
|
4729
|
+
}>;
|
|
4730
|
+
continueCursor: string;
|
|
4731
|
+
isDone: boolean;
|
|
4732
|
+
}>;
|
|
4733
|
+
/** Read one trigger's recent runs, with an explicit partial-history flag. */
|
|
4734
|
+
getPlayTriggerHistory(bindingId: string, options?: {
|
|
4735
|
+
limit?: number;
|
|
4736
|
+
}): Promise<{
|
|
4737
|
+
recentRuns: Array<{
|
|
4738
|
+
workflowId: string;
|
|
4739
|
+
runId: string | null;
|
|
4740
|
+
status: string;
|
|
4741
|
+
createdAt: number;
|
|
4742
|
+
startedAt: number | null;
|
|
4743
|
+
finishedAt: number | null;
|
|
4744
|
+
}>;
|
|
4745
|
+
truncated: boolean;
|
|
4746
|
+
cronInput: Record<string, unknown> | null;
|
|
4747
|
+
}>;
|
|
4718
4748
|
/**
|
|
4719
4749
|
* Get a normalized play description suitable for agents and CLIs.
|
|
4720
4750
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2957,8 +2957,7 @@ type PlaySecretCheck = {
|
|
|
2957
2957
|
secret: PlaySecretMetadata | null;
|
|
2958
2958
|
};
|
|
2959
2959
|
/**
|
|
2960
|
-
* `client.runs`
|
|
2961
|
-
* polling, streaming, stopping, reading logs, and exporting durable dataset rows.
|
|
2960
|
+
* Use `client.runs` (`/api/v2/runs`) to poll, stream, stop, read logs, and export durable dataset rows.
|
|
2962
2961
|
*
|
|
2963
2962
|
* @sdkReference client 020 client.runs
|
|
2964
2963
|
*/
|
|
@@ -4715,6 +4714,37 @@ declare class DeeplineClient {
|
|
|
4715
4714
|
source?: 'working' | 'live' | `version:${number}`;
|
|
4716
4715
|
guidance?: boolean;
|
|
4717
4716
|
}): Promise<PlayDetail>;
|
|
4717
|
+
/** Read one trigger inventory page without loading run histories. */
|
|
4718
|
+
listPlayTriggerInventory(options?: {
|
|
4719
|
+
cursor?: string;
|
|
4720
|
+
}): Promise<{
|
|
4721
|
+
page: Array<{
|
|
4722
|
+
bindingId: string;
|
|
4723
|
+
name: string;
|
|
4724
|
+
type: string;
|
|
4725
|
+
status: string;
|
|
4726
|
+
cron: string | null;
|
|
4727
|
+
timezone: string | null;
|
|
4728
|
+
nextScheduledAt: number | null;
|
|
4729
|
+
}>;
|
|
4730
|
+
continueCursor: string;
|
|
4731
|
+
isDone: boolean;
|
|
4732
|
+
}>;
|
|
4733
|
+
/** Read one trigger's recent runs, with an explicit partial-history flag. */
|
|
4734
|
+
getPlayTriggerHistory(bindingId: string, options?: {
|
|
4735
|
+
limit?: number;
|
|
4736
|
+
}): Promise<{
|
|
4737
|
+
recentRuns: Array<{
|
|
4738
|
+
workflowId: string;
|
|
4739
|
+
runId: string | null;
|
|
4740
|
+
status: string;
|
|
4741
|
+
createdAt: number;
|
|
4742
|
+
startedAt: number | null;
|
|
4743
|
+
finishedAt: number | null;
|
|
4744
|
+
}>;
|
|
4745
|
+
truncated: boolean;
|
|
4746
|
+
cronInput: Record<string, unknown> | null;
|
|
4747
|
+
}>;
|
|
4718
4748
|
/**
|
|
4719
4749
|
* Get a normalized play description suitable for agents and CLIs.
|
|
4720
4750
|
*
|
package/dist/index.js
CHANGED
|
@@ -860,7 +860,7 @@ var SDK_RELEASE = {
|
|
|
860
860
|
// getters keep their established compatibility behavior.
|
|
861
861
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
862
862
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
863
|
-
version: "0.3.
|
|
863
|
+
version: "0.3.103",
|
|
864
864
|
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.",
|
|
865
865
|
packageCapabilities: {
|
|
866
866
|
updatePreferences: 1
|
|
@@ -6653,6 +6653,22 @@ var DeeplineClient = class {
|
|
|
6653
6653
|
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : options?.guidance ? "?include=guidance" : "";
|
|
6654
6654
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
6655
6655
|
}
|
|
6656
|
+
/** Read one trigger inventory page without loading run histories. */
|
|
6657
|
+
async listPlayTriggerInventory(options) {
|
|
6658
|
+
const params = new URLSearchParams({ view: "inventory" });
|
|
6659
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
6660
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
6661
|
+
}
|
|
6662
|
+
/** Read one trigger's recent runs, with an explicit partial-history flag. */
|
|
6663
|
+
async getPlayTriggerHistory(bindingId, options) {
|
|
6664
|
+
const params = new URLSearchParams({
|
|
6665
|
+
view: "history",
|
|
6666
|
+
binding_id: bindingId
|
|
6667
|
+
});
|
|
6668
|
+
if (options?.limit !== void 0)
|
|
6669
|
+
params.set("history_limit", String(options.limit));
|
|
6670
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
6671
|
+
}
|
|
6656
6672
|
/**
|
|
6657
6673
|
* Get a normalized play description suitable for agents and CLIs.
|
|
6658
6674
|
*
|
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.103",
|
|
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
|
|
@@ -6561,6 +6561,22 @@ var DeeplineClient = class {
|
|
|
6561
6561
|
const query = options?.source ? `?include=source&revision=${encodeURIComponent(options.source)}` : options?.guidance ? "?include=guidance" : "";
|
|
6562
6562
|
return this.http.get(`/api/v2/plays/${encodedName}${query}`);
|
|
6563
6563
|
}
|
|
6564
|
+
/** Read one trigger inventory page without loading run histories. */
|
|
6565
|
+
async listPlayTriggerInventory(options) {
|
|
6566
|
+
const params = new URLSearchParams({ view: "inventory" });
|
|
6567
|
+
if (options?.cursor) params.set("cursor", options.cursor);
|
|
6568
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
6569
|
+
}
|
|
6570
|
+
/** Read one trigger's recent runs, with an explicit partial-history flag. */
|
|
6571
|
+
async getPlayTriggerHistory(bindingId, options) {
|
|
6572
|
+
const params = new URLSearchParams({
|
|
6573
|
+
view: "history",
|
|
6574
|
+
binding_id: bindingId
|
|
6575
|
+
});
|
|
6576
|
+
if (options?.limit !== void 0)
|
|
6577
|
+
params.set("history_limit", String(options.limit));
|
|
6578
|
+
return this.http.get(`/api/v2/plays/triggers?${params}`);
|
|
6579
|
+
}
|
|
6564
6580
|
/**
|
|
6565
6581
|
* Get a normalized play description suitable for agents and CLIs.
|
|
6566
6582
|
*
|
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.103";
|
|
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.103";
|
|
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.103",
|
|
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.103",
|
|
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
|