@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.js CHANGED
@@ -1,5 +1,5 @@
1
- import { n as checkCapability, t as checkAnyCapability } from "./resolver-CHG4waXL.js";
2
- import { $ as PageRenderAnnotatedQuerySchema, $n as BlendModeSchema, $t as StampDTOSchema, A as FormSetValueResultSchema, An as FreeTextPatchSchema, Ar as PdfSizeSchema, At as FormWidgetRefSchema, B as PageDeleteResultSchema, Bn as CircleDraftSchema, Bt as UnsupportedDraftSchema, C as FormEffectSchema, Cn as InkDraftSchema, Cr as CalloutLineSchema, Ct as FormFieldOptionSchema, D as FormFieldUpdateResultSchema, Dn as HighlightPatchSchema, Dr as PdfQuadSchema, Dt as FormKindSchema, E as FormFieldDeleteResultSchema, En as HighlightDraftSchema, Er as PdfPointSchema, Et as FormFieldValueSchema, F as MetadataUpdateResultSchema, Fn as WireAttachmentFileSchema, Ft as AnnotationDraftSchema, G as PageInsertBlankInputSchema, Gn as AnnotationBaseShape, Gt as NoteIconSchema, H as PageFlattenInputSchema, Hn as CaretDTOSchema, Ht as UnderlineDTOSchema, I as MutationMetaSchema, In as AttachmentFileInfoSchema, It as AnnotationPatchSchema, J as PageLayoutSchema, Jn as AnnotationFlagsPartialSchema, Jt as TextPatchSchema, K as PageInsertInputSchema, Kn as AnnotationBorderStyleSchema, Kt as TextDTOSchema, L as OpenDocumentResponseSchema, Ln as EmbeddedFileItemSchema, Lt as KIND_BY_SUBTYPE, M as LayerScopesSchema, Mn as FileAttachmentIconSchema, Mt as WidgetPlacementSchema, N as ManifestPageSchema, Nn as FileAttachmentPatchSchema, Nt as ANNOTATION_KINDS, O as FormImportResultSchema, On as FreeTextDTOSchema, Or as PdfRectSchema, Ot as FormSnapshotSchema, P as MetadataPatchSchema, Pn as FileAttachmentWireDraftSchema, Pt as AnnotationDTOSchema, Q as PageNetworkRenderFormatSchema, Qn as AnnotationStableIdSchema, Qt as ResourceRefSchema, R as PageBoxesSchema, Rn as EmbeddedFileRefSchema, Rt as WidgetAppearanceSchema, S as EngineErrorPayloadSchema, Sn as InkDTOSchema, Sr as PdfDestinationSchema, St as FormFieldOptionInputSchema, T as FormFieldCreateResultSchema, Tn as HighlightDTOSchema, Tr as LinePointsSchema, Tt as FormFieldRefSchema, U as PageFlattenResultSchema, Un as CaretDraftSchema, Ut as UnderlineDraftSchema, V as PageExtractInputSchema, Vn as CirclePatchSchema, Vt as UnsupportedPatchSchema, W as PageGeometrySnapshotSchema, Wn as CaretPatchSchema, Wt as UnderlinePatchSchema, X as PageMoveInputSchema, Xn as AnnotationPatchBaseShape, Xt as StrikeoutDraftSchema, Y as PageListSnapshotSchema, Yn as AnnotationFlagsSchema, Yt as StrikeoutDTOSchema, Z as PageMoveResultSchema, Zn as AnnotationRefSchema, Zt as StrikeoutPatchSchema, _ as CachePinsSchema, _n as PdfLinkTargetSchema, _r as PdfActionTypeSchema, _t as WeakAnnotationSessionResponseSchema, a as AnnotationCreateResultSchema, an as SquareDTOSchema, ar as LineEndingsSchema, at as PageTextSnapshotSchema, b as DocumentMetadataSchema, bn as LineDraftSchema, br as PdfFieldActionsSchema, bt as FormFieldDraftSchema, c as AnnotationListPageSnapshotSchema, cn as PolylineDTOSchema, cr as RectSchema, ct as RedactionApplyScopeSchema, d as AnnotationUpdateResultSchema, dn as PolygonDTOSchema, dr as StrikeoutIntentSchema, dt as SearchModeSchema, en as StampWireDraftSchema, er as CaretIntentSchema, et as PageRenderQuerySchema, f as AppearanceOutcomeSchema, fn as PolygonDraftSchema, fr as TextAlignmentSchema, ft as SearchQuerySchema, g as CacheDeltaSchema, gn as LinkPatchSchema, gr as PdfActionTreeSchema, gt as WeakAnnotationSessionPagesRequestSchema, h as AttachmentsCacheSchema, hn as LinkDraftSchema, hr as PdfActionTargetRefSchema, ht as SearchSnippetSchema, i as AnnotationAppearancesQuerySchema, in as SquigglyPatchSchema, ir as LineEndingSchema, it as PageStructureCacheSchema, j as FormWidgetLinkResultSchema, jn as FileAttachmentDTOSchema, jt as ToggleFieldWidgetSchema, k as FormRepairResultSchema, kn as FreeTextDraftSchema, kr as PdfRotationSchema, kt as FormValueEntrySchema, l as AnnotationListSnapshotAllPagesSchema, ln as PolylineDraftSchema, lr as RevisionTokenSchema, lt as RefetchReasonSchema, m as AttachmentDeleteResultSchema, mn as LinkDTOSchema, mr as PdfActionNodeSchema, mt as SearchSliceSchema, n as AccessResponseSchema, nn as SquigglyDTOSchema, nr as FreeTextIntentSchema, nt as PageRotateResultSchema, o as AnnotationDeleteResultSchema, on as SquareDraftSchema, or as PdfRectDifferencesSchema, ot as PdfSaveModeSchema, p as AttachmentCreateResultSchema, pn as PolygonPatchSchema, pr as DocumentActionsSnapshotSchema, pt as SearchRequestSchema, q as PageInsertResultSchema, qn as AnnotationDraftBaseShape, qt as TextDraftSchema, r as AnnotationAppearanceManifestSchema, rn as SquigglyDraftSchema, rr as InkIntentSchema, rt as PageStateSchema, s as AnnotationListMutationMetaSchema, sn as SquarePatchSchema, sr as PointSchema, st as RedactionApplyResultSchema, t as AccessRequestSchema, tn as StampWirePatchSchema, tr as ColorSchema, tt as PageRotateInputSchema, u as AnnotationMoveResultSchema, un as PolylinePatchSchema, ur as StandardFontSchema, ut as SearchMatchSchema, v as DocumentHeadSchema, vn as PdfLinkTargetWritableSchema, vr as PdfActionWireComponents, vt as FormDataFormatSchema, w as FormEffectsResultSchema, wn as InkPatchSchema, wr as InkListSchema, wt as FormFieldPatchSchema, x as DocumentSecurityStateSchema, xn as LinePatchSchema, xr as PdfPageActionsSchema, xt as FormFieldFlagsSchema, y as DocumentManifestSchema, yn as LineDTOSchema, yr as PdfAnnotationActionsSchema, yt as FormFieldDTOSchema, z as PageDeleteInputSchema, zn as CircleDTOSchema, zt as UnsupportedDTOSchema } from "./schemas-XGrNVMDd.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
  /**
@@ -577,6 +658,12 @@ const wirePaths = {
577
658
  layerPageAnnotationsCreate: (docId, layerName, pageObjectNumber) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/pages/${pageObjectNumber}/items`,
578
659
  layerAnnotationByKey: (docId, layerName, pageObjectNumber, key) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/pages/${pageObjectNumber}/items/${encodeURIComponent(key)}`,
579
660
  layerPageAnnotationsMove: (docId, layerName, pageObjectNumber) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/pages/${pageObjectNumber}/items/move`,
661
+ /** POST: flatten a chosen set of the page's annotations into its content
662
+ * (a content + annotation mutation of that page). */
663
+ layerPageAnnotationsFlatten: (docId, layerName, pageObjectNumber) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/pages/${pageObjectNumber}/items/flatten`,
664
+ /** POST: the chosen annotations' appearances as one single-page PDF — a
665
+ * derived read (application/pdf, no-store), gated like pages/extract. */
666
+ layerPageAnnotationsAppearance: (docId, layerName, pageObjectNumber) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/pages/${pageObjectNumber}/items/appearance`,
580
667
  /**
581
668
  * GET: the reconciled form snapshot (field tree + widget joins) for the
582
669
  * layer's CURRENT state. Forms are document-scoped (one AcroForm per
@@ -636,6 +723,11 @@ const wirePaths = {
636
723
  layerPagesMove: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/move`,
637
724
  layerPagesRotate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/rotate`,
638
725
  layerPagesDelete: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/delete`,
726
+ /** POST: register/rename a `/Names /Pages` entry — a page-STRUCTURE
727
+ * mutation (docVersion + layoutVersion advance; reads ride `/layout`). */
728
+ layerPagesNames: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/names`,
729
+ /** POST: remove a `/Names /Pages` entry (the page stays). */
730
+ layerPagesNamesDelete: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/names/delete`,
639
731
  layerPagesFlatten: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/flatten`,
640
732
  /**
641
733
  * POST (multipart mutation envelope): copy every page of the `source`
@@ -670,15 +762,16 @@ const wirePaths = {
670
762
  */
671
763
  docWarm: "/v1/warm"
672
764
  };
673
- /**
674
- * Fastify-style templates for the PLAIN (unversioned) doc-plane routes —
675
- * the backend-callable subset that the `@cloudpdf/contract` contract
676
- * documents. The immutable `@{version}` variants above remain viewer
677
- * protocol and are deliberately absent. These templates are the single
678
- * statement of those paths: the contract package imports them, and the
679
- * server's route table is pinned to them by the doc-plane registry
680
- * conformance test.
681
- */
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
+ }
682
775
  const wireTemplates = {
683
776
  docHead: "/v1/docs/:docId/head",
684
777
  layerManifest: "/v1/docs/:docId/layers/:layerName/manifest",
@@ -688,19 +781,36 @@ const wireTemplates = {
688
781
  layerAnnotationItemsAll: "/v1/docs/:docId/layers/:layerName/annotations/items",
689
782
  layerAnnotationItems: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items",
690
783
  layerAnnotationItem: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/:annotKey",
784
+ layerAnnotationItemsFlatten: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/flatten",
785
+ layerAnnotationItemsAppearance: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/appearance",
691
786
  layerForm: "/v1/docs/:docId/layers/:layerName/form",
692
787
  layerFormFieldValue: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/value",
693
788
  layerFormFieldReset: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/reset",
789
+ layerFormFieldSignatureAppearance: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/signature-appearance",
694
790
  layerFormData: "/v1/docs/:docId/layers/:layerName/form/data",
695
791
  layerPagesMove: "/v1/docs/:docId/layers/:layerName/pages/move",
696
792
  layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate",
697
793
  layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete",
794
+ layerPagesNames: "/v1/docs/:docId/layers/:layerName/pages/names",
795
+ layerPagesNamesDelete: "/v1/docs/:docId/layers/:layerName/pages/names/delete",
698
796
  layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten",
699
797
  layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert",
700
798
  layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank",
701
799
  layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract",
702
800
  layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply",
703
- 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"
704
814
  };
705
815
  //#endregion
706
816
  //#region src/wire/resources.ts
@@ -1087,6 +1197,97 @@ const DOC_RESOURCES = {
1087
1197
  },
1088
1198
  routeKind: "versioned-read",
1089
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
1090
1291
  }
1091
1292
  };
1092
1293
  /**
@@ -1418,6 +1619,6 @@ function annotationRenderOptionsFromImageOptions(options) {
1418
1619
  };
1419
1620
  }
1420
1621
  //#endregion
1421
- export { ANNOTATION_KINDS, AccessRequestSchema, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, 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, NoteIconSchema, 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, 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 };
1422
1623
 
1423
1624
  //# sourceMappingURL=wire.js.map