@embedpdf/engine-core 3.0.0-next.12 → 3.0.0-next.13

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.
Files changed (59) hide show
  1. package/dist/{AbortError-CRSooKsk.cjs → AbortError-Cq2igpZ6.cjs} +2 -2
  2. package/dist/{AbortError-CRSooKsk.cjs.map → AbortError-Cq2igpZ6.cjs.map} +1 -1
  3. package/dist/{AbortError-8-9JAX1Y.js → AbortError-DHqPBnYc.js} +2 -2
  4. package/dist/{AbortError-8-9JAX1Y.js.map → AbortError-DHqPBnYc.js.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-x6tKulNV.d.cts → AnnotationListSnapshot-D3mFut1e.d.cts} +1155 -171
  6. package/dist/{AnnotationListSnapshot-x6tKulNV.d.ts → AnnotationListSnapshot-D3mFut1e.d.ts} +1155 -171
  7. package/dist/{DocumentSecurityService-CK0pejAK.d.cts → DocumentSecurityService-ClTZc0zO.d.cts} +2 -2
  8. package/dist/{DocumentSecurityService-9MawYxP-.d.ts → DocumentSecurityService-_JRjqvoI.d.ts} +2 -2
  9. package/dist/{Engine-Ds0ytbl6.d.ts → Engine-Bx0NOfmd.d.cts} +166 -11
  10. package/dist/{Engine--0XF0UAK.d.cts → Engine-DxtpCYcP.d.ts} +166 -11
  11. package/dist/{PageInsertBlankInput-CzShuSJI.cjs → PageInsertBlankInput-CqXBmFhN.cjs} +37 -2
  12. package/dist/PageInsertBlankInput-CqXBmFhN.cjs.map +1 -0
  13. package/dist/{PageInsertBlankInput-WKY0tr6S.js → PageInsertBlankInput-cHq9-i-z.js} +37 -2
  14. package/dist/PageInsertBlankInput-cHq9-i-z.js.map +1 -0
  15. package/dist/{builders-8Hl1AYNU.cjs → builders-Bqm8yTpi.cjs} +1470 -4
  16. package/dist/builders-Bqm8yTpi.cjs.map +1 -0
  17. package/dist/{builders-DOjcKDWQ.js → builders-Dqo2X-dt.js} +1351 -5
  18. package/dist/builders-Dqo2X-dt.js.map +1 -0
  19. package/dist/conformance.cjs +1079 -13
  20. package/dist/conformance.cjs.map +1 -1
  21. package/dist/conformance.d.cts +70 -3
  22. package/dist/conformance.d.ts +70 -3
  23. package/dist/conformance.js +1079 -14
  24. package/dist/conformance.js.map +1 -1
  25. package/dist/{fold-C7I5GpBz.cjs → fold-2V29cxCV.cjs} +2 -2
  26. package/dist/{fold-C7I5GpBz.cjs.map → fold-2V29cxCV.cjs.map} +1 -1
  27. package/dist/{fold-BfyxxwS6.js → fold-CdEJTBTn.js} +2 -2
  28. package/dist/{fold-BfyxxwS6.js.map → fold-CdEJTBTn.js.map} +1 -1
  29. package/dist/index.cjs +33 -4
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +5 -5
  33. package/dist/{resolver-D-jumvgM.cjs → resolver-CYVNV4hn.cjs} +216 -10
  34. package/dist/resolver-CYVNV4hn.cjs.map +1 -0
  35. package/dist/{resolver-CHG4waXL.js → resolver-inAVzsWt.js} +157 -11
  36. package/dist/resolver-inAVzsWt.js.map +1 -0
  37. package/dist/runtime.cjs +34 -5
  38. package/dist/runtime.d.cts +192 -5
  39. package/dist/runtime.d.ts +192 -5
  40. package/dist/runtime.js +6 -6
  41. package/dist/{schemas-DOyVEPk7.js → schemas-BLARNCgx.js} +420 -4
  42. package/dist/schemas-BLARNCgx.js.map +1 -0
  43. package/dist/{schemas-RChsAMWw.cjs → schemas-DIqFMmrC.cjs} +581 -3
  44. package/dist/schemas-DIqFMmrC.cjs.map +1 -0
  45. package/dist/wire.cjs +228 -12
  46. package/dist/wire.cjs.map +1 -1
  47. package/dist/wire.d.cts +415 -4
  48. package/dist/wire.d.ts +415 -4
  49. package/dist/wire.js +199 -13
  50. package/dist/wire.js.map +1 -1
  51. package/package.json +1 -1
  52. package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +0 -1
  53. package/dist/PageInsertBlankInput-WKY0tr6S.js.map +0 -1
  54. package/dist/builders-8Hl1AYNU.cjs.map +0 -1
  55. package/dist/builders-DOjcKDWQ.js.map +0 -1
  56. package/dist/resolver-CHG4waXL.js.map +0 -1
  57. package/dist/resolver-D-jumvgM.cjs.map +0 -1
  58. package/dist/schemas-DOyVEPk7.js.map +0 -1
  59. package/dist/schemas-RChsAMWw.cjs.map +0 -1
