@retab/node 1.0.74 → 1.0.76

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/types.d.ts CHANGED
@@ -58,7 +58,7 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
58
58
  n_consensus: z.ZodDefault<z.ZodNumber>;
59
59
  seed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
60
  store: z.ZodDefault<z.ZodBoolean>;
61
- parallel_ocr_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
61
+ chunking_keys: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
62
62
  web_search: z.ZodDefault<z.ZodBoolean>;
63
63
  extraction_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
64
  additional_messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
@@ -258,7 +258,7 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
258
258
  n_consensus: number;
259
259
  web_search: boolean;
260
260
  store: boolean;
261
- parallel_ocr_keys?: Record<string, string> | null | undefined;
261
+ chunking_keys?: Record<string, string> | null | undefined;
262
262
  extraction_id?: string | null | undefined;
263
263
  document?: any;
264
264
  seed?: number | null | undefined;
@@ -309,7 +309,7 @@ export declare const ZDocumentExtractRequest: z.ZodObject<{
309
309
  reasoning_effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null | undefined;
310
310
  image_resolution_dpi?: number | undefined;
311
311
  n_consensus?: number | undefined;
312
- parallel_ocr_keys?: Record<string, string> | null | undefined;
312
+ chunking_keys?: Record<string, string> | null | undefined;
313
313
  web_search?: boolean | undefined;
314
314
  extraction_id?: string | null | undefined;
315
315
  seed?: number | null | undefined;
@@ -371,7 +371,7 @@ export declare const ZParseRequest: z.ZodObject<{
371
371
  }, "strip", z.ZodTypeAny, {
372
372
  model: string;
373
373
  image_resolution_dpi: number;
374
- table_parsing_format: "markdown" | "yaml" | "html" | "json";
374
+ table_parsing_format: "json" | "markdown" | "yaml" | "html";
375
375
  document?: any;
376
376
  }, {
377
377
  document: string | Buffer<ArrayBufferLike> | Readable | {
@@ -380,7 +380,7 @@ export declare const ZParseRequest: z.ZodObject<{
380
380
  };
381
381
  model?: string | undefined;
382
382
  image_resolution_dpi?: number | undefined;
383
- table_parsing_format?: "markdown" | "yaml" | "html" | "json" | undefined;
383
+ table_parsing_format?: "json" | "markdown" | "yaml" | "html" | undefined;
384
384
  }>;
385
385
  export type ParseRequest = z.input<typeof ZParseRequest>;
386
386
  export declare const ZDocumentCreateMessageRequest: z.ZodObject<{
@@ -496,35 +496,6 @@ export declare const ZCreateProjectRequest: z.ZodObject<{
496
496
  name: string;
497
497
  }>;
498
498
  export type CreateProjectRequest = z.input<typeof ZCreateProjectRequest>;
499
- export declare const ZEditRequest: z.ZodObject<{
500
- 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<{
501
- filename: z.ZodString;
502
- url: z.ZodString;
503
- }, "strip", z.ZodTypeAny, {
504
- filename: string;
505
- url: string;
506
- }, {
507
- filename: string;
508
- url: string;
509
- }>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
510
- filename: string;
511
- url: string;
512
- }>;
513
- model: z.ZodDefault<z.ZodString>;
514
- filling_instructions: z.ZodString;
515
- }, "strip", z.ZodTypeAny, {
516
- model: string;
517
- filling_instructions: string;
518
- document?: any;
519
- }, {
520
- document: string | Buffer<ArrayBufferLike> | Readable | {
521
- filename: string;
522
- url: string;
523
- };
524
- filling_instructions: string;
525
- model?: string | undefined;
526
- }>;
527
- export type EditRequest = z.input<typeof ZEditRequest>;
528
499
  export declare const ZSplitRequest: z.ZodObject<{
529
500
  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<{
530
501
  filename: z.ZodString;
@@ -549,7 +520,7 @@ export declare const ZSplitRequest: z.ZodObject<{
549
520
  name: string;
550
521
  description: string;
551
522
  }>>, "many">;
552
- model: z.ZodString;
523
+ model: z.ZodDefault<z.ZodString>;
553
524
  }, "strip", z.ZodTypeAny, {
554
525
  model: string;
555
526
  categories: {
@@ -558,7 +529,6 @@ export declare const ZSplitRequest: z.ZodObject<{
558
529
  }[];
559
530
  document?: any;
560
531
  }, {
561
- model: string;
562
532
  document: string | Buffer<ArrayBufferLike> | Readable | {
563
533
  filename: string;
564
534
  url: string;
@@ -567,6 +537,7 @@ export declare const ZSplitRequest: z.ZodObject<{
567
537
  name: string;
568
538
  description: string;
569
539
  }[];
540
+ model?: string | undefined;
570
541
  }>;
571
542
  export type SplitRequest = z.input<typeof ZSplitRequest>;
572
543
  export declare const ZModel: z.ZodLazy<z.ZodObject<{
@@ -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,CA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AAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxC,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEzF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItC,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAErF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE3E,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGzE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGxB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;GAKf,CAAC;AACL,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC"}
package/dist/types.js CHANGED
@@ -96,10 +96,6 @@ export const ZCreateProjectRequest = z.object({
96
96
  ...generated.ZCreateProjectRequest.schema.shape,
97
97
  json_schema: ZJSONSchema,
98
98
  });
99
- export const ZEditRequest = z.object({
100
- ...generated.ZEditRequest.schema.shape,
101
- document: ZMIMEData,
102
- });
103
99
  export const ZSplitRequest = z.object({
104
100
  ...generated.ZSplitRequest.schema.shape,
105
101
  document: ZMIMEData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@retab/node",
3
- "version": "1.0.74",
3
+ "version": "1.0.76",
4
4
  "description": "Retab official Node.js library",
5
5
  "main": "dist/index.js",
6
6
  "exports": {