@embedpdf/engine-core 3.0.0-next.1 → 3.0.0-next.10

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 (56) hide show
  1. package/dist/{AbortError-CjSasIlL.js → AbortError-8-9JAX1Y.js} +2 -2
  2. package/dist/{AbortError-CjSasIlL.js.map → AbortError-8-9JAX1Y.js.map} +1 -1
  3. package/dist/{AbortError-ByBflvEl.cjs → AbortError-CRSooKsk.cjs} +2 -2
  4. package/dist/{AbortError-ByBflvEl.cjs.map → AbortError-CRSooKsk.cjs.map} +1 -1
  5. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-DDxHpJQU.d.cts} +538 -41
  6. package/dist/{AnnotationListSnapshot-W0RCsyDE.d.ts → AnnotationListSnapshot-DDxHpJQU.d.ts} +538 -41
  7. package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-BV4_YXkU.d.cts} +33 -2
  8. package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-o9aeTHwT.d.ts} +33 -2
  9. package/dist/{Engine-D9loFZc1.d.cts → Engine-D9je6GdU.d.cts} +50 -19
  10. package/dist/{Engine-B7Oe7f5i.d.ts → Engine-DOoVem7_.d.ts} +50 -19
  11. package/dist/{subtype-qejjVr6h.cjs → PageInsertBlankInput-CzShuSJI.cjs} +184 -1
  12. package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +1 -0
  13. package/dist/{subtype-BvAzLCGC.js → PageInsertBlankInput-WKY0tr6S.js} +149 -2
  14. package/dist/PageInsertBlankInput-WKY0tr6S.js.map +1 -0
  15. package/dist/{builders-C548U47M.js → builders-B_KufGJ9.js} +547 -169
  16. package/dist/builders-B_KufGJ9.js.map +1 -0
  17. package/dist/{builders-BvikWRuO.cjs → builders-Cp_rlGob.cjs} +603 -225
  18. package/dist/builders-Cp_rlGob.cjs.map +1 -0
  19. package/dist/conformance.cjs +822 -198
  20. package/dist/conformance.cjs.map +1 -1
  21. package/dist/conformance.d.cts +124 -6
  22. package/dist/conformance.d.ts +124 -6
  23. package/dist/conformance.js +777 -157
  24. package/dist/conformance.js.map +1 -1
  25. package/dist/{fold-CB4fAOOy.js → fold-BfyxxwS6.js} +162 -3
  26. package/dist/fold-BfyxxwS6.js.map +1 -0
  27. package/dist/{fold-IaMph3CO.cjs → fold-C7I5GpBz.cjs} +235 -4
  28. package/dist/fold-C7I5GpBz.cjs.map +1 -0
  29. package/dist/index.cjs +36 -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 +41 -23
  34. package/dist/runtime.cjs.map +1 -1
  35. package/dist/runtime.d.cts +103 -5
  36. package/dist/runtime.d.ts +103 -5
  37. package/dist/runtime.js +5 -5
  38. package/dist/{schemas-B_1VyFsm.cjs → schemas-D1pxEv3t.cjs} +138 -32
  39. package/dist/schemas-D1pxEv3t.cjs.map +1 -0
  40. package/dist/{schemas-9OpSSeM6.js → schemas-DAnu8tuW.js} +95 -13
  41. package/dist/schemas-DAnu8tuW.js.map +1 -0
  42. package/dist/wire.cjs +89 -3
  43. package/dist/wire.cjs.map +1 -1
  44. package/dist/wire.d.cts +99 -15
  45. package/dist/wire.d.ts +99 -15
  46. package/dist/wire.js +83 -4
  47. package/dist/wire.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/builders-BvikWRuO.cjs.map +0 -1
  50. package/dist/builders-C548U47M.js.map +0 -1
  51. package/dist/fold-CB4fAOOy.js.map +0 -1
  52. package/dist/fold-IaMph3CO.cjs.map +0 -1
  53. package/dist/schemas-9OpSSeM6.js.map +0 -1
  54. package/dist/schemas-B_1VyFsm.cjs.map +0 -1
  55. package/dist/subtype-BvAzLCGC.js.map +0 -1
  56. 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 StandardFont, $r as FormEffectsResult, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Aa as AttachmentDeleteResult, Ai as FormFieldOption, Ar as SearchSnippet, Bc as CaretIntent, Bi as FormFieldRef, Bs as PageBoxes, D as FileAttachmentDTOSchema, Di as FormFieldDTO, Dn as HighlightPatchSchema, Dr as SearchRequest, Dt as LinePatchSchema, En as HighlightDraftSchema, Er as SearchQuery, Et as LineDraftSchema, F as StampDTOSchema, Fn as RedactionApplyScope, G as TextDTOSchema, Gc as LineEnding, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Go as PageState, Gr as FormFieldUpdateResult, Ho as AnnotationAppearanceRenderOptions, I as StampWireDraftSchema, Ic as AnnotationBorderStyle, Io as AnnotationAppearanceImageOptions, Ja as AttachmentFileInfo, Jc as PdfRectDifferences, Jn as PageRotateInput, Jr as FormSetValueResult, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as LineEndings, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Kr as FormImportResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Lc as AnnotationFlags, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lt as PolygonDTOSchema, Mc as RevisionToken, Mn as MetadataUpdateResult, Mt as PolylineDraftSchema, No as PdfSaveMode, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Or as SearchSlice, P as ResourceRefSchema, Pn as RedactionApplyResult, Po as CachePins, Q as CaretDTOSchema, Qn as PageMoveInput, Qo as PageImageOptions, Qt as CircleDTOSchema, Ro as AnnotationAppearanceManifest, Rt as PolygonDraftSchema, Sc as DocCapability, Tn as HighlightDTOSchema, To as SerializedEngineError, Tt as LineDTOSchema, Uc as FreeTextIntent, Uo as AnnotationAppearancesQuery, Ur as FormFieldCreateResult, Us as MetadataPatch, Vc as Color, Vi as FormWidgetRef, Vs as PageLayout, W as NoteIconSchema, Wc as InkIntent, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wr as FormFieldDeleteResult, Xa as EmbeddedFileItem, Xi as AppearanceOutcome, Xn as PageMoveResult, Xr as FormEffect, Yr as FormWidgetLinkResult, Za as EmbeddedFileRef, Zn as PageStructureCache, _ as UnsupportedPatchSchema, _i as FormKind, _t as LinkDraftSchema, a as AnnotationDTOSchema, aa as CacheDelta, ai as FormFieldPatch, al as LinePoints, at as FreeTextDraftSchema, bi as WidgetAppearanceSchema, bl as PdfPageActions, bn as UnderlineDraftSchema, bo as AnnotationStableId, bs as PageTextSnapshot, bt as PdfLinkTargetSchema, cl as PdfRect, cn as StrikeoutDraftSchema, da as ManifestPage, di as FormFieldDraft, dt as InkDraftSchema, el as StrikeoutIntent, en as CirclePatchSchema, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fa as LayerScopePlane, fi as FormFieldOptionInput, fl as DocumentActionsSnapshot, ft as InkPatchSchema, g as UnsupportedDraftSchema, gi as WidgetPlacement, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hl as PdfActionTree, hn as SquigglyPatchSchema, ia as RefetchReason, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, ja as AttachmentsCache, jc as AnnotationRef, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, ka as AttachmentCreateResult, kc as PdfBits, ki as FormFieldFlags, kr as SearchSliceBudget, ll as PdfRotation, ln as StrikeoutPatchSchema, ml as PdfActionNode, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, ni as FormFieldValue, nl as CalloutLine, oa as MutationMeta, ol as PdfPoint, os as PageRenderOptions, ot as FreeTextPatchSchema, pa as LayerScopes, pn as SquigglyDTOSchema, ps as PageGeometrySnapshot, q as TextPatchSchema, qi as AnnotationUpdateResult, qn as PageRotateResult, qr as FormRepairResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as AnnotationListMutationMeta, rl as InkList, s as AnnotationDraftSchema, sl as PdfQuad, sn as StrikeoutDTOSchema, ss as PageRenderQuery, t as AnnotationListPageSnapshot, ti as FormDataFormat, tl as TextAlignment, ts as PageNetworkRenderFormat, u as AnnotationPatchSchema, ua as DocumentManifest, ul as PdfSize, ut as InkDTOSchema, vi as FormSnapshot, vl as PdfAnnotationActions, vt as LinkPatchSchema, wr as SearchMatch, xl as DocumentMetadata, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yl as PdfFieldActions, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zc as BlendMode, zi as FormValueEntry, zn as PageFlattenResult, zs as PageListSnapshot, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-DDxHpJQU.cjs";