package/dist/wire.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as CaretDraftSchema, $c as Color, $i as FormFieldRef, $n as PageNameResult, $r as FormImportResult, $s as PageLayout, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ai as FormKind, Bi as FormFieldDTO, Bl as DocumentMetadata, Bn as PageDeleteResult, Ca as ManifestPage, D as FileAttachmentDTOSchema, Dl as PdfActionTargetRef, Dn as HighlightPatchSchema, Dt as LinePatchSchema, El as PdfActionNode, En as HighlightDraftSchema, Et as LineDraftSchema, F as StampDTOSchema, Fn as RedactionApplyScope, Fr as SearchSlice, G as TextDTOSchema, Gc as AnnotationRef, Gn as AnnotationFlattenInput, Go as PdfSaveMode, Ha as AttachmentDeleteResult, Hi as FormFieldFlags, Hn as PageRotateResult, I as StampWireDraftSchema, Ic as DocCapability, Ir as SearchSliceBudget, Jc as AnnotationBorderStyle, Jn as PageFlattenInput, Jo as AnnotationAppearanceImageOptions, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as RevisionToken, Ko as CachePins, Kt as SquareDTOSchema, L as StampWirePatchSchema, Ll as PdfDestination, Lo as SerializedEngineError, Lr as SearchSnippet, Lt as PolygonDTOSchema, Mn as MetadataUpdateResult, Mo as AnnotationStableId, Ms as PageTextSnapshot, Mt as PolylineDraftSchema, Ni as WidgetAppearanceSchema, Nr as SearchQuery, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Ol as PdfActionTree, P as ResourceRefSchema, Pn as RedactionApplyResult, Pr as SearchRequest, Q as CaretDTOSchema, Qc as CaretIntent, Qi as FormValueEntry, Qr as FormFieldUpdateResult, Qs as PageBoxes, Qt as CircleDTOSchema, Rt as PolygonDraftSchema, Sa as DocumentManifest, Sl as PdfSize, Ta as LayerScopes, Ti as FormFieldOptionInput, Tn as HighlightDTOSchema, Ts as PageGeometrySnapshot, Tt as LineDTOSchema, Ua as AttachmentsCache, Uc as PdfBits, Ui as FormFieldOption, Un as PageRotateInput, Va as AttachmentCreateResult, Vn as PageDeleteInput, W as NoteIconSchema, Wn as AnnotationAppearanceExportInput, Xi as ToggleFieldWidget, Xn as PageFlattenResult, Xo as AnnotationAppearanceManifest, Xr as FormFieldCreateResult, Yc as AnnotationFlags, Zc as BlendMode, Zr as FormFieldDeleteResult, Zs as PageListSnapshot, _ as UnsupportedPatchSchema, _a as RefetchReason, _l as LinePoints, _t as LinkDraftSchema, a as AnnotationDTOSchema, aa as AnnotationMoveResult, ar as PageMoveInput, at as FreeTextDraftSchema, bl as PdfRect, bn as UnderlineDraftSchema, bt as PdfLinkTargetWritableSchema, cn as StrikeoutDraftSchema, co as EmbeddedFileItem, di as FormSubmissionReceiptSchema, dl as StandardFont, dt as InkDraftSchema, ea as FormWidgetRef, ei as FormRepairResult, en as CirclePatchSchema, er as PageNameInput, es as AnnotationAppearanceRenderOptions, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fl as StrikeoutIntent, ft as InkPatchSchema, g as UnsupportedDraftSchema, ga as AnnotationListMutationMeta, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hi as FormFieldValue, hl as InkList, hn as SquigglyPatchSchema, ia as AnnotationDeleteResult, il as LineEndings, ir as PageStructureCache, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, ji as FormSnapshot, jr as SearchMatch, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, ki as WidgetPlacement, kl as PdfActionType, la as AppearanceOutcome, li as FormSubmissionEntrySchema, ln as StrikeoutPatchSchema, lo as EmbeddedFileRef, mi as FormDataFormat, ml as CalloutLine, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, ni as FormWidgetLinkResult, nl as InkIntent, oa as AnnotationUpdateResult, oi as FormEffectsResult, ol as PdfRectDifferences, oo as AttachmentFileInfo, ot as FreeTextPatchSchema, pi as FormSubmissionRequestSchema, pl as TextAlignment, pn as SquigglyDTOSchema, ps as PageNetworkRenderFormat, q as TextPatchSchema, qn as AnnotationFlattenResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as AnnotationCreateResult, rc as MetadataPatch, ri as FormEffect, rl as LineEnding, rr as PageMoveResult, rs as PageState, s as AnnotationDraftSchema, sn as StrikeoutDTOSchema, t as AnnotationListPageSnapshot, tc as NamedPageEntry, ti as FormSetValueResult, tl as FreeTextIntent, tr as PageRemoveNameInput, ts as AnnotationAppearancesQuery, u as AnnotationPatchSchema, us as PageImageOptions, ut as InkDTOSchema, va as CacheDelta, vi as FormFieldPatch, vl as PdfPoint, vs as PageRenderOptions, vt as LinkPatchSchema, wa as LayerScopePlane, wi as FormFieldDraft, wl as DocumentActionsSnapshot, xl as PdfRotation, xn as UnderlinePatchSchema, xt as PdfDestinationSchema, ya as MutationMeta, yl as PdfQuad, yn as UnderlineDTOSchema, ys as PageRenderQuery, yt as PdfLinkTargetSchema, zn as PageInsertResult, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-x6tKulNV.js";
2
- import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-9MawYxP-.js";
1
+ import { $ as CaretDraftSchema, $c as NamedPageEntry, $l as CachePins, $n as PageNameResult, $r as FormImportResult, $t as CircleDraftSchema, $u as PdfRect, A as FileAttachmentWireDraftSchema, Ac as PageTextSnapshot, Al as FieldLockSpec, Au as BlendMode, Bn as PageDeleteResult, Ca as FormSnapshot, Cc as PageGeometrySnapshot, Cl as BaseVersionInfo, Cs as SerializedEngineError, D as FileAttachmentDTOSchema, Dl as DocumentProtection, Dn as HighlightPatchSchema, Do as AttachmentCreateResult, Dt as LinePatchSchema, Du as AnnotationBorderStyle, En as HighlightDraftSchema, Et as LineDraftSchema, F as StampDTOSchema, Fa as FormFieldOption, Fn as RedactionApplyScope, Fr as SearchSlice, Fu as InkIntent, G as TextDTOSchema, Ga as AnnotationCreateResult, Gn as AnnotationFlattenInput, Gu as StrikeoutIntent, Ha as ToggleFieldWidget, Hl as SignatureSeedValue, Hn as PageRotateResult, I as StampWireDraftSchema, Il as SignatureCompleteResult, Ir as SearchSliceBudget, Iu as LineEnding, Ja as AnnotationUpdateResult, Jl as MutationMeta, Jn as PageFlattenInput, Jo as EmbeddedFileItem, Js as PdfSaveMode, Jt as SquarePatchSchema, Ju as InkList, K as TextDraftSchema, Ka as AnnotationDeleteResult, Ko as AttachmentFileInfo, Kt as SquareDTOSchema, Ku as TextAlignment, L as StampWirePatchSchema, Lr as SearchSnippet, Lt as PolygonDTOSchema, Lu as LineEndings, Ma as FormFieldDTO, Mi as AnalyzeInput, Ml as PdfRevision, Mn as MetadataUpdateResult, Mt as PolylineDraftSchema, Mu as Color, Nl as SignatureAbortResult, Nr as SearchQuery, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Ol as DocumentVersionRef, Oo as AttachmentDeleteResult, Ou as AnnotationFlags, P as ResourceRefSchema, Pa as FormFieldFlags, Pi as ChangeAnalysis, Pn as RedactionApplyResult, Pr as SearchRequest, Pu as FreeTextIntent, Q as CaretDTOSchema, Qi as FormEffectsResult, Qr as FormFieldUpdateResult, Qs as AnnotationAppearanceManifest, Qt as CircleDTOSchema, Qu as PdfQuad, Rl as SignatureDTO, Rt as PolygonDraftSchema, Sa as FormKind, Su as PdfBits, Ta as WidgetAppearanceSchema, Tn as HighlightDTOSchema, Tt as LineDTOSchema, Tu as RevisionToken, Un as PageRotateInput, Vl as SignaturePrepared, Vn as PageDeleteInput, W as NoteIconSchema, Wa as FormValueEntry, Wl as SignatureSnapshot, Wn as AnnotationAppearanceExportInput, Wu as StandardFont, Xc as PageBoxes, Xn as PageFlattenResult, Xr as FormFieldCreateResult, Xs as AnnotationAppearanceImageOptions, Xu as LinePoints, Yc as PageListSnapshot, Yi as FormEffect, Yl as PageState, Yo as EmbeddedFileRef, Za as AppearanceOutcome, Zc as PageLayout, Zr as FormFieldDeleteResult, Zu as PdfPoint, _ as UnsupportedPatchSchema, _a as FormFieldOptionInput, _c as PageRenderQuery, _t as LinkDraftSchema, a as AnnotationDTOSchema, aa as FormSubmissionRequestSchema, ad as PdfActionNode, ao as RefetchReason, ar as PageMoveInput, at as FreeTextDraftSchema, bn as UnderlineDraftSchema, bt as PdfLinkTargetWritableSchema, cc as PageImageOptions, cd as PdfActionType, cn as StrikeoutDraftSchema, co as DocumentManifest, dc as PageNetworkRenderFormat, do as LayerScopes, dt as InkDraftSchema, ed as PdfRotation, ei as FormRepairResult, en as CirclePatchSchema, er as PageNameInput, et as CaretPatchSchema, eu as FormFieldRef, f as KIND_BY_SUBTYPE, ft as InkPatchSchema, g as UnsupportedDraftSchema, ga as FormFieldDraft, gc as PageRenderOptions, gd as PdfDestination, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hn as SquigglyPatchSchema, hu as DocCapability, io as AnnotationListMutationMeta, ir as PageStructureCache, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jl as ModificationLevel, jr as SearchMatch, jt as PolylineDTOSchema, ju as CaretIntent, k as FileAttachmentPatchSchema, ko as AttachmentsCache, ln as StrikeoutPatchSchema, lo as ManifestPage, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, nc as AnnotationAppearanceRenderOptions, ni as FormWidgetLinkResult, oa as FormDataFormat, od as PdfActionTargetRef, ot as FreeTextPatchSchema, pn as SquigglyDTOSchema, q as TextPatchSchema, qa as AnnotationMoveResult, ql as CacheDelta, qn as AnnotationFlattenResult, qt as SquareDraftSchema, qu as CalloutLine, r as ANNOTATION_KINDS, ra as FormSubmissionReceiptSchema, rc as AnnotationAppearancesQuery, rd as DocumentActionsSnapshot, rr as PageMoveResult, s as AnnotationDraftSchema, sa as FormFieldValue, sd as PdfActionTree, sn as StrikeoutDTOSchema, t as AnnotationListPageSnapshot, ta as FormSubmissionEntrySchema, td as PdfSize, ti as FormSetValueResult, tl as MetadataPatch, tr as PageRemoveNameInput, tu as FormWidgetRef, u as AnnotationPatchSchema, ua as FormFieldPatch, uo as LayerScopePlane, ut as InkDTOSchema, vs as AnnotationStableId, vt as LinkPatchSchema, wu as AnnotationRef, xa as WidgetPlacement, xn as UnderlinePatchSchema, xt as PdfDestinationSchema, yd as DocumentMetadata, yn as UnderlineDTOSchema, yt as PdfLinkTargetSchema, zn as PageInsertResult, zt as PolygonPatchSchema, zu as PdfRectDifferences } from "./AnnotationListSnapshot-D3mFut1e.js";
2
+ import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-_JRjqvoI.js";
3
3
  import { z } from "zod";
