@embedpdf/engine-core 3.0.0-next.0

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/LICENSE +192 -0
  2. package/README.md +24 -0
  3. package/dist/AbortError-ByBflvEl.cjs +38 -0
  4. package/dist/AbortError-ByBflvEl.cjs.map +1 -0
  5. package/dist/AbortError-CjSasIlL.js +27 -0
  6. package/dist/AbortError-CjSasIlL.js.map +1 -0
  7. package/dist/AnnotationListSnapshot-W0RCsyDE.d.cts +5043 -0
  8. package/dist/AnnotationListSnapshot-W0RCsyDE.d.ts +5043 -0
  9. package/dist/DocumentSecurityService-B-tULKNY.d.ts +332 -0
  10. package/dist/DocumentSecurityService-Df79fgpe.d.cts +332 -0
  11. package/dist/Engine-B7Oe7f5i.d.ts +1013 -0
  12. package/dist/Engine-D9loFZc1.d.cts +1013 -0
  13. package/dist/builders-BvikWRuO.cjs +1684 -0
  14. package/dist/builders-BvikWRuO.cjs.map +1 -0
  15. package/dist/builders-C548U47M.js +1367 -0
  16. package/dist/builders-C548U47M.js.map +1 -0
  17. package/dist/conformance.cjs +5414 -0
  18. package/dist/conformance.cjs.map +1 -0
  19. package/dist/conformance.d.cts +530 -0
  20. package/dist/conformance.d.ts +530 -0
  21. package/dist/conformance.js +5394 -0
  22. package/dist/conformance.js.map +1 -0
  23. package/dist/fold-CB4fAOOy.js +175 -0
  24. package/dist/fold-CB4fAOOy.js.map +1 -0
  25. package/dist/fold-IaMph3CO.cjs +216 -0
  26. package/dist/fold-IaMph3CO.cjs.map +1 -0
  27. package/dist/index.cjs +82 -0
  28. package/dist/index.d.cts +2 -0
  29. package/dist/index.d.ts +2 -0
  30. package/dist/index.js +5 -0
  31. package/dist/resolver-DAZWVoJL.cjs +434 -0
  32. package/dist/resolver-DAZWVoJL.cjs.map +1 -0
  33. package/dist/resolver-DiPMTfcy.js +363 -0
  34. package/dist/resolver-DiPMTfcy.js.map +1 -0
  35. package/dist/runtime.cjs +453 -0
  36. package/dist/runtime.cjs.map +1 -0
  37. package/dist/runtime.d.cts +1002 -0
  38. package/dist/runtime.d.ts +1002 -0
  39. package/dist/runtime.js +361 -0
  40. package/dist/runtime.js.map +1 -0
  41. package/dist/schemas-9OpSSeM6.js +2493 -0
  42. package/dist/schemas-9OpSSeM6.js.map +1 -0
  43. package/dist/schemas-B_1VyFsm.cjs +3608 -0
  44. package/dist/schemas-B_1VyFsm.cjs.map +1 -0
  45. package/dist/subtype-BvAzLCGC.js +196 -0
  46. package/dist/subtype-BvAzLCGC.js.map +1 -0
  47. package/dist/subtype-qejjVr6h.cjs +231 -0
  48. package/dist/subtype-qejjVr6h.cjs.map +1 -0
  49. package/dist/wire.cjs +1516 -0
  50. package/dist/wire.cjs.map +1 -0
  51. package/dist/wire.d.cts +1546 -0
  52. package/dist/wire.d.ts +1546 -0
  53. package/dist/wire.js +1280 -0
  54. package/dist/wire.js.map +1 -0
  55. package/package.json +74 -0
