@runtypelabs/sdk 11.18.0 → 11.18.2
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/index.cjs +24 -22
- package/dist/index.d.cts +88 -39
- package/dist/index.d.ts +88 -39
- package/dist/index.mjs +24 -22
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -597,14 +597,6 @@ async function processStream(response, callbacks = {}, _options = {}) {
|
|
|
597
597
|
callbacks.onError?.(error);
|
|
598
598
|
throw error;
|
|
599
599
|
}
|
|
600
|
-
const reader = response.body?.getReader();
|
|
601
|
-
if (!reader) {
|
|
602
|
-
const error = /* @__PURE__ */ new Error("Response body is not readable");
|
|
603
|
-
callbacks.onError?.(error);
|
|
604
|
-
throw error;
|
|
605
|
-
}
|
|
606
|
-
const decoder = new TextDecoder();
|
|
607
|
-
let buffer = "";
|
|
608
600
|
const results = /* @__PURE__ */ new Map();
|
|
609
601
|
let flowSummary = {
|
|
610
602
|
flowId: "",
|
|
@@ -622,18 +614,17 @@ async function processStream(response, callbacks = {}, _options = {}) {
|
|
|
622
614
|
if (response.headers.get("content-type")?.includes("application/json")) try {
|
|
623
615
|
const data = await response.json();
|
|
624
616
|
if (data.events && Array.isArray(data.events)) {
|
|
625
|
-
for (const event of data.events)
|
|
626
|
-
if (data.flowId) flowSummary.flowId = data.flowId;
|
|
627
|
-
if (data.recordId) flowSummary.flowName = data.recordId;
|
|
617
|
+
for (const event of data.events) dispatch(event);
|
|
628
618
|
if (data.executionSummary) {
|
|
629
619
|
const s = data.executionSummary;
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
620
|
+
flowSummary.flowId || (flowSummary.flowId = s.flowId);
|
|
621
|
+
flowSummary.flowName || (flowSummary.flowName = s.flowName);
|
|
622
|
+
flowSummary.totalSteps || (flowSummary.totalSteps = s.totalSteps);
|
|
623
|
+
flowSummary.successfulSteps || (flowSummary.successfulSteps = s.successfulSteps);
|
|
624
|
+
flowSummary.failedSteps || (flowSummary.failedSteps = s.failedSteps);
|
|
625
|
+
flowSummary.executionTime || (flowSummary.executionTime = s.executionTime);
|
|
636
626
|
}
|
|
627
|
+
flowSummary.flowId || (flowSummary.flowId = data.flowId);
|
|
637
628
|
return {
|
|
638
629
|
flowId: flowSummary.flowId || "",
|
|
639
630
|
flowName: flowSummary.flowName || "",
|
|
@@ -658,6 +649,14 @@ async function processStream(response, callbacks = {}, _options = {}) {
|
|
|
658
649
|
throw e;
|
|
659
650
|
}
|
|
660
651
|
}
|
|
652
|
+
const reader = response.bodyUsed ? void 0 : response.body?.getReader();
|
|
653
|
+
if (!reader) {
|
|
654
|
+
const error = /* @__PURE__ */ new Error("Response body is not readable");
|
|
655
|
+
callbacks.onError?.(error);
|
|
656
|
+
throw error;
|
|
657
|
+
}
|
|
658
|
+
const decoder = new TextDecoder();
|
|
659
|
+
let buffer = "";
|
|
661
660
|
try {
|
|
662
661
|
while (true) {
|
|
663
662
|
const { done, value } = await reader.read();
|
|
@@ -4841,7 +4840,8 @@ var RecordsEndpoint = class {
|
|
|
4841
4840
|
return this.client.post("/records/bulk-delete", { ids });
|
|
4842
4841
|
}
|
|
4843
4842
|
/**
|
|
4844
|
-
* Bulk edit multiple records
|
|
4843
|
+
* Bulk edit multiple records. At most 5,000 targets per call, dry runs included; a larger set
|
|
4844
|
+
* returns 400 `bulk_edit_too_many_records`, so narrow the filter and edit in batches.
|
|
4845
4845
|
*/
|
|
4846
4846
|
async bulkEdit(data) {
|
|
4847
4847
|
return this.client.post("/records/bulk-edit", data);
|
|
@@ -8671,10 +8671,12 @@ var SchedulesEndpoint = class {
|
|
|
8671
8671
|
return this.client.post(`/schedules/${id}/resume`);
|
|
8672
8672
|
}
|
|
8673
8673
|
/**
|
|
8674
|
-
* List the run history for a specific schedule.
|
|
8674
|
+
* List the run history for a specific schedule, newest first. Without `params` it returns every run.
|
|
8675
|
+
* Pass `limit` (at most 500) to page, then pass `nextCursor` as `cursor` while `hasMore` is true.
|
|
8675
8676
|
*/
|
|
8676
|
-
async listRuns(id) {
|
|
8677
|
-
|
|
8677
|
+
async listRuns(id, params) {
|
|
8678
|
+
const path = `/schedules/${id}/runs`;
|
|
8679
|
+
return params ? this.client.get(path, params) : this.client.get(path);
|
|
8678
8680
|
}
|
|
8679
8681
|
/**
|
|
8680
8682
|
* Get statistics (success rate, average duration/cost, 7-day history) for a schedule.
|
|
@@ -14747,7 +14749,7 @@ function transformQueryParams(params) {
|
|
|
14747
14749
|
return result;
|
|
14748
14750
|
}
|
|
14749
14751
|
// src/version.ts
|
|
14750
|
-
const SDK_VERSION = "11.18.
|
|
14752
|
+
const SDK_VERSION = "11.18.2";
|
|
14751
14753
|
/**
|
|
14752
14754
|
* Canonical client identity the API uses for attribution
|
|
14753
14755
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
package/dist/index.d.cts
CHANGED
|
@@ -13181,6 +13181,15 @@ interface paths {
|
|
|
13181
13181
|
};
|
|
13182
13182
|
};
|
|
13183
13183
|
};
|
|
13184
|
+
/** @description Invalid cursor: it was not issued by this endpoint, or the conversation a legacy id cursor names no longer exists. Restart from the first page. */
|
|
13185
|
+
400: {
|
|
13186
|
+
headers: {
|
|
13187
|
+
[name: string]: unknown;
|
|
13188
|
+
};
|
|
13189
|
+
content: {
|
|
13190
|
+
"application/json": components["schemas"]["Error"];
|
|
13191
|
+
};
|
|
13192
|
+
};
|
|
13184
13193
|
/** @description Unauthorized */
|
|
13185
13194
|
401: {
|
|
13186
13195
|
headers: {
|
|
@@ -21764,6 +21773,8 @@ interface paths {
|
|
|
21764
21773
|
simulationId?: string;
|
|
21765
21774
|
/** @description Only events for this delegated task */
|
|
21766
21775
|
taskId?: string;
|
|
21776
|
+
/** @description Only events for this API key request */
|
|
21777
|
+
requestId?: string;
|
|
21767
21778
|
/** @description Signal events only: keep occurrences for this signal key */
|
|
21768
21779
|
key?: string;
|
|
21769
21780
|
/** @description Eval runs only: keep runs whose pass rate dropped */
|
|
@@ -21850,7 +21861,7 @@ interface paths {
|
|
|
21850
21861
|
};
|
|
21851
21862
|
/**
|
|
21852
21863
|
* List event types
|
|
21853
|
-
* @description The product events you can poll, each with the filter arguments it accepts and the shape of its `data`. An API key sees only the events its scopes cover (each event's `requiredScopes`).
|
|
21864
|
+
* @description The product events you can poll, each with the filter arguments it accepts and the shape of its `data`. An API key sees only the events its scopes cover (each event's `requiredScopes`), plus `runtype.api_key_request.decided` for the key requests it filed; read it by name when the key holds no other event scope.
|
|
21854
21865
|
*/
|
|
21855
21866
|
get: {
|
|
21856
21867
|
parameters: {
|
|
@@ -41471,7 +41482,7 @@ interface paths {
|
|
|
41471
41482
|
};
|
|
41472
41483
|
/**
|
|
41473
41484
|
* Get CLI publish status
|
|
41474
|
-
* @description
|
|
41485
|
+
* @description Whether the install host serves this `cli` surface, and the commands that install it. Read live from the install host's bucket.
|
|
41475
41486
|
*/
|
|
41476
41487
|
get: {
|
|
41477
41488
|
parameters: {
|
|
@@ -41539,7 +41550,7 @@ interface paths {
|
|
|
41539
41550
|
"application/json": components["schemas"]["Error"];
|
|
41540
41551
|
};
|
|
41541
41552
|
};
|
|
41542
|
-
/** @description `
|
|
41553
|
+
/** @description `CLI_DIST_UNAVAILABLE`: the install host's storage failed */
|
|
41543
41554
|
502: {
|
|
41544
41555
|
headers: {
|
|
41545
41556
|
[name: string]: unknown;
|
|
@@ -41557,7 +41568,7 @@ interface paths {
|
|
|
41557
41568
|
};
|
|
41558
41569
|
};
|
|
41559
41570
|
};
|
|
41560
|
-
/** @description `
|
|
41571
|
+
/** @description `CLI_DIST_NOT_CONFIGURED`: this deployment has no `CLI_DIST` bucket or install host */
|
|
41561
41572
|
503: {
|
|
41562
41573
|
headers: {
|
|
41563
41574
|
[name: string]: unknown;
|
|
@@ -41580,7 +41591,7 @@ interface paths {
|
|
|
41580
41591
|
put?: never;
|
|
41581
41592
|
/**
|
|
41582
41593
|
* Publish a CLI surface
|
|
41583
|
-
* @description
|
|
41594
|
+
* @description Writes the surface's `cli.json`, `SKILL.md` and install scripts to the install host under its slug (its command name), so `curl -fsSL https://get.runtype.com/<slug> | sh` installs it. The first version is 1.0.0; changed files bump the patch version. A slug belongs to the first surface that publishes it, and a name close to a protected brand needs a manual review first.
|
|
41584
41595
|
*/
|
|
41585
41596
|
post: {
|
|
41586
41597
|
parameters: {
|
|
@@ -41594,7 +41605,7 @@ interface paths {
|
|
|
41594
41605
|
};
|
|
41595
41606
|
requestBody?: never;
|
|
41596
41607
|
responses: {
|
|
41597
|
-
/** @description
|
|
41608
|
+
/** @description Published or unchanged */
|
|
41598
41609
|
200: {
|
|
41599
41610
|
headers: {
|
|
41600
41611
|
[name: string]: unknown;
|
|
@@ -41648,7 +41659,7 @@ interface paths {
|
|
|
41648
41659
|
"application/json": components["schemas"]["Error"];
|
|
41649
41660
|
};
|
|
41650
41661
|
};
|
|
41651
|
-
/** @description The surface is inactive or
|
|
41662
|
+
/** @description The surface is inactive (`CLI_SURFACE_INACTIVE`) or has no tools (`CLI_SURFACE_HAS_NO_TOOLS`), another surface publishes its slug (`CLI_SLUG_TAKEN`), its name needs a brand review (`CLI_NAME_NEEDS_REVIEW`), or a concurrent publish changed it (`CLI_PUBLISH_CONFLICT`) */
|
|
41652
41663
|
409: {
|
|
41653
41664
|
headers: {
|
|
41654
41665
|
[name: string]: unknown;
|
|
@@ -41666,7 +41677,7 @@ interface paths {
|
|
|
41666
41677
|
};
|
|
41667
41678
|
};
|
|
41668
41679
|
};
|
|
41669
|
-
/** @description `
|
|
41680
|
+
/** @description `CLI_DIST_UNAVAILABLE`: the install host's storage failed */
|
|
41670
41681
|
502: {
|
|
41671
41682
|
headers: {
|
|
41672
41683
|
[name: string]: unknown;
|
|
@@ -41684,7 +41695,7 @@ interface paths {
|
|
|
41684
41695
|
};
|
|
41685
41696
|
};
|
|
41686
41697
|
};
|
|
41687
|
-
/** @description `
|
|
41698
|
+
/** @description `CLI_DIST_NOT_CONFIGURED`: this deployment has no `CLI_DIST` bucket or install host */
|
|
41688
41699
|
503: {
|
|
41689
41700
|
headers: {
|
|
41690
41701
|
[name: string]: unknown;
|
|
@@ -45970,7 +45981,7 @@ interface paths {
|
|
|
45970
45981
|
put?: never;
|
|
45971
45982
|
/**
|
|
45972
45983
|
* Bulk edit records
|
|
45973
|
-
* @description Bulk update or delete metadata fields on multiple records.
|
|
45984
|
+
* @description Bulk update or delete metadata fields on multiple records. One request can target at most 5,000 records; a larger target set is rejected with 400 `bulk_edit_too_many_records` before anything is written, so narrow the selection and edit in batches.
|
|
45974
45985
|
*/
|
|
45975
45986
|
post: {
|
|
45976
45987
|
parameters: {
|
|
@@ -46050,13 +46061,13 @@ interface paths {
|
|
|
46050
46061
|
};
|
|
46051
46062
|
};
|
|
46052
46063
|
};
|
|
46053
|
-
/** @description Validation error */
|
|
46064
|
+
/** @description Validation error, or the edit targets more than 5,000 records (`bulk_edit_too_many_records`) */
|
|
46054
46065
|
400: {
|
|
46055
46066
|
headers: {
|
|
46056
46067
|
[name: string]: unknown;
|
|
46057
46068
|
};
|
|
46058
46069
|
content: {
|
|
46059
|
-
"application/json": components["schemas"]["
|
|
46070
|
+
"application/json": components["schemas"]["BulkEditError"];
|
|
46060
46071
|
};
|
|
46061
46072
|
};
|
|
46062
46073
|
/** @description Unauthorized */
|
|
@@ -54233,11 +54244,14 @@ interface paths {
|
|
|
54233
54244
|
};
|
|
54234
54245
|
/**
|
|
54235
54246
|
* List runs for a schedule
|
|
54236
|
-
* @description Returns the run history for a specific schedule, including batch execution summaries.
|
|
54247
|
+
* @description Returns the run history for a specific schedule, newest first, including batch execution summaries. Returns every run when `limit` and `cursor` are both omitted. Pass `limit` to page: a value above 500 is reduced to 500, and a `cursor` without `limit` reads 500 runs. When `hasMore` is true, pass `nextCursor` back as `cursor` to read older runs.
|
|
54237
54248
|
*/
|
|
54238
54249
|
get: {
|
|
54239
54250
|
parameters: {
|
|
54240
|
-
query?:
|
|
54251
|
+
query?: {
|
|
54252
|
+
limit?: string;
|
|
54253
|
+
cursor?: string;
|
|
54254
|
+
};
|
|
54241
54255
|
header?: never;
|
|
54242
54256
|
path: {
|
|
54243
54257
|
id: string;
|
|
@@ -54270,10 +54284,12 @@ interface paths {
|
|
|
54270
54284
|
status: string;
|
|
54271
54285
|
totalRecords: number | null;
|
|
54272
54286
|
}[];
|
|
54287
|
+
hasMore: boolean;
|
|
54288
|
+
nextCursor: string | null;
|
|
54273
54289
|
};
|
|
54274
54290
|
};
|
|
54275
54291
|
};
|
|
54276
|
-
/** @description Invalid ID format */
|
|
54292
|
+
/** @description Invalid ID format, limit, or cursor */
|
|
54277
54293
|
400: {
|
|
54278
54294
|
headers: {
|
|
54279
54295
|
[name: string]: unknown;
|
|
@@ -61862,6 +61878,12 @@ interface components {
|
|
|
61862
61878
|
toolId: string;
|
|
61863
61879
|
toolName: string;
|
|
61864
61880
|
};
|
|
61881
|
+
BulkEditError: components["schemas"]["Error"] & {
|
|
61882
|
+
/** @description On `bulk_edit_too_many_records`: the most records one bulk edit can target (5000). */
|
|
61883
|
+
limit?: number;
|
|
61884
|
+
/** @description On `bulk_edit_too_many_records`: what was refused and how to narrow the edit. */
|
|
61885
|
+
message?: string;
|
|
61886
|
+
};
|
|
61865
61887
|
BusyMessageRouteReport: {
|
|
61866
61888
|
/** @description The decision model that answered. */
|
|
61867
61889
|
model?: string;
|
|
@@ -62003,33 +62025,38 @@ interface components {
|
|
|
62003
62025
|
packageName: string;
|
|
62004
62026
|
version: string;
|
|
62005
62027
|
};
|
|
62028
|
+
CliInstallCommands: {
|
|
62029
|
+
/** @description The Windows install command: `irm <url>/install.ps1 | iex` */
|
|
62030
|
+
powershell: string;
|
|
62031
|
+
/** @description The macOS and Linux install command: `curl -fsSL <url> | sh` */
|
|
62032
|
+
sh: string;
|
|
62033
|
+
/** @description `GET` serves the POSIX install script, e.g. `https://get.runtype.com/<slug>` */
|
|
62034
|
+
url: string;
|
|
62035
|
+
} | null;
|
|
62006
62036
|
CliPublishResult: {
|
|
62007
|
-
|
|
62037
|
+
install: components["schemas"]["CliInstallCommands"];
|
|
62008
62038
|
/**
|
|
62009
|
-
* @description `unchanged`: the
|
|
62039
|
+
* @description `unchanged`: the files match the last publish, so the version stays; every file is still rewritten
|
|
62010
62040
|
* @enum {string}
|
|
62011
62041
|
*/
|
|
62012
|
-
outcome: "
|
|
62013
|
-
|
|
62042
|
+
outcome: "published" | "unchanged";
|
|
62043
|
+
publishedAt: string;
|
|
62044
|
+
slug: string;
|
|
62014
62045
|
version: string;
|
|
62015
62046
|
};
|
|
62016
62047
|
CliPublishStatus: {
|
|
62017
|
-
|
|
62018
|
-
|
|
62019
|
-
|
|
62020
|
-
/** @description The
|
|
62021
|
-
|
|
62022
|
-
npmUrl: string | null;
|
|
62023
|
-
/** @description `@rtype/<binName>`, or null while the surface has no command name */
|
|
62024
|
-
packageName: string | null;
|
|
62025
|
-
/** @description The latest version npm serves */
|
|
62026
|
-
publishedVersion: string | null;
|
|
62027
|
-
registryUrl: string | null;
|
|
62048
|
+
install: components["schemas"]["CliInstallCommands"];
|
|
62049
|
+
/** @description When the files last changed */
|
|
62050
|
+
publishedAt: string | null;
|
|
62051
|
+
/** @description The install slug, which is the surface's command name; null while it has none */
|
|
62052
|
+
slug: string | null;
|
|
62028
62053
|
/**
|
|
62029
|
-
* @description `
|
|
62054
|
+
* @description `published`: the install host serves this surface's files under its slug. `not_published`: nothing is published, the surface has no valid command name, or another surface holds the slug.
|
|
62030
62055
|
* @enum {string}
|
|
62031
62056
|
*/
|
|
62032
|
-
state: "not_published" | "
|
|
62057
|
+
state: "not_published" | "published";
|
|
62058
|
+
/** @description The version in the published `cli.json` */
|
|
62059
|
+
version: string | null;
|
|
62033
62060
|
};
|
|
62034
62061
|
ClientInputDeliveryReceipt: {
|
|
62035
62062
|
deliveryId: string;
|
|
@@ -64667,7 +64694,7 @@ interface components {
|
|
|
64667
64694
|
[key: string]: unknown;
|
|
64668
64695
|
};
|
|
64669
64696
|
/** @enum {string} */
|
|
64670
|
-
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
|
|
64697
|
+
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared" | "runtype.api_key_request.decided";
|
|
64671
64698
|
/** @description JSON Schema for the occurrence `data` */
|
|
64672
64699
|
payloadSchema: {
|
|
64673
64700
|
[key: string]: unknown;
|
|
@@ -64692,7 +64719,7 @@ interface components {
|
|
|
64692
64719
|
/** @description Occurrence id (typeid, `pev_` prefix) */
|
|
64693
64720
|
eventId: string;
|
|
64694
64721
|
/** @enum {string} */
|
|
64695
|
-
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
|
|
64722
|
+
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared" | "runtype.api_key_request.decided";
|
|
64696
64723
|
/** @description When it happened (ISO 8601) */
|
|
64697
64724
|
timestamp: string;
|
|
64698
64725
|
};
|
|
@@ -64721,6 +64748,10 @@ interface components {
|
|
|
64721
64748
|
ref: string;
|
|
64722
64749
|
/** @enum {string} */
|
|
64723
64750
|
result: "created" | "updated" | "unchanged" | "failed" | "skipped" | "pruned";
|
|
64751
|
+
/** @description Surface apply only: the signed-in sessions an identity provider or issuer change ended. */
|
|
64752
|
+
sessionsSignedOut?: number;
|
|
64753
|
+
/** @description Surface dryRun only: applying it changes the identity provider or issuer and signs out every session. */
|
|
64754
|
+
signsOutSessions?: boolean;
|
|
64724
64755
|
/** @description Non-blocking advisories, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED when converging an agent moved `live` onto a version its active schedules cannot run. */
|
|
64725
64756
|
warnings?: string[];
|
|
64726
64757
|
}[];
|
|
@@ -66081,6 +66112,8 @@ interface components {
|
|
|
66081
66112
|
contentHash: string;
|
|
66082
66113
|
/** @enum {string} */
|
|
66083
66114
|
result: "unchanged" | "created" | "updated";
|
|
66115
|
+
/** @description Present when the update changed the identity provider or issuer: the number of signed-in sessions it ended. */
|
|
66116
|
+
sessionsSignedOut?: number;
|
|
66084
66117
|
surfaceId: string;
|
|
66085
66118
|
} | {
|
|
66086
66119
|
/** @enum {string} */
|
|
@@ -66093,6 +66126,8 @@ interface components {
|
|
|
66093
66126
|
remoteHash?: string;
|
|
66094
66127
|
/** @enum {string} */
|
|
66095
66128
|
result: "plan";
|
|
66129
|
+
/** @description True when applying this plan changes the identity provider or issuer and signs out every session. */
|
|
66130
|
+
signsOutSessions?: boolean;
|
|
66096
66131
|
surfaceId?: string;
|
|
66097
66132
|
};
|
|
66098
66133
|
SurfacePullResponse: {
|
|
@@ -70118,6 +70153,16 @@ export interface ScheduleRunNowResponse {
|
|
|
70118
70153
|
* Generated from the OpenAPI spec — GET /v1/schedules/{id}/runs list item.
|
|
70119
70154
|
*/
|
|
70120
70155
|
export type ScheduleRun = paths['/v1/schedules/{id}/runs']['get']['responses'][200]['content']['application/json']['data'][number];
|
|
70156
|
+
/**
|
|
70157
|
+
* One response from a schedule's run history: the runs, whether older runs remain, and the cursor to read them.
|
|
70158
|
+
* Generated from the OpenAPI spec — GET /v1/schedules/{id}/runs.
|
|
70159
|
+
*/
|
|
70160
|
+
export type ScheduleRunsPage = paths['/v1/schedules/{id}/runs']['get']['responses'][200]['content']['application/json'];
|
|
70161
|
+
/** Paging for a schedule's run history. Omit both to read every run; `limit` is at most 500. */
|
|
70162
|
+
export interface ScheduleRunsListParams {
|
|
70163
|
+
limit?: number;
|
|
70164
|
+
cursor?: string;
|
|
70165
|
+
}
|
|
70121
70166
|
export interface ScheduleListParams extends ListParams {
|
|
70122
70167
|
search?: string;
|
|
70123
70168
|
status?: 'active' | 'paused';
|
|
@@ -71791,7 +71836,8 @@ export declare class RecordsEndpoint {
|
|
|
71791
71836
|
notFoundIds?: string[];
|
|
71792
71837
|
}>;
|
|
71793
71838
|
/**
|
|
71794
|
-
* Bulk edit multiple records
|
|
71839
|
+
* Bulk edit multiple records. At most 5,000 targets per call, dry runs included; a larger set
|
|
71840
|
+
* returns 400 `bulk_edit_too_many_records`, so narrow the filter and edit in batches.
|
|
71795
71841
|
*/
|
|
71796
71842
|
bulkEdit(data: BulkEditRequest): Promise<BulkEditResponse>;
|
|
71797
71843
|
/**
|
|
@@ -74372,11 +74418,10 @@ export declare class SchedulesEndpoint {
|
|
|
74372
74418
|
*/
|
|
74373
74419
|
resume(id: string): Promise<ScheduleStatusResponse>;
|
|
74374
74420
|
/**
|
|
74375
|
-
* List the run history for a specific schedule.
|
|
74421
|
+
* List the run history for a specific schedule, newest first. Without `params` it returns every run.
|
|
74422
|
+
* Pass `limit` (at most 500) to page, then pass `nextCursor` as `cursor` while `hasMore` is true.
|
|
74376
74423
|
*/
|
|
74377
|
-
listRuns(id: string): Promise<
|
|
74378
|
-
data: ScheduleRun[];
|
|
74379
|
-
}>;
|
|
74424
|
+
listRuns(id: string, params?: ScheduleRunsListParams): Promise<ScheduleRunsPage>;
|
|
74380
74425
|
/**
|
|
74381
74426
|
* Get statistics (success rate, average duration/cost, 7-day history) for a schedule.
|
|
74382
74427
|
*/
|
|
@@ -78992,6 +79037,8 @@ interface EnsureSurfaceConverged {
|
|
|
78992
79037
|
surfaceId: string;
|
|
78993
79038
|
/** The server-computed canonical hash (echo this — never your own). */
|
|
78994
79039
|
contentHash: string;
|
|
79040
|
+
/** Present when the update changed the identity provider or issuer: the signed-in sessions it ended. */
|
|
79041
|
+
sessionsSignedOut?: number;
|
|
78995
79042
|
}
|
|
78996
79043
|
interface EnsureSurfacePlan {
|
|
78997
79044
|
result: 'plan';
|
|
@@ -79000,6 +79047,8 @@ interface EnsureSurfacePlan {
|
|
|
79000
79047
|
contentHash: string;
|
|
79001
79048
|
remoteHash?: string;
|
|
79002
79049
|
surfaceId?: string;
|
|
79050
|
+
/** True when applying this plan changes the identity provider or issuer and signs out every session. */
|
|
79051
|
+
signsOutSessions?: boolean;
|
|
79003
79052
|
}
|
|
79004
79053
|
type EnsureSurfaceResult = EnsureSurfaceConverged | EnsureSurfacePlan;
|
|
79005
79054
|
interface SurfacePullResult {
|
package/dist/index.d.ts
CHANGED
|
@@ -13181,6 +13181,15 @@ interface paths {
|
|
|
13181
13181
|
};
|
|
13182
13182
|
};
|
|
13183
13183
|
};
|
|
13184
|
+
/** @description Invalid cursor: it was not issued by this endpoint, or the conversation a legacy id cursor names no longer exists. Restart from the first page. */
|
|
13185
|
+
400: {
|
|
13186
|
+
headers: {
|
|
13187
|
+
[name: string]: unknown;
|
|
13188
|
+
};
|
|
13189
|
+
content: {
|
|
13190
|
+
"application/json": components["schemas"]["Error"];
|
|
13191
|
+
};
|
|
13192
|
+
};
|
|
13184
13193
|
/** @description Unauthorized */
|
|
13185
13194
|
401: {
|
|
13186
13195
|
headers: {
|
|
@@ -21764,6 +21773,8 @@ interface paths {
|
|
|
21764
21773
|
simulationId?: string;
|
|
21765
21774
|
/** @description Only events for this delegated task */
|
|
21766
21775
|
taskId?: string;
|
|
21776
|
+
/** @description Only events for this API key request */
|
|
21777
|
+
requestId?: string;
|
|
21767
21778
|
/** @description Signal events only: keep occurrences for this signal key */
|
|
21768
21779
|
key?: string;
|
|
21769
21780
|
/** @description Eval runs only: keep runs whose pass rate dropped */
|
|
@@ -21850,7 +21861,7 @@ interface paths {
|
|
|
21850
21861
|
};
|
|
21851
21862
|
/**
|
|
21852
21863
|
* List event types
|
|
21853
|
-
* @description The product events you can poll, each with the filter arguments it accepts and the shape of its `data`. An API key sees only the events its scopes cover (each event's `requiredScopes`).
|
|
21864
|
+
* @description The product events you can poll, each with the filter arguments it accepts and the shape of its `data`. An API key sees only the events its scopes cover (each event's `requiredScopes`), plus `runtype.api_key_request.decided` for the key requests it filed; read it by name when the key holds no other event scope.
|
|
21854
21865
|
*/
|
|
21855
21866
|
get: {
|
|
21856
21867
|
parameters: {
|
|
@@ -41471,7 +41482,7 @@ interface paths {
|
|
|
41471
41482
|
};
|
|
41472
41483
|
/**
|
|
41473
41484
|
* Get CLI publish status
|
|
41474
|
-
* @description
|
|
41485
|
+
* @description Whether the install host serves this `cli` surface, and the commands that install it. Read live from the install host's bucket.
|
|
41475
41486
|
*/
|
|
41476
41487
|
get: {
|
|
41477
41488
|
parameters: {
|
|
@@ -41539,7 +41550,7 @@ interface paths {
|
|
|
41539
41550
|
"application/json": components["schemas"]["Error"];
|
|
41540
41551
|
};
|
|
41541
41552
|
};
|
|
41542
|
-
/** @description `
|
|
41553
|
+
/** @description `CLI_DIST_UNAVAILABLE`: the install host's storage failed */
|
|
41543
41554
|
502: {
|
|
41544
41555
|
headers: {
|
|
41545
41556
|
[name: string]: unknown;
|
|
@@ -41557,7 +41568,7 @@ interface paths {
|
|
|
41557
41568
|
};
|
|
41558
41569
|
};
|
|
41559
41570
|
};
|
|
41560
|
-
/** @description `
|
|
41571
|
+
/** @description `CLI_DIST_NOT_CONFIGURED`: this deployment has no `CLI_DIST` bucket or install host */
|
|
41561
41572
|
503: {
|
|
41562
41573
|
headers: {
|
|
41563
41574
|
[name: string]: unknown;
|
|
@@ -41580,7 +41591,7 @@ interface paths {
|
|
|
41580
41591
|
put?: never;
|
|
41581
41592
|
/**
|
|
41582
41593
|
* Publish a CLI surface
|
|
41583
|
-
* @description
|
|
41594
|
+
* @description Writes the surface's `cli.json`, `SKILL.md` and install scripts to the install host under its slug (its command name), so `curl -fsSL https://get.runtype.com/<slug> | sh` installs it. The first version is 1.0.0; changed files bump the patch version. A slug belongs to the first surface that publishes it, and a name close to a protected brand needs a manual review first.
|
|
41584
41595
|
*/
|
|
41585
41596
|
post: {
|
|
41586
41597
|
parameters: {
|
|
@@ -41594,7 +41605,7 @@ interface paths {
|
|
|
41594
41605
|
};
|
|
41595
41606
|
requestBody?: never;
|
|
41596
41607
|
responses: {
|
|
41597
|
-
/** @description
|
|
41608
|
+
/** @description Published or unchanged */
|
|
41598
41609
|
200: {
|
|
41599
41610
|
headers: {
|
|
41600
41611
|
[name: string]: unknown;
|
|
@@ -41648,7 +41659,7 @@ interface paths {
|
|
|
41648
41659
|
"application/json": components["schemas"]["Error"];
|
|
41649
41660
|
};
|
|
41650
41661
|
};
|
|
41651
|
-
/** @description The surface is inactive or
|
|
41662
|
+
/** @description The surface is inactive (`CLI_SURFACE_INACTIVE`) or has no tools (`CLI_SURFACE_HAS_NO_TOOLS`), another surface publishes its slug (`CLI_SLUG_TAKEN`), its name needs a brand review (`CLI_NAME_NEEDS_REVIEW`), or a concurrent publish changed it (`CLI_PUBLISH_CONFLICT`) */
|
|
41652
41663
|
409: {
|
|
41653
41664
|
headers: {
|
|
41654
41665
|
[name: string]: unknown;
|
|
@@ -41666,7 +41677,7 @@ interface paths {
|
|
|
41666
41677
|
};
|
|
41667
41678
|
};
|
|
41668
41679
|
};
|
|
41669
|
-
/** @description `
|
|
41680
|
+
/** @description `CLI_DIST_UNAVAILABLE`: the install host's storage failed */
|
|
41670
41681
|
502: {
|
|
41671
41682
|
headers: {
|
|
41672
41683
|
[name: string]: unknown;
|
|
@@ -41684,7 +41695,7 @@ interface paths {
|
|
|
41684
41695
|
};
|
|
41685
41696
|
};
|
|
41686
41697
|
};
|
|
41687
|
-
/** @description `
|
|
41698
|
+
/** @description `CLI_DIST_NOT_CONFIGURED`: this deployment has no `CLI_DIST` bucket or install host */
|
|
41688
41699
|
503: {
|
|
41689
41700
|
headers: {
|
|
41690
41701
|
[name: string]: unknown;
|
|
@@ -45970,7 +45981,7 @@ interface paths {
|
|
|
45970
45981
|
put?: never;
|
|
45971
45982
|
/**
|
|
45972
45983
|
* Bulk edit records
|
|
45973
|
-
* @description Bulk update or delete metadata fields on multiple records.
|
|
45984
|
+
* @description Bulk update or delete metadata fields on multiple records. One request can target at most 5,000 records; a larger target set is rejected with 400 `bulk_edit_too_many_records` before anything is written, so narrow the selection and edit in batches.
|
|
45974
45985
|
*/
|
|
45975
45986
|
post: {
|
|
45976
45987
|
parameters: {
|
|
@@ -46050,13 +46061,13 @@ interface paths {
|
|
|
46050
46061
|
};
|
|
46051
46062
|
};
|
|
46052
46063
|
};
|
|
46053
|
-
/** @description Validation error */
|
|
46064
|
+
/** @description Validation error, or the edit targets more than 5,000 records (`bulk_edit_too_many_records`) */
|
|
46054
46065
|
400: {
|
|
46055
46066
|
headers: {
|
|
46056
46067
|
[name: string]: unknown;
|
|
46057
46068
|
};
|
|
46058
46069
|
content: {
|
|
46059
|
-
"application/json": components["schemas"]["
|
|
46070
|
+
"application/json": components["schemas"]["BulkEditError"];
|
|
46060
46071
|
};
|
|
46061
46072
|
};
|
|
46062
46073
|
/** @description Unauthorized */
|
|
@@ -54233,11 +54244,14 @@ interface paths {
|
|
|
54233
54244
|
};
|
|
54234
54245
|
/**
|
|
54235
54246
|
* List runs for a schedule
|
|
54236
|
-
* @description Returns the run history for a specific schedule, including batch execution summaries.
|
|
54247
|
+
* @description Returns the run history for a specific schedule, newest first, including batch execution summaries. Returns every run when `limit` and `cursor` are both omitted. Pass `limit` to page: a value above 500 is reduced to 500, and a `cursor` without `limit` reads 500 runs. When `hasMore` is true, pass `nextCursor` back as `cursor` to read older runs.
|
|
54237
54248
|
*/
|
|
54238
54249
|
get: {
|
|
54239
54250
|
parameters: {
|
|
54240
|
-
query?:
|
|
54251
|
+
query?: {
|
|
54252
|
+
limit?: string;
|
|
54253
|
+
cursor?: string;
|
|
54254
|
+
};
|
|
54241
54255
|
header?: never;
|
|
54242
54256
|
path: {
|
|
54243
54257
|
id: string;
|
|
@@ -54270,10 +54284,12 @@ interface paths {
|
|
|
54270
54284
|
status: string;
|
|
54271
54285
|
totalRecords: number | null;
|
|
54272
54286
|
}[];
|
|
54287
|
+
hasMore: boolean;
|
|
54288
|
+
nextCursor: string | null;
|
|
54273
54289
|
};
|
|
54274
54290
|
};
|
|
54275
54291
|
};
|
|
54276
|
-
/** @description Invalid ID format */
|
|
54292
|
+
/** @description Invalid ID format, limit, or cursor */
|
|
54277
54293
|
400: {
|
|
54278
54294
|
headers: {
|
|
54279
54295
|
[name: string]: unknown;
|
|
@@ -61862,6 +61878,12 @@ interface components {
|
|
|
61862
61878
|
toolId: string;
|
|
61863
61879
|
toolName: string;
|
|
61864
61880
|
};
|
|
61881
|
+
BulkEditError: components["schemas"]["Error"] & {
|
|
61882
|
+
/** @description On `bulk_edit_too_many_records`: the most records one bulk edit can target (5000). */
|
|
61883
|
+
limit?: number;
|
|
61884
|
+
/** @description On `bulk_edit_too_many_records`: what was refused and how to narrow the edit. */
|
|
61885
|
+
message?: string;
|
|
61886
|
+
};
|
|
61865
61887
|
BusyMessageRouteReport: {
|
|
61866
61888
|
/** @description The decision model that answered. */
|
|
61867
61889
|
model?: string;
|
|
@@ -62003,33 +62025,38 @@ interface components {
|
|
|
62003
62025
|
packageName: string;
|
|
62004
62026
|
version: string;
|
|
62005
62027
|
};
|
|
62028
|
+
CliInstallCommands: {
|
|
62029
|
+
/** @description The Windows install command: `irm <url>/install.ps1 | iex` */
|
|
62030
|
+
powershell: string;
|
|
62031
|
+
/** @description The macOS and Linux install command: `curl -fsSL <url> | sh` */
|
|
62032
|
+
sh: string;
|
|
62033
|
+
/** @description `GET` serves the POSIX install script, e.g. `https://get.runtype.com/<slug>` */
|
|
62034
|
+
url: string;
|
|
62035
|
+
} | null;
|
|
62006
62036
|
CliPublishResult: {
|
|
62007
|
-
|
|
62037
|
+
install: components["schemas"]["CliInstallCommands"];
|
|
62008
62038
|
/**
|
|
62009
|
-
* @description `unchanged`: the
|
|
62039
|
+
* @description `unchanged`: the files match the last publish, so the version stays; every file is still rewritten
|
|
62010
62040
|
* @enum {string}
|
|
62011
62041
|
*/
|
|
62012
|
-
outcome: "
|
|
62013
|
-
|
|
62042
|
+
outcome: "published" | "unchanged";
|
|
62043
|
+
publishedAt: string;
|
|
62044
|
+
slug: string;
|
|
62014
62045
|
version: string;
|
|
62015
62046
|
};
|
|
62016
62047
|
CliPublishStatus: {
|
|
62017
|
-
|
|
62018
|
-
|
|
62019
|
-
|
|
62020
|
-
/** @description The
|
|
62021
|
-
|
|
62022
|
-
npmUrl: string | null;
|
|
62023
|
-
/** @description `@rtype/<binName>`, or null while the surface has no command name */
|
|
62024
|
-
packageName: string | null;
|
|
62025
|
-
/** @description The latest version npm serves */
|
|
62026
|
-
publishedVersion: string | null;
|
|
62027
|
-
registryUrl: string | null;
|
|
62048
|
+
install: components["schemas"]["CliInstallCommands"];
|
|
62049
|
+
/** @description When the files last changed */
|
|
62050
|
+
publishedAt: string | null;
|
|
62051
|
+
/** @description The install slug, which is the surface's command name; null while it has none */
|
|
62052
|
+
slug: string | null;
|
|
62028
62053
|
/**
|
|
62029
|
-
* @description `
|
|
62054
|
+
* @description `published`: the install host serves this surface's files under its slug. `not_published`: nothing is published, the surface has no valid command name, or another surface holds the slug.
|
|
62030
62055
|
* @enum {string}
|
|
62031
62056
|
*/
|
|
62032
|
-
state: "not_published" | "
|
|
62057
|
+
state: "not_published" | "published";
|
|
62058
|
+
/** @description The version in the published `cli.json` */
|
|
62059
|
+
version: string | null;
|
|
62033
62060
|
};
|
|
62034
62061
|
ClientInputDeliveryReceipt: {
|
|
62035
62062
|
deliveryId: string;
|
|
@@ -64667,7 +64694,7 @@ interface components {
|
|
|
64667
64694
|
[key: string]: unknown;
|
|
64668
64695
|
};
|
|
64669
64696
|
/** @enum {string} */
|
|
64670
|
-
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
|
|
64697
|
+
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared" | "runtype.api_key_request.decided";
|
|
64671
64698
|
/** @description JSON Schema for the occurrence `data` */
|
|
64672
64699
|
payloadSchema: {
|
|
64673
64700
|
[key: string]: unknown;
|
|
@@ -64692,7 +64719,7 @@ interface components {
|
|
|
64692
64719
|
/** @description Occurrence id (typeid, `pev_` prefix) */
|
|
64693
64720
|
eventId: string;
|
|
64694
64721
|
/** @enum {string} */
|
|
64695
|
-
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared";
|
|
64722
|
+
name: "runtype.execution.failed" | "runtype.approval.requested" | "runtype.schedule.run_failed" | "runtype.eval.run_completed" | "runtype.simulation.run_completed" | "runtype.conversation.human_takeover" | "runtype.skill.proposal_created" | "runtype.task.input_required" | "runtype.task.completed" | "runtype.task.failed" | "runtype.task.cancelled" | "runtype.signal.fired" | "runtype.signal.cluster_appeared" | "runtype.api_key_request.decided";
|
|
64696
64723
|
/** @description When it happened (ISO 8601) */
|
|
64697
64724
|
timestamp: string;
|
|
64698
64725
|
};
|
|
@@ -64721,6 +64748,10 @@ interface components {
|
|
|
64721
64748
|
ref: string;
|
|
64722
64749
|
/** @enum {string} */
|
|
64723
64750
|
result: "created" | "updated" | "unchanged" | "failed" | "skipped" | "pruned";
|
|
64751
|
+
/** @description Surface apply only: the signed-in sessions an identity provider or issuer change ended. */
|
|
64752
|
+
sessionsSignedOut?: number;
|
|
64753
|
+
/** @description Surface dryRun only: applying it changes the identity provider or issuer and signs out every session. */
|
|
64754
|
+
signsOutSessions?: boolean;
|
|
64724
64755
|
/** @description Non-blocking advisories, e.g. SCHEDULE_AGENT_CONFIG_UNSUPPORTED when converging an agent moved `live` onto a version its active schedules cannot run. */
|
|
64725
64756
|
warnings?: string[];
|
|
64726
64757
|
}[];
|
|
@@ -66081,6 +66112,8 @@ interface components {
|
|
|
66081
66112
|
contentHash: string;
|
|
66082
66113
|
/** @enum {string} */
|
|
66083
66114
|
result: "unchanged" | "created" | "updated";
|
|
66115
|
+
/** @description Present when the update changed the identity provider or issuer: the number of signed-in sessions it ended. */
|
|
66116
|
+
sessionsSignedOut?: number;
|
|
66084
66117
|
surfaceId: string;
|
|
66085
66118
|
} | {
|
|
66086
66119
|
/** @enum {string} */
|
|
@@ -66093,6 +66126,8 @@ interface components {
|
|
|
66093
66126
|
remoteHash?: string;
|
|
66094
66127
|
/** @enum {string} */
|
|
66095
66128
|
result: "plan";
|
|
66129
|
+
/** @description True when applying this plan changes the identity provider or issuer and signs out every session. */
|
|
66130
|
+
signsOutSessions?: boolean;
|
|
66096
66131
|
surfaceId?: string;
|
|
66097
66132
|
};
|
|
66098
66133
|
SurfacePullResponse: {
|
|
@@ -70118,6 +70153,16 @@ export interface ScheduleRunNowResponse {
|
|
|
70118
70153
|
* Generated from the OpenAPI spec — GET /v1/schedules/{id}/runs list item.
|
|
70119
70154
|
*/
|
|
70120
70155
|
export type ScheduleRun = paths['/v1/schedules/{id}/runs']['get']['responses'][200]['content']['application/json']['data'][number];
|
|
70156
|
+
/**
|
|
70157
|
+
* One response from a schedule's run history: the runs, whether older runs remain, and the cursor to read them.
|
|
70158
|
+
* Generated from the OpenAPI spec — GET /v1/schedules/{id}/runs.
|
|
70159
|
+
*/
|
|
70160
|
+
export type ScheduleRunsPage = paths['/v1/schedules/{id}/runs']['get']['responses'][200]['content']['application/json'];
|
|
70161
|
+
/** Paging for a schedule's run history. Omit both to read every run; `limit` is at most 500. */
|
|
70162
|
+
export interface ScheduleRunsListParams {
|
|
70163
|
+
limit?: number;
|
|
70164
|
+
cursor?: string;
|
|
70165
|
+
}
|
|
70121
70166
|
export interface ScheduleListParams extends ListParams {
|
|
70122
70167
|
search?: string;
|
|
70123
70168
|
status?: 'active' | 'paused';
|
|
@@ -71791,7 +71836,8 @@ export declare class RecordsEndpoint {
|
|
|
71791
71836
|
notFoundIds?: string[];
|
|
71792
71837
|
}>;
|
|
71793
71838
|
/**
|
|
71794
|
-
* Bulk edit multiple records
|
|
71839
|
+
* Bulk edit multiple records. At most 5,000 targets per call, dry runs included; a larger set
|
|
71840
|
+
* returns 400 `bulk_edit_too_many_records`, so narrow the filter and edit in batches.
|
|
71795
71841
|
*/
|
|
71796
71842
|
bulkEdit(data: BulkEditRequest): Promise<BulkEditResponse>;
|
|
71797
71843
|
/**
|
|
@@ -74372,11 +74418,10 @@ export declare class SchedulesEndpoint {
|
|
|
74372
74418
|
*/
|
|
74373
74419
|
resume(id: string): Promise<ScheduleStatusResponse>;
|
|
74374
74420
|
/**
|
|
74375
|
-
* List the run history for a specific schedule.
|
|
74421
|
+
* List the run history for a specific schedule, newest first. Without `params` it returns every run.
|
|
74422
|
+
* Pass `limit` (at most 500) to page, then pass `nextCursor` as `cursor` while `hasMore` is true.
|
|
74376
74423
|
*/
|
|
74377
|
-
listRuns(id: string): Promise<
|
|
74378
|
-
data: ScheduleRun[];
|
|
74379
|
-
}>;
|
|
74424
|
+
listRuns(id: string, params?: ScheduleRunsListParams): Promise<ScheduleRunsPage>;
|
|
74380
74425
|
/**
|
|
74381
74426
|
* Get statistics (success rate, average duration/cost, 7-day history) for a schedule.
|
|
74382
74427
|
*/
|
|
@@ -78992,6 +79037,8 @@ interface EnsureSurfaceConverged {
|
|
|
78992
79037
|
surfaceId: string;
|
|
78993
79038
|
/** The server-computed canonical hash (echo this — never your own). */
|
|
78994
79039
|
contentHash: string;
|
|
79040
|
+
/** Present when the update changed the identity provider or issuer: the signed-in sessions it ended. */
|
|
79041
|
+
sessionsSignedOut?: number;
|
|
78995
79042
|
}
|
|
78996
79043
|
interface EnsureSurfacePlan {
|
|
78997
79044
|
result: 'plan';
|
|
@@ -79000,6 +79047,8 @@ interface EnsureSurfacePlan {
|
|
|
79000
79047
|
contentHash: string;
|
|
79001
79048
|
remoteHash?: string;
|
|
79002
79049
|
surfaceId?: string;
|
|
79050
|
+
/** True when applying this plan changes the identity provider or issuer and signs out every session. */
|
|
79051
|
+
signsOutSessions?: boolean;
|
|
79003
79052
|
}
|
|
79004
79053
|
type EnsureSurfaceResult = EnsureSurfaceConverged | EnsureSurfacePlan;
|
|
79005
79054
|
interface SurfacePullResult {
|
package/dist/index.mjs
CHANGED
|
@@ -596,14 +596,6 @@ async function processStream(response, callbacks = {}, _options = {}) {
|
|
|
596
596
|
callbacks.onError?.(error);
|
|
597
597
|
throw error;
|
|
598
598
|
}
|
|
599
|
-
const reader = response.body?.getReader();
|
|
600
|
-
if (!reader) {
|
|
601
|
-
const error = /* @__PURE__ */ new Error("Response body is not readable");
|
|
602
|
-
callbacks.onError?.(error);
|
|
603
|
-
throw error;
|
|
604
|
-
}
|
|
605
|
-
const decoder = new TextDecoder();
|
|
606
|
-
let buffer = "";
|
|
607
599
|
const results = /* @__PURE__ */ new Map();
|
|
608
600
|
let flowSummary = {
|
|
609
601
|
flowId: "",
|
|
@@ -621,18 +613,17 @@ async function processStream(response, callbacks = {}, _options = {}) {
|
|
|
621
613
|
if (response.headers.get("content-type")?.includes("application/json")) try {
|
|
622
614
|
const data = await response.json();
|
|
623
615
|
if (data.events && Array.isArray(data.events)) {
|
|
624
|
-
for (const event of data.events)
|
|
625
|
-
if (data.flowId) flowSummary.flowId = data.flowId;
|
|
626
|
-
if (data.recordId) flowSummary.flowName = data.recordId;
|
|
616
|
+
for (const event of data.events) dispatch(event);
|
|
627
617
|
if (data.executionSummary) {
|
|
628
618
|
const s = data.executionSummary;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
619
|
+
flowSummary.flowId || (flowSummary.flowId = s.flowId);
|
|
620
|
+
flowSummary.flowName || (flowSummary.flowName = s.flowName);
|
|
621
|
+
flowSummary.totalSteps || (flowSummary.totalSteps = s.totalSteps);
|
|
622
|
+
flowSummary.successfulSteps || (flowSummary.successfulSteps = s.successfulSteps);
|
|
623
|
+
flowSummary.failedSteps || (flowSummary.failedSteps = s.failedSteps);
|
|
624
|
+
flowSummary.executionTime || (flowSummary.executionTime = s.executionTime);
|
|
635
625
|
}
|
|
626
|
+
flowSummary.flowId || (flowSummary.flowId = data.flowId);
|
|
636
627
|
return {
|
|
637
628
|
flowId: flowSummary.flowId || "",
|
|
638
629
|
flowName: flowSummary.flowName || "",
|
|
@@ -657,6 +648,14 @@ async function processStream(response, callbacks = {}, _options = {}) {
|
|
|
657
648
|
throw e;
|
|
658
649
|
}
|
|
659
650
|
}
|
|
651
|
+
const reader = response.bodyUsed ? void 0 : response.body?.getReader();
|
|
652
|
+
if (!reader) {
|
|
653
|
+
const error = /* @__PURE__ */ new Error("Response body is not readable");
|
|
654
|
+
callbacks.onError?.(error);
|
|
655
|
+
throw error;
|
|
656
|
+
}
|
|
657
|
+
const decoder = new TextDecoder();
|
|
658
|
+
let buffer = "";
|
|
660
659
|
try {
|
|
661
660
|
while (true) {
|
|
662
661
|
const { done, value } = await reader.read();
|
|
@@ -4840,7 +4839,8 @@ var RecordsEndpoint = class {
|
|
|
4840
4839
|
return this.client.post("/records/bulk-delete", { ids });
|
|
4841
4840
|
}
|
|
4842
4841
|
/**
|
|
4843
|
-
* Bulk edit multiple records
|
|
4842
|
+
* Bulk edit multiple records. At most 5,000 targets per call, dry runs included; a larger set
|
|
4843
|
+
* returns 400 `bulk_edit_too_many_records`, so narrow the filter and edit in batches.
|
|
4844
4844
|
*/
|
|
4845
4845
|
async bulkEdit(data) {
|
|
4846
4846
|
return this.client.post("/records/bulk-edit", data);
|
|
@@ -8670,10 +8670,12 @@ var SchedulesEndpoint = class {
|
|
|
8670
8670
|
return this.client.post(`/schedules/${id}/resume`);
|
|
8671
8671
|
}
|
|
8672
8672
|
/**
|
|
8673
|
-
* List the run history for a specific schedule.
|
|
8673
|
+
* List the run history for a specific schedule, newest first. Without `params` it returns every run.
|
|
8674
|
+
* Pass `limit` (at most 500) to page, then pass `nextCursor` as `cursor` while `hasMore` is true.
|
|
8674
8675
|
*/
|
|
8675
|
-
async listRuns(id) {
|
|
8676
|
-
|
|
8676
|
+
async listRuns(id, params) {
|
|
8677
|
+
const path = `/schedules/${id}/runs`;
|
|
8678
|
+
return params ? this.client.get(path, params) : this.client.get(path);
|
|
8677
8679
|
}
|
|
8678
8680
|
/**
|
|
8679
8681
|
* Get statistics (success rate, average duration/cost, 7-day history) for a schedule.
|
|
@@ -14746,7 +14748,7 @@ function transformQueryParams(params) {
|
|
|
14746
14748
|
return result;
|
|
14747
14749
|
}
|
|
14748
14750
|
// src/version.ts
|
|
14749
|
-
const SDK_VERSION = "11.18.
|
|
14751
|
+
const SDK_VERSION = "11.18.2";
|
|
14750
14752
|
/**
|
|
14751
14753
|
* Canonical client identity the API uses for attribution
|
|
14752
14754
|
* (`detectActorSource` in apps/api/src/lib/audit-log.ts keys `'sdk'` off the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtypelabs/sdk",
|
|
3
|
-
"version": "11.18.
|
|
3
|
+
"version": "11.18.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript SDK for the Runtype API with fluent methods. Use it to quickly realize AI products, agents, and workflows.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@runtypelabs/shared": "3.
|
|
27
|
+
"@runtypelabs/shared": "3.113.0",
|
|
28
28
|
"openapi-typescript": "^7.13.0",
|
|
29
29
|
"tsdown": "^0.23.2",
|
|
30
30
|
"typescript": "^6.0.3",
|