@retab/node 1.0.95 → 1.0.96
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/workflows/runs/client.d.ts +1 -1
- package/dist/api/workflows/runs/client.js +1 -1
- 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 +12 -16
- package/dist/types.d.ts +188 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +27 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import APIWorkflowRunSteps from "./steps/client.js";
|
|
|
5
5
|
* Workflow Runs API client for managing workflow executions.
|
|
6
6
|
*
|
|
7
7
|
* Sub-clients:
|
|
8
|
-
* - steps: Step output operations (get,
|
|
8
|
+
* - steps: Step output operations (get, list)
|
|
9
9
|
*/
|
|
10
10
|
export default class APIWorkflowRuns extends CompositionClient {
|
|
11
11
|
steps: APIWorkflowRunSteps;
|
|
@@ -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) {
|
|
@@ -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) {
|
|
@@ -32,29 +33,24 @@ export default class APIWorkflowRunSteps extends CompositionClient {
|
|
|
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: `/v1/workflows/runs/${runId}/steps
|
|
56
|
-
method: "
|
|
57
|
-
body: { node_ids: nodeIds, ...(options?.body || {}) },
|
|
50
|
+
async list(runId, options) {
|
|
51
|
+
return this._fetchJson(z.array(ZWorkflowRunStep), {
|
|
52
|
+
url: `/v1/workflows/runs/${runId}/steps`,
|
|
53
|
+
method: "GET",
|
|
58
54
|
params: options?.params,
|
|
59
55
|
headers: options?.headers,
|
|
60
56
|
});
|
package/dist/types.d.ts
CHANGED
|
@@ -915,6 +915,194 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
915
915
|
};
|
|
916
916
|
}>>;
|
|
917
917
|
export type InferFormSchemaResponse = z.infer<typeof ZInferFormSchemaResponse>;
|
|
918
|
+
export declare const ZWorkflowRunStep: z.ZodObject<{
|
|
919
|
+
run_id: z.ZodString;
|
|
920
|
+
organization_id: z.ZodString;
|
|
921
|
+
node_id: z.ZodString;
|
|
922
|
+
step_id: z.ZodString;
|
|
923
|
+
node_type: z.ZodString;
|
|
924
|
+
node_label: z.ZodString;
|
|
925
|
+
status: z.ZodString;
|
|
926
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
927
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
928
|
+
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
929
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
930
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
931
|
+
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
932
|
+
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
933
|
+
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
934
|
+
id: z.ZodString;
|
|
935
|
+
filename: z.ZodString;
|
|
936
|
+
mime_type: z.ZodString;
|
|
937
|
+
}, "strip", z.ZodTypeAny, {
|
|
938
|
+
filename: string;
|
|
939
|
+
id: string;
|
|
940
|
+
mime_type: string;
|
|
941
|
+
}, {
|
|
942
|
+
filename: string;
|
|
943
|
+
id: string;
|
|
944
|
+
mime_type: string;
|
|
945
|
+
}>>>>;
|
|
946
|
+
output_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
947
|
+
id: z.ZodString;
|
|
948
|
+
filename: z.ZodString;
|
|
949
|
+
mime_type: z.ZodString;
|
|
950
|
+
}, "strip", z.ZodTypeAny, {
|
|
951
|
+
filename: string;
|
|
952
|
+
id: string;
|
|
953
|
+
mime_type: string;
|
|
954
|
+
}, {
|
|
955
|
+
filename: string;
|
|
956
|
+
id: string;
|
|
957
|
+
mime_type: string;
|
|
958
|
+
}>>>>;
|
|
959
|
+
split_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
960
|
+
id: z.ZodString;
|
|
961
|
+
filename: z.ZodString;
|
|
962
|
+
mime_type: z.ZodString;
|
|
963
|
+
}, "strip", z.ZodTypeAny, {
|
|
964
|
+
filename: string;
|
|
965
|
+
id: string;
|
|
966
|
+
mime_type: string;
|
|
967
|
+
}, {
|
|
968
|
+
filename: string;
|
|
969
|
+
id: string;
|
|
970
|
+
mime_type: string;
|
|
971
|
+
}>>>>>;
|
|
972
|
+
requires_human_review: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
973
|
+
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
974
|
+
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
975
|
+
retry_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
976
|
+
loop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
977
|
+
iteration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
978
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
979
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
980
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
981
|
+
run_id: z.ZodString;
|
|
982
|
+
organization_id: z.ZodString;
|
|
983
|
+
node_id: z.ZodString;
|
|
984
|
+
step_id: z.ZodString;
|
|
985
|
+
node_type: z.ZodString;
|
|
986
|
+
node_label: z.ZodString;
|
|
987
|
+
status: z.ZodString;
|
|
988
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
989
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
990
|
+
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
991
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
992
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
993
|
+
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
994
|
+
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
995
|
+
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
996
|
+
id: z.ZodString;
|
|
997
|
+
filename: z.ZodString;
|
|
998
|
+
mime_type: z.ZodString;
|
|
999
|
+
}, "strip", z.ZodTypeAny, {
|
|
1000
|
+
filename: string;
|
|
1001
|
+
id: string;
|
|
1002
|
+
mime_type: string;
|
|
1003
|
+
}, {
|
|
1004
|
+
filename: string;
|
|
1005
|
+
id: string;
|
|
1006
|
+
mime_type: string;
|
|
1007
|
+
}>>>>;
|
|
1008
|
+
output_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
1009
|
+
id: z.ZodString;
|
|
1010
|
+
filename: z.ZodString;
|
|
1011
|
+
mime_type: z.ZodString;
|
|
1012
|
+
}, "strip", z.ZodTypeAny, {
|
|
1013
|
+
filename: string;
|
|
1014
|
+
id: string;
|
|
1015
|
+
mime_type: string;
|
|
1016
|
+
}, {
|
|
1017
|
+
filename: string;
|
|
1018
|
+
id: string;
|
|
1019
|
+
mime_type: string;
|
|
1020
|
+
}>>>>;
|
|
1021
|
+
split_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
1022
|
+
id: z.ZodString;
|
|
1023
|
+
filename: z.ZodString;
|
|
1024
|
+
mime_type: z.ZodString;
|
|
1025
|
+
}, "strip", z.ZodTypeAny, {
|
|
1026
|
+
filename: string;
|
|
1027
|
+
id: string;
|
|
1028
|
+
mime_type: string;
|
|
1029
|
+
}, {
|
|
1030
|
+
filename: string;
|
|
1031
|
+
id: string;
|
|
1032
|
+
mime_type: string;
|
|
1033
|
+
}>>>>>;
|
|
1034
|
+
requires_human_review: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1035
|
+
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1036
|
+
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1037
|
+
retry_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1038
|
+
loop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1039
|
+
iteration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1040
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1041
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1042
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1043
|
+
run_id: z.ZodString;
|
|
1044
|
+
organization_id: z.ZodString;
|
|
1045
|
+
node_id: z.ZodString;
|
|
1046
|
+
step_id: z.ZodString;
|
|
1047
|
+
node_type: z.ZodString;
|
|
1048
|
+
node_label: z.ZodString;
|
|
1049
|
+
status: z.ZodString;
|
|
1050
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1051
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1052
|
+
duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1053
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1054
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1055
|
+
handle_outputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1056
|
+
handle_inputs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1057
|
+
input_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
1058
|
+
id: z.ZodString;
|
|
1059
|
+
filename: z.ZodString;
|
|
1060
|
+
mime_type: z.ZodString;
|
|
1061
|
+
}, "strip", z.ZodTypeAny, {
|
|
1062
|
+
filename: string;
|
|
1063
|
+
id: string;
|
|
1064
|
+
mime_type: string;
|
|
1065
|
+
}, {
|
|
1066
|
+
filename: string;
|
|
1067
|
+
id: string;
|
|
1068
|
+
mime_type: string;
|
|
1069
|
+
}>>>>;
|
|
1070
|
+
output_document: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
1071
|
+
id: z.ZodString;
|
|
1072
|
+
filename: z.ZodString;
|
|
1073
|
+
mime_type: z.ZodString;
|
|
1074
|
+
}, "strip", z.ZodTypeAny, {
|
|
1075
|
+
filename: string;
|
|
1076
|
+
id: string;
|
|
1077
|
+
mime_type: string;
|
|
1078
|
+
}, {
|
|
1079
|
+
filename: string;
|
|
1080
|
+
id: string;
|
|
1081
|
+
mime_type: string;
|
|
1082
|
+
}>>>>;
|
|
1083
|
+
split_documents: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodLazy<z.ZodObject<{
|
|
1084
|
+
id: z.ZodString;
|
|
1085
|
+
filename: z.ZodString;
|
|
1086
|
+
mime_type: z.ZodString;
|
|
1087
|
+
}, "strip", z.ZodTypeAny, {
|
|
1088
|
+
filename: string;
|
|
1089
|
+
id: string;
|
|
1090
|
+
mime_type: string;
|
|
1091
|
+
}, {
|
|
1092
|
+
filename: string;
|
|
1093
|
+
id: string;
|
|
1094
|
+
mime_type: string;
|
|
1095
|
+
}>>>>>;
|
|
1096
|
+
requires_human_review: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1097
|
+
human_reviewed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1098
|
+
human_review_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
1099
|
+
retry_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1100
|
+
loop_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1101
|
+
iteration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1102
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1103
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1104
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1105
|
+
export type WorkflowRunStep = z.infer<typeof ZWorkflowRunStep>;
|
|
918
1106
|
export declare const ZModel: z.ZodLazy<z.ZodObject<{
|
|
919
1107
|
id: z.ZodString;
|
|
920
1108
|
created: z.ZodNumber;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACrE,cAAc,mBAAmB,CAAC;AAClC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAMzB,wBAAgB,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,CACzF,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,EAClB,CAAC,CAAC,UAAU,EACZ;IAAE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAA;CAAE,CAC9B,CAEA;AAGD,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC,EAAE,CAAC;IACpG,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG,CAAC,CA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AAC;AAC3E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE/E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA0Bb,CAAC;AACjB,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE/D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;GAKf,CAAC;AACL,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -119,6 +119,33 @@ export const ZInferFormSchemaRequest = z.object({
|
|
|
119
119
|
document: ZMIMEData,
|
|
120
120
|
});
|
|
121
121
|
export const ZInferFormSchemaResponse = generated.ZInferFormSchemaResponse;
|
|
122
|
+
export const ZWorkflowRunStep = z.object({
|
|
123
|
+
run_id: z.string(),
|
|
124
|
+
organization_id: z.string(),
|
|
125
|
+
node_id: z.string(),
|
|
126
|
+
step_id: z.string(),
|
|
127
|
+
node_type: z.string(),
|
|
128
|
+
node_label: z.string(),
|
|
129
|
+
status: z.string(),
|
|
130
|
+
started_at: z.string().nullable().optional(),
|
|
131
|
+
completed_at: z.string().nullable().optional(),
|
|
132
|
+
duration_ms: z.number().nullable().optional(),
|
|
133
|
+
error: z.string().nullable().optional(),
|
|
134
|
+
output: z.record(z.any()).nullable().optional(),
|
|
135
|
+
handle_outputs: z.record(z.string(), z.any()).nullable().optional(),
|
|
136
|
+
handle_inputs: z.record(z.string(), z.any()).nullable().optional(),
|
|
137
|
+
input_document: generated.ZBaseMIMEData.nullable().optional(),
|
|
138
|
+
output_document: generated.ZBaseMIMEData.nullable().optional(),
|
|
139
|
+
split_documents: z.record(z.string(), generated.ZBaseMIMEData).nullable().optional(),
|
|
140
|
+
requires_human_review: z.boolean().nullable().optional(),
|
|
141
|
+
human_reviewed_at: z.string().nullable().optional(),
|
|
142
|
+
human_review_approved: z.boolean().nullable().optional(),
|
|
143
|
+
retry_count: z.number().nullable().optional(),
|
|
144
|
+
loop_id: z.string().nullable().optional(),
|
|
145
|
+
iteration: z.number().nullable().optional(),
|
|
146
|
+
created_at: z.string().nullable().optional(),
|
|
147
|
+
updated_at: z.string().nullable().optional(),
|
|
148
|
+
}).passthrough();
|
|
122
149
|
export const ZModel = z.lazy(() => (z.object({
|
|
123
150
|
id: z.string(),
|
|
124
151
|
created: z.number(),
|