@embedpdf/engine-core 3.0.0-next.3 → 3.0.0-next.5

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 (55) hide show
  1. package/dist/{AbortError-CjSasIlL.js → AbortError-BsHuCO1S.js} +2 -2
  2. package/dist/{AbortError-CjSasIlL.js.map → AbortError-BsHuCO1S.js.map} +1 -1
  3. package/dist/{AbortError-ByBflvEl.cjs → AbortError-DmWeq9sx.cjs} +2 -2
  4. package/dist/{AbortError-ByBflvEl.cjs.map → AbortError-DmWeq9sx.cjs.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-CHjkcIaL.d.cts} +345 -36
  6. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.ts → AnnotationListSnapshot-CHjkcIaL.d.ts} +345 -36
  7. package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-B1uv4FaK.d.cts} +2 -2
  8. package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-CrxGktMI.d.ts} +2 -2
  9. package/dist/{Engine-B7Oe7f5i.d.ts → Engine-BE6r06QI.d.ts} +4 -4
  10. package/dist/{Engine-D9loFZc1.d.cts → Engine-BOaRwtKa.d.cts} +4 -4
  11. package/dist/{builders-BvikWRuO.cjs → builders-BsUc2A1U.cjs} +426 -223
  12. package/dist/builders-BsUc2A1U.cjs.map +1 -0
  13. package/dist/{builders-C548U47M.js → builders-CF5gKkOa.js} +382 -167
  14. package/dist/builders-CF5gKkOa.js.map +1 -0
  15. package/dist/{subtype-BvAzLCGC.js → charmap-CUukAMhR.js} +140 -2
  16. package/dist/charmap-CUukAMhR.js.map +1 -0
  17. package/dist/{subtype-qejjVr6h.cjs → charmap-D6PLtRiC.cjs} +169 -1
  18. package/dist/charmap-D6PLtRiC.cjs.map +1 -0
  19. package/dist/conformance.cjs +511 -177
  20. package/dist/conformance.cjs.map +1 -1
  21. package/dist/conformance.d.cts +99 -3
  22. package/dist/conformance.d.ts +99 -3
  23. package/dist/conformance.js +467 -136
  24. package/dist/conformance.js.map +1 -1
  25. package/dist/{fold-IaMph3CO.cjs → fold-BeT1GxLP.cjs} +235 -4
  26. package/dist/fold-BeT1GxLP.cjs.map +1 -0
  27. package/dist/{fold-CB4fAOOy.js → fold-DemV94jf.js} +162 -3
  28. package/dist/fold-DemV94jf.js.map +1 -0
  29. package/dist/index.cjs +33 -18
  30. package/dist/index.d.cts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.js +4 -4
  33. package/dist/runtime.cjs +38 -23
  34. package/dist/runtime.d.cts +4 -4
  35. package/dist/runtime.d.ts +4 -4
  36. package/dist/runtime.js +5 -5
  37. package/dist/{schemas-B_1VyFsm.cjs → schemas-CyWwm0Zf.cjs} +64 -30
  38. package/dist/schemas-CyWwm0Zf.cjs.map +1 -0
  39. package/dist/{schemas-9OpSSeM6.js → schemas-ES6-TkIl.js} +44 -10
  40. package/dist/schemas-ES6-TkIl.js.map +1 -0
  41. package/dist/wire.cjs +14 -1
  42. package/dist/wire.cjs.map +1 -1
  43. package/dist/wire.d.cts +19 -9
  44. package/dist/wire.d.ts +19 -9
  45. package/dist/wire.js +14 -2
  46. package/dist/wire.js.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/builders-BvikWRuO.cjs.map +0 -1
  49. package/dist/builders-C548U47M.js.map +0 -1
  50. package/dist/fold-CB4fAOOy.js.map +0 -1
  51. package/dist/fold-IaMph3CO.cjs.map +0 -1
  52. package/dist/schemas-9OpSSeM6.js.map +0 -1
  53. package/dist/schemas-B_1VyFsm.cjs.map +0 -1
  54. package/dist/subtype-BvAzLCGC.js.map +0 -1
  55. package/dist/subtype-qejjVr6h.cjs.map +0 -1
