@embedpdf/engine-core 3.0.0-next.0 → 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.
- package/dist/{AbortError-CjSasIlL.js → AbortError-8-9JAX1Y.js} +2 -2
- package/dist/{AbortError-CjSasIlL.js.map → AbortError-8-9JAX1Y.js.map} +1 -1
- package/dist/{AbortError-ByBflvEl.cjs → AbortError-CRSooKsk.cjs} +2 -2
- package/dist/{AbortError-ByBflvEl.cjs.map → AbortError-CRSooKsk.cjs.map} +1 -1
- package/dist/{AnnotationListSnapshot-W0RCsyDE.d.cts → AnnotationListSnapshot-DDxHpJQU.d.cts} +538 -41
- package/dist/{AnnotationListSnapshot-W0RCsyDE.d.ts → AnnotationListSnapshot-DDxHpJQU.d.ts} +538 -41
- package/dist/{DocumentSecurityService-Df79fgpe.d.cts → DocumentSecurityService-BV4_YXkU.d.cts} +33 -2
- package/dist/{DocumentSecurityService-B-tULKNY.d.ts → DocumentSecurityService-o9aeTHwT.d.ts} +33 -2
- package/dist/{Engine-D9loFZc1.d.cts → Engine-D9je6GdU.d.cts} +50 -19
- package/dist/{Engine-B7Oe7f5i.d.ts → Engine-DOoVem7_.d.ts} +50 -19
- package/dist/{subtype-qejjVr6h.cjs → PageInsertBlankInput-CzShuSJI.cjs} +184 -1
- package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +1 -0
- package/dist/{subtype-BvAzLCGC.js → PageInsertBlankInput-WKY0tr6S.js} +149 -2
- package/dist/PageInsertBlankInput-WKY0tr6S.js.map +1 -0
- package/dist/{builders-C548U47M.js → builders-B_KufGJ9.js} +547 -169
- package/dist/builders-B_KufGJ9.js.map +1 -0
- package/dist/{builders-BvikWRuO.cjs → builders-Cp_rlGob.cjs} +603 -225
- package/dist/builders-Cp_rlGob.cjs.map +1 -0
- package/dist/conformance.cjs +822 -198
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +124 -6
- package/dist/conformance.d.ts +124 -6
- package/dist/conformance.js +777 -157
- package/dist/conformance.js.map +1 -1
- package/dist/{fold-CB4fAOOy.js → fold-BfyxxwS6.js} +162 -3
- package/dist/fold-BfyxxwS6.js.map +1 -0
- package/dist/{fold-IaMph3CO.cjs → fold-C7I5GpBz.cjs} +235 -4
- package/dist/fold-C7I5GpBz.cjs.map +1 -0
- package/dist/index.cjs +36 -18
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/runtime.cjs +41 -23
- package/dist/runtime.cjs.map +1 -1
- package/dist/runtime.d.cts +103 -5
- package/dist/runtime.d.ts +103 -5
- package/dist/runtime.js +5 -5
- package/dist/{schemas-B_1VyFsm.cjs → schemas-D1pxEv3t.cjs} +138 -32
- package/dist/schemas-D1pxEv3t.cjs.map +1 -0
- package/dist/{schemas-9OpSSeM6.js → schemas-DAnu8tuW.js} +95 -13
- package/dist/schemas-DAnu8tuW.js.map +1 -0
- package/dist/wire.cjs +118 -3
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +139 -27
- package/dist/wire.d.ts +139 -27
- package/dist/wire.js +111 -4
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/builders-BvikWRuO.cjs.map +0 -1
- package/dist/builders-C548U47M.js.map +0 -1
- package/dist/fold-CB4fAOOy.js.map +0 -1
- package/dist/fold-IaMph3CO.cjs.map +0 -1
- package/dist/schemas-9OpSSeM6.js.map +0 -1
- package/dist/schemas-B_1VyFsm.cjs.map +0 -1
- package/dist/subtype-BvAzLCGC.js.map +0 -1
- package/dist/subtype-qejjVr6h.cjs.map +0 -1
package/dist/wire.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as checkCapability, t as checkAnyCapability } from "./resolver-DiPMTfcy.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as PageRenderAnnotatedQuerySchema, $n as AnnotationStableIdSchema, $t as StampDTOSchema, A as FormSetValueResultSchema, An as FreeTextDraftSchema, At as FormWidgetRefSchema, B as PageDeleteResultSchema, Bn as CircleDTOSchema, Bt as UnsupportedDraftSchema, C as FormEffectSchema, Cn as InkDTOSchema, Cr as LinePointsSchema, Ct as FormFieldOptionSchema, D as FormFieldUpdateResultSchema, Dn as HighlightDraftSchema, Dr as PdfRotationSchema, Dt as FormKindSchema, E as FormFieldDeleteResultSchema, En as HighlightDTOSchema, Er as PdfRectSchema, Et as FormFieldValueSchema, F as MetadataUpdateResultSchema, Fn as FileAttachmentWireDraftSchema, Ft as AnnotationDraftSchema, G as PageInsertBlankInputSchema, Gn as CaretPatchSchema, Gt as NoteIconSchema, H as PageFlattenInputSchema, Hn as CirclePatchSchema, Ht as UnderlineDTOSchema, I as MutationMetaSchema, In as WireAttachmentFileSchema, It as AnnotationPatchSchema, J as PageLayoutSchema, Jn as AnnotationDraftBaseShape, Jt as TextPatchSchema, K as PageInsertInputSchema, Kn as AnnotationBaseShape, Kt as TextDTOSchema, L as OpenDocumentResponseSchema, Ln as AttachmentFileInfoSchema, Lt as KIND_BY_SUBTYPE, M as LayerScopesSchema, Mn as FileAttachmentDTOSchema, Mt as WidgetPlacementSchema, N as ManifestPageSchema, Nn as FileAttachmentIconSchema, Nt as ANNOTATION_KINDS, O as FormImportResultSchema, On as HighlightPatchSchema, Or as PdfSizeSchema, Ot as FormSnapshotSchema, P as MetadataPatchSchema, Pn as FileAttachmentPatchSchema, Pt as AnnotationDTOSchema, Q as PageNetworkRenderFormatSchema, Qn as AnnotationRefSchema, Qt as ResourceRefSchema, R as PageBoxesSchema, Rn as EmbeddedFileItemSchema, Rt as WidgetAppearanceSchema, S as EngineErrorPayloadSchema, Sn as LinePatchSchema, Sr as InkListSchema, St as FormFieldOptionInputSchema, T as FormFieldCreateResultSchema, Tn as InkPatchSchema, Tr as PdfQuadSchema, Tt as FormFieldRefSchema, U as PageFlattenResultSchema, Un as CaretDTOSchema, Ut as UnderlineDraftSchema, V as PageExtractInputSchema, Vn as CircleDraftSchema, Vt as UnsupportedPatchSchema, W as PageGeometrySnapshotSchema, Wn as CaretDraftSchema, Wt as UnderlinePatchSchema, X as PageMoveInputSchema, Xn as AnnotationFlagsSchema, Xt as StrikeoutDraftSchema, Y as PageListSnapshotSchema, Yn as AnnotationFlagsPartialSchema, Yt as StrikeoutDTOSchema, Z as PageMoveResultSchema, Zn as AnnotationPatchBaseShape, Zt as StrikeoutPatchSchema, _ as CachePinsSchema, _n as PdfDestinationSchema, _r as PdfActionTypeSchema, _t as WeakAnnotationSessionResponseSchema, a as AnnotationCreateResultSchema, an as SquareDTOSchema, ar as LineEndingSchema, at as PageTextSnapshotSchema, b as DocumentMetadataSchema, bn as LineDTOSchema, br as PdfPageActionsSchema, bt as FormFieldDraftSchema, c as AnnotationListPageSnapshotSchema, cn as PolylineDTOSchema, cr as PointSchema, ct as RedactionApplyScopeSchema, d as AnnotationUpdateResultSchema, dn as PolygonDTOSchema, dr as StandardFontSchema, dt as SearchModeSchema, en as StampWireDraftSchema, er as BlendModeSchema, et as PageRenderQuerySchema, f as AppearanceOutcomeSchema, fn as PolygonDraftSchema, fr as StrikeoutIntentSchema, ft as SearchQuerySchema, g as CacheDeltaSchema, gn as LinkPatchSchema, gr as PdfActionTreeSchema, gt as WeakAnnotationSessionPagesRequestSchema, h as AttachmentsCacheSchema, hn as LinkDraftSchema, hr as PdfActionNodeSchema, ht as SearchSnippetSchema, i as AnnotationAppearancesQuerySchema, in as SquigglyPatchSchema, ir as InkIntentSchema, it as PageStructureCacheSchema, j as FormWidgetLinkResultSchema, jn as FreeTextPatchSchema, jt as ToggleFieldWidgetSchema, k as FormRepairResultSchema, kn as FreeTextDTOSchema, kt as FormValueEntrySchema, l as AnnotationListSnapshotAllPagesSchema, ln as PolylineDraftSchema, lr as RectSchema, lt as RefetchReasonSchema, m as AttachmentDeleteResultSchema, mn as LinkDTOSchema, mr as DocumentActionsSnapshotSchema, mt as SearchSliceSchema, n as AccessResponseSchema, nn as SquigglyDTOSchema, nr as ColorSchema, nt as PageRotateResultSchema, o as AnnotationDeleteResultSchema, on as SquareDraftSchema, or as LineEndingsSchema, ot as PdfSaveModeSchema, p as AttachmentCreateResultSchema, pn as PolygonPatchSchema, pr as TextAlignmentSchema, pt as SearchRequestSchema, q as PageInsertResultSchema, qn as AnnotationBorderStyleSchema, qt as TextDraftSchema, r as AnnotationAppearanceManifestSchema, rn as SquigglyDraftSchema, rr as FreeTextIntentSchema, rt as PageStateSchema, s as AnnotationListMutationMetaSchema, sn as SquarePatchSchema, sr as PdfRectDifferencesSchema, st as RedactionApplyResultSchema, t as AccessRequestSchema, tn as StampWirePatchSchema, tr as CaretIntentSchema, tt as PageRotateInputSchema, u as AnnotationMoveResultSchema, un as PolylinePatchSchema, ur as RevisionTokenSchema, ut as SearchMatchSchema, v as DocumentHeadSchema, vn as PdfLinkTargetSchema, vr as PdfAnnotationActionsSchema, vt as FormDataFormatSchema, w as FormEffectsResultSchema, wn as InkDraftSchema, wr as PdfPointSchema, wt as FormFieldPatchSchema, x as DocumentSecurityStateSchema, xn as LineDraftSchema, xr as CalloutLineSchema, xt as FormFieldFlagsSchema, y as DocumentManifestSchema, yn as PdfLinkTargetWritableSchema, yr as PdfFieldActionsSchema, yt as FormFieldDTOSchema, z as PageDeleteInputSchema, zn as EmbeddedFileRefSchema, zt as UnsupportedDTOSchema } from "./schemas-DAnu8tuW.js";
|
|
3
3
|
//#region src/wire/token.ts
|
|
4
4
|
const DEFAULT_MAX_TOKEN_LENGTH = 256;
|
|
5
5
|
const FIELD_NAME_RE = /^[A-Za-z][A-Za-z0-9]*(?:\.[A-Za-z][A-Za-z0-9]*)*$/;
|
|
@@ -75,6 +75,9 @@ const ContentTokenSchema = { fields: ["contentVersion"] };
|
|
|
75
75
|
const LayoutTokenSchema = { fields: ["layoutVersion"] };
|
|
76
76
|
const MetadataTokenSchema = { fields: ["metadataVersion"] };
|
|
77
77
|
const AnnotationTokenSchema = { fields: ["annotationVersion"] };
|
|
78
|
+
/** Doc-level bulk annotations listing pin (plural, vs the per-page
|
|
79
|
+
* `annotationVersion` token above). */
|
|
80
|
+
const AnnotationsAllTokenSchema = { fields: ["annotationsVersion"] };
|
|
78
81
|
const ActionsTokenSchema = { fields: ["actionsVersion"] };
|
|
79
82
|
const AttachmentsTokenSchema = { fields: ["attachmentsVersion"] };
|
|
80
83
|
const DownloadTokenSchema = {
|
|
@@ -127,6 +130,7 @@ const RenderTokenSchema = {
|
|
|
127
130
|
const SearchTokenSchema = {
|
|
128
131
|
fields: [
|
|
129
132
|
"epoch",
|
|
133
|
+
"format",
|
|
130
134
|
"matchCase",
|
|
131
135
|
"matchDiacritics",
|
|
132
136
|
"maxMatches",
|
|
@@ -169,6 +173,8 @@ const encodeMetadataToken = (metadataVersion) => encodeToken(MetadataTokenSchema
|
|
|
169
173
|
const decodeMetadataToken = (raw) => decodePositiveInteger(decodeToken(MetadataTokenSchema, raw).metadataVersion, "metadataVersion");
|
|
170
174
|
const encodeAnnotationToken = (annotationVersion) => encodeToken(AnnotationTokenSchema, { annotationVersion });
|
|
171
175
|
const decodeAnnotationToken = (raw) => decodePositiveInteger(decodeToken(AnnotationTokenSchema, raw).annotationVersion, "annotationVersion");
|
|
176
|
+
const encodeAnnotationsAllToken = (annotationsVersion) => encodeToken(AnnotationsAllTokenSchema, { annotationsVersion });
|
|
177
|
+
const decodeAnnotationsAllToken = (raw) => decodePositiveInteger(decodeToken(AnnotationsAllTokenSchema, raw).annotationsVersion, "annotationsVersion");
|
|
172
178
|
const encodeActionsToken = (actionsVersion) => encodeToken(ActionsTokenSchema, { actionsVersion });
|
|
173
179
|
const decodeActionsToken = (raw) => decodePositiveInteger(decodeToken(ActionsTokenSchema, raw).actionsVersion, "actionsVersion");
|
|
174
180
|
const encodeAttachmentsToken = (attachmentsVersion) => encodeToken(AttachmentsTokenSchema, { attachmentsVersion });
|
|
@@ -208,10 +214,20 @@ const decodeRenderToken = (raw) => decodeToken(RenderTokenSchema, raw);
|
|
|
208
214
|
const encodeAnnotationAppearancesRenderToken = (input) => encodeToken(AnnotationAppearancesRenderTokenSchema, input);
|
|
209
215
|
/** Decode an annotation-appearance render token to a flat field map. */
|
|
210
216
|
const decodeAnnotationAppearancesRenderToken = (raw) => decodeToken(AnnotationAppearancesRenderTokenSchema, raw);
|
|
217
|
+
/**
|
|
218
|
+
* The search RESULT representation this client speaks — part of the token
|
|
219
|
+
* (and therefore the versioned URL), so a response-shape change can never
|
|
220
|
+
* serve a stale CDN body to a newer client: new tokens are new cache keys,
|
|
221
|
+
* and old tokens fail decode on new servers. Deliberately ALWAYS encoded —
|
|
222
|
+
* an exception to the omit-defaults rule, because its entire job is to
|
|
223
|
+
* change the token bytes when the format changes.
|
|
224
|
+
*/
|
|
225
|
+
const SEARCH_RESULT_FORMAT = "segments1";
|
|
211
226
|
const encodeSearchToken = (input) => {
|
|
212
227
|
const q = input.query;
|
|
213
228
|
return encodeToken(SearchTokenSchema, {
|
|
214
229
|
epoch: input.epoch,
|
|
230
|
+
format: SEARCH_RESULT_FORMAT,
|
|
215
231
|
q: encodeTokenText(q.text),
|
|
216
232
|
regex: q.regex ? true : void 0,
|
|
217
233
|
matchCase: q.matchCase ? true : void 0,
|
|
@@ -227,6 +243,7 @@ const decodeSearchToken = (raw) => {
|
|
|
227
243
|
const t = decodeToken(SearchTokenSchema, raw);
|
|
228
244
|
if (t.epoch === void 0) throw new Error("search token is missing \"epoch\"");
|
|
229
245
|
if (t.q === void 0) throw new Error("search token is missing \"q\"");
|
|
246
|
+
if (t.format !== "segments1") throw new Error(`search token has unsupported result format "${t.format ?? "legacy"}" (expected "${SEARCH_RESULT_FORMAT}")`);
|
|
230
247
|
const query = {
|
|
231
248
|
text: decodeTokenText(t.q),
|
|
232
249
|
...t.regex === "true" ? { regex: true } : {},
|
|
@@ -341,8 +358,21 @@ function decodePdfSaveMode(raw) {
|
|
|
341
358
|
*/
|
|
342
359
|
const DEFAULT_LAYER_NAME = "default";
|
|
343
360
|
const wirePaths = {
|
|
344
|
-
/**
|
|
345
|
-
|
|
361
|
+
/**
|
|
362
|
+
* POST: grant access/caching credentials for the current bearer on
|
|
363
|
+
* the document + layer namespace the path names (cross-checked
|
|
364
|
+
* against the token like every layer route — the grant is
|
|
365
|
+
* layer-scoped in substance: CDN coverage, scopes, and the client's
|
|
366
|
+
* binding all carry the layer). Path-addressed so the affinity tier —
|
|
367
|
+
* the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
|
|
368
|
+
* regex — pins the session bootstrap to the document's pod from the
|
|
369
|
+
* very first request. Default-layer callers spell `layers/default/`,
|
|
370
|
+
* same as every other layer route.
|
|
371
|
+
*/
|
|
372
|
+
access: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/access`,
|
|
373
|
+
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
374
|
+
* cycle so pre-rename clients keep working; remove after. */
|
|
375
|
+
accessLegacy: "/v1/access",
|
|
346
376
|
/**
|
|
347
377
|
* GET: open the document referenced by the doc-scoped JWT and
|
|
348
378
|
* return its `DocumentHead`. The server materialises the base
|
|
@@ -479,6 +509,8 @@ const wirePaths = {
|
|
|
479
509
|
* object served from the base worker session.
|
|
480
510
|
*/
|
|
481
511
|
docPageAnnotations: (docId, pageObjectNumber, annotationVersion) => `/v1/docs/${encodeURIComponent(docId)}/annotations/pages/${pageObjectNumber}/items@${encodeAnnotationToken(annotationVersion)}`,
|
|
512
|
+
/** Immutable BASE whole-document annotation listing (bulk hydration). */
|
|
513
|
+
docAnnotationsAll: (docId, annotationsVersion) => `/v1/docs/${encodeURIComponent(docId)}/annotations/items@${encodeAnnotationsAllToken(annotationsVersion)}`,
|
|
482
514
|
/** Immutable BASE appearance batch (twin of
|
|
483
515
|
* `layerPageAnnotationAppearances` — same `annotations` plane gate). */
|
|
484
516
|
docPageAnnotationAppearances: (docId, pageObjectNumber, token) => `/v1/docs/${encodeURIComponent(docId)}/annotations/pages/${pageObjectNumber}/appearances@${encodeAnnotationAppearancesRenderToken(token)}`,
|
|
@@ -489,6 +521,8 @@ const wirePaths = {
|
|
|
489
521
|
* collection name — see file-level docstring.
|
|
490
522
|
*/
|
|
491
523
|
layerPageAnnotations: (docId, layerName, pageObjectNumber, annotationVersion) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/pages/${pageObjectNumber}/items@${encodeAnnotationToken(annotationVersion)}`,
|
|
524
|
+
/** Immutable LAYER whole-document annotation listing (bulk hydration). */
|
|
525
|
+
layerAnnotationsAll: (docId, layerName, annotationsVersion) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/items@${encodeAnnotationsAllToken(annotationsVersion)}`,
|
|
492
526
|
layerPageAnnotationsCurrent: (docId, layerName, pageObjectNumber) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/annotations/pages/${pageObjectNumber}/items`,
|
|
493
527
|
/**
|
|
494
528
|
* GET: batch-rendered annotation appearance bitmaps for a single page as a
|
|
@@ -567,6 +601,20 @@ const wirePaths = {
|
|
|
567
601
|
layerPagesRotate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/rotate`,
|
|
568
602
|
layerPagesDelete: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/delete`,
|
|
569
603
|
layerPagesFlatten: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/flatten`,
|
|
604
|
+
/**
|
|
605
|
+
* POST (multipart mutation envelope): copy every page of the `source`
|
|
606
|
+
* resource part (a standalone PDF) in at the body's `destIndex`.
|
|
607
|
+
*/
|
|
608
|
+
layerPagesInsert: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/insert`,
|
|
609
|
+
/** POST (plain JSON): create blank pages — pages.insert minus the bytes. */
|
|
610
|
+
layerPagesInsertBlank: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/insert-blank`,
|
|
611
|
+
/**
|
|
612
|
+
* POST (plain JSON → `application/pdf` bytes): export the listed pages,
|
|
613
|
+
* in caller order, as a standalone PDF. A READ over the current layer
|
|
614
|
+
* state (gated like /download), so it is a POST only for its body —
|
|
615
|
+
* nothing mutates and no event is published.
|
|
616
|
+
*/
|
|
617
|
+
layerPagesExtract: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/extract`,
|
|
570
618
|
layerRedactionsApply: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/redactions/apply`,
|
|
571
619
|
layerEvents: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/events`,
|
|
572
620
|
layerDownload: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/download`,
|
|
@@ -586,6 +634,38 @@ const wirePaths = {
|
|
|
586
634
|
*/
|
|
587
635
|
docWarm: "/v1/warm"
|
|
588
636
|
};
|
|
637
|
+
/**
|
|
638
|
+
* Fastify-style templates for the PLAIN (unversioned) doc-plane routes —
|
|
639
|
+
* the backend-callable subset that the `@cloudpdf/contract` contract
|
|
640
|
+
* documents. The immutable `@{version}` variants above remain viewer
|
|
641
|
+
* protocol and are deliberately absent. These templates are the single
|
|
642
|
+
* statement of those paths: the contract package imports them, and the
|
|
643
|
+
* server's route table is pinned to them by the doc-plane registry
|
|
644
|
+
* conformance test.
|
|
645
|
+
*/
|
|
646
|
+
const wireTemplates = {
|
|
647
|
+
docHead: "/v1/docs/:docId/head",
|
|
648
|
+
layerManifest: "/v1/docs/:docId/layers/:layerName/manifest",
|
|
649
|
+
layerMetadata: "/v1/docs/:docId/layers/:layerName/metadata",
|
|
650
|
+
layerRenderPage: "/v1/docs/:docId/layers/:layerName/render/pages/:pon/data",
|
|
651
|
+
layerTextPage: "/v1/docs/:docId/layers/:layerName/text/pages/:pon/data",
|
|
652
|
+
layerAnnotationItemsAll: "/v1/docs/:docId/layers/:layerName/annotations/items",
|
|
653
|
+
layerAnnotationItems: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items",
|
|
654
|
+
layerAnnotationItem: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/:annotKey",
|
|
655
|
+
layerForm: "/v1/docs/:docId/layers/:layerName/form",
|
|
656
|
+
layerFormFieldValue: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/value",
|
|
657
|
+
layerFormFieldReset: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/reset",
|
|
658
|
+
layerFormData: "/v1/docs/:docId/layers/:layerName/form/data",
|
|
659
|
+
layerPagesMove: "/v1/docs/:docId/layers/:layerName/pages/move",
|
|
660
|
+
layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate",
|
|
661
|
+
layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete",
|
|
662
|
+
layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten",
|
|
663
|
+
layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert",
|
|
664
|
+
layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank",
|
|
665
|
+
layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract",
|
|
666
|
+
layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply",
|
|
667
|
+
layerDownload: "/v1/docs/:docId/layers/:layerName/download"
|
|
668
|
+
};
|
|
589
669
|
//#endregion
|
|
590
670
|
//#region src/wire/resources.ts
|
|
591
671
|
/**
|
|
@@ -673,6 +753,19 @@ const DOC_RESOURCES = {
|
|
|
673
753
|
routeKind: "versioned-read",
|
|
674
754
|
cdnCacheable: true
|
|
675
755
|
},
|
|
756
|
+
"annotations-all": {
|
|
757
|
+
id: "annotations-all",
|
|
758
|
+
pathPattern: "/v1/docs/{docId}/annotations/items@*",
|
|
759
|
+
resolvePathPattern: (docId) => `/v1/docs/${docId}/annotations/items@*`,
|
|
760
|
+
pathPrefix: "/v1/docs/{docId}/annotations/items@",
|
|
761
|
+
resolvePathPrefix: (docId) => `/v1/docs/${docId}/annotations/items@`,
|
|
762
|
+
requirement: {
|
|
763
|
+
kind: "single",
|
|
764
|
+
capability: "doc.annotate.read"
|
|
765
|
+
},
|
|
766
|
+
routeKind: "versioned-read",
|
|
767
|
+
cdnCacheable: true
|
|
768
|
+
},
|
|
676
769
|
layout: {
|
|
677
770
|
id: "layout",
|
|
678
771
|
pathPattern: "/v1/docs/{docId}/layout@*",
|
|
@@ -920,6 +1013,19 @@ const DOC_RESOURCES = {
|
|
|
920
1013
|
routeKind: "versioned-read",
|
|
921
1014
|
cdnCacheable: true
|
|
922
1015
|
},
|
|
1016
|
+
"layer-annotations-all": {
|
|
1017
|
+
id: "layer-annotations-all",
|
|
1018
|
+
pathPattern: "/v1/docs/{docId}/layers/{layerName}/annotations/items@*",
|
|
1019
|
+
resolvePathPattern: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/annotations/items@*`,
|
|
1020
|
+
pathPrefix: "/v1/docs/{docId}/layers/{layerName}/annotations/items@",
|
|
1021
|
+
resolvePathPrefix: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/annotations/items@`,
|
|
1022
|
+
requirement: {
|
|
1023
|
+
kind: "single",
|
|
1024
|
+
capability: "doc.annotate.read"
|
|
1025
|
+
},
|
|
1026
|
+
routeKind: "versioned-read",
|
|
1027
|
+
cdnCacheable: true
|
|
1028
|
+
},
|
|
923
1029
|
"download-current": {
|
|
924
1030
|
id: "download-current",
|
|
925
1031
|
pathPattern: "/v1/docs/{docId}/layers/{layerName}/download",
|
|
@@ -1003,6 +1109,7 @@ const RESOURCE_PLANES = {
|
|
|
1003
1109
|
"page-geometry": ["content"],
|
|
1004
1110
|
"page-render-annotated": ["content", "annotations"],
|
|
1005
1111
|
"page-annotations": ["annotations"],
|
|
1112
|
+
"annotations-all": ["annotations"],
|
|
1006
1113
|
layout: ["layout"],
|
|
1007
1114
|
metadata: ["metadata"],
|
|
1008
1115
|
actions: ["actions"],
|
|
@@ -1275,6 +1382,6 @@ function annotationRenderOptionsFromImageOptions(options) {
|
|
|
1275
1382
|
};
|
|
1276
1383
|
}
|
|
1277
1384
|
//#endregion
|
|
1278
|
-
export { ANNOTATION_KINDS, AccessRequestSchema, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, DocTokenSchema, DocumentActionsSnapshotSchema, DocumentHeadSchema, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, MutationMetaSchema, NoteIconSchema, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, RenderTokenSchema, ResourceRefSchema, RevisionTokenSchema, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, WeakAnnotationSessionPagesRequestSchema, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths };
|
|
1385
|
+
export { ANNOTATION_KINDS, AccessRequestSchema, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, DocTokenSchema, DocumentActionsSnapshotSchema, DocumentHeadSchema, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, MutationMetaSchema, NoteIconSchema, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, 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, RenderTokenSchema, ResourceRefSchema, RevisionTokenSchema, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, WeakAnnotationSessionPagesRequestSchema, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAnnotationsAllToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAnnotationsAllToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
|
|
1279
1386
|
|
|
1280
1387
|
//# sourceMappingURL=wire.js.map
|