@embedpdf/engine-core 3.0.0-next.11 → 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-C1U3XUxP.d.cts → AnnotationListSnapshot-D3mFut1e.d.cts} +1323 -214
  6. package/dist/{AnnotationListSnapshot-C1U3XUxP.d.ts → AnnotationListSnapshot-D3mFut1e.d.ts} +1323 -214
  7. package/dist/{DocumentSecurityService-6rhztZlz.d.cts → DocumentSecurityService-ClTZc0zO.d.cts} +2 -2
  8. package/dist/{DocumentSecurityService-7nL9aY75.d.ts → DocumentSecurityService-_JRjqvoI.d.ts} +2 -2
  9. package/dist/{Engine-D3868xIU.d.cts → Engine-Bx0NOfmd.d.cts} +219 -11
  10. package/dist/{Engine-CWnAKccD.d.ts → Engine-DxtpCYcP.d.ts} +219 -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-Do6_4KnS.cjs → builders-Bqm8yTpi.cjs} +1483 -11
  16. package/dist/builders-Bqm8yTpi.cjs.map +1 -0
  17. package/dist/{builders-Cdz34nbF.js → builders-Dqo2X-dt.js} +1364 -12
  18. package/dist/builders-Dqo2X-dt.js.map +1 -0
  19. package/dist/conformance.cjs +1630 -107
  20. package/dist/conformance.cjs.map +1 -1
  21. package/dist/conformance.d.cts +117 -3
  22. package/dist/conformance.d.ts +117 -3
  23. package/dist/conformance.js +1627 -108
  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 +253 -5
  39. package/dist/runtime.d.ts +253 -5
  40. package/dist/runtime.js +6 -6
  41. package/dist/{schemas-XGrNVMDd.js → schemas-BLARNCgx.js} +469 -7
  42. package/dist/schemas-BLARNCgx.js.map +1 -0
  43. package/dist/{schemas-CS5iPpX5.cjs → schemas-DIqFMmrC.cjs} +672 -6
  44. package/dist/schemas-DIqFMmrC.cjs.map +1 -0
  45. package/dist/wire.cjs +250 -12
  46. package/dist/wire.cjs.map +1 -1
  47. package/dist/wire.d.cts +444 -4
  48. package/dist/wire.d.ts +444 -4
  49. package/dist/wire.js +214 -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-Cdz34nbF.js.map +0 -1
  55. package/dist/builders-Do6_4KnS.cjs.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-CS5iPpX5.cjs.map +0 -1
  59. package/dist/schemas-XGrNVMDd.js.map +0 -1
