@retab/node 1.0.86 → 1.0.87
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/jobs/client.d.ts +48 -48
- package/dist/generated_types.d.ts +769 -485
- package/dist/generated_types.d.ts.map +1 -1
- package/dist/generated_types.js +45 -2
- package/dist/types.d.ts +9 -8
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -64,14 +64,18 @@ declare const ZJob: z.ZodObject<{
|
|
|
64
64
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
object: "job";
|
|
67
|
-
status: "
|
|
67
|
+
status: "validating" | "queued" | "in_progress" | "completed" | "failed" | "cancelled" | "expired";
|
|
68
68
|
id: string;
|
|
69
|
-
|
|
69
|
+
endpoint: "/v1/documents/extract" | "/v1/documents/parse" | "/v1/documents/split" | "/v1/documents/classify" | "/v1/schemas/generate" | "/v1/edit/agent/fill" | "/v1/edit/templates/fill" | "/v1/edit/templates/generate" | "/v1/projects/extract";
|
|
70
|
+
request: Record<string, any>;
|
|
70
71
|
created_at: number;
|
|
71
72
|
expires_at: number;
|
|
72
|
-
|
|
73
|
-
request: Record<string, any>;
|
|
73
|
+
organization_id: string;
|
|
74
74
|
metadata?: Record<string, string> | null | undefined;
|
|
75
|
+
response?: {
|
|
76
|
+
status_code: number;
|
|
77
|
+
body: Record<string, any>;
|
|
78
|
+
} | null | undefined;
|
|
75
79
|
error?: {
|
|
76
80
|
code: string;
|
|
77
81
|
message: string;
|
|
@@ -79,20 +83,20 @@ declare const ZJob: z.ZodObject<{
|
|
|
79
83
|
} | null | undefined;
|
|
80
84
|
started_at?: number | null | undefined;
|
|
81
85
|
completed_at?: number | null | undefined;
|
|
82
|
-
response?: {
|
|
83
|
-
status_code: number;
|
|
84
|
-
body: Record<string, any>;
|
|
85
|
-
} | null | undefined;
|
|
86
86
|
}, {
|
|
87
87
|
object: "job";
|
|
88
|
-
status: "
|
|
88
|
+
status: "validating" | "queued" | "in_progress" | "completed" | "failed" | "cancelled" | "expired";
|
|
89
89
|
id: string;
|
|
90
|
-
|
|
90
|
+
endpoint: "/v1/documents/extract" | "/v1/documents/parse" | "/v1/documents/split" | "/v1/documents/classify" | "/v1/schemas/generate" | "/v1/edit/agent/fill" | "/v1/edit/templates/fill" | "/v1/edit/templates/generate" | "/v1/projects/extract";
|
|
91
|
+
request: Record<string, any>;
|
|
91
92
|
created_at: number;
|
|
92
93
|
expires_at: number;
|
|
93
|
-
|
|
94
|
-
request: Record<string, any>;
|
|
94
|
+
organization_id: string;
|
|
95
95
|
metadata?: Record<string, string> | null | undefined;
|
|
96
|
+
response?: {
|
|
97
|
+
status_code: number;
|
|
98
|
+
body: Record<string, any>;
|
|
99
|
+
} | null | undefined;
|
|
96
100
|
error?: {
|
|
97
101
|
code: string;
|
|
98
102
|
message: string;
|
|
@@ -100,10 +104,6 @@ declare const ZJob: z.ZodObject<{
|
|
|
100
104
|
} | null | undefined;
|
|
101
105
|
started_at?: number | null | undefined;
|
|
102
106
|
completed_at?: number | null | undefined;
|
|
103
|
-
response?: {
|
|
104
|
-
status_code: number;
|
|
105
|
-
body: Record<string, any>;
|
|
106
|
-
} | null | undefined;
|
|
107
107
|
}>;
|
|
108
108
|
type Job = z.infer<typeof ZJob>;
|
|
109
109
|
declare const ZJobListResponse: z.ZodObject<{
|
|
@@ -145,14 +145,18 @@ declare const ZJobListResponse: z.ZodObject<{
|
|
|
145
145
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
146
146
|
}, "strip", z.ZodTypeAny, {
|
|
147
147
|
object: "job";
|
|
148
|
-
status: "
|
|
148
|
+
status: "validating" | "queued" | "in_progress" | "completed" | "failed" | "cancelled" | "expired";
|
|
149
149
|
id: string;
|
|
150
|
-
|
|
150
|
+
endpoint: "/v1/documents/extract" | "/v1/documents/parse" | "/v1/documents/split" | "/v1/documents/classify" | "/v1/schemas/generate" | "/v1/edit/agent/fill" | "/v1/edit/templates/fill" | "/v1/edit/templates/generate" | "/v1/projects/extract";
|
|
151
|
+
request: Record<string, any>;
|
|
151
152
|
created_at: number;
|
|
152
153
|
expires_at: number;
|
|
153
|
-
|
|
154
|
-
request: Record<string, any>;
|
|
154
|
+
organization_id: string;
|
|
155
155
|
metadata?: Record<string, string> | null | undefined;
|
|
156
|
+
response?: {
|
|
157
|
+
status_code: number;
|
|
158
|
+
body: Record<string, any>;
|
|
159
|
+
} | null | undefined;
|
|
156
160
|
error?: {
|
|
157
161
|
code: string;
|
|
158
162
|
message: string;
|
|
@@ -160,20 +164,20 @@ declare const ZJobListResponse: z.ZodObject<{
|
|
|
160
164
|
} | null | undefined;
|
|
161
165
|
started_at?: number | null | undefined;
|
|
162
166
|
completed_at?: number | null | undefined;
|
|
163
|
-
response?: {
|
|
164
|
-
status_code: number;
|
|
165
|
-
body: Record<string, any>;
|
|
166
|
-
} | null | undefined;
|
|
167
167
|
}, {
|
|
168
168
|
object: "job";
|
|
169
|
-
status: "
|
|
169
|
+
status: "validating" | "queued" | "in_progress" | "completed" | "failed" | "cancelled" | "expired";
|
|
170
170
|
id: string;
|
|
171
|
-
|
|
171
|
+
endpoint: "/v1/documents/extract" | "/v1/documents/parse" | "/v1/documents/split" | "/v1/documents/classify" | "/v1/schemas/generate" | "/v1/edit/agent/fill" | "/v1/edit/templates/fill" | "/v1/edit/templates/generate" | "/v1/projects/extract";
|
|
172
|
+
request: Record<string, any>;
|
|
172
173
|
created_at: number;
|
|
173
174
|
expires_at: number;
|
|
174
|
-
|
|
175
|
-
request: Record<string, any>;
|
|
175
|
+
organization_id: string;
|
|
176
176
|
metadata?: Record<string, string> | null | undefined;
|
|
177
|
+
response?: {
|
|
178
|
+
status_code: number;
|
|
179
|
+
body: Record<string, any>;
|
|
180
|
+
} | null | undefined;
|
|
177
181
|
error?: {
|
|
178
182
|
code: string;
|
|
179
183
|
message: string;
|
|
@@ -181,10 +185,6 @@ declare const ZJobListResponse: z.ZodObject<{
|
|
|
181
185
|
} | null | undefined;
|
|
182
186
|
started_at?: number | null | undefined;
|
|
183
187
|
completed_at?: number | null | undefined;
|
|
184
|
-
response?: {
|
|
185
|
-
status_code: number;
|
|
186
|
-
body: Record<string, any>;
|
|
187
|
-
} | null | undefined;
|
|
188
188
|
}>, "many">;
|
|
189
189
|
first_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
190
190
|
last_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -193,14 +193,18 @@ declare const ZJobListResponse: z.ZodObject<{
|
|
|
193
193
|
object: "list";
|
|
194
194
|
data: {
|
|
195
195
|
object: "job";
|
|
196
|
-
status: "
|
|
196
|
+
status: "validating" | "queued" | "in_progress" | "completed" | "failed" | "cancelled" | "expired";
|
|
197
197
|
id: string;
|
|
198
|
-
|
|
198
|
+
endpoint: "/v1/documents/extract" | "/v1/documents/parse" | "/v1/documents/split" | "/v1/documents/classify" | "/v1/schemas/generate" | "/v1/edit/agent/fill" | "/v1/edit/templates/fill" | "/v1/edit/templates/generate" | "/v1/projects/extract";
|
|
199
|
+
request: Record<string, any>;
|
|
199
200
|
created_at: number;
|
|
200
201
|
expires_at: number;
|
|
201
|
-
|
|
202
|
-
request: Record<string, any>;
|
|
202
|
+
organization_id: string;
|
|
203
203
|
metadata?: Record<string, string> | null | undefined;
|
|
204
|
+
response?: {
|
|
205
|
+
status_code: number;
|
|
206
|
+
body: Record<string, any>;
|
|
207
|
+
} | null | undefined;
|
|
204
208
|
error?: {
|
|
205
209
|
code: string;
|
|
206
210
|
message: string;
|
|
@@ -208,10 +212,6 @@ declare const ZJobListResponse: z.ZodObject<{
|
|
|
208
212
|
} | null | undefined;
|
|
209
213
|
started_at?: number | null | undefined;
|
|
210
214
|
completed_at?: number | null | undefined;
|
|
211
|
-
response?: {
|
|
212
|
-
status_code: number;
|
|
213
|
-
body: Record<string, any>;
|
|
214
|
-
} | null | undefined;
|
|
215
215
|
}[];
|
|
216
216
|
has_more: boolean;
|
|
217
217
|
first_id?: string | null | undefined;
|
|
@@ -220,14 +220,18 @@ declare const ZJobListResponse: z.ZodObject<{
|
|
|
220
220
|
object: "list";
|
|
221
221
|
data: {
|
|
222
222
|
object: "job";
|
|
223
|
-
status: "
|
|
223
|
+
status: "validating" | "queued" | "in_progress" | "completed" | "failed" | "cancelled" | "expired";
|
|
224
224
|
id: string;
|
|
225
|
-
|
|
225
|
+
endpoint: "/v1/documents/extract" | "/v1/documents/parse" | "/v1/documents/split" | "/v1/documents/classify" | "/v1/schemas/generate" | "/v1/edit/agent/fill" | "/v1/edit/templates/fill" | "/v1/edit/templates/generate" | "/v1/projects/extract";
|
|
226
|
+
request: Record<string, any>;
|
|
226
227
|
created_at: number;
|
|
227
228
|
expires_at: number;
|
|
228
|
-
|
|
229
|
-
request: Record<string, any>;
|
|
229
|
+
organization_id: string;
|
|
230
230
|
metadata?: Record<string, string> | null | undefined;
|
|
231
|
+
response?: {
|
|
232
|
+
status_code: number;
|
|
233
|
+
body: Record<string, any>;
|
|
234
|
+
} | null | undefined;
|
|
231
235
|
error?: {
|
|
232
236
|
code: string;
|
|
233
237
|
message: string;
|
|
@@ -235,10 +239,6 @@ declare const ZJobListResponse: z.ZodObject<{
|
|
|
235
239
|
} | null | undefined;
|
|
236
240
|
started_at?: number | null | undefined;
|
|
237
241
|
completed_at?: number | null | undefined;
|
|
238
|
-
response?: {
|
|
239
|
-
status_code: number;
|
|
240
|
-
body: Record<string, any>;
|
|
241
|
-
} | null | undefined;
|
|
242
242
|
}[];
|
|
243
243
|
has_more: boolean;
|
|
244
244
|
first_id?: string | null | undefined;
|