@retab/node 1.0.99 → 1.0.114

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.
@@ -920,7 +920,7 @@ export const ZForEachSentinelStartStepOutput = z.lazy(() => (z.object({
920
920
  all_item_keys: z.array(z.string()).nullable().optional(),
921
921
  all_iteration_context_texts: z.array(z.string()).nullable().optional(),
922
922
  })));
923
- export const ZFunctionsStepOutput = z.lazy(() => (z.object({
923
+ export const ZFormulaStepOutput = z.lazy(() => (z.object({
924
924
  message: z.string(),
925
925
  computations: z.array(z.string()),
926
926
  extracted_data: z.record(z.string(), z.any()),
@@ -1270,6 +1270,7 @@ export const ZClassifyRequest = z.lazy(() => (z.object({
1270
1270
  model: z.string().default("retab-small"),
1271
1271
  first_n_pages: z.number().nullable().optional(),
1272
1272
  context: z.string().nullable().optional(),
1273
+ bust_cache: z.boolean().default(false),
1273
1274
  })));
1274
1275
  export const ZClassifyResponse = z.lazy(() => (z.object({
1275
1276
  result: ZClassifyResult,
@@ -1284,6 +1285,7 @@ export const ZParseRequest = z.lazy(() => (z.object({
1284
1285
  model: z.string().default("retab-small"),
1285
1286
  table_parsing_format: z.union([z.literal("markdown"), z.literal("yaml"), z.literal("html"), z.literal("json")]).default("html"),
1286
1287
  image_resolution_dpi: z.number().default(192),
1288
+ bust_cache: z.boolean().default(false),
1287
1289
  })));
1288
1290
  export const ZParseResponse = z.lazy(() => (z.object({
1289
1291
  document: ZBaseMIMEData,
@@ -1297,6 +1299,7 @@ export const ZSplitRequest = z.lazy(() => (z.object({
1297
1299
  model: z.string().default("retab-small"),
1298
1300
  context: z.string().nullable().optional(),
1299
1301
  n_consensus: z.number().default(1),
1302
+ bust_cache: z.boolean().default(false),
1300
1303
  })));
1301
1304
  export const ZSplitResult = z.lazy(() => (z.object({
1302
1305
  name: z.string(),
@@ -1324,6 +1327,7 @@ export const ZEditRequest = z.lazy(() => (z.object({
1324
1327
  instructions: z.string(),
1325
1328
  template_id: z.string().nullable().optional(),
1326
1329
  config: ZEditConfig,
1330
+ bust_cache: z.boolean().default(false),
1327
1331
  })));
1328
1332
  export const ZEditResponse = z.lazy(() => (z.object({
1329
1333
  form_data: z.array(ZFormField),
@@ -1428,6 +1432,7 @@ export const ZDocumentExtractRequest = z.lazy(() => (z.object({
1428
1432
  metadata: z.record(z.string(), z.string()),
1429
1433
  extraction_id: z.string().nullable().optional(),
1430
1434
  additional_messages: z.array(ZChatCompletionRetabMessage).nullable().optional(),
1435
+ bust_cache: z.boolean().default(false),
1431
1436
  })));
1432
1437
  export const ZLogExtractionRequest = z.lazy(() => (z.object({
1433
1438
  messages: z.array(ZChatCompletionRetabMessage).nullable().optional(),