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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{AbortError-8-9JAX1Y.js → AbortError-DwuHPK_I.js} +2 -2
  2. package/dist/{AbortError-8-9JAX1Y.js.map → AbortError-DwuHPK_I.js.map} +1 -1
  3. package/dist/{AbortError-CRSooKsk.cjs → AbortError-P0RU0Mgg.cjs} +4 -4
  4. package/dist/{AbortError-CRSooKsk.cjs.map → AbortError-P0RU0Mgg.cjs.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-x6tKulNV.d.cts → AnnotationListSnapshot-D9R5n2Kf.d.cts} +1390 -176
  6. package/dist/{AnnotationListSnapshot-x6tKulNV.d.ts → AnnotationListSnapshot-D9R5n2Kf.d.ts} +1390 -176
  7. package/dist/{DocumentSecurityService-CK0pejAK.d.cts → DocumentSecurityService-CIx1MT0T.d.cts} +2 -2
  8. package/dist/{DocumentSecurityService-9MawYxP-.d.ts → DocumentSecurityService-Ca6EK3-3.d.ts} +2 -2
  9. package/dist/{Engine--0XF0UAK.d.cts → Engine-EWWHhEIi.d.ts} +179 -11
  10. package/dist/{Engine-Ds0ytbl6.d.ts → Engine-FNaAEjfb.d.cts} +179 -11
  11. package/dist/conformance.cjs +1441 -88
  12. package/dist/conformance.cjs.map +1 -1
  13. package/dist/conformance.d.cts +74 -3
  14. package/dist/conformance.d.ts +74 -3
  15. package/dist/conformance.js +1376 -25
  16. package/dist/conformance.js.map +1 -1
  17. package/dist/derive-BbsDk_Kz.cjs +880 -0
  18. package/dist/derive-BbsDk_Kz.cjs.map +1 -0
  19. package/dist/derive-DAFJolWu.js +647 -0
  20. package/dist/derive-DAFJolWu.js.map +1 -0
  21. package/dist/{PageInsertBlankInput-WKY0tr6S.js → format-Bbphf4zR.js} +95 -3
  22. package/dist/format-Bbphf4zR.js.map +1 -0
  23. package/dist/{PageInsertBlankInput-CzShuSJI.cjs → format-D_epWlob.cjs} +106 -2
  24. package/dist/format-D_epWlob.cjs.map +1 -0
  25. package/dist/index.cjs +137 -88
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +5 -5
  29. package/dist/{resolver-D-jumvgM.cjs → resolver-CYVNV4hn.cjs} +216 -10
  30. package/dist/resolver-CYVNV4hn.cjs.map +1 -0
  31. package/dist/{resolver-CHG4waXL.js → resolver-inAVzsWt.js} +157 -11
  32. package/dist/resolver-inAVzsWt.js.map +1 -0
  33. package/dist/runtime.cjs +147 -98
  34. package/dist/runtime.cjs.map +1 -1
  35. package/dist/runtime.d.cts +216 -5
  36. package/dist/runtime.d.ts +216 -5
  37. package/dist/runtime.js +6 -6
  38. package/dist/{schemas-DOyVEPk7.js → schemas-CFQGvWiu.js} +551 -5
  39. package/dist/schemas-CFQGvWiu.js.map +1 -0
  40. package/dist/{schemas-RChsAMWw.cjs → schemas-D0g6tKa9.cjs} +829 -25
  41. package/dist/schemas-D0g6tKa9.cjs.map +1 -0
  42. package/dist/{builders-8Hl1AYNU.cjs → viewport-BWeNHZmb.cjs} +1522 -117
  43. package/dist/viewport-BWeNHZmb.cjs.map +1 -0
  44. package/dist/{builders-DOjcKDWQ.js → viewport-CvMcadfQ.js} +1386 -89
  45. package/dist/viewport-CvMcadfQ.js.map +1 -0
  46. package/dist/wire.cjs +252 -13
  47. package/dist/wire.cjs.map +1 -1
  48. package/dist/wire.d.cts +3147 -5
  49. package/dist/wire.d.ts +3147 -5
  50. package/dist/wire.js +207 -14
  51. package/dist/wire.js.map +1 -1
  52. package/package.json +1 -1
  53. package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +0 -1
  54. package/dist/PageInsertBlankInput-WKY0tr6S.js.map +0 -1
  55. package/dist/builders-8Hl1AYNU.cjs.map +0 -1
  56. package/dist/builders-DOjcKDWQ.js.map +0 -1
  57. package/dist/fold-BfyxxwS6.js +0 -334
  58. package/dist/fold-BfyxxwS6.js.map +0 -1
  59. package/dist/fold-C7I5GpBz.cjs +0 -447
  60. package/dist/fold-C7I5GpBz.cjs.map +0 -1
  61. package/dist/resolver-CHG4waXL.js.map +0 -1
  62. package/dist/resolver-D-jumvgM.cjs.map +0 -1
  63. package/dist/schemas-DOyVEPk7.js.map +0 -1
  64. 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 PdfLinkTargetWritableSchema, $r as InkIntentSchema, $t as FormDataFormatSchema, A as DocumentVersionRefSchema, An as StrikeoutDTOSchema, Ar as FileAttachmentWireDraftSchema, At as SearchMatchSchema, B as FormImportResultSchema, Bn as SquareDTOSchema, Br as CaretPatchSchema, Bt as SignatureDTOSchema, C as ChangeAnalysisSchema, Ci as PdfQuadSchema, Cn as UnderlineDTOSchema, Cr as HighlightPatchSchema, Ct as PageStructureCacheSchema, D as DocumentMetadataSchema, Dn as TextDTOSchema, Dr as FileAttachmentDTOSchema, Dt as RedactionApplyResultSchema, E as DocumentManifestSchema, Ei as PdfSizeSchema, En as NoteIconSchema, Er as FreeTextPatchSchema, Et as PdfSaveModeSchema, F as FormEffectSchema, Fn as StampWireDraftSchema, Fr as CircleDTOSchema, Ft as SearchSnippetSchema, G as LayerScopesSchema, Gn as PolylinePatchSchema, Gr as AnnotationFlagsSchema, Gt as VersionAnalysisQuerySchema, H as FormSetValueResultSchema, Hn as SquarePatchSchema, Hr as AnnotationBorderStyleSchema, Ht as SignaturePreparedWireSchema, I as FormEffectsResultSchema, In as StampWirePatchSchema, Ir as CircleDraftSchema, It as SignatureAbortResultSchema, J as MetadataUpdateResultSchema, Jn as PolygonPatchSchema, Jr as AnnotationStableIdSchema, Jt as analyzeInputFromQuery, K as ManifestPageSchema, Kn as PolygonDTOSchema, Kr as AnnotationPatchBaseShape, Kt as WeakAnnotationSessionPagesRequestSchema, L as FormFieldCreateResultSchema, Ln as SquigglyDTOSchema, Lr as CirclePatchSchema, Lt as SignatureAppearanceBodySchema, M as DocumentVersionsSchema, Mn as StrikeoutPatchSchema, Mr as AttachmentFileInfoSchema, Mt as SearchQuerySchema, N as EngineErrorPayloadSchema, Nn as ResourceRefSchema, Nr as EmbeddedFileItemSchema, Nt as SearchRequestSchema, O as DocumentProtectionSchema, On as TextDraftSchema, Or as FileAttachmentIconSchema, Ot as RedactionApplyScopeSchema, P as FieldLockSpecSchema, Pn as StampDTOSchema, Pr as EmbeddedFileRefSchema, Pt as SearchSliceSchema, Q as OpenDocumentResponseSchema, Qn as PdfLinkTargetSchema, Qr as FreeTextIntentSchema, Qt as toBase64, R as FormFieldDeleteResultSchema, Rn as SquigglyDraftSchema, Rr as CaretDTOSchema, Rt as SignatureCompleteBodySchema, S as CachePinsSchema, Si as PdfPointSchema, Sn as UnsupportedPatchSchema, Sr as HighlightDraftSchema, St as PageStateSchema, T as DocumentHeadSchema, Ti as PdfRotationSchema, Tn as UnderlinePatchSchema, Tr as FreeTextDraftSchema, Tt as PdfRevisionSchema, U as FormWidgetLinkResultSchema, Un as PolylineDTOSchema, Ur as AnnotationDraftBaseShape, Ut as SignatureSeedValueSchema, V as FormRepairResultSchema, Vn as SquareDraftSchema, Vr as AnnotationBaseShape, Vt as SignaturePrepareBodySchema, W as LayerAnalysisQuerySchema, Wn as PolylineDraftSchema, Wr as AnnotationFlagsPartialSchema, Wt as SignatureSnapshotSchema, X as MutationMetaSchema, Xn as LinkDraftSchema, Xr as CaretIntentSchema, Xt as encodePrepared, Y as ModificationLevelSchema, Yn as LinkDTOSchema, Yr as BlendModeSchema, Yt as decodePrepared, Z as NamedPageEntrySchema, Zn as LinkPatchSchema, Zr as ColorSchema, Zt as fromBase64, _ as AttachmentDeleteResultSchema, _i as PdfPageActionsSchema, _n as AnnotationPatchSchema, _r as ShapeDimensionCaptionSchema, _t as PageRenderAnnotatedQuerySchema, a as AnnotationAppearancesQuerySchema, ai as RevisionTokenSchema, an as FormFieldPatchSchema, ar as LineIntentSchema, at as PageGeometrySnapshotSchema, b as ByteRangeSchema, bi as InkListSchema, bn as UnsupportedDTOSchema, br as InkPatchSchema, bt as PageRotateResultSchema, c as AnnotationFlattenInputSchema, ci as TextAlignmentSchema, cn as FormKindSchema, cr as PageScaleInputSchema, ct as PageInsertResultSchema, d as AnnotationListPageSnapshotSchema, di as PdfActionTargetRefSchema, dn as FormWidgetRefSchema, dr as PdfMeasureWriteSchema, dt as PageMoveInputSchema, ei as LineEndingSchema, en as FormFieldDTOSchema, er as LineDTOSchema, et as PageDeleteInputSchema, f as AnnotationListSnapshotAllPagesSchema, fi as PdfActionTreeSchema, fn as ToggleFieldWidgetSchema, fr as PdfMeasurementSchema, ft as PageMoveResultSchema, g as AttachmentCreateResultSchema, gi as PdfFieldActionsSchema, gn as AnnotationDraftSchema, gr as ShapeCaptionPatchSchema, gt as PageRemoveNameInputSchema, h as AppearanceOutcomeSchema, hi as PdfAnnotationActionsSchema, hn as AnnotationDTOSchema, hr as PolylineIntentSchema, ht as PageNetworkRenderFormatSchema, i as AnnotationAppearanceManifestSchema, ii as RectSchema, in as FormFieldOptionSchema, ir as LineDimensionCaptionSchema, it as PageFlattenResultSchema, j as DocumentVersionSchema, jn as StrikeoutDraftSchema, jr as WireAttachmentFileSchema, jt as SearchModeSchema, k as DocumentSecurityStateSchema, kn as TextPatchSchema, kr as FileAttachmentPatchSchema, kt as RefetchReasonSchema, l as AnnotationFlattenResultSchema, li as DocumentActionsSnapshotSchema, ln as FormSnapshotSchema, lr as PdfForeignMeasureSchema, lt as PageLayoutSchema, m as AnnotationUpdateResultSchema, mi as PdfActionWireComponents, mn as ANNOTATION_KINDS, mr as PolygonIntentSchema, mt as PageNameResultSchema, n as AccessResponseSchema, ni as PdfRectDifferencesSchema, nn as FormFieldFlagsSchema, nr as LinePatchSchema, nt as PageExtractInputSchema, o as AnnotationCreateResultSchema, oi as StandardFontSchema, on as FormFieldRefSchema, or as LineLeaderSchema, ot as PageInsertBlankInputSchema, p as AnnotationMoveResultSchema, pi as PdfActionTypeSchema, pn as WidgetPlacementSchema, pr as PdfNumberFormatSchema, pt as PageNameInputSchema, q as MetadataPatchSchema, qn as PolygonDraftSchema, qr as AnnotationRefSchema, qt as WeakAnnotationSessionResponseSchema, r as AnnotationAppearanceExportInputSchema, ri as PointSchema, rn as FormFieldOptionInputSchema, rr as LineCaptionPatchSchema, rt as PageFlattenInputSchema, s as AnnotationDeleteResultSchema, si as StrikeoutIntentSchema, sn as FormFieldValueSchema, sr as PageMeasurementViewportSchema, st as PageInsertInputSchema, t as AccessRequestSchema, ti as LineEndingsSchema, tn as FormFieldDraftSchema, tr as LineDraftSchema, tt as PageDeleteResultSchema, u as AnnotationListMutationMetaSchema, ui as PdfActionNodeSchema, un as FormValueEntrySchema, ur as PdfMeasureSchema, ut as PageListSnapshotSchema, v as AttachmentsCacheSchema, vi as PdfDestinationSchema, vn as KIND_BY_SUBTYPE, vr as InkDTOSchema, vt as PageRenderQuerySchema, w as DigestAlgorithmSchema, wi as PdfRectSchema, wn as UnderlineDraftSchema, wr as FreeTextDTOSchema, wt as PageTextSnapshotSchema, x as CacheDeltaSchema, xi as LinePointsSchema, xn as UnsupportedDraftSchema, xr as HighlightDTOSchema, xt as PageScaleResultSchema, y as BaseVersionInfoSchema, yi as CalloutLineSchema, yn as WidgetAppearanceSchema, yr as InkDraftSchema, yt as PageRotateInputSchema, z as FormFieldUpdateResultSchema, zn as SquigglyPatchSchema, zr as CaretDraftSchema, zt as SignatureCompleteResultSchema } from "./schemas-CFQGvWiu.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
