@retab/node 1.0.87 → 1.0.91
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/README.md +1 -1
- package/dist/api/extractions/client.d.ts +4 -8
- package/dist/api/extractions/client.d.ts.map +1 -1
- package/dist/api/extractions/client.js +4 -11
- package/dist/api/jobs/client.d.ts +54 -12
- package/dist/api/jobs/client.d.ts.map +1 -1
- package/dist/api/jobs/client.js +88 -4
- 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 +16346 -5904
- package/dist/generated_types.d.ts.map +1 -1
- package/dist/generated_types.js +408 -39
- package/dist/types.d.ts +5 -20
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -53,13 +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
|
-
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">]>>>>;
|
|
58
56
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
59
|
-
seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
-
store: z.ZodDefault<z.ZodBoolean>;
|
|
61
57
|
chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
62
|
-
web_search: z.ZodDefault<z.ZodBoolean>;
|
|
63
58
|
extraction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
59
|
additional_messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
65
60
|
role: z.ZodUnion<[z.ZodLiteral<"user">, z.ZodLiteral<"system">, z.ZodLiteral<"assistant">, z.ZodLiteral<"developer">, z.ZodLiteral<"tool">]>;
|
|
@@ -252,16 +247,11 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
252
247
|
metadata: Record<string, string>;
|
|
253
248
|
json_schema: Record<string, any>;
|
|
254
249
|
model: string;
|
|
255
|
-
temperature: number;
|
|
256
|
-
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
257
250
|
image_resolution_dpi: number;
|
|
258
251
|
n_consensus: number;
|
|
259
|
-
web_search: boolean;
|
|
260
|
-
store: boolean;
|
|
261
252
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
262
253
|
extraction_id?: string | null | undefined;
|
|
263
254
|
document?: any;
|
|
264
|
-
seed?: number | null | undefined;
|
|
265
255
|
additional_messages?: {
|
|
266
256
|
role: "user" | "system" | "assistant" | "developer" | "tool";
|
|
267
257
|
content?: string | ({
|
|
@@ -305,15 +295,10 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
305
295
|
url: string;
|
|
306
296
|
};
|
|
307
297
|
metadata?: Record<string, string> | undefined;
|
|
308
|
-
temperature?: number | undefined;
|
|
309
|
-
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
310
298
|
image_resolution_dpi?: number | undefined;
|
|
311
299
|
n_consensus?: number | undefined;
|
|
312
300
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
313
|
-
web_search?: boolean | undefined;
|
|
314
301
|
extraction_id?: string | null | undefined;
|
|
315
|
-
seed?: number | null | undefined;
|
|
316
|
-
store?: boolean | undefined;
|
|
317
302
|
additional_messages?: {
|
|
318
303
|
role: "user" | "system" | "assistant" | "developer" | "tool";
|
|
319
304
|
content?: string | ({
|
|
@@ -459,7 +444,6 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
459
444
|
url: string;
|
|
460
445
|
}>, "many">;
|
|
461
446
|
model: z.ZodDefault<z.ZodString>;
|
|
462
|
-
temperature: z.ZodDefault<z.ZodNumber>;
|
|
463
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">]>>>>;
|
|
464
448
|
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
465
449
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
@@ -467,7 +451,6 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
467
451
|
}, "strip", z.ZodTypeAny, {
|
|
468
452
|
stream: boolean;
|
|
469
453
|
model: string;
|
|
470
|
-
temperature: number;
|
|
471
454
|
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
472
455
|
image_resolution_dpi: number;
|
|
473
456
|
documents: any[];
|
|
@@ -479,7 +462,6 @@ export declare const ZGenerateSchemaRequest: z.ZodObject<{
|
|
|
479
462
|
})[];
|
|
480
463
|
stream?: boolean | undefined;
|
|
481
464
|
model?: string | undefined;
|
|
482
|
-
temperature?: number | undefined;
|
|
483
465
|
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
484
466
|
image_resolution_dpi?: number | undefined;
|
|
485
467
|
instructions?: string | null | undefined;
|
|
@@ -525,8 +507,10 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
525
507
|
}>>, "many">;
|
|
526
508
|
model: z.ZodDefault<z.ZodString>;
|
|
527
509
|
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
510
|
+
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
528
511
|
}, "strip", z.ZodTypeAny, {
|
|
529
512
|
model: string;
|
|
513
|
+
n_consensus: number;
|
|
530
514
|
subdocuments: {
|
|
531
515
|
name: string;
|
|
532
516
|
description: string;
|
|
@@ -545,6 +529,7 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
545
529
|
partition_key?: string | null | undefined;
|
|
546
530
|
}[];
|
|
547
531
|
model?: string | undefined;
|
|
532
|
+
n_consensus?: number | undefined;
|
|
548
533
|
context?: string | null | undefined;
|
|
549
534
|
}>;
|
|
550
535
|
export type SplitRequest = z.input<typeof ZSplitRequest>;
|
|
@@ -861,6 +846,7 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
861
846
|
}>>;
|
|
862
847
|
field_count: z.ZodNumber;
|
|
863
848
|
}, "strip", z.ZodTypeAny, {
|
|
849
|
+
field_count: number;
|
|
864
850
|
form_schema: {
|
|
865
851
|
form_fields: {
|
|
866
852
|
description: string;
|
|
@@ -880,8 +866,8 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
880
866
|
filename: string;
|
|
881
867
|
url: string;
|
|
882
868
|
};
|
|
883
|
-
field_count: number;
|
|
884
869
|
}, {
|
|
870
|
+
field_count: number;
|
|
885
871
|
form_schema: {
|
|
886
872
|
form_fields: {
|
|
887
873
|
description: string;
|
|
@@ -901,7 +887,6 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
|
901
887
|
filename: string;
|
|
902
888
|
url: string;
|
|
903
889
|
};
|
|
904
|
-
field_count: number;
|
|
905
890
|
}>>;
|
|
906
891
|
export type InferFormSchemaResponse = z.infer<typeof ZInferFormSchemaResponse>;
|
|
907
892
|
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,GAAG,CAAC,CAAC,KAAK,CAA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