package/dist/wire.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as CaretDraftSchema, $a as AttachmentFileInfo, $i as AnnotationUpdateResult, $r as FormEffectsResult, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ao as SerializedEngineError, Ar as SearchSnippet, Bc as AnnotationFlags, Ci as FormKind, D as FileAttachmentDTOSchema, Dc as DocCapability, Dn as HighlightPatchSchema, Dr as SearchRequest, Dt as LinePatchSchema, Ei as WidgetAppearanceSchema, En as HighlightDraftSchema, Er as SearchQuery, Et as LineDraftSchema, F as StampDTOSchema, Fa as AttachmentDeleteResult, Fi as FormFieldFlags, Fn as RedactionApplyScope, G as TextDTOSchema, Gi as FormValueEntry, Gn as PageDeleteResult, Gr as FormFieldUpdateResult, Gs as PageBoxes, Hc as BlendMode, I as StampWireDraftSchema, Ia as AttachmentsCache, Ic as AnnotationRef, Ii as FormFieldOption, Jc as LineEnding, Jn as PageRotateInput, Jo as AnnotationAppearancesQuery, Jr as FormSetValueResult, Js as MetadataPatch, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as FreeTextIntent, Ki as FormFieldRef, Kn as PageDeleteInput, Kr as FormImportResult, Ks as PageLayout, Kt as SquareDTOSchema, L as StampWirePatchSchema, Lc as RevisionToken, Ln as PageFlattenInput, Lt as PolygonDTOSchema, Mn as MetadataUpdateResult, Mt as PolylineDraftSchema, Ni as FormFieldDTO, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Ol as PdfDestination, Or as SearchSlice, P as ResourceRefSchema, Pa as AttachmentCreateResult, Pc as PdfBits, Pn as RedactionApplyResult, Q as CaretDTOSchema, Qi as AnnotationMoveResult, Qn as PageMoveInput, Qt as CircleDTOSchema, Ro as PdfSaveMode, Rt as PolygonDraftSchema, Si as WidgetPlacement, Tn as HighlightDTOSchema, To as AnnotationStableId, Ts as PageTextSnapshot, Tt as LineDTOSchema, Uc as CaretIntent, Ui as ToggleFieldWidget, Uo as AnnotationAppearanceManifest, Ur as FormFieldCreateResult, Vo as AnnotationAppearanceImageOptions, W as NoteIconSchema, Wc as Color, Wn as PageInsertResult, Wr as FormFieldDeleteResult, Ws as PageListSnapshot, Xi as AnnotationCreateResult, Xn as PageMoveResult, Xo as PageState, Xr as FormEffect, Yc as LineEndings, Yr as FormWidgetLinkResult, Zc as PdfRectDifferences, Zi as AnnotationDeleteResult, Zn as PageStructureCache, _ as UnsupportedPatchSchema, _a as LayerScopePlane, _i as FormFieldDraft, _l as PdfActionNode, _t as LinkDraftSchema, a as AnnotationDTOSchema, al as CalloutLine, at as FreeTextDraftSchema, bl as PdfActionType, bn as UnderlineDraftSchema, bt as PdfLinkTargetWritableSchema, ci as FormFieldValue, cl as LinePoints, cn as StrikeoutDraftSchema, da as CacheDelta, di as FormFieldPatch, dl as PdfRect, ds as PageRenderOptions, dt as InkDraftSchema, en as CirclePatchSchema, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fa as MutationMeta, fl as PdfRotation, fs as PageRenderQuery, ft as InkPatchSchema, g as UnsupportedDraftSchema, ga as ManifestPage, gt as LinkDTOSchema, h as UnsupportedDTOSchema, ha as DocumentManifest, hl as DocumentActionsSnapshot, hn as SquigglyPatchSchema, ii as FormSubmissionReceiptSchema, il as TextAlignment, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jl as DocumentMetadata, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, kr as SearchSliceBudget, la as AnnotationListMutationMeta, ll as PdfPoint, ln as StrikeoutPatchSchema, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, na as AppearanceOutcome, ni as FormSubmissionEntrySchema, nl as StandardFont, no as EmbeddedFileRef, oi as FormSubmissionRequestSchema, ol as InkList, os as PageNetworkRenderFormat, ot as FreeTextPatchSchema, pl as PdfSize, pn as SquigglyDTOSchema, q as TextPatchSchema, qc as InkIntent, qi as FormWidgetRef, qn as PageRotateResult, qo as AnnotationAppearanceRenderOptions, qr as FormRepairResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, rl as StrikeoutIntent, rs as PageImageOptions, s as AnnotationDraftSchema, si as FormDataFormat, sn as StrikeoutDTOSchema, t as AnnotationListPageSnapshot, to as EmbeddedFileItem, u as AnnotationPatchSchema, ua as RefetchReason, ul as PdfQuad, ut as InkDTOSchema, va as LayerScopes, vi as FormFieldOptionInput, vl as PdfActionTargetRef, vs as PageGeometrySnapshot, vt as LinkPatchSchema, wi as FormSnapshot, wr as SearchMatch, xn as UnderlinePatchSchema, xt as PdfDestinationSchema, yl as PdfActionTree, yn as UnderlineDTOSchema, yt as PdfLinkTargetSchema, zc as AnnotationBorderStyle, zn as PageFlattenResult, zo as CachePins, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-C1U3XUxP.js";
2
- import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-7nL9aY75.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>;
@@ -630,6 +630,12 @@ declare const PageBoxesSchema: z.ZodType<PageBoxes>;
630
630
  */
631
631
  declare const PageLayoutSchema: z.ZodType<PageLayout>;
632
632
  declare const PageFlattenResultSchema: z.ZodType<PageFlattenResult>;
