@retab/node 1.0.90 → 1.0.93
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/documents/client.d.ts +7 -6
- package/dist/api/documents/client.d.ts.map +1 -1
- package/dist/api/documents/client.js +15 -5
- package/dist/api/jobs/client.d.ts +39 -3
- package/dist/api/jobs/client.d.ts.map +1 -1
- package/dist/api/jobs/client.js +81 -6
- package/dist/api/projects/client.d.ts +1 -4
- package/dist/api/projects/client.d.ts.map +1 -1
- package/dist/api/projects/client.js +1 -7
- package/dist/api/workflows/runs/client.d.ts +171 -1
- package/dist/api/workflows/runs/client.d.ts.map +1 -1
- package/dist/api/workflows/runs/client.js +233 -6
- package/dist/api/workflows/runs/steps/client.d.ts +46 -0
- package/dist/api/workflows/runs/steps/client.d.ts.map +1 -0
- package/dist/api/workflows/runs/steps/client.js +62 -0
- package/dist/generated_types.d.ts +1288 -423
- package/dist/generated_types.d.ts.map +1 -1
- package/dist/generated_types.js +44 -23
- package/dist/types.d.ts +28 -17
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +4 -0
- package/package.json +1 -1
package/dist/generated_types.js
CHANGED
|
@@ -166,13 +166,11 @@ export const ZExtractionSettings = z.lazy(() => (ZInferenceSettings.schema).merg
|
|
|
166
166
|
json_schema: z.record(z.string(), z.any()),
|
|
167
167
|
})));
|
|
168
168
|
export const ZInferenceSettings = z.lazy(() => (z.object({
|
|
169
|
-
model: z.string().default("
|
|
170
|
-
temperature: z.number().default(0.0),
|
|
169
|
+
model: z.string().default("retab-small"),
|
|
171
170
|
reasoning_effort: z.union([z.literal("none"), z.literal("minimal"), z.literal("low"), z.literal("medium"), z.literal("high"), z.literal("xhigh")]).nullable().optional().default("minimal"),
|
|
172
171
|
image_resolution_dpi: z.number().default(192),
|
|
173
172
|
n_consensus: z.number().default(1),
|
|
174
173
|
chunking_keys: z.record(z.string(), z.string()).nullable().optional(),
|
|
175
|
-
web_search: z.boolean().default(false),
|
|
176
174
|
})));
|
|
177
175
|
export const ZDistancesResult = z.lazy(() => (z.object({
|
|
178
176
|
distances: z.record(z.string(), z.any()),
|
|
@@ -247,7 +245,7 @@ export const ZComputationSpec = z.lazy(() => (z.object({
|
|
|
247
245
|
computations: z.record(z.string(), ZComputation),
|
|
248
246
|
})));
|
|
249
247
|
export const ZDraftConfig = z.lazy(() => (z.object({
|
|
250
|
-
inference_settings: ZInferenceSettings.default({ "model": "retab-small", "
|
|
248
|
+
inference_settings: ZInferenceSettings.default({ "model": "retab-small", "reasoning_effort": "minimal", "image_resolution_dpi": 192, "n_consensus": 1 }),
|
|
251
249
|
json_schema: z.record(z.string(), z.any()),
|
|
252
250
|
computation_spec: ZComputationSpec,
|
|
253
251
|
})));
|
|
@@ -264,32 +262,48 @@ export const ZStoredBuilderDocument = z.lazy(() => (ZBuilderDocument.schema).mer
|
|
|
264
262
|
export const ZStoredProject = z.lazy(() => (ZProject.schema).merge(z.object({
|
|
265
263
|
organization_id: z.string(),
|
|
266
264
|
})));
|
|
265
|
+
export const ZCancelWorkflowResponse = z.lazy(() => (z.object({
|
|
266
|
+
run: ZWorkflowRun,
|
|
267
|
+
cancellation_status: z.union([z.literal("cancelled"), z.literal("cancellation_requested"), z.literal("cancellation_failed")]).default("cancellation_requested"),
|
|
268
|
+
})));
|
|
267
269
|
export const ZHandlePayload = z.lazy(() => (z.object({
|
|
268
270
|
type: z.union([z.literal("file"), z.literal("json"), z.literal("text")]),
|
|
269
|
-
document:
|
|
271
|
+
document: ZBaseMIMEData.nullable().optional(),
|
|
270
272
|
data: z.record(z.any()).nullable().optional(),
|
|
271
273
|
text: z.string().nullable().optional(),
|
|
272
274
|
})));
|
|
273
|
-
export const
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
275
|
+
export const ZResumeWorkflowResponse = z.lazy(() => (z.object({
|
|
276
|
+
run: ZWorkflowRun,
|
|
277
|
+
resume_status: z.union([z.literal("processing"), z.literal("queued"), z.literal("already_processed")]),
|
|
278
|
+
queue_position: z.number().nullable().optional(),
|
|
279
|
+
queue_item_id: z.string(),
|
|
280
|
+
})));
|
|
281
|
+
export const ZStepOutputResponse = z.lazy(() => (z.object({
|
|
282
|
+
node_id: z.string(),
|
|
283
|
+
node_type: z.string(),
|
|
284
|
+
node_label: z.string(),
|
|
285
|
+
status: z.string(),
|
|
286
|
+
output: z.record(z.any()).nullable().optional(),
|
|
287
|
+
handle_outputs: z.record(z.string(), z.any()).nullable().optional(),
|
|
288
|
+
handle_inputs: z.record(z.string(), z.any()).nullable().optional(),
|
|
289
|
+
})));
|
|
290
|
+
export const ZStepOutputsBatchResponse = z.lazy(() => (z.object({
|
|
291
|
+
outputs: z.record(z.string(), ZStepOutputResponse),
|
|
278
292
|
})));
|
|
279
293
|
export const ZStepStatus = z.lazy(() => (z.object({
|
|
280
294
|
node_id: z.string(),
|
|
281
295
|
node_type: z.union([z.literal("start"), z.literal("extract"), z.literal("split"), z.literal("end"), z.literal("hil")]),
|
|
282
296
|
node_label: z.string(),
|
|
283
|
-
status: z.union([z.literal("pending"), z.literal("running"), z.literal("completed"), z.literal("error"), z.literal("waiting_for_human")]),
|
|
297
|
+
status: z.union([z.literal("pending"), z.literal("running"), z.literal("completed"), z.literal("error"), z.literal("waiting_for_human"), z.literal("cancelled")]),
|
|
284
298
|
started_at: z.string().nullable().optional(),
|
|
285
299
|
completed_at: z.string().nullable().optional(),
|
|
286
300
|
duration_ms: z.number().nullable().optional(),
|
|
287
301
|
error: z.string().nullable().optional(),
|
|
288
302
|
output: z.record(z.any()).nullable().optional(),
|
|
289
303
|
handle_outputs: z.record(z.string(), ZHandlePayload).nullable().optional(),
|
|
290
|
-
input_document:
|
|
291
|
-
output_document:
|
|
292
|
-
split_documents: z.record(z.string(),
|
|
304
|
+
input_document: ZBaseMIMEData.nullable().optional(),
|
|
305
|
+
output_document: ZBaseMIMEData.nullable().optional(),
|
|
306
|
+
split_documents: z.record(z.string(), ZBaseMIMEData).nullable().optional(),
|
|
293
307
|
requires_human_review: z.boolean().nullable().optional(),
|
|
294
308
|
human_reviewed_at: z.string().nullable().optional(),
|
|
295
309
|
human_review_approved: z.boolean().nullable().optional(),
|
|
@@ -299,12 +313,12 @@ export const ZWorkflowRun = z.lazy(() => (z.object({
|
|
|
299
313
|
workflow_id: z.string(),
|
|
300
314
|
workflow_name: z.string(),
|
|
301
315
|
organization_id: z.string(),
|
|
302
|
-
status: z.union([z.literal("pending"), z.literal("running"), z.literal("completed"), z.literal("error"), z.literal("waiting_for_human")]).default("pending"),
|
|
316
|
+
status: z.union([z.literal("pending"), z.literal("running"), z.literal("completed"), z.literal("error"), z.literal("waiting_for_human"), z.literal("cancelled")]).default("pending"),
|
|
303
317
|
started_at: z.string(),
|
|
304
318
|
completed_at: z.string().nullable().optional(),
|
|
305
319
|
duration_ms: z.number().nullable().optional(),
|
|
306
320
|
steps: z.array(ZStepStatus),
|
|
307
|
-
input_documents: z.record(z.string(),
|
|
321
|
+
input_documents: z.record(z.string(), ZBaseMIMEData).nullable().optional(),
|
|
308
322
|
final_outputs: z.record(z.any()).nullable().optional(),
|
|
309
323
|
error: z.string().nullable().optional(),
|
|
310
324
|
created_at: z.string(),
|
|
@@ -314,8 +328,7 @@ export const ZWorkflowRun = z.lazy(() => (z.object({
|
|
|
314
328
|
})));
|
|
315
329
|
export const ZGenerateSchemaRequest = z.lazy(() => (z.object({
|
|
316
330
|
documents: z.array(ZMIMEData),
|
|
317
|
-
model: z.string().default("
|
|
318
|
-
temperature: z.number().default(0.0),
|
|
331
|
+
model: z.string().default("retab-small"),
|
|
319
332
|
reasoning_effort: z.union([z.literal("none"), z.literal("minimal"), z.literal("low"), z.literal("medium"), z.literal("high"), z.literal("xhigh")]).nullable().optional().default("minimal"),
|
|
320
333
|
instructions: z.string().nullable().optional(),
|
|
321
334
|
image_resolution_dpi: z.number().default(192),
|
|
@@ -428,6 +441,7 @@ export const ZContentDict = z.lazy(() => (z.object({
|
|
|
428
441
|
export const ZEasyInputMessageParam = z.lazy(() => (z.object({
|
|
429
442
|
content: z.union([z.string(), z.array(z.union([ZResponseInputTextParam, ZResponseInputImageParam, ZResponseInputFileParam]))]),
|
|
430
443
|
role: z.union([z.literal("user"), z.literal("assistant"), z.literal("system"), z.literal("developer")]),
|
|
444
|
+
phase: z.union([z.literal("commentary"), z.literal("final_answer")]).nullable().optional(),
|
|
431
445
|
type: z.literal("message"),
|
|
432
446
|
})));
|
|
433
447
|
export const ZImageBlockParam = z.lazy(() => (z.object({
|
|
@@ -535,6 +549,7 @@ export const ZEditTemplate = z.lazy(() => (z.object({
|
|
|
535
549
|
name: z.string(),
|
|
536
550
|
file: ZBaseMIMEData,
|
|
537
551
|
form_fields: z.array(ZFormField),
|
|
552
|
+
field_count: z.number().default(0),
|
|
538
553
|
organization_id: z.string().nullable().optional(),
|
|
539
554
|
created_at: z.string(),
|
|
540
555
|
updated_at: z.string(),
|
|
@@ -612,7 +627,7 @@ export const ZSplitResponse = z.lazy(() => (z.object({
|
|
|
612
627
|
export const ZSplitResult = z.lazy(() => (z.object({
|
|
613
628
|
name: z.string(),
|
|
614
629
|
pages: z.array(z.number()),
|
|
615
|
-
|
|
630
|
+
likelihood: z.number().nullable().optional(),
|
|
616
631
|
votes: z.array(ZSplitVote),
|
|
617
632
|
partitions: z.array(ZPartition),
|
|
618
633
|
})));
|
|
@@ -672,6 +687,13 @@ export const ZOCRTextElement = z.lazy(() => (z.object({
|
|
|
672
687
|
export const ZProcessOCRRequest = z.lazy(() => (z.object({
|
|
673
688
|
document: ZMIMEData,
|
|
674
689
|
})));
|
|
690
|
+
export const ZGenerateSplitConfigRequest = z.lazy(() => (z.object({
|
|
691
|
+
document: ZMIMEData,
|
|
692
|
+
model: z.string().default("retab-small"),
|
|
693
|
+
})));
|
|
694
|
+
export const ZGenerateSplitConfigResponse = z.lazy(() => (z.object({
|
|
695
|
+
subdocuments: z.array(ZSubdocument),
|
|
696
|
+
})));
|
|
675
697
|
export const ZPartition = z.lazy(() => (z.object({
|
|
676
698
|
key: z.string(),
|
|
677
699
|
pages: z.array(z.number()),
|
|
@@ -751,13 +773,9 @@ export const ZDocumentExtractRequest = z.lazy(() => (z.object({
|
|
|
751
773
|
image_resolution_dpi: z.number().default(192),
|
|
752
774
|
model: z.string(),
|
|
753
775
|
json_schema: z.record(z.string(), z.any()),
|
|
754
|
-
temperature: z.number().default(0.0),
|
|
755
776
|
n_consensus: z.number().default(1),
|
|
756
777
|
stream: z.boolean().default(false),
|
|
757
|
-
seed: z.number().nullable().optional(),
|
|
758
|
-
store: z.boolean().default(true),
|
|
759
778
|
chunking_keys: z.record(z.string(), z.string()).nullable().optional(),
|
|
760
|
-
web_search: z.boolean().default(false),
|
|
761
779
|
metadata: z.record(z.string(), z.string()),
|
|
762
780
|
extraction_id: z.string().nullable().optional(),
|
|
763
781
|
additional_messages: z.array(ZChatCompletionRetabMessage).nullable().optional(),
|
|
@@ -1038,6 +1056,7 @@ export const ZIncompleteDetails = z.lazy(() => (z.object({
|
|
|
1038
1056
|
export const ZEasyInputMessage = z.lazy(() => (z.object({
|
|
1039
1057
|
content: z.union([z.string(), z.array(z.union([ZResponseInputText, ZResponseInputImage, ZResponseInputFile]))]),
|
|
1040
1058
|
role: z.union([z.literal("user"), z.literal("assistant"), z.literal("system"), z.literal("developer")]),
|
|
1059
|
+
phase: z.union([z.literal("commentary"), z.literal("final_answer")]).nullable().optional(),
|
|
1041
1060
|
type: z.literal("message").nullable().optional(),
|
|
1042
1061
|
})));
|
|
1043
1062
|
export const ZMessage = z.lazy(() => (z.object({
|
|
@@ -1052,6 +1071,7 @@ export const ZResponseOutputMessage = z.lazy(() => (z.object({
|
|
|
1052
1071
|
role: z.literal("assistant"),
|
|
1053
1072
|
status: z.union([z.literal("in_progress"), z.literal("completed"), z.literal("incomplete")]),
|
|
1054
1073
|
type: z.literal("message"),
|
|
1074
|
+
phase: z.union([z.literal("commentary"), z.literal("final_answer")]).nullable().optional(),
|
|
1055
1075
|
})));
|
|
1056
1076
|
export const ZResponseFileSearchToolCall = z.lazy(() => (z.object({
|
|
1057
1077
|
id: z.string(),
|
|
@@ -1527,6 +1547,7 @@ export const ZResponseOutputMessageParam = z.lazy(() => (z.object({
|
|
|
1527
1547
|
role: z.literal("assistant"),
|
|
1528
1548
|
status: z.union([z.literal("in_progress"), z.literal("completed"), z.literal("incomplete")]),
|
|
1529
1549
|
type: z.literal("message"),
|
|
1550
|
+
phase: z.union([z.literal("commentary"), z.literal("final_answer")]).nullable().optional(),
|
|
1530
1551
|
})));
|
|
1531
1552
|
export const ZResponseFileSearchToolCallParam = z.lazy(() => (z.object({
|
|
1532
1553
|
id: z.string(),
|
package/dist/types.d.ts
CHANGED
|
@@ -53,12 +53,8 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
53
53
|
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
54
54
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
55
55
|
model: z.ZodString;
|
|
56
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
57
56
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
58
|
-
seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
-
store: z.ZodDefault<z.ZodBoolean>;
|
|
60
57
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
61
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
62
58
|
extraction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
59
|
additional_messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
64
60
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"developer">, z.ZodLiteral<"tool">]>;
|
|
@@ -251,15 +247,11 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
251
247
|
metadata: Record<string, string>;
|
|
252
248
|
json_schema: Record<string, any>;
|
|
253
249
|
model: string;
|
|
254
|
-
temperature: number;
|
|
255
250
|
image_resolution_dpi: number;
|
|
256
251
|
n_consensus: number;
|
|
257
|
-
web_search: boolean;
|
|
258
|
-
store: boolean;
|
|
259
252
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
260
253
|
extraction_id?: string | null | undefined;
|
|
261
254
|
document?: any;
|
|
262
|
-
seed?: number | null | undefined;
|
|
263
255
|
additional_messages?: {
|
|
264
256
|
role: "user" | "system" | "assistant" | "developer" | "tool";
|
|
265
257
|
content?: string | ({
|
|
@@ -303,14 +295,10 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
303
295
|
url: string;
|
|
304
296
|
};
|
|
305
297
|
metadata?: Record<string, string> | undefined;
|
|
306
|
-
temperature?: number | undefined;
|
|
307
298
|
image_resolution_dpi?: number | undefined;
|
|
308
299
|
n_consensus?: number | undefined;
|
|
309
300
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
310
|
-
web_search?: boolean | undefined;
|
|
311
301
|
extraction_id?: string | null | undefined;
|
|
312
|
-
seed?: number | null | undefined;
|
|
313
|
-
store?: boolean | undefined;
|
|
314
302
|
additional_messages?: {
|
|
315
303
|
role: "user" | "system" | "assistant" | "developer" | "tool";
|
|
316
304
|
content?: string | ({
|
|
@@ -456,7 +444,6 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
456
444
|
url: string;
|
|
457
445
|
}>, "many">;
|
|
458
446
|
model: z.ZodDefault<z.ZodString>;
|
|
459
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
460
447
|
reasoning_effort: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"minimal">, z.ZodLiteral<"low">, z.ZodLiteral<"medium">, z.ZodLiteral<"high">, z.ZodLiteral<"xhigh">]>>>>;
|
|
461
448
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
462
449
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
@@ -464,7 +451,6 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
464
451
|
}, "strip", z.ZodTypeAny, {
|
|
465
452
|
stream: boolean;
|
|
466
453
|
model: string;
|
|
467
|
-
temperature: number;
|
|
468
454
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
469
455
|
image_resolution_dpi: number;
|
|
470
456
|
documents: any[];
|
|
@@ -476,7 +462,6 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
476
462
|
})[];
|
|
477
463
|
stream?: boolean | undefined;
|
|
478
464
|
model?: string | undefined;
|
|
479
|
-
temperature?: number | undefined;
|
|
480
465
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
481
466
|
image_resolution_dpi?: number | undefined;
|
|
482
467
|
instructions?: string | null | undefined;
|
|
@@ -598,6 +583,32 @@ export declare const ZClassifyRequest: z.ZodObject<{
|
|
|
598
583
|
first_n_pages?: number | null | undefined;
|
|
599
584
|
}>;
|
|
600
585
|
export type ClassifyRequest = z.input<typeof ZClassifyRequest>;
|
|
586
|
+
export declare const ZGenerateSplitConfigRequest: z.ZodObject<{
|
|
587
|
+
document: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
588
|
+
filename: z.ZodString;
|
|
589
|
+
url: z.ZodString;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
filename: string;
|
|
592
|
+
url: string;
|
|
593
|
+
}, {
|
|
594
|
+
filename: string;
|
|
595
|
+
url: string;
|
|
596
|
+
}>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
|
|
597
|
+
filename: string;
|
|
598
|
+
url: string;
|
|
599
|
+
}>;
|
|
600
|
+
model: z.ZodDefault<z.ZodString>;
|
|
601
|
+
}, "strip", z.ZodTypeAny, {
|
|
602
|
+
model: string;
|
|
603
|
+
document?: any;
|
|
604
|
+
}, {
|
|
605
|
+
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
606
|
+
filename: string;
|
|
607
|
+
url: string;
|
|
608
|
+
};
|
|
609
|
+
model?: string | undefined;
|
|
610
|
+
}>;
|
|
611
|
+
export type GenerateSplitConfigRequest = z.input<typeof ZGenerateSplitConfigRequest>;
|
|
601
612
|
export declare const ZEditRequest: z.ZodObject<{
|
|
602
613
|
document: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
603
614
|
filename: z.ZodString;
|
|
@@ -861,6 +872,7 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
861
872
|
}>>;
|
|
862
873
|
field_count: z.ZodNumber;
|
|
863
874
|
}, "strip", z.ZodTypeAny, {
|
|
875
|
+
field_count: number;
|
|
864
876
|
form_schema: {
|
|
865
877
|
form_fields: {
|
|
866
878
|
description: string;
|
|
@@ -880,8 +892,8 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
880
892
|
filename: string;
|
|
881
893
|
url: string;
|
|
882
894
|
};
|
|
883
|
-
field_count: number;
|
|
884
895
|
}, {
|
|
896
|
+
field_count: number;
|
|
885
897
|
form_schema: {
|
|
886
898
|
form_fields: {
|
|
887
899
|
description: string;
|
|
@@ -901,7 +913,6 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
901
913
|
filename: string;
|
|
902
914
|
url: string;
|
|
903
915
|
};
|
|
904
|
-
field_count: number;
|
|
905
916
|
}>>;
|
|
906
917
|
export type InferFormSchemaResponse = z.infer<typeof ZInferFormSchemaResponse>;
|
|
907
918
|
export declare const ZModel: z.ZodLazy<z.ZodObject<{
|
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,GA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AM,CAAC,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -104,6 +104,10 @@ export const ZClassifyRequest = z.object({
|
|
|
104
104
|
...generated.ZClassifyRequest.schema.shape,
|
|
105
105
|
document: ZMIMEData,
|
|
106
106
|
});
|
|
107
|
+
export const ZGenerateSplitConfigRequest = z.object({
|
|
108
|
+
...generated.ZGenerateSplitConfigRequest.schema.shape,
|
|
109
|
+
document: ZMIMEData,
|
|
110
|
+
});
|
|
107
111
|
export const ZEditRequest = z.object({
|
|
108
112
|
...generated.ZEditRequest.schema.shape,
|
|
109
113
|
document: ZMIMEData.nullable().optional(),
|