4
4
  //#region src/geometry/schemas.d.ts
5
5
  declare const PdfPointSchema: z.ZodType<PdfPoint>;
@@ -753,6 +753,347 @@ declare const WeakAnnotationSessionPagesRequestSchema: z.ZodObject<{
753
753
  pageObjectNumbers: number[];
754
754
  }>;
755
755
  type WeakAnnotationSessionPagesRequest = z.infer<typeof WeakAnnotationSessionPagesRequestSchema>;
756
+ /** Standard base64 (padded). Dependency-free: no Buffer, runs in browsers too. */
757
+ declare function toBase64(bytes: Uint8Array): string;
758
+ declare function fromBase64(encoded: string): Uint8Array;
759
+ declare const DocumentVersionRefSchema: z.ZodType<DocumentVersionRef>;
760
+ declare const ByteRangeSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
761
+ /** `SignaturePrepared` with the digest as base64. */
762
+ declare const SignaturePreparedWireSchema: z.ZodObject<{
763
+ signingId: z.ZodString;
764
+ digest: z.ZodString;
765
+ algorithm: z.ZodEnum<["sha256", "sha384", "sha512"]>;
766
+ byteRange: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
767
+ contentsSize: z.ZodNumber;
768
+ subFilter: z.ZodString;
769
+ expectedVersion: z.ZodType<DocumentVersionRef, z.ZodTypeDef, DocumentVersionRef>;
770
+ expiresAt: z.ZodNullable<z.ZodString>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ expiresAt: string | null;
773
+ signingId: string;
774
+ digest: string;
775
+ algorithm: "sha256" | "sha384" | "sha512";
776
+ byteRange: [number, number, number, number];
777
+ contentsSize: number;
778
+ subFilter: string;
779
+ expectedVersion: DocumentVersionRef;
780
+ }, {
781
+ expiresAt: string | null;
782
+ signingId: string;
783
+ digest: string;
784
+ algorithm: "sha256" | "sha384" | "sha512";
785
+ byteRange: [number, number, number, number];
786
+ contentsSize: number;
787
+ subFilter: string;
788
+ expectedVersion: DocumentVersionRef;
789
+ }>;
790
+ type SignaturePreparedWire = z.infer<typeof SignaturePreparedWireSchema>;
791
+ declare function encodePrepared(prepared: SignaturePrepared): SignaturePreparedWire;
792
+ declare function decodePrepared(wire: SignaturePreparedWire): SignaturePrepared;
793
+ /** The JSON body of a completion: the CMS as base64 beside the fence. */
794
+ declare const SignatureCompleteBodySchema: z.ZodObject<{
795
+ cms: z.ZodEffects<z.ZodString, string, string>;
796
+ expectedVersion: z.ZodType<DocumentVersionRef, z.ZodTypeDef, DocumentVersionRef>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ expectedVersion: DocumentVersionRef;
799
+ cms: string;
800
+ }, {
801
+ expectedVersion: DocumentVersionRef;
802
+ cms: string;
803
+ }>;
804
+ type SignatureCompleteBody = z.infer<typeof SignatureCompleteBodySchema>;
805
+ declare const ModificationLevelSchema: z.ZodEnum<["none", "lta", "fill", "annotate"]>;
806
+ declare const DigestAlgorithmSchema: z.ZodEnum<["sha1", "sha256", "sha384", "sha512"]>;
807
+ declare const FieldLockSpecSchema: z.ZodType<FieldLockSpec>;
808
+ declare const SignatureSeedValueSchema: z.ZodType<SignatureSeedValue>;
809
+ declare const SignatureDTOSchema: z.ZodType<SignatureDTO>;
810
+ declare const DocumentProtectionSchema: z.ZodType<DocumentProtection>;
811
+ declare const PdfRevisionSchema: z.ZodType<PdfRevision>;
812
+ declare const SignatureSnapshotSchema: z.ZodType<SignatureSnapshot>;
813
+ declare const BaseVersionInfoSchema: z.ZodType<BaseVersionInfo>;
814
+ declare const SignatureCompleteResultSchema: z.ZodType<SignatureCompleteResult>;
815
+ declare const SignatureAbortResultSchema: z.ZodType<SignatureAbortResult>;
816
+ /** The analysis: one verdict (`current`) with its findings, the restrictions it was judged under, and facts about the revisions in between. */
817
+ declare const ChangeAnalysisSchema: z.ZodType<ChangeAnalysis>;
818
+ /** The JSON part of a visual signature fill (multipart envelope): which resource part holds the PDF, and its page. */
819
+ declare const SignatureAppearanceBodySchema: z.ZodObject<{
820
+ resource: z.ZodString;
821
+ pageIndex: z.ZodOptional<z.ZodNumber>;
822
+ }, "strip", z.ZodTypeAny, {
823
+ resource: string;
824
+ pageIndex?: number | undefined;
825
+ }, {
826
+ resource: string;
827
+ pageIndex?: number | undefined;
828
+ }>;
829
+ type SignatureAppearanceBody = z.infer<typeof SignatureAppearanceBodySchema>;
830
+ /**
831
+ * The JSON part of a prepare (multipart envelope): `SignaturePrepareInput`
832
+ * with the appearance artwork referenced by its resource part instead of
833
+ * inline bytes.
834
+ */
835
+ declare const SignaturePrepareBodySchema: z.ZodObject<{
836
+ field: z.ZodType<FormFieldRef, z.ZodTypeDef, FormFieldRef>;
837
+ kind: z.ZodOptional<z.ZodEnum<["signature", "timestamp"]>>;
838
+ subFilter: z.ZodOptional<z.ZodEnum<["adbe.pkcs7.detached", "ETSI.CAdES.detached"]>>;
839
+ digest: z.ZodOptional<z.ZodEnum<["sha256", "sha384", "sha512"]>>;
840
+ contentsSize: z.ZodOptional<z.ZodNumber>;
841
+ attribution: z.ZodOptional<z.ZodObject<{
842
+ name: z.ZodOptional<z.ZodString>;
843
+ reason: z.ZodOptional<z.ZodString>;
844
+ location: z.ZodOptional<z.ZodString>;
845
+ contactInfo: z.ZodOptional<z.ZodString>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ name?: string | undefined;
848
+ reason?: string | undefined;
849
+ location?: string | undefined;
850
+ contactInfo?: string | undefined;
851
+ }, {
852
+ name?: string | undefined;
853
+ reason?: string | undefined;
854
+ location?: string | undefined;
855
+ contactInfo?: string | undefined;
856
+ }>>;
857
+ /** @deprecated the pre-rename spelling of `attribution`; servers read either. */
858
+ signer: z.ZodOptional<z.ZodObject<{
859
+ name: z.ZodOptional<z.ZodString>;
860
+ reason: z.ZodOptional<z.ZodString>;
861
+ location: z.ZodOptional<z.ZodString>;
862
+ contactInfo: z.ZodOptional<z.ZodString>;
863
+ }, "strip", z.ZodTypeAny, {
864
+ name?: string | undefined;
865
+ reason?: string | undefined;
866
+ location?: string | undefined;
867
+ contactInfo?: string | undefined;
868
+ }, {
869
+ name?: string | undefined;
870
+ reason?: string | undefined;
871
+ location?: string | undefined;
872
+ contactInfo?: string | undefined;
873
+ }>>;
874
+ signingTime: z.ZodOptional<z.ZodString>;
875
+ certify: z.ZodOptional<z.ZodObject<{
876
+ permission: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
877
+ }, "strip", z.ZodTypeAny, {
878
+ permission: 1 | 2 | 3;
879
+ }, {
880
+ permission: 1 | 2 | 3;
881
+ }>>;
882
+ lock: z.ZodOptional<z.ZodType<FieldLockSpec, z.ZodTypeDef, FieldLockSpec>>;
883
+ appearance: z.ZodOptional<z.ZodObject<{
884
+ resource: z.ZodString;
885
+ pageIndex: z.ZodOptional<z.ZodNumber>;
886
+ }, "strip", z.ZodTypeAny, {
887
+ resource: string;
888
+ pageIndex?: number | undefined;
889
+ }, {
890
+ resource: string;
891
+ pageIndex?: number | undefined;
892
+ }>>;
893
+ }, "strip", z.ZodTypeAny, {
894
+ field: FormFieldRef;
895
+ digest?: "sha256" | "sha384" | "sha512" | undefined;
896
+ contentsSize?: number | undefined;
897
+ subFilter?: "adbe.pkcs7.detached" | "ETSI.CAdES.detached" | undefined;
898
+ kind?: "signature" | "timestamp" | undefined;
899
+ attribution?: {
900
+ name?: string | undefined;
901
+ reason?: string | undefined;
902
+ location?: string | undefined;
903
+ contactInfo?: string | undefined;
904
+ } | undefined;
905
+ signer?: {
906
+ name?: string | undefined;
907
+ reason?: string | undefined;
908
+ location?: string | undefined;
909
+ contactInfo?: string | undefined;
910
+ } | undefined;
911
+ signingTime?: string | undefined;
912
+ certify?: {
913
+ permission: 1 | 2 | 3;
914
+ } | undefined;
915
+ lock?: FieldLockSpec | undefined;
916
+ appearance?: {
917
+ resource: string;
918
+ pageIndex?: number | undefined;
919
+ } | undefined;
920
+ }, {
921
+ field: FormFieldRef;
922
+ digest?: "sha256" | "sha384" | "sha512" | undefined;
923
+ contentsSize?: number | undefined;
924
+ subFilter?: "adbe.pkcs7.detached" | "ETSI.CAdES.detached" | undefined;
925
+ kind?: "signature" | "timestamp" | undefined;
926
+ attribution?: {
927
+ name?: string | undefined;
928
+ reason?: string | undefined;
929
+ location?: string | undefined;
930
+ contactInfo?: string | undefined;
931
+ } | undefined;
932
+ signer?: {
933
+ name?: string | undefined;
934
+ reason?: string | undefined;
935
+ location?: string | undefined;
936
+ contactInfo?: string | undefined;
937
+ } | undefined;
938
+ signingTime?: string | undefined;
939
+ certify?: {
940
+ permission: 1 | 2 | 3;
941
+ } | undefined;
942
+ lock?: FieldLockSpec | undefined;
943
+ appearance?: {
944
+ resource: string;
945
+ pageIndex?: number | undefined;
946
+ } | undefined;
947
+ }>;
948
+ type SignaturePrepareBody = z.infer<typeof SignaturePrepareBodySchema>;
949
+ /** Layer analysis query (the current form): exactly one `since.*`; the working copy is the end. */
950
+ declare const LayerAnalysisQuerySchema: z.ZodEffects<z.ZodObject<{
951
+ 'since.signature': z.ZodOptional<z.ZodNumber>;
952
+ 'since.revision': z.ZodOptional<z.ZodNumber>;
953
+ level: z.ZodOptional<z.ZodEnum<["none", "lta", "fill", "annotate"]>>;
954
+ detail: z.ZodOptional<z.ZodEnum<["summary", "full"]>>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ 'since.signature'?: number | undefined;
957
+ 'since.revision'?: number | undefined;
958
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
959
+ detail?: "full" | "summary" | undefined;
960
+ }, {
961
+ 'since.signature'?: number | undefined;
962
+ 'since.revision'?: number | undefined;
963
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
964
+ detail?: "full" | "summary" | undefined;
965
+ }>, {
966
+ 'since.signature'?: number | undefined;
967
+ 'since.revision'?: number | undefined;
968
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
969
+ detail?: "full" | "summary" | undefined;
970
+ }, {
971
+ 'since.signature'?: number | undefined;
972
+ 'since.revision'?: number | undefined;
973
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
974
+ detail?: "full" | "summary" | undefined;
975
+ }>;
976
+ type LayerAnalysisQuery = z.infer<typeof LayerAnalysisQuerySchema>;
977
+ /** Version analysis query: as the layer's, plus `until` (a revision index; default the last). */
978
+ declare const VersionAnalysisQuerySchema: z.ZodEffects<z.ZodObject<{
979
+ 'since.signature': z.ZodOptional<z.ZodNumber>;
980
+ 'since.revision': z.ZodOptional<z.ZodNumber>;
981
+ until: z.ZodOptional<z.ZodNumber>;
982
+ level: z.ZodOptional<z.ZodEnum<["none", "lta", "fill", "annotate"]>>;
983
+ detail: z.ZodOptional<z.ZodEnum<["summary", "full"]>>;
984
+ /** The judging policy version the caller expects — a cache key, not an input (version responses are immutable). */
985
+ policy: z.ZodOptional<z.ZodNumber>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ 'since.signature'?: number | undefined;
988
+ 'since.revision'?: number | undefined;
989
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
990
+ detail?: "full" | "summary" | undefined;
991
+ until?: number | undefined;
992
+ policy?: number | undefined;
993
+ }, {
994
+ 'since.signature'?: number | undefined;
995
+ 'since.revision'?: number | undefined;
996
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
997
+ detail?: "full" | "summary" | undefined;
998
+ until?: number | undefined;
999
+ policy?: number | undefined;
1000
+ }>, {
1001
+ 'since.signature'?: number | undefined;
1002
+ 'since.revision'?: number | undefined;
1003
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
1004
+ detail?: "full" | "summary" | undefined;
1005
+ until?: number | undefined;
1006
+ policy?: number | undefined;
1007
+ }, {
1008
+ 'since.signature'?: number | undefined;
1009
+ 'since.revision'?: number | undefined;
1010
+ level?: "fill" | "none" | "lta" | "annotate" | undefined;
1011
+ detail?: "full" | "summary" | undefined;
1012
+ until?: number | undefined;
1013
+ policy?: number | undefined;
1014
+ }>;
1015
+ type VersionAnalysisQuery = z.infer<typeof VersionAnalysisQuerySchema>;
1016
+ declare function analyzeInputFromQuery(query: LayerAnalysisQuery | VersionAnalysisQuery, until: AnalyzeInput['until']): AnalyzeInput;
1017
+ /** One row of the document's version catalog. */
1018
+ declare const DocumentVersionSchema: z.ZodObject<{
1019
+ sha256: z.ZodString;
1020
+ byteLength: z.ZodNumber;
1021
+ number: z.ZodNumber;
1022
+ parentSha256: z.ZodNullable<z.ZodString>;
1023
+ producer: z.ZodEnum<["upload", "signature"]>;
1024
+ signingId: z.ZodNullable<z.ZodString>;
1025
+ createdAt: z.ZodNumber;
1026
+ }, "strip", z.ZodTypeAny, {
1027
+ number: number;
1028
+ signingId: string | null;
1029
+ sha256: string;
1030
+ byteLength: number;
1031
+ parentSha256: string | null;
1032
+ producer: "signature" | "upload";
1033
+ createdAt: number;
1034
+ }, {
1035
+ number: number;
1036
+ signingId: string | null;
1037
+ sha256: string;
1038
+ byteLength: number;
1039
+ parentSha256: string | null;
1040
+ producer: "signature" | "upload";
1041
+ createdAt: number;
1042
+ }>;
1043
+ type DocumentVersion = z.infer<typeof DocumentVersionSchema>;
1044
+ declare const DocumentVersionsSchema: z.ZodObject<{
1045
+ /** `documents.base_sha`: the version every layer is over, or behind. */
1046
+ head: z.ZodString;
1047
+ /** Oldest first. */
1048
+ versions: z.ZodArray<z.ZodObject<{
1049
+ sha256: z.ZodString;
1050
+ byteLength: z.ZodNumber;
1051
+ number: z.ZodNumber;
1052
+ parentSha256: z.ZodNullable<z.ZodString>;
1053
+ producer: z.ZodEnum<["upload", "signature"]>;
1054
+ signingId: z.ZodNullable<z.ZodString>;
1055
+ createdAt: z.ZodNumber;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ number: number;
1058
+ signingId: string | null;
1059
+ sha256: string;
1060
+ byteLength: number;
1061
+ parentSha256: string | null;
1062
+ producer: "signature" | "upload";
1063
+ createdAt: number;
1064
+ }, {
1065
+ number: number;
1066
+ signingId: string | null;
1067
+ sha256: string;
1068
+ byteLength: number;
1069
+ parentSha256: string | null;
1070
+ producer: "signature" | "upload";
1071
+ createdAt: number;
1072
+ }>, "many">;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ head: string;
1075
+ versions: {
1076
+ number: number;
1077
+ signingId: string | null;
1078
+ sha256: string;
1079
+ byteLength: number;
1080
+ parentSha256: string | null;
1081
+ producer: "signature" | "upload";
1082
+ createdAt: number;
1083
+ }[];
1084
+ }, {
1085
+ head: string;
1086
+ versions: {
1087
+ number: number;
1088
+ signingId: string | null;
1089
+ sha256: string;
1090
+ byteLength: number;
1091
+ parentSha256: string | null;
1092
+ producer: "signature" | "upload";
1093
+ createdAt: number;
1094
+ }[];
1095
+ }>;
1096
+ type DocumentVersions = z.infer<typeof DocumentVersionsSchema>;
756
1097
  //#endregion