633
+ /** See `AnnotationFlattenResult`. */
634
+ declare const AnnotationFlattenResultSchema: z.ZodType<AnnotationFlattenResult>;
635
+ /** `annotations.flatten` input — see `AnnotationFlattenInput`. */
636
+ declare const AnnotationFlattenInputSchema: z.ZodType<AnnotationFlattenInput>;
637
+ /** `annotations.exportAppearance` input — see `AnnotationAppearanceExportInput`. */
638
+ declare const AnnotationAppearanceExportInputSchema: z.ZodType<AnnotationAppearanceExportInput>;
633
639
  declare const PageFlattenInputSchema: z.ZodType<PageFlattenInput>;
634
640
  declare const RedactionApplyScopeSchema: z.ZodType<RedactionApplyScope>;
635
641
  declare const RedactionApplyResultSchema: z.ZodType<RedactionApplyResult>;
@@ -638,7 +644,13 @@ declare const RedactionApplyResultSchema: z.ZodType<RedactionApplyResult>;
638
644
  * `pageObjectNumber` everywhere except the per-element `index`, which is
639
645
  * display order and intentionally not an identity. Carries geometry only.
640
646
  */
647
+ /** See `NamedPageEntry`: decoded key + what it resolves to. */
648
+ declare const NamedPageEntrySchema: z.ZodType<NamedPageEntry>;
641
649
  declare const PageListSnapshotSchema: z.ZodType<PageListSnapshot>;
650
+ /** `pages.setName` input — see `PageNameInput`. */
651
+ declare const PageNameInputSchema: z.ZodType<PageNameInput>;
652
+ /** `pages.removeName` input — see `PageRemoveNameInput`. */
653
+ declare const PageRemoveNameInputSchema: z.ZodType<PageRemoveNameInput>;
642
654
  /**
643
655
  * Page reorder input. Pages are always addressed by `pageObjectNumber`;
644
656
  * `destIndex` is the insertion point in the post-removal index space.
@@ -655,6 +667,8 @@ declare const PageStructureCacheSchema: z.ZodType<PageStructureCache>;
655
667
  * post-move order is returned so callers can swap their snapshot directly.
656
668
  */
657
669
  declare const PageMoveResultSchema: z.ZodType<PageMoveResult>;
670
+ /** Named-page mutation result — layout-shaped, see `PageNameResult`. */
671
+ declare const PageNameResultSchema: z.ZodType<PageNameResult>;
658
672
  /**
659
673
  * Page rotate input. ABSOLUTE rotation (idempotent — see `PageRotateInput`),
660
674
  * one value applied to every listed page.
@@ -739,6 +753,347 @@ declare const WeakAnnotationSessionPagesRequestSchema: z.ZodObject<{
739
753
  pageObjectNumbers: number[];
740
754
  }>;
741
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>;
742
1097
  //#endregion
743
1098
  //#region src/dto/PdfAction.schema.d.ts
744
1099
  declare const PdfActionTargetRefSchema: z.ZodType<PdfActionTargetRef>;
@@ -931,6 +1286,22 @@ interface DownloadToken {
931
1286
  docVersion: number;
932
1287
  mode: PdfSaveMode;
933
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;
934
1305
  declare const encodeDocToken: (docVersion: number) => string;
935
1306
  declare const decodeDocToken: (raw: string) => number;
936
1307
  declare const encodeContentToken: (contentVersion: number) => string;
@@ -1081,6 +1452,34 @@ declare const wirePaths: {
1081
1452
  /** Immutable BASE catalog actions (plane-scope model): the shared-URL
1082
1453
  * variant an actions-inheriting layer resolves at. */
1083
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;
1084
1483
  /** POST: rewrite the document Info dict for the layer (metadata edit). */
1085
1484
  readonly layerMetadataUpdate: (docId: string, layerName: string) => string;
