@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.
@@ -11,6 +11,8 @@ export default class APIEvalsExtract extends CompositionClient {
11
11
  metadata?: Record<string, string>;
12
12
  extraction_id?: string;
13
13
  }, options?: RequestOptions): Promise<{
14
+ data: any;
15
+ text: string | null;
14
16
  object: "chat.completion";
15
17
  id: string;
16
18
  model: string;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/api/evals/extract/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EACH,aAAa,EAGhB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,iBAAiB;IACpD,OAAO,CAAC,EACV,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,QAAQ,EACR,aAAa,EACb,GAAG,IAAI,EACV,EAAE;QACC,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClC,aAAa,CAAC,EAAE,MAAM,CAAC;KAC1B,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwBrB,aAAa,CAAC,EAChB,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,oBAAoB,E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Ac,CAAC,MAAM,EAAE;QACzB,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClC,aAAa,CAAC,EAAE,MAAM,CAAC;KAC1B,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG9B"}
@@ -11,6 +11,8 @@ export default class APIEvalsSplit extends CompositionClient {
11
11
  metadata?: Record<string, string>;
12
12
  extraction_id?: string;
13
13
  }, options?: RequestOptions): Promise<{
14
+ data: any;
15
+ text: string | null;
14
16
  object: "chat.completion";
15
17
  id: string;
16
18
  model: string;
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/api/evals/split/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,aAAa,EAA8B,MAAM,mBAAmB,CAAC;AAG9E,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,iBAAiB;IAClD,OAAO,CAAC,EACV,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,QAAQ,EACR,aAAa,EACb,GAAG,IAAI,EACV,EAAE;QACC,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClC,aAAa,CAAC,EAAE,MAAM,CAAC;KAC1B,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB9B"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/api/evals/split/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,aAAa,EAA8B,MAAM,mBAAmB,CAAC;AAG9E,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,iBAAiB;IAClD,OAAO,CAAC,EACV,OAAO,EACP,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,oBAAoB,EACpB,WAAW,EACX,QAAQ,EACR,aAAa,EACb,GAAG,IAAI,EACV,EAAE;QACC,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAClC,aAAa,CAAC,EAAE,MAAM,CAAC;KAC1B,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuB9B"}
@@ -10270,7 +10270,7 @@ export declare const ZForEachSentinelStartStepOutput: z.ZodLazy<z.ZodObject<{
10270
10270
  all_iteration_context_texts?: string[] | null | undefined;
10271
10271
  }>>;
10272
10272
  export type ForEachSentinelStartStepOutput = z.infer<typeof ZForEachSentinelStartStepOutput>;
