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

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-ByBflvEl.cjs → AbortError-BFwCIKC6.cjs} +2 -2
  2. package/dist/{AbortError-ByBflvEl.cjs.map → AbortError-BFwCIKC6.cjs.map} +1 -1
  3. package/dist/{AbortError-CjSasIlL.js → AbortError-D0w0N4pJ.js} +2 -2
  4. package/dist/{AbortError-CjSasIlL.js.map → AbortError-D0w0N4pJ.js.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-_Z600IzD.d.cts} +216 -20
  6. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.ts → AnnotationListSnapshot-_Z600IzD.d.ts} +216 -20
  7. package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-BR4tesJK.d.ts} +2 -2
  8. package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-CoHQf0Ju.d.cts} +2 -2
  9. package/dist/{Engine-D9loFZc1.d.cts → Engine-LHgbW5z-.d.cts} +4 -4
  10. package/dist/{Engine-B7Oe7f5i.d.ts → Engine-h_6P4pjM.d.ts} +4 -4
  11. package/dist/{builders-C548U47M.js → builders-BWgXkLKd.js} +382 -167
  12. package/dist/builders-BWgXkLKd.js.map +1 -0
  13. package/dist/{builders-BvikWRuO.cjs → builders-CBK8k_cn.cjs} +423 -220
  14. package/dist/builders-CBK8k_cn.cjs.map +1 -0
  15. package/dist/conformance.cjs +303 -135
  16. package/dist/conformance.cjs.map +1 -1
  17. package/dist/conformance.d.cts +37 -3
  18. package/dist/conformance.d.ts +37 -3
  19. package/dist/conformance.js +303 -136
  20. package/dist/conformance.js.map +1 -1
  21. package/dist/{fold-CB4fAOOy.js → fold-D3_ZiKOg.js} +162 -3
  22. package/dist/fold-D3_ZiKOg.js.map +1 -0
  23. package/dist/{fold-IaMph3CO.cjs → fold-M6iEyY8X.cjs} +233 -2
  24. package/dist/fold-M6iEyY8X.cjs.map +1 -0
  25. package/dist/index.cjs +22 -12
  26. package/dist/index.d.cts +2 -2
  27. package/dist/index.d.ts +2 -2
  28. package/dist/index.js +4 -4
  29. package/dist/runtime.cjs +23 -13
  30. package/dist/runtime.d.cts +4 -4
  31. package/dist/runtime.d.ts +4 -4
  32. package/dist/runtime.js +5 -5
  33. package/dist/{schemas-9OpSSeM6.js → schemas-C32v81cE.js} +29 -4
  34. package/dist/schemas-C32v81cE.js.map +1 -0
  35. package/dist/{schemas-B_1VyFsm.cjs → schemas-CLByd6ze.cjs} +29 -4
  36. package/dist/schemas-CLByd6ze.cjs.map +1 -0
  37. package/dist/{subtype-qejjVr6h.cjs → subtype-C4XA7C16.cjs} +9 -1
  38. package/dist/subtype-C4XA7C16.cjs.map +1 -0
  39. package/dist/{subtype-BvAzLCGC.js → subtype-DsxZbJtP.js} +9 -1
  40. package/dist/subtype-DsxZbJtP.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 +13 -4
  44. package/dist/wire.d.ts +13 -4
  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 PdfActionNode, $o as PageRenderQuery, $r as FormDataFormat, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ac as LineEnding, Ao as AnnotationAppearanceManifest, Ba as AttachmentFileInfo, Bc as TextAlignment, Ca as AttachmentsCache, D as FileAttachmentDTOSchema, Di as FormFieldFlags, Dn as HighlightPatchSchema, Dr as SearchSliceBudget, Dt as LinePatchSchema, Ec as Color, En as HighlightDraftSchema, Eo as CachePins, Er as SearchSlice, Es as PageLayout, Et as LineDraftSchema, F as StampDTOSchema, Fi as ToggleFieldWidget, Fn as RedactionApplyScope, Fo as AnnotationAppearancesQuery, G as TextDTOSchema, Gc as PdfPoint, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Gr as FormRepairResult, Ha as EmbeddedFileItem, Hc as InkList, Hi as AnnotationCreateResult, Hr as FormFieldDeleteResult, I as StampWireDraftSchema, Jc as PdfRotation, Ji as AppearanceOutcome, Jn as PageMoveResult, Jr as FormEffect, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as PdfQuad, Kn as PageRotateInput, Kr as FormSetValueResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Li as FormValueEntry, Ln as PageFlattenInput, Lo as PageState, Lt as PolygonDTOSchema, Mn as MetadataUpdateResult, Mt as PolylineDraftSchema, Nc as PdfRectDifferences, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oc as FreeTextIntent, Oi as FormFieldOption, Oo as AnnotationAppearanceImageOptions, Or as SearchSnippet, Os as MetadataPatch, P as ResourceRefSchema, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Q as CaretDTOSchema, Qo as PageRenderOptions, Qt as CircleDTOSchema, Rc as StandardFont, Ri as FormFieldRef, Rt as PolygonDraftSchema, Sa as AttachmentDeleteResult, Sc as AnnotationFlags, Sr as SearchMatch, Tc as CaretIntent, Ti as FormFieldDTO, Tn as HighlightDTOSchema, To as PdfSaveMode, Tr as SearchRequest, Ts as PageBoxes, Tt as LineDTOSchema, Ua as EmbeddedFileRef, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Ur as FormFieldUpdateResult, Vc as CalloutLine, Vr as FormFieldCreateResult, W as NoteIconSchema, Wc as LinePoints, Wi as AnnotationMoveResult, Wn as PageDeleteInput, Wo as PageImageOptions, Wr as FormImportResult, Xn as PageMoveInput, Yc as PdfSize, Yn as PageStructureCache, Zc as DocumentActionsSnapshot, Zr as FormEffectsResult, _ as UnsupportedPatchSchema, _c as RevisionToken, _o as SerializedEngineError, _t as LinkDraftSchema, a as AnnotationDTOSchema, al as PdfPageActions, as as PageGeometrySnapshot, at as FreeTextDraftSchema, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, ca as DocumentManifest, cn as StrikeoutDraftSchema, da as LayerScopes, dt as InkDraftSchema, ei as FormFieldValue, el as PdfActionTree, en as CirclePatchSchema, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fo as AnnotationStableId, fs as PageTextSnapshot, ft as InkPatchSchema, g as UnsupportedDraftSchema, gc as AnnotationRef, gi as FormSnapshot, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hi as FormKind, hn as SquigglyPatchSchema, ia as MutationMeta, il as PdfFieldActions, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jc as LineEndings, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, kc as InkIntent, la as ManifestPage, li as FormFieldDraft, ln as StrikeoutPatchSchema, mc as PdfBits, mi as WidgetPlacement, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, na as RefetchReason, ol as DocumentMetadata, ot as FreeTextPatchSchema, pn as SquigglyDTOSchema, q as TextPatchSchema, qc as PdfRect, qo as PageNetworkRenderFormat, qr as FormWidgetLinkResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as CacheDelta, ri as FormFieldPatch, rl as PdfAnnotationActions, s as AnnotationDraftSchema, sc as DocCapability, sn as StrikeoutDTOSchema, t as AnnotationListPageSnapshot, ta as AnnotationListMutationMeta, u as AnnotationPatchSchema, ua as LayerScopePlane, ui as FormFieldOptionInput, ut as InkDTOSchema, vi as WidgetAppearanceSchema, vt as LinkPatchSchema, wc as BlendMode, wr as SearchQuery, ws as PageListSnapshot, xa as AttachmentCreateResult, xc as AnnotationBorderStyle, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zc as StrikeoutIntent, zi as FormWidgetRef, zn as PageFlattenResult, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-_Z600IzD.cjs";
