@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.
- package/dist/api/client.d.ts +2 -0
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +2 -0
- package/dist/api/documents/client.d.ts +32 -2
- package/dist/api/documents/client.d.ts.map +1 -1
- package/dist/api/documents/client.js +39 -1
- package/dist/api/edit/client.d.ts +34 -0
- package/dist/api/edit/client.d.ts.map +1 -0
- package/dist/api/edit/client.js +43 -0
- package/dist/api/edit/templates/client.d.ts +125 -0
- package/dist/api/edit/templates/client.d.ts.map +1 -0
- package/dist/api/edit/templates/client.js +196 -0
- package/dist/client.js +1 -1
- package/dist/generated_types.d.ts +475 -247
- package/dist/generated_types.d.ts.map +1 -1
- package/dist/generated_types.js +43 -9
- package/dist/types.d.ts +340 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +14 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -540,6 +540,346 @@ export declare const ZSplitRequest: z.ZodObject<{
|
|
|
540
540
|
model?: string | undefined;
|
|
541
541
|
}>;
|
|
542
542
|
export type SplitRequest = z.input<typeof ZSplitRequest>;
|
|
543
|
+
export declare const ZClassifyRequest: z.ZodObject<{
|
|
544
|
+
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<{
|
|
545
|
+
filename: z.ZodString;
|
|
546
|
+
url: z.ZodString;
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
548
|
+
filename: string;
|
|
549
|
+
url: string;
|
|
550
|
+
}, {
|
|
551
|
+
filename: string;
|
|
552
|
+
url: string;
|
|
553
|
+
}>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
|
|
554
|
+
filename: string;
|
|
555
|
+
url: string;
|
|
556
|
+
}>;
|
|
557
|
+
categories: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
558
|
+
name: z.ZodString;
|
|
559
|
+
description: z.ZodString;
|
|
560
|
+
}, "strip", z.ZodTypeAny, {
|
|
561
|
+
name: string;
|
|
562
|
+
description: string;
|
|
563
|
+
}, {
|
|
564
|
+
name: string;
|
|
565
|
+
description: string;
|
|
566
|
+
}>>, "many">;
|
|
567
|
+
model: z.ZodDefault<z.ZodString>;
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
model: string;
|
|
570
|
+
categories: {
|
|
571
|
+
name: string;
|
|
572
|
+
description: string;
|
|
573
|
+
}[];
|
|
574
|
+
document?: any;
|
|
575
|
+
}, {
|
|
576
|
+
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
577
|
+
filename: string;
|
|
578
|
+
url: string;
|
|
579
|
+
};
|
|
580
|
+
categories: {
|
|
581
|
+
name: string;
|
|
582
|
+
description: string;
|
|
583
|
+
}[];
|
|
584
|
+
model?: string | undefined;
|
|
585
|
+
}>;
|
|
586
|
+
export type ClassifyRequest = z.input<typeof ZClassifyRequest>;
|
|
587
|
+
export declare const ZEditRequest: z.ZodObject<{
|
|
588
|
+
document: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodType<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodType<Readable, z.ZodTypeDef, Readable>, z.ZodLazy<z.ZodObject<{
|
|
589
|
+
filename: z.ZodString;
|
|
590
|
+
url: z.ZodString;
|
|
591
|
+
}, "strip", z.ZodTypeAny, {
|
|
592
|
+
filename: string;
|
|
593
|
+
url: string;
|
|
594
|
+
}, {
|
|
595
|
+
filename: string;
|
|
596
|
+
url: string;
|
|
597
|
+
}>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
|
|
598
|
+
filename: string;
|
|
599
|
+
url: string;
|
|
600
|
+
}>>>;
|
|
601
|
+
model: z.ZodDefault<z.ZodString>;
|
|
602
|
+
filling_instructions: z.ZodString;
|
|
603
|
+
template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
604
|
+
}, "strip", z.ZodTypeAny, {
|
|
605
|
+
model: string;
|
|
606
|
+
filling_instructions: string;
|
|
607
|
+
document?: any;
|
|
608
|
+
template_id?: string | null | undefined;
|
|
609
|
+
}, {
|
|
610
|
+
filling_instructions: string;
|
|
611
|
+
model?: string | undefined;
|
|
612
|
+
document?: string | Buffer<ArrayBufferLike> | Readable | {
|
|
613
|
+
filename: string;
|
|
614
|
+
url: string;
|
|
615
|
+
} | null | undefined;
|
|
616
|
+
template_id?: string | null | undefined;
|
|
617
|
+
}>;
|
|
618
|
+
export type EditRequest = z.input<typeof ZEditRequest>;
|
|
619
|
+
export declare const ZEditResponse: z.ZodLazy<z.ZodObject<{
|
|
620
|
+
form_data: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
621
|
+
bbox: z.ZodLazy<z.ZodObject<{
|
|
622
|
+
left: z.ZodNumber;
|
|
623
|
+
top: z.ZodNumber;
|
|
624
|
+
width: z.ZodNumber;
|
|
625
|
+
height: z.ZodNumber;
|
|
626
|
+
page: z.ZodNumber;
|
|
627
|
+
}, "strip", z.ZodTypeAny, {
|
|
628
|
+
width: number;
|
|
629
|
+
height: number;
|
|
630
|
+
left: number;
|
|
631
|
+
top: number;
|
|
632
|
+
page: number;
|
|
633
|
+
}, {
|
|
634
|
+
width: number;
|
|
635
|
+
height: number;
|
|
636
|
+
left: number;
|
|
637
|
+
top: number;
|
|
638
|
+
page: number;
|
|
639
|
+
}>>;
|
|
640
|
+
description: z.ZodString;
|
|
641
|
+
type: z.ZodAny;
|
|
642
|
+
key: z.ZodString;
|
|
643
|
+
} & {
|
|
644
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
645
|
+
}, "strip", z.ZodTypeAny, {
|
|
646
|
+
description: string;
|
|
647
|
+
key: string;
|
|
648
|
+
bbox: {
|
|
649
|
+
width: number;
|
|
650
|
+
height: number;
|
|
651
|
+
left: number;
|
|
652
|
+
top: number;
|
|
653
|
+
page: number;
|
|
654
|
+
};
|
|
655
|
+
type?: any;
|
|
656
|
+
value?: string | null | undefined;
|
|
657
|
+
}, {
|
|
658
|
+
description: string;
|
|
659
|
+
key: string;
|
|
660
|
+
bbox: {
|
|
661
|
+
width: number;
|
|
662
|
+
height: number;
|
|
663
|
+
left: number;
|
|
664
|
+
top: number;
|
|
665
|
+
page: number;
|
|
666
|
+
};
|
|
667
|
+
type?: any;
|
|
668
|
+
value?: string | null | undefined;
|
|
669
|
+
}>>, "many">;
|
|
670
|
+
filled_document: z.ZodLazy<z.ZodObject<{
|
|
671
|
+
filename: z.ZodString;
|
|
672
|
+
url: z.ZodString;
|
|
673
|
+
}, "strip", z.ZodTypeAny, {
|
|
674
|
+
filename: string;
|
|
675
|
+
url: string;
|
|
676
|
+
}, {
|
|
677
|
+
filename: string;
|
|
678
|
+
url: string;
|
|
679
|
+
}>>;
|
|
680
|
+
}, "strip", z.ZodTypeAny, {
|
|
681
|
+
form_data: {
|
|
682
|
+
description: string;
|
|
683
|
+
key: string;
|
|
684
|
+
bbox: {
|
|
685
|
+
width: number;
|
|
686
|
+
height: number;
|
|
687
|
+
left: number;
|
|
688
|
+
top: number;
|
|
689
|
+
page: number;
|
|
690
|
+
};
|
|
691
|
+
type?: any;
|
|
692
|
+
value?: string | null | undefined;
|
|
693
|
+
}[];
|
|
694
|
+
filled_document: {
|
|
695
|
+
filename: string;
|
|
696
|
+
url: string;
|
|
697
|
+
};
|
|
698
|
+
}, {
|
|
699
|
+
form_data: {
|
|
700
|
+
description: string;
|
|
701
|
+
key: string;
|
|
702
|
+
bbox: {
|
|
703
|
+
width: number;
|
|
704
|
+
height: number;
|
|
705
|
+
left: number;
|
|
706
|
+
top: number;
|
|
707
|
+
page: number;
|
|
708
|
+
};
|
|
709
|
+
type?: any;
|
|
710
|
+
value?: string | null | undefined;
|
|
711
|
+
}[];
|
|
712
|
+
filled_document: {
|
|
713
|
+
filename: string;
|
|
714
|
+
url: string;
|
|
715
|
+
};
|
|
716
|
+
}>>;
|
|
717
|
+
export type EditResponse = z.infer<typeof ZEditResponse>;
|
|
718
|
+
export declare const ZInferFormSchemaRequest: z.ZodObject<{
|
|
719
|
+
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<{
|
|
720
|
+
filename: z.ZodString;
|
|
721
|
+
url: z.ZodString;
|
|
722
|
+
}, "strip", z.ZodTypeAny, {
|
|
723
|
+
filename: string;
|
|
724
|
+
url: string;
|
|
725
|
+
}, {
|
|
726
|
+
filename: string;
|
|
727
|
+
url: string;
|
|
728
|
+
}>>]>, any, string | Buffer<ArrayBufferLike> | Readable | {
|
|
729
|
+
filename: string;
|
|
730
|
+
url: string;
|
|
731
|
+
}>;
|
|
732
|
+
model: z.ZodDefault<z.ZodString>;
|
|
733
|
+
instructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
734
|
+
}, "strip", z.ZodTypeAny, {
|
|
735
|
+
model: string;
|
|
736
|
+
document?: any;
|
|
737
|
+
instructions?: string | null | undefined;
|
|
738
|
+
}, {
|
|
739
|
+
document: string | Buffer<ArrayBufferLike> | Readable | {
|
|
740
|
+
filename: string;
|
|
741
|
+
url: string;
|
|
742
|
+
};
|
|
743
|
+
model?: string | undefined;
|
|
744
|
+
instructions?: string | null | undefined;
|
|
745
|
+
}>;
|
|
746
|
+
export type InferFormSchemaRequest = z.input<typeof ZInferFormSchemaRequest>;
|
|
747
|
+
export declare const ZInferFormSchemaResponse: z.ZodLazy<z.ZodObject<{
|
|
748
|
+
form_schema: z.ZodLazy<z.ZodObject<{
|
|
749
|
+
form_fields: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
750
|
+
bbox: z.ZodLazy<z.ZodObject<{
|
|
751
|
+
left: z.ZodNumber;
|
|
752
|
+
top: z.ZodNumber;
|
|
753
|
+
width: z.ZodNumber;
|
|
754
|
+
height: z.ZodNumber;
|
|
755
|
+
page: z.ZodNumber;
|
|
756
|
+
}, "strip", z.ZodTypeAny, {
|
|
757
|
+
width: number;
|
|
758
|
+
height: number;
|
|
759
|
+
left: number;
|
|
760
|
+
top: number;
|
|
761
|
+
page: number;
|
|
762
|
+
}, {
|
|
763
|
+
width: number;
|
|
764
|
+
height: number;
|
|
765
|
+
left: number;
|
|
766
|
+
top: number;
|
|
767
|
+
page: number;
|
|
768
|
+
}>>;
|
|
769
|
+
description: z.ZodString;
|
|
770
|
+
type: z.ZodAny;
|
|
771
|
+
key: z.ZodString;
|
|
772
|
+
} & {
|
|
773
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
774
|
+
}, "strip", z.ZodTypeAny, {
|
|
775
|
+
description: string;
|
|
776
|
+
key: string;
|
|
777
|
+
bbox: {
|
|
778
|
+
width: number;
|
|
779
|
+
height: number;
|
|
780
|
+
left: number;
|
|
781
|
+
top: number;
|
|
782
|
+
page: number;
|
|
783
|
+
};
|
|
784
|
+
type?: any;
|
|
785
|
+
value?: string | null | undefined;
|
|
786
|
+
}, {
|
|
787
|
+
description: string;
|
|
788
|
+
key: string;
|
|
789
|
+
bbox: {
|
|
790
|
+
width: number;
|
|
791
|
+
height: number;
|
|
792
|
+
left: number;
|
|
793
|
+
top: number;
|
|
794
|
+
page: number;
|
|
795
|
+
};
|
|
796
|
+
type?: any;
|
|
797
|
+
value?: string | null | undefined;
|
|
798
|
+
}>>, "many">;
|
|
799
|
+
}, "strip", z.ZodTypeAny, {
|
|
800
|
+
form_fields: {
|
|
801
|
+
description: string;
|
|
802
|
+
key: string;
|
|
803
|
+
bbox: {
|
|
804
|
+
width: number;
|
|
805
|
+
height: number;
|
|
806
|
+
left: number;
|
|
807
|
+
top: number;
|
|
808
|
+
page: number;
|
|
809
|
+
};
|
|
810
|
+
type?: any;
|
|
811
|
+
value?: string | null | undefined;
|
|
812
|
+
}[];
|
|
813
|
+
}, {
|
|
814
|
+
form_fields: {
|
|
815
|
+
description: string;
|
|
816
|
+
key: string;
|
|
817
|
+
bbox: {
|
|
818
|
+
width: number;
|
|
819
|
+
height: number;
|
|
820
|
+
left: number;
|
|
821
|
+
top: number;
|
|
822
|
+
page: number;
|
|
823
|
+
};
|
|
824
|
+
type?: any;
|
|
825
|
+
value?: string | null | undefined;
|
|
826
|
+
}[];
|
|
827
|
+
}>>;
|
|
828
|
+
annotated_pdf: z.ZodLazy<z.ZodObject<{
|
|
829
|
+
filename: z.ZodString;
|
|
830
|
+
url: z.ZodString;
|
|
831
|
+
}, "strip", z.ZodTypeAny, {
|
|
832
|
+
filename: string;
|
|
833
|
+
url: string;
|
|
834
|
+
}, {
|
|
835
|
+
filename: string;
|
|
836
|
+
url: string;
|
|
837
|
+
}>>;
|
|
838
|
+
field_count: z.ZodNumber;
|
|
839
|
+
}, "strip", z.ZodTypeAny, {
|
|
840
|
+
form_schema: {
|
|
841
|
+
form_fields: {
|
|
842
|
+
description: string;
|
|
843
|
+
key: string;
|
|
844
|
+
bbox: {
|
|
845
|
+
width: number;
|
|
846
|
+
height: number;
|
|
847
|
+
left: number;
|
|
848
|
+
top: number;
|
|
849
|
+
page: number;
|
|
850
|
+
};
|
|
851
|
+
type?: any;
|
|
852
|
+
value?: string | null | undefined;
|
|
853
|
+
}[];
|
|
854
|
+
};
|
|
855
|
+
annotated_pdf: {
|
|
856
|
+
filename: string;
|
|
857
|
+
url: string;
|
|
858
|
+
};
|
|
859
|
+
field_count: number;
|
|
860
|
+
}, {
|
|
861
|
+
form_schema: {
|
|
862
|
+
form_fields: {
|
|
863
|
+
description: string;
|
|
864
|
+
key: string;
|
|
865
|
+
bbox: {
|
|
866
|
+
width: number;
|
|
867
|
+
height: number;
|
|
868
|
+
left: number;
|
|
869
|
+
top: number;
|
|
870
|
+
page: number;
|
|
871
|
+
};
|
|
872
|
+
type?: any;
|
|
873
|
+
value?: string | null | undefined;
|
|
874
|
+
}[];
|
|
875
|
+
};
|
|
876
|
+
annotated_pdf: {
|
|
877
|
+
filename: string;
|
|
878
|
+
url: string;
|
|
879
|
+
};
|
|
880
|
+
field_count: number;
|
|
881
|
+
}>>;
|
|
882
|
+
export type InferFormSchemaResponse = z.infer<typeof ZInferFormSchemaResponse>;
|
|
543
883
|
export declare const ZModel: z.ZodLazy<z.ZodObject<{
|
|
544
884
|
id: z.ZodString;
|
|
545
885
|
created: z.ZodNumber;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -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,CAEA;AAGD,MAAM,MAAM,MAAM,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,C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,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAC3E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE/E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;GAKf,CAAC;AACL,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC"}
|
package/dist/types.js
CHANGED
|
@@ -100,6 +100,20 @@ export const ZSplitRequest = z.object({
|
|
|
100
100
|
...generated.ZSplitRequest.schema.shape,
|
|
101
101
|
document: ZMIMEData,
|
|
102
102
|
});
|
|
103
|
+
export const ZClassifyRequest = z.object({
|
|
104
|
+
...generated.ZClassifyRequest.schema.shape,
|
|
105
|
+
document: ZMIMEData,
|
|
106
|
+
});
|
|
107
|
+
export const ZEditRequest = z.object({
|
|
108
|
+
...generated.ZEditRequest.schema.shape,
|
|
109
|
+
document: ZMIMEData.nullable().optional(),
|
|
110
|
+
});
|
|
111
|
+
export const ZEditResponse = generated.ZEditResponse;
|
|
112
|
+
export const ZInferFormSchemaRequest = z.object({
|
|
113
|
+
...generated.ZInferFormSchemaRequest.schema.shape,
|
|
114
|
+
document: ZMIMEData,
|
|
115
|
+
});
|
|
116
|
+
export const ZInferFormSchemaResponse = generated.ZInferFormSchemaResponse;
|
|
103
117
|
export const ZModel = z.lazy(() => (z.object({
|
|
104
118
|
id: z.string(),
|
|
105
119
|
created: z.number(),
|