@retab/node 1.0.76 → 1.0.78

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.
@@ -17050,6 +17050,370 @@ export declare const ZTextBlockParam: z.ZodLazy<z.ZodObject<{
17050
17050
  })[] | null | undefined;
17051
17051
  }>>;
17052
17052
  export type TextBlockParam = z.infer<typeof ZTextBlockParam>;
17053
+ export declare const ZCreateEditTemplateRequest: z.ZodLazy<z.ZodObject<{
17054
+ name: z.ZodString;
17055
+ document: z.ZodLazy<z.ZodObject<{
17056
+ filename: z.ZodString;
17057
+ url: z.ZodString;
17058
+ }, "strip", z.ZodTypeAny, {
17059
+ filename: string;
17060
+ url: string;
17061
+ }, {
17062
+ filename: string;
17063
+ url: string;
17064
+ }>>;
17065
+ form_fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
17066
+ bbox: z.ZodLazy<z.ZodObject<{
17067
+ left: z.ZodNumber;
17068
+ top: z.ZodNumber;
17069
+ width: z.ZodNumber;
17070
+ height: z.ZodNumber;
17071
+ page: z.ZodNumber;
17072
+ }, "strip", z.ZodTypeAny, {
17073
+ width: number;
17074
+ height: number;
17075
+ left: number;
17076
+ top: number;
17077
+ page: number;
17078
+ }, {
17079
+ width: number;
17080
+ height: number;
17081
+ left: number;
17082
+ top: number;
17083
+ page: number;
17084
+ }>>;
17085
+ description: z.ZodString;
17086
+ type: z.ZodAny;
17087
+ key: z.ZodString;
17088
+ } & {
17089
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17090
+ }, "strip", z.ZodTypeAny, {
17091
+ description: string;
17092
+ key: string;
17093
+ bbox: {
17094
+ width: number;
17095
+ height: number;
17096
+ left: number;
17097
+ top: number;
17098
+ page: number;
17099
+ };
17100
+ type?: any;
17101
+ value?: string | null | undefined;
17102
+ }, {
17103
+ description: string;
17104
+ key: string;
17105
+ bbox: {
17106
+ width: number;
17107
+ height: number;
17108
+ left: number;
17109
+ top: number;
17110
+ page: number;
17111
+ };
17112
+ type?: any;
17113
+ value?: string | null | undefined;
17114
+ }>>, "many">;
17115
+ }, "strip", z.ZodTypeAny, {
17116
+ name: string;
17117
+ document: {
17118
+ filename: string;
17119
+ url: string;
17120
+ };
17121
+ form_fields: {
17122
+ description: string;
17123
+ key: string;
17124
+ bbox: {
17125
+ width: number;
17126
+ height: number;
17127
+ left: number;
17128
+ top: number;
17129
+ page: number;
17130
+ };
17131
+ type?: any;
17132
+ value?: string | null | undefined;
17133
+ }[];
17134
+ }, {
17135
+ name: string;
17136
+ document: {
17137
+ filename: string;
17138
+ url: string;
17139
+ };
17140
+ form_fields: {
17141
+ description: string;
17142
+ key: string;
17143
+ bbox: {
17144
+ width: number;
17145
+ height: number;
17146
+ left: number;
17147
+ top: number;
17148
+ page: number;
17149
+ };
17150
+ type?: any;
17151
+ value?: string | null | undefined;
17152
+ }[];
17153
+ }>>;
17154
+ export type CreateEditTemplateRequest = z.infer<typeof ZCreateEditTemplateRequest>;
17155
+ export declare const ZDuplicateEditTemplateRequest: z.ZodLazy<z.ZodObject<{
17156
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17157
+ }, "strip", z.ZodTypeAny, {
17158
+ name?: string | null | undefined;
17159
+ }, {
17160
+ name?: string | null | undefined;
17161
+ }>>;
17162
+ export type DuplicateEditTemplateRequest = z.infer<typeof ZDuplicateEditTemplateRequest>;
17163
+ export declare const ZEditTemplate: z.ZodLazy<z.ZodObject<{
17164
+ id: z.ZodString;
17165
+ name: z.ZodString;
17166
+ file: z.ZodLazy<z.ZodObject<{
17167
+ id: z.ZodString;
17168
+ filename: z.ZodString;
17169
+ mime_type: z.ZodString;
17170
+ }, "strip", z.ZodTypeAny, {
17171
+ filename: string;
17172
+ id: string;
17173
+ mime_type: string;
17174
+ }, {
17175
+ filename: string;
17176
+ id: string;
17177
+ mime_type: string;
17178
+ }>>;
17179
+ form_fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
17180
+ bbox: z.ZodLazy<z.ZodObject<{
17181
+ left: z.ZodNumber;
17182
+ top: z.ZodNumber;
17183
+ width: z.ZodNumber;
17184
+ height: z.ZodNumber;
17185
+ page: z.ZodNumber;
17186
+ }, "strip", z.ZodTypeAny, {
17187
+ width: number;
17188
+ height: number;
17189
+ left: number;
17190
+ top: number;
17191
+ page: number;
17192
+ }, {
17193
+ width: number;
17194
+ height: number;
17195
+ left: number;
17196
+ top: number;
17197
+ page: number;
17198
+ }>>;
17199
+ description: z.ZodString;
17200
+ type: z.ZodAny;
17201
+ key: z.ZodString;
17202
+ } & {
17203
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17204
+ }, "strip", z.ZodTypeAny, {
17205
+ description: string;
17206
+ key: string;
17207
+ bbox: {
17208
+ width: number;
17209
+ height: number;
17210
+ left: number;
17211
+ top: number;
17212
+ page: number;
17213
+ };
17214
+ type?: any;
17215
+ value?: string | null | undefined;
17216
+ }, {
17217
+ description: string;
17218
+ key: string;
17219
+ bbox: {
17220
+ width: number;
17221
+ height: number;
17222
+ left: number;
17223
+ top: number;
17224
+ page: number;
17225
+ };
17226
+ type?: any;
17227
+ value?: string | null | undefined;
17228
+ }>>, "many">;
17229
+ organization_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17230
+ created_at: z.ZodString;
17231
+ updated_at: z.ZodString;
17232
+ }, "strip", z.ZodTypeAny, {
17233
+ id: string;
17234
+ name: string;
17235
+ file: {
17236
+ filename: string;
17237
+ id: string;
17238
+ mime_type: string;
17239
+ };
17240
+ updated_at: string;
17241
+ created_at: string;
17242
+ form_fields: {
17243
+ description: string;
17244
+ key: string;
17245
+ bbox: {
17246
+ width: number;
17247
+ height: number;
17248
+ left: number;
17249
+ top: number;
17250
+ page: number;
17251
+ };
17252
+ type?: any;
17253
+ value?: string | null | undefined;
17254
+ }[];
17255
+ organization_id?: string | null | undefined;
17256
+ }, {
17257
+ id: string;
17258
+ name: string;
17259
+ file: {
17260
+ filename: string;
17261
+ id: string;
17262
+ mime_type: string;
17263
+ };
17264
+ updated_at: string;
17265
+ created_at: string;
17266
+ form_fields: {
17267
+ description: string;
17268
+ key: string;
17269
+ bbox: {
17270
+ width: number;
17271
+ height: number;
17272
+ left: number;
17273
+ top: number;
17274
+ page: number;
17275
+ };
17276
+ type?: any;
17277
+ value?: string | null | undefined;
17278
+ }[];
17279
+ organization_id?: string | null | undefined;
17280
+ }>>;
17281
+ export type EditTemplate = z.infer<typeof ZEditTemplate>;
17282
+ export declare const ZUpdateEditTemplateRequest: z.ZodLazy<z.ZodObject<{
17283
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17284
+ form_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodLazy<z.ZodObject<{
17285
+ bbox: z.ZodLazy<z.ZodObject<{
17286
+ left: z.ZodNumber;
17287
+ top: z.ZodNumber;
17288
+ width: z.ZodNumber;
17289
+ height: z.ZodNumber;
17290
+ page: z.ZodNumber;
17291
+ }, "strip", z.ZodTypeAny, {
17292
+ width: number;
17293
+ height: number;
17294
+ left: number;
17295
+ top: number;
17296
+ page: number;
17297
+ }, {
17298
+ width: number;
17299
+ height: number;
17300
+ left: number;
17301
+ top: number;
17302
+ page: number;
17303
+ }>>;
17304
+ description: z.ZodString;
17305
+ type: z.ZodAny;
17306
+ key: z.ZodString;
17307
+ } & {
17308
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17309
+ }, "strip", z.ZodTypeAny, {
17310
+ description: string;
17311
+ key: string;
17312
+ bbox: {
17313
+ width: number;
17314
+ height: number;
17315
+ left: number;
17316
+ top: number;
17317
+ page: number;
17318
+ };
17319
+ type?: any;
17320
+ value?: string | null | undefined;
17321
+ }, {
17322
+ description: string;
17323
+ key: string;
17324
+ bbox: {
17325
+ width: number;
17326
+ height: number;
17327
+ left: number;
17328
+ top: number;
17329
+ page: number;
17330
+ };
17331
+ type?: any;
17332
+ value?: string | null | undefined;
17333
+ }>>, "many">>>;
17334
+ }, "strip", z.ZodTypeAny, {
17335
+ name?: string | null | undefined;
17336
+ form_fields?: {
17337
+ description: string;
17338
+ key: string;
17339
+ bbox: {
17340
+ width: number;
17341
+ height: number;
17342
+ left: number;
17343
+ top: number;
17344
+ page: number;
17345
+ };
17346
+ type?: any;
17347
+ value?: string | null | undefined;
17348
+ }[] | null | undefined;
17349
+ }, {
17350
+ name?: string | null | undefined;
17351
+ form_fields?: {
17352
+ description: string;
17353
+ key: string;
17354
+ bbox: {
17355
+ width: number;
17356
+ height: number;
17357
+ left: number;
17358
+ top: number;
17359
+ page: number;
17360
+ };
17361
+ type?: any;
17362
+ value?: string | null | undefined;
17363
+ }[] | null | undefined;
17364
+ }>>;
17365
+ export type UpdateEditTemplateRequest = z.infer<typeof ZUpdateEditTemplateRequest>;
17366
+ export declare const ZFormField: z.ZodLazy<z.ZodObject<{
17367
+ bbox: z.ZodLazy<z.ZodObject<{
17368
+ left: z.ZodNumber;
17369
+ top: z.ZodNumber;
17370
+ width: z.ZodNumber;
17371
+ height: z.ZodNumber;
17372
+ page: z.ZodNumber;
17373
+ }, "strip", z.ZodTypeAny, {
17374
+ width: number;
17375
+ height: number;
17376
+ left: number;
17377
+ top: number;
17378
+ page: number;
17379
+ }, {
17380
+ width: number;
17381
+ height: number;
17382
+ left: number;
17383
+ top: number;
17384
+ page: number;
17385
+ }>>;
17386
+ description: z.ZodString;
17387
+ type: z.ZodAny;
17388
+ key: z.ZodString;
17389
+ } & {
17390
+ value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17391
+ }, "strip", z.ZodTypeAny, {
17392
+ description: string;
17393
+ key: string;
17394
+ bbox: {
17395
+ width: number;
17396
+ height: number;
17397
+ left: number;
17398
+ top: number;
17399
+ page: number;
17400
+ };
17401
+ type?: any;
17402
+ value?: string | null | undefined;
17403
+ }, {
17404
+ description: string;
17405
+ key: string;
17406
+ bbox: {
17407
+ width: number;
17408
+ height: number;
17409
+ left: number;
17410
+ top: number;
17411
+ page: number;
17412
+ };
17413
+ type?: any;
17414
+ value?: string | null | undefined;
17415
+ }>>;
17416
+ export type FormField = z.infer<typeof ZFormField>;
17053
17417
  export declare const ZDocumentTransformRequest: z.ZodLazy<z.ZodObject<{
17054
17418
  document: z.ZodLazy<z.ZodObject<{
17055
17419
  filename: z.ZodString;
@@ -17072,8 +17436,53 @@ export declare const ZDocumentTransformRequest: z.ZodLazy<z.ZodObject<{
17072
17436
  url: string;
17073
17437
  };
17074
17438
  }>>;
17075
- export type DocumentTransformRequest = z.infer<typeof ZDocumentTransformRequest>;
17076
- export declare const ZDocumentTransformResponse: z.ZodLazy<z.ZodObject<{
17439
+ export type DocumentTransformRequest = z.infer<typeof ZDocumentTransformRequest>;
17440
+ export declare const ZDocumentTransformResponse: z.ZodLazy<z.ZodObject<{
17441
+ document: z.ZodLazy<z.ZodObject<{
17442
+ filename: z.ZodString;
17443
+ url: z.ZodString;
17444
+ }, "strip", z.ZodTypeAny, {
17445
+ filename: string;
17446
+ url: string;
17447
+ }, {
17448
+ filename: string;
17449
+ url: string;
17450
+ }>>;
17451
+ }, "strip", z.ZodTypeAny, {
17452
+ document: {
17453
+ filename: string;
17454
+ url: string;
17455
+ };
17456
+ }, {
17457
+ document: {
17458
+ filename: string;
17459
+ url: string;
17460
+ };
17461
+ }>>;
17462
+ export type DocumentTransformResponse = z.infer<typeof ZDocumentTransformResponse>;
17463
+ export declare const ZCategory: z.ZodLazy<z.ZodObject<{
17464
+ name: z.ZodString;
17465
+ description: z.ZodString;
17466
+ }, "strip", z.ZodTypeAny, {
17467
+ name: string;
17468
+ description: string;
17469
+ }, {
17470
+ name: string;
17471
+ description: string;
17472
+ }>>;
17473
+ export type Category = z.infer<typeof ZCategory>;
17474
+ export declare const ZClassifyOutputSchema: z.ZodLazy<z.ZodObject<{
17475
+ reasoning: z.ZodString;
17476
+ classification: z.ZodString;
17477
+ }, "strip", z.ZodTypeAny, {
17478
+ reasoning: string;
17479
+ classification: string;
17480
+ }, {
17481
+ reasoning: string;
17482
+ classification: string;
17483
+ }>>;
17484
+ export type ClassifyOutputSchema = z.infer<typeof ZClassifyOutputSchema>;
17485
+ export declare const ZClassifyRequest: z.ZodLazy<z.ZodObject<{
17077
17486
  document: z.ZodLazy<z.ZodObject<{
17078
17487
  filename: z.ZodString;
17079
17488
  url: z.ZodString;
@@ -17084,29 +17493,73 @@ export declare const ZDocumentTransformResponse: z.ZodLazy<z.ZodObject<{
17084
17493
  filename: string;
17085
17494
  url: string;
17086
17495
  }>>;
17496
+ categories: z.ZodArray<z.ZodLazy<z.ZodObject<{
17497
+ name: z.ZodString;
17498
+ description: z.ZodString;
17499
+ }, "strip", z.ZodTypeAny, {
17500
+ name: string;
17501
+ description: string;
17502
+ }, {
17503
+ name: string;
17504
+ description: string;
17505
+ }>>, "many">;
17506
+ model: z.ZodDefault<z.ZodString>;
17087
17507
  }, "strip", z.ZodTypeAny, {
17508
+ model: string;
17088
17509
  document: {
17089
17510
  filename: string;
17090
17511
  url: string;
17091
17512
  };
17513
+ categories: {
17514
+ name: string;
17515
+ description: string;
17516
+ }[];
17092
17517
  }, {
17093
17518
  document: {
17094
17519
  filename: string;
17095
17520
  url: string;
17096
17521
  };
17522
+ categories: {
17523
+ name: string;
17524
+ description: string;
17525
+ }[];
17526
+ model?: string | undefined;
17097
17527
  }>>;
17098
- export type DocumentTransformResponse = z.infer<typeof ZDocumentTransformResponse>;
17099
- export declare const ZCategory: z.ZodLazy<z.ZodObject<{
17100
- name: z.ZodString;
17101
- description: z.ZodString;
17528
+ export type ClassifyRequest = z.infer<typeof ZClassifyRequest>;
17529
+ export declare const ZClassifyResponse: z.ZodLazy<z.ZodObject<{
17530
+ result: z.ZodLazy<z.ZodObject<{
17531
+ reasoning: z.ZodString;
17532
+ classification: z.ZodString;
17533
+ }, "strip", z.ZodTypeAny, {
17534
+ reasoning: string;
17535
+ classification: string;
17536
+ }, {
17537
+ reasoning: string;
17538
+ classification: string;
17539
+ }>>;
17102
17540
  }, "strip", z.ZodTypeAny, {
17103
- name: string;
17104
- description: string;
17541
+ result: {
17542
+ reasoning: string;
17543
+ classification: string;
17544
+ };
17105
17545
  }, {
17106
- name: string;
17107
- description: string;
17546
+ result: {
17547
+ reasoning: string;
17548
+ classification: string;
17549
+ };
17108
17550
  }>>;
17109
- export type Category = z.infer<typeof ZCategory>;
17551
+ export type ClassifyResponse = z.infer<typeof ZClassifyResponse>;
17552
+ export declare const ZClassifyResult: z.ZodLazy<z.ZodObject<{
17553
+ reasoning: z.ZodString;
17554
+ classification: z.ZodString;
17555
+ }, "strip", z.ZodTypeAny, {
17556
+ reasoning: string;
17557
+ classification: string;
17558
+ }, {
17559
+ reasoning: string;
17560
+ classification: string;
17561
+ }>>;
17562
+ export type ClassifyResult = z.infer<typeof ZClassifyResult>;
17110
17563
  export declare const ZParseRequest: z.ZodLazy<z.ZodObject<{
17111
17564
  document: z.ZodLazy<z.ZodObject<{
17112
17565
  filename: z.ZodString;
@@ -17490,108 +17943,6 @@ export declare const ZEnum: z.ZodLazy<z.ZodAny>;
17490
17943
  export type Enum = z.infer<typeof ZEnum>;
17491
17944
  export declare const ZFieldType: z.ZodLazy<z.ZodAny>;
17492
17945
  export type FieldType = z.infer<typeof ZFieldType>;
17493
- export declare const ZFilledFormField: z.ZodLazy<z.ZodObject<{
17494
- bbox: z.ZodLazy<z.ZodObject<{
17495
- left: z.ZodNumber;
17496
- top: z.ZodNumber;
17497
- width: z.ZodNumber;
17498
- height: z.ZodNumber;
17499
- page: z.ZodNumber;
17500
- }, "strip", z.ZodTypeAny, {
17501
- width: number;
17502
- height: number;
17503
- left: number;
17504
- top: number;
17505
- page: number;
17506
- }, {
17507
- width: number;
17508
- height: number;
17509
- left: number;
17510
- top: number;
17511
- page: number;
17512
- }>>;
17513
- description: z.ZodString;
17514
- type: z.ZodAny;
17515
- key: z.ZodString;
17516
- } & {
17517
- value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17518
- }, "strip", z.ZodTypeAny, {
17519
- description: string;
17520
- key: string;
17521
- bbox: {
17522
- width: number;
17523
- height: number;
17524
- left: number;
17525
- top: number;
17526
- page: number;
17527
- };
17528
- type?: any;
17529
- value?: string | null | undefined;
17530
- }, {
17531
- description: string;
17532
- key: string;
17533
- bbox: {
17534
- width: number;
17535
- height: number;
17536
- left: number;
17537
- top: number;
17538
- page: number;
17539
- };
17540
- type?: any;
17541
- value?: string | null | undefined;
17542
- }>>;
17543
- export type FilledFormField = z.infer<typeof ZFilledFormField>;
17544
- export declare const ZFormField: z.ZodLazy<z.ZodObject<{
17545
- bbox: z.ZodLazy<z.ZodObject<{
17546
- left: z.ZodNumber;
17547
- top: z.ZodNumber;
17548
- width: z.ZodNumber;
17549
- height: z.ZodNumber;
17550
- page: z.ZodNumber;
17551
- }, "strip", z.ZodTypeAny, {
17552
- width: number;
17553
- height: number;
17554
- left: number;
17555
- top: number;
17556
- page: number;
17557
- }, {
17558
- width: number;
17559
- height: number;
17560
- left: number;
17561
- top: number;
17562
- page: number;
17563
- }>>;
17564
- description: z.ZodString;
17565
- type: z.ZodAny;
17566
- key: z.ZodString;
17567
- } & {
17568
- value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17569
- }, "strip", z.ZodTypeAny, {
17570
- description: string;
17571
- key: string;
17572
- bbox: {
17573
- width: number;
17574
- height: number;
17575
- left: number;
17576
- top: number;
17577
- page: number;
17578
- };
17579
- type?: any;
17580
- value?: string | null | undefined;
17581
- }, {
17582
- description: string;
17583
- key: string;
17584
- bbox: {
17585
- width: number;
17586
- height: number;
17587
- left: number;
17588
- top: number;
17589
- page: number;
17590
- };
17591
- type?: any;
17592
- value?: string | null | undefined;
17593
- }>>;
17594
- export type FormField = z.infer<typeof ZFormField>;
17595
17946
  export declare const ZFormSchema: z.ZodLazy<z.ZodObject<{
17596
17947
  form_fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
17597
17948
  bbox: z.ZodLazy<z.ZodObject<{
@@ -17783,97 +18134,7 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
17783
18134
  value?: string | null | undefined;
17784
18135
  }[];
17785
18136
  }>>;
17786
- ocr_result: z.ZodLazy<z.ZodObject<{
17787
- elements: z.ZodArray<z.ZodLazy<z.ZodObject<{
17788
- text: z.ZodString;
17789
- bbox: z.ZodLazy<z.ZodObject<{
17790
- left: z.ZodNumber;
17791
- top: z.ZodNumber;
17792
- width: z.ZodNumber;
17793
- height: z.ZodNumber;
17794
- page: z.ZodNumber;
17795
- }, "strip", z.ZodTypeAny, {
17796
- width: number;
17797
- height: number;
17798
- left: number;
17799
- top: number;
17800
- page: number;
17801
- }, {
17802
- width: number;
17803
- height: number;
17804
- left: number;
17805
- top: number;
17806
- page: number;
17807
- }>>;
17808
- element_type: z.ZodString;
17809
- }, "strip", z.ZodTypeAny, {
17810
- text: string;
17811
- bbox: {
17812
- width: number;
17813
- height: number;
17814
- left: number;
17815
- top: number;
17816
- page: number;
17817
- };
17818
- element_type: string;
17819
- }, {
17820
- text: string;
17821
- bbox: {
17822
- width: number;
17823
- height: number;
17824
- left: number;
17825
- top: number;
17826
- page: number;
17827
- };
17828
- element_type: string;
17829
- }>>, "many">;
17830
- formatted_text: z.ZodString;
17831
- annotated_pdf: z.ZodLazy<z.ZodObject<{
17832
- filename: z.ZodString;
17833
- url: z.ZodString;
17834
- }, "strip", z.ZodTypeAny, {
17835
- filename: string;
17836
- url: string;
17837
- }, {
17838
- filename: string;
17839
- url: string;
17840
- }>>;
17841
- }, "strip", z.ZodTypeAny, {
17842
- elements: {
17843
- text: string;
17844
- bbox: {
17845
- width: number;
17846
- height: number;
17847
- left: number;
17848
- top: number;
17849
- page: number;
17850
- };
17851
- element_type: string;
17852
- }[];
17853
- formatted_text: string;
17854
- annotated_pdf: {
17855
- filename: string;
17856
- url: string;
17857
- };
17858
- }, {
17859
- elements: {
17860
- text: string;
17861
- bbox: {
17862
- width: number;
17863
- height: number;
17864
- left: number;
17865
- top: number;
17866
- page: number;
17867
- };
17868
- element_type: string;
17869
- }[];
17870
- formatted_text: string;
17871
- annotated_pdf: {
17872
- filename: string;
17873
- url: string;
17874
- };
17875
- }>>;
17876
- form_fields_pdf: z.ZodLazy<z.ZodObject<{
18137
+ annotated_pdf: z.ZodLazy<z.ZodObject<{
17877
18138
  filename: z.ZodString;
17878
18139
  url: z.ZodString;
17879
18140
  }, "strip", z.ZodTypeAny, {
@@ -17883,6 +18144,7 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
17883
18144
  filename: string;
17884
18145
  url: string;
17885
18146
  }>>;
18147
+ field_count: z.ZodNumber;
17886
18148
  }, "strip", z.ZodTypeAny, {
17887
18149
  form_schema: {
17888
18150
  form_fields: {
@@ -17899,28 +18161,11 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
17899
18161
  value?: string | null | undefined;
17900
18162
  }[];
17901
18163
  };
17902
- ocr_result: {
17903
- elements: {
17904
- text: string;
17905
- bbox: {
17906
- width: number;
17907
- height: number;
17908
- left: number;
17909
- top: number;
17910
- page: number;
17911
- };
17912
- element_type: string;
17913
- }[];
17914
- formatted_text: string;
17915
- annotated_pdf: {
17916
- filename: string;
17917
- url: string;
17918
- };
17919
- };
17920
- form_fields_pdf: {
18164
+ annotated_pdf: {
17921
18165
  filename: string;
17922
18166
  url: string;
17923
18167
  };
18168
+ field_count: number;
17924
18169
  }, {
17925
18170
  form_schema: {
17926
18171
  form_fields: {
@@ -17937,28 +18182,11 @@ export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
17937
18182
  value?: string | null | undefined;
17938
18183
  }[];
17939
18184
  };
17940
- ocr_result: {
17941
- elements: {
17942
- text: string;
17943
- bbox: {
17944
- width: number;
17945
- height: number;
17946
- left: number;
17947
- top: number;
17948
- page: number;
17949
- };
17950
- element_type: string;
17951
- }[];
17952
- formatted_text: string;
17953
- annotated_pdf: {
17954
- filename: string;
17955
- url: string;
17956
- };
17957
- };
17958
- form_fields_pdf: {
18185
+ annotated_pdf: {
17959
18186
  filename: string;
17960
18187
  url: string;
17961
18188
  };
18189
+ field_count: number;
17962
18190
  }>>;
17963
18191
  export type InferFormSchemaResponse = z.infer<typeof ZInferFormSchemaResponse>;
17964
18192
  export declare const ZOCRResult: z.ZodLazy<z.ZodObject<{
@@ -18017,6 +18245,10 @@ export declare const ZOCRResult: z.ZodLazy<z.ZodObject<{
18017
18245
  url: string;
18018
18246
  }>>;
18019
18247
  }, "strip", z.ZodTypeAny, {
18248
+ annotated_pdf: {
18249
+ filename: string;
18250
+ url: string;
18251
+ };
18020
18252
  elements: {
18021
18253
  text: string;
18022
18254
  bbox: {
@@ -18029,11 +18261,11 @@ export declare const ZOCRResult: z.ZodLazy<z.ZodObject<{
18029
18261
  element_type: string;
18030
18262
  }[];
18031
18263
  formatted_text: string;
18264
+ }, {
18032
18265
  annotated_pdf: {
18033
18266
  filename: string;
18034
18267
  url: string;
18035
18268
  };
18036
- }, {
18037
18269
  elements: {
18038
18270
  text: string;
18039
18271
  bbox: {
@@ -18046,10 +18278,6 @@ export declare const ZOCRResult: z.ZodLazy<z.ZodObject<{
18046
18278
  element_type: string;
18047
18279
  }[];
18048
18280
  formatted_text: string;
18049
- annotated_pdf: {
18050
- filename: string;
18051
- url: string;
18052
- };
18053
18281
  }>>;
18054
18282
  export type OCRResult = z.infer<typeof ZOCRResult>;
18055
18283
  export declare const ZOCRTextElement: z.ZodLazy<z.ZodObject<{