@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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as checkCapability, t as checkAnyCapability } from "./resolver-CHG4waXL.js";
2
- import { $ as PageListSnapshotSchema, $n as AnnotationBorderStyleSchema, $t as TextDTOSchema, A as FormFieldUpdateResultSchema, An as InkDraftSchema, Ar as CalloutLineSchema, At as FormFieldOptionSchema, B as NamedPageEntrySchema, Bn as FileAttachmentPatchSchema, Bt as ANNOTATION_KINDS, C as DocumentMetadataSchema, Cn as LinkPatchSchema, Cr as PdfActionTreeSchema, Ct as WeakAnnotationSessionPagesRequestSchema, D as FormEffectsResultSchema, Dn as LineDraftSchema, Dr as PdfFieldActionsSchema, Dt as FormFieldDraftSchema, E as FormEffectSchema, En as LineDTOSchema, Er as PdfAnnotationActionsSchema, Et as FormFieldDTOSchema, F as LayerScopesSchema, Fn as FreeTextDTOSchema, Fr as PdfRectSchema, Ft as FormSnapshotSchema, G as PageExtractInputSchema, Gn as EmbeddedFileRefSchema, Gt as WidgetAppearanceSchema, H as PageBoxesSchema, Hn as WireAttachmentFileSchema, Ht as AnnotationDraftSchema, I as ManifestPageSchema, In as FreeTextDraftSchema, Ir as PdfRotationSchema, It as FormValueEntrySchema, J as PageGeometrySnapshotSchema, Jn as CirclePatchSchema, Jt as UnsupportedPatchSchema, K as PageFlattenInputSchema, Kn as CircleDTOSchema, Kt as UnsupportedDTOSchema, L as MetadataPatchSchema, Ln as FreeTextPatchSchema, Lr as PdfSizeSchema, Lt as FormWidgetRefSchema, M as FormRepairResultSchema, Mn as HighlightDTOSchema, Mr as LinePointsSchema, Mt as FormFieldRefSchema, N as FormSetValueResultSchema, Nn as HighlightDraftSchema, Nr as PdfPointSchema, Nt as FormFieldValueSchema, O as FormFieldCreateResultSchema, On as LinePatchSchema, Or as PdfPageActionsSchema, Ot as FormFieldFlagsSchema, P as FormWidgetLinkResultSchema, Pn as HighlightPatchSchema, Pr as PdfQuadSchema, Pt as FormKindSchema, Q as PageLayoutSchema, Qn as AnnotationBaseShape, Qt as NoteIconSchema, R as MetadataUpdateResultSchema, Rn as FileAttachmentDTOSchema, Rt as ToggleFieldWidgetSchema, S as DocumentManifestSchema, Sn as LinkDraftSchema, Sr as PdfActionTargetRefSchema, St as SearchSnippetSchema, T as EngineErrorPayloadSchema, Tn as PdfLinkTargetWritableSchema, Tr as PdfActionWireComponents, Tt as FormDataFormatSchema, U as PageDeleteInputSchema, Un as AttachmentFileInfoSchema, Ut as AnnotationPatchSchema, V as OpenDocumentResponseSchema, Vn as FileAttachmentWireDraftSchema, Vt as AnnotationDTOSchema, W as PageDeleteResultSchema, Wn as EmbeddedFileItemSchema, Wt as KIND_BY_SUBTYPE, X as PageInsertInputSchema, Xn as CaretDraftSchema, Xt as UnderlineDraftSchema, Y as PageInsertBlankInputSchema, Yn as CaretDTOSchema, Yt as UnderlineDTOSchema, Z as PageInsertResultSchema, Zn as CaretPatchSchema, Zt as UnderlinePatchSchema, _ as AttachmentDeleteResultSchema, _n as PolylinePatchSchema, _r as StandardFontSchema, _t as SearchMatchSchema, a as AnnotationAppearancesQuerySchema, an as ResourceRefSchema, ar as AnnotationStableIdSchema, at as PageRemoveNameInputSchema, b as CachePinsSchema, bn as PolygonPatchSchema, br as DocumentActionsSnapshotSchema, bt as SearchRequestSchema, c as AnnotationFlattenInputSchema, cn as StampWirePatchSchema, cr as ColorSchema, ct as PageRotateInputSchema, d as AnnotationListPageSnapshotSchema, dn as SquigglyPatchSchema, dr as LineEndingSchema, dt as PageStructureCacheSchema, en as TextDraftSchema, er as AnnotationDraftBaseShape, et as PageMoveInputSchema, f as AnnotationListSnapshotAllPagesSchema, fn as SquareDTOSchema, fr as LineEndingsSchema, ft as PageTextSnapshotSchema, g as AttachmentCreateResultSchema, gn as PolylineDraftSchema, gr as RevisionTokenSchema, gt as RefetchReasonSchema, h as AppearanceOutcomeSchema, hn as PolylineDTOSchema, hr as RectSchema, ht as RedactionApplyScopeSchema, i as AnnotationAppearanceManifestSchema, in as StrikeoutPatchSchema, ir as AnnotationRefSchema, it as PageNetworkRenderFormatSchema, j as FormImportResultSchema, jn as InkPatchSchema, jr as InkListSchema, jt as FormFieldPatchSchema, k as FormFieldDeleteResultSchema, kn as InkDTOSchema, kr as PdfDestinationSchema, kt as FormFieldOptionInputSchema, l as AnnotationFlattenResultSchema, ln as SquigglyDTOSchema, lr as FreeTextIntentSchema, lt as PageRotateResultSchema, m as AnnotationUpdateResultSchema, mn as SquarePatchSchema, mr as PointSchema, mt as RedactionApplyResultSchema, n as AccessResponseSchema, nn as StrikeoutDTOSchema, nr as AnnotationFlagsSchema, nt as PageNameInputSchema, o as AnnotationCreateResultSchema, on as StampDTOSchema, or as BlendModeSchema, ot as PageRenderAnnotatedQuerySchema, p as AnnotationMoveResultSchema, pn as SquareDraftSchema, pr as PdfRectDifferencesSchema, pt as PdfSaveModeSchema, q as PageFlattenResultSchema, qn as CircleDraftSchema, qt as UnsupportedDraftSchema, r as AnnotationAppearanceExportInputSchema, rn as StrikeoutDraftSchema, rr as AnnotationPatchBaseShape, rt as PageNameResultSchema, s as AnnotationDeleteResultSchema, sn as StampWireDraftSchema, sr as CaretIntentSchema, st as PageRenderQuerySchema, t as AccessRequestSchema, tn as TextPatchSchema, tr as AnnotationFlagsPartialSchema, tt as PageMoveResultSchema, u as AnnotationListMutationMetaSchema, un as SquigglyDraftSchema, ur as InkIntentSchema, ut as PageStateSchema, v as AttachmentsCacheSchema, vn as PolygonDTOSchema, vr as StrikeoutIntentSchema, vt as SearchModeSchema, w as DocumentSecurityStateSchema, wn as PdfLinkTargetSchema, wr as PdfActionTypeSchema, wt as WeakAnnotationSessionResponseSchema, x as DocumentHeadSchema, xn as LinkDTOSchema, xr as PdfActionNodeSchema, xt as SearchSliceSchema, y as CacheDeltaSchema, yn as PolygonDraftSchema, yr as TextAlignmentSchema, yt as SearchQuerySchema, z as MutationMetaSchema, zn as FileAttachmentIconSchema, zt as WidgetPlacementSchema } from "./schemas-DOyVEPk7.js";
1
+ import { n as checkCapability, t as checkAnyCapability } from "./resolver-inAVzsWt.js";
2
+ import { $ as PageBoxesSchema, $n as LineDTOSchema, $r as PdfAnnotationActionsSchema, $t as FormFieldDTOSchema, A as DocumentVersionRefSchema, An as StrikeoutDraftSchema, Ar as AnnotationPatchBaseShape, At as SearchModeSchema, B as FormImportResultSchema, Bn as SquareDraftSchema, Br as PdfRectDifferencesSchema, Bt as SignaturePrepareBodySchema, C as ChangeAnalysisSchema, Cn as UnderlineDraftSchema, Cr as CaretDraftSchema, Ct as PageTextSnapshotSchema, D as DocumentMetadataSchema, Dn as TextDraftSchema, Dr as AnnotationDraftBaseShape, Dt as RedactionApplyScopeSchema, E as DocumentManifestSchema, En as TextDTOSchema, Er as AnnotationBorderStyleSchema, Et as RedactionApplyResultSchema, F as FormEffectSchema, Fn as StampWirePatchSchema, Fr as ColorSchema, Ft as SignatureAbortResultSchema, G as LayerScopesSchema, Gn as PolygonDTOSchema, Gr as StrikeoutIntentSchema, Gt as WeakAnnotationSessionPagesRequestSchema, H as FormSetValueResultSchema, Hn as PolylineDTOSchema, Hr as RectSchema, Ht as SignatureSeedValueSchema, I as FormEffectsResultSchema, In as SquigglyDTOSchema, Ir as FreeTextIntentSchema, It as SignatureAppearanceBodySchema, J as MetadataUpdateResultSchema, Jn as LinkDTOSchema, Jr as PdfActionNodeSchema, Jt as decodePrepared, K as ManifestPageSchema, Kn as PolygonDraftSchema, Kr as TextAlignmentSchema, Kt as WeakAnnotationSessionResponseSchema, L as FormFieldCreateResultSchema, Ln as SquigglyDraftSchema, Lr as InkIntentSchema, Lt as SignatureCompleteBodySchema, M as DocumentVersionsSchema, Mn as ResourceRefSchema, Mr as AnnotationStableIdSchema, Mt as SearchRequestSchema, N as EngineErrorPayloadSchema, Nn as StampDTOSchema, Nr as BlendModeSchema, Nt as SearchSliceSchema, O as DocumentProtectionSchema, On as TextPatchSchema, Or as AnnotationFlagsPartialSchema, Ot as RefetchReasonSchema, P as FieldLockSpecSchema, Pn as StampWireDraftSchema, Pr as CaretIntentSchema, Pt as SearchSnippetSchema, Q as OpenDocumentResponseSchema, Qn as PdfLinkTargetWritableSchema, Qr as PdfActionWireComponents, Qt as FormDataFormatSchema, R as FormFieldDeleteResultSchema, Rn as SquigglyPatchSchema, Rr as LineEndingSchema, Rt as SignatureCompleteResultSchema, S as CachePinsSchema, Sn as UnderlineDTOSchema, Sr as CaretDTOSchema, St as PageStructureCacheSchema, T as DocumentHeadSchema, Tn as NoteIconSchema, Tr as AnnotationBaseShape, Tt as PdfSaveModeSchema, U as FormWidgetLinkResultSchema, Un as PolylineDraftSchema, Ur as RevisionTokenSchema, Ut as SignatureSnapshotSchema, V as FormRepairResultSchema, Vn as SquarePatchSchema, Vr as PointSchema, Vt as SignaturePreparedWireSchema, W as LayerAnalysisQuerySchema, Wn as PolylinePatchSchema, Wr as StandardFontSchema, Wt as VersionAnalysisQuerySchema, X as MutationMetaSchema, Xn as LinkPatchSchema, Xr as PdfActionTreeSchema, Xt as fromBase64, Y as ModificationLevelSchema, Yn as LinkDraftSchema, Yr as PdfActionTargetRefSchema, Yt as encodePrepared, Z as NamedPageEntrySchema, Zn as PdfLinkTargetSchema, Zr as PdfActionTypeSchema, Zt as toBase64, _ as AttachmentDeleteResultSchema, _n as KIND_BY_SUBTYPE, _r as EmbeddedFileItemSchema, _t as PageRenderAnnotatedQuerySchema, a as AnnotationAppearancesQuerySchema, ai as LinePointsSchema, an as FormFieldRefSchema, ar as HighlightDTOSchema, at as PageGeometrySnapshotSchema, b as ByteRangeSchema, bn as UnsupportedDraftSchema, br as CircleDraftSchema, bt as PageRotateResultSchema, c as AnnotationFlattenInputSchema, ci as PdfRectSchema, cn as FormSnapshotSchema, cr as FreeTextDTOSchema, ct as PageInsertResultSchema, d as AnnotationListPageSnapshotSchema, dn as ToggleFieldWidgetSchema, dr as FileAttachmentDTOSchema, dt as PageMoveInputSchema, ei as PdfFieldActionsSchema, en as FormFieldDraftSchema, er as LineDraftSchema, et as PageDeleteInputSchema, f as AnnotationListSnapshotAllPagesSchema, fn as WidgetPlacementSchema, fr as FileAttachmentIconSchema, ft as PageMoveResultSchema, g as AttachmentCreateResultSchema, gn as AnnotationPatchSchema, gr as AttachmentFileInfoSchema, gt as PageRemoveNameInputSchema, h as AppearanceOutcomeSchema, hn as AnnotationDraftSchema, hr as WireAttachmentFileSchema, ht as PageNetworkRenderFormatSchema, i as AnnotationAppearanceManifestSchema, ii as InkListSchema, in as FormFieldPatchSchema, ir as InkPatchSchema, it as PageFlattenResultSchema, j as DocumentVersionSchema, jn as StrikeoutPatchSchema, jr as AnnotationRefSchema, jt as SearchQuerySchema, k as DocumentSecurityStateSchema, kn as StrikeoutDTOSchema, kr as AnnotationFlagsSchema, kt as SearchMatchSchema, l as AnnotationFlattenResultSchema, li as PdfRotationSchema, ln as FormValueEntrySchema, lr as FreeTextDraftSchema, lt as PageLayoutSchema, m as AnnotationUpdateResultSchema, mn as AnnotationDTOSchema, mr as FileAttachmentWireDraftSchema, mt as PageNameResultSchema, n as AccessResponseSchema, ni as PdfDestinationSchema, nn as FormFieldOptionInputSchema, nr as InkDTOSchema, nt as PageExtractInputSchema, o as AnnotationCreateResultSchema, oi as PdfPointSchema, on as FormFieldValueSchema, or as HighlightDraftSchema, ot as PageInsertBlankInputSchema, p as AnnotationMoveResultSchema, pn as ANNOTATION_KINDS, pr as FileAttachmentPatchSchema, pt as PageNameInputSchema, q as MetadataPatchSchema, qn as PolygonPatchSchema, qr as DocumentActionsSnapshotSchema, qt as analyzeInputFromQuery, r as AnnotationAppearanceExportInputSchema, ri as CalloutLineSchema, rn as FormFieldOptionSchema, rr as InkDraftSchema, rt as PageFlattenInputSchema, s as AnnotationDeleteResultSchema, si as PdfQuadSchema, sn as FormKindSchema, sr as HighlightPatchSchema, st as PageInsertInputSchema, t as AccessRequestSchema, ti as PdfPageActionsSchema, tn as FormFieldFlagsSchema, tr as LinePatchSchema, tt as PageDeleteResultSchema, u as AnnotationListMutationMetaSchema, ui as PdfSizeSchema, un as FormWidgetRefSchema, ur as FreeTextPatchSchema, ut as PageListSnapshotSchema, v as AttachmentsCacheSchema, vn as WidgetAppearanceSchema, vr as EmbeddedFileRefSchema, vt as PageRenderQuerySchema, w as DigestAlgorithmSchema, wn as UnderlinePatchSchema, wr as CaretPatchSchema, wt as PdfRevisionSchema, x as CacheDeltaSchema, xn as UnsupportedPatchSchema, xr as CirclePatchSchema, xt as PageStateSchema, y as BaseVersionInfoSchema, yn as UnsupportedDTOSchema, yr as CircleDTOSchema, yt as PageRotateInputSchema, z as FormFieldUpdateResultSchema, zn as SquareDTOSchema, zr as LineEndingsSchema, zt as SignatureDTOSchema } from "./schemas-BLARNCgx.js";
3
3
  import { z } from "zod";