757
1098
  //#region src/dto/PdfAction.schema.d.ts
758
1099
  declare const PdfActionTargetRefSchema: z.ZodType<PdfActionTargetRef>;
@@ -945,6 +1286,22 @@ interface DownloadToken {
945
1286
  docVersion: number;
946
1287
  mode: PdfSaveMode;
947
1288
  }
1289
+ /** The layer analysis token: the pin plus the flat `AnalyzeInput` (until = the working copy). */
1290
+ interface AnalysisToken {
1291
+ docVersion: number;
1292
+ since: {
1293
+ signatureIndex: number;
1294
+ } | {
1295
+ revisionIndex: number;
1296
+ };
1297
+ exploratoryLevel?: ModificationLevel;
1298
+ /** The judging policy version the caller expects (`SIGNATURE_POLICY_VERSION`); keys the cache. */
1299
+ policyVersion?: number;
1300
+ /** `full` carries every pairwise step; default `summary`. */
1301
+ detail?: 'summary' | 'full';
1302
+ }
1303
+ declare const encodeAnalysisToken: (input: AnalysisToken) => string;
1304
+ declare const decodeAnalysisToken: (raw: string) => AnalysisToken;
948
1305
  declare const encodeDocToken: (docVersion: number) => string;
949
1306
  declare const decodeDocToken: (raw: string) => number;