package/dist/wire.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as CaretDraftSchema, $i as LayerScopes, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Aa as EmbeddedFileItem, Ac as PdfSize, Ai as AnnotationCreateResult, Ar as FormFieldDeleteResult, Bc as PdfPageActions, Bo as PageRenderOptions, Cc as InkList, Ci as ToggleFieldWidget, Co as AnnotationAppearancesQuery, Cr as SearchQuery, D as FileAttachmentDTOSchema, Dc as PdfQuad, Di as FormWidgetRef, Dn as HighlightPatchSchema, Dr as SearchSnippet, Dt as LinePatchSchema, Ec as PdfPoint, Ei as FormFieldRef, En as HighlightDraftSchema, Er as SearchSliceBudget, Et as LineDraftSchema, F as StampDTOSchema, Fc as PdfActionTree, Fn as RedactionApplyScope, Fo as PageNetworkRenderFormat, Fr as FormWidgetLinkResult, G as TextDTOSchema, Gi as CacheDelta, Gn as PageRotateResult, Gr as FormFieldPatch, Hr as FormFieldValue, Hs as DocCapability, I as StampWireDraftSchema, Ii as AppearanceOutcome, Ir as FormEffect, Jn as PageMoveResult, Jo as PageTextSnapshot, Jt as SquarePatchSchema, K as TextDraftSchema, Ki as MutationMeta, Kn as PageRotateInput, Kt as SquareDTOSchema, L as StampWirePatchSchema, Ln as PageFlattenInput, Lt as PolygonDTOSchema, Mc as DocumentActionsSnapshot, Mi as AnnotationMoveResult, Mn as MetadataUpdateResult, Mo as PageImageOptions, Mr as FormImportResult, Mt as PolylineDraftSchema, Ni as AnnotationUpdateResult, Nr as FormRepairResult, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oa as AttachmentFileInfo, Oc as PdfRect, P as ResourceRefSchema, Pc as PdfActionNode, Pn as RedactionApplyResult, Pr as FormSetValueResult, Q as CaretDTOSchema, Qi as LayerScopePlane, Qr as FormFieldOptionInput, Qs as RevisionToken, Qt as CircleDTOSchema, Rc as PdfAnnotationActions, Rt as PolygonDraftSchema, Sc as CalloutLine, So as AnnotationAppearanceRenderOptions, Tc as LinePoints, Ti as FormValueEntry, Tn as HighlightDTOSchema, To as PageState, Tr as SearchSlice, Tt as LineDTOSchema, Ui as AnnotationListMutationMeta, Un as PageDeleteResult, Vc as DocumentMetadata, Vo as PageRenderQuery, Vr as FormDataFormat, W as NoteIconSchema, Wi as RefetchReason, Wn as PageDeleteInput, Xi as DocumentManifest, Xn as PageMoveInput, Yn as PageStructureCache, Ys as PdfBits, Zi as ManifestPage, Zr as FormFieldDraft, Zs as AnnotationRef, _ as UnsupportedPatchSchema, _t as LinkDraftSchema, a as AnnotationDTOSchema, ac as BlendMode, ao as SerializedEngineError, at as FreeTextDraftSchema, bc as StrikeoutIntent, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, cn as StrikeoutDraftSchema, cs as PageLayout, da as AttachmentsCache, dc as LineEnding, dt as InkDraftSchema, en as CirclePatchSchema, eo as AnnotationStableId, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fc as LineEndings, ft as InkPatchSchema, g as UnsupportedDraftSchema, gi as FormFieldOption, go as AnnotationAppearanceImageOptions, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hi as FormFieldFlags, hn as SquigglyPatchSchema, ii as FormSnapshot, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, ja as EmbeddedFileRef, ji as AnnotationDeleteResult, jr as FormFieldUpdateResult, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, kc as PdfRotation, kr as FormFieldCreateResult, la as AttachmentCreateResult, lc as FreeTextIntent, ln as StrikeoutPatchSchema, mc as PdfRectDifferences, mn as SquigglyDraftSchema, mo as CachePins, n as AnnotationListSnapshotAllPages, nc as AnnotationBorderStyle, ni as WidgetPlacement, oc as CaretIntent, oi as WidgetAppearanceSchema, os as PageListSnapshot, ot as FreeTextPatchSchema, pi as FormFieldDTO, pn as SquigglyDTOSchema, po as PdfSaveMode, q as TextPatchSchema, qo as PageGeometrySnapshot, qt as SquareDraftSchema, r as ANNOTATION_KINDS, rc as AnnotationFlags, ri as FormKind, s as AnnotationDraftSchema, sc as Color, sn as StrikeoutDTOSchema, ss as PageBoxes, t as AnnotationListPageSnapshot, u as AnnotationPatchSchema, ua as AttachmentDeleteResult, uc as InkIntent, us as MetadataPatch, ut as InkDTOSchema, vo as AnnotationAppearanceManifest, vt as LinkPatchSchema, wr as SearchRequest, xc as TextAlignment, xn as UnderlinePatchSchema, xr as SearchMatch, xt as PdfLinkTargetWritableSchema, yc as StandardFont, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zc as PdfFieldActions, zn as PageFlattenResult, zr as FormEffectsResult, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-W0RCsyDE.cjs";
2
- import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-Df79fgpe.cjs";
1
+ import { $ as CaretDraftSchema, $c as PdfQuad, $o as PageRenderQuery, $r as FormDataFormat, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ao as AnnotationAppearanceManifest, Ba as AttachmentFileInfo, Bc as PdfRectDifferences, Ca as AttachmentsCache, Cc as AnnotationRef, D as FileAttachmentDTOSchema, Di as FormFieldFlags, Dn as HighlightPatchSchema, Dr as SearchSliceBudget, Dt as LinePatchSchema, En as HighlightDraftSchema, Eo as CachePins, Er as SearchSlice, Et as LineDraftSchema, F as StampDTOSchema, Fc as FreeTextIntent, Fi as ToggleFieldWidget, Fn as RedactionApplyScope, Fo as AnnotationAppearancesQuery, Fs as MetadataPatch, G as TextDTOSchema, Gc as StandardFont, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Gr as FormRepairResult, Ha as EmbeddedFileItem, Hi as AnnotationCreateResult, Hr as FormFieldDeleteResult, I as StampWireDraftSchema, Ic as InkIntent, Jc as CalloutLine, Ji as AppearanceOutcome, Jn as PageMoveResult, Jr as FormEffect, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as StrikeoutIntent, Kn as PageRotateInput, Kr as FormSetValueResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Lc as LineEnding, Li as FormValueEntry, Ln as PageFlattenInput, Lo as PageState, Lt as PolygonDTOSchema, Mc as CaretIntent, Mn as MetadataUpdateResult, Ms as PageBoxes, Mt as PolylineDraftSchema, Nc as Color, Ns as PageLayout, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oc as AnnotationBorderStyle, Oi as FormFieldOption, Oo as AnnotationAppearanceImageOptions, Or as SearchSnippet, P as ResourceRefSchema, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Q as CaretDTOSchema, Qc as PdfPoint, Qo as PageRenderOptions, Qt as CircleDTOSchema, Rc as LineEndings, Ri as FormFieldRef, Rt as PolygonDraftSchema, Sa as AttachmentDeleteResult, Sr as SearchMatch, Ti as FormFieldDTO, Tn as HighlightDTOSchema, To as PdfSaveMode, Tr as SearchRequest, Tt as LineDTOSchema, Ua as EmbeddedFileRef, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Ur as FormFieldUpdateResult, Vr as FormFieldCreateResult, W as NoteIconSchema, Wi as AnnotationMoveResult, Wn as PageDeleteInput, Wo as PageImageOptions, Wr as FormImportResult, Xn as PageMoveInput, Yc as InkList, Yn as PageStructureCache, Zc as LinePoints, Zr as FormEffectsResult, _ as UnsupportedPatchSchema, _o as SerializedEngineError, _t as LinkDraftSchema, a as AnnotationDTOSchema, as as PageGeometrySnapshot, at as FreeTextDraftSchema, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, ca as DocumentManifest, cn as StrikeoutDraftSchema, da as LayerScopes, dl as PdfFieldActions, dt as InkDraftSchema, ei as FormFieldValue, el as PdfRect, en as CirclePatchSchema, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fl as PdfPageActions, fo as AnnotationStableId, fs as PageTextSnapshot, ft as InkPatchSchema, g as UnsupportedDraftSchema, gi as FormSnapshot, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hi as FormKind, hn as SquigglyPatchSchema, ia as MutationMeta, il as DocumentActionsSnapshot, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jc as BlendMode, js as PageListSnapshot, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, kc as AnnotationFlags, la as ManifestPage, li as FormFieldDraft, ln as StrikeoutPatchSchema, mc as DocCapability, mi as WidgetPlacement, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, na as RefetchReason, nl as PdfSize, ol as PdfActionNode, ot as FreeTextPatchSchema, pl as DocumentMetadata, pn as SquigglyDTOSchema, q as TextPatchSchema, qc as TextAlignment, qo as PageNetworkRenderFormat, qr as FormWidgetLinkResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as CacheDelta, ri as FormFieldPatch, s as AnnotationDraftSchema, sl as PdfActionTree, sn as StrikeoutDTOSchema, t as AnnotationListPageSnapshot, ta as AnnotationListMutationMeta, tl as PdfRotation, u as AnnotationPatchSchema, ua as LayerScopePlane, ui as FormFieldOptionInput, ul as PdfAnnotationActions, ut as InkDTOSchema, vi as WidgetAppearanceSchema, vt as LinkPatchSchema, wc as RevisionToken, wr as SearchQuery, xa as AttachmentCreateResult, xc as PdfBits, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zi as FormWidgetRef, zn as PageFlattenResult, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-CHjkcIaL.cjs";
2
+ import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-B1uv4FaK.cjs";
3
3
  import { z } from "zod";
4
4
  //#region src/geometry/schemas.d.ts
5
5
  declare const PdfPointSchema: z.ZodType<PdfPoint>;
@@ -538,11 +538,12 @@ declare const DocumentManifestSchema: z.ZodType<DocumentManifest>;
538
538
  declare const AnnotationListPageSnapshotSchema: z.ZodType<AnnotationListPageSnapshot>;
539
539
  declare const AnnotationListSnapshotAllPagesSchema: z.ZodType<AnnotationListSnapshotAllPages>;
540
540
  /**
541
- * Wire shape of `GET /v1/docs/:docId/pages/:pon/text@contentVersion=N` and the
542
- * `pages.text` worker result. Carries the same `pageState` envelope
543
- * every page-scoped read returns, plus the full plain-text extraction
544
- * in display order and PDFium's char-count (which may exceed
545
- * `text.length / 1` when astral-plane characters are present).
541
+ * Wire shape of `GET …/text/pages/:pon/data@<contentVersion>` and the
542
+ * `pages.text` worker result: the UTF-16-faithful extraction, the CHARACTER
543
+ * space size (`charCount` — the space geometry runs tile; NOT `text.length`),
544
+ * and the optional character→text anchor map. Malformed maps are rejected
545
+ * here with the shared `charMapViolation` invariants — absent/empty map
546
+ * REQUIRES `charCount === text.length` (identity).
546
547
  */
547
548
  declare const PageTextSnapshotSchema: z.ZodType<PageTextSnapshot>;
548
549
  declare const PageGeometrySnapshotSchema: z.ZodType<PageGeometrySnapshot>;
@@ -813,6 +814,15 @@ interface SearchToken {
813
814
  skip: number;
814
815
  budget?: SearchSliceBudget;
815
816
  }
817
+ /**
818
+ * The search RESULT representation this client speaks — part of the token
819
+ * (and therefore the versioned URL), so a response-shape change can never
820
+ * serve a stale CDN body to a newer client: new tokens are new cache keys,
821
+ * and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
822
+ * an exception to the omit-defaults rule, because its entire job is to
823
+ * change the token bytes when the format changes.
824
+ */
825
+ declare const SEARCH_RESULT_FORMAT = "segments1";
816
826
  declare const encodeSearchToken: (input: SearchToken) => string;
817
827
  declare const decodeSearchToken: (raw: string) => SearchToken;
818
828
  declare function encodeTokenText(text: string): string;
@@ -1351,7 +1361,7 @@ declare const RenderTokenSchema: {
1351
1361
  * permission tiers must never share cache entries).
1352
1362
  */
1353
1363
  declare const SearchTokenSchema: {
1354
- readonly fields: readonly ["epoch", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1364
+ readonly fields: readonly ["epoch", "format", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1355
1365
  readonly maxLength: 2048;
1356
1366
  };
1357
1367
  /**
@@ -1570,5 +1580,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1570
1580
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1571
1581
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1572
1582
  //#endregion
1573
- export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1583
+ export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1574
1584
  //# sourceMappingURL=wire.d.cts.map
package/dist/wire.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as CaretDraftSchema, $i as LayerScopes, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Aa as EmbeddedFileItem, Ac as PdfSize, Ai as AnnotationCreateResult, Ar as FormFieldDeleteResult, Bc as PdfPageActions, Bo as PageRenderOptions, Cc as InkList, Ci as ToggleFieldWidget, Co as AnnotationAppearancesQuery, Cr as SearchQuery, D as FileAttachmentDTOSchema, Dc as PdfQuad, Di as FormWidgetRef, Dn as HighlightPatchSchema, Dr as SearchSnippet, Dt as LinePatchSchema, Ec as PdfPoint, Ei as FormFieldRef, En as HighlightDraftSchema, Er as SearchSliceBudget, Et as LineDraftSchema, F as StampDTOSchema, Fc as PdfActionTree, Fn as RedactionApplyScope, Fo as PageNetworkRenderFormat, Fr as FormWidgetLinkResult, G as TextDTOSchema, Gi as CacheDelta, Gn as PageRotateResult, Gr as FormFieldPatch, Hr as FormFieldValue, Hs as DocCapability, I as StampWireDraftSchema, Ii as AppearanceOutcome, Ir as FormEffect, Jn as PageMoveResult, Jo as PageTextSnapshot, Jt as SquarePatchSchema, K as TextDraftSchema, Ki as MutationMeta, Kn as PageRotateInput, Kt as SquareDTOSchema, L as StampWirePatchSchema, Ln as PageFlattenInput, Lt as PolygonDTOSchema, Mc as DocumentActionsSnapshot, Mi as AnnotationMoveResult, Mn as MetadataUpdateResult, Mo as PageImageOptions, Mr as FormImportResult, Mt as PolylineDraftSchema, Ni as AnnotationUpdateResult, Nr as FormRepairResult, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oa as AttachmentFileInfo, Oc as PdfRect, P as ResourceRefSchema, Pc as PdfActionNode, Pn as RedactionApplyResult, Pr as FormSetValueResult, Q as CaretDTOSchema, Qi as LayerScopePlane, Qr as FormFieldOptionInput, Qs as RevisionToken, Qt as CircleDTOSchema, Rc as PdfAnnotationActions, Rt as PolygonDraftSchema, Sc as CalloutLine, So as AnnotationAppearanceRenderOptions, Tc as LinePoints, Ti as FormValueEntry, Tn as HighlightDTOSchema, To as PageState, Tr as SearchSlice, Tt as LineDTOSchema, Ui as AnnotationListMutationMeta, Un as PageDeleteResult, Vc as DocumentMetadata, Vo as PageRenderQuery, Vr as FormDataFormat, W as NoteIconSchema, Wi as RefetchReason, Wn as PageDeleteInput, Xi as DocumentManifest, Xn as PageMoveInput, Yn as PageStructureCache, Ys as PdfBits, Zi as ManifestPage, Zr as FormFieldDraft, Zs as AnnotationRef, _ as UnsupportedPatchSchema, _t as LinkDraftSchema, a as AnnotationDTOSchema, ac as BlendMode, ao as SerializedEngineError, at as FreeTextDraftSchema, bc as StrikeoutIntent, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, cn as StrikeoutDraftSchema, cs as PageLayout, da as AttachmentsCache, dc as LineEnding, dt as InkDraftSchema, en as CirclePatchSchema, eo as AnnotationStableId, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fc as LineEndings, ft as InkPatchSchema, g as UnsupportedDraftSchema, gi as FormFieldOption, go as AnnotationAppearanceImageOptions, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hi as FormFieldFlags, hn as SquigglyPatchSchema, ii as FormSnapshot, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, ja as EmbeddedFileRef, ji as AnnotationDeleteResult, jr as FormFieldUpdateResult, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, kc as PdfRotation, kr as FormFieldCreateResult, la as AttachmentCreateResult, lc as FreeTextIntent, ln as StrikeoutPatchSchema, mc as PdfRectDifferences, mn as SquigglyDraftSchema, mo as CachePins, n as AnnotationListSnapshotAllPages, nc as AnnotationBorderStyle, ni as WidgetPlacement, oc as CaretIntent, oi as WidgetAppearanceSchema, os as PageListSnapshot, ot as FreeTextPatchSchema, pi as FormFieldDTO, pn as SquigglyDTOSchema, po as PdfSaveMode, q as TextPatchSchema, qo as PageGeometrySnapshot, qt as SquareDraftSchema, r as ANNOTATION_KINDS, rc as AnnotationFlags, ri as FormKind, s as AnnotationDraftSchema, sc as Color, sn as StrikeoutDTOSchema, ss as PageBoxes, t as AnnotationListPageSnapshot, u as AnnotationPatchSchema, ua as AttachmentDeleteResult, uc as InkIntent, us as MetadataPatch, ut as InkDTOSchema, vo as AnnotationAppearanceManifest, vt as LinkPatchSchema, wr as SearchRequest, xc as TextAlignment, xn as UnderlinePatchSchema, xr as SearchMatch, xt as PdfLinkTargetWritableSchema, yc as StandardFont, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zc as PdfFieldActions, zn as PageFlattenResult, zr as FormEffectsResult, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-W0RCsyDE.js";
2
- import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-B-tULKNY.js";
1
+ import { $ as CaretDraftSchema, $c as PdfQuad, $o as PageRenderQuery, $r as FormDataFormat, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ao as AnnotationAppearanceManifest, Ba as AttachmentFileInfo, Bc as PdfRectDifferences, Ca as AttachmentsCache, Cc as AnnotationRef, D as FileAttachmentDTOSchema, Di as FormFieldFlags, Dn as HighlightPatchSchema, Dr as SearchSliceBudget, Dt as LinePatchSchema, En as HighlightDraftSchema, Eo as CachePins, Er as SearchSlice, Et as LineDraftSchema, F as StampDTOSchema, Fc as FreeTextIntent, Fi as ToggleFieldWidget, Fn as RedactionApplyScope, Fo as AnnotationAppearancesQuery, Fs as MetadataPatch, G as TextDTOSchema, Gc as StandardFont, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Gr as FormRepairResult, Ha as EmbeddedFileItem, Hi as AnnotationCreateResult, Hr as FormFieldDeleteResult, I as StampWireDraftSchema, Ic as InkIntent, Jc as CalloutLine, Ji as AppearanceOutcome, Jn as PageMoveResult, Jr as FormEffect, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as StrikeoutIntent, Kn as PageRotateInput, Kr as FormSetValueResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Lc as LineEnding, Li as FormValueEntry, Ln as PageFlattenInput, Lo as PageState, Lt as PolygonDTOSchema, Mc as CaretIntent, Mn as MetadataUpdateResult, Ms as PageBoxes, Mt as PolylineDraftSchema, Nc as Color, Ns as PageLayout, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oc as AnnotationBorderStyle, Oi as FormFieldOption, Oo as AnnotationAppearanceImageOptions, Or as SearchSnippet, P as ResourceRefSchema, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Q as CaretDTOSchema, Qc as PdfPoint, Qo as PageRenderOptions, Qt as CircleDTOSchema, Rc as LineEndings, Ri as FormFieldRef, Rt as PolygonDraftSchema, Sa as AttachmentDeleteResult, Sr as SearchMatch, Ti as FormFieldDTO, Tn as HighlightDTOSchema, To as PdfSaveMode, Tr as SearchRequest, Tt as LineDTOSchema, Ua as EmbeddedFileRef, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Ur as FormFieldUpdateResult, Vr as FormFieldCreateResult, W as NoteIconSchema, Wi as AnnotationMoveResult, Wn as PageDeleteInput, Wo as PageImageOptions, Wr as FormImportResult, Xn as PageMoveInput, Yc as InkList, Yn as PageStructureCache, Zc as LinePoints, Zr as FormEffectsResult, _ as UnsupportedPatchSchema, _o as SerializedEngineError, _t as LinkDraftSchema, a as AnnotationDTOSchema, as as PageGeometrySnapshot, at as FreeTextDraftSchema, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, ca as DocumentManifest, cn as StrikeoutDraftSchema, da as LayerScopes, dl as PdfFieldActions, dt as InkDraftSchema, ei as FormFieldValue, el as PdfRect, en as CirclePatchSchema, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fl as PdfPageActions, fo as AnnotationStableId, fs as PageTextSnapshot, ft as InkPatchSchema, g as UnsupportedDraftSchema, gi as FormSnapshot, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hi as FormKind, hn as SquigglyPatchSchema, ia as MutationMeta, il as DocumentActionsSnapshot, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jc as BlendMode, js as PageListSnapshot, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, kc as AnnotationFlags, la as ManifestPage, li as FormFieldDraft, ln as StrikeoutPatchSchema, mc as DocCapability, mi as WidgetPlacement, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, na as RefetchReason, nl as PdfSize, ol as PdfActionNode, ot as FreeTextPatchSchema, pl as DocumentMetadata, pn as SquigglyDTOSchema, q as TextPatchSchema, qc as TextAlignment, qo as PageNetworkRenderFormat, qr as FormWidgetLinkResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as CacheDelta, ri as FormFieldPatch, s as AnnotationDraftSchema, sl as PdfActionTree, sn as StrikeoutDTOSchema, t as AnnotationListPageSnapshot, ta as AnnotationListMutationMeta, tl as PdfRotation, u as AnnotationPatchSchema, ua as LayerScopePlane, ui as FormFieldOptionInput, ul as PdfAnnotationActions, ut as InkDTOSchema, vi as WidgetAppearanceSchema, vt as LinkPatchSchema, wc as RevisionToken, wr as SearchQuery, xa as AttachmentCreateResult, xc as PdfBits, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zi as FormWidgetRef, zn as PageFlattenResult, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-CHjkcIaL.js";
2
+ import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-CrxGktMI.js";
3
3
  import { z } from "zod";
4
4
  //#region src/geometry/schemas.d.ts
5
5
  declare const PdfPointSchema: z.ZodType<PdfPoint>;
@@ -538,11 +538,12 @@ declare const DocumentManifestSchema: z.ZodType<DocumentManifest>;
538
538
  declare const AnnotationListPageSnapshotSchema: z.ZodType<AnnotationListPageSnapshot>;
539
539
  declare const AnnotationListSnapshotAllPagesSchema: z.ZodType<AnnotationListSnapshotAllPages>;
540
540
  /**
541
- * Wire shape of `GET /v1/docs/:docId/pages/:pon/text@contentVersion=N` and the
542
- * `pages.text` worker result. Carries the same `pageState` envelope
543
- * every page-scoped read returns, plus the full plain-text extraction
544
- * in display order and PDFium's char-count (which may exceed
545
- * `text.length / 1` when astral-plane characters are present).
541
+ * Wire shape of `GET …/text/pages/:pon/data@<contentVersion>` and the
542
+ * `pages.text` worker result: the UTF-16-faithful extraction, the CHARACTER
543
+ * space size (`charCount` — the space geometry runs tile; NOT `text.length`),
544
+ * and the optional character→text anchor map. Malformed maps are rejected
545
+ * here with the shared `charMapViolation` invariants — absent/empty map
546
+ * REQUIRES `charCount === text.length` (identity).
546
547
  */
547
548
  declare const PageTextSnapshotSchema: z.ZodType<PageTextSnapshot>;
548
549
  declare const PageGeometrySnapshotSchema: z.ZodType<PageGeometrySnapshot>;
@@ -813,6 +814,15 @@ interface SearchToken {
813
814
  skip: number;
814
815
  budget?: SearchSliceBudget;
815
816
  }
817
+ /**
818
+ * The search RESULT representation this client speaks — part of the token
819
+ * (and therefore the versioned URL), so a response-shape change can never
820
+ * serve a stale CDN body to a newer client: new tokens are new cache keys,
821
+ * and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
822
+ * an exception to the omit-defaults rule, because its entire job is to
823
+ * change the token bytes when the format changes.
824
+ */
825
+ declare const SEARCH_RESULT_FORMAT = "segments1";
816
826
  declare const encodeSearchToken: (input: SearchToken) => string;
817
827
  declare const decodeSearchToken: (raw: string) => SearchToken;
818
828
  declare function encodeTokenText(text: string): string;
@@ -1351,7 +1361,7 @@ declare const RenderTokenSchema: {
1351
1361
  * permission tiers must never share cache entries).
1352
1362
  */
1353
1363
  declare const SearchTokenSchema: {
1354
- readonly fields: readonly ["epoch", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1364
+ readonly fields: readonly ["epoch", "format", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1355
1365
  readonly maxLength: 2048;
1356
1366
  };
1357
1367
  /**
@@ -1570,5 +1580,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1570
1580
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1571
1581
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1572
1582
  //#endregion
1573
- export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1583
+ export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1574
1584
  //# sourceMappingURL=wire.d.ts.map
package/dist/wire.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as checkCapability, t as checkAnyCapability } from "./resolver-DiPMTfcy.js";
2
- import { $ as PageStateSchema, $n as FreeTextIntentSchema, $t as SquigglyDraftSchema, A as FormSetValueResultSchema, An as FileAttachmentPatchSchema, At as AnnotationDTOSchema, B as PageDeleteResultSchema, Bn as CaretDraftSchema, Bt as UnderlinePatchSchema, C as FormEffectSchema, Cn as HighlightDraftSchema, Cr as PdfRotationSchema, Ct as FormKindSchema, D as FormFieldUpdateResultSchema, Dn as FreeTextPatchSchema, Dt as ToggleFieldWidgetSchema, E as FormFieldDeleteResultSchema, En as FreeTextDraftSchema, Et as FormWidgetRefSchema, F as MetadataUpdateResultSchema, Fn as EmbeddedFileRefSchema, Ft as UnsupportedDTOSchema, G as PageListSnapshotSchema, Gn as AnnotationFlagsPartialSchema, Gt as StrikeoutDTOSchema, H as PageFlattenResultSchema, Hn as AnnotationBaseShape, Ht as TextDTOSchema, I as MutationMetaSchema, In as CircleDTOSchema, It as UnsupportedDraftSchema, J as PageNetworkRenderFormatSchema, Jn as AnnotationRefSchema, Jt as ResourceRefSchema, K as PageMoveInputSchema, Kn as AnnotationFlagsSchema, Kt as StrikeoutDraftSchema, L as OpenDocumentResponseSchema, Ln as CircleDraftSchema, Lt as UnsupportedPatchSchema, M as LayerScopesSchema, Mn as WireAttachmentFileSchema, Mt as AnnotationPatchSchema, N as ManifestPageSchema, Nn as AttachmentFileInfoSchema, Nt as KIND_BY_SUBTYPE, O as FormImportResultSchema, On as FileAttachmentDTOSchema, Ot as WidgetPlacementSchema, P as MetadataPatchSchema, Pn as EmbeddedFileItemSchema, Pt as WidgetAppearanceSchema, Q as PageRotateResultSchema, Qn as ColorSchema, Qt as SquigglyDTOSchema, R as PageBoxesSchema, Rn as CirclePatchSchema, Rt as UnderlineDTOSchema, S as EngineErrorPayloadSchema, Sn as HighlightDTOSchema, Sr as PdfRectSchema, St as FormFieldValueSchema, T as FormFieldCreateResultSchema, Tn as FreeTextDTOSchema, Tt as FormValueEntrySchema, U as PageGeometrySnapshotSchema, Un as AnnotationBorderStyleSchema, Ut as TextDraftSchema, V as PageFlattenInputSchema, Vn as CaretPatchSchema, Vt as NoteIconSchema, W as PageLayoutSchema, Wn as AnnotationDraftBaseShape, Wt as TextPatchSchema, X as PageRenderQuerySchema, Xn as BlendModeSchema, Xt as StampWireDraftSchema, Y as PageRenderAnnotatedQuerySchema, Yn as AnnotationStableIdSchema, Yt as StampDTOSchema, Z as PageRotateInputSchema, Zn as CaretIntentSchema, Zt as StampWirePatchSchema, _ as CachePinsSchema, _n as LineDraftSchema, _r as CalloutLineSchema, _t as FormFieldFlagsSchema, a as AnnotationCreateResultSchema, an as PolylineDraftSchema, ar as RectSchema, at as RefetchReasonSchema, b as DocumentMetadataSchema, bn as InkDraftSchema, br as PdfPointSchema, bt as FormFieldPatchSchema, c as AnnotationListPageSnapshotSchema, cn as PolygonDraftSchema, cr as StrikeoutIntentSchema, ct as SearchQuerySchema, d as AnnotationUpdateResultSchema, dn as LinkDraftSchema, dr as PdfActionNodeSchema, dt as SearchSnippetSchema, en as SquigglyPatchSchema, er as InkIntentSchema, et as PageStructureCacheSchema, f as AppearanceOutcomeSchema, fn as LinkPatchSchema, fr as PdfActionTreeSchema, ft as WeakAnnotationSessionPagesRequestSchema, g as CacheDeltaSchema, gn as LineDTOSchema, gr as PdfPageActionsSchema, gt as FormFieldDraftSchema, h as AttachmentsCacheSchema, hn as PdfLinkTargetWritableSchema, hr as PdfFieldActionsSchema, ht as FormFieldDTOSchema, i as AnnotationAppearancesQuerySchema, in as PolylineDTOSchema, ir as PointSchema, it as RedactionApplyScopeSchema, j as FormWidgetLinkResultSchema, jn as FileAttachmentWireDraftSchema, jt as AnnotationDraftSchema, k as FormRepairResultSchema, kn as FileAttachmentIconSchema, kt as ANNOTATION_KINDS, l as AnnotationListSnapshotAllPagesSchema, ln as PolygonPatchSchema, lr as TextAlignmentSchema, lt as SearchRequestSchema, m as AttachmentDeleteResultSchema, mn as PdfLinkTargetSchema, mr as PdfAnnotationActionsSchema, mt as FormDataFormatSchema, n as AccessResponseSchema, nn as SquareDraftSchema, nr as LineEndingsSchema, nt as PdfSaveModeSchema, o as AnnotationDeleteResultSchema, on as PolylinePatchSchema, or as RevisionTokenSchema, ot as SearchMatchSchema, p as AttachmentCreateResultSchema, pn as PdfDestinationSchema, pr as PdfActionTypeSchema, pt as WeakAnnotationSessionResponseSchema, q as PageMoveResultSchema, qn as AnnotationPatchBaseShape, qt as StrikeoutPatchSchema, r as AnnotationAppearanceManifestSchema, rn as SquarePatchSchema, rr as PdfRectDifferencesSchema, rt as RedactionApplyResultSchema, s as AnnotationListMutationMetaSchema, sn as PolygonDTOSchema, sr as StandardFontSchema, st as SearchModeSchema, t as AccessRequestSchema, tn as SquareDTOSchema, tr as LineEndingSchema, tt as PageTextSnapshotSchema, u as AnnotationMoveResultSchema, un as LinkDTOSchema, ur as DocumentActionsSnapshotSchema, ut as SearchSliceSchema, v as DocumentHeadSchema, vn as LinePatchSchema, vr as InkListSchema, vt as FormFieldOptionInputSchema, w as FormEffectsResultSchema, wn as HighlightPatchSchema, wr as PdfSizeSchema, wt as FormSnapshotSchema, x as DocumentSecurityStateSchema, xn as InkPatchSchema, xr as PdfQuadSchema, xt as FormFieldRefSchema, y as DocumentManifestSchema, yn as InkDTOSchema, yr as LinePointsSchema, yt as FormFieldOptionSchema, z as PageDeleteInputSchema, zn as CaretDTOSchema, zt as UnderlineDraftSchema } from "./schemas-9OpSSeM6.js";
2
+ import { $ as PageStateSchema, $n as FreeTextIntentSchema, $t as SquigglyDraftSchema, A as FormSetValueResultSchema, An as FileAttachmentPatchSchema, At as AnnotationDTOSchema, B as PageDeleteResultSchema, Bn as CaretDraftSchema, Bt as UnderlinePatchSchema, C as FormEffectSchema, Cn as HighlightDraftSchema, Cr as PdfRotationSchema, Ct as FormKindSchema, D as FormFieldUpdateResultSchema, Dn as FreeTextPatchSchema, Dt as ToggleFieldWidgetSchema, E as FormFieldDeleteResultSchema, En as FreeTextDraftSchema, Et as FormWidgetRefSchema, F as MetadataUpdateResultSchema, Fn as EmbeddedFileRefSchema, Ft as UnsupportedDTOSchema, G as PageListSnapshotSchema, Gn as AnnotationFlagsPartialSchema, Gt as StrikeoutDTOSchema, H as PageFlattenResultSchema, Hn as AnnotationBaseShape, Ht as TextDTOSchema, I as MutationMetaSchema, In as CircleDTOSchema, It as UnsupportedDraftSchema, J as PageNetworkRenderFormatSchema, Jn as AnnotationRefSchema, Jt as ResourceRefSchema, K as PageMoveInputSchema, Kn as AnnotationFlagsSchema, Kt as StrikeoutDraftSchema, L as OpenDocumentResponseSchema, Ln as CircleDraftSchema, Lt as UnsupportedPatchSchema, M as LayerScopesSchema, Mn as WireAttachmentFileSchema, Mt as AnnotationPatchSchema, N as ManifestPageSchema, Nn as AttachmentFileInfoSchema, Nt as KIND_BY_SUBTYPE, O as FormImportResultSchema, On as FileAttachmentDTOSchema, Ot as WidgetPlacementSchema, P as MetadataPatchSchema, Pn as EmbeddedFileItemSchema, Pt as WidgetAppearanceSchema, Q as PageRotateResultSchema, Qn as ColorSchema, Qt as SquigglyDTOSchema, R as PageBoxesSchema, Rn as CirclePatchSchema, Rt as UnderlineDTOSchema, S as EngineErrorPayloadSchema, Sn as HighlightDTOSchema, Sr as PdfRectSchema, St as FormFieldValueSchema, T as FormFieldCreateResultSchema, Tn as FreeTextDTOSchema, Tt as FormValueEntrySchema, U as PageGeometrySnapshotSchema, Un as AnnotationBorderStyleSchema, Ut as TextDraftSchema, V as PageFlattenInputSchema, Vn as CaretPatchSchema, Vt as NoteIconSchema, W as PageLayoutSchema, Wn as AnnotationDraftBaseShape, Wt as TextPatchSchema, X as PageRenderQuerySchema, Xn as BlendModeSchema, Xt as StampWireDraftSchema, Y as PageRenderAnnotatedQuerySchema, Yn as AnnotationStableIdSchema, Yt as StampDTOSchema, Z as PageRotateInputSchema, Zn as CaretIntentSchema, Zt as StampWirePatchSchema, _ as CachePinsSchema, _n as LineDraftSchema, _r as CalloutLineSchema, _t as FormFieldFlagsSchema, a as AnnotationCreateResultSchema, an as PolylineDraftSchema, ar as RectSchema, at as RefetchReasonSchema, b as DocumentMetadataSchema, bn as InkDraftSchema, br as PdfPointSchema, bt as FormFieldPatchSchema, c as AnnotationListPageSnapshotSchema, cn as PolygonDraftSchema, cr as StrikeoutIntentSchema, ct as SearchQuerySchema, d as AnnotationUpdateResultSchema, dn as LinkDraftSchema, dr as PdfActionNodeSchema, dt as SearchSnippetSchema, en as SquigglyPatchSchema, er as InkIntentSchema, et as PageStructureCacheSchema, f as AppearanceOutcomeSchema, fn as LinkPatchSchema, fr as PdfActionTreeSchema, ft as WeakAnnotationSessionPagesRequestSchema, g as CacheDeltaSchema, gn as LineDTOSchema, gr as PdfPageActionsSchema, gt as FormFieldDraftSchema, h as AttachmentsCacheSchema, hn as PdfLinkTargetWritableSchema, hr as PdfFieldActionsSchema, ht as FormFieldDTOSchema, i as AnnotationAppearancesQuerySchema, in as PolylineDTOSchema, ir as PointSchema, it as RedactionApplyScopeSchema, j as FormWidgetLinkResultSchema, jn as FileAttachmentWireDraftSchema, jt as AnnotationDraftSchema, k as FormRepairResultSchema, kn as FileAttachmentIconSchema, kt as ANNOTATION_KINDS, l as AnnotationListSnapshotAllPagesSchema, ln as PolygonPatchSchema, lr as TextAlignmentSchema, lt as SearchRequestSchema, m as AttachmentDeleteResultSchema, mn as PdfLinkTargetSchema, mr as PdfAnnotationActionsSchema, mt as FormDataFormatSchema, n as AccessResponseSchema, nn as SquareDraftSchema, nr as LineEndingsSchema, nt as PdfSaveModeSchema, o as AnnotationDeleteResultSchema, on as PolylinePatchSchema, or as RevisionTokenSchema, ot as SearchMatchSchema, p as AttachmentCreateResultSchema, pn as PdfDestinationSchema, pr as PdfActionTypeSchema, pt as WeakAnnotationSessionResponseSchema, q as PageMoveResultSchema, qn as AnnotationPatchBaseShape, qt as StrikeoutPatchSchema, r as AnnotationAppearanceManifestSchema, rn as SquarePatchSchema, rr as PdfRectDifferencesSchema, rt as RedactionApplyResultSchema, s as AnnotationListMutationMetaSchema, sn as PolygonDTOSchema, sr as StandardFontSchema, st as SearchModeSchema, t as AccessRequestSchema, tn as SquareDTOSchema, tr as LineEndingSchema, tt as PageTextSnapshotSchema, u as AnnotationMoveResultSchema, un as LinkDTOSchema, ur as DocumentActionsSnapshotSchema, ut as SearchSliceSchema, v as DocumentHeadSchema, vn as LinePatchSchema, vr as InkListSchema, vt as FormFieldOptionInputSchema, w as FormEffectsResultSchema, wn as HighlightPatchSchema, wr as PdfSizeSchema, wt as FormSnapshotSchema, x as DocumentSecurityStateSchema, xn as InkPatchSchema, xr as PdfQuadSchema, xt as FormFieldRefSchema, y as DocumentManifestSchema, yn as InkDTOSchema, yr as LinePointsSchema, yt as FormFieldOptionSchema, z as PageDeleteInputSchema, zn as CaretDTOSchema, zt as UnderlineDraftSchema } from "./schemas-ES6-TkIl.js";
3
3
  //#region src/wire/token.ts
4
4
  const DEFAULT_MAX_TOKEN_LENGTH = 256;
5
5
  const FIELD_NAME_RE = /^[A-Za-z][A-Za-z0-9]*(?:\.[A-Za-z][A-Za-z0-9]*)*$/;
@@ -127,6 +127,7 @@ const RenderTokenSchema = {
127
127
  const SearchTokenSchema = {
128
128
  fields: [
129
129
  "epoch",
130
+ "format",
130
131
  "matchCase",
131
132
  "matchDiacritics",
132
133
  "maxMatches",
@@ -208,10 +209,20 @@ const decodeRenderToken = (raw) => decodeToken(RenderTokenSchema, raw);
208
209
  const encodeAnnotationAppearancesRenderToken = (input) => encodeToken(AnnotationAppearancesRenderTokenSchema, input);
209
210
  /** Decode an annotation-appearance render token to a flat field map. */
210
211
  const decodeAnnotationAppearancesRenderToken = (raw) => decodeToken(AnnotationAppearancesRenderTokenSchema, raw);
212
+ /**
213
+ * The search RESULT representation this client speaks — part of the token
214
+ * (and therefore the versioned URL), so a response-shape change can never
215
+ * serve a stale CDN body to a newer client: new tokens are new cache keys,
216
+ * and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
217
+ * an exception to the omit-defaults rule, because its entire job is to
218
+ * change the token bytes when the format changes.
219
+ */
220
+ const SEARCH_RESULT_FORMAT = "segments1";
211
221
  const encodeSearchToken = (input) => {
212
222
  const q = input.query;
213
223
  return encodeToken(SearchTokenSchema, {
214
224
  epoch: input.epoch,
225
+ format: SEARCH_RESULT_FORMAT,
215
226
  q: encodeTokenText(q.text),
216
227
  regex: q.regex ? true : void 0,
217
228
  matchCase: q.matchCase ? true : void 0,
@@ -227,6 +238,7 @@ const decodeSearchToken = (raw) => {
227
238
  const t = decodeToken(SearchTokenSchema, raw);
228
239
  if (t.epoch === void 0) throw new Error("search token is missing \"epoch\"");
229
240
  if (t.q === void 0) throw new Error("search token is missing \"q\"");
241
+ if (t.format !== "segments1") throw new Error(`search token has unsupported result format "${t.format ?? "legacy"}" (expected "${SEARCH_RESULT_FORMAT}")`);
230
242
  const query = {
231
243
  text: decodeTokenText(t.q),
232
244
  ...t.regex === "true" ? { regex: true } : {},
@@ -1303,6 +1315,6 @@ function annotationRenderOptionsFromImageOptions(options) {
1303
1315
  };
1304
1316
  }
1305
1317
  //#endregion
1306
- 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, 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, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, 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, 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, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1318
+ 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, 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, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, 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, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1307
1319
 
1308
1320
  //# sourceMappingURL=wire.js.map