@embedpdf/engine-core 3.0.0-next.12 → 3.0.0-next.14
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/{AbortError-8-9JAX1Y.js → AbortError-DwuHPK_I.js} +2 -2
- package/dist/{AbortError-8-9JAX1Y.js.map → AbortError-DwuHPK_I.js.map} +1 -1
- package/dist/{AbortError-CRSooKsk.cjs → AbortError-P0RU0Mgg.cjs} +4 -4
- package/dist/{AbortError-CRSooKsk.cjs.map → AbortError-P0RU0Mgg.cjs.map} +1 -1
- package/dist/{AnnotationListSnapshot-x6tKulNV.d.cts → AnnotationListSnapshot-D9R5n2Kf.d.cts} +1390 -176
- package/dist/{AnnotationListSnapshot-x6tKulNV.d.ts → AnnotationListSnapshot-D9R5n2Kf.d.ts} +1390 -176
- package/dist/{DocumentSecurityService-CK0pejAK.d.cts → DocumentSecurityService-CIx1MT0T.d.cts} +2 -2
- package/dist/{DocumentSecurityService-9MawYxP-.d.ts → DocumentSecurityService-Ca6EK3-3.d.ts} +2 -2
- package/dist/{Engine--0XF0UAK.d.cts → Engine-EWWHhEIi.d.ts} +179 -11
- package/dist/{Engine-Ds0ytbl6.d.ts → Engine-FNaAEjfb.d.cts} +179 -11
- package/dist/conformance.cjs +1441 -88
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +74 -3
- package/dist/conformance.d.ts +74 -3
- package/dist/conformance.js +1376 -25
- package/dist/conformance.js.map +1 -1
- package/dist/derive-BbsDk_Kz.cjs +880 -0
- package/dist/derive-BbsDk_Kz.cjs.map +1 -0
- package/dist/derive-DAFJolWu.js +647 -0
- package/dist/derive-DAFJolWu.js.map +1 -0
- package/dist/{PageInsertBlankInput-WKY0tr6S.js → format-Bbphf4zR.js} +95 -3
- package/dist/format-Bbphf4zR.js.map +1 -0
- package/dist/{PageInsertBlankInput-CzShuSJI.cjs → format-D_epWlob.cjs} +106 -2
- package/dist/format-D_epWlob.cjs.map +1 -0
- package/dist/index.cjs +137 -88
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/{resolver-D-jumvgM.cjs → resolver-CYVNV4hn.cjs} +216 -10
- package/dist/resolver-CYVNV4hn.cjs.map +1 -0
- package/dist/{resolver-CHG4waXL.js → resolver-inAVzsWt.js} +157 -11
- package/dist/resolver-inAVzsWt.js.map +1 -0
- package/dist/runtime.cjs +147 -98
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +216 -5
- package/dist/runtime.d.ts +216 -5
- package/dist/runtime.js +6 -6
- package/dist/{schemas-DOyVEPk7.js → schemas-CFQGvWiu.js} +551 -5
- package/dist/schemas-CFQGvWiu.js.map +1 -0
- package/dist/{schemas-RChsAMWw.cjs → schemas-D0g6tKa9.cjs} +829 -25
- package/dist/schemas-D0g6tKa9.cjs.map +1 -0
- package/dist/{builders-8Hl1AYNU.cjs → viewport-BWeNHZmb.cjs} +1522 -117
- package/dist/viewport-BWeNHZmb.cjs.map +1 -0
- package/dist/{builders-DOjcKDWQ.js → viewport-CvMcadfQ.js} +1386 -89
- package/dist/viewport-CvMcadfQ.js.map +1 -0
- package/dist/wire.cjs +252 -13
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +3147 -5
- package/dist/wire.d.ts +3147 -5
- package/dist/wire.js +207 -14
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +0 -1
- package/dist/PageInsertBlankInput-WKY0tr6S.js.map +0 -1
- package/dist/builders-8Hl1AYNU.cjs.map +0 -1
- package/dist/builders-DOjcKDWQ.js.map +0 -1
- package/dist/fold-BfyxxwS6.js +0 -334
- package/dist/fold-BfyxxwS6.js.map +0 -1
- package/dist/fold-C7I5GpBz.cjs +0 -447
- package/dist/fold-C7I5GpBz.cjs.map +0 -1
- package/dist/resolver-CHG4waXL.js.map +0 -1
- package/dist/resolver-D-jumvgM.cjs.map +0 -1
- package/dist/schemas-DOyVEPk7.js.map +0 -1
- package/dist/schemas-RChsAMWw.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_format = require("./format-D_epWlob.cjs");
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/geometry/schemas.ts
|
|
4
4
|
/**
|
|
@@ -519,7 +519,7 @@ const CaretPatchSchema = zod.z.object({
|
|
|
519
519
|
//#region src/annotation/kinds/caret/index.ts
|
|
520
520
|
const CaretKind = {
|
|
521
521
|
subtype: "caret",
|
|
522
|
-
pdfSubtypeCode:
|
|
522
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.CARET,
|
|
523
523
|
dtoSchema: CaretDTOSchema,
|
|
524
524
|
draftSchema: CaretDraftSchema,
|
|
525
525
|
patchSchema: CaretPatchSchema
|
|
@@ -570,7 +570,7 @@ const CirclePatchSchema = zod.z.object({
|
|
|
570
570
|
//#region src/annotation/kinds/circle/index.ts
|
|
571
571
|
const CircleKind = {
|
|
572
572
|
subtype: "circle",
|
|
573
|
-
pdfSubtypeCode:
|
|
573
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.CIRCLE,
|
|
574
574
|
dtoSchema: CircleDTOSchema,
|
|
575
575
|
draftSchema: CircleDraftSchema,
|
|
576
576
|
patchSchema: CirclePatchSchema
|
|
@@ -654,7 +654,7 @@ const FileAttachmentPatchSchema = zod.z.object({
|
|
|
654
654
|
*/
|
|
655
655
|
const FileAttachmentKind = {
|
|
656
656
|
subtype: "file-attachment",
|
|
657
|
-
pdfSubtypeCode:
|
|
657
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.FILEATTACHMENT,
|
|
658
658
|
dtoSchema: FileAttachmentDTOSchema,
|
|
659
659
|
draftSchema: FileAttachmentWireDraftSchema,
|
|
660
660
|
patchSchema: FileAttachmentPatchSchema
|
|
@@ -666,12 +666,77 @@ const FileAttachmentKind = {
|
|
|
666
666
|
* key that was never registered fails loud there). The read-back DTO keeps the
|
|
667
667
|
* narrower {@link StandardFontSchema}. */
|
|
668
668
|
const FreeTextFontSchema = zod.z.string().min(1);
|
|
669
|
+
const HexColorSchema = zod.z.string().regex(/^#[0-9a-fA-F]{6}$/);
|
|
670
|
+
const RichTextRunStyleShape = {
|
|
671
|
+
family: zod.z.string().min(1),
|
|
672
|
+
weight: zod.z.number().int().min(100).max(900),
|
|
673
|
+
italic: zod.z.boolean(),
|
|
674
|
+
size: zod.z.number().nonnegative(),
|
|
675
|
+
color: HexColorSchema,
|
|
676
|
+
decoration: zod.z.array(zod.z.enum([
|
|
677
|
+
"underline",
|
|
678
|
+
"line-through",
|
|
679
|
+
"word"
|
|
680
|
+
])),
|
|
681
|
+
script: zod.z.enum([
|
|
682
|
+
"normal",
|
|
683
|
+
"sub",
|
|
684
|
+
"super"
|
|
685
|
+
]),
|
|
686
|
+
letterSpacing: zod.z.number(),
|
|
687
|
+
horizontalScale: zod.z.number().positive(),
|
|
688
|
+
unknown: zod.z.string().optional()
|
|
689
|
+
};
|
|
690
|
+
const RichTextParagraphPropsShape = {
|
|
691
|
+
align: zod.z.enum([
|
|
692
|
+
"left",
|
|
693
|
+
"center",
|
|
694
|
+
"right",
|
|
695
|
+
"justify"
|
|
696
|
+
]),
|
|
697
|
+
dir: zod.z.enum(["ltr", "rtl"]),
|
|
698
|
+
lineHeight: zod.z.number().positive().optional(),
|
|
699
|
+
margins: zod.z.object({
|
|
700
|
+
top: zod.z.number(),
|
|
701
|
+
bottom: zod.z.number(),
|
|
702
|
+
left: zod.z.number(),
|
|
703
|
+
right: zod.z.number()
|
|
704
|
+
}).optional(),
|
|
705
|
+
textIndent: zod.z.number().optional(),
|
|
706
|
+
unknown: zod.z.string().optional()
|
|
707
|
+
};
|
|
708
|
+
const RichTextRunStyleDeltaSchema = zod.z.object(RichTextRunStyleShape).partial();
|
|
709
|
+
const RichTextParagraphSchema = zod.z.object({
|
|
710
|
+
...RichTextParagraphPropsShape,
|
|
711
|
+
runs: zod.z.array(zod.z.object({
|
|
712
|
+
text: zod.z.string(),
|
|
713
|
+
style: RichTextRunStyleDeltaSchema.optional()
|
|
714
|
+
}))
|
|
715
|
+
}).partial({
|
|
716
|
+
align: true,
|
|
717
|
+
dir: true
|
|
718
|
+
});
|
|
719
|
+
const RichTextDocumentSchema = zod.z.object({
|
|
720
|
+
body: zod.z.object({
|
|
721
|
+
...RichTextRunStyleShape,
|
|
722
|
+
...RichTextParagraphPropsShape
|
|
723
|
+
}),
|
|
724
|
+
paragraphs: zod.z.array(RichTextParagraphSchema)
|
|
725
|
+
});
|
|
726
|
+
const RichTextDocumentInputSchema = zod.z.object({
|
|
727
|
+
body: zod.z.object({
|
|
728
|
+
...RichTextRunStyleShape,
|
|
729
|
+
...RichTextParagraphPropsShape
|
|
730
|
+
}).partial().optional(),
|
|
731
|
+
paragraphs: zod.z.array(RichTextParagraphSchema)
|
|
732
|
+
});
|
|
669
733
|
const FreeTextDTOSchema = zod.z.object({
|
|
670
734
|
...AnnotationBaseShape,
|
|
671
735
|
intent: FreeTextIntentSchema,
|
|
672
|
-
fontFamily:
|
|
736
|
+
fontFamily: FreeTextFontSchema,
|
|
673
737
|
fontSize: zod.z.number().positive(),
|
|
674
738
|
textAlign: TextAlignmentSchema,
|
|
739
|
+
richText: RichTextDocumentSchema,
|
|
675
740
|
color: ColorSchema,
|
|
676
741
|
fontColor: ColorSchema.optional(),
|
|
677
742
|
interiorColor: ColorSchema.nullable(),
|
|
@@ -692,6 +757,7 @@ const FreeTextDraftSchema = zod.z.object({
|
|
|
692
757
|
fontFamily: FreeTextFontSchema,
|
|
693
758
|
fontSize: zod.z.number().positive(),
|
|
694
759
|
textAlign: TextAlignmentSchema,
|
|
760
|
+
richText: RichTextDocumentInputSchema.optional(),
|
|
695
761
|
rect: PdfRectSchema,
|
|
696
762
|
color: ColorSchema.optional(),
|
|
697
763
|
fontColor: ColorSchema.optional(),
|
|
@@ -713,6 +779,7 @@ const FreeTextPatchSchema = zod.z.object({
|
|
|
713
779
|
fontFamily: FreeTextFontSchema.optional(),
|
|
714
780
|
fontSize: zod.z.number().positive().optional(),
|
|
715
781
|
textAlign: TextAlignmentSchema.optional(),
|
|
782
|
+
richText: RichTextDocumentInputSchema.optional(),
|
|
716
783
|
rect: PdfRectSchema.optional(),
|
|
717
784
|
color: ColorSchema.optional(),
|
|
718
785
|
fontColor: ColorSchema.optional(),
|
|
@@ -732,7 +799,7 @@ const FreeTextPatchSchema = zod.z.object({
|
|
|
732
799
|
//#region src/annotation/kinds/free-text/index.ts
|
|
733
800
|
const FreeTextKind = {
|
|
734
801
|
subtype: "free-text",
|
|
735
|
-
pdfSubtypeCode:
|
|
802
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.FREETEXT,
|
|
736
803
|
dtoSchema: FreeTextDTOSchema,
|
|
737
804
|
draftSchema: FreeTextDraftSchema,
|
|
738
805
|
patchSchema: FreeTextPatchSchema
|
|
@@ -772,7 +839,7 @@ const HighlightPatchSchema = zod.z.object({
|
|
|
772
839
|
//#region src/annotation/kinds/highlight/index.ts
|
|
773
840
|
const HighlightKind = {
|
|
774
841
|
subtype: "highlight",
|
|
775
|
-
pdfSubtypeCode:
|
|
842
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.HIGHLIGHT,
|
|
776
843
|
dtoSchema: HighlightDTOSchema,
|
|
777
844
|
draftSchema: HighlightDraftSchema,
|
|
778
845
|
patchSchema: HighlightPatchSchema
|
|
@@ -809,14 +876,113 @@ const InkPatchSchema = zod.z.object({
|
|
|
809
876
|
//#region src/annotation/kinds/ink/index.ts
|
|
810
877
|
const InkKind = {
|
|
811
878
|
subtype: "ink",
|
|
812
|
-
pdfSubtypeCode:
|
|
879
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.INK,
|
|
813
880
|
dtoSchema: InkDTOSchema,
|
|
814
881
|
draftSchema: InkDraftSchema,
|
|
815
882
|
patchSchema: InkPatchSchema
|
|
816
883
|
};
|
|
817
884
|
//#endregion
|
|
885
|
+
//#region src/dto/Measure.schema.ts
|
|
886
|
+
const float = zod.z.number().finite().refine((n) => Number.isFinite(Math.fround(n)), "Outside PDF float range");
|
|
887
|
+
const point = zod.z.object({
|
|
888
|
+
x: float,
|
|
889
|
+
y: float
|
|
890
|
+
}).strict();
|
|
891
|
+
const positive = float.refine((n) => Math.fround(n) > 0, "Must be positive in PDF float precision");
|
|
892
|
+
const PdfNumberFormatSchema = zod.z.object({
|
|
893
|
+
unit: zod.z.string(),
|
|
894
|
+
conversion: float.optional(),
|
|
895
|
+
fraction: zod.z.enum([
|
|
896
|
+
"decimal",
|
|
897
|
+
"fraction",
|
|
898
|
+
"round",
|
|
899
|
+
"truncate"
|
|
900
|
+
]).optional(),
|
|
901
|
+
precision: zod.z.number().int().optional(),
|
|
902
|
+
fixed: zod.z.boolean().optional(),
|
|
903
|
+
thousands: zod.z.string().optional(),
|
|
904
|
+
decimal: zod.z.string().optional(),
|
|
905
|
+
prefixSpacing: zod.z.string().optional(),
|
|
906
|
+
suffixSpacing: zod.z.string().optional(),
|
|
907
|
+
labelPosition: zod.z.enum(["suffix", "prefix"]).optional()
|
|
908
|
+
});
|
|
909
|
+
const PdfMeasureSchema = zod.z.object({
|
|
910
|
+
subtype: zod.z.literal("RL"),
|
|
911
|
+
ratio: zod.z.string().optional(),
|
|
912
|
+
x: zod.z.array(PdfNumberFormatSchema),
|
|
913
|
+
y: zod.z.array(PdfNumberFormatSchema).optional(),
|
|
914
|
+
distance: zod.z.array(PdfNumberFormatSchema),
|
|
915
|
+
area: zod.z.array(PdfNumberFormatSchema),
|
|
916
|
+
angle: zod.z.array(PdfNumberFormatSchema).optional(),
|
|
917
|
+
slope: zod.z.array(PdfNumberFormatSchema).optional(),
|
|
918
|
+
origin: point.optional(),
|
|
919
|
+
cyx: float.optional()
|
|
920
|
+
});
|
|
921
|
+
const writableFormat = PdfNumberFormatSchema.extend({
|
|
922
|
+
conversion: positive,
|
|
923
|
+
precision: zod.z.number().int().min(1).max(2147483647).optional()
|
|
924
|
+
}).refine(require_format.validNumberFormat, "Invalid number format precision");
|
|
925
|
+
const PdfMeasureWriteSchema = PdfMeasureSchema.extend({
|
|
926
|
+
x: zod.z.array(writableFormat),
|
|
927
|
+
y: zod.z.array(writableFormat).optional(),
|
|
928
|
+
distance: zod.z.array(writableFormat),
|
|
929
|
+
area: zod.z.array(writableFormat),
|
|
930
|
+
angle: zod.z.array(writableFormat).optional(),
|
|
931
|
+
slope: zod.z.array(writableFormat).optional(),
|
|
932
|
+
cyx: positive.optional()
|
|
933
|
+
});
|
|
934
|
+
const geoMeasure = zod.z.object({ subtype: zod.z.literal("GEO") });
|
|
935
|
+
const unknownMeasure = zod.z.object({ subtype: zod.z.literal("unknown") });
|
|
936
|
+
const PdfForeignMeasureSchema = zod.z.union([geoMeasure, unknownMeasure]);
|
|
937
|
+
const PageScaleInputSchema = zod.z.object({ measure: PdfMeasureWriteSchema.nullable() });
|
|
938
|
+
const PdfMeasurementSchema = zod.z.discriminatedUnion("subtype", [
|
|
939
|
+
PdfMeasureSchema,
|
|
940
|
+
geoMeasure,
|
|
941
|
+
unknownMeasure
|
|
942
|
+
]);
|
|
943
|
+
const PageMeasurementViewportSchema = zod.z.object({
|
|
944
|
+
bbox: PdfRectSchema,
|
|
945
|
+
name: zod.z.string().optional(),
|
|
946
|
+
measure: PdfMeasurementSchema.optional(),
|
|
947
|
+
owned: zod.z.boolean()
|
|
948
|
+
});
|
|
949
|
+
const LineIntentSchema = zod.z.enum(["LineArrow", "LineDimension"]);
|
|
950
|
+
const PolygonIntentSchema = zod.z.enum(["PolygonCloud", "PolygonDimension"]);
|
|
951
|
+
const PolylineIntentSchema = zod.z.literal("PolyLineDimension");
|
|
952
|
+
const offset = zod.z.object({
|
|
953
|
+
along: float,
|
|
954
|
+
perpendicular: float
|
|
955
|
+
}).strict();
|
|
956
|
+
const LineDimensionCaptionSchema = zod.z.object({
|
|
957
|
+
enabled: zod.z.boolean(),
|
|
958
|
+
position: zod.z.enum(["inline", "top"]).optional(),
|
|
959
|
+
offset: offset.optional()
|
|
960
|
+
}).strict();
|
|
961
|
+
const ShapeDimensionCaptionSchema = zod.z.object({
|
|
962
|
+
enabled: zod.z.boolean(),
|
|
963
|
+
center: point.optional()
|
|
964
|
+
}).strict();
|
|
965
|
+
const LineCaptionPatchSchema = zod.z.object({
|
|
966
|
+
enabled: zod.z.boolean().optional(),
|
|
967
|
+
position: zod.z.enum(["inline", "top"]).nullable().optional(),
|
|
968
|
+
offset: offset.nullable().optional()
|
|
969
|
+
}).strict();
|
|
970
|
+
const ShapeCaptionPatchSchema = zod.z.object({
|
|
971
|
+
enabled: zod.z.boolean().optional(),
|
|
972
|
+
center: point.nullable().optional()
|
|
973
|
+
}).strict();
|
|
974
|
+
const LineLeaderSchema = zod.z.object({
|
|
975
|
+
length: float,
|
|
976
|
+
extension: float.refine((n) => n >= 0).optional(),
|
|
977
|
+
offset: float.refine((n) => n >= 0).optional()
|
|
978
|
+
}).strict();
|
|
979
|
+
//#endregion
|
|
818
980
|
//#region src/annotation/kinds/line/schema.ts
|
|
819
981
|
const LineDTOSchema = zod.z.object({
|
|
982
|
+
intent: LineIntentSchema.optional(),
|
|
983
|
+
measure: PdfMeasurementSchema.optional(),
|
|
984
|
+
caption: LineDimensionCaptionSchema.optional(),
|
|
985
|
+
leader: LineLeaderSchema.optional(),
|
|
820
986
|
...AnnotationBaseShape,
|
|
821
987
|
...FilledStyleDTOShape,
|
|
822
988
|
linePoints: LinePointsSchema,
|
|
@@ -825,6 +991,10 @@ const LineDTOSchema = zod.z.object({
|
|
|
825
991
|
subtype: zod.z.literal("line")
|
|
826
992
|
});
|
|
827
993
|
const LineDraftSchema = zod.z.object({
|
|
994
|
+
intent: LineIntentSchema.nullable().optional(),
|
|
995
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
996
|
+
caption: LineDimensionCaptionSchema.nullable().optional(),
|
|
997
|
+
leader: LineLeaderSchema.nullable().optional(),
|
|
828
998
|
...FilledStyleDraftShape,
|
|
829
999
|
...AnnotationDraftBaseShape,
|
|
830
1000
|
linePoints: LinePointsSchema,
|
|
@@ -834,6 +1004,10 @@ const LineDraftSchema = zod.z.object({
|
|
|
834
1004
|
subtype: zod.z.literal("line")
|
|
835
1005
|
});
|
|
836
1006
|
const LinePatchSchema = zod.z.object({
|
|
1007
|
+
intent: LineIntentSchema.nullable().optional(),
|
|
1008
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1009
|
+
caption: LineCaptionPatchSchema.nullable().optional(),
|
|
1010
|
+
leader: LineLeaderSchema.nullable().optional(),
|
|
837
1011
|
...FilledStylePatchShape,
|
|
838
1012
|
...AnnotationPatchBaseShape,
|
|
839
1013
|
linePoints: LinePointsSchema.optional(),
|
|
@@ -846,7 +1020,7 @@ const LinePatchSchema = zod.z.object({
|
|
|
846
1020
|
//#region src/annotation/kinds/line/index.ts
|
|
847
1021
|
const LineKind = {
|
|
848
1022
|
subtype: "line",
|
|
849
|
-
pdfSubtypeCode:
|
|
1023
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.LINE,
|
|
850
1024
|
dtoSchema: LineDTOSchema,
|
|
851
1025
|
draftSchema: LineDraftSchema,
|
|
852
1026
|
patchSchema: LinePatchSchema
|
|
@@ -902,7 +1076,7 @@ const LinkPatchSchema = zod.z.object({
|
|
|
902
1076
|
//#region src/annotation/kinds/link/index.ts
|
|
903
1077
|
const LinkKind = {
|
|
904
1078
|
subtype: "link",
|
|
905
|
-
pdfSubtypeCode:
|
|
1079
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.LINK,
|
|
906
1080
|
dtoSchema: LinkDTOSchema,
|
|
907
1081
|
draftSchema: LinkDraftSchema,
|
|
908
1082
|
patchSchema: LinkPatchSchema
|
|
@@ -930,12 +1104,18 @@ const VertexPatchShape = {
|
|
|
930
1104
|
//#endregion
|
|
931
1105
|
//#region src/annotation/kinds/polygon/schema.ts
|
|
932
1106
|
const PolygonDTOSchema = zod.z.object({
|
|
1107
|
+
intent: PolygonIntentSchema.optional(),
|
|
1108
|
+
measure: PdfMeasurementSchema.optional(),
|
|
1109
|
+
caption: ShapeDimensionCaptionSchema.optional(),
|
|
933
1110
|
...VertexDTOShape,
|
|
934
1111
|
vertices: zod.z.array(PdfPointSchema).min(3),
|
|
935
1112
|
cloudyIntensity: zod.z.number().positive().nullable(),
|
|
936
1113
|
subtype: zod.z.literal("polygon")
|
|
937
1114
|
});
|
|
938
1115
|
const PolygonDraftSchema = zod.z.object({
|
|
1116
|
+
intent: PolygonIntentSchema.nullable().optional(),
|
|
1117
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1118
|
+
caption: ShapeDimensionCaptionSchema.nullable().optional(),
|
|
939
1119
|
...VertexDraftShape,
|
|
940
1120
|
...AnnotationDraftBaseShape,
|
|
941
1121
|
vertices: zod.z.array(PdfPointSchema).min(3),
|
|
@@ -943,6 +1123,9 @@ const PolygonDraftSchema = zod.z.object({
|
|
|
943
1123
|
subtype: zod.z.literal("polygon")
|
|
944
1124
|
});
|
|
945
1125
|
const PolygonPatchSchema = zod.z.object({
|
|
1126
|
+
intent: PolygonIntentSchema.nullable().optional(),
|
|
1127
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1128
|
+
caption: ShapeCaptionPatchSchema.nullable().optional(),
|
|
946
1129
|
...VertexPatchShape,
|
|
947
1130
|
...AnnotationPatchBaseShape,
|
|
948
1131
|
vertices: zod.z.array(PdfPointSchema).min(3).optional(),
|
|
@@ -953,7 +1136,7 @@ const PolygonPatchSchema = zod.z.object({
|
|
|
953
1136
|
//#region src/annotation/kinds/polygon/index.ts
|
|
954
1137
|
const PolygonKind = {
|
|
955
1138
|
subtype: "polygon",
|
|
956
|
-
pdfSubtypeCode:
|
|
1139
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.POLYGON,
|
|
957
1140
|
dtoSchema: PolygonDTOSchema,
|
|
958
1141
|
draftSchema: PolygonDraftSchema,
|
|
959
1142
|
patchSchema: PolygonPatchSchema
|
|
@@ -961,12 +1144,18 @@ const PolygonKind = {
|
|
|
961
1144
|
//#endregion
|
|
962
1145
|
//#region src/annotation/kinds/polyline/schema.ts
|
|
963
1146
|
const PolylineDTOSchema = zod.z.object({
|
|
1147
|
+
intent: PolylineIntentSchema.optional(),
|
|
1148
|
+
measure: PdfMeasurementSchema.optional(),
|
|
1149
|
+
caption: ShapeDimensionCaptionSchema.optional(),
|
|
964
1150
|
...VertexDTOShape,
|
|
965
1151
|
vertices: zod.z.array(PdfPointSchema).min(2),
|
|
966
1152
|
lineEndings: LineEndingsSchema,
|
|
967
1153
|
subtype: zod.z.literal("polyline")
|
|
968
1154
|
});
|
|
969
1155
|
const PolylineDraftSchema = zod.z.object({
|
|
1156
|
+
intent: PolylineIntentSchema.nullable().optional(),
|
|
1157
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1158
|
+
caption: ShapeDimensionCaptionSchema.nullable().optional(),
|
|
970
1159
|
...VertexDraftShape,
|
|
971
1160
|
...AnnotationDraftBaseShape,
|
|
972
1161
|
vertices: zod.z.array(PdfPointSchema).min(2),
|
|
@@ -974,6 +1163,9 @@ const PolylineDraftSchema = zod.z.object({
|
|
|
974
1163
|
subtype: zod.z.literal("polyline")
|
|
975
1164
|
});
|
|
976
1165
|
const PolylinePatchSchema = zod.z.object({
|
|
1166
|
+
intent: PolylineIntentSchema.nullable().optional(),
|
|
1167
|
+
measure: PdfMeasureWriteSchema.nullable().optional(),
|
|
1168
|
+
caption: ShapeCaptionPatchSchema.nullable().optional(),
|
|
977
1169
|
...VertexPatchShape,
|
|
978
1170
|
...AnnotationPatchBaseShape,
|
|
979
1171
|
vertices: zod.z.array(PdfPointSchema).min(2).optional(),
|
|
@@ -984,7 +1176,7 @@ const PolylinePatchSchema = zod.z.object({
|
|
|
984
1176
|
//#region src/annotation/kinds/polyline/index.ts
|
|
985
1177
|
const PolylineKind = {
|
|
986
1178
|
subtype: "polyline",
|
|
987
|
-
pdfSubtypeCode:
|
|
1179
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.POLYLINE,
|
|
988
1180
|
dtoSchema: PolylineDTOSchema,
|
|
989
1181
|
draftSchema: PolylineDraftSchema,
|
|
990
1182
|
patchSchema: PolylinePatchSchema
|
|
@@ -1047,7 +1239,7 @@ const RedactPatchSchema = zod.z.object({
|
|
|
1047
1239
|
//#region src/annotation/kinds/redact/index.ts
|
|
1048
1240
|
const RedactKind = {
|
|
1049
1241
|
subtype: "redact",
|
|
1050
|
-
pdfSubtypeCode:
|
|
1242
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.REDACT,
|
|
1051
1243
|
dtoSchema: RedactDTOSchema,
|
|
1052
1244
|
draftSchema: RedactDraftSchema,
|
|
1053
1245
|
patchSchema: RedactPatchSchema
|
|
@@ -1072,7 +1264,7 @@ const SquarePatchSchema = zod.z.object({
|
|
|
1072
1264
|
//#region src/annotation/kinds/square/index.ts
|
|
1073
1265
|
const SquareKind = {
|
|
1074
1266
|
subtype: "square",
|
|
1075
|
-
pdfSubtypeCode:
|
|
1267
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.SQUARE,
|
|
1076
1268
|
dtoSchema: SquareDTOSchema,
|
|
1077
1269
|
draftSchema: SquareDraftSchema,
|
|
1078
1270
|
patchSchema: SquarePatchSchema
|
|
@@ -1097,7 +1289,7 @@ const SquigglyPatchSchema = zod.z.object({
|
|
|
1097
1289
|
//#region src/annotation/kinds/squiggly/index.ts
|
|
1098
1290
|
const SquigglyKind = {
|
|
1099
1291
|
subtype: "squiggly",
|
|
1100
|
-
pdfSubtypeCode:
|
|
1292
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.SQUIGGLY,
|
|
1101
1293
|
dtoSchema: SquigglyDTOSchema,
|
|
1102
1294
|
draftSchema: SquigglyDraftSchema,
|
|
1103
1295
|
patchSchema: SquigglyPatchSchema
|
|
@@ -1152,7 +1344,7 @@ const StampWirePatchSchema = zod.z.object({
|
|
|
1152
1344
|
*/
|
|
1153
1345
|
const StampKind = {
|
|
1154
1346
|
subtype: "stamp",
|
|
1155
|
-
pdfSubtypeCode:
|
|
1347
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.STAMP,
|
|
1156
1348
|
dtoSchema: StampDTOSchema,
|
|
1157
1349
|
draftSchema: StampWireDraftSchema,
|
|
1158
1350
|
patchSchema: StampWirePatchSchema
|
|
@@ -1180,7 +1372,7 @@ const StrikeoutPatchSchema = zod.z.object({
|
|
|
1180
1372
|
//#region src/annotation/kinds/strikeout/index.ts
|
|
1181
1373
|
const StrikeoutKind = {
|
|
1182
1374
|
subtype: "strikeout",
|
|
1183
|
-
pdfSubtypeCode:
|
|
1375
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.STRIKEOUT,
|
|
1184
1376
|
dtoSchema: StrikeoutDTOSchema,
|
|
1185
1377
|
draftSchema: StrikeoutDraftSchema,
|
|
1186
1378
|
patchSchema: StrikeoutPatchSchema
|
|
@@ -1226,7 +1418,7 @@ const TextPatchSchema = zod.z.object({
|
|
|
1226
1418
|
//#region src/annotation/kinds/text/index.ts
|
|
1227
1419
|
const TextKind = {
|
|
1228
1420
|
subtype: "text",
|
|
1229
|
-
pdfSubtypeCode:
|
|
1421
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.TEXT,
|
|
1230
1422
|
dtoSchema: TextDTOSchema,
|
|
1231
1423
|
draftSchema: TextDraftSchema,
|
|
1232
1424
|
patchSchema: TextPatchSchema
|
|
@@ -1251,7 +1443,7 @@ const UnderlinePatchSchema = zod.z.object({
|
|
|
1251
1443
|
//#region src/annotation/kinds/underline/index.ts
|
|
1252
1444
|
const UnderlineKind = {
|
|
1253
1445
|
subtype: "underline",
|
|
1254
|
-
pdfSubtypeCode:
|
|
1446
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.UNDERLINE,
|
|
1255
1447
|
dtoSchema: UnderlineDTOSchema,
|
|
1256
1448
|
draftSchema: UnderlineDraftSchema,
|
|
1257
1449
|
patchSchema: UnderlinePatchSchema
|
|
@@ -1270,7 +1462,7 @@ const UnsupportedPatchSchema = zod.z.never();
|
|
|
1270
1462
|
//#region src/annotation/kinds/unsupported/index.ts
|
|
1271
1463
|
const UnsupportedKind = {
|
|
1272
1464
|
subtype: "unsupported",
|
|
1273
|
-
pdfSubtypeCode:
|
|
1465
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.UNKNOWN,
|
|
1274
1466
|
dtoSchema: UnsupportedDTOSchema,
|
|
1275
1467
|
draftSchema: UnsupportedDraftSchema,
|
|
1276
1468
|
patchSchema: UnsupportedPatchSchema
|
|
@@ -1333,7 +1525,7 @@ const WidgetPatchSchema = zod.z.object({
|
|
|
1333
1525
|
//#region src/annotation/kinds/widget/index.ts
|
|
1334
1526
|
const WidgetKind = {
|
|
1335
1527
|
subtype: "widget",
|
|
1336
|
-
pdfSubtypeCode:
|
|
1528
|
+
pdfSubtypeCode: require_format.PdfAnnotationSubtypeCode.WIDGET,
|
|
1337
1529
|
dtoSchema: WidgetDTOSchema,
|
|
1338
1530
|
draftSchema: WidgetDraftSchema,
|
|
1339
1531
|
patchSchema: WidgetPatchSchema
|
|
@@ -1644,6 +1836,11 @@ const FormFieldDraftSchema = zod.z.discriminatedUnion("family", [
|
|
|
1644
1836
|
multiSelect: zod.z.boolean().optional(),
|
|
1645
1837
|
options: zod.z.array(FormFieldOptionInputSchema).optional(),
|
|
1646
1838
|
widget: WidgetPlacementSchema.optional()
|
|
1839
|
+
}),
|
|
1840
|
+
zod.z.object({
|
|
1841
|
+
...FormFieldDraftBaseShape,
|
|
1842
|
+
family: zod.z.literal("signature"),
|
|
1843
|
+
widget: WidgetPlacementSchema.optional()
|
|
1647
1844
|
})
|
|
1648
1845
|
]);
|
|
1649
1846
|
const FormFieldPatchBaseShape = {
|
|
@@ -1968,7 +2165,7 @@ const AccessResponseSchema = zod.z.object({
|
|
|
1968
2165
|
}).optional()
|
|
1969
2166
|
});
|
|
1970
2167
|
const PdfSaveModeSchema = zod.z.enum(["incremental", "rewrite"]);
|
|
1971
|
-
const engineErrorCodeValues = Object.values(
|
|
2168
|
+
const engineErrorCodeValues = Object.values(require_format.EngineErrorCode);
|
|
1972
2169
|
const EngineErrorPayloadSchema = zod.z.object({
|
|
1973
2170
|
name: zod.z.literal("EngineError"),
|
|
1974
2171
|
code: zod.z.enum(engineErrorCodeValues),
|
|
@@ -2042,6 +2239,9 @@ const DocumentManifestSchema = zod.z.object({
|
|
|
2042
2239
|
annotationsVersion: zod.z.number().int().positive().default(1),
|
|
2043
2240
|
auditHead: zod.z.number().int().nonnegative(),
|
|
2044
2241
|
baseSha: zod.z.string(),
|
|
2242
|
+
layerVersion: zod.z.number().int().nonnegative().default(0),
|
|
2243
|
+
working: zod.z.boolean().default(false),
|
|
2244
|
+
baseByteLength: zod.z.number().int().nonnegative().default(0),
|
|
2045
2245
|
scopes: LayerScopesSchema.optional(),
|
|
2046
2246
|
pages: zod.z.array(ManifestPageSchema)
|
|
2047
2247
|
});
|
|
@@ -2066,7 +2266,7 @@ const PageTextSnapshotSchema = zod.z.object({
|
|
|
2066
2266
|
charCount: zod.z.number().int().nonnegative(),
|
|
2067
2267
|
charMap: zod.z.array(zod.z.tuple([zod.z.number().int().nonnegative(), zod.z.number().int().nonnegative()])).optional()
|
|
2068
2268
|
}).superRefine((snapshot, ctx) => {
|
|
2069
|
-
const violation =
|
|
2269
|
+
const violation = require_format.charMapViolation(snapshot.charCount, snapshot.text.length, snapshot.charMap);
|
|
2070
2270
|
if (violation !== null) ctx.addIssue({
|
|
2071
2271
|
code: zod.z.ZodIssueCode.custom,
|
|
2072
2272
|
path: ["charMap"],
|
|
@@ -2110,7 +2310,8 @@ const SearchQuerySchema = zod.z.object({
|
|
|
2110
2310
|
regex: zod.z.boolean().optional(),
|
|
2111
2311
|
matchCase: zod.z.boolean().optional(),
|
|
2112
2312
|
wholeWord: zod.z.boolean().optional(),
|
|
2113
|
-
matchDiacritics: zod.z.boolean().optional()
|
|
2313
|
+
matchDiacritics: zod.z.boolean().optional(),
|
|
2314
|
+
ignoreWhitespace: zod.z.boolean().optional()
|
|
2114
2315
|
});
|
|
2115
2316
|
const SearchModeSchema = zod.z.enum(["rects", "full"]);
|
|
2116
2317
|
const SearchRequestSchema = zod.z.object({
|
|
@@ -2313,6 +2514,8 @@ const CacheDeltaSchema = zod.z.object({
|
|
|
2313
2514
|
previousDocVersion: zod.z.number().int().positive(),
|
|
2314
2515
|
docVersion: zod.z.number().int().positive(),
|
|
2315
2516
|
annotationsVersion: zod.z.number().int().positive().optional(),
|
|
2517
|
+
layerVersion: zod.z.number().int().nonnegative().optional(),
|
|
2518
|
+
working: zod.z.boolean().optional(),
|
|
2316
2519
|
pages: zod.z.array(zod.z.object({
|
|
2317
2520
|
pageObjectNumber: zod.z.number().int().positive(),
|
|
2318
2521
|
cache: CachePinsSchema
|
|
@@ -2691,6 +2894,349 @@ const WeakAnnotationSessionResponseSchema = zod.z.object({
|
|
|
2691
2894
|
pageObjectNumbers: zod.z.array(zod.z.number().int().positive())
|
|
2692
2895
|
});
|
|
2693
2896
|
const WeakAnnotationSessionPagesRequestSchema = zod.z.object({ pageObjectNumbers: zod.z.array(zod.z.number().int().positive()).transform((pages) => [...new Set(pages)]) });
|
|
2897
|
+
const BASE64_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
2898
|
+
/** Standard base64 (padded). Dependency-free: no Buffer, runs in browsers too. */
|
|
2899
|
+
function toBase64(bytes) {
|
|
2900
|
+
let out = "";
|
|
2901
|
+
for (let i = 0; i < bytes.length; i += 3) {
|
|
2902
|
+
const b0 = bytes[i];
|
|
2903
|
+
const b1 = bytes[i + 1];
|
|
2904
|
+
const b2 = bytes[i + 2];
|
|
2905
|
+
out += BASE64_ALPHABET[b0 >> 2];
|
|
2906
|
+
out += BASE64_ALPHABET[(b0 & 3) << 4 | (b1 ?? 0) >> 4];
|
|
2907
|
+
out += b1 === void 0 ? "=" : BASE64_ALPHABET[(b1 & 15) << 2 | (b2 ?? 0) >> 6];
|
|
2908
|
+
out += b2 === void 0 ? "=" : BASE64_ALPHABET[b2 & 63];
|
|
2909
|
+
}
|
|
2910
|
+
return out;
|
|
2911
|
+
}
|
|
2912
|
+
function fromBase64(encoded) {
|
|
2913
|
+
let end = encoded.length;
|
|
2914
|
+
while (end > 0 && encoded[end - 1] === "=") end -= 1;
|
|
2915
|
+
const clean = encoded.slice(0, end);
|
|
2916
|
+
if (clean.length % 4 === 1 || /[^A-Za-z0-9+/]/.test(clean)) throw new Error("malformed base64");
|
|
2917
|
+
const bytes = [];
|
|
2918
|
+
let buffer = 0;
|
|
2919
|
+
let bits = 0;
|
|
2920
|
+
for (const ch of clean) {
|
|
2921
|
+
buffer = buffer << 6 | BASE64_ALPHABET.indexOf(ch);
|
|
2922
|
+
bits += 6;
|
|
2923
|
+
if (bits >= 8) {
|
|
2924
|
+
bits -= 8;
|
|
2925
|
+
bytes.push(buffer >> bits & 255);
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
return Uint8Array.from(bytes);
|
|
2929
|
+
}
|
|
2930
|
+
const Base64Schema = zod.z.string().regex(/^[A-Za-z0-9+/]*={0,2}$/, "base64");
|
|
2931
|
+
const DocumentVersionRefSchema = zod.z.object({
|
|
2932
|
+
baseSha256: zod.z.string().regex(/^[0-9a-f]{64}$/),
|
|
2933
|
+
editsVersion: zod.z.number().int().nonnegative()
|
|
2934
|
+
});
|
|
2935
|
+
const ByteRangeSchema = zod.z.tuple([
|
|
2936
|
+
zod.z.number().int().nonnegative(),
|
|
2937
|
+
zod.z.number().int().nonnegative(),
|
|
2938
|
+
zod.z.number().int().nonnegative(),
|
|
2939
|
+
zod.z.number().int().nonnegative()
|
|
2940
|
+
]);
|
|
2941
|
+
/** `SignaturePrepared` with the digest as base64. */
|
|
2942
|
+
const SignaturePreparedWireSchema = zod.z.object({
|
|
2943
|
+
signingId: zod.z.string().min(1),
|
|
2944
|
+
digest: Base64Schema,
|
|
2945
|
+
algorithm: zod.z.enum([
|
|
2946
|
+
"sha256",
|
|
2947
|
+
"sha384",
|
|
2948
|
+
"sha512"
|
|
2949
|
+
]),
|
|
2950
|
+
byteRange: ByteRangeSchema,
|
|
2951
|
+
contentsSize: zod.z.number().int().positive(),
|
|
2952
|
+
subFilter: zod.z.string(),
|
|
2953
|
+
expectedVersion: DocumentVersionRefSchema,
|
|
2954
|
+
expiresAt: zod.z.string().nullable()
|
|
2955
|
+
});
|
|
2956
|
+
function encodePrepared(prepared) {
|
|
2957
|
+
return {
|
|
2958
|
+
...prepared,
|
|
2959
|
+
digest: toBase64(prepared.digest)
|
|
2960
|
+
};
|
|
2961
|
+
}
|
|
2962
|
+
function decodePrepared(wire) {
|
|
2963
|
+
return {
|
|
2964
|
+
...wire,
|
|
2965
|
+
digest: fromBase64(wire.digest),
|
|
2966
|
+
subFilter: wire.subFilter
|
|
2967
|
+
};
|
|
2968
|
+
}
|
|
2969
|
+
/** The JSON body of a completion: the CMS as base64 beside the fence. */
|
|
2970
|
+
const SignatureCompleteBodySchema = zod.z.object({
|
|
2971
|
+
cms: Base64Schema.refine((v) => v.length > 0, "cms is required"),
|
|
2972
|
+
expectedVersion: DocumentVersionRefSchema
|
|
2973
|
+
});
|
|
2974
|
+
const DocMdpPermissionSchema = zod.z.union([
|
|
2975
|
+
zod.z.literal(1),
|
|
2976
|
+
zod.z.literal(2),
|
|
2977
|
+
zod.z.literal(3)
|
|
2978
|
+
]);
|
|
2979
|
+
const ModificationLevelSchema = zod.z.enum([
|
|
2980
|
+
"none",
|
|
2981
|
+
"lta",
|
|
2982
|
+
"fill",
|
|
2983
|
+
"annotate"
|
|
2984
|
+
]);
|
|
2985
|
+
const DigestAlgorithmSchema = zod.z.enum([
|
|
2986
|
+
"sha1",
|
|
2987
|
+
"sha256",
|
|
2988
|
+
"sha384",
|
|
2989
|
+
"sha512"
|
|
2990
|
+
]);
|
|
2991
|
+
const FieldLockSpecSchema = zod.z.object({
|
|
2992
|
+
action: zod.z.enum([
|
|
2993
|
+
"all",
|
|
2994
|
+
"include",
|
|
2995
|
+
"exclude"
|
|
2996
|
+
]),
|
|
2997
|
+
fields: zod.z.array(zod.z.string()),
|
|
2998
|
+
permission: DocMdpPermissionSchema.optional()
|
|
2999
|
+
});
|
|
3000
|
+
const SignatureSeedValueSchema = zod.z.object({
|
|
3001
|
+
requiredFlags: zod.z.number().int(),
|
|
3002
|
+
presentFlags: zod.z.number().int(),
|
|
3003
|
+
version: zod.z.number().int().nullable(),
|
|
3004
|
+
mdp: zod.z.union([
|
|
3005
|
+
zod.z.literal(0),
|
|
3006
|
+
zod.z.literal(1),
|
|
3007
|
+
zod.z.literal(2),
|
|
3008
|
+
zod.z.literal(3)
|
|
3009
|
+
]).nullable(),
|
|
3010
|
+
filter: zod.z.string().nullable(),
|
|
3011
|
+
subFilters: zod.z.array(zod.z.string()),
|
|
3012
|
+
digestMethods: zod.z.array(zod.z.string()),
|
|
3013
|
+
reasons: zod.z.array(zod.z.string()),
|
|
3014
|
+
unsupportedRequired: zod.z.boolean()
|
|
3015
|
+
});
|
|
3016
|
+
const SignatureDTOSchema = zod.z.object({
|
|
3017
|
+
index: zod.z.number().int().nonnegative(),
|
|
3018
|
+
field: FormFieldRefSchema,
|
|
3019
|
+
fieldName: zod.z.string(),
|
|
3020
|
+
widget: FormWidgetRefSchema.nullable(),
|
|
3021
|
+
signed: zod.z.boolean(),
|
|
3022
|
+
kind: zod.z.enum(["signature", "timestamp"]),
|
|
3023
|
+
filter: zod.z.string().nullable(),
|
|
3024
|
+
subFilter: zod.z.string().nullable(),
|
|
3025
|
+
byteRange: ByteRangeSchema.nullable(),
|
|
3026
|
+
contentsSize: zod.z.number().int().nonnegative(),
|
|
3027
|
+
coverage: zod.z.enum([
|
|
3028
|
+
"whole-revision",
|
|
3029
|
+
"partial",
|
|
3030
|
+
"malformed"
|
|
3031
|
+
]).nullable(),
|
|
3032
|
+
revisionIndex: zod.z.number().int().nonnegative().nullable(),
|
|
3033
|
+
signer: zod.z.object({
|
|
3034
|
+
name: zod.z.string().nullable(),
|
|
3035
|
+
reason: zod.z.string().nullable(),
|
|
3036
|
+
location: zod.z.string().nullable(),
|
|
3037
|
+
contactInfo: zod.z.string().nullable(),
|
|
3038
|
+
claimedTime: zod.z.string().nullable()
|
|
3039
|
+
}),
|
|
3040
|
+
docMdp: DocMdpPermissionSchema.nullable(),
|
|
3041
|
+
catalogCertification: zod.z.boolean(),
|
|
3042
|
+
fieldMdp: FieldLockSpecSchema.nullable(),
|
|
3043
|
+
lock: FieldLockSpecSchema.nullable(),
|
|
3044
|
+
seedValue: SignatureSeedValueSchema.nullable()
|
|
3045
|
+
});
|
|
3046
|
+
const DocumentProtectionSchema = zod.z.object({
|
|
3047
|
+
enforced: ModificationLevelSchema.nullable(),
|
|
3048
|
+
judged: ModificationLevelSchema.nullable(),
|
|
3049
|
+
certification: zod.z.object({
|
|
3050
|
+
signatureIndex: zod.z.number().int().nonnegative(),
|
|
3051
|
+
permission: DocMdpPermissionSchema
|
|
3052
|
+
}).nullable(),
|
|
3053
|
+
fieldLocks: zod.z.array(zod.z.object({
|
|
3054
|
+
signatureIndex: zod.z.number().int().nonnegative(),
|
|
3055
|
+
source: zod.z.enum(["fieldmdp", "lock"]),
|
|
3056
|
+
spec: FieldLockSpecSchema
|
|
3057
|
+
})),
|
|
3058
|
+
policyVersion: zod.z.number().int()
|
|
3059
|
+
});
|
|
3060
|
+
const PdfRevisionSchema = zod.z.object({
|
|
3061
|
+
index: zod.z.number().int().nonnegative(),
|
|
3062
|
+
end: zod.z.number().int().nonnegative(),
|
|
3063
|
+
xrefOffset: zod.z.number().int().nonnegative(),
|
|
3064
|
+
signatureIndex: zod.z.number().int().nonnegative().nullable()
|
|
3065
|
+
});
|
|
3066
|
+
const SignatureSnapshotSchema = zod.z.object({
|
|
3067
|
+
chainValid: zod.z.boolean(),
|
|
3068
|
+
revisions: zod.z.array(PdfRevisionSchema),
|
|
3069
|
+
signatures: zod.z.array(SignatureDTOSchema),
|
|
3070
|
+
protection: DocumentProtectionSchema
|
|
3071
|
+
});
|
|
3072
|
+
const BaseVersionInfoSchema = zod.z.object({
|
|
3073
|
+
sha256: zod.z.string().regex(/^[0-9a-f]{64}$/),
|
|
3074
|
+
byteLength: zod.z.number().int().nonnegative()
|
|
3075
|
+
});
|
|
3076
|
+
const SignatureCompleteResultSchema = zod.z.object({
|
|
3077
|
+
status: zod.z.enum(["completed", "already-completed"]),
|
|
3078
|
+
signature: SignatureDTOSchema,
|
|
3079
|
+
version: BaseVersionInfoSchema,
|
|
3080
|
+
previous: DocumentVersionRefSchema,
|
|
3081
|
+
protection: DocumentProtectionSchema,
|
|
3082
|
+
meta: MutationMetaSchema
|
|
3083
|
+
});
|
|
3084
|
+
const SignatureAbortResultSchema = zod.z.object({ status: zod.z.enum([
|
|
3085
|
+
"aborted",
|
|
3086
|
+
"already-completed",
|
|
3087
|
+
"unknown"
|
|
3088
|
+
]) });
|
|
3089
|
+
const ChangeFindingSchema = zod.z.object({
|
|
3090
|
+
rule: zod.z.string(),
|
|
3091
|
+
verdict: zod.z.enum([
|
|
3092
|
+
"permitted",
|
|
3093
|
+
"forbidden",
|
|
3094
|
+
"incomplete"
|
|
3095
|
+
]),
|
|
3096
|
+
objectNumber: zod.z.number().int().nonnegative(),
|
|
3097
|
+
edge: zod.z.string().optional(),
|
|
3098
|
+
detail: zod.z.string().optional()
|
|
3099
|
+
});
|
|
3100
|
+
const AnalysisDetailSchema = zod.z.enum(["summary", "full"]);
|
|
3101
|
+
/** The analysis: one verdict (`current`) with its findings, the restrictions it was judged under, and facts about the revisions in between. */
|
|
3102
|
+
const ChangeAnalysisSchema = zod.z.object({
|
|
3103
|
+
mode: zod.z.enum(["authoritative", "exploratory"]),
|
|
3104
|
+
policyVersion: zod.z.number().int(),
|
|
3105
|
+
basis: zod.z.object({
|
|
3106
|
+
version: BaseVersionInfoSchema,
|
|
3107
|
+
editsVersion: zod.z.number().int().nonnegative(),
|
|
3108
|
+
source: zod.z.enum(["persisted", "working-copy"])
|
|
3109
|
+
}),
|
|
3110
|
+
since: zod.z.object({
|
|
3111
|
+
revisionIndex: zod.z.number().int().nonnegative(),
|
|
3112
|
+
signatureIndex: zod.z.number().int().nonnegative().nullable()
|
|
3113
|
+
}),
|
|
3114
|
+
until: zod.z.object({ revisionIndex: zod.z.number().int().nonnegative() }),
|
|
3115
|
+
restrictions: zod.z.array(zod.z.object({
|
|
3116
|
+
signatureIndex: zod.z.number().int().nonnegative(),
|
|
3117
|
+
revisionIndex: zod.z.number().int().nonnegative(),
|
|
3118
|
+
source: zod.z.enum([
|
|
3119
|
+
"docmdp",
|
|
3120
|
+
"fieldmdp",
|
|
3121
|
+
"lock"
|
|
3122
|
+
]),
|
|
3123
|
+
own: zod.z.boolean(),
|
|
3124
|
+
permission: zod.z.union([
|
|
3125
|
+
zod.z.literal(1),
|
|
3126
|
+
zod.z.literal(2),
|
|
3127
|
+
zod.z.literal(3)
|
|
3128
|
+
]).optional(),
|
|
3129
|
+
fields: zod.z.unknown().optional()
|
|
3130
|
+
})),
|
|
3131
|
+
current: zod.z.object({
|
|
3132
|
+
verdict: zod.z.enum([
|
|
3133
|
+
"unchanged",
|
|
3134
|
+
"permitted",
|
|
3135
|
+
"forbidden",
|
|
3136
|
+
"indeterminate"
|
|
3137
|
+
]),
|
|
3138
|
+
complete: zod.z.boolean(),
|
|
3139
|
+
primary: ChangeFindingSchema.optional(),
|
|
3140
|
+
findings: zod.z.array(ChangeFindingSchema),
|
|
3141
|
+
method: zod.z.enum(["net-state", "net-state+replay"])
|
|
3142
|
+
}),
|
|
3143
|
+
later: zod.z.object({
|
|
3144
|
+
revisionCount: zod.z.number().int().nonnegative(),
|
|
3145
|
+
undoneObjectNumbers: zod.z.array(zod.z.number().int().nonnegative())
|
|
3146
|
+
}),
|
|
3147
|
+
/** Equals `current.verdict`. */
|
|
3148
|
+
verdict: zod.z.enum([
|
|
3149
|
+
"unchanged",
|
|
3150
|
+
"permitted",
|
|
3151
|
+
"forbidden",
|
|
3152
|
+
"indeterminate"
|
|
3153
|
+
]),
|
|
3154
|
+
/** The step DTOs are large and evolving; carried verbatim. */
|
|
3155
|
+
steps: zod.z.array(zod.z.unknown())
|
|
3156
|
+
});
|
|
3157
|
+
const SignatureAttributionSchema = zod.z.object({
|
|
3158
|
+
name: zod.z.string().optional(),
|
|
3159
|
+
reason: zod.z.string().optional(),
|
|
3160
|
+
location: zod.z.string().optional(),
|
|
3161
|
+
contactInfo: zod.z.string().optional()
|
|
3162
|
+
});
|
|
3163
|
+
/** The JSON part of a visual signature fill (multipart envelope): which resource part holds the PDF, and its page. */
|
|
3164
|
+
const SignatureAppearanceBodySchema = zod.z.object({
|
|
3165
|
+
resource: zod.z.string().min(1),
|
|
3166
|
+
pageIndex: zod.z.number().int().nonnegative().optional()
|
|
3167
|
+
});
|
|
3168
|
+
/**
|
|
3169
|
+
* The JSON part of a prepare (multipart envelope): `SignaturePrepareInput`
|
|
3170
|
+
* with the appearance artwork referenced by its resource part instead of
|
|
3171
|
+
* inline bytes.
|
|
3172
|
+
*/
|
|
3173
|
+
const SignaturePrepareBodySchema = zod.z.object({
|
|
3174
|
+
field: FormFieldRefSchema,
|
|
3175
|
+
kind: zod.z.enum(["signature", "timestamp"]).optional(),
|
|
3176
|
+
subFilter: zod.z.enum(["adbe.pkcs7.detached", "ETSI.CAdES.detached"]).optional(),
|
|
3177
|
+
digest: zod.z.enum([
|
|
3178
|
+
"sha256",
|
|
3179
|
+
"sha384",
|
|
3180
|
+
"sha512"
|
|
3181
|
+
]).optional(),
|
|
3182
|
+
contentsSize: zod.z.number().int().positive().optional(),
|
|
3183
|
+
attribution: SignatureAttributionSchema.optional(),
|
|
3184
|
+
/** @deprecated the pre-rename spelling of `attribution`; servers read either. */
|
|
3185
|
+
signer: SignatureAttributionSchema.optional(),
|
|
3186
|
+
signingTime: zod.z.string().optional(),
|
|
3187
|
+
certify: zod.z.object({ permission: DocMdpPermissionSchema }).optional(),
|
|
3188
|
+
lock: FieldLockSpecSchema.optional(),
|
|
3189
|
+
appearance: zod.z.object({
|
|
3190
|
+
resource: zod.z.string().min(1),
|
|
3191
|
+
pageIndex: zod.z.number().int().nonnegative().optional()
|
|
3192
|
+
}).optional()
|
|
3193
|
+
});
|
|
3194
|
+
const optionalIndex = zod.z.coerce.number().int().nonnegative().optional();
|
|
3195
|
+
/** Layer analysis query (the current form): exactly one `since.*`; the working copy is the end. */
|
|
3196
|
+
const LayerAnalysisQuerySchema = zod.z.object({
|
|
3197
|
+
"since.signature": optionalIndex,
|
|
3198
|
+
"since.revision": optionalIndex,
|
|
3199
|
+
level: ModificationLevelSchema.optional(),
|
|
3200
|
+
detail: AnalysisDetailSchema.optional()
|
|
3201
|
+
}).refine((q) => q["since.signature"] === void 0 !== (q["since.revision"] === void 0), { message: "exactly one of since.signature / since.revision is required" });
|
|
3202
|
+
/** Version analysis query: as the layer's, plus `until` (a revision index; default the last). */
|
|
3203
|
+
const VersionAnalysisQuerySchema = zod.z.object({
|
|
3204
|
+
"since.signature": optionalIndex,
|
|
3205
|
+
"since.revision": optionalIndex,
|
|
3206
|
+
until: optionalIndex,
|
|
3207
|
+
level: ModificationLevelSchema.optional(),
|
|
3208
|
+
detail: AnalysisDetailSchema.optional(),
|
|
3209
|
+
/** The judging policy version the caller expects — a cache key, not an input (version responses are immutable). */
|
|
3210
|
+
policy: optionalIndex
|
|
3211
|
+
}).refine((q) => q["since.signature"] === void 0 !== (q["since.revision"] === void 0), { message: "exactly one of since.signature / since.revision is required" });
|
|
3212
|
+
function analyzeInputFromQuery(query, until) {
|
|
3213
|
+
return {
|
|
3214
|
+
since: query["since.signature"] !== void 0 ? { signatureIndex: query["since.signature"] } : { revisionIndex: query["since.revision"] ?? 0 },
|
|
3215
|
+
...until !== void 0 ? { until } : {},
|
|
3216
|
+
...query.level !== void 0 ? { exploratoryLevel: query.level } : {},
|
|
3217
|
+
...query.detail !== void 0 ? { detail: query.detail } : {}
|
|
3218
|
+
};
|
|
3219
|
+
}
|
|
3220
|
+
/** One row of the document's version catalog. */
|
|
3221
|
+
const DocumentVersionSchema = zod.z.object({
|
|
3222
|
+
sha256: zod.z.string().regex(/^[0-9a-f]{64}$/),
|
|
3223
|
+
byteLength: zod.z.number().int().nonnegative(),
|
|
3224
|
+
number: zod.z.number().int().positive(),
|
|
3225
|
+
parentSha256: zod.z.string().nullable(),
|
|
3226
|
+
producer: zod.z.enum(["upload", "signature"]),
|
|
3227
|
+
signingId: zod.z.string().nullable(),
|
|
3228
|
+
createdAt: zod.z.number().int()
|
|
3229
|
+
});
|
|
3230
|
+
const DocumentVersionsSchema = zod.z.object({
|
|
3231
|
+
/** `documents.base_sha`: the version every layer is over, or behind. */
|
|
3232
|
+
head: zod.z.string().regex(/^[0-9a-f]{64}$/),
|
|
3233
|
+
/** Oldest first. */
|
|
3234
|
+
versions: zod.z.array(DocumentVersionSchema)
|
|
3235
|
+
});
|
|
3236
|
+
const PageScaleResultSchema = zod.z.object({
|
|
3237
|
+
pageObjectNumber: zod.z.number().int().positive(),
|
|
3238
|
+
meta: MutationMetaSchema
|
|
3239
|
+
});
|
|
2694
3240
|
//#endregion
|
|
2695
3241
|
Object.defineProperty(exports, "ANNOTATION_KINDS", {
|
|
2696
3242
|
enumerable: true,
|
|
@@ -2878,12 +3424,24 @@ Object.defineProperty(exports, "AttachmentsCacheSchema", {
|
|
|
2878
3424
|
return AttachmentsCacheSchema;
|
|
2879
3425
|
}
|
|
2880
3426
|
});
|
|
3427
|
+
Object.defineProperty(exports, "BaseVersionInfoSchema", {
|
|
3428
|
+
enumerable: true,
|
|
3429
|
+
get: function() {
|
|
3430
|
+
return BaseVersionInfoSchema;
|
|
3431
|
+
}
|
|
3432
|
+
});
|
|
2881
3433
|
Object.defineProperty(exports, "BlendModeSchema", {
|
|
2882
3434
|
enumerable: true,
|
|
2883
3435
|
get: function() {
|
|
2884
3436
|
return BlendModeSchema;
|
|
2885
3437
|
}
|
|
2886
3438
|
});
|
|
3439
|
+
Object.defineProperty(exports, "ByteRangeSchema", {
|
|
3440
|
+
enumerable: true,
|
|
3441
|
+
get: function() {
|
|
3442
|
+
return ByteRangeSchema;
|
|
3443
|
+
}
|
|
3444
|
+
});
|
|
2887
3445
|
Object.defineProperty(exports, "CacheDeltaSchema", {
|
|
2888
3446
|
enumerable: true,
|
|
2889
3447
|
get: function() {
|
|
@@ -2926,6 +3484,12 @@ Object.defineProperty(exports, "CaretPatchSchema", {
|
|
|
2926
3484
|
return CaretPatchSchema;
|
|
2927
3485
|
}
|
|
2928
3486
|
});
|
|
3487
|
+
Object.defineProperty(exports, "ChangeAnalysisSchema", {
|
|
3488
|
+
enumerable: true,
|
|
3489
|
+
get: function() {
|
|
3490
|
+
return ChangeAnalysisSchema;
|
|
3491
|
+
}
|
|
3492
|
+
});
|
|
2929
3493
|
Object.defineProperty(exports, "CircleDTOSchema", {
|
|
2930
3494
|
enumerable: true,
|
|
2931
3495
|
get: function() {
|
|
@@ -2950,6 +3514,12 @@ Object.defineProperty(exports, "ColorSchema", {
|
|
|
2950
3514
|
return ColorSchema;
|
|
2951
3515
|
}
|
|
2952
3516
|
});
|
|
3517
|
+
Object.defineProperty(exports, "DigestAlgorithmSchema", {
|
|
3518
|
+
enumerable: true,
|
|
3519
|
+
get: function() {
|
|
3520
|
+
return DigestAlgorithmSchema;
|
|
3521
|
+
}
|
|
3522
|
+
});
|
|
2953
3523
|
Object.defineProperty(exports, "DocumentActionsSnapshotSchema", {
|
|
2954
3524
|
enumerable: true,
|
|
2955
3525
|
get: function() {
|
|
@@ -2974,12 +3544,36 @@ Object.defineProperty(exports, "DocumentMetadataSchema", {
|
|
|
2974
3544
|
return DocumentMetadataSchema;
|
|
2975
3545
|
}
|
|
2976
3546
|
});
|
|
3547
|
+
Object.defineProperty(exports, "DocumentProtectionSchema", {
|
|
3548
|
+
enumerable: true,
|
|
3549
|
+
get: function() {
|
|
3550
|
+
return DocumentProtectionSchema;
|
|
3551
|
+
}
|
|
3552
|
+
});
|
|
2977
3553
|
Object.defineProperty(exports, "DocumentSecurityStateSchema", {
|
|
2978
3554
|
enumerable: true,
|
|
2979
3555
|
get: function() {
|
|
2980
3556
|
return DocumentSecurityStateSchema;
|
|
2981
3557
|
}
|
|
2982
3558
|
});
|
|
3559
|
+
Object.defineProperty(exports, "DocumentVersionRefSchema", {
|
|
3560
|
+
enumerable: true,
|
|
3561
|
+
get: function() {
|
|
3562
|
+
return DocumentVersionRefSchema;
|
|
3563
|
+
}
|
|
3564
|
+
});
|
|
3565
|
+
Object.defineProperty(exports, "DocumentVersionSchema", {
|
|
3566
|
+
enumerable: true,
|
|
3567
|
+
get: function() {
|
|
3568
|
+
return DocumentVersionSchema;
|
|
3569
|
+
}
|
|
3570
|
+
});
|
|
3571
|
+
Object.defineProperty(exports, "DocumentVersionsSchema", {
|
|
3572
|
+
enumerable: true,
|
|
3573
|
+
get: function() {
|
|
3574
|
+
return DocumentVersionsSchema;
|
|
3575
|
+
}
|
|
3576
|
+
});
|
|
2983
3577
|
Object.defineProperty(exports, "EmbeddedFileItemSchema", {
|
|
2984
3578
|
enumerable: true,
|
|
2985
3579
|
get: function() {
|
|
@@ -2998,6 +3592,12 @@ Object.defineProperty(exports, "EngineErrorPayloadSchema", {
|
|
|
2998
3592
|
return EngineErrorPayloadSchema;
|
|
2999
3593
|
}
|
|
3000
3594
|
});
|
|
3595
|
+
Object.defineProperty(exports, "FieldLockSpecSchema", {
|
|
3596
|
+
enumerable: true,
|
|
3597
|
+
get: function() {
|
|
3598
|
+
return FieldLockSpecSchema;
|
|
3599
|
+
}
|
|
3600
|
+
});
|
|
3001
3601
|
Object.defineProperty(exports, "FileAttachmentDTOSchema", {
|
|
3002
3602
|
enumerable: true,
|
|
3003
3603
|
get: function() {
|
|
@@ -3232,18 +3832,36 @@ Object.defineProperty(exports, "KIND_BY_SUBTYPE", {
|
|
|
3232
3832
|
return KIND_BY_SUBTYPE;
|
|
3233
3833
|
}
|
|
3234
3834
|
});
|
|
3835
|
+
Object.defineProperty(exports, "LayerAnalysisQuerySchema", {
|
|
3836
|
+
enumerable: true,
|
|
3837
|
+
get: function() {
|
|
3838
|
+
return LayerAnalysisQuerySchema;
|
|
3839
|
+
}
|
|
3840
|
+
});
|
|
3235
3841
|
Object.defineProperty(exports, "LayerScopesSchema", {
|
|
3236
3842
|
enumerable: true,
|
|
3237
3843
|
get: function() {
|
|
3238
3844
|
return LayerScopesSchema;
|
|
3239
3845
|
}
|
|
3240
3846
|
});
|
|
3847
|
+
Object.defineProperty(exports, "LineCaptionPatchSchema", {
|
|
3848
|
+
enumerable: true,
|
|
3849
|
+
get: function() {
|
|
3850
|
+
return LineCaptionPatchSchema;
|
|
3851
|
+
}
|
|
3852
|
+
});
|
|
3241
3853
|
Object.defineProperty(exports, "LineDTOSchema", {
|
|
3242
3854
|
enumerable: true,
|
|
3243
3855
|
get: function() {
|
|
3244
3856
|
return LineDTOSchema;
|
|
3245
3857
|
}
|
|
3246
3858
|
});
|
|
3859
|
+
Object.defineProperty(exports, "LineDimensionCaptionSchema", {
|
|
3860
|
+
enumerable: true,
|
|
3861
|
+
get: function() {
|
|
3862
|
+
return LineDimensionCaptionSchema;
|
|
3863
|
+
}
|
|
3864
|
+
});
|
|
3247
3865
|
Object.defineProperty(exports, "LineDraftSchema", {
|
|
3248
3866
|
enumerable: true,
|
|
3249
3867
|
get: function() {
|
|
@@ -3262,6 +3880,18 @@ Object.defineProperty(exports, "LineEndingsSchema", {
|
|
|
3262
3880
|
return LineEndingsSchema;
|
|
3263
3881
|
}
|
|
3264
3882
|
});
|
|
3883
|
+
Object.defineProperty(exports, "LineIntentSchema", {
|
|
3884
|
+
enumerable: true,
|
|
3885
|
+
get: function() {
|
|
3886
|
+
return LineIntentSchema;
|
|
3887
|
+
}
|
|
3888
|
+
});
|
|
3889
|
+
Object.defineProperty(exports, "LineLeaderSchema", {
|
|
3890
|
+
enumerable: true,
|
|
3891
|
+
get: function() {
|
|
3892
|
+
return LineLeaderSchema;
|
|
3893
|
+
}
|
|
3894
|
+
});
|
|
3265
3895
|
Object.defineProperty(exports, "LinePatchSchema", {
|
|
3266
3896
|
enumerable: true,
|
|
3267
3897
|
get: function() {
|
|
@@ -3310,6 +3940,12 @@ Object.defineProperty(exports, "MetadataUpdateResultSchema", {
|
|
|
3310
3940
|
return MetadataUpdateResultSchema;
|
|
3311
3941
|
}
|
|
3312
3942
|
});
|
|
3943
|
+
Object.defineProperty(exports, "ModificationLevelSchema", {
|
|
3944
|
+
enumerable: true,
|
|
3945
|
+
get: function() {
|
|
3946
|
+
return ModificationLevelSchema;
|
|
3947
|
+
}
|
|
3948
|
+
});
|
|
3313
3949
|
Object.defineProperty(exports, "MutationMetaSchema", {
|
|
3314
3950
|
enumerable: true,
|
|
3315
3951
|
get: function() {
|
|
@@ -3406,6 +4042,12 @@ Object.defineProperty(exports, "PageListSnapshotSchema", {
|
|
|
3406
4042
|
return PageListSnapshotSchema;
|
|
3407
4043
|
}
|
|
3408
4044
|
});
|
|
4045
|
+
Object.defineProperty(exports, "PageMeasurementViewportSchema", {
|
|
4046
|
+
enumerable: true,
|
|
4047
|
+
get: function() {
|
|
4048
|
+
return PageMeasurementViewportSchema;
|
|
4049
|
+
}
|
|
4050
|
+
});
|
|
3409
4051
|
Object.defineProperty(exports, "PageMoveInputSchema", {
|
|
3410
4052
|
enumerable: true,
|
|
3411
4053
|
get: function() {
|
|
@@ -3466,6 +4108,18 @@ Object.defineProperty(exports, "PageRotateResultSchema", {
|
|
|
3466
4108
|
return PageRotateResultSchema;
|
|
3467
4109
|
}
|
|
3468
4110
|
});
|
|
4111
|
+
Object.defineProperty(exports, "PageScaleInputSchema", {
|
|
4112
|
+
enumerable: true,
|
|
4113
|
+
get: function() {
|
|
4114
|
+
return PageScaleInputSchema;
|
|
4115
|
+
}
|
|
4116
|
+
});
|
|
4117
|
+
Object.defineProperty(exports, "PageScaleResultSchema", {
|
|
4118
|
+
enumerable: true,
|
|
4119
|
+
get: function() {
|
|
4120
|
+
return PageScaleResultSchema;
|
|
4121
|
+
}
|
|
4122
|
+
});
|
|
3469
4123
|
Object.defineProperty(exports, "PageStateSchema", {
|
|
3470
4124
|
enumerable: true,
|
|
3471
4125
|
get: function() {
|
|
@@ -3532,6 +4186,12 @@ Object.defineProperty(exports, "PdfFieldActionsSchema", {
|
|
|
3532
4186
|
return PdfFieldActionsSchema;
|
|
3533
4187
|
}
|
|
3534
4188
|
});
|
|
4189
|
+
Object.defineProperty(exports, "PdfForeignMeasureSchema", {
|
|
4190
|
+
enumerable: true,
|
|
4191
|
+
get: function() {
|
|
4192
|
+
return PdfForeignMeasureSchema;
|
|
4193
|
+
}
|
|
4194
|
+
});
|
|
3535
4195
|
Object.defineProperty(exports, "PdfLinkTargetSchema", {
|
|
3536
4196
|
enumerable: true,
|
|
3537
4197
|
get: function() {
|
|
@@ -3544,6 +4204,30 @@ Object.defineProperty(exports, "PdfLinkTargetWritableSchema", {
|
|
|
3544
4204
|
return PdfLinkTargetWritableSchema;
|
|
3545
4205
|
}
|
|
3546
4206
|
});
|
|
4207
|
+
Object.defineProperty(exports, "PdfMeasureSchema", {
|
|
4208
|
+
enumerable: true,
|
|
4209
|
+
get: function() {
|
|
4210
|
+
return PdfMeasureSchema;
|
|
4211
|
+
}
|
|
4212
|
+
});
|
|
4213
|
+
Object.defineProperty(exports, "PdfMeasureWriteSchema", {
|
|
4214
|
+
enumerable: true,
|
|
4215
|
+
get: function() {
|
|
4216
|
+
return PdfMeasureWriteSchema;
|
|
4217
|
+
}
|
|
4218
|
+
});
|
|
4219
|
+
Object.defineProperty(exports, "PdfMeasurementSchema", {
|
|
4220
|
+
enumerable: true,
|
|
4221
|
+
get: function() {
|
|
4222
|
+
return PdfMeasurementSchema;
|
|
4223
|
+
}
|
|
4224
|
+
});
|
|
4225
|
+
Object.defineProperty(exports, "PdfNumberFormatSchema", {
|
|
4226
|
+
enumerable: true,
|
|
4227
|
+
get: function() {
|
|
4228
|
+
return PdfNumberFormatSchema;
|
|
4229
|
+
}
|
|
4230
|
+
});
|
|
3547
4231
|
Object.defineProperty(exports, "PdfPageActionsSchema", {
|
|
3548
4232
|
enumerable: true,
|
|
3549
4233
|
get: function() {
|
|
@@ -3574,6 +4258,12 @@ Object.defineProperty(exports, "PdfRectSchema", {
|
|
|
3574
4258
|
return PdfRectSchema;
|
|
3575
4259
|
}
|
|
3576
4260
|
});
|
|
4261
|
+
Object.defineProperty(exports, "PdfRevisionSchema", {
|
|
4262
|
+
enumerable: true,
|
|
4263
|
+
get: function() {
|
|
4264
|
+
return PdfRevisionSchema;
|
|
4265
|
+
}
|
|
4266
|
+
});
|
|
3577
4267
|
Object.defineProperty(exports, "PdfRotationSchema", {
|
|
3578
4268
|
enumerable: true,
|
|
3579
4269
|
get: function() {
|
|
@@ -3610,6 +4300,12 @@ Object.defineProperty(exports, "PolygonDraftSchema", {
|
|
|
3610
4300
|
return PolygonDraftSchema;
|
|
3611
4301
|
}
|
|
3612
4302
|
});
|
|
4303
|
+
Object.defineProperty(exports, "PolygonIntentSchema", {
|
|
4304
|
+
enumerable: true,
|
|
4305
|
+
get: function() {
|
|
4306
|
+
return PolygonIntentSchema;
|
|
4307
|
+
}
|
|
4308
|
+
});
|
|
3613
4309
|
Object.defineProperty(exports, "PolygonPatchSchema", {
|
|
3614
4310
|
enumerable: true,
|
|
3615
4311
|
get: function() {
|
|
@@ -3628,6 +4324,12 @@ Object.defineProperty(exports, "PolylineDraftSchema", {
|
|
|
3628
4324
|
return PolylineDraftSchema;
|
|
3629
4325
|
}
|
|
3630
4326
|
});
|
|
4327
|
+
Object.defineProperty(exports, "PolylineIntentSchema", {
|
|
4328
|
+
enumerable: true,
|
|
4329
|
+
get: function() {
|
|
4330
|
+
return PolylineIntentSchema;
|
|
4331
|
+
}
|
|
4332
|
+
});
|
|
3631
4333
|
Object.defineProperty(exports, "PolylinePatchSchema", {
|
|
3632
4334
|
enumerable: true,
|
|
3633
4335
|
get: function() {
|
|
@@ -3706,6 +4408,72 @@ Object.defineProperty(exports, "SearchSnippetSchema", {
|
|
|
3706
4408
|
return SearchSnippetSchema;
|
|
3707
4409
|
}
|
|
3708
4410
|
});
|
|
4411
|
+
Object.defineProperty(exports, "ShapeCaptionPatchSchema", {
|
|
4412
|
+
enumerable: true,
|
|
4413
|
+
get: function() {
|
|
4414
|
+
return ShapeCaptionPatchSchema;
|
|
4415
|
+
}
|
|
4416
|
+
});
|
|
4417
|
+
Object.defineProperty(exports, "ShapeDimensionCaptionSchema", {
|
|
4418
|
+
enumerable: true,
|
|
4419
|
+
get: function() {
|
|
4420
|
+
return ShapeDimensionCaptionSchema;
|
|
4421
|
+
}
|
|
4422
|
+
});
|
|
4423
|
+
Object.defineProperty(exports, "SignatureAbortResultSchema", {
|
|
4424
|
+
enumerable: true,
|
|
4425
|
+
get: function() {
|
|
4426
|
+
return SignatureAbortResultSchema;
|
|
4427
|
+
}
|
|
4428
|
+
});
|
|
4429
|
+
Object.defineProperty(exports, "SignatureAppearanceBodySchema", {
|
|
4430
|
+
enumerable: true,
|
|
4431
|
+
get: function() {
|
|
4432
|
+
return SignatureAppearanceBodySchema;
|
|
4433
|
+
}
|
|
4434
|
+
});
|
|
4435
|
+
Object.defineProperty(exports, "SignatureCompleteBodySchema", {
|
|
4436
|
+
enumerable: true,
|
|
4437
|
+
get: function() {
|
|
4438
|
+
return SignatureCompleteBodySchema;
|
|
4439
|
+
}
|
|
4440
|
+
});
|
|
4441
|
+
Object.defineProperty(exports, "SignatureCompleteResultSchema", {
|
|
4442
|
+
enumerable: true,
|
|
4443
|
+
get: function() {
|
|
4444
|
+
return SignatureCompleteResultSchema;
|
|
4445
|
+
}
|
|
4446
|
+
});
|
|
4447
|
+
Object.defineProperty(exports, "SignatureDTOSchema", {
|
|
4448
|
+
enumerable: true,
|
|
4449
|
+
get: function() {
|
|
4450
|
+
return SignatureDTOSchema;
|
|
4451
|
+
}
|
|
4452
|
+
});
|
|
4453
|
+
Object.defineProperty(exports, "SignaturePrepareBodySchema", {
|
|
4454
|
+
enumerable: true,
|
|
4455
|
+
get: function() {
|
|
4456
|
+
return SignaturePrepareBodySchema;
|
|
4457
|
+
}
|
|
4458
|
+
});
|
|
4459
|
+
Object.defineProperty(exports, "SignaturePreparedWireSchema", {
|
|
4460
|
+
enumerable: true,
|
|
4461
|
+
get: function() {
|
|
4462
|
+
return SignaturePreparedWireSchema;
|
|
4463
|
+
}
|
|
4464
|
+
});
|
|
4465
|
+
Object.defineProperty(exports, "SignatureSeedValueSchema", {
|
|
4466
|
+
enumerable: true,
|
|
4467
|
+
get: function() {
|
|
4468
|
+
return SignatureSeedValueSchema;
|
|
4469
|
+
}
|
|
4470
|
+
});
|
|
4471
|
+
Object.defineProperty(exports, "SignatureSnapshotSchema", {
|
|
4472
|
+
enumerable: true,
|
|
4473
|
+
get: function() {
|
|
4474
|
+
return SignatureSnapshotSchema;
|
|
4475
|
+
}
|
|
4476
|
+
});
|
|
3709
4477
|
Object.defineProperty(exports, "SquareDTOSchema", {
|
|
3710
4478
|
enumerable: true,
|
|
3711
4479
|
get: function() {
|
|
@@ -3856,6 +4624,12 @@ Object.defineProperty(exports, "UnsupportedPatchSchema", {
|
|
|
3856
4624
|
return UnsupportedPatchSchema;
|
|
3857
4625
|
}
|
|
3858
4626
|
});
|
|
4627
|
+
Object.defineProperty(exports, "VersionAnalysisQuerySchema", {
|
|
4628
|
+
enumerable: true,
|
|
4629
|
+
get: function() {
|
|
4630
|
+
return VersionAnalysisQuerySchema;
|
|
4631
|
+
}
|
|
4632
|
+
});
|
|
3859
4633
|
Object.defineProperty(exports, "WeakAnnotationSessionPagesRequestSchema", {
|
|
3860
4634
|
enumerable: true,
|
|
3861
4635
|
get: function() {
|
|
@@ -3886,5 +4660,35 @@ Object.defineProperty(exports, "WireAttachmentFileSchema", {
|
|
|
3886
4660
|
return WireAttachmentFileSchema;
|
|
3887
4661
|
}
|
|
3888
4662
|
});
|
|
4663
|
+
Object.defineProperty(exports, "analyzeInputFromQuery", {
|
|
4664
|
+
enumerable: true,
|
|
4665
|
+
get: function() {
|
|
4666
|
+
return analyzeInputFromQuery;
|
|
4667
|
+
}
|
|
4668
|
+
});
|
|
4669
|
+
Object.defineProperty(exports, "decodePrepared", {
|
|
4670
|
+
enumerable: true,
|
|
4671
|
+
get: function() {
|
|
4672
|
+
return decodePrepared;
|
|
4673
|
+
}
|
|
4674
|
+
});
|
|
4675
|
+
Object.defineProperty(exports, "encodePrepared", {
|
|
4676
|
+
enumerable: true,
|
|
4677
|
+
get: function() {
|
|
4678
|
+
return encodePrepared;
|
|
4679
|
+
}
|
|
4680
|
+
});
|
|
4681
|
+
Object.defineProperty(exports, "fromBase64", {
|
|
4682
|
+
enumerable: true,
|
|
4683
|
+
get: function() {
|
|
4684
|
+
return fromBase64;
|
|
4685
|
+
}
|
|
4686
|
+
});
|
|
4687
|
+
Object.defineProperty(exports, "toBase64", {
|
|
4688
|
+
enumerable: true,
|
|
4689
|
+
get: function() {
|
|
4690
|
+
return toBase64;
|
|
4691
|
+
}
|
|
4692
|
+
});
|
|
3889
4693
|
|
|
3890
|
-
//# sourceMappingURL=schemas-
|
|
4694
|
+
//# sourceMappingURL=schemas-D0g6tKa9.cjs.map
|