950
1307
  declare const encodeContentToken: (contentVersion: number) => string;
@@ -1095,6 +1452,34 @@ declare const wirePaths: {
1095
1452
  /** Immutable BASE catalog actions (plane-scope model): the shared-URL
1096
1453
  * variant an actions-inheriting layer resolves at. */
1097
1454
  readonly docActions: (docId: string, actionsVersion: number) => string;
1455
+ /** Immutable layer signature snapshot (base signatures + the layer's fields + protection). */
1456
+ readonly layerSignatures: (docId: string, layerName: string, docVersion: number) => string;
1457
+ readonly layerSignaturesCurrent: (docId: string, layerName: string) => string;
1458
+ /** Immutable: the layer's working copy judged against the base, pinned by `docVersion`. */
1459
+ readonly layerSignaturesAnalysis: (docId: string, layerName: string, token: AnalysisToken) => string;
1460
+ readonly layerSignaturesAnalysisCurrent: (docId: string, layerName: string) => string;
1461
+ /** POST (multipart envelope): author and seal a signing candidate. */
1462
+ readonly layerSignaturesPrepare: (docId: string, layerName: string) => string;
1463
+ /** POST (JSON): install the CMS and publish the sealed bytes as the next base version. */
1464
+ readonly layerSignatureComplete: (docId: string, layerName: string, signingId: string) => string;
1465
+ /** DELETE: discard a pending signing. */
1466
+ readonly layerSignatureAbort: (docId: string, layerName: string, signingId: string) => string;
1467
+ /** The document's base versions, oldest first (grows; never cached). */
1468
+ readonly docVersions: (docId: string) => string;
1469
+ /** Immutable: the signature snapshot of one base version. */
1470
+ readonly docVersionSignatures: (docId: string, sha256: string) => string;
1471
+ /** Immutable: a signed field's DER `/Contents` in one base version (`application/pkcs7-signature`). */
1472
+ readonly docVersionSignatureContents: (docId: string, sha256: string, fieldName: string) => string;
1473
+ /** Immutable: the digest of a signed field's `/ByteRange` in one base version. */
1474
+ readonly docVersionSignatureDigest: (docId: string, sha256: string, fieldName: string, algorithm: "sha1" | "sha256" | "sha384" | "sha512") => string;
1475
+ /** Immutable: history between two revisions of one base version. */
1476
+ readonly docVersionAnalysis: (docId: string, sha256: string, query: AnalysisQueryInput) => string;
1477
+ /** Immutable: the bytes of one base version. */
1478
+ readonly docVersionDownload: (docId: string, sha256: string) => string;
1479
+ /** Immutable: the byte prefix `[0, end)` of revision `index` of one base version. */
1480
+ readonly docVersionRevision: (docId: string, sha256: string, index: number) => string;
1481
+ /** POST (multipart envelope): draw a PDF page into an unsigned signature field's widgets. */
1482
+ readonly layerFormFieldSignatureAppearance: (docId: string, layerName: string, fieldKey: string) => string;
1098
1483
  /** POST: rewrite the document Info dict for the layer (metadata edit). */
1099
1484
  readonly layerMetadataUpdate: (docId: string, layerName: string) => string;
1100
1485
  /**
@@ -1314,6 +1699,19 @@ declare const wirePaths: {
1314
1699
  * server's route table is pinned to them by the doc-plane registry
1315
1700
  * conformance test.
1316
1701
  */
1702
+ /** The flat query of a version analysis (the contract's dotted keys). */
1703
+ interface AnalysisQueryInput {
1704
+ since: {
1705
+ signatureIndex: number;
1706
+ } | {
1707
+ revisionIndex: number;
1708
+ };
1709
+ /** Revision index the analysis ends at; default the last. */
1710
+ until?: number;
1711
+ exploratoryLevel?: ModificationLevel;
1712
+ detail?: 'summary' | 'full';
1713
+ }
1714
+ declare function analysisQueryString(query: AnalysisQueryInput): string;
1317
1715
  declare const wireTemplates: {
1318
1716
  readonly docHead: "/v1/docs/:docId/head";
1319
1717
  readonly layerManifest: "/v1/docs/:docId/layers/:layerName/manifest";
@@ -1328,6 +1726,7 @@ declare const wireTemplates: {
1328
1726
  readonly layerForm: "/v1/docs/:docId/layers/:layerName/form";
1329
1727
  readonly layerFormFieldValue: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/value";
1330
1728
  readonly layerFormFieldReset: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/reset";
1729
+ readonly layerFormFieldSignatureAppearance: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/signature-appearance";
1331
1730
  readonly layerFormData: "/v1/docs/:docId/layers/:layerName/form/data";
1332
1731
  readonly layerPagesMove: "/v1/docs/:docId/layers/:layerName/pages/move";
1333
1732
  readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
@@ -1340,6 +1739,18 @@ declare const wireTemplates: {
1340
1739
  readonly layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract";
1341
1740
  readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
1342
1741
  readonly layerDownload: "/v1/docs/:docId/layers/:layerName/download";
1742
+ readonly layerSignatures: "/v1/docs/:docId/layers/:layerName/signatures";
1743
+ readonly layerSignaturesAnalysis: "/v1/docs/:docId/layers/:layerName/signatures/analysis";
1744
+ readonly layerSignaturesPrepare: "/v1/docs/:docId/layers/:layerName/signatures/prepare";
1745
+ readonly layerSignatureComplete: "/v1/docs/:docId/layers/:layerName/signatures/:signingId/complete";
1746
+ readonly layerSignatureAbort: "/v1/docs/:docId/layers/:layerName/signatures/:signingId";
1747
+ readonly docVersions: "/v1/docs/:docId/versions";
1748
+ readonly docVersionSignatures: "/v1/docs/:docId/versions/signatures/:sha";
1749
+ readonly docVersionSignatureContents: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/contents";
1750
+ readonly docVersionSignatureDigest: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/digest/:algorithm";
1751
+ readonly docVersionAnalysis: "/v1/docs/:docId/versions/analysis/:sha";
1752
+ readonly docVersionDownload: "/v1/docs/:docId/versions/download/:sha";
1753
+ readonly docVersionRevision: "/v1/docs/:docId/versions/revisions/:sha/:index";
1343
1754
  };
1344
1755
  //#endregion
1345
1756
  //#region src/wire/resources.d.ts
@@ -1352,7 +1763,7 @@ declare const wireTemplates: {
1352
1763
  * 3. Update the route handler to call `requireResource(req, docId, '<id>', pdfBits)`
1353
1764
  * 4. CDN signer automatically considers it
1354
1765
  */
1355
- type DocResourceId = 'head' | 'manifest' | 'page-render' | 'page-render-annotated' | 'page-text' | 'page-geometry' | 'page-annotations' | 'annotations-all' | 'layout' | 'metadata' | 'actions' | 'attachments' | 'attachment-files' | 'layer-manifest' | 'layer-layout' | 'layer-metadata' | 'layer-actions' | 'layer-page-render' | 'layer-page-render-annotated' | 'layer-page-text' | 'layer-page-geometry' | 'layer-search-rects' | 'layer-search-full' | 'annotations-read' | 'layer-annotations-all' | 'layer-attachments' | 'layer-attachment-files' | 'download-current' | 'download-versioned';
1766
+ type DocResourceId = 'head' | 'manifest' | 'page-render' | 'page-render-annotated' | 'page-text' | 'page-geometry' | 'page-annotations' | 'annotations-all' | 'layout' | 'metadata' | 'actions' | 'attachments' | 'attachment-files' | 'layer-manifest' | 'layer-layout' | 'layer-metadata' | 'layer-signatures' | 'layer-signatures-analysis' | 'versions' | 'version-signatures' | 'version-analysis' | 'version-download' | 'version-revisions' | 'layer-actions' | 'layer-page-render' | 'layer-page-render-annotated' | 'layer-page-text' | 'layer-page-geometry' | 'layer-search-rects' | 'layer-search-full' | 'annotations-read' | 'layer-annotations-all' | 'layer-attachments' | 'layer-attachment-files' | 'download-current' | 'download-versioned';
1356
1767
  /**
1357
1768
  * 'origin' — unversioned URL, response can change over time. CDN must
1358
1769
  * not cache (the bytes are not immutable). Routed straight to origin
@@ -1856,5 +2267,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1856
2267
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1857
2268
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1858
2269
  //#endregion
1859
- export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceExportInputSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationFlattenInputSchema, AnnotationFlattenResultSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormSubmissionEntrySchema, FormSubmissionReceiptSchema, FormSubmissionRequestSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NamedPageEntrySchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageExtractInputSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageInsertBlankInputSchema, PageInsertInputSchema, PageInsertResultSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNameInputSchema, PageNameResultSchema, PageNetworkRenderFormatSchema, PageRemoveNameInputSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTargetRefSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfActionWireComponents, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAnnotationsAllToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAnnotationsAllToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
2270
+ export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, type AnalysisQueryInput, type AnalysisToken, AnnotationAppearanceExportInputSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationFlattenInputSchema, AnnotationFlattenResultSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BaseVersionInfoSchema, BlendModeSchema, ByteRangeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, ChangeAnalysisSchema, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, DigestAlgorithmSchema, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentProtectionSchema, DocumentSecurityStateSchema, type DocumentVersion, DocumentVersionRefSchema, DocumentVersionSchema, type DocumentVersions, DocumentVersionsSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FieldLockSpecSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormSubmissionEntrySchema, FormSubmissionReceiptSchema, FormSubmissionRequestSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerAnalysisQuery, LayerAnalysisQuerySchema, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, ModificationLevelSchema, type MutationMeta, MutationMetaSchema, NamedPageEntrySchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageExtractInputSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageInsertBlankInputSchema, PageInsertInputSchema, PageInsertResultSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNameInputSchema, PageNameResultSchema, PageNetworkRenderFormatSchema, PageRemoveNameInputSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTargetRefSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfActionWireComponents, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRevisionSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SignatureAbortResultSchema, type SignatureAppearanceBody, SignatureAppearanceBodySchema, type SignatureCompleteBody, SignatureCompleteBodySchema, SignatureCompleteResultSchema, SignatureDTOSchema, type SignaturePrepareBody, SignaturePrepareBodySchema, type SignaturePreparedWire, SignaturePreparedWireSchema, SignatureSeedValueSchema, SignatureSnapshotSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type VersionAnalysisQuery, VersionAnalysisQuerySchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, analysisQueryString, analyzeInputFromQuery, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnalysisToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAnnotationsAllToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodePrepared, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnalysisToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAnnotationsAllToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodePrepared, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, fromBase64, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, toBase64, unflatten, wirePaths, wireTemplates };
1860
2271
  //# sourceMappingURL=wire.d.ts.map