@retab/node 1.0.95 → 1.0.98
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/api/client.d.ts +0 -2
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +0 -2
- package/dist/api/documents/client.js +9 -9
- package/dist/api/edit/agent/client.js +1 -1
- package/dist/api/edit/templates/client.js +8 -8
- package/dist/api/extractions/client.js +6 -6
- package/dist/api/files/client.js +4 -4
- package/dist/api/jobs/client.d.ts +10 -10
- package/dist/api/jobs/client.d.ts.map +1 -1
- package/dist/api/jobs/client.js +15 -15
- package/dist/api/projects/client.js +6 -6
- package/dist/api/schemas/client.js +1 -1
- package/dist/api/workflows/client.d.ts +18 -2
- package/dist/api/workflows/client.d.ts.map +1 -1
- package/dist/api/workflows/client.js +33 -1
- package/dist/api/workflows/runs/client.d.ts +1 -1
- package/dist/api/workflows/runs/client.js +8 -8
- package/dist/api/workflows/runs/steps/client.d.ts +8 -12
- package/dist/api/workflows/runs/steps/client.d.ts.map +1 -1
- package/dist/api/workflows/runs/steps/client.js +13 -17
- package/dist/client.js +1 -1
- package/dist/generated_types.d.ts +44 -44
- package/dist/generated_types.js +2 -2
- package/dist/types.d.ts +229 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +41 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ function sleep(ms) {
|
|
|
9
9
|
* Workflow Runs API client for managing workflow executions.
|
|
10
10
|
*
|
|
11
11
|
* Sub-clients:
|
|
12
|
-
* - steps: Step output operations (get,
|
|
12
|
+
* - steps: Step output operations (get, list)
|
|
13
13
|
*/
|
|
14
14
|
export default class APIWorkflowRuns extends CompositionClient {
|
|
15
15
|
constructor(client) {
|
|
@@ -64,7 +64,7 @@ export default class APIWorkflowRuns extends CompositionClient {
|
|
|
64
64
|
body.json_inputs = jsonInputs;
|
|
65
65
|
}
|
|
66
66
|
return this._fetchJson(ZWorkflowRun, {
|
|
67
|
-
url: `/
|
|
67
|
+
url: `/workflows/${workflowId}/run`,
|
|
68
68
|
method: "POST",
|
|
69
69
|
body: { ...body, ...(options?.body || {}) },
|
|
70
70
|
params: options?.params,
|
|
@@ -86,7 +86,7 @@ export default class APIWorkflowRuns extends CompositionClient {
|
|
|
86
86
|
*/
|
|
87
87
|
async get(runId, options) {
|
|
88
88
|
return this._fetchJson(ZWorkflowRun, {
|
|
89
|
-
url: `/
|
|
89
|
+
url: `/workflows/runs/${runId}`,
|
|
90
90
|
method: "GET",
|
|
91
91
|
params: options?.params,
|
|
92
92
|
headers: options?.headers,
|
|
@@ -130,7 +130,7 @@ export default class APIWorkflowRuns extends CompositionClient {
|
|
|
130
130
|
};
|
|
131
131
|
const cleanParams = Object.fromEntries(Object.entries(params).filter(([_, v]) => v !== undefined));
|
|
132
132
|
return this._fetchJson(ZPaginatedList, {
|
|
133
|
-
url: "/
|
|
133
|
+
url: "/workflows/runs",
|
|
134
134
|
method: "GET",
|
|
135
135
|
params: { ...cleanParams, ...(options?.params || {}) },
|
|
136
136
|
headers: options?.headers,
|
|
@@ -149,7 +149,7 @@ export default class APIWorkflowRuns extends CompositionClient {
|
|
|
149
149
|
*/
|
|
150
150
|
async delete(runId, options) {
|
|
151
151
|
return this._fetchJson({
|
|
152
|
-
url: `/
|
|
152
|
+
url: `/workflows/runs/${runId}`,
|
|
153
153
|
method: "DELETE",
|
|
154
154
|
params: options?.params,
|
|
155
155
|
headers: options?.headers,
|
|
@@ -175,7 +175,7 @@ export default class APIWorkflowRuns extends CompositionClient {
|
|
|
175
175
|
if (commandId !== undefined)
|
|
176
176
|
body.command_id = commandId;
|
|
177
177
|
return this._fetchJson(ZCancelWorkflowResponse, {
|
|
178
|
-
url: `/
|
|
178
|
+
url: `/workflows/runs/${runId}/cancel`,
|
|
179
179
|
method: "POST",
|
|
180
180
|
body: { ...body, ...(options?.body || {}) },
|
|
181
181
|
params: options?.params,
|
|
@@ -202,7 +202,7 @@ export default class APIWorkflowRuns extends CompositionClient {
|
|
|
202
202
|
if (commandId !== undefined)
|
|
203
203
|
body.command_id = commandId;
|
|
204
204
|
return this._fetchJson(ZWorkflowRun, {
|
|
205
|
-
url: `/
|
|
205
|
+
url: `/workflows/runs/${runId}/restart`,
|
|
206
206
|
method: "POST",
|
|
207
207
|
body: { ...body, ...(options?.body || {}) },
|
|
208
208
|
params: options?.params,
|
|
@@ -241,7 +241,7 @@ export default class APIWorkflowRuns extends CompositionClient {
|
|
|
241
241
|
if (commandId !== undefined)
|
|
242
242
|
body.command_id = commandId;
|
|
243
243
|
return this._fetchJson(ZResumeWorkflowResponse, {
|
|
244
|
-
url: `/
|
|
244
|
+
url: `/workflows/runs/${runId}/resume`,
|
|
245
245
|
method: "POST",
|
|
246
246
|
body: { ...body, ...(options?.body || {}) },
|
|
247
247
|
params: options?.params,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CompositionClient, RequestOptions } from "../../../../client.js";
|
|
2
|
-
import { StepOutputResponse,
|
|
2
|
+
import { StepOutputResponse, WorkflowRunStep } from "../../../../types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Workflow Run Steps API client for accessing step-level outputs.
|
|
5
5
|
*
|
|
6
|
-
* Usage: `client.workflows.runs.steps.get(runId, nodeId)`
|
|
6
|
+
* Usage: `client.workflows.runs.steps.get(runId, nodeId)` or `client.workflows.runs.steps.list(runId)`
|
|
7
7
|
*/
|
|
8
8
|
export default class APIWorkflowRunSteps extends CompositionClient {
|
|
9
9
|
constructor(client: CompositionClient);
|
|
@@ -23,24 +23,20 @@ export default class APIWorkflowRunSteps extends CompositionClient {
|
|
|
23
23
|
*/
|
|
24
24
|
get(runId: string, nodeId: string, options?: RequestOptions): Promise<StepOutputResponse>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* List all persisted step documents for a workflow run.
|
|
27
27
|
*
|
|
28
28
|
* @param runId - The ID of the workflow run
|
|
29
|
-
* @param nodeIds - List of node IDs to fetch outputs for (max 1000)
|
|
30
29
|
* @param options - Optional request options
|
|
31
|
-
* @returns
|
|
30
|
+
* @returns All step documents for the run
|
|
32
31
|
*
|
|
33
32
|
* @example
|
|
34
33
|
* ```typescript
|
|
35
|
-
* const
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* );
|
|
39
|
-
* for (const [nodeId, step] of Object.entries(batch.outputs)) {
|
|
40
|
-
* console.log(`${nodeId}: ${step.status}`);
|
|
34
|
+
* const steps = await client.workflows.runs.steps.list("run_abc123");
|
|
35
|
+
* for (const step of steps) {
|
|
36
|
+
* console.log(`${step.node_id}: ${step.status}`);
|
|
41
37
|
* }
|
|
42
38
|
* ```
|
|
43
39
|
*/
|
|
44
|
-
|
|
40
|
+
list(runId: string, options?: RequestOptions): Promise<WorkflowRunStep[]>;
|
|
45
41
|
}
|
|
46
42
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/api/workflows/runs/steps/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EACH,kBAAkB,EAElB,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../../src/api/workflows/runs/steps/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EACH,kBAAkB,EAElB,eAAe,EAElB,MAAM,sBAAsB,CAAC;AAG9B;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,mBAAoB,SAAQ,iBAAiB;gBAClD,MAAM,EAAE,iBAAiB;IAIrC;;;;;;;;;;;;;OAaG;IACG,GAAG,CACL,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,kBAAkB,CAAC;IAS9B;;;;;;;;;;;;;;OAcG;IACG,IAAI,CACN,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,cAAc,GACzB,OAAO,CAAC,eAAe,EAAE,CAAC;CAQhC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CompositionClient } from "../../../../client.js";
|
|
2
|
-
import { ZStepOutputResponse,
|
|
2
|
+
import { ZStepOutputResponse, ZWorkflowRunStep, } from "../../../../types.js";
|
|
3
|
+
import * as z from "zod";
|
|
3
4
|
/**
|
|
4
5
|
* Workflow Run Steps API client for accessing step-level outputs.
|
|
5
6
|
*
|
|
6
|
-
* Usage: `client.workflows.runs.steps.get(runId, nodeId)`
|
|
7
|
+
* Usage: `client.workflows.runs.steps.get(runId, nodeId)` or `client.workflows.runs.steps.list(runId)`
|
|
7
8
|
*/
|
|
8
9
|
export default class APIWorkflowRunSteps extends CompositionClient {
|
|
9
10
|
constructor(client) {
|
|
@@ -25,36 +26,31 @@ export default class APIWorkflowRunSteps extends CompositionClient {
|
|
|
25
26
|
*/
|
|
26
27
|
async get(runId, nodeId, options) {
|
|
27
28
|
return this._fetchJson(ZStepOutputResponse, {
|
|
28
|
-
url: `/
|
|
29
|
+
url: `/workflows/runs/${runId}/steps/${nodeId}`,
|
|
29
30
|
method: "GET",
|
|
30
31
|
params: options?.params,
|
|
31
32
|
headers: options?.headers,
|
|
32
33
|
});
|
|
33
34
|
}
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
+
* List all persisted step documents for a workflow run.
|
|
36
37
|
*
|
|
37
38
|
* @param runId - The ID of the workflow run
|
|
38
|
-
* @param nodeIds - List of node IDs to fetch outputs for (max 1000)
|
|
39
39
|
* @param options - Optional request options
|
|
40
|
-
* @returns
|
|
40
|
+
* @returns All step documents for the run
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* ```typescript
|
|
44
|
-
* const
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* );
|
|
48
|
-
* for (const [nodeId, step] of Object.entries(batch.outputs)) {
|
|
49
|
-
* console.log(`${nodeId}: ${step.status}`);
|
|
44
|
+
* const steps = await client.workflows.runs.steps.list("run_abc123");
|
|
45
|
+
* for (const step of steps) {
|
|
46
|
+
* console.log(`${step.node_id}: ${step.status}`);
|
|
50
47
|
* }
|
|
51
48
|
* ```
|
|
52
49
|
*/
|
|
53
|
-
async
|
|
54
|
-
return this._fetchJson(
|
|
55
|
-
url: `/
|
|
56
|
-
method: "
|
|
57
|
-
body: { node_ids: nodeIds, ...(options?.body || {}) },
|
|
50
|
+
async list(runId, options) {
|
|
51
|
+
return this._fetchJson(z.array(ZWorkflowRunStep), {
|
|
52
|
+
url: `/workflows/runs/${runId}/steps`,
|
|
53
|
+
method: "GET",
|
|
58
54
|
params: options?.params,
|
|
59
55
|
headers: options?.headers,
|
|
60
56
|
});
|
package/dist/client.js
CHANGED
|
@@ -116,7 +116,7 @@ export class FetcherClient extends AbstractClient {
|
|
|
116
116
|
if (params.params) {
|
|
117
117
|
query = "?" + new URLSearchParams(Object.fromEntries(Object.entries(params.params).filter(([_, v]) => v !== undefined))).toString();
|
|
118
118
|
}
|
|
119
|
-
let url = (this.options.baseUrl || "https://api.retab.com") + params.url + query;
|
|
119
|
+
let url = (this.options.baseUrl || "https://api.retab.com/v1") + params.url + query;
|
|
120
120
|
let headers = params.headers || {};
|
|
121
121
|
let init = {
|
|
122
122
|
method: params.method,
|
|
@@ -3809,9 +3809,9 @@ export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
3809
3809
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
3810
3810
|
steps: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
3811
3811
|
node_id: z.ZodString;
|
|
3812
|
-
node_type: z.
|
|
3812
|
+
node_type: z.ZodString;
|
|
3813
3813
|
node_label: z.ZodString;
|
|
3814
|
-
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
3814
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"queued">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"skipped">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
3815
3815
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3816
3816
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3817
3817
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -3896,9 +3896,9 @@ export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
3896
3896
|
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3897
3897
|
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
3898
3898
|
}, "strip", z.ZodTypeAny, {
|
|
3899
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
3899
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
3900
3900
|
node_id: string;
|
|
3901
|
-
node_type:
|
|
3901
|
+
node_type: string;
|
|
3902
3902
|
node_label: string;
|
|
3903
3903
|
error?: string | null | undefined;
|
|
3904
3904
|
started_at?: string | null | undefined;
|
|
@@ -3934,9 +3934,9 @@ export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
3934
3934
|
human_reviewed_at?: string | null | undefined;
|
|
3935
3935
|
human_review_approved?: boolean | null | undefined;
|
|
3936
3936
|
}, {
|
|
3937
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
3937
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
3938
3938
|
node_id: string;
|
|
3939
|
-
node_type:
|
|
3939
|
+
node_type: string;
|
|
3940
3940
|
node_label: string;
|
|
3941
3941
|
error?: string | null | undefined;
|
|
3942
3942
|
started_at?: string | null | undefined;
|
|
@@ -4001,9 +4001,9 @@ export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4001
4001
|
workflow_id: string;
|
|
4002
4002
|
workflow_name: string;
|
|
4003
4003
|
steps: {
|
|
4004
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4004
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4005
4005
|
node_id: string;
|
|
4006
|
-
node_type:
|
|
4006
|
+
node_type: string;
|
|
4007
4007
|
node_label: string;
|
|
4008
4008
|
error?: string | null | undefined;
|
|
4009
4009
|
started_at?: string | null | undefined;
|
|
@@ -4059,9 +4059,9 @@ export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4059
4059
|
workflow_id: string;
|
|
4060
4060
|
workflow_name: string;
|
|
4061
4061
|
steps: {
|
|
4062
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4062
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4063
4063
|
node_id: string;
|
|
4064
|
-
node_type:
|
|
4064
|
+
node_type: string;
|
|
4065
4065
|
node_label: string;
|
|
4066
4066
|
error?: string | null | undefined;
|
|
4067
4067
|
started_at?: string | null | undefined;
|
|
@@ -4122,9 +4122,9 @@ export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4122
4122
|
workflow_id: string;
|
|
4123
4123
|
workflow_name: string;
|
|
4124
4124
|
steps: {
|
|
4125
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4125
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4126
4126
|
node_id: string;
|
|
4127
|
-
node_type:
|
|
4127
|
+
node_type: string;
|
|
4128
4128
|
node_label: string;
|
|
4129
4129
|
error?: string | null | undefined;
|
|
4130
4130
|
started_at?: string | null | undefined;
|
|
@@ -4183,9 +4183,9 @@ export declare const ZCancelWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4183
4183
|
workflow_id: string;
|
|
4184
4184
|
workflow_name: string;
|
|
4185
4185
|
steps: {
|
|
4186
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4186
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4187
4187
|
node_id: string;
|
|
4188
|
-
node_type:
|
|
4188
|
+
node_type: string;
|
|
4189
4189
|
node_label: string;
|
|
4190
4190
|
error?: string | null | undefined;
|
|
4191
4191
|
started_at?: string | null | undefined;
|
|
@@ -4286,9 +4286,9 @@ export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4286
4286
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4287
4287
|
steps: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
4288
4288
|
node_id: z.ZodString;
|
|
4289
|
-
node_type: z.
|
|
4289
|
+
node_type: z.ZodString;
|
|
4290
4290
|
node_label: z.ZodString;
|
|
4291
|
-
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4291
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"queued">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"skipped">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4292
4292
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4293
4293
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4294
4294
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -4373,9 +4373,9 @@ export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4373
4373
|
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4374
4374
|
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4375
4375
|
}, "strip", z.ZodTypeAny, {
|
|
4376
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4376
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4377
4377
|
node_id: string;
|
|
4378
|
-
node_type:
|
|
4378
|
+
node_type: string;
|
|
4379
4379
|
node_label: string;
|
|
4380
4380
|
error?: string | null | undefined;
|
|
4381
4381
|
started_at?: string | null | undefined;
|
|
@@ -4411,9 +4411,9 @@ export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4411
4411
|
human_reviewed_at?: string | null | undefined;
|
|
4412
4412
|
human_review_approved?: boolean | null | undefined;
|
|
4413
4413
|
}, {
|
|
4414
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4414
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4415
4415
|
node_id: string;
|
|
4416
|
-
node_type:
|
|
4416
|
+
node_type: string;
|
|
4417
4417
|
node_label: string;
|
|
4418
4418
|
error?: string | null | undefined;
|
|
4419
4419
|
started_at?: string | null | undefined;
|
|
@@ -4478,9 +4478,9 @@ export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4478
4478
|
workflow_id: string;
|
|
4479
4479
|
workflow_name: string;
|
|
4480
4480
|
steps: {
|
|
4481
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4481
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4482
4482
|
node_id: string;
|
|
4483
|
-
node_type:
|
|
4483
|
+
node_type: string;
|
|
4484
4484
|
node_label: string;
|
|
4485
4485
|
error?: string | null | undefined;
|
|
4486
4486
|
started_at?: string | null | undefined;
|
|
@@ -4536,9 +4536,9 @@ export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4536
4536
|
workflow_id: string;
|
|
4537
4537
|
workflow_name: string;
|
|
4538
4538
|
steps: {
|
|
4539
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4539
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4540
4540
|
node_id: string;
|
|
4541
|
-
node_type:
|
|
4541
|
+
node_type: string;
|
|
4542
4542
|
node_label: string;
|
|
4543
4543
|
error?: string | null | undefined;
|
|
4544
4544
|
started_at?: string | null | undefined;
|
|
@@ -4601,9 +4601,9 @@ export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4601
4601
|
workflow_id: string;
|
|
4602
4602
|
workflow_name: string;
|
|
4603
4603
|
steps: {
|
|
4604
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4604
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4605
4605
|
node_id: string;
|
|
4606
|
-
node_type:
|
|
4606
|
+
node_type: string;
|
|
4607
4607
|
node_label: string;
|
|
4608
4608
|
error?: string | null | undefined;
|
|
4609
4609
|
started_at?: string | null | undefined;
|
|
@@ -4664,9 +4664,9 @@ export declare const ZResumeWorkflowResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4664
4664
|
workflow_id: string;
|
|
4665
4665
|
workflow_name: string;
|
|
4666
4666
|
steps: {
|
|
4667
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4667
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4668
4668
|
node_id: string;
|
|
4669
|
-
node_type:
|
|
4669
|
+
node_type: string;
|
|
4670
4670
|
node_label: string;
|
|
4671
4671
|
error?: string | null | undefined;
|
|
4672
4672
|
started_at?: string | null | undefined;
|
|
@@ -4796,9 +4796,9 @@ export declare const ZStepOutputsBatchResponse: z.ZodLazy<z.ZodObject<{
|
|
|
4796
4796
|
export type StepOutputsBatchResponse = z.infer<typeof ZStepOutputsBatchResponse>;
|
|
4797
4797
|
export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
4798
4798
|
node_id: z.ZodString;
|
|
4799
|
-
node_type: z.
|
|
4799
|
+
node_type: z.ZodString;
|
|
4800
4800
|
node_label: z.ZodString;
|
|
4801
|
-
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4801
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"queued">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"skipped">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4802
4802
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4803
4803
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4804
4804
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -4883,9 +4883,9 @@ export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
|
4883
4883
|
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4884
4884
|
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
4885
4885
|
}, "strip", z.ZodTypeAny, {
|
|
4886
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4886
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4887
4887
|
node_id: string;
|
|
4888
|
-
node_type:
|
|
4888
|
+
node_type: string;
|
|
4889
4889
|
node_label: string;
|
|
4890
4890
|
error?: string | null | undefined;
|
|
4891
4891
|
started_at?: string | null | undefined;
|
|
@@ -4921,9 +4921,9 @@ export declare const ZStepStatus: z.ZodLazy<z.ZodObject<{
|
|
|
4921
4921
|
human_reviewed_at?: string | null | undefined;
|
|
4922
4922
|
human_review_approved?: boolean | null | undefined;
|
|
4923
4923
|
}, {
|
|
4924
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
4924
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
4925
4925
|
node_id: string;
|
|
4926
|
-
node_type:
|
|
4926
|
+
node_type: string;
|
|
4927
4927
|
node_label: string;
|
|
4928
4928
|
error?: string | null | undefined;
|
|
4929
4929
|
started_at?: string | null | undefined;
|
|
@@ -4971,9 +4971,9 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
4971
4971
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4972
4972
|
steps: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
4973
4973
|
node_id: z.ZodString;
|
|
4974
|
-
node_type: z.
|
|
4974
|
+
node_type: z.ZodString;
|
|
4975
4975
|
node_label: z.ZodString;
|
|
4976
|
-
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4976
|
+
status: z.ZodUnion<[z.ZodLiteral<"pending">, z.ZodLiteral<"queued">, z.ZodLiteral<"running">, z.ZodLiteral<"completed">, z.ZodLiteral<"skipped">, z.ZodLiteral<"error">, z.ZodLiteral<"waiting_for_human">, z.ZodLiteral<"cancelled">]>;
|
|
4977
4977
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4978
4978
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4979
4979
|
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -5058,9 +5058,9 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
5058
5058
|
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5059
5059
|
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
5060
5060
|
}, "strip", z.ZodTypeAny, {
|
|
5061
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5061
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
5062
5062
|
node_id: string;
|
|
5063
|
-
node_type:
|
|
5063
|
+
node_type: string;
|
|
5064
5064
|
node_label: string;
|
|
5065
5065
|
error?: string | null | undefined;
|
|
5066
5066
|
started_at?: string | null | undefined;
|
|
@@ -5096,9 +5096,9 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
5096
5096
|
human_reviewed_at?: string | null | undefined;
|
|
5097
5097
|
human_review_approved?: boolean | null | undefined;
|
|
5098
5098
|
}, {
|
|
5099
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5099
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
5100
5100
|
node_id: string;
|
|
5101
|
-
node_type:
|
|
5101
|
+
node_type: string;
|
|
5102
5102
|
node_label: string;
|
|
5103
5103
|
error?: string | null | undefined;
|
|
5104
5104
|
started_at?: string | null | undefined;
|
|
@@ -5163,9 +5163,9 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
5163
5163
|
workflow_id: string;
|
|
5164
5164
|
workflow_name: string;
|
|
5165
5165
|
steps: {
|
|
5166
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5166
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
5167
5167
|
node_id: string;
|
|
5168
|
-
node_type:
|
|
5168
|
+
node_type: string;
|
|
5169
5169
|
node_label: string;
|
|
5170
5170
|
error?: string | null | undefined;
|
|
5171
5171
|
started_at?: string | null | undefined;
|
|
@@ -5221,9 +5221,9 @@ export declare const ZWorkflowRun: z.ZodLazy<z.ZodObject<{
|
|
|
5221
5221
|
workflow_id: string;
|
|
5222
5222
|
workflow_name: string;
|
|
5223
5223
|
steps: {
|
|
5224
|
-
status: "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human";
|
|
5224
|
+
status: "queued" | "completed" | "cancelled" | "error" | "pending" | "running" | "waiting_for_human" | "skipped";
|
|
5225
5225
|
node_id: string;
|
|
5226
|
-
node_type:
|
|
5226
|
+
node_type: string;
|
|
5227
5227
|
node_label: string;
|
|
5228
5228
|
error?: string | null | undefined;
|
|
5229
5229
|
started_at?: string | null | undefined;
|
package/dist/generated_types.js
CHANGED
|
@@ -310,9 +310,9 @@ export const ZStepOutputsBatchResponse = z.lazy(() => (z.object({
|
|
|
310
310
|
})));
|
|
311
311
|
export const ZStepStatus = z.lazy(() => (z.object({
|
|
312
312
|
node_id: z.string(),
|
|
313
|
-
node_type: z.
|
|
313
|
+
node_type: z.string(),
|
|
314
314
|
node_label: z.string(),
|
|
315
|
-
status: z.union([z.literal("pending"), z.literal("running"), z.literal("completed"), z.literal("error"), z.literal("waiting_for_human"), z.literal("cancelled")]),
|
|
315
|
+
status: z.union([z.literal("pending"), z.literal("queued"), z.literal("running"), z.literal("completed"), z.literal("skipped"), z.literal("error"), z.literal("waiting_for_human"), z.literal("cancelled")]),
|
|
316
316
|
started_at: z.string().nullable().optional(),
|
|
317
317
|
completed_at: z.string().nullable().optional(),
|
|
318
318
|
duration_ms: z.number().nullable().optional(),
|