@@ -167,6 +180,7 @@ const SearchTokenSchema = {
167
180
  fields: [
168
181
  "epoch",
169
182
  "format",
183
+ "ignoreWhitespace",
170
184
  "matchCase",
171
185
  "matchDiacritics",
172
186
  "maxMatches",
@@ -199,6 +213,46 @@ const AnnotationAppearancesRenderTokenSchema = {
199
213
  };
200
214
  //#endregion
201
215
  //#region src/wire/tokens.ts
216
+ const encodeAnalysisToken = (input) => encodeToken(AnalysisTokenSchema, {
217
+ docVersion: input.docVersion,
218
+ "since.signature": "signatureIndex" in input.since ? input.since.signatureIndex : void 0,
219
+ "since.revision": "revisionIndex" in input.since ? input.since.revisionIndex : void 0,
220
+ level: input.exploratoryLevel,
221
+ policy: input.policyVersion ?? 4,
222
+ detail: input.detail
223
+ });
224
+ const decodeAnalysisToken = (raw) => {
225
+ const t = decodeToken(AnalysisTokenSchema, raw);
226
+ const sinceSignature = t["since.signature"];
227
+ const sinceRevision = t["since.revision"];
228
+ if (sinceSignature === void 0 === (sinceRevision === void 0)) throw new Error("analysis token needs exactly one of \"since.signature\" / \"since.revision\"");
229
+ return {
230
+ docVersion: decodePositiveInteger(t.docVersion, "docVersion"),
231
+ since: sinceSignature !== void 0 ? { signatureIndex: decodeNonNegativeInteger(sinceSignature, "since.signature") } : { revisionIndex: decodeNonNegativeInteger(sinceRevision, "since.revision") },
232
+ ...t.level !== void 0 ? { exploratoryLevel: decodeModificationLevel(t.level) } : {},
233
+ ...t.policy !== void 0 ? { policyVersion: decodePositiveInteger(t.policy, "policy") } : {},
234
+ ...t.detail !== void 0 ? { detail: decodeDetail(t.detail) } : {}
235
+ };
236
+ };
237
+ function decodeDetail(raw) {
238
+ if (raw !== "summary" && raw !== "full") throw new Error("token field \"detail\" must be summary|full");
239
+ return raw;
240
+ }
241
+ const MODIFICATION_LEVELS = [
242
+ "none",
243
+ "lta",
244
+ "fill",
245
+ "annotate"
246
+ ];
247
+ function decodeModificationLevel(raw) {
248
+ if (!MODIFICATION_LEVELS.includes(raw)) throw new Error(`token field "level" must be one of ${MODIFICATION_LEVELS.join("|")}`);
249
+ return raw;
250
+ }
251
+ function decodeNonNegativeInteger(raw, field) {
252
+ if (raw === void 0) throw new Error(`token is missing "${field}"`);
253
+ if (!/^(0|[1-9][0-9]*)$/.test(raw)) throw new Error(`token field "${field}" must be a non-negative integer`);
254
+ return Number(raw);
255
+ }
202
256
  const encodeDocToken = (docVersion) => encodeToken(DocTokenSchema, { docVersion });
203
257
  const decodeDocToken = (raw) => decodePositiveInteger(decodeToken(DocTokenSchema, raw).docVersion, "docVersion");
204
258
  const encodeContentToken = (contentVersion) => encodeToken(ContentTokenSchema, { contentVersion });
@@ -269,6 +323,7 @@ const encodeSearchToken = (input) => {
269
323
  matchCase: q.matchCase ? true : void 0,
270
324
  matchDiacritics: q.matchDiacritics ? true : void 0,
271
325
  wholeWord: q.wholeWord ? true : void 0,
326
+ ignoreWhitespace: q.ignoreWhitespace ? true : void 0,
272
327
  startPage: input.startPage,
273
328
  skip: input.skip > 0 ? input.skip : void 0,
274
329
  maxPages: input.budget?.maxPages,
@@ -285,7 +340,8 @@ const decodeSearchToken = (raw) => {
285
340
  ...t.regex === "true" ? { regex: true } : {},
286
341
  ...t.matchCase === "true" ? { matchCase: true } : {},
287
342
  ...t.matchDiacritics === "true" ? { matchDiacritics: true } : {},
288
- ...t.wholeWord === "true" ? { wholeWord: true } : {}
343
+ ...t.wholeWord === "true" ? { wholeWord: true } : {},
344
+ ...t.ignoreWhitespace === "true" ? { ignoreWhitespace: true } : {}
289
345
  };
290
346
  const maxPages = t.maxPages === void 0 ? void 0 : decodePositiveInteger(t.maxPages, "maxPages");
291
347
  const maxMatches = t.maxMatches === void 0 ? void 0 : decodePositiveInteger(t.maxMatches, "maxMatches");
@@ -471,6 +527,34 @@ const wirePaths = {
471
527
  /** Immutable BASE catalog actions (plane-scope model): the shared-URL
472
528
  * variant an actions-inheriting layer resolves at. */
473
529
  docActions: (docId, actionsVersion) => `/v1/docs/${encodeURIComponent(docId)}/actions@${encodeActionsToken(actionsVersion)}`,
530
+ /** Immutable layer signature snapshot (base signatures + the layer's fields + protection). */
531
+ layerSignatures: (docId, layerName, docVersion) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures@${encodeDocToken(docVersion)}`,
532
+ layerSignaturesCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures`,
533
+ /** Immutable: the layer's working copy judged against the base, pinned by `docVersion`. */
534
+ layerSignaturesAnalysis: (docId, layerName, token) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/analysis@${encodeAnalysisToken(token)}`,
535
+ layerSignaturesAnalysisCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/analysis`,
536
+ /** POST (multipart envelope): author and seal a signing candidate. */
537
+ layerSignaturesPrepare: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/prepare`,
538
+ /** POST (JSON): install the CMS and publish the sealed bytes as the next base version. */
539
+ layerSignatureComplete: (docId, layerName, signingId) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/${encodeURIComponent(signingId)}/complete`,
540
+ /** DELETE: discard a pending signing. */
541
+ layerSignatureAbort: (docId, layerName, signingId) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/${encodeURIComponent(signingId)}`,
542
+ /** The document's base versions, oldest first (grows; never cached). */
543
+ docVersions: (docId) => `/v1/docs/${encodeURIComponent(docId)}/versions`,
544
+ /** Immutable: the signature snapshot of one base version. */
545
+ docVersionSignatures: (docId, sha256) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}`,
546
+ /** Immutable: a signed field's DER `/Contents` in one base version (`application/pkcs7-signature`). */
547
+ docVersionSignatureContents: (docId, sha256, fieldName) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}/${encodeTokenText(fieldName)}/contents`,
548
+ /** Immutable: the digest of a signed field's `/ByteRange` in one base version. */
549
+ docVersionSignatureDigest: (docId, sha256, fieldName, algorithm) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}/${encodeTokenText(fieldName)}/digest/${algorithm}`,
550
+ /** Immutable: history between two revisions of one base version. */
551
+ docVersionAnalysis: (docId, sha256, query) => `/v1/docs/${encodeURIComponent(docId)}/versions/analysis/${sha256}?${analysisQueryString(query)}`,
552
+ /** Immutable: the bytes of one base version. */
553
+ docVersionDownload: (docId, sha256) => `/v1/docs/${encodeURIComponent(docId)}/versions/download/${sha256}`,
554
+ /** Immutable: the byte prefix `[0, end)` of revision `index` of one base version. */
555
+ docVersionRevision: (docId, sha256, index) => `/v1/docs/${encodeURIComponent(docId)}/versions/revisions/${sha256}/${index}`,
556
+ /** POST (multipart envelope): draw a PDF page into an unsigned signature field's widgets. */
557
+ layerFormFieldSignatureAppearance: (docId, layerName, fieldKey) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/form/fields/${encodeURIComponent(fieldKey)}/signature-appearance`,
474
558
  /** POST: rewrite the document Info dict for the layer (metadata edit). */
475
559
  layerMetadataUpdate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/metadata`,
476
560
  /**
@@ -639,6 +723,8 @@ const wirePaths = {
639
723
  */
640
724
  layerSearchRectsCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/search/rects/data`,
641
725
  layerSearchFullCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/search/full/data`,
726
+ layerPageViewports: (docId, layerName, pon) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/${pon}/viewports`,
727
+ layerPageScale: (docId, layerName, pon) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/${pon}/scale`,
642
728
  layerPagesMove: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/move`,
643
729
  layerPagesRotate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/rotate`,
644
730
  layerPagesDelete: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/delete`,
@@ -681,15 +767,16 @@ const wirePaths = {
681
767
  */
682
768
  docWarm: "/v1/warm"
683
769
  };
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
- */
770
+ function analysisQueryString(query) {
771
+ const params = new URLSearchParams();
772
+ if ("signatureIndex" in query.since) params.set("since.signature", String(query.since.signatureIndex));
773
+ else params.set("since.revision", String(query.since.revisionIndex));
774
+ if (query.until !== void 0) params.set("until", String(query.until));
775
+ if (query.exploratoryLevel !== void 0) params.set("level", query.exploratoryLevel);
776
+ if (query.detail !== void 0) params.set("detail", query.detail);
777
+ params.set("policy", String(4));
778
+ return params.toString();
779
+ }
693
780
  const wireTemplates = {
694
781
  docHead: "/v1/docs/:docId/head",
695
782
  layerManifest: "/v1/docs/:docId/layers/:layerName/manifest",
@@ -704,7 +791,10 @@ const wireTemplates = {
704
791
  layerForm: "/v1/docs/:docId/layers/:layerName/form",
705
792
  layerFormFieldValue: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/value",
706
793
  layerFormFieldReset: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/reset",
794
+ layerFormFieldSignatureAppearance: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/signature-appearance",
707
795
  layerFormData: "/v1/docs/:docId/layers/:layerName/form/data",
796
+ layerPageViewports: "/v1/docs/:docId/layers/:layerName/pages/:pon/viewports",
797
+ layerPageScale: "/v1/docs/:docId/layers/:layerName/pages/:pon/scale",
708
798
  layerPagesMove: "/v1/docs/:docId/layers/:layerName/pages/move",
709
799
  layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate",
710
800
  layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete",
@@ -715,7 +805,19 @@ const wireTemplates = {
715
805
  layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank",
716
806
  layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract",
717
807
  layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply",
718
- layerDownload: "/v1/docs/:docId/layers/:layerName/download"
808
+ layerDownload: "/v1/docs/:docId/layers/:layerName/download",
809
+ layerSignatures: "/v1/docs/:docId/layers/:layerName/signatures",
810
+ layerSignaturesAnalysis: "/v1/docs/:docId/layers/:layerName/signatures/analysis",
811
+ layerSignaturesPrepare: "/v1/docs/:docId/layers/:layerName/signatures/prepare",
812
+ layerSignatureComplete: "/v1/docs/:docId/layers/:layerName/signatures/:signingId/complete",
813
+ layerSignatureAbort: "/v1/docs/:docId/layers/:layerName/signatures/:signingId",
814
+ docVersions: "/v1/docs/:docId/versions",
815
+ docVersionSignatures: "/v1/docs/:docId/versions/signatures/:sha",
816
+ docVersionSignatureContents: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/contents",
817
+ docVersionSignatureDigest: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/digest/:algorithm",
818
+ docVersionAnalysis: "/v1/docs/:docId/versions/analysis/:sha",
819
+ docVersionDownload: "/v1/docs/:docId/versions/download/:sha",
820
+ docVersionRevision: "/v1/docs/:docId/versions/revisions/:sha/:index"
719
821
  };
720
822
  //#endregion
721
823
  //#region src/wire/resources.ts
@@ -1102,6 +1204,97 @@ const DOC_RESOURCES = {
1102
1204
  },
1103
1205
  routeKind: "versioned-read",
1104
1206
  cdnCacheable: true
1207
+ },
1208
+ "layer-signatures": {
1209
+ id: "layer-signatures",
1210
+ pathPattern: "/v1/docs/{docId}/layers/{layerName}/signatures@*",
1211
+ resolvePathPattern: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures@*`,
1212
+ pathPrefix: "/v1/docs/{docId}/layers/{layerName}/signatures@",
1213
+ resolvePathPrefix: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures@`,
1214
+ requirement: {
1215
+ kind: "single",
1216
+ capability: "doc.forms.read"
1217
+ },
1218
+ routeKind: "versioned-read",
1219
+ cdnCacheable: true
1220
+ },
1221
+ "layer-signatures-analysis": {
1222
+ id: "layer-signatures-analysis",
1223
+ pathPattern: "/v1/docs/{docId}/layers/{layerName}/signatures/analysis@*",
1224
+ resolvePathPattern: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures/analysis@*`,
1225
+ pathPrefix: "/v1/docs/{docId}/layers/{layerName}/signatures/analysis@",
1226
+ resolvePathPrefix: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures/analysis@`,
1227
+ requirement: {
1228
+ kind: "single",
1229
+ capability: "doc.forms.read"
1230
+ },
1231
+ routeKind: "versioned-read",
1232
+ cdnCacheable: true
1233
+ },
1234
+ versions: {
1235
+ id: "versions",
1236
+ pathPattern: "/v1/docs/{docId}/versions",
1237
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions`,
1238
+ pathPrefix: "/v1/docs/{docId}/versions",
1239
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions`,
1240
+ requirement: {
1241
+ kind: "single",
1242
+ capability: "doc.open"
1243
+ },
1244
+ routeKind: "origin",
1245
+ cdnCacheable: false
1246
+ },
1247
+ "version-signatures": {
1248
+ id: "version-signatures",
1249
+ pathPattern: "/v1/docs/{docId}/versions/signatures/*",
1250
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/signatures/*`,
1251
+ pathPrefix: "/v1/docs/{docId}/versions/signatures/",
1252
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/signatures/`,
1253
+ requirement: {
1254
+ kind: "single",
1255
+ capability: "doc.forms.read"
1256
+ },
1257
+ routeKind: "versioned-read",
1258
+ cdnCacheable: true
1259
+ },
1260
+ "version-analysis": {
1261
+ id: "version-analysis",
1262
+ pathPattern: "/v1/docs/{docId}/versions/analysis/*",
1263
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/analysis/*`,
1264
+ pathPrefix: "/v1/docs/{docId}/versions/analysis/",
1265
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/analysis/`,
1266
+ requirement: {
1267
+ kind: "single",
1268
+ capability: "doc.forms.read"
1269
+ },
1270
+ routeKind: "versioned-read",
1271
+ cdnCacheable: true
1272
+ },
1273
+ "version-download": {
1274
+ id: "version-download",
1275
+ pathPattern: "/v1/docs/{docId}/versions/download/*",
1276
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/download/*`,
1277
+ pathPrefix: "/v1/docs/{docId}/versions/download/",
1278
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/download/`,
1279
+ requirement: {
1280
+ kind: "single",
1281
+ capability: "doc.download"
1282
+ },
1283
+ routeKind: "versioned-read",
1284
+ cdnCacheable: true
1285
+ },
1286
+ "version-revisions": {
1287
+ id: "version-revisions",
1288
+ pathPattern: "/v1/docs/{docId}/versions/revisions/*",
1289
+ resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/revisions/*`,
1290
+ pathPrefix: "/v1/docs/{docId}/versions/revisions/",
1291
+ resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/revisions/`,
1292
+ requirement: {
1293
+ kind: "single",
1294
+ capability: "doc.download"
1295
+ },
1296
+ routeKind: "versioned-read",
1297
+ cdnCacheable: true
1105
1298
  }
1106
1299
  };
1107
1300
  /**
@@ -1433,6 +1626,6 @@ function annotationRenderOptionsFromImageOptions(options) {
1433
1626
  };
1434
1627
  }
1435
1628
  //#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 };
1629
+ 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, LineCaptionPatchSchema, LineDTOSchema, LineDimensionCaptionSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LineIntentSchema, LineLeaderSchema, 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, PageMeasurementViewportSchema, PageMoveInputSchema, PageMoveResultSchema, PageNameInputSchema, PageNameResultSchema, PageNetworkRenderFormatSchema, PageRemoveNameInputSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageScaleInputSchema, PageScaleResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTargetRefSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfActionWireComponents, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfForeignMeasureSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfMeasureSchema, PdfMeasureWriteSchema, PdfMeasurementSchema, PdfNumberFormatSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRevisionSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonIntentSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylineIntentSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, RenderTokenSchema, ResourceRefSchema, RevisionTokenSchema, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, SearchTokenSchema, ShapeCaptionPatchSchema, ShapeDimensionCaptionSchema, 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
1630
 
1438
1631
  //# sourceMappingURL=wire.js.map