@retab/node 1.0.86 → 1.0.90
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 +58 -52
- package/dist/api/jobs/client.d.ts.map +1 -1
- package/dist/api/jobs/client.js +12 -3
- package/dist/generated_types.d.ts +21373 -11400
- package/dist/generated_types.d.ts.map +1 -1
- package/dist/generated_types.js +422 -20
- package/dist/types.d.ts +12 -11
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -54,7 +54,6 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
54
54
|
image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
|
|
55
55
|
model: z.ZodString;
|
|
56
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
57
|
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
59
58
|
seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
59
|
store: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -253,7 +252,6 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
253
252
|
json_schema: Record<string, any>;
|
|
254
253
|
model: string;
|
|
255
254
|
temperature: number;
|
|
256
|
-
reasoning_effort: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
|
|
257
255
|
image_resolution_dpi: number;
|
|
258
256
|
n_consensus: number;
|
|
259
257
|
web_search: boolean;
|
|
@@ -306,7 +304,6 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
|
|
|
306
304
|
};
|
|
307
305
|
metadata?: Record<string, string> | undefined;
|
|
308
306
|
temperature?: number | undefined;
|
|
309
|
-
reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
|
|
310
307
|
image_resolution_dpi?: number | undefined;
|
|
311
308
|
n_consensus?: number | undefined;
|
|
312
309
|
chunking_keys?: Record<string, string> | null | undefined;
|
|
@@ -510,7 +507,7 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
510
507
|
filename: string;
|
|
511
508
|
url: string;
|
|
512
509
|
}>;
|
|
513
|
-
|
|
510
|
+
subdocuments: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
514
511
|
name: z.ZodString;
|
|
515
512
|
description: z.ZodString;
|
|
516
513
|
partition_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -524,25 +521,31 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
524
521
|
partition_key?: string | null | undefined;
|
|
525
522
|
}>>, "many">;
|
|
526
523
|
model: z.ZodDefault<z.ZodString>;
|
|
524
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
525
|
+
n_consensus: z.ZodDefault<z.ZodNumber>;
|
|
527
526
|
}, "strip", z.ZodTypeAny, {
|
|
528
527
|
model: string;
|
|
529
|
-
|
|
528
|
+
n_consensus: number;
|
|
529
|
+
subdocuments: {
|
|
530
530
|
name: string;
|
|
531
531
|
description: string;
|
|
532
532
|
partition_key?: string | null | undefined;
|
|
533
533
|
}[];
|
|
534
534
|
document?: any;
|
|
535
|
+
context?: string | null | undefined;
|
|
535
536
|
}, {
|
|
536
537
|
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
537
538
|
filename: string;
|
|
538
539
|
url: string;
|
|
539
540
|
};
|
|
540
|
-
|
|
541
|
+
subdocuments: {
|
|
541
542
|
name: string;
|
|
542
543
|
description: string;
|
|
543
544
|
partition_key?: string | null | undefined;
|
|
544
545
|
}[];
|
|
545
546
|
model?: string | undefined;
|
|
547
|
+
n_consensus?: number | undefined;
|
|
548
|
+
context?: string | null | undefined;
|
|
546
549
|
}>;
|
|
547
550
|
export type SplitRequest = z.input<typeof ZSplitRequest>;
|
|
548
551
|
export declare const ZClassifyRequest: z.ZodObject<{
|
|
@@ -562,26 +565,24 @@ export declare const ZClassifyRequest: z.ZodObject<{
|
|
|
562
565
|
categories: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
563
566
|
name: z.ZodString;
|
|
564
567
|
description: z.ZodString;
|
|
565
|
-
partition_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
566
568
|
}, "strip", z.ZodTypeAny, {
|
|
567
569
|
name: string;
|
|
568
570
|
description: string;
|
|
569
|
-
partition_key?: string | null | undefined;
|
|
570
571
|
}, {
|
|
571
572
|
name: string;
|
|
572
573
|
description: string;
|
|
573
|
-
partition_key?: string | null | undefined;
|
|
574
574
|
}>>, "many">;
|
|
575
575
|
model: z.ZodDefault<z.ZodString>;
|
|
576
576
|
first_n_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
577
|
+
context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
577
578
|
}, "strip", z.ZodTypeAny, {
|
|
578
579
|
model: string;
|
|
579
580
|
categories: {
|
|
580
581
|
name: string;
|
|
581
582
|
description: string;
|
|
582
|
-
partition_key?: string | null | undefined;
|
|
583
583
|
}[];
|
|
584
584
|
document?: any;
|
|
585
|
+
context?: string | null | undefined;
|
|
585
586
|
first_n_pages?: number | null | undefined;
|
|
586
587
|
}, {
|
|
587
588
|
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
@@ -591,9 +592,9 @@ export declare const ZClassifyRequest: z.ZodObject<{
|
|
|
591
592
|
categories: {
|
|
592
593
|
name: string;
|
|
593
594
|
description: string;
|
|
594
|
-
partition_key?: string | null | undefined;
|
|
595
595
|
}[];
|
|
596
596
|
model?: string | undefined;
|
|
597
|
+
context?: string | null | undefined;
|
|
597
598
|
first_n_pages?: number | null | undefined;
|
|
598
599
|
}>;
|
|
599
600
|
export type ClassifyRequest = z.input<typeof ZClassifyRequest>;
|
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,CA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