1086
1485
  /**
@@ -1187,6 +1586,12 @@ declare const wirePaths: {
1187
1586
  readonly layerPageAnnotationsCreate: (docId: string, layerName: string, pageObjectNumber: number) => string;
1188
1587
  readonly layerAnnotationByKey: (docId: string, layerName: string, pageObjectNumber: number, key: string) => string;
1189
1588
  readonly layerPageAnnotationsMove: (docId: string, layerName: string, pageObjectNumber: number) => string;
1589
+ /** POST: flatten a chosen set of the page's annotations into its content
1590
+ * (a content + annotation mutation of that page). */
1591
+ readonly layerPageAnnotationsFlatten: (docId: string, layerName: string, pageObjectNumber: number) => string;
1592
+ /** POST: the chosen annotations' appearances as one single-page PDF — a
1593
+ * derived read (application/pdf, no-store), gated like pages/extract. */
1594
+ readonly layerPageAnnotationsAppearance: (docId: string, layerName: string, pageObjectNumber: number) => string;
1190
1595
  /**
1191
1596
  * GET: the reconciled form snapshot (field tree + widget joins) for the
1192
1597
  * layer's CURRENT state. Forms are document-scoped (one AcroForm per
@@ -1246,6 +1651,11 @@ declare const wirePaths: {
1246
1651
  readonly layerPagesMove: (docId: string, layerName: string) => string;
1247
1652
  readonly layerPagesRotate: (docId: string, layerName: string) => string;
1248
1653
  readonly layerPagesDelete: (docId: string, layerName: string) => string;
1654
+ /** POST: register/rename a `/Names /Pages` entry — a page-STRUCTURE
1655
+ * mutation (docVersion + layoutVersion advance; reads ride `/layout`). */
1656
+ readonly layerPagesNames: (docId: string, layerName: string) => string;
1657
+ /** POST: remove a `/Names /Pages` entry (the page stays). */
1658
+ readonly layerPagesNamesDelete: (docId: string, layerName: string) => string;
1249
1659
  readonly layerPagesFlatten: (docId: string, layerName: string) => string;
1250
1660
  /**
1251
1661
  * POST (multipart mutation envelope): copy every page of the `source`
@@ -1289,6 +1699,19 @@ declare const wirePaths: {
1289
1699
  * server's route table is pinned to them by the doc-plane registry
1290
1700
  * conformance test.
1291
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;
1292
1715
  declare const wireTemplates: {
1293
1716
  readonly docHead: "/v1/docs/:docId/head";
1294
1717
  readonly layerManifest: "/v1/docs/:docId/layers/:layerName/manifest";
@@ -1298,19 +1721,36 @@ declare const wireTemplates: {
1298
1721
  readonly layerAnnotationItemsAll: "/v1/docs/:docId/layers/:layerName/annotations/items";
1299
1722
  readonly layerAnnotationItems: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items";
1300
1723
  readonly layerAnnotationItem: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/:annotKey";
1724
+ readonly layerAnnotationItemsFlatten: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/flatten";
1725
+ readonly layerAnnotationItemsAppearance: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/appearance";
1301
1726
  readonly layerForm: "/v1/docs/:docId/layers/:layerName/form";
1302
1727
  readonly layerFormFieldValue: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/value";
1303
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";
1304
1730
  readonly layerFormData: "/v1/docs/:docId/layers/:layerName/form/data";
1305
1731
  readonly layerPagesMove: "/v1/docs/:docId/layers/:layerName/pages/move";
1306
1732
  readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
1307
1733
  readonly layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete";
1734
+ readonly layerPagesNames: "/v1/docs/:docId/layers/:layerName/pages/names";
1735
+ readonly layerPagesNamesDelete: "/v1/docs/:docId/layers/:layerName/pages/names/delete";
1308
1736
  readonly layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten";
1309
1737
  readonly layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert";
1310
1738
  readonly layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank";
1311
1739
  readonly layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract";
1312
1740
  readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
1313
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";
1314
1754
  };
1315
1755
  //#endregion
1316
1756
  //#region src/wire/resources.d.ts
@@ -1323,7 +1763,7 @@ declare const wireTemplates: {
1323
1763
  * 3. Update the route handler to call `requireResource(req, docId, '<id>', pdfBits)`
1324
1764
  * 4. CDN signer automatically considers it
1325
1765
  */
1326
- 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';
1327
1767
  /**
1328
1768
  * 'origin' — unversioned URL, response can change over time. CDN must
1329
1769
  * not cache (the bytes are not immutable). Routed straight to origin
@@ -1827,5 +2267,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1827
2267
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1828
2268
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1829
2269
  //#endregion
1830
- export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, 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, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageExtractInputSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageInsertBlankInputSchema, PageInsertInputSchema, PageInsertResultSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, 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 };
1831
2271
  //# sourceMappingURL=wire.d.ts.map