@embedpdf/engine-core 3.0.0-next.8 → 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 +24 -5
- package/dist/runtime.d.ts +24 -5
- package/dist/runtime.js +5 -5
- package/dist/{schemas-BCuQlwdg.js → schemas-BKRZZ-g1.js} +37 -5
- package/dist/{schemas-BCuQlwdg.js.map → schemas-BKRZZ-g1.js.map} +1 -1
- package/dist/{schemas-BPA_F2HV.cjs → schemas-DlxjcDIl.cjs} +81 -25
- package/dist/{schemas-BPA_F2HV.cjs.map → schemas-DlxjcDIl.cjs.map} +1 -1
- package/dist/wire.cjs +32 -8
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +64 -12
- package/dist/wire.d.ts +64 -12
- package/dist/wire.js +29 -9
- 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,8 +142,9 @@ declare const DocumentHeadSchema: z.ZodObject<{
|
|
|
142
142
|
}>;
|
|
143
143
|
type DocumentHead = z.infer<typeof DocumentHeadSchema>;
|
|
144
144
|
declare const AccessRequestSchema: z.ZodObject<{
|
|
145
|
-
/** Deprecated:
|
|
146
|
-
*
|
|
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. */
|
|
147
148
|
docId: z.ZodOptional<z.ZodString>;
|
|
148
149
|
layerName: z.ZodOptional<z.ZodString>;
|
|
149
150
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -672,6 +673,37 @@ declare const PageDeleteInputSchema: z.ZodType<PageDeleteInput>;
|
|
|
672
673
|
* pages keep identity + revisions (see `PageDeleteResult`).
|
|
673
674
|
*/
|
|
674
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>;
|
|
675
707
|
/**
|
|
676
708
|
* Metadata write result. The Info dict is rewritten in place, so the
|
|
677
709
|
* result returns the re-read `metadata` plus cloud coherence pins. No
|
|
@@ -834,14 +866,17 @@ declare function decodeTokenText(encoded: string): string;
|
|
|
834
866
|
declare const DEFAULT_LAYER_NAME = "default";
|
|
835
867
|
declare const wirePaths: {
|
|
836
868
|
/**
|
|
837
|
-
* POST: grant
|
|
838
|
-
*
|
|
839
|
-
* token like every
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
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.
|
|
843
878
|
*/
|
|
844
|
-
readonly access: (docId: string) => string;
|
|
879
|
+
readonly access: (docId: string, layerName: string) => string;
|
|
845
880
|
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
846
881
|
* cycle so pre-rename clients keep working; remove after. */
|
|
847
882
|
readonly accessLegacy: "/v1/access";
|
|
@@ -1069,6 +1104,20 @@ declare const wirePaths: {
|
|
|
1069
1104
|
readonly layerPagesRotate: (docId: string, layerName: string) => string;
|
|
1070
1105
|
readonly layerPagesDelete: (docId: string, layerName: string) => string;
|
|
1071
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;
|
|
1072
1121
|
readonly layerRedactionsApply: (docId: string, layerName: string) => string;
|
|
1073
1122
|
readonly layerEvents: (docId: string, layerName: string) => string;
|
|
1074
1123
|
readonly layerDownload: (docId: string, layerName: string) => string;
|
|
@@ -1113,6 +1162,9 @@ declare const wireTemplates: {
|
|
|
1113
1162
|
readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
|
|
1114
1163
|
readonly layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete";
|
|
1115
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";
|
|
1116
1168
|
readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
|
|
1117
1169
|
readonly layerDownload: "/v1/docs/:docId/layers/:layerName/download";
|
|
1118
1170
|
};
|
|
@@ -1592,5 +1644,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
|
|
|
1592
1644
|
declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
|
|
1593
1645
|
declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
|
|
1594
1646
|
//#endregion
|
|
1595
|
-
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 };
|
|
1596
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,8 +142,9 @@ declare const DocumentHeadSchema: z.ZodObject<{
|
|
|
142
142
|
}>;
|
|
143
143
|
type DocumentHead = z.infer<typeof DocumentHeadSchema>;
|
|
144
144
|
declare const AccessRequestSchema: z.ZodObject<{
|
|
145
|
-
/** Deprecated:
|
|
146
|
-
*
|
|
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. */
|
|
147
148
|
docId: z.ZodOptional<z.ZodString>;
|
|
148
149
|
layerName: z.ZodOptional<z.ZodString>;
|
|
149
150
|
password: z.ZodOptional<z.ZodString>;
|
|
@@ -672,6 +673,37 @@ declare const PageDeleteInputSchema: z.ZodType<PageDeleteInput>;
|
|
|
672
673
|
* pages keep identity + revisions (see `PageDeleteResult`).
|
|
673
674
|
*/
|
|
674
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>;
|
|
675
707
|
/**
|
|
676
708
|
* Metadata write result. The Info dict is rewritten in place, so the
|
|
677
709
|
* result returns the re-read `metadata` plus cloud coherence pins. No
|
|
@@ -834,14 +866,17 @@ declare function decodeTokenText(encoded: string): string;
|
|
|
834
866
|
declare const DEFAULT_LAYER_NAME = "default";
|
|
835
867
|
declare const wirePaths: {
|
|
836
868
|
/**
|
|
837
|
-
* POST: grant
|
|
838
|
-
*
|
|
839
|
-
* token like every
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
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.
|
|
843
878
|
*/
|
|
844
|
-
readonly access: (docId: string) => string;
|
|
879
|
+
readonly access: (docId: string, layerName: string) => string;
|
|
845
880
|
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
846
881
|
* cycle so pre-rename clients keep working; remove after. */
|
|
847
882
|
readonly accessLegacy: "/v1/access";
|
|
@@ -1069,6 +1104,20 @@ declare const wirePaths: {
|
|
|
1069
1104
|
readonly layerPagesRotate: (docId: string, layerName: string) => string;
|
|
1070
1105
|
readonly layerPagesDelete: (docId: string, layerName: string) => string;
|
|
1071
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;
|
|
1072
1121
|
readonly layerRedactionsApply: (docId: string, layerName: string) => string;
|
|
1073
1122
|
readonly layerEvents: (docId: string, layerName: string) => string;
|
|
1074
1123
|
readonly layerDownload: (docId: string, layerName: string) => string;
|
|
@@ -1113,6 +1162,9 @@ declare const wireTemplates: {
|
|
|
1113
1162
|
readonly layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate";
|
|
1114
1163
|
readonly layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete";
|
|
1115
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";
|
|
1116
1168
|
readonly layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply";
|
|
1117
1169
|
readonly layerDownload: "/v1/docs/:docId/layers/:layerName/download";
|
|
1118
1170
|
};
|
|
@@ -1592,5 +1644,5 @@ declare const AttachmentFileInfoSchema: z.ZodType<AttachmentFileInfo>;
|
|
|
1592
1644
|
declare const EmbeddedFileRefSchema: z.ZodType<EmbeddedFileRef>;
|
|
1593
1645
|
declare const EmbeddedFileItemSchema: z.ZodType<EmbeddedFileItem>;
|
|
1594
1646
|
//#endregion
|
|
1595
|
-
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 };
|
|
1596
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]*)*$/;
|
|
@@ -354,14 +354,17 @@ function decodePdfSaveMode(raw) {
|
|
|
354
354
|
const DEFAULT_LAYER_NAME = "default";
|
|
355
355
|
const wirePaths = {
|
|
356
356
|
/**
|
|
357
|
-
* POST: grant
|
|
358
|
-
*
|
|
359
|
-
* token like every
|
|
360
|
-
*
|
|
361
|
-
*
|
|
362
|
-
*
|
|
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.
|
|
363
366
|
*/
|
|
364
|
-
access: (docId) => `/v1/docs/${encodeURIComponent(docId)}/access`,
|
|
367
|
+
access: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/access`,
|
|
365
368
|
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
366
369
|
* cycle so pre-rename clients keep working; remove after. */
|
|
367
370
|
accessLegacy: "/v1/access",
|
|
@@ -589,6 +592,20 @@ const wirePaths = {
|
|
|
589
592
|
layerPagesRotate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/rotate`,
|
|
590
593
|
layerPagesDelete: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/pages/delete`,
|
|
591
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`,
|
|
592
609
|
layerRedactionsApply: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/redactions/apply`,
|
|
593
610
|
layerEvents: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/events`,
|
|
594
611
|
layerDownload: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/download`,
|
|
@@ -633,6 +650,9 @@ const wireTemplates = {
|
|
|
633
650
|
layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate",
|
|
634
651
|
layerPagesDelete: "/v1/docs/:docId/layers/:layerName/pages/delete",
|
|
635
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",
|
|
636
656
|
layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply",
|
|
637
657
|
layerDownload: "/v1/docs/:docId/layers/:layerName/download"
|
|
638
658
|
};
|
|
@@ -1325,6 +1345,6 @@ function annotationRenderOptionsFromImageOptions(options) {
|
|
|
1325
1345
|
};
|
|
1326
1346
|
}
|
|
1327
1347
|
//#endregion
|
|
1328
|
-
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 };
|
|
1329
1349
|
|
|
1330
1350
|
//# sourceMappingURL=wire.js.map
|