@@ -0,0 +1,1546 @@
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";
3
+ import { z } from "zod";
4
+ //#region src/geometry/schemas.d.ts
5
+ declare const PdfPointSchema: z.ZodType<PdfPoint>;
6
+ declare const LinePointsSchema: z.ZodType<LinePoints>;
7
+ /** `/CL` callout leader line — two points (straight) or three (knee-jointed). */
8
+ declare const CalloutLineSchema: z.ZodType<CalloutLine>;
9
+ /** `/InkList` — an array of strokes, each an array of points. */
10
+ declare const InkListSchema: z.ZodType<InkList>;
11
+ declare const PdfRectSchema: z.ZodType<PdfRect>;
12
+ declare const PdfSizeSchema: z.ZodType<PdfSize>;
13
+ declare const PdfQuadSchema: z.ZodType<PdfQuad>;
14
+ declare const PdfRotationSchema: z.ZodType<PdfRotation>;
15
+ //#endregion
16
+ //#region src/wire/schemas.d.ts
17
+ declare const DocumentMetadataSchema: z.ZodType<DocumentMetadata>;
18
+ /**
19
+ * Three-state metadata patch. Mirrors annotation patch semantics:
20
+ * `undefined` leaves a field, `null` clears it, a value sets it. `custom`
21
+ * is a per-key three-state map (string set / null clear / absent leave).
22
+ */
23
+ declare const MetadataPatchSchema: z.ZodType<MetadataPatch>;
24
+ declare const OpenDocumentResponseSchema: z.ZodObject<{
25
+ id: z.ZodString;
26
+ }, "strip", z.ZodTypeAny, {
27
+ id: string;
28
+ }, {
29
+ id: string;
30
+ }>;
31
+ type OpenDocumentResponse = z.infer<typeof OpenDocumentResponseSchema>;
32
+ /**
33
+ * Wire shape of `GET /v1/docs/:docId/head`. Mirrors the server-side
34
+ * `DocumentHead` interface; the schema is the source of truth so
35
+ * older SDKs talking to newer servers degrade gracefully (extra
36
+ * fields are accepted and ignored).
37
+ *
38
+ * `docVersion` is the single monotonic integer per doc; it bumps on
39
+ * ANY mutation that could change the manifest's content (page list,
40
+ * per-page content, per-page annotations, per-page weak-flag), which
41
+ * makes `/manifest@docVersion=N` fully content-addressed and cache-friendly.
42
+ * Phase 4 hard-codes it to `1`; Phase 5's mutation handler is what
43
+ * actually bumps it.
44
+ */
45
+ declare const DocumentHeadSchema: z.ZodObject<{
46
+ id: z.ZodString;
47
+ baseSha: z.ZodString;
48
+ storageSizeBytes: z.ZodNumber;
49
+ docVersion: z.ZodNumber;
50
+ state: z.ZodEnum<["pending", "ready", "failed", "deleting"]>;
51
+ encryption: z.ZodObject<{
52
+ state: z.ZodEnum<["unknown", "none", "encrypted", "unsupported"]>;
53
+ requiresPassword: z.ZodNullable<z.ZodBoolean>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ state: "none" | "unknown" | "encrypted" | "unsupported";
56
+ requiresPassword: boolean | null;
57
+ }, {
58
+ state: "none" | "unknown" | "encrypted" | "unsupported";
59
+ requiresPassword: boolean | null;
60
+ }>;
61
+ permissions: z.ZodObject<{
62
+ known: z.ZodBoolean;
63
+ bits: z.ZodNullable<z.ZodNumber>;
64
+ allAllowed: z.ZodNullable<z.ZodBoolean>;
65
+ openedAs: z.ZodNullable<z.ZodEnum<["none", "user", "owner"]>>;
66
+ securityHandlerRevision: z.ZodNullable<z.ZodNumber>;
67
+ canUpgradeToOwner: z.ZodBoolean;
68
+ }, "strip", z.ZodTypeAny, {
69
+ known: boolean;
70
+ bits: number | null;
71
+ allAllowed: boolean | null;
72
+ openedAs: "none" | "user" | "owner" | null;
73
+ securityHandlerRevision: number | null;
74
+ canUpgradeToOwner: boolean;
75
+ }, {
76
+ known: boolean;
77
+ bits: number | null;
78
+ allAllowed: boolean | null;
79
+ openedAs: "none" | "user" | "owner" | null;
80
+ securityHandlerRevision: number | null;
81
+ canUpgradeToOwner: boolean;
82
+ }>;
83
+ access: z.ZodObject<{
84
+ required: z.ZodBoolean;
85
+ reasons: z.ZodArray<z.ZodEnum<["password", "cdn", "permissions-unknown"]>, "many">;
86
+ endpoint: z.ZodOptional<z.ZodString>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ required: boolean;
89
+ reasons: ("password" | "cdn" | "permissions-unknown")[];
90
+ endpoint?: string | undefined;
91
+ }, {
92
+ required: boolean;
93
+ reasons: ("password" | "cdn" | "permissions-unknown")[];
94
+ endpoint?: string | undefined;
95
+ }>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ docVersion: number;
98
+ id: string;
99
+ baseSha: string;
100
+ storageSizeBytes: number;
101
+ state: "pending" | "ready" | "failed" | "deleting";
102
+ encryption: {
103
+ state: "none" | "unknown" | "encrypted" | "unsupported";
104
+ requiresPassword: boolean | null;
105
+ };
106
+ permissions: {
107
+ known: boolean;
108
+ bits: number | null;
109
+ allAllowed: boolean | null;
110
+ openedAs: "none" | "user" | "owner" | null;
111
+ securityHandlerRevision: number | null;
112
+ canUpgradeToOwner: boolean;
113
+ };
114
+ access: {
115
+ required: boolean;
116
+ reasons: ("password" | "cdn" | "permissions-unknown")[];
117
+ endpoint?: string | undefined;
118
+ };
119
+ }, {
120
+ docVersion: number;
121
+ id: string;
122
+ baseSha: string;
123
+ storageSizeBytes: number;
124
+ state: "pending" | "ready" | "failed" | "deleting";
125
+ encryption: {
126
+ state: "none" | "unknown" | "encrypted" | "unsupported";
127
+ requiresPassword: boolean | null;
128
+ };
129
+ permissions: {
130
+ known: boolean;
131
+ bits: number | null;
132
+ allAllowed: boolean | null;
133
+ openedAs: "none" | "user" | "owner" | null;
134
+ securityHandlerRevision: number | null;
135
+ canUpgradeToOwner: boolean;
136
+ };
137
+ access: {
138
+ required: boolean;
139
+ reasons: ("password" | "cdn" | "permissions-unknown")[];
140
+ endpoint?: string | undefined;
141
+ };
142
+ }>;
143
+ type DocumentHead = z.infer<typeof DocumentHeadSchema>;
144
+ declare const AccessRequestSchema: z.ZodObject<{
145
+ docId: z.ZodString;
146
+ layerName: z.ZodOptional<z.ZodString>;
147
+ password: z.ZodOptional<z.ZodString>;
148
+ passwordGrant: z.ZodOptional<z.ZodString>;
149
+ mode: z.ZodOptional<z.ZodEnum<["any", "owner"]>>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ docId: string;
152
+ mode?: "owner" | "any" | undefined;
153
+ password?: string | undefined;
154
+ layerName?: string | undefined;
155
+ passwordGrant?: string | undefined;
156
+ }, {
157
+ docId: string;
158
+ mode?: "owner" | "any" | undefined;
159
+ password?: string | undefined;
160
+ layerName?: string | undefined;
161
+ passwordGrant?: string | undefined;
162
+ }>;
163
+ type AccessRequest = z.infer<typeof AccessRequestSchema>;
164
+ declare const DocumentSecurityStateSchema: z.ZodType<DocumentSecurityState>;
165
+ declare const AccessResponseSchema: z.ZodObject<{
166
+ security: z.ZodType<DocumentSecurityState, z.ZodTypeDef, DocumentSecurityState>;
167
+ cdn: z.ZodObject<{
168
+ adapter: z.ZodEnum<["none", "cloudfront", "cloud-cdn", "bunny", "azure-fd", "custom-hmac"]>;
169
+ expiresAt: z.ZodNumber;
170
+ cache: z.ZodObject<{
171
+ scope: z.ZodEnum<["browser-private", "edge-shared"]>;
172
+ immutableVersionedReads: z.ZodBoolean;
173
+ }, "strip", z.ZodTypeAny, {
174
+ scope: "browser-private" | "edge-shared";
175
+ immutableVersionedReads: boolean;
176
+ }, {
177
+ scope: "browser-private" | "edge-shared";
178
+ immutableVersionedReads: boolean;
179
+ }>;
180
+ baseUrlOverrides: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
181
+ authHeader: z.ZodNullable<z.ZodObject<{
182
+ name: z.ZodString;
183
+ value: z.ZodString;
184
+ }, "strip", z.ZodTypeAny, {
185
+ value: string;
186
+ name: string;
187
+ }, {
188
+ value: string;
189
+ name: string;
190
+ }>>;
191
+ signedQueryParams: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
192
+ signedCookies: z.ZodNullable<z.ZodArray<z.ZodObject<{
193
+ name: z.ZodString;
194
+ value: z.ZodString;
195
+ domain: z.ZodOptional<z.ZodString>;
196
+ path: z.ZodOptional<z.ZodString>;
197
+ expires: z.ZodOptional<z.ZodNumber>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ value: string;
200
+ name: string;
201
+ path?: string | undefined;
202
+ domain?: string | undefined;
203
+ expires?: number | undefined;
204
+ }, {
205
+ value: string;
206
+ name: string;
207
+ path?: string | undefined;
208
+ domain?: string | undefined;
209
+ expires?: number | undefined;
210
+ }>, "many">>;
211
+ signedPathPolicies: z.ZodNullable<z.ZodArray<z.ZodObject<{
212
+ pathPrefix: z.ZodString;
213
+ queryParams: z.ZodRecord<z.ZodString, z.ZodString>;
214
+ }, "strip", z.ZodTypeAny, {
215
+ pathPrefix: string;
216
+ queryParams: Record<string, string>;
217
+ }, {
218
+ pathPrefix: string;
219
+ queryParams: Record<string, string>;
220
+ }>, "many">>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ adapter: "none" | "cloudfront" | "cloud-cdn" | "bunny" | "azure-fd" | "custom-hmac";
223
+ expiresAt: number;
224
+ cache: {
225
+ scope: "browser-private" | "edge-shared";
226
+ immutableVersionedReads: boolean;
227
+ };
228
+ baseUrlOverrides: Record<string, string> | null;
229
+ authHeader: {
230
+ value: string;
231
+ name: string;
232
+ } | null;
233
+ signedQueryParams: Record<string, string> | null;
234
+ signedCookies: {
235
+ value: string;
236
+ name: string;
237
+ path?: string | undefined;
238
+ domain?: string | undefined;
239
+ expires?: number | undefined;
240
+ }[] | null;
241
+ signedPathPolicies: {
242
+ pathPrefix: string;
243
+ queryParams: Record<string, string>;
244
+ }[] | null;
245
+ }, {
246
+ adapter: "none" | "cloudfront" | "cloud-cdn" | "bunny" | "azure-fd" | "custom-hmac";
247
+ expiresAt: number;
248
+ cache: {
249
+ scope: "browser-private" | "edge-shared";
250
+ immutableVersionedReads: boolean;
251
+ };
252
+ baseUrlOverrides: Record<string, string> | null;
253
+ authHeader: {
254
+ value: string;
255
+ name: string;
256
+ } | null;
257
+ signedQueryParams: Record<string, string> | null;
258
+ signedCookies: {
259
+ value: string;
260
+ name: string;
261
+ path?: string | undefined;
262
+ domain?: string | undefined;
263
+ expires?: number | undefined;
264
+ }[] | null;
265
+ signedPathPolicies: {
266
+ pathPrefix: string;
267
+ queryParams: Record<string, string>;
268
+ }[] | null;
269
+ }>;
270
+ passwordGrant: z.ZodNullable<z.ZodString>;
271
+ pdfPermissions: z.ZodNullable<z.ZodType<PdfPermissionInfo, z.ZodTypeDef, PdfPermissionInfo>>;
272
+ scope: z.ZodArray<z.ZodString, "many">;
273
+ /**
274
+ * Concrete capability set granted to this caller after expanding
275
+ * `pdf.permissions` and applying resolver implication rules. Client
276
+ * UI should drive feature visibility off this, not off raw `scope`.
277
+ * Always present in /access responses (server populates from
278
+ * `expandRawScope`). Sorted alphabetically for stable change
279
+ * detection.
280
+ */
281
+ effectiveScope: z.ZodArray<z.ZodString, "many">;
282
+ identity: z.ZodObject<{
283
+ user_id: z.ZodOptional<z.ZodString>;
284
+ group_id: z.ZodOptional<z.ZodString>;
285
+ groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
286
+ display_name: z.ZodOptional<z.ZodString>;
287
+ }, "strip", z.ZodTypeAny, {
288
+ user_id?: string | undefined;
289
+ group_id?: string | undefined;
290
+ groups?: string[] | undefined;
291
+ display_name?: string | undefined;
292
+ }, {
293
+ user_id?: string | undefined;
294
+ group_id?: string | undefined;
295
+ groups?: string[] | undefined;
296
+ display_name?: string | undefined;
297
+ }>;
298
+ originPasswordPolicy: z.ZodObject<{
299
+ mode: z.ZodEnum<["not-needed", "client-retry", "server-session"]>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ mode: "not-needed" | "client-retry" | "server-session";
302
+ }, {
303
+ mode: "not-needed" | "client-retry" | "server-session";
304
+ }>;
305
+ expiresAt: z.ZodNumber;
306
+ /**
307
+ * The deployment's render lattice — the canonical parameter points the
308
+ * server treats as durable, CDN-shared artifacts. Lives HERE and never in
309
+ * the manifest: manifests are version-pinned immutable objects; the
310
+ * lattice is mutable deployment policy. The SDK exposes it (and a pure
311
+ * `snap` helper) but NEVER conforms requests implicitly — the same render
312
+ * call must not return different pixels on local vs cloud. When
313
+ * `enforced` is true the server rejects off-lattice render tokens with
314
+ * 400; when false, off-lattice renders are computed but not persisted.
315
+ * Absent on older servers → treat as unenforced/unknown.
316
+ */
317
+ renderPolicy: z.ZodOptional<z.ZodObject<{
318
+ /**
319
+ * Full-page renders quantize on `viewport.width` — the bounded
320
+ * quantity is OUTPUT PIXELS, never zoom (PDF page space is
321
+ * effectively unbounded, so a scale lattice bounds artifact count
322
+ * but not size).
323
+ */
324
+ fullPage: z.ZodObject<{
325
+ widths: z.ZodArray<z.ZodNumber, "many">;
326
+ }, "strip", z.ZodTypeAny, {
327
+ widths: number[];
328
+ }, {
329
+ widths: number[];
330
+ }>;
331
+ /**
332
+ * RESERVED for deep-zoom tile support: scale-based pyramid ×
333
+ * fixed tile size, constant per-job cost. Absent until the tiling
334
+ * plugin ships.
335
+ */
336
+ tiles: z.ZodOptional<z.ZodObject<{
337
+ tileSizes: z.ZodArray<z.ZodNumber, "many">;
338
+ scales: z.ZodArray<z.ZodNumber, "many">;
339
+ }, "strip", z.ZodTypeAny, {
340
+ tileSizes: number[];
341
+ scales: number[];
342
+ }, {
343
+ tileSizes: number[];
344
+ scales: number[];
345
+ }>>;
346
+ /**
347
+ * Annotation-appearance lattice — SCALE-based (appearances are sized
348
+ * by `rect × scale` and must track the page's effective render scale
349
+ * for crisp composites).
350
+ */
351
+ appearances: z.ZodOptional<z.ZodObject<{
352
+ scales: z.ZodArray<z.ZodNumber, "many">;
353
+ }, "strip", z.ZodTypeAny, {
354
+ scales: number[];
355
+ }, {
356
+ scales: number[];
357
+ }>>;
358
+ /** Worker-side output budget for degenerate page geometry. */
359
+ maxRenderPixels: z.ZodOptional<z.ZodNumber>;
360
+ formats: z.ZodArray<z.ZodEnum<["webp", "png"]>, "many">;
361
+ background: z.ZodEnum<["white"]>;
362
+ enforced: z.ZodBoolean;
363
+ }, "strip", z.ZodTypeAny, {
364
+ background: "white";
365
+ fullPage: {
366
+ widths: number[];
367
+ };
368
+ formats: ("webp" | "png")[];
369
+ enforced: boolean;
370
+ tiles?: {
371
+ tileSizes: number[];
372
+ scales: number[];
373
+ } | undefined;
374
+ appearances?: {
375
+ scales: number[];
376
+ } | undefined;
377
+ maxRenderPixels?: number | undefined;
378
+ }, {
379
+ background: "white";
380
+ fullPage: {
381
+ widths: number[];
382
+ };
383
+ formats: ("webp" | "png")[];
384
+ enforced: boolean;
385
+ tiles?: {
386
+ tileSizes: number[];
387
+ scales: number[];
388
+ } | undefined;
389
+ appearances?: {
390
+ scales: number[];
391
+ } | undefined;
392
+ maxRenderPixels?: number | undefined;
393
+ }>>;
394
+ }, "strip", z.ZodTypeAny, {
395
+ cdn: {
396
+ adapter: "none" | "cloudfront" | "cloud-cdn" | "bunny" | "azure-fd" | "custom-hmac";
397
+ expiresAt: number;
398
+ cache: {
399
+ scope: "browser-private" | "edge-shared";
400
+ immutableVersionedReads: boolean;
401
+ };
402
+ baseUrlOverrides: Record<string, string> | null;
403
+ authHeader: {
404
+ value: string;
405
+ name: string;
406
+ } | null;
407
+ signedQueryParams: Record<string, string> | null;
408
+ signedCookies: {
409
+ value: string;
410
+ name: string;
411
+ path?: string | undefined;
412
+ domain?: string | undefined;
413
+ expires?: number | undefined;
414
+ }[] | null;
415
+ signedPathPolicies: {
416
+ pathPrefix: string;
417
+ queryParams: Record<string, string>;
418
+ }[] | null;
419
+ };
420
+ passwordGrant: string | null;
421
+ security: DocumentSecurityState;
422
+ expiresAt: number;
423
+ scope: string[];
424
+ pdfPermissions: PdfPermissionInfo | null;
425
+ effectiveScope: string[];
426
+ identity: {
427
+ user_id?: string | undefined;
428
+ group_id?: string | undefined;
429
+ groups?: string[] | undefined;
430
+ display_name?: string | undefined;
431
+ };
432
+ originPasswordPolicy: {
433
+ mode: "not-needed" | "client-retry" | "server-session";
434
+ };
435
+ renderPolicy?: {
436
+ background: "white";
437
+ fullPage: {
438
+ widths: number[];
439
+ };
440
+ formats: ("webp" | "png")[];
441
+ enforced: boolean;
442
+ tiles?: {
443
+ tileSizes: number[];
444
+ scales: number[];
445
+ } | undefined;
446
+ appearances?: {
447
+ scales: number[];
448
+ } | undefined;
449
+ maxRenderPixels?: number | undefined;
450
+ } | undefined;
451
+ }, {
452
+ cdn: {
453
+ adapter: "none" | "cloudfront" | "cloud-cdn" | "bunny" | "azure-fd" | "custom-hmac";
454
+ expiresAt: number;
455
+ cache: {
456
+ scope: "browser-private" | "edge-shared";
457
+ immutableVersionedReads: boolean;
458
+ };
459
+ baseUrlOverrides: Record<string, string> | null;
460
+ authHeader: {
461
+ value: string;
462
+ name: string;
463
+ } | null;
464
+ signedQueryParams: Record<string, string> | null;
465
+ signedCookies: {
466
+ value: string;
467
+ name: string;
468
+ path?: string | undefined;
469
+ domain?: string | undefined;
470
+ expires?: number | undefined;
471
+ }[] | null;
472
+ signedPathPolicies: {
473
+ pathPrefix: string;
474
+ queryParams: Record<string, string>;
475
+ }[] | null;
476
+ };
477
+ passwordGrant: string | null;
478
+ security: DocumentSecurityState;
479
+ expiresAt: number;
480
+ scope: string[];
481
+ pdfPermissions: PdfPermissionInfo | null;
482
+ effectiveScope: string[];
483
+ identity: {
484
+ user_id?: string | undefined;
485
+ group_id?: string | undefined;
486
+ groups?: string[] | undefined;
487
+ display_name?: string | undefined;
488
+ };
489
+ originPasswordPolicy: {
490
+ mode: "not-needed" | "client-retry" | "server-session";
491
+ };
492
+ renderPolicy?: {
493
+ background: "white";
494
+ fullPage: {
495
+ widths: number[];
496
+ };
497
+ formats: ("webp" | "png")[];
498
+ enforced: boolean;
499
+ tiles?: {
500
+ tileSizes: number[];
501
+ scales: number[];
502
+ } | undefined;
503
+ appearances?: {
504
+ scales: number[];
505
+ } | undefined;
506
+ maxRenderPixels?: number | undefined;
507
+ } | undefined;
508
+ }>;
509
+ type AccessResponse = z.infer<typeof AccessResponseSchema>;
510
+ type RenderPolicy = NonNullable<AccessResponse['renderPolicy']>;
511
+ declare const PdfSaveModeSchema: z.ZodType<PdfSaveMode>;
512
+ declare const EngineErrorPayloadSchema: z.ZodType<SerializedEngineError>;
513
+ declare const PageStateSchema: z.ZodType<PageState>;
514
+ declare const CachePinsSchema: z.ZodType<CachePins>;
515
+ declare const LayerScopesSchema: z.ZodType<LayerScopes>;
516
+ /**
517
+ * Per-page envelope inside `DocumentManifest`. Carries the full
518
+ * `PageState` plus the cache-busting integers the SDK embeds in
519
+ * leaf URLs (`/pages/:pon/text@contentVersion=N`, `/pages/:pon/annotations@annotationVersion=N`).
520
+ *
521
+ * `contentVersion` bumps when the page's content stream changes
522
+ * (text, page reorder doesn't, the pon is durable). `annotationVersion`
523
+ * bumps when /Annots gains/loses entries or when a tracked annotation
524
+ * mutates. `hasWeakAnnotations` is hoisted from `PageState` so the
525
+ * SDK can decide whether to display a "stale-on-reorder" badge
526
+ * without re-fetching the page.
527
+ *
528
+ * Phase 4 hard-codes all three to (1, 1, false); Phase 5's
529
+ * `layer_pages` table drives the real values.
530
+ */
531
+ declare const ManifestPageSchema: z.ZodType<ManifestPage>;
532
+ /**
533
+ * Wire shape of `GET /v1/docs/:docId/manifest@docVersion=N`. Content-addressed
534
+ * by `docVersion`; safe to cache with `Cache-Control: public,
535
+ * max-age=31536000, immutable`.
536
+ */
537
+ declare const DocumentManifestSchema: z.ZodType<DocumentManifest>;
538
+ declare const AnnotationListPageSnapshotSchema: z.ZodType<AnnotationListPageSnapshot>;
539
+ declare const AnnotationListSnapshotAllPagesSchema: z.ZodType<AnnotationListSnapshotAllPages>;
540
+ /**
541
+ * Wire shape of `GET /v1/docs/:docId/pages/:pon/text@contentVersion=N` and the
542
+ * `pages.text` worker result. Carries the same `pageState` envelope
543
+ * every page-scoped read returns, plus the full plain-text extraction
544
+ * in display order and PDFium's char-count (which may exceed
545
+ * `text.length / 1` when astral-plane characters are present).
546
+ */
547
+ declare const PageTextSnapshotSchema: z.ZodType<PageTextSnapshot>;
548
+ declare const PageGeometrySnapshotSchema: z.ZodType<PageGeometrySnapshot>;
549
+ /**
550
+ * Search wire shapes: the request body of the layer search route and the
551
+ * `search.query` worker/route result. The server re-validates the query
552
+ * semantics (`validateSearchQuery`: regex dialect + flag combos) after
553
+ * parse — the schema only checks structure.
554
+ */
555
+ declare const SearchQuerySchema: z.ZodType<SearchQuery>;
556
+ declare const SearchModeSchema: z.ZodEnum<["rects", "full"]>;
557
+ declare const SearchRequestSchema: z.ZodType<SearchRequest>;
558
+ declare const SearchSnippetSchema: z.ZodType<SearchSnippet>;
559
+ declare const SearchMatchSchema: z.ZodType<SearchMatch>;
560
+ declare const SearchSliceSchema: z.ZodType<SearchSlice>;
561
+ declare const PageNetworkRenderFormatSchema: z.ZodType<PageNetworkRenderFormat>;
562
+ /** Query/token schema for the annotation-free render family (`page-render`). */
563
+ declare const PageRenderQuerySchema: z.ZodType<PageRenderQuery, z.ZodTypeDef, PageRenderQuery>;
564
+ /** Query/token schema for the annotated render family (`page-render-annotated`). */
565
+ declare const PageRenderAnnotatedQuerySchema: z.ZodType<PageRenderQuery, z.ZodTypeDef, PageRenderQuery>;
566
+ /**
567
+ * Query/token schema for the batch annotation-appearance render endpoint.
568
+ * Mirrors `PageRenderQuerySchema` but without page target/viewport/background
569
+ * or `includeAnnotations` (appearances are always annotation-derived), and
570
+ * keyed by `annotationVersion` only — appearance bitmaps do not depend on
571
+ * page base content, so `contentVersion` is not part of the cache key. The
572
+ * endpoint renders the Normal appearance only.
573
+ */
574
+ declare const AnnotationAppearancesQuerySchema: z.ZodType<AnnotationAppearancesQuery>;
575
+ /**
576
+ * The JSON manifest part of the appearance `multipart/form-data` response.
577
+ * Wire-stable; the cloud client validates the parsed `manifest` part against
578
+ * this before reconstructing image handles from the binary parts.
579
+ */
580
+ declare const AnnotationAppearanceManifestSchema: z.ZodType<AnnotationAppearanceManifest>;
581
+ /**
582
+ * Reasons a mutation tells the client its old snapshot is stale. Wire-stable;
583
+ * extend with care (forward-compat clients accept only known values).
584
+ */
585
+ declare const RefetchReasonSchema: z.ZodType<RefetchReason>;
586
+ declare const CacheDeltaSchema: z.ZodType<CacheDelta>;
587
+ declare const MutationMetaSchema: z.ZodType<MutationMeta>;
588
+ /**
589
+ * Per-page side-effect envelope every annotation mutation returns. Mirrors
590
+ * `AnnotationListMutationMeta`. The `shouldRefetch` field is `null` when the
591
+ * client's existing index-based references remain valid; non-null only when
592
+ * the engine knows for sure the snapshot is stale.
593
+ */
594
+ declare const AnnotationListMutationMetaSchema: z.ZodType<AnnotationListMutationMeta>;
595
+ declare const AnnotationCreateResultSchema: z.ZodType<AnnotationCreateResult>;
596
+ /** The engine's `/AP` verdict riding every update result (see engine-core
597
+ * `annotation/appearance.ts`). `changed` drives client raster invalidation. */
598
+ declare const AppearanceOutcomeSchema: z.ZodType<AppearanceOutcome>;
599
+ declare const AnnotationUpdateResultSchema: z.ZodType<AnnotationUpdateResult>;
600
+ /**
601
+ * `deleted` is nullable: a weak annotation (no /NM, no indirect object
602
+ * number) has no durable id to report after removal. Cloud server and local
603
+ * worker both emit `null` in that case so callers don't have to special-case
604
+ * a sentinel.
605
+ */
606
+ declare const AnnotationDeleteResultSchema: z.ZodType<AnnotationDeleteResult>;
607
+ /**
608
+ * Batch annotation move (contiguous-block, symmetric with `pages.move`).
609
+ * `moved` is in caller order; each `moved[i]` lives at index `toIndex + i`
610
+ * after the move. ONE structural envelope per batch.
611
+ */
612
+ declare const AnnotationMoveResultSchema: z.ZodType<AnnotationMoveResult>;
613
+ declare const FormSetValueResultSchema: z.ZodType<FormSetValueResult>;
614
+ declare const FormEffectSchema: z.ZodType<FormEffect>;
615
+ declare const FormEffectsResultSchema: z.ZodType<FormEffectsResult>;
616
+ declare const FormImportResultSchema: z.ZodType<FormImportResult>;
617
+ declare const FormFieldCreateResultSchema: z.ZodType<FormFieldCreateResult>;
618
+ declare const FormFieldUpdateResultSchema: z.ZodType<FormFieldUpdateResult>;
619
+ declare const FormFieldDeleteResultSchema: z.ZodType<FormFieldDeleteResult>;
620
+ declare const FormWidgetLinkResultSchema: z.ZodType<FormWidgetLinkResult>;
621
+ declare const FormRepairResultSchema: z.ZodType<FormRepairResult>;
622
+ declare const PageBoxesSchema: z.ZodType<PageBoxes>;
623
+ /**
624
+ * Pure geometry for one page (`pages.list()` element). No annotation
625
+ * liveness — that lives on annotation reads and the manifest.
626
+ */
627
+ declare const PageLayoutSchema: z.ZodType<PageLayout>;
628
+ declare const PageFlattenResultSchema: z.ZodType<PageFlattenResult>;
629
+ declare const PageFlattenInputSchema: z.ZodType<PageFlattenInput>;
630
+ declare const RedactionApplyScopeSchema: z.ZodType<RedactionApplyScope>;
631
+ declare const RedactionApplyResultSchema: z.ZodType<RedactionApplyResult>;
632
+ /**
633
+ * Snapshot of every page in display order. Pages are addressed by
634
+ * `pageObjectNumber` everywhere except the per-element `index`, which is
635
+ * display order and intentionally not an identity. Carries geometry only.
636
+ */
637
+ declare const PageListSnapshotSchema: z.ZodType<PageListSnapshot>;
638
+ /**
639
+ * Page reorder input. Pages are always addressed by `pageObjectNumber`;
640
+ * `destIndex` is the insertion point in the post-removal index space.
641
+ */
642
+ declare const PageMoveInputSchema: z.ZodType<PageMoveInput>;
643
+ /**
644
+ * Coherence pins shared by every page-STRUCTURE result (move/rotate/delete) —
645
+ * see `PageStructureCache`. Nullable at each use site (local engines).
646
+ */
647
+ declare const PageStructureCacheSchema: z.ZodType<PageStructureCache>;
648
+ /**
649
+ * Page reorder result. No revision is bumped (no doc-level revision exists,
650
+ * and per-page revisions intentionally survive a page reorder). The full
651
+ * post-move order is returned so callers can swap their snapshot directly.
652
+ */
653
+ declare const PageMoveResultSchema: z.ZodType<PageMoveResult>;
654
+ /**
655
+ * Page rotate input. ABSOLUTE rotation (idempotent — see `PageRotateInput`),
656
+ * one value applied to every listed page.
657
+ */
658
+ declare const PageRotateInputSchema: z.ZodType<PageRotateInput>;
659
+ /**
660
+ * Page rotate result. Rotation is presentation metadata over normalized
661
+ * content: nothing per-page invalidates; the new `layout` carries the
662
+ * rotation values (see `PageRotateResult`).
663
+ */
664
+ declare const PageRotateResultSchema: z.ZodType<PageRotateResult>;
665
+ /** Page delete input. Deleting every page is rejected server/worker-side. */
666
+ declare const PageDeleteInputSchema: z.ZodType<PageDeleteInput>;
667
+ /**
668
+ * Page delete result. Deleted PONs are retired (never recycled); surviving
669
+ * pages keep identity + revisions (see `PageDeleteResult`).
670
+ */
671
+ declare const PageDeleteResultSchema: z.ZodType<PageDeleteResult>;
672
+ /**
673
+ * Metadata write result. The Info dict is rewritten in place, so the
674
+ * result returns the re-read `metadata` plus cloud coherence pins. No
675
+ * `layoutVersion` is touched — a metadata edit bumps only `docVersion`
676
+ * and `metadataVersion`. `cache` is `null` for local engines.
677
+ */
678
+ declare const AttachmentsCacheSchema: z.ZodType<AttachmentsCache>;
679
+ declare const AttachmentCreateResultSchema: z.ZodType<AttachmentCreateResult>;
680
+ declare const AttachmentDeleteResultSchema: z.ZodType<AttachmentDeleteResult>;
681
+ declare const MetadataUpdateResultSchema: z.ZodType<MetadataUpdateResult>;
682
+ declare const WeakAnnotationSessionResponseSchema: z.ZodObject<{
683
+ sessionId: z.ZodString;
684
+ expiresAt: z.ZodNumber;
685
+ heartbeatIntervalMs: z.ZodNumber;
686
+ pageObjectNumbers: z.ZodArray<z.ZodNumber, "many">;
687
+ }, "strip", z.ZodTypeAny, {
688
+ expiresAt: number;
689
+ sessionId: string;
690
+ heartbeatIntervalMs: number;
691
+ pageObjectNumbers: number[];
692
+ }, {
693
+ expiresAt: number;
694
+ sessionId: string;
695
+ heartbeatIntervalMs: number;
696
+ pageObjectNumbers: number[];
697
+ }>;
698
+ type WeakAnnotationSessionResponse = z.infer<typeof WeakAnnotationSessionResponseSchema>;
699
+ declare const WeakAnnotationSessionPagesRequestSchema: z.ZodObject<{
700
+ pageObjectNumbers: z.ZodEffects<z.ZodArray<z.ZodNumber, "many">, number[], number[]>;
701
+ }, "strip", z.ZodTypeAny, {
702
+ pageObjectNumbers: number[];
703
+ }, {
704
+ pageObjectNumbers: number[];
705
+ }>;
706
+ type WeakAnnotationSessionPagesRequest = z.infer<typeof WeakAnnotationSessionPagesRequestSchema>;
707
+ //#endregion
708
+ //#region src/dto/PdfAction.schema.d.ts
709
+ declare const PdfActionTypeSchema: z.ZodEnum<["unknown", "goto", "goto-remote", "goto-embedded", "launch", "thread", "uri", "sound", "movie", "hide", "named", "submit-form", "reset-form", "import-data", "javascript", "set-ocg-state", "rendition", "transition", "goto-3d-view"]>;
710
+ declare const PdfActionNodeSchema: z.ZodType<PdfActionNode>;
711
+ declare const PdfActionTreeSchema: z.ZodType<PdfActionTree>;
712
+ declare const PdfFieldActionsSchema: z.ZodType<PdfFieldActions>;
713
+ declare const PdfPageActionsSchema: z.ZodType<PdfPageActions>;
714
+ declare const PdfAnnotationActionsSchema: z.ZodType<PdfAnnotationActions>;
715
+ declare const DocumentActionsSnapshotSchema: z.ZodType<DocumentActionsSnapshot>;
716
+ //#endregion
717
+ //#region src/forms/schema.d.ts
718
+ declare const FormFieldRefSchema: z.ZodType<FormFieldRef>;
719
+ declare const FormWidgetRefSchema: z.ZodType<FormWidgetRef>;
720
+ declare const FormFieldFlagsSchema: z.ZodType<FormFieldFlags>;
721
+ declare const ToggleFieldWidgetSchema: z.ZodType<ToggleFieldWidget>;
722
+ declare const FormFieldOptionSchema: z.ZodType<FormFieldOption>;
723
+ declare const FormValueEntrySchema: z.ZodType<FormValueEntry>;
724
+ declare const FormFieldDTOSchema: z.ZodType<FormFieldDTO>;
725
+ declare const FormKindSchema: z.ZodType<FormKind>;
726
+ declare const FormSnapshotSchema: z.ZodType<FormSnapshot>;
727
+ declare const FormFieldValueSchema: z.ZodType<FormFieldValue>;
728
+ declare const FormDataFormatSchema: z.ZodType<FormDataFormat>;
729
+ declare const WidgetPlacementSchema: z.ZodType<WidgetPlacement>;
730
+ declare const FormFieldOptionInputSchema: z.ZodType<FormFieldOptionInput>;
731
+ declare const FormFieldDraftSchema: z.ZodType<FormFieldDraft>;
732
+ declare const FormFieldPatchSchema: z.ZodType<FormFieldPatch>;
733
+ //#endregion
734
+ //#region src/wire/token.d.ts
735
+ type TokenScalar = string | number | boolean;
736
+ type TokenInput = Record<string, TokenScalar | undefined>;
737
+ type TokenQuery = Record<string, string>;
738
+ interface TokenSchema {
739
+ /**
740
+ * Allowed field names. Field names are dotted paths of camelCase segments
741
+ * (e.g. `viewport.kind`, `target.rect.left`). `=` is reserved as the
742
+ * key/value delimiter and `,` as the pair separator, so neither may appear
743
+ * in field names. `.` is the path separator that lets dotted keys round-
744
+ * trip generically through `flatten`/`unflatten`.
745
+ *
746
+ * The token form is intentionally isomorphic to a query string: swap `,`
747
+ * for `&` and you have a query string with identical keys and values.
748
+ * Both `=` and `,` are RFC 3986 sub-delims, allowed unencoded in path
749
+ * segments, so the token never needs URL-encoding for its grammar.
750
+ */
751
+ fields: readonly string[];
752
+ maxLength?: number;
753
+ }
754
+ declare function encodeToken(schema: TokenSchema, input: TokenInput): string;
755
+ declare function decodeToken(schema: TokenSchema, raw: string): TokenQuery;
756
+ //#endregion
757
+ //#region src/wire/tokens.d.ts
758
+ interface DownloadToken {
759
+ docVersion: number;
760
+ mode: PdfSaveMode;
761
+ }
762
+ declare const encodeDocToken: (docVersion: number) => string;
763
+ declare const decodeDocToken: (raw: string) => number;
764
+ declare const encodeContentToken: (contentVersion: number) => string;
765
+ declare const decodeContentToken: (raw: string) => number;
766
+ declare const encodeLayoutToken: (layoutVersion: number) => string;
767
+ declare const decodeLayoutToken: (raw: string) => number;
768
+ declare const encodeMetadataToken: (metadataVersion: number) => string;
769
+ declare const decodeMetadataToken: (raw: string) => number;
770
+ declare const encodeAnnotationToken: (annotationVersion: number) => string;
771
+ declare const decodeAnnotationToken: (raw: string) => number;
772
+ declare const encodeActionsToken: (actionsVersion: number) => string;
773
+ declare const decodeActionsToken: (raw: string) => number;
774
+ declare const encodeAttachmentsToken: (attachmentsVersion: number) => string;
775
+ declare const decodeAttachmentsToken: (raw: string) => number;
776
+ declare const encodeDownloadToken: (input: DownloadToken) => string;
777
+ declare const decodeDownloadToken: (raw: string) => DownloadToken;
778
+ /**
779
+ * Encode a render token from a flat wire-shape input. The input is the
780
+ * output of `flatten(...)` over an SDK `PageImageOptions`-shaped object plus
781
+ * cache versions. Semantic invariants (viewport-kind XOR fields, per-family
782
+ * pin grammar — annotatedness itself is PATH-expressed, never a token key —
783
+ * target rect coherence) live in the per-family render query schemas —
784
+ * running them here would duplicate the spec.
785
+ */
786
+ declare const encodeRenderToken: (input: TokenInput) => string;
787
+ /**
788
+ * Decode a render token to a flat `Record<string, string>` of allowed
789
+ * fields. Use `unflatten(...)` + `PageImageOptionsWireSchema.parse(...)` to
790
+ * recover the nested SDK shape with full coercion + validation.
791
+ */
792
+ declare const decodeRenderToken: (raw: string) => TokenQuery;
793
+ /**
794
+ * Encode an annotation-appearance render token from a flat wire-shape input
795
+ * (the `flatten(...)` of an `AnnotationAppearanceImageOptions`-shaped object
796
+ * plus cache versions). Semantic validation lives in
797
+ * `AnnotationAppearancesQuerySchema`.
798
+ */
799
+ declare const encodeAnnotationAppearancesRenderToken: (input: TokenInput) => string;
800
+ /** Decode an annotation-appearance render token to a flat field map. */
801
+ declare const decodeAnnotationAppearancesRenderToken: (raw: string) => TokenQuery;
802
+ /**
803
+ * The decoded state of a versioned search URL — the WHOLE cache key.
804
+ * `epoch` is `searchContentEpoch(manifest)`; `skip` is the number of
805
+ * scan-order pages already consumed (0 = first slice). The server mints
806
+ * continuation tokens (same epoch, advanced skip); the client decodes
807
+ * them only to verify a resumed cursor still belongs to its query.
808
+ */
809
+ interface SearchToken {
810
+ epoch: string;
811
+ query: SearchQuery;
812
+ startPage?: number;
813
+ skip: number;
814
+ budget?: SearchSliceBudget;
815
+ }
816
+ declare const encodeSearchToken: (input: SearchToken) => string;
817
+ declare const decodeSearchToken: (raw: string) => SearchToken;
818
+ declare function encodeTokenText(text: string): string;
819
+ declare function decodeTokenText(encoded: string): string;
820
+ //#endregion
821
+ //#region src/wire/paths.d.ts
822
+ declare const DEFAULT_LAYER_NAME = "default";
823
+ declare const wirePaths: {
824
+ /** POST: grant document access/caching credentials for the current bearer. */
825
+ readonly access: "/v1/access";
826
+ /**
827
+ * GET: open the document referenced by the doc-scoped JWT and
828
+ * return its `DocumentHead`. The server materialises the base
829
+ * PDF into its file cache and binds it to a worker the first
830
+ * time this is hit.
831
+ */
832
+ readonly docHead: (docId: string) => string;
833
+ /**
834
+ * GET: layer-scoped head. The cloud SDK always uses a layer namespace;
835
+ * tokens without `layer_name` bind to `DEFAULT_LAYER_NAME`.
836
+ */
837
+ readonly layerHead: (docId: string, layerName: string) => string;
838
+ /**
839
+ * GET: full document manifest at a specific `docVersion`. Content-
840
+ * addressed: the URL bytes are immutable for the lifetime of the
841
+ * version, so CDNs may cache `public, max-age=31536000, immutable`.
842
+ * A request whose `docVersion` mismatches the current version
843
+ * returns 404 — the SDK refetches `/head` to learn the new
844
+ * version, then re-requests the manifest at the new URL.
845
+ */
846
+ readonly docManifest: (docId: string, docVersion: number) => string;
847
+ /**
848
+ * GET: full layer manifest at a specific layer document version.
849
+ * Never-mutated layers may fall through to the immutable base view;
850
+ * once a layer row exists, `layers.doc_version` and `layer_pages`
851
+ * drive the response.
852
+ */
853
+ readonly layerManifest: (docId: string, layerName: string, docVersion: number) => string;
854
+ /**
855
+ * GET: page-geometry list for the whole layer at a specific
856
+ * `layoutVersion`. Content-addressed; CDN may cache forever. The
857
+ * `layoutVersion` lives in the manifest (doc-level pointer) and bumps
858
+ * only on structural page ops. Stale-version requests 404 and the SDK's
859
+ * transparent retry walks `/head` -> `/manifest@docVersion=N` to learn
860
+ * the new `layoutVersion`.
861
+ */
862
+ readonly layerLayout: (docId: string, layerName: string, layoutVersion: number) => string;
863
+ /**
864
+ * Immutable BASE page-geometry list (plane-scope model): the shared-URL
865
+ * variant a layout-inheriting layer resolves at — every visitor's page
866
+ * list is ONE CDN object served from the base worker session.
867
+ */
868
+ readonly docLayout: (docId: string, layoutVersion: number) => string;
869
+ readonly layerLayoutCurrent: (docId: string, layerName: string) => string;
870
+ /**
871
+ * GET: full document metadata for the layer at a specific
872
+ * `metadataVersion`. Content-addressed; CDN may cache forever. The
873
+ * `metadataVersion` lives in the manifest (doc-level pointer) and bumps
874
+ * only on metadata writes. Stale-version requests 404 and the SDK's
875
+ * transparent retry walks `/head` -> `/manifest@docVersion=N` to learn
876
+ * the new `metadataVersion`.
877
+ */
878
+ readonly layerMetadata: (docId: string, layerName: string, metadataVersion: number) => string;
879
+ readonly layerMetadataCurrent: (docId: string, layerName: string) => string;
880
+ /** Immutable BASE metadata (plane-scope model): the shared-URL variant a
881
+ * metadata-inheriting layer resolves at. */
882
+ readonly docMetadata: (docId: string, metadataVersion: number) => string;
883
+ /** Immutable catalog-owned actions, independently pinned in the manifest. */
884
+ readonly layerActions: (docId: string, layerName: string, actionsVersion: number) => string;
885
+ /** Immutable BASE catalog actions (plane-scope model): the shared-URL
886
+ * variant an actions-inheriting layer resolves at. */
887
+ readonly docActions: (docId: string, actionsVersion: number) => string;
888
+ /** POST: rewrite the document Info dict for the layer (metadata edit). */
889
+ readonly layerMetadataUpdate: (docId: string, layerName: string) => string;
890
+ /**
891
+ * Immutable BASE /EmbeddedFiles listing: the shared-URL variant an
892
+ * attachments-undiverged layer resolves at — every visitor's sidebar list
893
+ * is ONE CDN object served from the base worker session.
894
+ */
895
+ readonly docAttachments: (docId: string, attachmentsVersion: number) => string;
896
+ /** Immutable BASE decoded bytes of one embedded file (twin of
897
+ * `layerAttachmentFile` — same capability tier split). */
898
+ readonly docAttachmentFile: (docId: string, key: string, attachmentsVersion: number) => string;
899
+ /** Immutable /EmbeddedFiles listing, pinned by `attachmentsVersion`. */
900
+ readonly layerAttachments: (docId: string, layerName: string, attachmentsVersion: number) => string;
901
+ /** POST: create a document-level embedded file (multipart mutation envelope). */
902
+ readonly layerAttachmentsCollection: (docId: string, layerName: string) => string;
903
+ /** DELETE: remove a document-level embedded file by name-tree key. */
904
+ readonly layerAttachmentItem: (docId: string, layerName: string, key: string) => string;
905
+ /**
906
+ * Immutable decoded bytes of one document-level embedded file. Lives
907
+ * under its own `attachment-files` prefix — a stronger capability tier
908
+ * than the metadata listing, so a CDN credential for one can never
909
+ * authorize the other (the search-rects/search-full rule).
910
+ */
911
+ readonly layerAttachmentFile: (docId: string, layerName: string, key: string, attachmentsVersion: number) => string;
912
+ /** Immutable decoded bytes of a FileAttachment annotation's embedded file. */
913
+ readonly layerAnnotationFile: (docId: string, layerName: string, pageObjectNumber: number, annotKey: string, attachmentsVersion: number) => string;
914
+ /**
915
+ * Immutable BASE bytes of a FileAttachment annotation's embedded file
916
+ * (plane-scope model). Depends on the `annotations` plane (the annotation
917
+ * exists in this view) AND the `attachments` plane (the pin); the origin
918
+ * guard requires both inherited.
919
+ */
920
+ readonly docAnnotationFile: (docId: string, pageObjectNumber: number, annotKey: string, attachmentsVersion: number) => string;
921
+ /**
922
+ * GET: full plain-text extraction for a single page at a specific
923
+ * `contentVersion`. Content-addressed; CDN may cache forever.
924
+ * Stale-version requests return 404 and the SDK's transparent
925
+ * retry walks `/head` → `/manifest@docVersion=N` to learn the new
926
+ * `contentVersion`.
927
+ */
928
+ readonly docPageText: (docId: string, pageObjectNumber: number, contentVersion: number) => string;
929
+ readonly layerPageText: (docId: string, layerName: string, pageObjectNumber: number, contentVersion: number) => string;
930
+ readonly layerPageTextCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
931
+ readonly docPageGeometry: (docId: string, pageObjectNumber: number, contentVersion: number) => string;
932
+ readonly docPageGeometryCurrent: (docId: string, pageObjectNumber: number) => string;
933
+ readonly docPageRender: (docId: string, pageObjectNumber: number, token: TokenInput) => string;
934
+ readonly docPageRenderCurrent: (docId: string, pageObjectNumber: number) => string;
935
+ /**
936
+ * Immutable BASE annotated render (plane-scope model). Its OWN path family,
937
+ * not a token flag under `/render/pages/`: an annotated render depends on
938
+ * `content + annotations`, an annotation-free one on `content` alone, and
939
+ * edge grants are prefix-scoped — the prefix law says a path's prefix must
940
+ * identify its full plane-dependency set. Annotatedness is therefore
941
+ * PATH-ONLY (the token/path law): the wire token has no
942
+ * `includeAnnotations` key at all; the annotated family's token carries
943
+ * `annotationVersion`, the free family's cannot.
944
+ */
945
+ readonly docPageRenderAnnotated: (docId: string, pageObjectNumber: number, token: TokenInput) => string;
946
+ readonly layerPageGeometry: (docId: string, layerName: string, pageObjectNumber: number, contentVersion: number) => string;
947
+ readonly layerPageGeometryCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
948
+ readonly layerPageRender: (docId: string, layerName: string, pageObjectNumber: number, token: TokenInput) => string;
949
+ readonly layerPageRenderCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
950
+ /** Layer twin of `docPageRenderAnnotated` — the grammar is uniform:
951
+ * annotatedness is path-only at BOTH tiers. */
952
+ readonly layerPageRenderAnnotated: (docId: string, layerName: string, pageObjectNumber: number, token: TokenInput) => string;
953
+ readonly layerPageRenderAnnotatedCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
954
+ /**
955
+ * Immutable BASE annotation list for a single page (plane-scope model):
956
+ * the shared-URL variant an annotations-inheriting layer resolves at — a
957
+ * base's own annotations (weak-identity ones included) are simply visible
958
+ * through every pristine layer, so 1,000 visitors' sidebars are ONE CDN
959
+ * object served from the base worker session.
960
+ */
961
+ readonly docPageAnnotations: (docId: string, pageObjectNumber: number, annotationVersion: number) => string;
962
+ /** Immutable BASE appearance batch (twin of
963
+ * `layerPageAnnotationAppearances` — same `annotations` plane gate). */
964
+ readonly docPageAnnotationAppearances: (docId: string, pageObjectNumber: number, token: TokenInput) => string;
965
+ /**
966
+ * GET: full annotation list for a single page at a specific
967
+ * `annotationVersion`. Same cache-control rules and 404-retry
968
+ * semantics as `docPageText`. The `items` suffix is the
969
+ * collection name — see file-level docstring.
970
+ */
971
+ readonly layerPageAnnotations: (docId: string, layerName: string, pageObjectNumber: number, annotationVersion: number) => string;
972
+ readonly layerPageAnnotationsCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
973
+ /**
974
+ * GET: batch-rendered annotation appearance bitmaps for a single page as a
975
+ * `multipart/form-data` body. Sibling collection of `items` under the same
976
+ * `annotations/pages/{N}/` resource, so it shares the `annotations-read`
977
+ * gate (`doc.annotate.read`) and CDN coverage — reading an annotation lets
978
+ * you see its rendered appearance, the same boundary Adobe uses.
979
+ *
980
+ * Content-addressed via the appearance render token (`annotationVersion`
981
+ * plus render options like scale/format); CDN may cache forever. Appearance
982
+ * pixels depend only on the annotation `/AP` stream, so `contentVersion` is
983
+ * deliberately NOT part of the key.
984
+ */
985
+ readonly layerPageAnnotationAppearances: (docId: string, layerName: string, pageObjectNumber: number, token: TokenInput) => string;
986
+ readonly layerPageAnnotationAppearancesCurrent: (docId: string, layerName: string, pageObjectNumber: number) => string;
987
+ readonly layerPageAnnotationsCreate: (docId: string, layerName: string, pageObjectNumber: number) => string;
988
+ readonly layerAnnotationByKey: (docId: string, layerName: string, pageObjectNumber: number, key: string) => string;
989
+ readonly layerPageAnnotationsMove: (docId: string, layerName: string, pageObjectNumber: number) => string;
990
+ /**
991
+ * GET: the reconciled form snapshot (field tree + widget joins) for the
992
+ * layer's CURRENT state. Forms are document-scoped (one AcroForm per
993
+ * document), so there is no per-page collection and — unlike annotations —
994
+ * no content-addressed `@version` variant: the snapshot is always served
995
+ * `no-store`. Mutation results carry the per-page `cacheDelta` that keeps
996
+ * annotation/render caches coherent when widget appearances change.
997
+ */
998
+ readonly layerForm: (docId: string, layerName: string) => string;
999
+ /** POST: create a field (optionally with styled widget placements). */
1000
+ readonly layerFormFields: (docId: string, layerName: string) => string;
1001
+ /**
1002
+ * Field member: GET (single field) / PATCH (updateField) / DELETE
1003
+ * (deleteField + widget cascade). `fieldKey` is an encoded `FormFieldRef`
1004
+ * (`encodeFieldRefKey`): `obj:12` or `fqn:billing.name`.
1005
+ */
1006
+ readonly layerFormFieldByKey: (docId: string, layerName: string, fieldKey: string) => string;
1007
+ /** POST: replace the field's value (`{ value: FormFieldValue }`). */
1008
+ readonly layerFormFieldValue: (docId: string, layerName: string, fieldKey: string) => string;
1009
+ /** POST: reset the field to /DV (or clear). Empty body. */
1010
+ readonly layerFormFieldReset: (docId: string, layerName: string, fieldKey: string) => string;
1011
+ /** POST: adopt an inert widget annotation (`{ widget, onState? }`). */
1012
+ readonly layerFormFieldWidgets: (docId: string, layerName: string, fieldKey: string) => string;
1013
+ /**
1014
+ * POST: release a widget back to the inert annotation plane
1015
+ * (`{ widget }`). An action POST rather than a member DELETE because a
1016
+ * widget ref is a (page, annotation) pair — carrying it in the body keeps
1017
+ * one codec instead of inventing a second composite key syntax.
1018
+ */
1019
+ readonly layerFormFieldWidgetsDetach: (docId: string, layerName: string, fieldKey: string) => string;
1020
+ /**
1021
+ * GET: serialized form data (`?format=fdf|xfdf`, default `xfdf`).
1022
+ * POST: import an FDF/XFDF payload (raw bytes body; format sniffed
1023
+ * server-side unless `?format=` pins it).
1024
+ */
1025
+ readonly layerFormData: (docId: string, layerName: string, format?: "fdf" | "xfdf") => string;
1026
+ /** POST: durable reconciliation (`{ bakeAppearances? }`). */
1027
+ readonly layerFormRepair: (docId: string, layerName: string) => string;
1028
+ readonly layerFormEffects: (docId: string, layerName: string) => string;
1029
+ /**
1030
+ * GET: one budgeted search slice, versioned form. The token
1031
+ * (`encodeSearchToken`) IS the cache key: content epoch + query +
1032
+ * position. Immutable; CDN may cache forever. Mode is the path — rects
1033
+ * and full are separate resources so permission tiers never share
1034
+ * cache entries (`'rects'` needs `doc.text.search`; `'full'` also
1035
+ * needs `doc.text.copy`).
1036
+ */
1037
+ readonly layerSearchRects: (docId: string, layerName: string, token: string) => string;
1038
+ readonly layerSearchFull: (docId: string, layerName: string, token: string) => string;
1039
+ /**
1040
+ * GET: unversioned form — same fields as flat query params (`q` as
1041
+ * plain text), served from the CURRENT content, always `no-store`.
1042
+ * The debug/simple-client variant; the SDK uses the versioned form.
1043
+ */
1044
+ readonly layerSearchRectsCurrent: (docId: string, layerName: string) => string;
1045
+ readonly layerSearchFullCurrent: (docId: string, layerName: string) => string;
1046
+ readonly layerPagesMove: (docId: string, layerName: string) => string;
1047
+ readonly layerPagesRotate: (docId: string, layerName: string) => string;
1048
+ readonly layerPagesDelete: (docId: string, layerName: string) => string;
1049
+ readonly layerPagesFlatten: (docId: string, layerName: string) => string;
1050
+ readonly layerRedactionsApply: (docId: string, layerName: string) => string;
1051
+ readonly layerEvents: (docId: string, layerName: string) => string;
1052
+ readonly layerDownload: (docId: string, layerName: string) => string;
1053
+ readonly layerDownloadVersioned: (docId: string, layerName: string, token: DownloadToken) => string;
1054
+ /**
1055
+ * Weak-annotation-sessions: pluralized in v2 so the collection
1056
+ * lives at `/weak-annotation-sessions` and members at
1057
+ * `/weak-annotation-sessions/{sessionId}` — REST-conventional.
1058
+ */
1059
+ readonly layerWeakAnnotationSession: (docId: string, layerName: string) => string;
1060
+ readonly layerWeakAnnotationSessionHeartbeat: (docId: string, layerName: string, sessionId: string) => string;
1061
+ readonly layerWeakAnnotationSessionPages: (docId: string, layerName: string, sessionId: string) => string;
1062
+ readonly layerWeakAnnotationSessionRelease: (docId: string, layerName: string, sessionId: string) => string;
1063
+ /**
1064
+ * POST: pre-warm the doc cache + worker open before any user
1065
+ * request lands. Body is `{ docId }`. Doc-scoped token required.
1066
+ */
1067
+ readonly docWarm: "/v1/warm";
1068
+ };
1069
+ //#endregion
1070
+ //#region src/wire/resources.d.ts
1071
+ /**
1072
+ * Canonical id for every read resource the server exposes.
1073
+ *
1074
+ * Adding a new resource:
1075
+ * 1. Add the id to this union
1076
+ * 2. Add a `DOC_RESOURCES` entry
1077
+ * 3. Update the route handler to call `requireResource(req, docId, '<id>', pdfBits)`
1078
+ * 4. CDN signer automatically considers it
1079
+ */
1080
+ 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';
1081
+ /**
1082
+ * 'origin' — unversioned URL, response can change over time. CDN must
1083
+ * not cache (the bytes are not immutable). Routed straight to origin
1084
+ * with the JWT bearer.
1085
+ *
1086
+ * 'versioned-read' — URL is content-addressed via `@<token>`. Response
1087
+ * is immutable for the lifetime of the version. Safe to cache forever
1088
+ * at the CDN edge.
1089
+ */
1090
+ type RouteKind = 'origin' | 'versioned-read';
1091
+ /**
1092
+ * Capability requirement attached to a resource. Three shapes:
1093
+ * - `single` — one capability gates the resource
1094
+ * - `any` — any one of N capabilities gates the resource
1095
+ * (used by /text and /geometry which accept either the
1096
+ * copy/select scope OR the future search scope)
1097
+ * - `all` — every one of N capabilities is required
1098
+ * (used by /search/full: a snippet IS extracted text, so
1099
+ * the search scope alone is not enough — the copy denial
1100
+ * must hold here too)
1101
+ */
1102
+ type CapabilityRequirement = {
1103
+ kind: 'single';
1104
+ capability: DocCapability;
1105
+ } | {
1106
+ kind: 'any';
1107
+ capabilities: ReadonlyArray<DocCapability>;
1108
+ } | {
1109
+ kind: 'all';
1110
+ capabilities: ReadonlyArray<DocCapability>;
1111
+ };
1112
+ interface DocResourceDescriptor {
1113
+ /** Stable id used by route guards and the CDN signer. */
1114
+ id: DocResourceId;
1115
+ /**
1116
+ * Display pattern with `{docId}` / `{layerName}` placeholders for
1117
+ * docs + telemetry. Use {@link DocResourceDescriptor.resolvePathPattern}
1118
+ * to get a concrete pattern with values filled in.
1119
+ */
1120
+ pathPattern: string;
1121
+ /**
1122
+ * Concrete CDN path pattern with `*` wildcards. Used by adapters
1123
+ * that do explicit pattern matching at the edge (CloudFront via
1124
+ * Resource globs). For path prefixes with no layer component,
1125
+ * `layerName` is ignored.
1126
+ */
1127
+ resolvePathPattern(docId: string, layerName?: string): string;
1128
+ /**
1129
+ * Display prefix with `{docId}` / `{layerName}` placeholders. The
1130
+ * literal path-prefix the CDN signs for this resource — by design,
1131
+ * each resource type has its OWN distinct prefix, so a token
1132
+ * signed at this prefix authorizes only this resource type at the
1133
+ * edge (works on prefix-matching CDNs like Bunny / Cloud CDN /
1134
+ * Azure FD with no extra cleverness).
1135
+ */
1136
+ pathPrefix: string;
1137
+ /**
1138
+ * Concrete path prefix the CDN signer uses. The literal string
1139
+ * `pathPattern` would have *before* the first `*` wildcard — but
1140
+ * stored explicitly here rather than derived so future pattern
1141
+ * syntax changes can't accidentally break CDN security.
1142
+ *
1143
+ * For resources with no layer component, `layerName` is ignored.
1144
+ */
1145
+ resolvePathPrefix(docId: string, layerName?: string): string;
1146
+ /** What capability (or set) is needed to access this resource. */
1147
+ requirement: CapabilityRequirement;
1148
+ /** Versioned-immutable vs. unversioned-mutable. */
1149
+ routeKind: RouteKind;
1150
+ /**
1151
+ * Can the CDN sign coverage for this resource? Mutable/unversioned
1152
+ * resources (head, current download) are always false even though
1153
+ * they're routed via origin.
1154
+ */
1155
+ cdnCacheable: boolean;
1156
+ }
1157
+ /**
1158
+ * URL layout (paths v2): each resource type lives at a distinct path
1159
+ * prefix so prefix-matching CDNs (Bunny, Cloud CDN, Azure FD) can
1160
+ * enforce per-resource scope at the edge. See wire/paths.ts for the
1161
+ * full shape and rationale.
1162
+ */
1163
+ declare const DOC_RESOURCES: Readonly<Record<DocResourceId, DocResourceDescriptor>>;
1164
+ /**
1165
+ * True iff the scope grants access to the named resource.
1166
+ *
1167
+ * Looks up the resource descriptor, then dispatches to
1168
+ * `checkCapability` or `checkAnyCapability` based on the requirement
1169
+ * shape. Used by both server route guards and the CDN signer.
1170
+ */
1171
+ declare function checkResourceAccess(resourceId: DocResourceId, rawScope: ReadonlyArray<string>, pdfBits: PdfBits): boolean;
1172
+ //#endregion
1173
+ //#region src/wire/cdn/coverage.d.ts
1174
+ /**
1175
+ * One CDN-coverage entry: the resource id plus both projections of its
1176
+ * URL — the wildcard `pathPattern` (for pattern-matching CDN signers
1177
+ * like CloudFront) and the literal `pathPrefix` (for prefix-matching
1178
+ * CDN signers like Bunny / Cloud CDN / Azure FD / custom HMAC).
1179
+ *
1180
+ * Each entry corresponds to one cacheable resource the caller's
1181
+ * scope grants access to. Both projections are pre-resolved with the
1182
+ * concrete `docId` / `layerName` filled in.
1183
+ */
1184
+ interface CdnCoverageEntry {
1185
+ readonly resourceId: DocResourceId;
1186
+ /** Resolved CDN path pattern with `*` wildcards (for glob signers). */
1187
+ readonly pathPattern: string;
1188
+ /** Resolved literal path prefix (for prefix-match signers). */
1189
+ readonly pathPrefix: string;
1190
+ }
1191
+ declare function cdnCoverageForScope(rawScope: ReadonlyArray<string>, pdfBits: PdfBits, context: {
1192
+ docId: string;
1193
+ layerName?: string;
1194
+ /**
1195
+ * Plane scopes of the caller's pinned layer. A doc-level shared
1196
+ * resource's prefix is covered iff every plane it depends on is
1197
+ * inherited (`'base'`). Omitted = no layer in play (tenant tokens) —
1198
+ * everything the capability scope allows is granted.
1199
+ */
1200
+ scopes?: LayerScopes;
1201
+ }): ReadonlyArray<CdnCoverageEntry>;
1202
+ //#endregion
1203
+ //#region src/wire/cdn/applyCdnAccess.d.ts
1204
+ /**
1205
+ * Subset of `CdnAccessInfo` this function needs. The full type lives
1206
+ * in `engine/DocumentSecurityService.ts` (it's part of the access
1207
+ * response); we mirror just the fields we read so this module is
1208
+ * decoupled from the security service surface.
1209
+ */
1210
+ interface CdnAccessInfoForApply {
1211
+ readonly adapter: string;
1212
+ readonly baseUrlOverrides: Partial<Record<string, string>> | null;
1213
+ readonly authHeader: {
1214
+ readonly name: string;
1215
+ readonly value: string;
1216
+ } | null;
1217
+ readonly signedQueryParams: Record<string, string> | null;
1218
+ readonly signedCookies: ReadonlyArray<{
1219
+ readonly name: string;
1220
+ readonly value: string;
1221
+ readonly domain?: string;
1222
+ readonly path?: string;
1223
+ readonly expires?: number;
1224
+ }> | null;
1225
+ readonly signedPathPolicies: ReadonlyArray<{
1226
+ readonly pathPrefix: string;
1227
+ readonly queryParams: Record<string, string>;
1228
+ }> | null;
1229
+ }
1230
+ interface ApplyCdnAccessInput {
1231
+ /** Path portion of the request (must begin with `/`). */
1232
+ readonly path: string;
1233
+ /** API server origin the SDK would normally hit, e.g. `https://api.example.com`. */
1234
+ readonly originUrl: string;
1235
+ /** Doc id used to resolve resource path prefixes. */
1236
+ readonly docId: string;
1237
+ /** Layer name for layer-scoped resources (defaults to `'default'`). */
1238
+ readonly layerName?: string;
1239
+ /** Access block from /v1/access. When null, every call goes to origin. */
1240
+ readonly cdn: CdnAccessInfoForApply | null;
1241
+ }
1242
+ interface ApplyCdnAccessResult {
1243
+ /** Final URL the SDK should fetch. */
1244
+ readonly url: string;
1245
+ /** Resource the path was identified as, or null if it's not a DOC_RESOURCES route. */
1246
+ readonly resourceId: DocResourceId | null;
1247
+ /** True iff the request was routed to the CDN; false means origin fallthrough. */
1248
+ readonly routedToCdn: boolean;
1249
+ /** The signedPathPolicies entry that matched, if any. */
1250
+ readonly matchedPolicy: {
1251
+ readonly pathPrefix: string;
1252
+ readonly queryParams: Record<string, string>;
1253
+ } | null;
1254
+ /** Single global header to attach (custom-hmac header mode only). */
1255
+ readonly authHeader: {
1256
+ readonly name: string;
1257
+ readonly value: string;
1258
+ } | null;
1259
+ /** Cookies the SDK should set on the CDN origin before this request. */
1260
+ readonly cookies: CdnAccessInfoForApply['signedCookies'];
1261
+ /**
1262
+ * Human-readable explanation when `routedToCdn` is false. Empty
1263
+ * string when the request did route to CDN.
1264
+ */
1265
+ readonly fallbackReason: string;
1266
+ }
1267
+ declare function applyCdnAccess(input: ApplyCdnAccessInput): ApplyCdnAccessResult;
1268
+ /**
1269
+ * Walk DOC_RESOURCES and pick the entry whose resolved `pathPrefix`
1270
+ * is a (longest) prefix of `path`. Returns null when no resource
1271
+ * matches — admin routes, /access, /warm fall into this bucket.
1272
+ *
1273
+ * Each cacheable resource has a DISTINCT prefix (paths v2 invariant),
1274
+ * so longest-match is deterministic.
1275
+ */
1276
+ declare function resolveResourceIdForPath(path: string, docId: string, layerName: string): DocResourceId | null;
1277
+ //#endregion
1278
+ //#region src/wire/tokenSchemas.d.ts
1279
+ declare const DocTokenSchema: {
1280
+ readonly fields: readonly ["docVersion"];
1281
+ };
1282
+ declare const ContentTokenSchema: {
1283
+ readonly fields: readonly ["contentVersion"];
1284
+ };
1285
+ declare const LayoutTokenSchema: {
1286
+ readonly fields: readonly ["layoutVersion"];
1287
+ };
1288
+ declare const MetadataTokenSchema: {
1289
+ readonly fields: readonly ["metadataVersion"];
1290
+ };
1291
+ declare const AnnotationTokenSchema: {
1292
+ readonly fields: readonly ["annotationVersion"];
1293
+ };
1294
+ declare const ActionsTokenSchema: {
1295
+ readonly fields: readonly ["actionsVersion"];
1296
+ };
1297
+ /**
1298
+ * Allowed flat keys for the render token, expressed as dotted paths that
1299
+ * mirror the SDK `PageImageOptions` shape 1:1. The token codec is fully
1300
+ * generic over this list — adding a new render option means adding its
1301
+ * dotted path here and a matching branch in `PageImageOptionsWireSchema`.
1302
+ * No encoder/decoder code changes.
1303
+ *
1304
+ * `includeAnnotations` is deliberately NOT a token field: annotatedness
1305
+ * changes the artifact's plane-dependency
1306
+ * set, so it is expressed by the path FAMILY (`…/render/pages/` vs
1307
+ * `…/render/annotated/pages/`), never inside the token. `annotationVersion`
1308
+ * belongs to the annotated family's tokens only — each family's query
1309
+ * schema enforces its own pin grammar.
1310
+ */
1311
+ declare const RenderTokenSchema: {
1312
+ readonly fields: readonly ["annotationVersion", "background", "contentVersion", "format", "quality", "rotation", "target.kind", "target.rect.bottom", "target.rect.left", "target.rect.right", "target.rect.top", "viewport.kind", "viewport.scale", "viewport.width"];
1313
+ readonly maxLength: 512;
1314
+ };
1315
+ /**
1316
+ * Token for the versioned search endpoints (`/search/{rects,full}/data@…`).
1317
+ * One token carries the whole cache key: the content epoch, the query
1318
+ * (text/pattern rides base64-variant-encoded in `q` — the token value
1319
+ * charset excludes free text), and the resume position. Canonical by
1320
+ * construction: the codec sorts fields and the encoder omits every
1321
+ * default, so equal searches produce byte-equal tokens — the property CDN
1322
+ * cache hits live on. Mode is NOT a field; it is the endpoint (separate
1323
+ * permission tiers must never share cache entries).
1324
+ */
1325
+ declare const SearchTokenSchema: {
1326
+ readonly fields: readonly ["epoch", "matchCase", "matchDiacritics", "maxMatches", "maxPages", "q", "regex", "skip", "startPage", "wholeWord"];
1327
+ readonly maxLength: 2048;
1328
+ };
1329
+ /**
1330
+ * Token for the batch annotation-appearance render endpoint. Narrower than
1331
+ * the page render token: appearance bitmaps are sized per annotation `/Rect`
1332
+ * so there is no target/viewport — only a uniform `scale` and page
1333
+ * `rotation`. Keyed by `annotationVersion` only (appearances do not depend on
1334
+ * page base content). The cloud endpoint renders the Normal appearance only,
1335
+ * so `modes` is intentionally absent here (it is a worker/local-only option).
1336
+ */
1337
+ declare const AnnotationAppearancesRenderTokenSchema: {
1338
+ readonly fields: readonly ["annotationVersion", "format", "quality", "rotation", "scale"];
1339
+ readonly maxLength: 256;
1340
+ };
1341
+ //#endregion
1342
+ //#region src/wire/flatten.d.ts
1343
+ /**
1344
+ * Generic recursive flattener for nested option objects into dotted-key flat
1345
+ * maps, and its inverse. The wire format (token + query) is a flat key/value
1346
+ * shape, but SDK option types (e.g. `PageImageOptions`) are nested with
1347
+ * discriminated unions. Keeping these conversions generic means new options
1348
+ * never require bespoke encoder/decoder code — they're just shape changes to
1349
+ * the schema.
1350
+ *
1351
+ * Rules:
1352
+ * - Nested object keys are joined with `.` (e.g. `viewport.kind`,
1353
+ * `target.rect.left`).
1354
+ * - `undefined` and `null` are dropped.
1355
+ * - Arrays are not supported (the wire format has no list grammar yet).
1356
+ * - Scalar leaves must be `string | number | boolean`.
1357
+ * - Round-trip: `unflatten(flatten(x))` equals `x` modulo dropped
1358
+ * `undefined`/`null` and array leaves.
1359
+ *
1360
+ * The path separator `.` is reserved in field names by the token codec, which
1361
+ * lets us distinguish wire-level structure from value content (values may
1362
+ * still contain `.` for decimals — values are not split on `.`).
1363
+ */
1364
+ type WireScalar = string | number | boolean;
1365
+ type WireFlat = Record<string, WireScalar>;
1366
+ declare function flatten(value: unknown, prefix?: string): WireFlat;
1367
+ /**
1368
+ * Inverse of `flatten`. Takes a flat string-or-scalar map and reconstructs a
1369
+ * nested object using `.` as the path separator. Values are passed through
1370
+ * unchanged — downstream schema validation (e.g. Zod with `.coerce`) is
1371
+ * responsible for type coercion from `string` to numbers/booleans when the
1372
+ * input came from a token or query string.
1373
+ *
1374
+ * Throws on conflicting paths (e.g. having both `viewport` and
1375
+ * `viewport.kind` in the same input).
1376
+ */
1377
+ declare function unflatten(flat: Record<string, unknown>): Record<string, unknown>;
1378
+ //#endregion
1379
+ //#region src/wire/renderOptionsCodec.d.ts
1380
+ interface RenderVersions {
1381
+ contentVersion: number;
1382
+ annotationVersion?: number;
1383
+ }
1384
+ /**
1385
+ * Project image render options plus cache versions into the flat wire shape
1386
+ * the render token encoder consumes. The output is a generic dotted-key map
1387
+ * (`viewport.kind`, `target.rect.left`, …) — the schema and codec never need
1388
+ * to know about specific option fields. Adding a new render option means
1389
+ * extending `PageImageOptions`, the render query schemas, and
1390
+ * `RenderTokenSchema.fields`; this function does not change.
1391
+ *
1392
+ * Token/path rule: tokens carry VERSION PINS and RENDER
1393
+ * PARAMETERS; anything that changes the artifact's plane-dependency set is
1394
+ * PATH-expressed. Annotatedness changes the planes (`content` vs
1395
+ * `content + annotations`), so the wire map never carries
1396
+ * `includeAnnotations` — the caller picks the path FAMILY
1397
+ * (`…/render/pages/` vs `…/render/annotated/pages/`) and passes
1398
+ * `annotationVersion` iff it chose the annotated one. Contradictory states
1399
+ * are unrepresentable; each family's query schema enforces its own pin
1400
+ * grammar structurally.
1401
+ *
1402
+ * Semantic validation (viewport-kind invariants, per-family pin presence,
1403
+ * rect coherence) lives in `PageRenderQuerySchema` /
1404
+ * `PageRenderAnnotatedQuerySchema` and runs when the resulting URL is
1405
+ * decoded server-side. Round-tripping (flatten → encode → decode →
1406
+ * unflatten → schema parse) recovers the original SDK options.
1407
+ */
1408
+ declare function renderImageOptionsToWire(options: PageImageOptions, versions: RenderVersions): WireFlat;
1409
+ /**
1410
+ * Convenience: build the full encoded render token in one call. Equivalent
1411
+ * to `encodeRenderToken(renderImageOptionsToWire(options, versions))`.
1412
+ */
1413
+ declare function renderImageOptionsToToken(options: PageImageOptions, versions: RenderVersions): string;
1414
+ /**
1415
+ * Re-attach `includeAnnotations` onto the worker-side `PageRenderOptions`
1416
+ * shape. Pure shape transform; consumed by the server route after
1417
+ * `PageRenderQuerySchema` has produced the SDK-shaped options.
1418
+ */
1419
+ declare function pageRenderOptionsFromImageOptions(options: PageImageOptions, includeAnnotations: boolean): PageRenderOptions;
1420
+ /**
1421
+ * Cache version for the appearance render token. Appearances depend only on
1422
+ * the annotation `/AP` stream, so `annotationVersion` is the sole key —
1423
+ * deliberately NOT `contentVersion`.
1424
+ */
1425
+ interface AnnotationRenderVersion {
1426
+ annotationVersion: number;
1427
+ }
1428
+ /**
1429
+ * Project annotation-appearance image options plus the annotation version
1430
+ * into the flat wire shape the appearance render token encoder consumes.
1431
+ * Mirrors {@link renderImageOptionsToWire}.
1432
+ */
1433
+ declare function annotationAppearancesImageOptionsToWire(options: AnnotationAppearanceImageOptions, versions: AnnotationRenderVersion): WireFlat;
1434
+ /** Convenience: build the full encoded appearance render token in one call. */
1435
+ declare function annotationAppearancesImageOptionsToToken(options: AnnotationAppearanceImageOptions, versions: AnnotationRenderVersion): string;
1436
+ /**
1437
+ * Strip image-encoding fields, leaving the worker-side
1438
+ * `AnnotationAppearanceRenderOptions`. Pure shape transform consumed by the
1439
+ * server route after `AnnotationAppearancesQuerySchema` produces the
1440
+ * SDK-shaped options.
1441
+ */
1442
+ declare function annotationRenderOptionsFromImageOptions(options: AnnotationAppearanceImageOptions): AnnotationAppearanceRenderOptions;
1443
+ //#endregion
1444
+ //#region src/annotation/base.schema.d.ts
1445
+ /** @deprecated Use `PdfPointSchema` from `../geometry/schemas`. */
1446
+ declare const PointSchema: z.ZodType<PdfPoint, z.ZodTypeDef, PdfPoint>;
1447
+ /** @deprecated Use `PdfRectSchema` from `../geometry/schemas`. */
1448
+ declare const RectSchema: z.ZodType<PdfRect, z.ZodTypeDef, PdfRect>;
1449
+ declare const ColorSchema: z.ZodType<Color>;
1450
+ declare const AnnotationBorderStyleSchema: z.ZodType<AnnotationBorderStyle>;
1451
+ declare const PdfRectDifferencesSchema: z.ZodType<PdfRectDifferences>;
1452
+ declare const LineEndingSchema: z.ZodType<LineEnding>;
1453
+ declare const LineEndingsSchema: z.ZodType<LineEndings>;
1454
+ declare const StandardFontSchema: z.ZodType<StandardFont>;
1455
+ declare const TextAlignmentSchema: z.ZodType<TextAlignment>;
1456
+ declare const FreeTextIntentSchema: z.ZodType<FreeTextIntent>;
1457
+ declare const CaretIntentSchema: z.ZodType<CaretIntent>;
1458
+ declare const StrikeoutIntentSchema: z.ZodType<StrikeoutIntent>;
1459
+ declare const InkIntentSchema: z.ZodType<InkIntent>;
1460
+ declare const BlendModeSchema: z.ZodType<BlendMode>;
1461
+ declare const AnnotationFlagsSchema: z.ZodType<AnnotationFlags>;
1462
+ /**
1463
+ * Partial flag set authorable on a Draft or Patch — every key optional so
1464
+ * callers set only the bits they care about. The engine merges these onto
1465
+ * the annotation's current `/F` bitset.
1466
+ */
1467
+ declare const AnnotationFlagsPartialSchema: z.ZodType<Partial<AnnotationFlags>>;
1468
+ declare const AnnotationStableIdSchema: z.ZodType<AnnotationStableId>;
1469
+ declare const RevisionTokenSchema: z.ZodType<RevisionToken>;
1470
+ declare const AnnotationRefSchema: z.ZodType<AnnotationRef>;
1471
+ /**
1472
+ * Shared object literal for every per-subtype DTO schema. Each kind's
1473
+ * `dto.schema.ts` extends this with its own `subtype` literal and
1474
+ * subtype-specific fields. Note that we do NOT include `subtype` here —
1475
+ * each kind sets its own literal so `z.discriminatedUnion('subtype', ...)`
1476
+ * works at the catalog level.
1477
+ */
1478
+ declare const AnnotationBaseShape: {
1479
+ readonly ref: z.ZodType<AnnotationRef, z.ZodTypeDef, AnnotationRef>;
1480
+ readonly pageObjectNumber: z.ZodNumber;
1481
+ readonly index: z.ZodNumber;
1482
+ readonly identityQuality: z.ZodEnum<["durable", "weak"]>;
1483
+ readonly nm: z.ZodNullable<z.ZodString>;
1484
+ readonly flags: z.ZodType<AnnotationFlags, z.ZodTypeDef, AnnotationFlags>;
1485
+ readonly rect: z.ZodType<PdfRect, z.ZodTypeDef, PdfRect>;
1486
+ readonly contents: z.ZodNullable<z.ZodString>;
1487
+ readonly author: z.ZodNullable<z.ZodString>;
1488
+ readonly created: z.ZodNullable<z.ZodString>;
1489
+ readonly modified: z.ZodNullable<z.ZodString>;
1490
+ readonly blendMode: z.ZodType<BlendMode, z.ZodTypeDef, BlendMode>;
1491
+ readonly inReplyTo: z.ZodNullable<z.ZodType<AnnotationRef, z.ZodTypeDef, AnnotationRef>>;
1492
+ readonly replyType: z.ZodNullable<z.ZodEnum<["reply", "group"]>>;
1493
+ readonly userId: z.ZodOptional<z.ZodString>;
1494
+ readonly groupId: z.ZodOptional<z.ZodString>;
1495
+ readonly createdBy: z.ZodOptional<z.ZodString>;
1496
+ readonly updatedBy: z.ZodOptional<z.ZodString>;
1497
+ readonly actions: z.ZodOptional<z.ZodType<PdfAnnotationActions, z.ZodTypeDef, PdfAnnotationActions>>;
1498
+ };
1499
+ /**
1500
+ * Annotation-wide fields shared by every Draft. Per-kind draft schemas
1501
+ * spread this alongside their family-specific shape.
1502
+ *
1503
+ * Authorial identity (/T, /EMBD_Metadata UserID/GroupID) is set by the
1504
+ * server from the caller's JWT identity — see the AnnotationDraftBase
1505
+ * docstring.
1506
+ */
1507
+ declare const AnnotationDraftBaseShape: {
1508
+ readonly contents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1509
+ readonly blendMode: z.ZodOptional<z.ZodType<BlendMode, z.ZodTypeDef, BlendMode>>;
1510
+ readonly nm: z.ZodOptional<z.ZodString>;
1511
+ readonly flags: z.ZodOptional<z.ZodType<Partial<AnnotationFlags>, z.ZodTypeDef, Partial<AnnotationFlags>>>;
1512
+ readonly inReplyTo: z.ZodOptional<z.ZodType<AnnotationRef, z.ZodTypeDef, AnnotationRef>>;
1513
+ readonly replyType: z.ZodOptional<z.ZodEnum<["reply", "group"]>>;
1514
+ };
1515
+ /**
1516
+ * Annotation-wide fields shared by every Patch. `nm` is monotonic per
1517
+ * annotation; clients target an existing annotation via AnnotationRef
1518
+ * instead of renaming.
1519
+ *
1520
+ * `groupId` is the only identity-shaped field on a patch — it
1521
+ * represents organizational ownership, and reassignment runs through
1522
+ * `checkSetGroup`. See AnnotationPatchBase for the full immutability
1523
+ * rules.
1524
+ */
1525
+ declare const AnnotationPatchBaseShape: {
1526
+ readonly contents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1527
+ readonly blendMode: z.ZodOptional<z.ZodType<BlendMode, z.ZodTypeDef, BlendMode>>;
1528
+ readonly groupId: z.ZodOptional<z.ZodString>;
1529
+ readonly flags: z.ZodOptional<z.ZodType<Partial<AnnotationFlags>, z.ZodTypeDef, Partial<AnnotationFlags>>>;
1530
+ readonly inReplyTo: z.ZodOptional<z.ZodNullable<z.ZodType<AnnotationRef, z.ZodTypeDef, AnnotationRef>>>;
1531
+ readonly replyType: z.ZodOptional<z.ZodEnum<["reply", "group"]>>;
1532
+ };
1533
+ //#endregion
1534
+ //#region src/dto/Attachment.schema.d.ts
1535
+ /**
1536
+ * Wire schemas for the attachment read vocabulary (see `Attachment.ts`).
1537
+ * The write-side `AttachmentFileSource` carries inline bytes and never
1538
+ * appears on the wire — its post-normalization form is the kind-owned
1539
+ * `WireAttachmentFile` (see `annotation/kinds/file-attachment/schema.ts`).
1540
+ */
1541
+ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
1542
+ declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
1543
+ declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
1544
+ //#endregion
1545
+ 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 };
1546
+ //# sourceMappingURL=wire.d.cts.map