@embedpdf/engine-core 3.0.0-next.7 → 3.0.0-next.9
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-BsHuCO1S.js → AbortError-8-9JAX1Y.js} +2 -2
- package/dist/{AbortError-BsHuCO1S.js.map → AbortError-8-9JAX1Y.js.map} +1 -1
- package/dist/{AbortError-DmWeq9sx.cjs → AbortError-CRSooKsk.cjs} +2 -2
- package/dist/{AbortError-DmWeq9sx.cjs.map → AbortError-CRSooKsk.cjs.map} +1 -1
- package/dist/{AnnotationListSnapshot-CHjkcIaL.d.cts → AnnotationListSnapshot-Bwfnb1i-.d.cts} +25 -2
- package/dist/{AnnotationListSnapshot-CHjkcIaL.d.ts → AnnotationListSnapshot-Bwfnb1i-.d.ts} +25 -2
- package/dist/{DocumentSecurityService-CrxGktMI.d.ts → DocumentSecurityService-CqLXyTVM.d.ts} +2 -2
- package/dist/{DocumentSecurityService-B1uv4FaK.d.cts → DocumentSecurityService-DQNpYCXs.d.cts} +2 -2
- package/dist/{Engine-BE6r06QI.d.ts → Engine-C25gzAFz.d.ts} +26 -16
- package/dist/{Engine-BOaRwtKa.d.cts → Engine-COFJU7sA.d.cts} +26 -16
- package/dist/{charmap-D6PLtRiC.cjs → PageInsertBlankInput-CzShuSJI.cjs} +16 -1
- package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +1 -0
- package/dist/{charmap-CUukAMhR.js → PageInsertBlankInput-WKY0tr6S.js} +11 -2
- package/dist/PageInsertBlankInput-WKY0tr6S.js.map +1 -0
- package/dist/{builders-BsUc2A1U.cjs → builders-B5CgvJ3j.cjs} +6 -6
- package/dist/{builders-BsUc2A1U.cjs.map → builders-B5CgvJ3j.cjs.map} +1 -1
- package/dist/{builders-CF5gKkOa.js → builders-CGcBlTrv.js} +3 -3
- package/dist/{builders-CF5gKkOa.js.map → builders-CGcBlTrv.js.map} +1 -1
- package/dist/conformance.cjs +337 -178
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +26 -6
- package/dist/conformance.d.ts +26 -6
- package/dist/conformance.js +292 -134
- package/dist/conformance.js.map +1 -1
- package/dist/{fold-DemV94jf.js → fold-BfyxxwS6.js} +2 -2
- package/dist/{fold-DemV94jf.js.map → fold-BfyxxwS6.js.map} +1 -1
- package/dist/{fold-BeT1GxLP.cjs → fold-C7I5GpBz.cjs} +4 -4
- package/dist/{fold-BeT1GxLP.cjs.map → fold-C7I5GpBz.cjs.map} +1 -1
- package/dist/index.cjs +15 -14
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/runtime.cjs +20 -19
- 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-ES6-TkIl.js → schemas-BKRZZ-g1.js} +38 -4
- package/dist/{schemas-ES6-TkIl.js.map → schemas-BKRZZ-g1.js.map} +1 -1
- package/dist/{schemas-CyWwm0Zf.cjs → schemas-DlxjcDIl.cjs} +82 -24
- package/dist/{schemas-CyWwm0Zf.cjs.map → schemas-DlxjcDIl.cjs.map} +1 -1
- package/dist/wire.cjs +37 -3
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +72 -8
- package/dist/wire.d.ts +72 -8
- package/dist/wire.js +34 -4
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/charmap-CUukAMhR.js.map +0 -1
- package/dist/charmap-D6PLtRiC.cjs.map +0 -1
package/dist/wire.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as CaretDraftSchema, $c as
|
|
2
|
-
import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-
|
|
1
|
+
import { $ as CaretDraftSchema, $c as LinePoints, $r as FormEffectsResult, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ac as AnnotationBorderStyle, Ai as FormFieldOption, Ao as AnnotationAppearanceImageOptions, Ar as SearchSnippet, Bc as LineEndings, Bi as FormFieldRef, Ca as AttachmentCreateResult, Cc as PdfBits, D as FileAttachmentDTOSchema, Di as FormFieldDTO, Dn as HighlightPatchSchema, Do as PdfSaveMode, Dr as SearchRequest, Dt as LinePatchSchema, Ec as RevisionToken, En as HighlightDraftSchema, Er as SearchQuery, Et as LineDraftSchema, F as StampDTOSchema, Fc as Color, Fn as RedactionApplyScope, Fs as PageLayout, G as TextDTOSchema, Ga as EmbeddedFileRef, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Gr as FormFieldUpdateResult, Ha as AttachmentFileInfo, Hc as PdfRectDifferences, I as StampWireDraftSchema, Io as AnnotationAppearanceRenderOptions, Jc as StrikeoutIntent, Jn as PageRotateInput, Jr as FormSetValueResult, Jt as SquarePatchSchema, K as TextDraftSchema, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Ko as PageImageOptions, Kr as FormImportResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Lc as FreeTextIntent, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lo as AnnotationAppearancesQuery, Ls as MetadataPatch, Lt as PolygonDTOSchema, Mn as MetadataUpdateResult, Mo as AnnotationAppearanceManifest, Mt as PolylineDraftSchema, Nc as BlendMode, Ns as PageListSnapshot, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oo as CachePins, Or as SearchSlice, P as ResourceRefSchema, Pc as CaretIntent, Pn as RedactionApplyResult, Ps as PageBoxes, Q as CaretDTOSchema, Qn as PageMoveInput, Qt as CircleDTOSchema, Rc as InkIntent, Rt as PolygonDraftSchema, Ta as AttachmentsCache, Tc as AnnotationRef, Tn as HighlightDTOSchema, Tt as LineDTOSchema, Ur as FormFieldCreateResult, Vi as FormWidgetRef, W as NoteIconSchema, Wa as EmbeddedFileItem, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wr as FormFieldDeleteResult, Xc as CalloutLine, Xi as AppearanceOutcome, Xn as PageMoveResult, Xr as FormEffect, Yc as TextAlignment, Yo as PageNetworkRenderFormat, Yr as FormWidgetLinkResult, Zc as InkList, Zn as PageStructureCache, _ as UnsupportedPatchSchema, _i as FormKind, _t as LinkDraftSchema, a as AnnotationDTOSchema, aa as CacheDelta, ai as FormFieldPatch, at as FreeTextDraftSchema, bi as WidgetAppearanceSchema, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, cl as PdfActionNode, cn as StrikeoutDraftSchema, da as ManifestPage, di as FormFieldDraft, dt as InkDraftSchema, el as PdfPoint, en as CirclePatchSchema, es as PageRenderOptions, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fa as LayerScopePlane, fi as FormFieldOptionInput, fl as PdfAnnotationActions, ft as InkPatchSchema, g as UnsupportedDraftSchema, gc as DocCapability, gi as WidgetPlacement, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hl as DocumentMetadata, hn as SquigglyPatchSchema, ia as RefetchReason, il as PdfSize, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jc as AnnotationFlags, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, ki as FormFieldFlags, kr as SearchSliceBudget, ll as PdfActionTree, ln as StrikeoutPatchSchema, ml as PdfPageActions, mn as SquigglyDraftSchema, mo as AnnotationStableId, ms as PageTextSnapshot, n as AnnotationListSnapshotAllPages, ni as FormFieldValue, nl as PdfRect, oa as MutationMeta, ol as DocumentActionsSnapshot, ot as FreeTextPatchSchema, pa as LayerScopes, pl as PdfFieldActions, pn as SquigglyDTOSchema, q as TextPatchSchema, qc as StandardFont, qi as AnnotationUpdateResult, qn as PageRotateResult, qr as FormRepairResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as AnnotationListMutationMeta, rl as PdfRotation, s as AnnotationDraftSchema, sn as StrikeoutDTOSchema, ss as PageGeometrySnapshot, t as AnnotationListPageSnapshot, ti as FormDataFormat, tl as PdfQuad, ts as PageRenderQuery, u as AnnotationPatchSchema, ua as DocumentManifest, ut as InkDTOSchema, vi as FormSnapshot, vt as LinkPatchSchema, wa as AttachmentDeleteResult, wr as SearchMatch, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yn as UnderlineDTOSchema, yo as SerializedEngineError, yt as PdfDestinationSchema, zc as LineEnding, zi as FormValueEntry, zn as PageFlattenResult, zo as PageState, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-Bwfnb1i-.cjs";
|
|
2
|
+
import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-DQNpYCXs.cjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/geometry/schemas.d.ts
|
|
5
5
|
declare const PdfPointSchema: z.ZodType<PdfPoint>;
|
|
@@ -142,20 +142,23 @@ declare const DocumentHeadSchema: z.ZodObject<{
|
|
|
142
142
|
}>;
|
|
143
143
|
type DocumentHead = z.infer<typeof DocumentHeadSchema>;
|
|
144
144
|
declare const AccessRequestSchema: z.ZodObject<{
|
|
145
|
-
|
|
145
|
+
/** Deprecated: identity now rides the PATH
|
|
146
|
+
* (`/v1/docs/:docId/layers/:layerName/access`). Kept optional for the
|
|
147
|
+
* legacy `/v1/access` alias, which requires `docId` in the body. */
|
|
148
|
+
docId: z.ZodOptional<z.ZodString>;
|
|
146
149
|
layerName: z.ZodOptional<z.ZodString>;
|
|
147
150
|
password: z.ZodOptional<z.ZodString>;
|
|
148
151
|
passwordGrant: z.ZodOptional<z.ZodString>;
|
|
149
152
|
mode: z.ZodOptional<z.ZodEnum<["any", "owner"]>>;
|
|
150
153
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
docId: string;
|
|
152
154
|
password?: string | undefined;
|
|
155
|
+
docId?: string | undefined;
|
|
153
156
|
layerName?: string | undefined;
|
|
154
157
|
passwordGrant?: string | undefined;
|
|
155
158
|
mode?: "owner" | "any" | undefined;
|
|
156
159
|
}, {
|
|
157
|
-
docId: string;
|
|
158
160
|
password?: string | undefined;
|
|
161
|
+
docId?: string | undefined;
|
|
159
162
|
layerName?: string | undefined;
|
|
160
163
|
passwordGrant?: string | undefined;
|
|
161
164
|
mode?: "owner" | "any" | undefined;
|
|
@@ -670,6 +673,37 @@ declare const PageDeleteInputSchema: z.ZodType<PageDeleteInput>;
|
|
|
670
673
|
* pages keep identity + revisions (see `PageDeleteResult`).
|
|
671
674
|
*/
|
|
672
675
|
declare const PageDeleteResultSchema: z.ZodType<PageDeleteResult>;
|
|
676
|
+
/**
|
|
677
|
+
* Page insert (bytes) input — the JSON `body` part of the multipart
|
|
678
|
+
* mutation envelope; the PDF itself rides the `resource:source` part.
|
|
679
|
+
* `destIndex` omitted → append.
|
|
680
|
+
*/
|
|
681
|
+
declare const PageInsertInputSchema: z.ZodType<{
|
|
682
|
+
destIndex?: number;
|
|
683
|
+
}>;
|
|
684
|
+
/**
|
|
685
|
+
* Blank-page insert input — plain JSON, pages.insert minus the bytes.
|
|
686
|
+
* `size` is in PDF points (un-rotated); `count` shares the contract cap
|
|
687
|
+
* with the worker so a request the schema accepts cannot then fail the
|
|
688
|
+
* worker's own guard.
|
|
689
|
+
*/
|
|
690
|
+
declare const PageInsertBlankInputSchema: z.ZodType<{
|
|
691
|
+
size: {
|
|
692
|
+
width: number;
|
|
693
|
+
height: number;
|
|
694
|
+
};
|
|
695
|
+
count?: number;
|
|
696
|
+
destIndex?: number;
|
|
697
|
+
}>;
|
|
698
|
+
/** Page extract input: the pages to export, in the order they should appear. */
|
|
699
|
+
declare const PageExtractInputSchema: z.ZodType<{
|
|
700
|
+
pageObjectNumbers: number[];
|
|
701
|
+
}>;
|
|
702
|
+
/**
|
|
703
|
+
* Page insert result — shared by bytes-insert and blank-insert: the fresh
|
|
704
|
+
* PONs in insertion order plus the full new layout (see `PageInsertResult`).
|
|
705
|
+
*/
|
|
706
|
+
declare const PageInsertResultSchema: z.ZodType<PageInsertResult>;
|
|
673
707
|
/**
|
|
674
708
|
* Metadata write result. The Info dict is rewritten in place, so the
|
|
675
709
|
* result returns the re-read `metadata` plus cloud coherence pins. No
|
|
@@ -831,8 +865,21 @@ declare function decodeTokenText(encoded: string): string;
|
|
|
831
865
|
//#region src/wire/paths.d.ts
|
|
832
866
|
declare const DEFAULT_LAYER_NAME = "default";
|
|
833
867
|
declare const wirePaths: {
|
|
834
|
-
/**
|
|
835
|
-
|
|
868
|
+
/**
|
|
869
|
+
* POST: grant access/caching credentials for the current bearer on
|
|
870
|
+
* the document + layer namespace the path names (cross-checked
|
|
871
|
+
* against the token like every layer route — the grant is
|
|
872
|
+
* layer-scoped in substance: CDN coverage, scopes, and the client's
|
|
873
|
+
* binding all carry the layer). Path-addressed so the affinity tier —
|
|
874
|
+
* the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
|
|
875
|
+
* regex — pins the session bootstrap to the document's pod from the
|
|
876
|
+
* very first request. Default-layer callers spell `layers/default/`,
|
|
877
|
+
* same as every other layer route.
|
|
878
|
+
*/
|
|
879
|
+
readonly access: (docId: string, layerName: string) => string;
|
|
880
|
+
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
881
|
+
* cycle so pre-rename clients keep working; remove after. */
|
|
882
|
+
readonly accessLegacy: "/v1/access";
|
|
836
883
|
/**
|
|
837
884
|
* GET: open the document referenced by the doc-scoped JWT and
|
|
838
885
|
* return its `DocumentHead`. The server materialises the base
|
|
@@ -1057,6 +1104,20 @@ declare const wirePaths: {
|
|
|
1057
1104
|
readonly layerPagesRotate: (docId: string, layerName: string) => string;
|
|
1058
1105
|
readonly layerPagesDelete: (docId: string, layerName: string) => string;
|
|
1059
1106
|
readonly layerPagesFlatten: (docId: string, layerName: string) => string;
|
|
1107
|
+
/**
|
|
1108
|
+
* POST (multipart mutation envelope): copy every page of the `source`
|
|
1109
|
+
* resource part (a standalone PDF) in at the body's `destIndex`.
|
|
1110
|
+
*/
|
|
1111
|
+
readonly layerPagesInsert: (docId: string, layerName: string) => string;
|
|
1112
|
+
/** POST (plain JSON): create blank pages — pages.insert minus the bytes. */
|
|
1113
|
+
readonly layerPagesInsertBlank: (docId: string, layerName: string) => string;
|
|
1114
|
+
/**
|
|
1115
|
+
* POST (plain JSON → `application/pdf` bytes): export the listed pages,
|
|
1116
|
+
* in caller order, as a standalone PDF. A READ over the current layer
|
|
1117
|
+
* state (gated like /download), so it is a POST only for its body —
|
|
1118
|
+
* nothing mutates and no event is published.
|
|
1119
|
+
*/
|
|
1120
|
+
readonly layerPagesExtract: (docId: string, layerName: string) => string;
|
|
1060
1121
|
readonly layerRedactionsApply: (docId: string, layerName: string) => string;
|
|
1061
1122
|
readonly layerEvents: (docId: string, layerName: string) => string;
|
|
1062
1123
|
readonly layerDownload: (docId: string, layerName: string) => string;
|
|
@@ -1101,6 +1162,9 @@ declare const wireTemplates: {
|
|
|
1101
1162
|
readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
|
|
1102
1163
|
readonly layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete";
|
|
1103
1164
|
readonly layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten";
|
|
1165
|
+
readonly layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert";
|
|
1166
|
+
readonly layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank";
|
|
1167
|
+
readonly layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract";
|
|
1104
1168
|
readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
|
|
1105
1169
|
readonly layerDownload: "/v1/docs/:docId/layers/:layerName/download";
|
|
1106
1170
|
};
|
|
@@ -1580,5 +1644,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
|
|
|
1580
1644
|
declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
|
|
1581
1645
|
declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
|
|
1582
1646
|
//#endregion
|
|
1583
|
-
export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
|
|
1647
|
+
export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageExtractInputSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageInsertBlankInputSchema, PageInsertInputSchema, PageInsertResultSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
|
|
1584
1648
|
//# sourceMappingURL=wire.d.cts.map
|
package/dist/wire.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as CaretDraftSchema, $c as
|
|
2
|
-
import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-
|
|
1
|
+
import { $ as CaretDraftSchema, $c as LinePoints, $r as FormEffectsResult, $t as CircleDraftSchema, A as FileAttachmentWireDraftSchema, Ac as AnnotationBorderStyle, Ai as FormFieldOption, Ao as AnnotationAppearanceImageOptions, Ar as SearchSnippet, Bc as LineEndings, Bi as FormFieldRef, Ca as AttachmentCreateResult, Cc as PdfBits, D as FileAttachmentDTOSchema, Di as FormFieldDTO, Dn as HighlightPatchSchema, Do as PdfSaveMode, Dr as SearchRequest, Dt as LinePatchSchema, Ec as RevisionToken, En as HighlightDraftSchema, Er as SearchQuery, Et as LineDraftSchema, F as StampDTOSchema, Fc as Color, Fn as RedactionApplyScope, Fs as PageLayout, G as TextDTOSchema, Ga as EmbeddedFileRef, Gi as AnnotationDeleteResult, Gn as PageDeleteResult, Gr as FormFieldUpdateResult, Ha as AttachmentFileInfo, Hc as PdfRectDifferences, I as StampWireDraftSchema, Io as AnnotationAppearanceRenderOptions, Jc as StrikeoutIntent, Jn as PageRotateInput, Jr as FormSetValueResult, Jt as SquarePatchSchema, K as TextDraftSchema, Ki as AnnotationMoveResult, Kn as PageDeleteInput, Ko as PageImageOptions, Kr as FormImportResult, Kt as SquareDTOSchema, L as StampWirePatchSchema, Lc as FreeTextIntent, Li as ToggleFieldWidget, Ln as PageFlattenInput, Lo as AnnotationAppearancesQuery, Ls as MetadataPatch, Lt as PolygonDTOSchema, Mn as MetadataUpdateResult, Mo as AnnotationAppearanceManifest, Mt as PolylineDraftSchema, Nc as BlendMode, Ns as PageListSnapshot, Nt as PolylinePatchSchema, O as FileAttachmentIconSchema, Oo as CachePins, Or as SearchSlice, P as ResourceRefSchema, Pc as CaretIntent, Pn as RedactionApplyResult, Ps as PageBoxes, Q as CaretDTOSchema, Qn as PageMoveInput, Qt as CircleDTOSchema, Rc as InkIntent, Rt as PolygonDraftSchema, Ta as AttachmentsCache, Tc as AnnotationRef, Tn as HighlightDTOSchema, Tt as LineDTOSchema, Ur as FormFieldCreateResult, Vi as FormWidgetRef, W as NoteIconSchema, Wa as EmbeddedFileItem, Wi as AnnotationCreateResult, Wn as PageInsertResult, Wr as FormFieldDeleteResult, Xc as CalloutLine, Xi as AppearanceOutcome, Xn as PageMoveResult, Xr as FormEffect, Yc as TextAlignment, Yo as PageNetworkRenderFormat, Yr as FormWidgetLinkResult, Zc as InkList, Zn as PageStructureCache, _ as UnsupportedPatchSchema, _i as FormKind, _t as LinkDraftSchema, a as AnnotationDTOSchema, aa as CacheDelta, ai as FormFieldPatch, at as FreeTextDraftSchema, bi as WidgetAppearanceSchema, bn as UnderlineDraftSchema, bt as PdfLinkTargetSchema, cl as PdfActionNode, cn as StrikeoutDraftSchema, da as ManifestPage, di as FormFieldDraft, dt as InkDraftSchema, el as PdfPoint, en as CirclePatchSchema, es as PageRenderOptions, et as CaretPatchSchema, f as KIND_BY_SUBTYPE, fa as LayerScopePlane, fi as FormFieldOptionInput, fl as PdfAnnotationActions, ft as InkPatchSchema, g as UnsupportedDraftSchema, gc as DocCapability, gi as WidgetPlacement, gt as LinkDTOSchema, h as UnsupportedDTOSchema, hl as DocumentMetadata, hn as SquigglyPatchSchema, ia as RefetchReason, il as PdfSize, it as FreeTextDTOSchema, j as WireAttachmentFileSchema, jc as AnnotationFlags, jt as PolylineDTOSchema, k as FileAttachmentPatchSchema, ki as FormFieldFlags, kr as SearchSliceBudget, ll as PdfActionTree, ln as StrikeoutPatchSchema, ml as PdfPageActions, mn as SquigglyDraftSchema, mo as AnnotationStableId, ms as PageTextSnapshot, n as AnnotationListSnapshotAllPages, ni as FormFieldValue, nl as PdfRect, oa as MutationMeta, ol as DocumentActionsSnapshot, ot as FreeTextPatchSchema, pa as LayerScopes, pl as PdfFieldActions, pn as SquigglyDTOSchema, q as TextPatchSchema, qc as StandardFont, qi as AnnotationUpdateResult, qn as PageRotateResult, qr as FormRepairResult, qt as SquareDraftSchema, r as ANNOTATION_KINDS, ra as AnnotationListMutationMeta, rl as PdfRotation, s as AnnotationDraftSchema, sn as StrikeoutDTOSchema, ss as PageGeometrySnapshot, t as AnnotationListPageSnapshot, ti as FormDataFormat, tl as PdfQuad, ts as PageRenderQuery, u as AnnotationPatchSchema, ua as DocumentManifest, ut as InkDTOSchema, vi as FormSnapshot, vt as LinkPatchSchema, wa as AttachmentDeleteResult, wr as SearchMatch, xn as UnderlinePatchSchema, xt as PdfLinkTargetWritableSchema, yn as UnderlineDTOSchema, yo as SerializedEngineError, yt as PdfDestinationSchema, zc as LineEnding, zi as FormValueEntry, zn as PageFlattenResult, zo as PageState, zt as PolygonPatchSchema } from "./AnnotationListSnapshot-Bwfnb1i-.js";
|
|
2
|
+
import { c as DocumentSecurityState, f as PdfPermissionInfo } from "./DocumentSecurityService-CqLXyTVM.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/geometry/schemas.d.ts
|
|
5
5
|
declare const PdfPointSchema: z.ZodType<PdfPoint>;
|
|
@@ -142,20 +142,23 @@ declare const DocumentHeadSchema: z.ZodObject<{
|
|
|
142
142
|
}>;
|
|
143
143
|
type DocumentHead = z.infer<typeof DocumentHeadSchema>;
|
|
144
144
|
declare const AccessRequestSchema: z.ZodObject<{
|
|
145
|
-
|
|
145
|
+
/** Deprecated: identity now rides the PATH
|
|
146
|
+
* (`/v1/docs/:docId/layers/:layerName/access`). Kept optional for the
|
|
147
|
+
* legacy `/v1/access` alias, which requires `docId` in the body. */
|
|
148
|
+
docId: z.ZodOptional<z.ZodString>;
|
|
146
149
|
layerName: z.ZodOptional<z.ZodString>;
|
|
147
150
|
password: z.ZodOptional<z.ZodString>;
|
|
148
151
|
passwordGrant: z.ZodOptional<z.ZodString>;
|
|
149
152
|
mode: z.ZodOptional<z.ZodEnum<["any", "owner"]>>;
|
|
150
153
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
docId: string;
|
|
152
154
|
password?: string | undefined;
|
|
155
|
+
docId?: string | undefined;
|
|
153
156
|
layerName?: string | undefined;
|
|
154
157
|
passwordGrant?: string | undefined;
|
|
155
158
|
mode?: "owner" | "any" | undefined;
|
|
156
159
|
}, {
|
|
157
|
-
docId: string;
|
|
158
160
|
password?: string | undefined;
|
|
161
|
+
docId?: string | undefined;
|
|
159
162
|
layerName?: string | undefined;
|
|
160
163
|
passwordGrant?: string | undefined;
|
|
161
164
|
mode?: "owner" | "any" | undefined;
|
|
@@ -670,6 +673,37 @@ declare const PageDeleteInputSchema: z.ZodType<PageDeleteInput>;
|
|
|
670
673
|
* pages keep identity + revisions (see `PageDeleteResult`).
|
|
671
674
|
*/
|
|
672
675
|
declare const PageDeleteResultSchema: z.ZodType<PageDeleteResult>;
|
|
676
|
+
/**
|
|
677
|
+
* Page insert (bytes) input — the JSON `body` part of the multipart
|
|
678
|
+
* mutation envelope; the PDF itself rides the `resource:source` part.
|
|
679
|
+
* `destIndex` omitted → append.
|
|
680
|
+
*/
|
|
681
|
+
declare const PageInsertInputSchema: z.ZodType<{
|
|
682
|
+
destIndex?: number;
|
|
683
|
+
}>;
|
|
684
|
+
/**
|
|
685
|
+
* Blank-page insert input — plain JSON, pages.insert minus the bytes.
|
|
686
|
+
* `size` is in PDF points (un-rotated); `count` shares the contract cap
|
|
687
|
+
* with the worker so a request the schema accepts cannot then fail the
|
|
688
|
+
* worker's own guard.
|
|
689
|
+
*/
|
|
690
|
+
declare const PageInsertBlankInputSchema: z.ZodType<{
|
|
691
|
+
size: {
|
|
692
|
+
width: number;
|
|
693
|
+
height: number;
|
|
694
|
+
};
|
|
695
|
+
count?: number;
|
|
696
|
+
destIndex?: number;
|
|
697
|
+
}>;
|
|
698
|
+
/** Page extract input: the pages to export, in the order they should appear. */
|
|
699
|
+
declare const PageExtractInputSchema: z.ZodType<{
|
|
700
|
+
pageObjectNumbers: number[];
|
|
701
|
+
}>;
|
|
702
|
+
/**
|
|
703
|
+
* Page insert result — shared by bytes-insert and blank-insert: the fresh
|
|
704
|
+
* PONs in insertion order plus the full new layout (see `PageInsertResult`).
|
|
705
|
+
*/
|
|
706
|
+
declare const PageInsertResultSchema: z.ZodType<PageInsertResult>;
|
|
673
707
|
/**
|
|
674
708
|
* Metadata write result. The Info dict is rewritten in place, so the
|
|
675
709
|
* result returns the re-read `metadata` plus cloud coherence pins. No
|
|
@@ -831,8 +865,21 @@ declare function decodeTokenText(encoded: string): string;
|
|
|
831
865
|
//#region src/wire/paths.d.ts
|
|
832
866
|
declare const DEFAULT_LAYER_NAME = "default";
|
|
833
867
|
declare const wirePaths: {
|
|
834
|
-
/**
|
|
835
|
-
|
|
868
|
+
/**
|
|
869
|
+
* POST: grant access/caching credentials for the current bearer on
|
|
870
|
+
* the document + layer namespace the path names (cross-checked
|
|
871
|
+
* against the token like every layer route — the grant is
|
|
872
|
+
* layer-scoped in substance: CDN coverage, scopes, and the client's
|
|
873
|
+
* binding all carry the layer). Path-addressed so the affinity tier —
|
|
874
|
+
* the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
|
|
875
|
+
* regex — pins the session bootstrap to the document's pod from the
|
|
876
|
+
* very first request. Default-layer callers spell `layers/default/`,
|
|
877
|
+
* same as every other layer route.
|
|
878
|
+
*/
|
|
879
|
+
readonly access: (docId: string, layerName: string) => string;
|
|
880
|
+
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
881
|
+
* cycle so pre-rename clients keep working; remove after. */
|
|
882
|
+
readonly accessLegacy: "/v1/access";
|
|
836
883
|
/**
|
|
837
884
|
* GET: open the document referenced by the doc-scoped JWT and
|
|
838
885
|
* return its `DocumentHead`. The server materialises the base
|
|
@@ -1057,6 +1104,20 @@ declare const wirePaths: {
|
|
|
1057
1104
|
readonly layerPagesRotate: (docId: string, layerName: string) => string;
|
|
1058
1105
|
readonly layerPagesDelete: (docId: string, layerName: string) => string;
|
|
1059
1106
|
readonly layerPagesFlatten: (docId: string, layerName: string) => string;
|
|
1107
|
+
/**
|
|
1108
|
+
* POST (multipart mutation envelope): copy every page of the `source`
|
|
1109
|
+
* resource part (a standalone PDF) in at the body's `destIndex`.
|
|
1110
|
+
*/
|
|
1111
|
+
readonly layerPagesInsert: (docId: string, layerName: string) => string;
|
|
1112
|
+
/** POST (plain JSON): create blank pages — pages.insert minus the bytes. */
|
|
1113
|
+
readonly layerPagesInsertBlank: (docId: string, layerName: string) => string;
|
|
1114
|
+
/**
|
|
1115
|
+
* POST (plain JSON → `application/pdf` bytes): export the listed pages,
|
|
1116
|
+
* in caller order, as a standalone PDF. A READ over the current layer
|
|
1117
|
+
* state (gated like /download), so it is a POST only for its body —
|
|
1118
|
+
* nothing mutates and no event is published.
|
|
1119
|
+
*/
|
|
1120
|
+
readonly layerPagesExtract: (docId: string, layerName: string) => string;
|
|
1060
1121
|
readonly layerRedactionsApply: (docId: string, layerName: string) => string;
|
|
1061
1122
|
readonly layerEvents: (docId: string, layerName: string) => string;
|
|
1062
1123
|
readonly layerDownload: (docId: string, layerName: string) => string;
|
|
@@ -1101,6 +1162,9 @@ declare const wireTemplates: {
|
|
|
1101
1162
|
readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
|
|
1102
1163
|
readonly layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete";
|
|
1103
1164
|
readonly layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten";
|
|
1165
|
+
readonly layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert";
|
|
1166
|
+
readonly layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank";
|
|
1167
|
+
readonly layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract";
|
|
1104
1168
|
readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
|
|
1105
1169
|
readonly layerDownload: "/v1/docs/:docId/layers/:layerName/download";
|
|
1106
1170
|
};
|
|
@@ -1580,5 +1644,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
|
|
|
1580
1644
|
declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
|
|
1581
1645
|
declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
|
|
1582
1646
|
//#endregion
|
|
1583
|
-
export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
|
|
1647
|
+
export { ANNOTATION_KINDS, type AccessRequest, AccessRequestSchema, type AccessResponse, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, type AnnotationRenderVersion, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, type ApplyCdnAccessInput, type ApplyCdnAccessResult, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, type CacheDelta, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, type CapabilityRequirement, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, type CdnAccessInfoForApply, type CdnCoverageEntry, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, type DocResourceDescriptor, type DocResourceId, DocTokenSchema, DocumentActionsSnapshotSchema, type DocumentHead, DocumentHeadSchema, type DocumentManifest, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, type DownloadToken, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, type LayerScopePlane, type LayerScopes, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, type ManifestPage, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, type MutationMeta, MutationMetaSchema, NoteIconSchema, type OpenDocumentResponse, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageExtractInputSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageInsertBlankInputSchema, PageInsertInputSchema, PageInsertResultSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, type RenderPolicy, RenderTokenSchema, type RenderVersions, ResourceRefSchema, RevisionTokenSchema, type RouteKind, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, type SearchToken, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, type TokenInput, type TokenQuery, type TokenScalar, type TokenSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, type WeakAnnotationSessionPagesRequest, WeakAnnotationSessionPagesRequestSchema, type WeakAnnotationSessionResponse, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, type WireFlat, type WireScalar, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
|
|
1584
1648
|
//# sourceMappingURL=wire.d.ts.map
|
package/dist/wire.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as checkCapability, t as checkAnyCapability } from "./resolver-DiPMTfcy.js";
|
|
2
|
-
import { $ as
|
|
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-BKRZZ-g1.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]*)*$/;
|
|
@@ -353,8 +353,21 @@ function decodePdfSaveMode(raw) {
|
|
|
353
353
|
*/
|
|
354
354
|
const DEFAULT_LAYER_NAME = "default";
|
|
355
355
|
const wirePaths = {
|
|
356
|
-
/**
|
|
357
|
-
|
|
356
|
+
/**
|
|
357
|
+
* POST: grant access/caching credentials for the current bearer on
|
|
358
|
+
* the document + layer namespace the path names (cross-checked
|
|
359
|
+
* against the token like every layer route — the grant is
|
|
360
|
+
* layer-scoped in substance: CDN coverage, scopes, and the client's
|
|
361
|
+
* binding all carry the layer). Path-addressed so the affinity tier —
|
|
362
|
+
* the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
|
|
363
|
+
* regex — pins the session bootstrap to the document's pod from the
|
|
364
|
+
* very first request. Default-layer callers spell `layers/default/`,
|
|
365
|
+
* same as every other layer route.
|
|
366
|
+
*/
|
|
367
|
+
access: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/access`,
|
|
368
|
+
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
369
|
+
* cycle so pre-rename clients keep working; remove after. */
|
|
370
|
+
accessLegacy: "/v1/access",
|
|
358
371
|
/**
|
|
359
372
|
* GET: open the document referenced by the doc-scoped JWT and
|
|
360
373
|
* return its `DocumentHead`. The server materialises the base
|
|
@@ -579,6 +592,20 @@ const wirePaths = {
|
|
|
579
592
|
layerPagesRotate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/rotate`,
|
|
580
593
|
layerPagesDelete: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/delete`,
|
|
581
594
|
layerPagesFlatten: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/flatten`,
|
|
595
|
+
/**
|
|
596
|
+
* POST (multipart mutation envelope): copy every page of the `source`
|
|
597
|
+
* resource part (a standalone PDF) in at the body's `destIndex`.
|
|
598
|
+
*/
|
|
599
|
+
layerPagesInsert: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/insert`,
|
|
600
|
+
/** POST (plain JSON): create blank pages — pages.insert minus the bytes. */
|
|
601
|
+
layerPagesInsertBlank: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/insert-blank`,
|
|
602
|
+
/**
|
|
603
|
+
* POST (plain JSON → `application/pdf` bytes): export the listed pages,
|
|
604
|
+
* in caller order, as a standalone PDF. A READ over the current layer
|
|
605
|
+
* state (gated like /download), so it is a POST only for its body —
|
|
606
|
+
* nothing mutates and no event is published.
|
|
607
|
+
*/
|
|
608
|
+
layerPagesExtract: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/extract`,
|
|
582
609
|
layerRedactionsApply: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/redactions/apply`,
|
|
583
610
|
layerEvents: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/events`,
|
|
584
611
|
layerDownload: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/download`,
|
|
@@ -623,6 +650,9 @@ const wireTemplates = {
|
|
|
623
650
|
layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate",
|
|
624
651
|
layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete",
|
|
625
652
|
layerPagesFlatten: "/v1/docs/:docId/layers/:layerName/pages/flatten",
|
|
653
|
+
layerPagesInsert: "/v1/docs/:docId/layers/:layerName/pages/insert",
|
|
654
|
+
layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank",
|
|
655
|
+
layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract",
|
|
626
656
|
layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply",
|
|
627
657
|
layerDownload: "/v1/docs/:docId/layers/:layerName/download"
|
|
628
658
|
};
|
|
@@ -1315,6 +1345,6 @@ function annotationRenderOptionsFromImageOptions(options) {
|
|
|
1315
1345
|
};
|
|
1316
1346
|
}
|
|
1317
1347
|
//#endregion
|
|
1318
|
-
export { ANNOTATION_KINDS, AccessRequestSchema, AccessResponseSchema, ActionsTokenSchema, AnnotationAppearanceManifestSchema, AnnotationAppearancesQuerySchema, AnnotationAppearancesRenderTokenSchema, AnnotationBaseShape, AnnotationBorderStyleSchema, AnnotationCreateResultSchema, AnnotationDTOSchema, AnnotationDeleteResultSchema, AnnotationDraftBaseShape, AnnotationDraftSchema, AnnotationFlagsPartialSchema, AnnotationFlagsSchema, AnnotationListMutationMetaSchema, AnnotationListPageSnapshotSchema, AnnotationListSnapshotAllPagesSchema, AnnotationMoveResultSchema, AnnotationPatchBaseShape, AnnotationPatchSchema, AnnotationRefSchema, AnnotationStableIdSchema, AnnotationTokenSchema, AnnotationUpdateResultSchema, AppearanceOutcomeSchema, AttachmentCreateResultSchema, AttachmentDeleteResultSchema, AttachmentFileInfoSchema, AttachmentsCacheSchema, BlendModeSchema, CacheDeltaSchema, CachePinsSchema, CalloutLineSchema, CaretDTOSchema, CaretDraftSchema, CaretIntentSchema, CaretPatchSchema, CircleDTOSchema, CircleDraftSchema, CirclePatchSchema, ColorSchema, ContentTokenSchema, DEFAULT_LAYER_NAME, DOC_RESOURCES, DocTokenSchema, DocumentActionsSnapshotSchema, DocumentHeadSchema, DocumentManifestSchema, DocumentMetadataSchema, DocumentSecurityStateSchema, EmbeddedFileItemSchema, EmbeddedFileRefSchema, EngineErrorPayloadSchema, FileAttachmentDTOSchema, FileAttachmentIconSchema, FileAttachmentPatchSchema, FileAttachmentWireDraftSchema, FormDataFormatSchema, FormEffectSchema, FormEffectsResultSchema, FormFieldCreateResultSchema, FormFieldDTOSchema, FormFieldDeleteResultSchema, FormFieldDraftSchema, FormFieldFlagsSchema, FormFieldOptionInputSchema, FormFieldOptionSchema, FormFieldPatchSchema, FormFieldRefSchema, FormFieldUpdateResultSchema, FormFieldValueSchema, FormImportResultSchema, FormKindSchema, FormRepairResultSchema, FormSetValueResultSchema, FormSnapshotSchema, FormValueEntrySchema, FormWidgetLinkResultSchema, FormWidgetRefSchema, FreeTextDTOSchema, FreeTextDraftSchema, FreeTextIntentSchema, FreeTextPatchSchema, HighlightDTOSchema, HighlightDraftSchema, HighlightPatchSchema, InkDTOSchema, InkDraftSchema, InkIntentSchema, InkListSchema, InkPatchSchema, KIND_BY_SUBTYPE, LayerScopesSchema, LayoutTokenSchema, LineDTOSchema, LineDraftSchema, LineEndingSchema, LineEndingsSchema, LinePatchSchema, LinePointsSchema, LinkDTOSchema, LinkDraftSchema, LinkPatchSchema, ManifestPageSchema, MetadataPatchSchema, MetadataTokenSchema, MetadataUpdateResultSchema, MutationMetaSchema, NoteIconSchema, OpenDocumentResponseSchema, PageBoxesSchema, PageDeleteInputSchema, PageDeleteResultSchema, PageFlattenInputSchema, PageFlattenResultSchema, PageGeometrySnapshotSchema, PageLayoutSchema, PageListSnapshotSchema, PageMoveInputSchema, PageMoveResultSchema, PageNetworkRenderFormatSchema, PageRenderAnnotatedQuerySchema, PageRenderQuerySchema, PageRotateInputSchema, PageRotateResultSchema, PageStateSchema, PageStructureCacheSchema, PageTextSnapshotSchema, PdfActionNodeSchema, PdfActionTreeSchema, PdfActionTypeSchema, PdfAnnotationActionsSchema, PdfDestinationSchema, PdfFieldActionsSchema, PdfLinkTargetSchema, PdfLinkTargetWritableSchema, PdfPageActionsSchema, PdfPointSchema, PdfQuadSchema, PdfRectDifferencesSchema, PdfRectSchema, PdfRotationSchema, PdfSaveModeSchema, PdfSizeSchema, PointSchema, PolygonDTOSchema, PolygonDraftSchema, PolygonPatchSchema, PolylineDTOSchema, PolylineDraftSchema, PolylinePatchSchema, RectSchema, RedactionApplyResultSchema, RedactionApplyScopeSchema, RefetchReasonSchema, RenderTokenSchema, ResourceRefSchema, RevisionTokenSchema, SEARCH_RESULT_FORMAT, SearchMatchSchema, SearchModeSchema, SearchQuerySchema, SearchRequestSchema, SearchSliceSchema, SearchSnippetSchema, SearchTokenSchema, SquareDTOSchema, SquareDraftSchema, SquarePatchSchema, SquigglyDTOSchema, SquigglyDraftSchema, SquigglyPatchSchema, StampDTOSchema, StampWireDraftSchema, StampWirePatchSchema, StandardFontSchema, StrikeoutDTOSchema, StrikeoutDraftSchema, StrikeoutIntentSchema, StrikeoutPatchSchema, TextAlignmentSchema, TextDTOSchema, TextDraftSchema, TextPatchSchema, ToggleFieldWidgetSchema, UnderlineDTOSchema, UnderlineDraftSchema, UnderlinePatchSchema, UnsupportedDTOSchema, UnsupportedDraftSchema, UnsupportedPatchSchema, WeakAnnotationSessionPagesRequestSchema, WeakAnnotationSessionResponseSchema, WidgetAppearanceSchema, WidgetPlacementSchema, WireAttachmentFileSchema, annotationAppearancesImageOptionsToToken, annotationAppearancesImageOptionsToWire, annotationRenderOptionsFromImageOptions, applyCdnAccess, cdnCoverageForScope, checkResourceAccess, decodeActionsToken, decodeAnnotationAppearancesRenderToken, decodeAnnotationToken, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
|
|
1348
|
+
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, decodeAttachmentsToken, decodeContentToken, decodeDocToken, decodeDownloadToken, decodeLayoutToken, decodeMetadataToken, decodeRenderToken, decodeSearchToken, decodeToken, decodeTokenText, encodeActionsToken, encodeAnnotationAppearancesRenderToken, encodeAnnotationToken, encodeAttachmentsToken, encodeContentToken, encodeDocToken, encodeDownloadToken, encodeLayoutToken, encodeMetadataToken, encodeRenderToken, encodeSearchToken, encodeToken, encodeTokenText, flatten, pageRenderOptionsFromImageOptions, renderImageOptionsToToken, renderImageOptionsToWire, resolveResourceIdForPath, unflatten, wirePaths, wireTemplates };
|
|
1319
1349
|
|
|
1320
1350
|
//# sourceMappingURL=wire.js.map
|