10273
- export declare const ZFunctionsStepOutput: z.ZodLazy<z.ZodObject<{
10273
+ export declare const ZFormulaStepOutput: z.ZodLazy<z.ZodObject<{
10274
10274
  message: z.ZodString;
10275
10275
  computations: z.ZodArray<z.ZodString, "many">;
10276
10276
  extracted_data: z.ZodRecord<z.ZodString, z.ZodAny>;
@@ -10292,7 +10292,7 @@ export declare const ZFunctionsStepOutput: z.ZodLazy<z.ZodObject<{
10292
10292
  extraction_id?: string | null | undefined;
10293
10293
  computation_spec?: Record<string, any> | null | undefined;
10294
10294
  }>>;
10295
- export type FunctionsStepOutput = z.infer<typeof ZFunctionsStepOutput>;
10295
+ export type FormulaStepOutput = z.infer<typeof ZFormulaStepOutput>;
10296
10296
  export declare const ZHILStepOutput: z.ZodLazy<z.ZodObject<{
10297
10297
  message: z.ZodString;
10298
10298
  requires_review: z.ZodDefault<z.ZodBoolean>;
@@ -32392,6 +32392,7 @@ export declare const ZClassifyRequest: z.ZodLazy<z.ZodObject<{
32392
32392
  model: z.ZodDefault<z.ZodString>;
32393
32393
  first_n_pages: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32394
32394
  context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32395
+ bust_cache: z.ZodDefault<z.ZodBoolean>;
32395
32396
  }, "strip", z.ZodTypeAny, {
32396
32397
  model: string;
32397
32398
  categories: {
@@ -32402,6 +32403,7 @@ export declare const ZClassifyRequest: z.ZodLazy<z.ZodObject<{
32402
32403
  filename: string;
32403
32404
  url: string;
32404
32405
  };
32406
+ bust_cache: boolean;
32405
32407
  context?: string | null | undefined;
32406
32408
  first_n_pages?: number | null | undefined;
32407
32409
  }, {
@@ -32416,6 +32418,7 @@ export declare const ZClassifyRequest: z.ZodLazy<z.ZodObject<{
32416
32418
  model?: string | undefined;
32417
32419
  context?: string | null | undefined;
32418
32420
  first_n_pages?: number | null | undefined;
32421
+ bust_cache?: boolean | undefined;
32419
32422
  }>>;
32420
32423
  export type ClassifyRequest = z.infer<typeof ZClassifyRequest>;
32421
32424
  export declare const ZClassifyResponse: z.ZodLazy<z.ZodObject<{
@@ -32479,6 +32482,7 @@ export declare const ZParseRequest: z.ZodLazy<z.ZodObject<{
32479
32482
  model: z.ZodDefault<z.ZodString>;
32480
32483
  table_parsing_format: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"markdown">, z.ZodLiteral<"yaml">, z.ZodLiteral<"html">, z.ZodLiteral<"json">]>>;
32481
32484
  image_resolution_dpi: z.ZodDefault<z.ZodNumber>;
32485
+ bust_cache: z.ZodDefault<z.ZodBoolean>;
32482
32486
  }, "strip", z.ZodTypeAny, {
32483
32487
  model: string;
32484
32488
  image_resolution_dpi: number;
@@ -32486,6 +32490,7 @@ export declare const ZParseRequest: z.ZodLazy<z.ZodObject<{
32486
32490
  filename: string;
32487
32491
  url: string;
32488
32492
  };
32493
+ bust_cache: boolean;
32489
32494
  table_parsing_format: "json" | "markdown" | "yaml" | "html";
32490
32495
  }, {
32491
32496
  document: {
@@ -32494,6 +32499,7 @@ export declare const ZParseRequest: z.ZodLazy<z.ZodObject<{
32494
32499
  };
32495
32500
  model?: string | undefined;
32496
32501
  image_resolution_dpi?: number | undefined;
32502
+ bust_cache?: boolean | undefined;
32497
32503
  table_parsing_format?: "json" | "markdown" | "yaml" | "html" | undefined;
32498
32504
  }>>;
32499
32505
  export type ParseRequest = z.infer<typeof ZParseRequest>;
@@ -32571,6 +32577,7 @@ export declare const ZSplitRequest: z.ZodLazy<z.ZodObject<{
32571
32577
  model: z.ZodDefault<z.ZodString>;
32572
32578
  context: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32573
32579
  n_consensus: z.ZodDefault<z.ZodNumber>;
32580
+ bust_cache: z.ZodDefault<z.ZodBoolean>;
32574
32581
  }, "strip", z.ZodTypeAny, {
32575
32582
  model: string;
32576
32583
  n_consensus: number;
@@ -32583,6 +32590,7 @@ export declare const ZSplitRequest: z.ZodLazy<z.ZodObject<{
32583
32590
  filename: string;
32584
32591
  url: string;
32585
32592
  };
32593
+ bust_cache: boolean;
32586
32594
  context?: string | null | undefined;
32587
32595
  }, {
32588
32596
  subdocuments: {
@@ -32597,6 +32605,7 @@ export declare const ZSplitRequest: z.ZodLazy<z.ZodObject<{
32597
32605
  model?: string | undefined;
32598
32606
  n_consensus?: number | undefined;
32599
32607
  context?: string | null | undefined;
32608
+ bust_cache?: boolean | undefined;
32600
32609
  }>>;
32601
32610
  export type SplitRequest = z.infer<typeof ZSplitRequest>;
32602
32611
  export declare const ZSplitResult: z.ZodLazy<z.ZodObject<{
@@ -32742,12 +32751,14 @@ export declare const ZEditRequest: z.ZodLazy<z.ZodObject<{
32742
32751
  }, {
32743
32752
  color?: string | undefined;
32744
32753
  }>>;
32754
+ bust_cache: z.ZodDefault<z.ZodBoolean>;
32745
32755
  }, "strip", z.ZodTypeAny, {
32746
32756
  model: string;
32747
32757
  config: {
32748
32758
  color: string;
32749
32759
  };
32750
32760
  instructions: string;
32761
+ bust_cache: boolean;
32751
32762
  document?: {
32752
32763
  filename: string;
32753
32764
  url: string;
@@ -32764,6 +32775,7 @@ export declare const ZEditRequest: z.ZodLazy<z.ZodObject<{
32764
32775
  url: string;
32765
32776
  } | null | undefined;
32766
32777
  template_id?: string | null | undefined;
32778
+ bust_cache?: boolean | undefined;
32767
32779
  }>>;
32768
32780
  export type EditRequest = z.infer<typeof ZEditRequest>;
32769
32781
  export declare const ZEditResponse: z.ZodLazy<z.ZodObject<{
@@ -35160,6 +35172,7 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
35160
35172
  id: string;
35161
35173
  }[] | null | undefined;
35162
35174
  }>>, "many">>>;
35175
+ bust_cache: z.ZodDefault<z.ZodBoolean>;
35163
35176
  }, "strip", z.ZodTypeAny, {
35164
35177
  stream: boolean;
35165
35178
  metadata: Record<string, string>;
@@ -35171,6 +35184,7 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
35171
35184
  filename: string;
35172
35185
  url: string;
35173
35186
  };
35187
+ bust_cache: boolean;
35174
35188
  chunking_keys?: Record<string, string> | null | undefined;
35175
35189
  extraction_id?: string | null | undefined;
35176
35190
  additional_messages?: {
@@ -35221,6 +35235,7 @@ export declare const ZDocumentExtractRequest: z.ZodLazy<z.ZodObject<{
35221
35235
  n_consensus?: number | undefined;
35222
35236
  chunking_keys?: Record<string, string> | null | undefined;
35223
35237
  extraction_id?: string | null | undefined;
35238
+ bust_cache?: boolean | undefined;
35224
35239
  additional_messages?: {
35225
35240
  role: "user" | "system" | "assistant" | "developer" | "tool";
35226
35241
  content?: string | ({