@retab/node 1.0.94 → 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.
@@ -7,8 +7,8 @@ export declare const ZPartialSchema: z.ZodLazy<z.ZodObject<{
7
7
  }, "strip", z.ZodTypeAny, {
8
8
  object: "schema";
9
9
  strict: boolean;
10
- json_schema: Record<string, any>;
11
10
  created_at: string;
11
+ json_schema: Record<string, any>;
12
12
  }, {
13
13
  created_at: string;
14
14
  object?: "schema" | undefined;
@@ -25,8 +25,8 @@ export declare const ZSchema: z.ZodLazy<z.ZodObject<{
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  object: "schema";
27
27
  strict: boolean;
28
- json_schema: Record<string, any>;
29
28
  created_at: string;
29
+ json_schema: Record<string, any>;
30
30
  }, {
31
31
  created_at: string;
32
32
  object?: "schema" | undefined;
package/dist/types.d.ts CHANGED
@@ -122,27 +122,27 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
122
122
  filename: z.ZodString;
123
123
  }, "strip", z.ZodTypeAny, {
124
124
  filename: string;
125
- file_data: string;
126
125
  file_id: string;
126
+ file_data: string;
127
127
  }, {
128
128
  filename: string;
129
- file_data: string;
130
129
  file_id: string;
130
+ file_data: string;
131
131
  }>>;
132
132
  type: z.ZodLiteral<"file">;
133
133
  }, "strip", z.ZodTypeAny, {
134
134
  type: "file";
135
135
  file: {
136
136
  filename: string;
137
- file_data: string;
138
137
  file_id: string;
138
+ file_data: string;
139
139
  };
140
140
  }, {
141
141
  type: "file";
142
142
  file: {
143
143
  filename: string;
144
- file_data: string;
145
144
  file_id: string;
145
+ file_data: string;
146
146
  };
147
147
  }>>]>, "many">]>>>;
148
148
  tool_call_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -195,8 +195,8 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
195
195
  type: "file";
196
196
  file: {
197
197
  filename: string;
198
- file_data: string;
199
198
  file_id: string;
199
+ file_data: string;
200
200
  };
201
201
  })[] | null | undefined;
202
202
  tool_call_id?: string | null | undefined;
@@ -229,8 +229,8 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
229
229
  type: "file";
230
230
  file: {
231
231
  filename: string;
232
- file_data: string;
233
232
  file_id: string;
233
+ file_data: string;
234
234
  };
235
235
  })[] | null | undefined;
236
236
  tool_call_id?: string | null | undefined;
@@ -273,8 +273,8 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
273
273
  type: "file";
274
274
  file: {
275
275
  filename: string;
276
- file_data: string;
277
276
  file_id: string;
277
+ file_data: string;
278
278
  };
279
279
  })[] | null | undefined;
280
280
  tool_call_id?: string | null | undefined;
@@ -320,8 +320,8 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
320
320
  type: "file";
321
321
  file: {
322
322
  filename: string;
323
- file_data: string;
324
323
  file_id: string;
324
+ file_data: string;
325
325
  };
326
326
  })[] | null | undefined;
327
327
  tool_call_id?: string | null | undefined;
@@ -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;
@@ -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,M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;;;;;;;;;;;;;;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(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retab/node",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "Retab official Node.js library",
5
5
  "main": "dist/index.js",
6
6
  "exports": {