4
4
  //#region src/forms/submission.ts
5
5
  const FormSubmissionEntrySchema = z.object({
@@ -116,6 +116,19 @@ const AnnotationTokenSchema = { fields: ["annotationVersion"] };
116
116
  const AnnotationsAllTokenSchema = { fields: ["annotationsVersion"] };
117
117
  const ActionsTokenSchema = { fields: ["actionsVersion"] };
118
118
  const AttachmentsTokenSchema = { fields: ["attachmentsVersion"] };
119
+ /**
120
+ * Layer signature analysis: the working copy judged against the base,
121
+ * pinned by `docVersion`; `since.signature` XOR `since.revision`; `level`
122
+ * only in exploratory mode.
123
+ */
124
+ const AnalysisTokenSchema = { fields: [
125
+ "docVersion",
126
+ "since.signature",
127
+ "since.revision",
128
+ "level",
129
+ "policy",
130
+ "detail"
131
+ ] };
119
132
  const DownloadTokenSchema = {
120
133
  fields: ["docVersion", "mode"],
121
134
  maxLength: 128
@@ -199,6 +212,46 @@ const AnnotationAppearancesRenderTokenSchema = {
199
212
  };
200
213
  //#endregion
201
214
  //#region src/wire/tokens.ts
215
+ const encodeAnalysisToken = (input) => encodeToken(AnalysisTokenSchema, {
216
+ docVersion: input.docVersion,
217
+ "since.signature": "signatureIndex" in input.since ? input.since.signatureIndex : void 0,
218
+ "since.revision": "revisionIndex" in input.since ? input.since.revisionIndex : void 0,
219
+ level: input.exploratoryLevel,
220
+ policy: input.policyVersion ?? 4,
221
+ detail: input.detail
222
+ });
223
+ const decodeAnalysisToken = (raw) => {
224
+ const t = decodeToken(AnalysisTokenSchema, raw);
225
+ const sinceSignature = t["since.signature"];
226
+ const sinceRevision = t["since.revision"];
227
+ if (sinceSignature === void 0 === (sinceRevision === void 0)) throw new Error("analysis token needs exactly one of \"since.signature\" / \"since.revision\"");
228
+ return {
229
+ docVersion: decodePositiveInteger(t.docVersion, "docVersion"),
230
+ since: sinceSignature !== void 0 ? { signatureIndex: decodeNonNegativeInteger(sinceSignature, "since.signature") } : { revisionIndex: decodeNonNegativeInteger(sinceRevision, "since.revision") },
231
+ ...t.level !== void 0 ? { exploratoryLevel: decodeModificationLevel(t.level) } : {},
232
+ ...t.policy !== void 0 ? { policyVersion: decodePositiveInteger(t.policy, "policy") } : {},
233
+ ...t.detail !== void 0 ? { detail: decodeDetail(t.detail) } : {}
234
+ };
235
+ };
236
+ function decodeDetail(raw) {
237
+ if (raw !== "summary" && raw !== "full") throw new Error("token field \"detail\" must be summary|full");
238
+ return raw;
239
+ }
240
+ const MODIFICATION_LEVELS = [
241
+ "none",
242
+ "lta",
243
+ "fill",
244
+ "annotate"
245
+ ];
246
+ function decodeModificationLevel(raw) {
247
+ if (!MODIFICATION_LEVELS.includes(raw)) throw new Error(`token field "level" must be one of ${MODIFICATION_LEVELS.join("|")}`);
248
+ return raw;
249
+ }
250
+ function decodeNonNegativeInteger(raw, field) {
251
+ if (raw === void 0) throw new Error(`token is missing "${field}"`);
252
+ if (!/^(0|[1-9][0-9]*)$/.test(raw)) throw new Error(`token field "${field}" must be a non-negative integer`);
253
+ return Number(raw);
254
+ }
202
255
  const encodeDocToken = (docVersion) => encodeToken(DocTokenSchema, { docVersion });
203
256
  const decodeDocToken = (raw) => decodePositiveInteger(decodeToken(DocTokenSchema, raw).docVersion, "docVersion");
204
257
  const encodeContentToken = (contentVersion) => encodeToken(ContentTokenSchema, { contentVersion });
@@ -471,6 +524,34 @@ const wirePaths = {
471
524
  /** Immutable BASE catalog actions (plane-scope model): the shared-URL
472
525
  * variant an actions-inheriting layer resolves at. */
473
526
  docActions: (docId, actionsVersion) => `/v1/docs/${encodeURIComponent(docId)}/actions@${encodeActionsToken(actionsVersion)}`,
527
+ /** Immutable layer signature snapshot (base signatures + the layer's fields + protection). */
528
+ layerSignatures: (docId, layerName, docVersion) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures@${encodeDocToken(docVersion)}`,
529
+ layerSignaturesCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures`,
530
+ /** Immutable: the layer's working copy judged against the base, pinned by `docVersion`. */
531
+ layerSignaturesAnalysis: (docId, layerName, token) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/analysis@${encodeAnalysisToken(token)}`,
532
+ layerSignaturesAnalysisCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/analysis`,
533
+ /** POST (multipart envelope): author and seal a signing candidate. */
534
+ layerSignaturesPrepare: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/prepare`,
535
+ /** POST (JSON): install the CMS and publish the sealed bytes as the next base version. */
536
+ layerSignatureComplete: (docId, layerName, signingId) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/${encodeURIComponent(signingId)}/complete`,
537
+ /** DELETE: discard a pending signing. */
538
+ layerSignatureAbort: (docId, layerName, signingId) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/${encodeURIComponent(signingId)}`,
539
+ /** The document's base versions, oldest first (grows; never cached). */
540
+ docVersions: (docId) => `/v1/docs/${encodeURIComponent(docId)}/versions`,
541
+ /** Immutable: the signature snapshot of one base version. */
542
+ docVersionSignatures: (docId, sha256) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}`,
543
+ /** Immutable: a signed field's DER `/Contents` in one base version (`application/pkcs7-signature`). */
544
+ docVersionSignatureContents: (docId, sha256, fieldName) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}/${encodeTokenText(fieldName)}/contents`,
545
+ /** Immutable: the digest of a signed field's `/ByteRange` in one base version. */
546
+ docVersionSignatureDigest: (docId, sha256, fieldName, algorithm) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}/${encodeTokenText(fieldName)}/digest/${algorithm}`,
547
+ /** Immutable: history between two revisions of one base version. */
548
+ docVersionAnalysis: (docId, sha256, query) => `/v1/docs/${encodeURIComponent(docId)}/versions/analysis/${sha256}?${analysisQueryString(query)}`,
549
+ /** Immutable: the bytes of one base version. */
550
+ docVersionDownload: (docId, sha256) => `/v1/docs/${encodeURIComponent(docId)}/versions/download/${sha256}`,
551
+ /** Immutable: the byte prefix `[0, end)` of revision `index` of one base version. */
552
+ docVersionRevision: (docId, sha256, index) => `/v1/docs/${encodeURIComponent(docId)}/versions/revisions/${sha256}/${index}`,
553
+ /** POST (multipart envelope): draw a PDF page into an unsigned signature field's widgets. */
554
+ layerFormFieldSignatureAppearance: (docId, layerName, fieldKey) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/form/fields/${encodeURIComponent(fieldKey)}/signature-appearance`,
474
555
  /** POST: rewrite the document Info dict for the layer (metadata edit). */
475
556
  layerMetadataUpdate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/metadata`,
476
557
  /**
@@ -681,15 +762,16 @@ const wirePaths = {
681
762
  */
682
763
  docWarm: "/v1/warm"
683
764
  };
684
- /**
685
- * Fastify-style templates for the PLAIN (unversioned) doc-plane routes —
686
- * the backend-callable subset that the `@cloudpdf/contract` contract
687
- * documents. The immutable `@{version}` variants above remain viewer
688
- * protocol and are deliberately absent. These templates are the single
689
- * statement of those paths: the contract package imports them, and the
690
- * server's route table is pinned to them by the doc-plane registry
691
- * conformance test.
692
- */
765
+ function analysisQueryString(query) {
766
+ const params = new URLSearchParams();
767
+ if ("signatureIndex" in query.since) params.set("since.signature", String(query.since.signatureIndex));
768
+ else params.set("since.revision", String(query.since.revisionIndex));
769
+ if (query.until !== void 0) params.set("until", String(query.until));
770
+ if (query.exploratoryLevel !== void 0) params.set("level", query.exploratoryLevel);
771
+ if (query.detail !== void 0) params.set("detail", query.detail);
772
+ params.set("policy", String(4));
773
+ return params.toString();
774
+ }
693
775
  const wireTemplates = {
694
776
  docHead: "/v1/docs/:docId/head",
695
777
  layerManifest: "/v1/docs/:docId/layers/:layerName/manifest",
@@ -704,6 +786,7 @@ const wireTemplates = {
704
786
  layerForm: "/v1/docs/:docId/layers/:layerName/form",
705
787
  layerFormFieldValue: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/value",
706
788
  layerFormFieldReset: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/reset",
789
+ layerFormFieldSignatureAppearance: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/signature-appearance",
707
790
  layerFormData: "/v1/docs/:docId/layers/:layerName/form/data",
708
791
  layerPagesMove: "/v1/docs/:docId/layers/:layerName/pages/move",
709
792
  layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate",
@@ -715,7 +798,19 @@ const wireTemplates = {
715
798
  layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank",
716
799
  layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract",
717
800
  layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply",
718
- layerDownload: "/v1/docs/:docId/layers/:layerName/download"
801
+ layerDownload: "/v1/docs/:docId/layers/:layerName/download",
802
+ layerSignatures: "/v1/docs/:docId/layers/:layerName/signatures",
803
+ layerSignaturesAnalysis: "/v1/docs/:docId/layers/:layerName/signatures/analysis",
804
+ layerSignaturesPrepare: "/v1/docs/:docId/layers/:layerName/signatures/prepare",
805
+ layerSignatureComplete: "/v1/docs/:docId/layers/:layerName/signatures/:signingId/complete",
806
+ layerSignatureAbort: "/v1/docs/:docId/layers/:layerName/signatures/:signingId",
807
+ docVersions: "/v1/docs/:docId/versions",
808
+ docVersionSignatures: "/v1/docs/:docId/versions/signatures/:sha",
809
+ docVersionSignatureContents: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/contents",
810
+ docVersionSignatureDigest: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/digest/:algorithm",
811
+ docVersionAnalysis: "/v1/docs/:docId/versions/analysis/:sha",
812
+ docVersionDownload: "/v1/docs/:docId/versions/download/:sha",
813
+ docVersionRevision: "/v1/docs/:docId/versions/revisions/:sha/:index"
719
814
  };
720
815
  //#endregion
721
816
  //#region src/wire/resources.ts
@@ -1102,6 +1197,97 @@ const DOC_RESOURCES = {
1102
1197
  },
1103
1198
  routeKind: "versioned-read",
1104
1199
  cdnCacheable: true
1200
+ },
1201
+ "layer-signatures": {
1202
+ id: "layer-signatures",
1203
+ pathPattern: "/v1/docs/{docId}/layers/{layerName}/signatures@*",
1204
+ resolvePathPattern: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures@*`,
1205
+ pathPrefix: "/v1/docs/{docId}/layers/{layerName}/signatures@",
1206
+ resolvePathPrefix: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures@`,
1207
+ requirement: {
1208
+ kind: "single",
1209
+ capability: "doc.forms.read"
1210
+ },
1211
+ routeKind: "versioned-read",
1212
+ cdnCacheable: true
1213
+ },
1214
+ "layer-signatures-analysis": {
1215
+ id: "layer-signatures-analysis",
1216
+ pathPattern: "/v1/docs/{docId}/layers/{layerName}/signatures/analysis@*",
1217
+ resolvePathPattern: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures/analysis@*`,
1218
+ pathPrefix: "/v1/docs/{docId}/layers/{layerName}/signatures/analysis@",
1219
+ resolvePathPrefix: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures/analysis@`,
1220
+ requirement: {
1221
+ kind: "single",
1222
+ capability: "doc.forms.read"
1223
+ },
1224
+ routeKind: "versioned-read",
1225
+ cdnCacheable: true
1226
+ },
1227
+ versions: {
1228
+ id: "versions",
1229
+ pathPattern: "/v1/docs/{docId}/versions",
1230
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions`,
1231
+ pathPrefix: "/v1/docs/{docId}/versions",
1232
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions`,
1233
+ requirement: {
1234
+ kind: "single",
1235
+ capability: "doc.open"
1236
+ },
1237
+ routeKind: "origin",
1238
+ cdnCacheable: false
1239
+ },
1240
+ "version-signatures": {
1241
+ id: "version-signatures",
1242
+ pathPattern: "/v1/docs/{docId}/versions/signatures/*",
1243
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/signatures/*`,
1244
+ pathPrefix: "/v1/docs/{docId}/versions/signatures/",
1245
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/signatures/`,
1246
+ requirement: {
1247
+ kind: "single",
1248
+ capability: "doc.forms.read"
1249
+ },
1250
+ routeKind: "versioned-read",
1251
+ cdnCacheable: true
1252
+ },
1253
+ "version-analysis": {
1254
+ id: "version-analysis",
1255
+ pathPattern: "/v1/docs/{docId}/versions/analysis/*",
1256
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/analysis/*`,
1257
+ pathPrefix: "/v1/docs/{docId}/versions/analysis/",
1258
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/analysis/`,
1259
+ requirement: {
1260
+ kind: "single",
1261
+ capability: "doc.forms.read"
1262
+ },
1263
+ routeKind: "versioned-read",
1264
+ cdnCacheable: true
1265
+ },
1266
+ "version-download": {
1267
+ id: "version-download",
1268
+ pathPattern: "/v1/docs/{docId}/versions/download/*",
1269
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/download/*`,
1270
+ pathPrefix: "/v1/docs/{docId}/versions/download/",
1271
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/download/`,
1272
+ requirement: {
1273
+ kind: "single",
1274
+ capability: "doc.download"
1275
+ },
1276
+ routeKind: "versioned-read",
1277
+ cdnCacheable: true
1278
+ },
1279
+ "version-revisions": {
1280
+ id: "version-revisions",
1281
+ pathPattern: "/v1/docs/{docId}/versions/revisions/*",
1282
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/revisions/*`,
1283
+ pathPrefix: "/v1/docs/{docId}/versions/revisions/",
1284
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/revisions/`,
1285
+ requirement: {
1286
+ kind: "single",
1287
+ capability: "doc.download"
1288
+ },
1289
+ routeKind: "versioned-read",
1290
+ cdnCacheable: true
1105
1291
  }
1106
1292
  };
1107
1293
  /**
@@ -1433,6 +1619,6 @@ function annotationRenderOptionsFromImageOptions(options) {
1433
1619
  };
1434
1620
  }
1435
1621
  //#endregion
1436
- export { ANNOTATION_KINDS, AccessRequestSchema, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceExportInputSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationFlattenInputSchema, AnnotationFlattenResultSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, DocTokenSchema, DocumentActionsSnapshotSchema, DocumentHeadSchema, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, 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, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, MutationMetaSchema, NamedPageEntrySchema, NoteIconSchema, 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, RenderTokenSchema, ResourceRefSchema, RevisionTokenSchema, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, WeakAnnotationSessionPagesRequestSchema, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, 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 };
1622
+ export { ANNOTATION_KINDS, AccessRequestSchema, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceExportInputSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationFlattenInputSchema, AnnotationFlattenResultSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BaseVersionInfoSchema, BlendModeSchema, ByteRangeSchema, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, ChangeAnalysisSchema, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, DigestAlgorithmSchema, DocTokenSchema, DocumentActionsSnapshotSchema, DocumentHeadSchema, DocumentManifestSchema, DocumentMetadataSchema, DocumentProtectionSchema, DocumentSecurityStateSchema, DocumentVersionRefSchema, DocumentVersionSchema, DocumentVersionsSchema, 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, LayerAnalysisQuerySchema, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, ModificationLevelSchema, MutationMetaSchema, NamedPageEntrySchema, NoteIconSchema, 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, RenderTokenSchema, ResourceRefSchema, RevisionTokenSchema, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, SearchTokenSchema, SignatureAbortResultSchema, SignatureAppearanceBodySchema, SignatureCompleteBodySchema, SignatureCompleteResultSchema, SignatureDTOSchema, SignaturePrepareBodySchema, SignaturePreparedWireSchema, SignatureSeedValueSchema, SignatureSnapshotSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, VersionAnalysisQuerySchema, WeakAnnotationSessionPagesRequestSchema, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, 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 };
1437
1623
 
1438
1624
  //# sourceMappingURL=wire.js.map