2
+ import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-CoHQf0Ju.cjs";
3
3
  import { z } from "zod";
4
4
  //#region src/geometry/schemas.d.ts
5
5
  declare const PdfPointSchema: z.ZodType<PdfPoint>;
@@ -813,6 +813,15 @@ interface SearchToken {
813
813
  skip: number;
814
814
  budget?: SearchSliceBudget;
815
815
  }
816
+ /**
817
+ * The search RESULT representation this client speaks — part of the token
818
+ * (and therefore the versioned URL), so a response-shape change can never
819
+ * serve a stale CDN body to a newer client: new tokens are new cache keys,
820
+ * and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
821
+ * an exception to the omit-defaults rule, because its entire job is to
822
+ * change the token bytes when the format changes.
823
+ */
824
+ declare const SEARCH_RESULT_FORMAT = "segments1";
816
825
  declare const encodeSearchToken: (input: SearchToken) => string;
817
826
  declare const decodeSearchToken: (raw: string) => SearchToken;
818
827
  declare function encodeTokenText(text: string): string;
@@ -1351,7 +1360,7 @@ declare const RenderTokenSchema: {
1351
1360
  * permission tiers must never share cache entries).
1352
1361
  */
1353
1362
  declare const SearchTokenSchema: {
1354
- readonly fields: readonly ["epoch", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1363
+ readonly fields: readonly ["epoch", "format", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1355
1364
  readonly maxLength: 2048;
1356
1365
  };
1357
1366
  /**
@@ -1570,5 +1579,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1570
1579
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1571
1580
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1572
1581
  //#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 };
1582
+ 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
1583
  //# 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 PdfActionNode, $o as PageRenderQuery, $r as FormDataFormat, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ac as LineEnding, Ao as AnnotationAppearanceManifest, Ba as AttachmentFileInfo, Bc as TextAlignment, Ca as AttachmentsCache, D as FileAttachmentDTOSchema, Di as FormFieldFlags, Dn as HighlightPatchSchema, Dr as SearchSliceBudget, Dt as LinePatchSchema, Ec as Color, En as HighlightDraftSchema, Eo as CachePins, Er as SearchSlice, Es as PageLayout, Et as LineDraftSchema, F as StampDTOSchema, Fi as ToggleFieldWidget, Fn as RedactionApplyScope, Fo as AnnotationAppearancesQuery, G as TextDTOSchema, Gc as PdfPoint, Gi as AnnotationUpdateResult, Gn as PageRotateResult, Gr as FormRepairResult, Ha as EmbeddedFileItem, Hc as InkList, Hi as AnnotationCreateResult, Hr as FormFieldDeleteResult, I as StampWireDraftSchema, Jc as PdfRotation, Ji as AppearanceOutcome, Jn as PageMoveResult, Jr as FormEffect, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as PdfQuad, Kn as PageRotateInput, Kr as FormSetValueResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Li as FormValueEntry, Ln as PageFlattenInput, Lo as PageState, Lt as PolygonDTOSchema, Mn as MetadataUpdateResult, Mt as PolylineDraftSchema, Nc as PdfRectDifferences, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oc as FreeTextIntent, Oi as FormFieldOption, Oo as AnnotationAppearanceImageOptions, Or as SearchSnippet, Os as MetadataPatch, P as ResourceRefSchema, Pn as RedactionApplyResult, Po as AnnotationAppearanceRenderOptions, Q as CaretDTOSchema, Qo as PageRenderOptions, Qt as CircleDTOSchema, Rc as StandardFont, Ri as FormFieldRef, Rt as PolygonDraftSchema, Sa as AttachmentDeleteResult, Sc as AnnotationFlags, Sr as SearchMatch, Tc as CaretIntent, Ti as FormFieldDTO, Tn as HighlightDTOSchema, To as PdfSaveMode, Tr as SearchRequest, Ts as PageBoxes, Tt as LineDTOSchema, Ua as EmbeddedFileRef, Ui as AnnotationDeleteResult, Un as PageDeleteResult, Ur as FormFieldUpdateResult, Vc as CalloutLine, Vr as FormFieldCreateResult, W as NoteIconSchema, Wc as LinePoints, Wi as AnnotationMoveResult, Wn as PageDeleteInput, Wo as PageImageOptions, Wr as FormImportResult, Xn as PageMoveInput, Yc as PdfSize, Yn as PageStructureCache, Zc as DocumentActionsSnapshot, Zr as FormEffectsResult, _ as UnsupportedPatchSchema, _c as RevisionToken, _o as SerializedEngineError, _t as LinkDraftSchema, a as AnnotationDTOSchema, al as PdfPageActions, as as PageGeometrySnapshot, at as FreeTextDraftSchema, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, ca as DocumentManifest, cn as StrikeoutDraftSchema, da as LayerScopes, dt as InkDraftSchema, ei as FormFieldValue, el as PdfActionTree, en as CirclePatchSchema, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fo as AnnotationStableId, fs as PageTextSnapshot, ft as InkPatchSchema, g as UnsupportedDraftSchema, gc as AnnotationRef, gi as FormSnapshot, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hi as FormKind, hn as SquigglyPatchSchema, ia as MutationMeta, il as PdfFieldActions, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jc as LineEndings, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, kc as InkIntent, la as ManifestPage, li as FormFieldDraft, ln as StrikeoutPatchSchema, mc as PdfBits, mi as WidgetPlacement, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, na as RefetchReason, ol as DocumentMetadata, ot as FreeTextPatchSchema, pn as SquigglyDTOSchema, q as TextPatchSchema, qc as PdfRect, qo as PageNetworkRenderFormat, qr as FormWidgetLinkResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as CacheDelta, ri as FormFieldPatch, rl as PdfAnnotationActions, s as AnnotationDraftSchema, sc as DocCapability, sn as StrikeoutDTOSchema, t as AnnotationListPageSnapshot, ta as AnnotationListMutationMeta, u as AnnotationPatchSchema, ua as LayerScopePlane, ui as FormFieldOptionInput, ut as InkDTOSchema, vi as WidgetAppearanceSchema, vt as LinkPatchSchema, wc as BlendMode, wr as SearchQuery, ws as PageListSnapshot, xa as AttachmentCreateResult, xc as AnnotationBorderStyle, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zc as StrikeoutIntent, zi as FormWidgetRef, zn as PageFlattenResult, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-_Z600IzD.js";
2
+ import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-BR4tesJK.js";
3
3
  import { z } from "zod";
4
4
  //#region src/geometry/schemas.d.ts
5
5
  declare const PdfPointSchema: z.ZodType<PdfPoint>;
@@ -813,6 +813,15 @@ interface SearchToken {
813
813
  skip: number;
814
814
  budget?: SearchSliceBudget;
815
815
  }
816
+ /**
817
+ * The search RESULT representation this client speaks — part of the token
818
+ * (and therefore the versioned URL), so a response-shape change can never
819
+ * serve a stale CDN body to a newer client: new tokens are new cache keys,
820
+ * and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
821
+ * an exception to the omit-defaults rule, because its entire job is to
822
+ * change the token bytes when the format changes.
823
+ */
824
+ declare const SEARCH_RESULT_FORMAT = "segments1";
816
825
  declare const encodeSearchToken: (input: SearchToken) => string;
817
826
  declare const decodeSearchToken: (raw: string) => SearchToken;
818
827
  declare function encodeTokenText(text: string): string;
@@ -1351,7 +1360,7 @@ declare const RenderTokenSchema: {
1351
1360
  * permission tiers must never share cache entries).
1352
1361
  */
1353
1362
  declare const SearchTokenSchema: {
1354
- readonly fields: readonly ["epoch", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1363
+ readonly fields: readonly ["epoch", "format", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1355
1364
  readonly maxLength: 2048;
1356
1365
  };
1357
1366
  /**
@@ -1570,5 +1579,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1570
1579
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1571
1580
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1572
1581
  //#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 };
1582
+ 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
1583
  //# 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-C32v81cE.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