2
+ import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-BV4_YXkU.cjs";
3
3
  import { z } from "zod";
4
4
  //#region src/geometry/schemas.d.ts
5
5
  declare const PdfPointSchema: z.ZodType<PdfPoint>;
@@ -142,20 +142,23 @@ declare const DocumentHeadSchema: z.ZodObject<{
142
142
  }>;
143
143
  type DocumentHead = z.infer<typeof DocumentHeadSchema>;
144
144
  declare const AccessRequestSchema: z.ZodObject<{
145
- docId: z.ZodString;
145
+ /** Deprecated: identity now rides the PATH
146
+ * (`/v1/docs/:docId/layers/:layerName/access`). Kept optional for the
147
+ * legacy `/v1/access` alias, which requires `docId` in the body. */
148
+ docId: z.ZodOptional<z.ZodString>;
146
149
  layerName: z.ZodOptional<z.ZodString>;
147
150
  password: z.ZodOptional<z.ZodString>;
148
151
  passwordGrant: z.ZodOptional<z.ZodString>;
149
152
  mode: z.ZodOptional<z.ZodEnum<["any", "owner"]>>;
150
153
  }, "strip", z.ZodTypeAny, {
151
- docId: string;
152
154
  password?: string | undefined;
155
+ docId?: string | undefined;
153
156
  layerName?: string | undefined;
154
157
  passwordGrant?: string | undefined;
155
158
  mode?: "owner" | "any" | undefined;
156
159
  }, {
157
- docId: string;
158
160
  password?: string | undefined;
161
+ docId?: string | undefined;
159
162
  layerName?: string | undefined;
160
163
  passwordGrant?: string | undefined;
161
164
  mode?: "owner" | "any" | undefined;
@@ -538,11 +541,12 @@ declare const DocumentManifestSchema: z.ZodType<DocumentManifest>;
538
541
  declare const AnnotationListPageSnapshotSchema: z.ZodType<AnnotationListPageSnapshot>;
539
542
  declare const AnnotationListSnapshotAllPagesSchema: z.ZodType<AnnotationListSnapshotAllPages>;
540
543
  /**
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).
544
+ * Wire shape of `GET …/text/pages/:pon/data@<contentVersion>` and the
545
+ * `pages.text` worker result: the UTF-16-faithful extraction, the CHARACTER
546
+ * space size (`charCount` — the space geometry runs tile; NOT `text.length`),
547
+ * and the optional character→text anchor map. Malformed maps are rejected
548
+ * here with the shared `charMapViolation` invariants — absent/empty map
549
+ * REQUIRES `charCount === text.length` (identity).
546
550
  */
547
551
  declare const PageTextSnapshotSchema: z.ZodType<PageTextSnapshot>;
548
552
  declare const PageGeometrySnapshotSchema: z.ZodType<PageGeometrySnapshot>;
@@ -669,6 +673,37 @@ declare const PageDeleteInputSchema: z.ZodType<PageDeleteInput>;
669
673
  * pages keep identity + revisions (see `PageDeleteResult`).
670
674
  */
671
675
  declare const PageDeleteResultSchema: z.ZodType<PageDeleteResult>;
676
+ /**
677
+ * Page insert (bytes) input — the JSON `body` part of the multipart
678
+ * mutation envelope; the PDF itself rides the `resource:source` part.
679
+ * `destIndex` omitted → append.
680
+ */
681
+ declare const PageInsertInputSchema: z.ZodType<{
682
+ destIndex?: number;
683
+ }>;
684
+ /**
685
+ * Blank-page insert input — plain JSON, pages.insert minus the bytes.
686
+ * `size` is in PDF points (un-rotated); `count` shares the contract cap
687
+ * with the worker so a request the schema accepts cannot then fail the
688
+ * worker's own guard.
689
+ */
690
+ declare const PageInsertBlankInputSchema: z.ZodType<{
691
+ size: {
692
+ width: number;
693
+ height: number;
694
+ };
695
+ count?: number;
696
+ destIndex?: number;
697
+ }>;
698
+ /** Page extract input: the pages to export, in the order they should appear. */
699
+ declare const PageExtractInputSchema: z.ZodType<{
700
+ pageObjectNumbers: number[];
701
+ }>;
702
+ /**
703
+ * Page insert result — shared by bytes-insert and blank-insert: the fresh
704
+ * PONs in insertion order plus the full new layout (see `PageInsertResult`).
705
+ */
706
+ declare const PageInsertResultSchema: z.ZodType<PageInsertResult>;
672
707
  /**
673
708
  * Metadata write result. The Info dict is rewritten in place, so the
674
709
  * result returns the re-read `metadata` plus cloud coherence pins. No
@@ -769,6 +804,8 @@ declare const encodeMetadataToken: (metadataVersion: number) => string;
769
804
  declare const decodeMetadataToken: (raw: string) => number;
770
805
  declare const encodeAnnotationToken: (annotationVersion: number) => string;
771
806
  declare const decodeAnnotationToken: (raw: string) => number;
807
+ declare const encodeAnnotationsAllToken: (annotationsVersion: number) => string;
808
+ declare const decodeAnnotationsAllToken: (raw: string) => number;
772
809
  declare const encodeActionsToken: (actionsVersion: number) => string;
773
810
  declare const decodeActionsToken: (raw: string) => number;
774
811
  declare const encodeAttachmentsToken: (attachmentsVersion: number) => string;
@@ -813,6 +850,15 @@ interface SearchToken {
813
850
  skip: number;
814
851
  budget?: SearchSliceBudget;
815
852
  }
853
+ /**
854
+ * The search RESULT representation this client speaks — part of the token
855
+ * (and therefore the versioned URL), so a response-shape change can never
856
+ * serve a stale CDN body to a newer client: new tokens are new cache keys,
857
+ * and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
858
+ * an exception to the omit-defaults rule, because its entire job is to
859
+ * change the token bytes when the format changes.
860
+ */
861
+ declare const SEARCH_RESULT_FORMAT = "segments1";
816
862
  declare const encodeSearchToken: (input: SearchToken) => string;
817
863
  declare const decodeSearchToken: (raw: string) => SearchToken;
818
864
  declare function encodeTokenText(text: string): string;
@@ -821,8 +867,21 @@ declare function decodeTokenText(encoded: string): string;
821
867
  //#region src/wire/paths.d.ts
822
868
  declare const DEFAULT_LAYER_NAME = "default";
823
869
  declare const wirePaths: {
824
- /** POST: grant document access/caching credentials for the current bearer. */
825
- readonly access: "/v1/access";
870
+ /**
871
+ * POST: grant access/caching credentials for the current bearer on
872
+ * the document + layer namespace the path names (cross-checked
873
+ * against the token like every layer route — the grant is
874
+ * layer-scoped in substance: CDN coverage, scopes, and the client's
875
+ * binding all carry the layer). Path-addressed so the affinity tier —
876
+ * the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
877
+ * regex — pins the session bootstrap to the document's pod from the
878
+ * very first request. Default-layer callers spell `layers/default/`,
879
+ * same as every other layer route.
880
+ */
881
+ readonly access: (docId: string, layerName: string) => string;
882
+ /** Deprecated alias (docId in the BODY) — served for one prerelease
883
+ * cycle so pre-rename clients keep working; remove after. */
884
+ readonly accessLegacy: "/v1/access";
826
885
  /**
827
886
  * GET: open the document referenced by the doc-scoped JWT and
828
887
  * return its `DocumentHead`. The server materialises the base
@@ -959,6 +1018,8 @@ declare const wirePaths: {
959
1018
  * object served from the base worker session.
960
1019
  */
961
1020
  readonly docPageAnnotations: (docId: string, pageObjectNumber: number, annotationVersion: number) => string;
1021
+ /** Immutable BASE whole-document annotation listing (bulk hydration). */
1022
+ readonly docAnnotationsAll: (docId: string, annotationsVersion: number) => string;
962
1023
  /** Immutable BASE appearance batch (twin of
963
1024
  * `layerPageAnnotationAppearances` — same `annotations` plane gate). */
964
1025
  readonly docPageAnnotationAppearances: (docId: string, pageObjectNumber: number, token: TokenInput) => string;
@@ -969,6 +1030,8 @@ declare const wirePaths: {
969
1030
  * collection name — see file-level docstring.
970
1031
  */
971
1032
  readonly layerPageAnnotations: (docId: string, layerName: string, pageObjectNumber: number, annotationVersion: number) => string;
1033
+ /** Immutable LAYER whole-document annotation listing (bulk hydration). */
1034
+ readonly layerAnnotationsAll: (docId: string, layerName: string, annotationsVersion: number) => string;
972
1035
  readonly layerPageAnnotationsCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
973
1036
  /**
974
1037
  * GET: batch-rendered annotation appearance bitmaps for a single page as a
@@ -1047,6 +1110,20 @@ declare const wirePaths: {
1047
1110
  readonly layerPagesRotate: (docId: string, layerName: string) => string;
1048
1111
  readonly layerPagesDelete: (docId: string, layerName: string) => string;
1049
1112
  readonly layerPagesFlatten: (docId: string, layerName: string) => string;
1113
+ /**
1114
+ * POST (multipart mutation envelope): copy every page of the `source`
1115
+ * resource part (a standalone PDF) in at the body's `destIndex`.
1116
+ */
1117
+ readonly layerPagesInsert: (docId: string, layerName: string) => string;
1118
+ /** POST (plain JSON): create blank pages — pages.insert minus the bytes. */
1119
+ readonly layerPagesInsertBlank: (docId: string, layerName: string) => string;
1120
+ /**
1121
+ * POST (plain JSON → `application/pdf` bytes): export the listed pages,
1122
+ * in caller order, as a standalone PDF. A READ over the current layer
1123
+ * state (gated like /download), so it is a POST only for its body —
1124
+ * nothing mutates and no event is published.
1125
+ */
1126
+ readonly layerPagesExtract: (docId: string, layerName: string) => string;
1050
1127
  readonly layerRedactionsApply: (docId: string, layerName: string) => string;
1051
1128
  readonly layerEvents: (docId: string, layerName: string) => string;
1052
1129
  readonly layerDownload: (docId: string, layerName: string) => string;
@@ -1081,6 +1158,7 @@ declare const wireTemplates: {
1081
1158
  readonly layerMetadata: "/v1/docs/:docId/layers/:layerName/metadata";
1082
1159
  readonly layerRenderPage: "/v1/docs/:docId/layers/:layerName/render/pages/:pon/data";
1083
1160
  readonly layerTextPage: "/v1/docs/:docId/layers/:layerName/text/pages/:pon/data";
1161
+ readonly layerAnnotationItemsAll: "/v1/docs/:docId/layers/:layerName/annotations/items";
1084
1162
  readonly layerAnnotationItems: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items";
1085
1163
  readonly layerAnnotationItem: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/:annotKey";
1086
1164
  readonly layerForm: "/v1/docs/:docId/layers/:layerName/form";
@@ -1091,6 +1169,9 @@ declare const wireTemplates: {
1091
1169
  readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
1092
1170
  readonly layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete";
1093
1171
  readonly layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten";
1172
+ readonly layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert";
1173
+ readonly layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank";
1174
+ readonly layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract";
1094
1175
  readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
1095
1176
  readonly layerDownload: "/v1/docs/:docId/layers/:layerName/download";
1096
1177
  };
@@ -1105,7 +1186,7 @@ declare const wireTemplates: {
1105
1186
  * 3. Update the route handler to call `requireResource(req, docId, '<id>', pdfBits)`
1106
1187
  * 4. CDN signer automatically considers it
1107
1188
  */
1108
- type DocResourceId = 'head' | 'manifest' | 'page-render' | 'page-render-annotated' | 'page-text' | 'page-geometry' | 'page-annotations' | 'layout' | 'metadata' | 'actions' | 'attachments' | 'attachment-files' | 'layer-manifest' | 'layer-layout' | 'layer-metadata' | 'layer-actions' | 'layer-page-render' | 'layer-page-render-annotated' | 'layer-page-text' | 'layer-page-geometry' | 'layer-search-rects' | 'layer-search-full' | 'annotations-read' | 'layer-attachments' | 'layer-attachment-files' | 'download-current' | 'download-versioned';
1189
+ type DocResourceId = 'head' | 'manifest' | 'page-render' | 'page-render-annotated' | 'page-text' | 'page-geometry' | 'page-annotations' | 'annotations-all' | 'layout' | 'metadata' | 'actions' | 'attachments' | 'attachment-files' | 'layer-manifest' | 'layer-layout' | 'layer-metadata' | 'layer-actions' | 'layer-page-render' | 'layer-page-render-annotated' | 'layer-page-text' | 'layer-page-geometry' | 'layer-search-rects' | 'layer-search-full' | 'annotations-read' | 'layer-annotations-all' | 'layer-attachments' | 'layer-attachment-files' | 'download-current' | 'download-versioned';
1109
1190
  /**
1110
1191
  * 'origin' — unversioned URL, response can change over time. CDN must
1111
1192
  * not cache (the bytes are not immutable). Routed straight to origin
@@ -1351,7 +1432,7 @@ declare const RenderTokenSchema: {
1351
1432
  * permission tiers must never share cache entries).
1352
1433
  */
1353
1434
  declare const SearchTokenSchema: {
1354
- readonly fields: readonly ["epoch", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1435
+ readonly fields: readonly ["epoch", "format", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1355
1436
  readonly maxLength: 2048;
1356
1437
  };
1357
1438
  /**
@@ -1512,6 +1593,7 @@ declare const AnnotationBaseShape: {
1512
1593
  readonly flags: z.ZodType<AnnotationFlags, z.ZodTypeDef, AnnotationFlags>;
1513
1594
  readonly rect: z.ZodType<PdfRect, z.ZodTypeDef, PdfRect>;
1514
1595
  readonly contents: z.ZodNullable<z.ZodString>;
1596
+ readonly subject: z.ZodNullable<z.ZodString>;
1515
1597
  readonly author: z.ZodNullable<z.ZodString>;
1516
1598
  readonly created: z.ZodNullable<z.ZodString>;
1517
1599
  readonly modified: z.ZodNullable<z.ZodString>;
@@ -1534,6 +1616,7 @@ declare const AnnotationBaseShape: {
1534
1616
  */
1535
1617
  declare const AnnotationDraftBaseShape: {
1536
1618
  readonly contents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1619
+ readonly subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1537
1620
  readonly blendMode: z.ZodOptional<z.ZodType<BlendMode, z.ZodTypeDef, BlendMode>>;
1538
1621
  readonly nm: z.ZodOptional<z.ZodString>;
1539
1622
  readonly flags: z.ZodOptional<z.ZodType<Partial<AnnotationFlags>, z.ZodTypeDef, Partial<AnnotationFlags>>>;
@@ -1552,6 +1635,7 @@ declare const AnnotationDraftBaseShape: {
1552
1635
  */
1553
1636
  declare const AnnotationPatchBaseShape: {
1554
1637
  readonly contents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1638
+ readonly subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1555
1639
  readonly blendMode: z.ZodOptional<z.ZodType<BlendMode, z.ZodTypeDef, BlendMode>>;
1556
1640
  readonly groupId: z.ZodOptional<z.ZodString>;
1557
1641
  readonly flags: z.ZodOptional<z.ZodType<Partial<AnnotationFlags>, z.ZodTypeDef, Partial<AnnotationFlags>>>;
@@ -1570,5 +1654,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1570
1654
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1571
1655
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1572
1656
  //#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 };
1657
+ 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, PageExtractInputSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageInsertBlankInputSchema, PageInsertInputSchema, PageInsertResultSchema, 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, decodeAnnotationsAllToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAnnotationsAllToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1574
1658
  //# 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 StandardFont, $r as FormEffectsResult, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Aa as AttachmentDeleteResult, Ai as FormFieldOption, Ar as SearchSnippet, Bc as CaretIntent, Bi as FormFieldRef, Bs as PageBoxes, D as FileAttachmentDTOSchema, Di as FormFieldDTO, Dn as HighlightPatchSchema, Dr as SearchRequest, Dt as LinePatchSchema, En as HighlightDraftSchema, Er as SearchQuery, Et as LineDraftSchema, F as StampDTOSchema, Fn as RedactionApplyScope, G as TextDTOSchema, Gc as LineEnding, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Go as PageState, Gr as FormFieldUpdateResult, Ho as AnnotationAppearanceRenderOptions, I as StampWireDraftSchema, Ic as AnnotationBorderStyle, Io as AnnotationAppearanceImageOptions, Ja as AttachmentFileInfo, Jc as PdfRectDifferences, Jn as PageRotateInput, Jr as FormSetValueResult, Jt as SquarePatchSchema, K as TextDraftSchema, Kc as LineEndings, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Kr as FormImportResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Lc as AnnotationFlags, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lt as PolygonDTOSchema, Mc as RevisionToken, Mn as MetadataUpdateResult, Mt as PolylineDraftSchema, No as PdfSaveMode, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Or as SearchSlice, P as ResourceRefSchema, Pn as RedactionApplyResult, Po as CachePins, Q as CaretDTOSchema, Qn as PageMoveInput, Qo as PageImageOptions, Qt as CircleDTOSchema, Ro as AnnotationAppearanceManifest, Rt as PolygonDraftSchema, Sc as DocCapability, Tn as HighlightDTOSchema, To as SerializedEngineError, Tt as LineDTOSchema, Uc as FreeTextIntent, Uo as AnnotationAppearancesQuery, Ur as FormFieldCreateResult, Us as MetadataPatch, Vc as Color, Vi as FormWidgetRef, Vs as PageLayout, W as NoteIconSchema, Wc as InkIntent, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wr as FormFieldDeleteResult, Xa as EmbeddedFileItem, Xi as AppearanceOutcome, Xn as PageMoveResult, Xr as FormEffect, Yr as FormWidgetLinkResult, Za as EmbeddedFileRef, Zn as PageStructureCache, _ as UnsupportedPatchSchema, _i as FormKind, _t as LinkDraftSchema, a as AnnotationDTOSchema, aa as CacheDelta, ai as FormFieldPatch, al as LinePoints, at as FreeTextDraftSchema, bi as WidgetAppearanceSchema, bl as PdfPageActions, bn as UnderlineDraftSchema, bo as AnnotationStableId, bs as PageTextSnapshot, bt as PdfLinkTargetSchema, cl as PdfRect, cn as StrikeoutDraftSchema, da as ManifestPage, di as FormFieldDraft, dt as InkDraftSchema, el as StrikeoutIntent, en as CirclePatchSchema, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fa as LayerScopePlane, fi as FormFieldOptionInput, fl as DocumentActionsSnapshot, ft as InkPatchSchema, g as UnsupportedDraftSchema, gi as WidgetPlacement, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hl as PdfActionTree, hn as SquigglyPatchSchema, ia as RefetchReason, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, ja as AttachmentsCache, jc as AnnotationRef, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, ka as AttachmentCreateResult, kc as PdfBits, ki as FormFieldFlags, kr as SearchSliceBudget, ll as PdfRotation, ln as StrikeoutPatchSchema, ml as PdfActionNode, mn as SquigglyDraftSchema, n as AnnotationListSnapshotAllPages, ni as FormFieldValue, nl as CalloutLine, oa as MutationMeta, ol as PdfPoint, os as PageRenderOptions, ot as FreeTextPatchSchema, pa as LayerScopes, pn as SquigglyDTOSchema, ps as PageGeometrySnapshot, q as TextPatchSchema, qi as AnnotationUpdateResult, qn as PageRotateResult, qr as FormRepairResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as AnnotationListMutationMeta, rl as InkList, s as AnnotationDraftSchema, sl as PdfQuad, sn as StrikeoutDTOSchema, ss as PageRenderQuery, t as AnnotationListPageSnapshot, ti as FormDataFormat, tl as TextAlignment, ts as PageNetworkRenderFormat, u as AnnotationPatchSchema, ua as DocumentManifest, ul as PdfSize, ut as InkDTOSchema, vi as FormSnapshot, vl as PdfAnnotationActions, vt as LinkPatchSchema, wr as SearchMatch, xl as DocumentMetadata, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yl as PdfFieldActions, yn as UnderlineDTOSchema, yt as PdfDestinationSchema, zc as BlendMode, zi as FormValueEntry, zn as PageFlattenResult, zs as PageListSnapshot, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-DDxHpJQU.js";
2
+ import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-o9aeTHwT.js";
3
3
  import { z } from "zod";
4
4
  //#region src/geometry/schemas.d.ts
5
5
  declare const PdfPointSchema: z.ZodType<PdfPoint>;
@@ -142,20 +142,23 @@ declare const DocumentHeadSchema: z.ZodObject<{
142
142
  }>;
143
143
  type DocumentHead = z.infer<typeof DocumentHeadSchema>;
144
144
  declare const AccessRequestSchema: z.ZodObject<{
145
- docId: z.ZodString;
145
+ /** Deprecated: identity now rides the PATH
146
+ * (`/v1/docs/:docId/layers/:layerName/access`). Kept optional for the
147
+ * legacy `/v1/access` alias, which requires `docId` in the body. */
148
+ docId: z.ZodOptional<z.ZodString>;
146
149
  layerName: z.ZodOptional<z.ZodString>;
147
150
  password: z.ZodOptional<z.ZodString>;
148
151
  passwordGrant: z.ZodOptional<z.ZodString>;
149
152
  mode: z.ZodOptional<z.ZodEnum<["any", "owner"]>>;
150
153
  }, "strip", z.ZodTypeAny, {
151
- docId: string;
152
154
  password?: string | undefined;
155
+ docId?: string | undefined;
153
156
  layerName?: string | undefined;
154
157
  passwordGrant?: string | undefined;
155
158
  mode?: "owner" | "any" | undefined;
156
159
  }, {
157
- docId: string;
158
160
  password?: string | undefined;
161
+ docId?: string | undefined;
159
162
  layerName?: string | undefined;
160
163
  passwordGrant?: string | undefined;
161
164
  mode?: "owner" | "any" | undefined;
@@ -538,11 +541,12 @@ declare const DocumentManifestSchema: z.ZodType<DocumentManifest>;
538
541
  declare const AnnotationListPageSnapshotSchema: z.ZodType<AnnotationListPageSnapshot>;
539
542
  declare const AnnotationListSnapshotAllPagesSchema: z.ZodType<AnnotationListSnapshotAllPages>;
540
543
  /**
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).
544
+ * Wire shape of `GET …/text/pages/:pon/data@<contentVersion>` and the
545
+ * `pages.text` worker result: the UTF-16-faithful extraction, the CHARACTER
546
+ * space size (`charCount` — the space geometry runs tile; NOT `text.length`),
547
+ * and the optional character→text anchor map. Malformed maps are rejected
548
+ * here with the shared `charMapViolation` invariants — absent/empty map
549
+ * REQUIRES `charCount === text.length` (identity).
546
550
  */
547
551
  declare const PageTextSnapshotSchema: z.ZodType<PageTextSnapshot>;
548
552
  declare const PageGeometrySnapshotSchema: z.ZodType<PageGeometrySnapshot>;
@@ -669,6 +673,37 @@ declare const PageDeleteInputSchema: z.ZodType<PageDeleteInput>;
669
673
  * pages keep identity + revisions (see `PageDeleteResult`).
670
674
  */
671
675
  declare const PageDeleteResultSchema: z.ZodType<PageDeleteResult>;
676
+ /**
677
+ * Page insert (bytes) input — the JSON `body` part of the multipart
678
+ * mutation envelope; the PDF itself rides the `resource:source` part.
679
+ * `destIndex` omitted → append.
680
+ */
681
+ declare const PageInsertInputSchema: z.ZodType<{
682
+ destIndex?: number;
683
+ }>;
684
+ /**
685
+ * Blank-page insert input — plain JSON, pages.insert minus the bytes.
686
+ * `size` is in PDF points (un-rotated); `count` shares the contract cap
687
+ * with the worker so a request the schema accepts cannot then fail the
688
+ * worker's own guard.
689
+ */
690
+ declare const PageInsertBlankInputSchema: z.ZodType<{
691
+ size: {
692
+ width: number;
693
+ height: number;
694
+ };
695
+ count?: number;
696
+ destIndex?: number;
697
+ }>;
698
+ /** Page extract input: the pages to export, in the order they should appear. */
699
+ declare const PageExtractInputSchema: z.ZodType<{
700
+ pageObjectNumbers: number[];
701
+ }>;
702
+ /**
703
+ * Page insert result — shared by bytes-insert and blank-insert: the fresh
704
+ * PONs in insertion order plus the full new layout (see `PageInsertResult`).
705
+ */
706
+ declare const PageInsertResultSchema: z.ZodType<PageInsertResult>;
672
707
  /**
673
708
  * Metadata write result. The Info dict is rewritten in place, so the
674
709
  * result returns the re-read `metadata` plus cloud coherence pins. No
@@ -769,6 +804,8 @@ declare const encodeMetadataToken: (metadataVersion: number) => string;
769
804
  declare const decodeMetadataToken: (raw: string) => number;
770
805
  declare const encodeAnnotationToken: (annotationVersion: number) => string;
771
806
  declare const decodeAnnotationToken: (raw: string) => number;
807
+ declare const encodeAnnotationsAllToken: (annotationsVersion: number) => string;
808
+ declare const decodeAnnotationsAllToken: (raw: string) => number;
772
809
  declare const encodeActionsToken: (actionsVersion: number) => string;
773
810
  declare const decodeActionsToken: (raw: string) => number;
774
811
  declare const encodeAttachmentsToken: (attachmentsVersion: number) => string;
@@ -813,6 +850,15 @@ interface SearchToken {
813
850
  skip: number;
814
851
  budget?: SearchSliceBudget;
815
852
  }
853
+ /**
854
+ * The search RESULT representation this client speaks — part of the token
855
+ * (and therefore the versioned URL), so a response-shape change can never
856
+ * serve a stale CDN body to a newer client: new tokens are new cache keys,
857
+ * and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
858
+ * an exception to the omit-defaults rule, because its entire job is to
859
+ * change the token bytes when the format changes.
860
+ */
861
+ declare const SEARCH_RESULT_FORMAT = "segments1";
816
862
  declare const encodeSearchToken: (input: SearchToken) => string;
817
863
  declare const decodeSearchToken: (raw: string) => SearchToken;
818
864
  declare function encodeTokenText(text: string): string;
@@ -821,8 +867,21 @@ declare function decodeTokenText(encoded: string): string;
821
867
  //#region src/wire/paths.d.ts
822
868
  declare const DEFAULT_LAYER_NAME = "default";
823
869
  declare const wirePaths: {
824
- /** POST: grant document access/caching credentials for the current bearer. */
825
- readonly access: "/v1/access";
870
+ /**
871
+ * POST: grant access/caching credentials for the current bearer on
872
+ * the document + layer namespace the path names (cross-checked
873
+ * against the token like every layer route — the grant is
874
+ * layer-scoped in substance: CDN coverage, scopes, and the client's
875
+ * binding all carry the layer). Path-addressed so the affinity tier —
876
+ * the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
877
+ * regex — pins the session bootstrap to the document's pod from the
878
+ * very first request. Default-layer callers spell `layers/default/`,
879
+ * same as every other layer route.
880
+ */
881
+ readonly access: (docId: string, layerName: string) => string;
882
+ /** Deprecated alias (docId in the BODY) — served for one prerelease
883
+ * cycle so pre-rename clients keep working; remove after. */
884
+ readonly accessLegacy: "/v1/access";
826
885
  /**
827
886
  * GET: open the document referenced by the doc-scoped JWT and
828
887
  * return its `DocumentHead`. The server materialises the base
@@ -959,6 +1018,8 @@ declare const wirePaths: {
959
1018
  * object served from the base worker session.
960
1019
  */
961
1020
  readonly docPageAnnotations: (docId: string, pageObjectNumber: number, annotationVersion: number) => string;
1021
+ /** Immutable BASE whole-document annotation listing (bulk hydration). */
1022
+ readonly docAnnotationsAll: (docId: string, annotationsVersion: number) => string;
962
1023
  /** Immutable BASE appearance batch (twin of
963
1024
  * `layerPageAnnotationAppearances` — same `annotations` plane gate). */
964
1025
  readonly docPageAnnotationAppearances: (docId: string, pageObjectNumber: number, token: TokenInput) => string;
@@ -969,6 +1030,8 @@ declare const wirePaths: {
969
1030
  * collection name — see file-level docstring.
970
1031
  */
971
1032
  readonly layerPageAnnotations: (docId: string, layerName: string, pageObjectNumber: number, annotationVersion: number) => string;
1033
+ /** Immutable LAYER whole-document annotation listing (bulk hydration). */
1034
+ readonly layerAnnotationsAll: (docId: string, layerName: string, annotationsVersion: number) => string;
972
1035
  readonly layerPageAnnotationsCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
973
1036
  /**
974
1037
  * GET: batch-rendered annotation appearance bitmaps for a single page as a
@@ -1047,6 +1110,20 @@ declare const wirePaths: {
1047
1110
  readonly layerPagesRotate: (docId: string, layerName: string) => string;
1048
1111
  readonly layerPagesDelete: (docId: string, layerName: string) => string;
1049
1112
  readonly layerPagesFlatten: (docId: string, layerName: string) => string;
1113
+ /**
1114
+ * POST (multipart mutation envelope): copy every page of the `source`
1115
+ * resource part (a standalone PDF) in at the body's `destIndex`.
1116
+ */
1117
+ readonly layerPagesInsert: (docId: string, layerName: string) => string;
1118
+ /** POST (plain JSON): create blank pages — pages.insert minus the bytes. */
1119
+ readonly layerPagesInsertBlank: (docId: string, layerName: string) => string;
1120
+ /**
1121
+ * POST (plain JSON → `application/pdf` bytes): export the listed pages,
1122
+ * in caller order, as a standalone PDF. A READ over the current layer
1123
+ * state (gated like /download), so it is a POST only for its body —
1124
+ * nothing mutates and no event is published.
1125
+ */
1126
+ readonly layerPagesExtract: (docId: string, layerName: string) => string;
1050
1127
  readonly layerRedactionsApply: (docId: string, layerName: string) => string;
1051
1128
  readonly layerEvents: (docId: string, layerName: string) => string;
1052
1129
  readonly layerDownload: (docId: string, layerName: string) => string;
@@ -1081,6 +1158,7 @@ declare const wireTemplates: {
1081
1158
  readonly layerMetadata: "/v1/docs/:docId/layers/:layerName/metadata";
1082
1159
  readonly layerRenderPage: "/v1/docs/:docId/layers/:layerName/render/pages/:pon/data";
1083
1160
  readonly layerTextPage: "/v1/docs/:docId/layers/:layerName/text/pages/:pon/data";
1161
+ readonly layerAnnotationItemsAll: "/v1/docs/:docId/layers/:layerName/annotations/items";
1084
1162
  readonly layerAnnotationItems: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items";
1085
1163
  readonly layerAnnotationItem: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/:annotKey";
1086
1164
  readonly layerForm: "/v1/docs/:docId/layers/:layerName/form";
@@ -1091,6 +1169,9 @@ declare const wireTemplates: {
1091
1169
  readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
1092
1170
  readonly layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete";
1093
1171
  readonly layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten";
1172
+ readonly layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert";
1173
+ readonly layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank";
1174
+ readonly layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract";
1094
1175
  readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
1095
1176
  readonly layerDownload: "/v1/docs/:docId/layers/:layerName/download";
1096
1177
  };
@@ -1105,7 +1186,7 @@ declare const wireTemplates: {
1105
1186
  * 3. Update the route handler to call `requireResource(req, docId, '<id>', pdfBits)`
1106
1187
  * 4. CDN signer automatically considers it
1107
1188
  */
1108
- type DocResourceId = 'head' | 'manifest' | 'page-render' | 'page-render-annotated' | 'page-text' | 'page-geometry' | 'page-annotations' | 'layout' | 'metadata' | 'actions' | 'attachments' | 'attachment-files' | 'layer-manifest' | 'layer-layout' | 'layer-metadata' | 'layer-actions' | 'layer-page-render' | 'layer-page-render-annotated' | 'layer-page-text' | 'layer-page-geometry' | 'layer-search-rects' | 'layer-search-full' | 'annotations-read' | 'layer-attachments' | 'layer-attachment-files' | 'download-current' | 'download-versioned';
1189
+ type DocResourceId = 'head' | 'manifest' | 'page-render' | 'page-render-annotated' | 'page-text' | 'page-geometry' | 'page-annotations' | 'annotations-all' | 'layout' | 'metadata' | 'actions' | 'attachments' | 'attachment-files' | 'layer-manifest' | 'layer-layout' | 'layer-metadata' | 'layer-actions' | 'layer-page-render' | 'layer-page-render-annotated' | 'layer-page-text' | 'layer-page-geometry' | 'layer-search-rects' | 'layer-search-full' | 'annotations-read' | 'layer-annotations-all' | 'layer-attachments' | 'layer-attachment-files' | 'download-current' | 'download-versioned';
1109
1190
  /**
1110
1191
  * 'origin' — unversioned URL, response can change over time. CDN must
1111
1192
  * not cache (the bytes are not immutable). Routed straight to origin
@@ -1351,7 +1432,7 @@ declare const RenderTokenSchema: {
1351
1432
  * permission tiers must never share cache entries).
1352
1433
  */
1353
1434
  declare const SearchTokenSchema: {
1354
- readonly fields: readonly ["epoch", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1435
+ readonly fields: readonly ["epoch", "format", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1355
1436
  readonly maxLength: 2048;
1356
1437
  };
1357
1438
  /**
@@ -1512,6 +1593,7 @@ declare const AnnotationBaseShape: {
1512
1593
  readonly flags: z.ZodType<AnnotationFlags, z.ZodTypeDef, AnnotationFlags>;
1513
1594
  readonly rect: z.ZodType<PdfRect, z.ZodTypeDef, PdfRect>;
1514
1595
  readonly contents: z.ZodNullable<z.ZodString>;
1596
+ readonly subject: z.ZodNullable<z.ZodString>;
1515
1597
  readonly author: z.ZodNullable<z.ZodString>;
1516
1598
  readonly created: z.ZodNullable<z.ZodString>;
1517
1599
  readonly modified: z.ZodNullable<z.ZodString>;
@@ -1534,6 +1616,7 @@ declare const AnnotationBaseShape: {
1534
1616
  */
1535
1617
  declare const AnnotationDraftBaseShape: {
1536
1618
  readonly contents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1619
+ readonly subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1537
1620
  readonly blendMode: z.ZodOptional<z.ZodType<BlendMode, z.ZodTypeDef, BlendMode>>;
1538
1621
  readonly nm: z.ZodOptional<z.ZodString>;
1539
1622
  readonly flags: z.ZodOptional<z.ZodType<Partial<AnnotationFlags>, z.ZodTypeDef, Partial<AnnotationFlags>>>;
@@ -1552,6 +1635,7 @@ declare const AnnotationDraftBaseShape: {
1552
1635
  */
1553
1636
  declare const AnnotationPatchBaseShape: {
1554
1637
  readonly contents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1638
+ readonly subject: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1555
1639
  readonly blendMode: z.ZodOptional<z.ZodType<BlendMode, z.ZodTypeDef, BlendMode>>;
1556
1640
  readonly groupId: z.ZodOptional<z.ZodString>;
1557
1641
  readonly flags: z.ZodOptional<z.ZodType<Partial<AnnotationFlags>, z.ZodTypeDef, Partial<AnnotationFlags>>>;
@@ -1570,5 +1654,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1570
1654
  declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1571
1655
  declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1572
1656
  //#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 };
1657
+ 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, PageExtractInputSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageInsertBlankInputSchema, PageInsertInputSchema, PageInsertResultSchema, 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, decodeAnnotationsAllToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAnnotationsAllToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
1574
1658
  //# sourceMappingURL=wire.d.ts.map