@retab/react 0.0.3 → 0.0.4

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/index.d.mts CHANGED
@@ -67,7 +67,7 @@ declare const ProjectSchema: z.ZodObject<{
67
67
  image_resolution_dpi: z.ZodNumber;
68
68
  reasoning_effort: z.ZodEnum<["minimal", "low", "medium", "high"]>;
69
69
  n_consensus: z.ZodNumber;
70
- parallel_ocr_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
70
+ chunking_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
71
71
  }, "strict", z.ZodTypeAny, {
72
72
  model: string;
73
73
  temperature: number;
@@ -75,7 +75,7 @@ declare const ProjectSchema: z.ZodObject<{
75
75
  image_resolution_dpi: number;
76
76
  reasoning_effort: "minimal" | "low" | "medium" | "high";
77
77
  id?: string | undefined;
78
- parallel_ocr_keys?: Record<string, string> | undefined;
78
+ chunking_keys?: Record<string, string> | undefined;
79
79
  }, {
80
80
  model: string;
81
81
  temperature: number;
@@ -83,7 +83,7 @@ declare const ProjectSchema: z.ZodObject<{
83
83
  image_resolution_dpi: number;
84
84
  reasoning_effort: "minimal" | "low" | "medium" | "high";
85
85
  id?: string | undefined;
86
- parallel_ocr_keys?: Record<string, string> | undefined;
86
+ chunking_keys?: Record<string, string> | undefined;
87
87
  }>;
88
88
  json_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
89
89
  human_in_the_loop_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -117,6 +117,7 @@ declare const ProjectSchema: z.ZodObject<{
117
117
  origin: z.ZodDefault<z.ZodString>;
118
118
  }, "strict", z.ZodTypeAny, {
119
119
  json_schema: Record<string, any>;
120
+ origin: string;
120
121
  inference_settings: {
121
122
  model: string;
122
123
  temperature: number;
@@ -124,7 +125,7 @@ declare const ProjectSchema: z.ZodObject<{
124
125
  image_resolution_dpi: number;
125
126
  reasoning_effort: "minimal" | "low" | "medium" | "high";
126
127
  id?: string | undefined;
127
- parallel_ocr_keys?: Record<string, string> | undefined;
128
+ chunking_keys?: Record<string, string> | undefined;
128
129
  };
129
130
  human_in_the_loop_criteria: {
130
131
  path: string;
@@ -135,7 +136,6 @@ declare const ProjectSchema: z.ZodObject<{
135
136
  expression: string;
136
137
  }>;
137
138
  };
138
- origin: string;
139
139
  }, {
140
140
  inference_settings: {
141
141
  model: string;
@@ -144,7 +144,7 @@ declare const ProjectSchema: z.ZodObject<{
144
144
  image_resolution_dpi: number;
145
145
  reasoning_effort: "minimal" | "low" | "medium" | "high";
146
146
  id?: string | undefined;
147
- parallel_ocr_keys?: Record<string, string> | undefined;
147
+ chunking_keys?: Record<string, string> | undefined;
148
148
  };
149
149
  computation_spec: {
150
150
  computations?: Record<string, {
@@ -152,11 +152,11 @@ declare const ProjectSchema: z.ZodObject<{
152
152
  }> | undefined;
153
153
  };
154
154
  json_schema?: Record<string, any> | undefined;
155
+ origin?: string | undefined;
155
156
  human_in_the_loop_criteria?: {
156
157
  path: string;
157
158
  agentic_fix: boolean;
158
159
  }[] | undefined;
159
- origin?: string | undefined;
160
160
  }>;
161
161
  draft_config: z.ZodObject<{
162
162
  inference_settings: z.ZodObject<{
@@ -166,7 +166,7 @@ declare const ProjectSchema: z.ZodObject<{
166
166
  image_resolution_dpi: z.ZodNumber;
167
167
  reasoning_effort: z.ZodEnum<["minimal", "low", "medium", "high"]>;
168
168
  n_consensus: z.ZodNumber;
169
- parallel_ocr_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
169
+ chunking_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
170
170
  }, "strict", z.ZodTypeAny, {
171
171
  model: string;
172
172
  temperature: number;
@@ -174,7 +174,7 @@ declare const ProjectSchema: z.ZodObject<{
174
174
  image_resolution_dpi: number;
175
175
  reasoning_effort: "minimal" | "low" | "medium" | "high";
176
176
  id?: string | undefined;
177
- parallel_ocr_keys?: Record<string, string> | undefined;
177
+ chunking_keys?: Record<string, string> | undefined;
178
178
  }, {
179
179
  model: string;
180
180
  temperature: number;
@@ -182,7 +182,7 @@ declare const ProjectSchema: z.ZodObject<{
182
182
  image_resolution_dpi: number;
183
183
  reasoning_effort: "minimal" | "low" | "medium" | "high";
184
184
  id?: string | undefined;
185
- parallel_ocr_keys?: Record<string, string> | undefined;
185
+ chunking_keys?: Record<string, string> | undefined;
186
186
  }>;
187
187
  json_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
188
188
  human_in_the_loop_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -221,7 +221,7 @@ declare const ProjectSchema: z.ZodObject<{
221
221
  image_resolution_dpi: number;
222
222
  reasoning_effort: "minimal" | "low" | "medium" | "high";
223
223
  id?: string | undefined;
224
- parallel_ocr_keys?: Record<string, string> | undefined;
224
+ chunking_keys?: Record<string, string> | undefined;
225
225
  };
226
226
  human_in_the_loop_criteria: {
227
227
  path: string;
@@ -240,7 +240,7 @@ declare const ProjectSchema: z.ZodObject<{
240
240
  image_resolution_dpi: number;
241
241
  reasoning_effort: "minimal" | "low" | "medium" | "high";
242
242
  id?: string | undefined;
243
- parallel_ocr_keys?: Record<string, string> | undefined;
243
+ chunking_keys?: Record<string, string> | undefined;
244
244
  };
245
245
  computation_spec: {
246
246
  computations?: Record<string, {
@@ -261,6 +261,7 @@ declare const ProjectSchema: z.ZodObject<{
261
261
  updated_at: string;
262
262
  published_config: {
263
263
  json_schema: Record<string, any>;
264
+ origin: string;
264
265
  inference_settings: {
265
266
  model: string;
266
267
  temperature: number;
@@ -268,7 +269,7 @@ declare const ProjectSchema: z.ZodObject<{
268
269
  image_resolution_dpi: number;
269
270
  reasoning_effort: "minimal" | "low" | "medium" | "high";
270
271
  id?: string | undefined;
271
- parallel_ocr_keys?: Record<string, string> | undefined;
272
+ chunking_keys?: Record<string, string> | undefined;
272
273
  };
273
274
  human_in_the_loop_criteria: {
274
275
  path: string;
@@ -279,7 +280,6 @@ declare const ProjectSchema: z.ZodObject<{
279
280
  expression: string;
280
281
  }>;
281
282
  };
282
- origin: string;
283
283
  };
284
284
  draft_config: {
285
285
  json_schema: Record<string, any>;
@@ -290,7 +290,7 @@ declare const ProjectSchema: z.ZodObject<{
290
290
  image_resolution_dpi: number;
291
291
  reasoning_effort: "minimal" | "low" | "medium" | "high";
292
292
  id?: string | undefined;
293
- parallel_ocr_keys?: Record<string, string> | undefined;
293
+ chunking_keys?: Record<string, string> | undefined;
294
294
  };
295
295
  human_in_the_loop_criteria: {
296
296
  path: string;
@@ -316,7 +316,7 @@ declare const ProjectSchema: z.ZodObject<{
316
316
  image_resolution_dpi: number;
317
317
  reasoning_effort: "minimal" | "low" | "medium" | "high";
318
318
  id?: string | undefined;
319
- parallel_ocr_keys?: Record<string, string> | undefined;
319
+ chunking_keys?: Record<string, string> | undefined;
320
320
  };
321
321
  computation_spec: {
322
322
  computations?: Record<string, {
@@ -324,11 +324,11 @@ declare const ProjectSchema: z.ZodObject<{
324
324
  }> | undefined;
325
325
  };
326
326
  json_schema?: Record<string, any> | undefined;
327
+ origin?: string | undefined;
327
328
  human_in_the_loop_criteria?: {
328
329
  path: string;
329
330
  agentic_fix: boolean;
330
331
  }[] | undefined;
331
- origin?: string | undefined;
332
332
  };
333
333
  draft_config: {
334
334
  inference_settings: {
@@ -338,7 +338,7 @@ declare const ProjectSchema: z.ZodObject<{
338
338
  image_resolution_dpi: number;
339
339
  reasoning_effort: "minimal" | "low" | "medium" | "high";
340
340
  id?: string | undefined;
341
- parallel_ocr_keys?: Record<string, string> | undefined;
341
+ chunking_keys?: Record<string, string> | undefined;
342
342
  };
343
343
  computation_spec: {
344
344
  computations?: Record<string, {
@@ -364,7 +364,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
364
364
  image_resolution_dpi: z.ZodNumber;
365
365
  reasoning_effort: z.ZodEnum<["minimal", "low", "medium", "high"]>;
366
366
  n_consensus: z.ZodNumber;
367
- parallel_ocr_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
367
+ chunking_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
368
368
  }, "strict", z.ZodTypeAny, {
369
369
  model: string;
370
370
  temperature: number;
@@ -372,7 +372,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
372
372
  image_resolution_dpi: number;
373
373
  reasoning_effort: "minimal" | "low" | "medium" | "high";
374
374
  id?: string | undefined;
375
- parallel_ocr_keys?: Record<string, string> | undefined;
375
+ chunking_keys?: Record<string, string> | undefined;
376
376
  }, {
377
377
  model: string;
378
378
  temperature: number;
@@ -380,7 +380,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
380
380
  image_resolution_dpi: number;
381
381
  reasoning_effort: "minimal" | "low" | "medium" | "high";
382
382
  id?: string | undefined;
383
- parallel_ocr_keys?: Record<string, string> | undefined;
383
+ chunking_keys?: Record<string, string> | undefined;
384
384
  }>;
385
385
  json_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
386
386
  human_in_the_loop_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -414,6 +414,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
414
414
  origin: z.ZodDefault<z.ZodString>;
415
415
  }, "strict", z.ZodTypeAny, {
416
416
  json_schema: Record<string, any>;
417
+ origin: string;
417
418
  inference_settings: {
418
419
  model: string;
419
420
  temperature: number;
@@ -421,7 +422,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
421
422
  image_resolution_dpi: number;
422
423
  reasoning_effort: "minimal" | "low" | "medium" | "high";
423
424
  id?: string | undefined;
424
- parallel_ocr_keys?: Record<string, string> | undefined;
425
+ chunking_keys?: Record<string, string> | undefined;
425
426
  };
426
427
  human_in_the_loop_criteria: {
427
428
  path: string;
@@ -432,7 +433,6 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
432
433
  expression: string;
433
434
  }>;
434
435
  };
435
- origin: string;
436
436
  }, {
437
437
  inference_settings: {
438
438
  model: string;
@@ -441,7 +441,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
441
441
  image_resolution_dpi: number;
442
442
  reasoning_effort: "minimal" | "low" | "medium" | "high";
443
443
  id?: string | undefined;
444
- parallel_ocr_keys?: Record<string, string> | undefined;
444
+ chunking_keys?: Record<string, string> | undefined;
445
445
  };
446
446
  computation_spec: {
447
447
  computations?: Record<string, {
@@ -449,11 +449,11 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
449
449
  }> | undefined;
450
450
  };
451
451
  json_schema?: Record<string, any> | undefined;
452
+ origin?: string | undefined;
452
453
  human_in_the_loop_criteria?: {
453
454
  path: string;
454
455
  agentic_fix: boolean;
455
456
  }[] | undefined;
456
- origin?: string | undefined;
457
457
  }>>;
458
458
  draft_config: z.ZodOptional<z.ZodObject<{
459
459
  inference_settings: z.ZodObject<{
@@ -463,7 +463,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
463
463
  image_resolution_dpi: z.ZodNumber;
464
464
  reasoning_effort: z.ZodEnum<["minimal", "low", "medium", "high"]>;
465
465
  n_consensus: z.ZodNumber;
466
- parallel_ocr_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
466
+ chunking_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
467
467
  }, "strict", z.ZodTypeAny, {
468
468
  model: string;
469
469
  temperature: number;
@@ -471,7 +471,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
471
471
  image_resolution_dpi: number;
472
472
  reasoning_effort: "minimal" | "low" | "medium" | "high";
473
473
  id?: string | undefined;
474
- parallel_ocr_keys?: Record<string, string> | undefined;
474
+ chunking_keys?: Record<string, string> | undefined;
475
475
  }, {
476
476
  model: string;
477
477
  temperature: number;
@@ -479,7 +479,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
479
479
  image_resolution_dpi: number;
480
480
  reasoning_effort: "minimal" | "low" | "medium" | "high";
481
481
  id?: string | undefined;
482
- parallel_ocr_keys?: Record<string, string> | undefined;
482
+ chunking_keys?: Record<string, string> | undefined;
483
483
  }>;
484
484
  json_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
485
485
  human_in_the_loop_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -518,7 +518,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
518
518
  image_resolution_dpi: number;
519
519
  reasoning_effort: "minimal" | "low" | "medium" | "high";
520
520
  id?: string | undefined;
521
- parallel_ocr_keys?: Record<string, string> | undefined;
521
+ chunking_keys?: Record<string, string> | undefined;
522
522
  };
523
523
  human_in_the_loop_criteria: {
524
524
  path: string;
@@ -537,7 +537,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
537
537
  image_resolution_dpi: number;
538
538
  reasoning_effort: "minimal" | "low" | "medium" | "high";
539
539
  id?: string | undefined;
540
- parallel_ocr_keys?: Record<string, string> | undefined;
540
+ chunking_keys?: Record<string, string> | undefined;
541
541
  };
542
542
  computation_spec: {
543
543
  computations?: Record<string, {
@@ -577,6 +577,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
577
577
  } | undefined;
578
578
  published_config?: {
579
579
  json_schema: Record<string, any>;
580
+ origin: string;
580
581
  inference_settings: {
581
582
  model: string;
582
583
  temperature: number;
@@ -584,7 +585,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
584
585
  image_resolution_dpi: number;
585
586
  reasoning_effort: "minimal" | "low" | "medium" | "high";
586
587
  id?: string | undefined;
587
- parallel_ocr_keys?: Record<string, string> | undefined;
588
+ chunking_keys?: Record<string, string> | undefined;
588
589
  };
589
590
  human_in_the_loop_criteria: {
590
591
  path: string;
@@ -595,7 +596,6 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
595
596
  expression: string;
596
597
  }>;
597
598
  };
598
- origin: string;
599
599
  } | undefined;
600
600
  draft_config?: {
601
601
  json_schema: Record<string, any>;
@@ -606,7 +606,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
606
606
  image_resolution_dpi: number;
607
607
  reasoning_effort: "minimal" | "low" | "medium" | "high";
608
608
  id?: string | undefined;
609
- parallel_ocr_keys?: Record<string, string> | undefined;
609
+ chunking_keys?: Record<string, string> | undefined;
610
610
  };
611
611
  human_in_the_loop_criteria: {
612
612
  path: string;
@@ -634,7 +634,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
634
634
  image_resolution_dpi: number;
635
635
  reasoning_effort: "minimal" | "low" | "medium" | "high";
636
636
  id?: string | undefined;
637
- parallel_ocr_keys?: Record<string, string> | undefined;
637
+ chunking_keys?: Record<string, string> | undefined;
638
638
  };
639
639
  computation_spec: {
640
640
  computations?: Record<string, {
@@ -642,11 +642,11 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
642
642
  }> | undefined;
643
643
  };
644
644
  json_schema?: Record<string, any> | undefined;
645
+ origin?: string | undefined;
645
646
  human_in_the_loop_criteria?: {
646
647
  path: string;
647
648
  agentic_fix: boolean;
648
649
  }[] | undefined;
649
- origin?: string | undefined;
650
650
  } | undefined;
651
651
  draft_config?: {
652
652
  inference_settings: {
@@ -656,7 +656,7 @@ declare const PatchProjectRequestSchema: z.ZodObject<{
656
656
  image_resolution_dpi: number;
657
657
  reasoning_effort: "minimal" | "low" | "medium" | "high";
658
658
  id?: string | undefined;
659
- parallel_ocr_keys?: Record<string, string> | undefined;
659
+ chunking_keys?: Record<string, string> | undefined;
660
660
  };
661
661
  computation_spec: {
662
662
  computations?: Record<string, {
@@ -1040,7 +1040,7 @@ declare const ExtractionSchema: z.ZodObject<{
1040
1040
  image_resolution_dpi: z.ZodNumber;
1041
1041
  reasoning_effort: z.ZodEnum<["minimal", "low", "medium", "high"]>;
1042
1042
  n_consensus: z.ZodNumber;
1043
- parallel_ocr_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1043
+ chunking_keys: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1044
1044
  }, "strict", z.ZodTypeAny, {
1045
1045
  model: string;
1046
1046
  temperature: number;
@@ -1048,7 +1048,7 @@ declare const ExtractionSchema: z.ZodObject<{
1048
1048
  image_resolution_dpi: number;
1049
1049
  reasoning_effort: "minimal" | "low" | "medium" | "high";
1050
1050
  id?: string | undefined;
1051
- parallel_ocr_keys?: Record<string, string> | undefined;
1051
+ chunking_keys?: Record<string, string> | undefined;
1052
1052
  }, {
1053
1053
  model: string;
1054
1054
  temperature: number;
@@ -1056,7 +1056,7 @@ declare const ExtractionSchema: z.ZodObject<{
1056
1056
  image_resolution_dpi: number;
1057
1057
  reasoning_effort: "minimal" | "low" | "medium" | "high";
1058
1058
  id?: string | undefined;
1059
- parallel_ocr_keys?: Record<string, string> | undefined;
1059
+ chunking_keys?: Record<string, string> | undefined;
1060
1060
  }>;
1061
1061
  json_schema: z.ZodRecord<z.ZodString, z.ZodAny>;
1062
1062
  created_at: z.ZodString;
@@ -1070,6 +1070,10 @@ declare const ExtractionSchema: z.ZodObject<{
1070
1070
  updated_at: string;
1071
1071
  organization_id: string;
1072
1072
  created_at: string;
1073
+ origin: {
1074
+ type: string;
1075
+ id?: string | null | undefined;
1076
+ };
1073
1077
  inference_settings: {
1074
1078
  model: string;
1075
1079
  temperature: number;
@@ -1077,11 +1081,7 @@ declare const ExtractionSchema: z.ZodObject<{
1077
1081
  image_resolution_dpi: number;
1078
1082
  reasoning_effort: "minimal" | "low" | "medium" | "high";
1079
1083
  id?: string | undefined;
1080
- parallel_ocr_keys?: Record<string, string> | undefined;
1081
- };
1082
- origin: {
1083
- type: string;
1084
- id?: string | null | undefined;
1084
+ chunking_keys?: Record<string, string> | undefined;
1085
1085
  };
1086
1086
  file: {
1087
1087
  id: string;
@@ -1096,6 +1096,10 @@ declare const ExtractionSchema: z.ZodObject<{
1096
1096
  updated_at: string;
1097
1097
  organization_id: string;
1098
1098
  created_at: string;
1099
+ origin: {
1100
+ type: string;
1101
+ id?: string | null | undefined;
1102
+ };
1099
1103
  inference_settings: {
1100
1104
  model: string;
1101
1105
  temperature: number;
@@ -1103,11 +1107,7 @@ declare const ExtractionSchema: z.ZodObject<{
1103
1107
  image_resolution_dpi: number;
1104
1108
  reasoning_effort: "minimal" | "low" | "medium" | "high";
1105
1109
  id?: string | undefined;
1106
- parallel_ocr_keys?: Record<string, string> | undefined;
1107
- };
1108
- origin: {
1109
- type: string;
1110
- id?: string | null | undefined;
1110
+ chunking_keys?: Record<string, string> | undefined;
1111
1111
  };
1112
1112
  file: {
1113
1113
  id: string;
@@ -1384,6 +1384,10 @@ declare const useExtraction: (extractionId: string | null | undefined) => _tanst
1384
1384
  updated_at: string;
1385
1385
  organization_id: string;
1386
1386
  created_at: string;
1387
+ origin: {
1388
+ type: string;
1389
+ id?: string | null | undefined;
1390
+ };
1387
1391
  inference_settings: {
1388
1392
  model: string;
1389
1393
  temperature: number;
@@ -1391,11 +1395,7 @@ declare const useExtraction: (extractionId: string | null | undefined) => _tanst
1391
1395
  image_resolution_dpi: number;
1392
1396
  reasoning_effort: "minimal" | "low" | "medium" | "high";
1393
1397
  id?: string | undefined;
1394
- parallel_ocr_keys?: Record<string, string> | undefined;
1395
- };
1396
- origin: {
1397
- type: string;
1398
- id?: string | null | undefined;
1398
+ chunking_keys?: Record<string, string> | undefined;
1399
1399
  };
1400
1400
  file: {
1401
1401
  id: string;