@embedpdf/engine-core 3.0.0-next.7 → 3.0.0-next.8
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/conformance.cjs +1 -1
- package/dist/conformance.js +1 -1
- package/dist/runtime.d.cts +81 -2
- package/dist/runtime.d.ts +81 -2
- package/dist/{schemas-ES6-TkIl.js → schemas-BCuQlwdg.js} +4 -2
- package/dist/{schemas-ES6-TkIl.js.map → schemas-BCuQlwdg.js.map} +1 -1
- package/dist/{schemas-CyWwm0Zf.cjs → schemas-BPA_F2HV.cjs} +4 -2
- package/dist/{schemas-CyWwm0Zf.cjs.map → schemas-BPA_F2HV.cjs.map} +1 -1
- package/dist/wire.cjs +13 -3
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +17 -5
- package/dist/wire.d.ts +17 -5
- package/dist/wire.js +13 -3
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
package/dist/wire.d.cts
CHANGED
|
@@ -142,20 +142,22 @@ 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: the docId now rides the PATH (`/v1/docs/:docId/access`).
|
|
146
|
+
* Kept optional for the legacy `/v1/access` alias, which requires it. */
|
|
147
|
+
docId: z.ZodOptional<z.ZodString>;
|
|
146
148
|
layerName: z.ZodOptional<z.ZodString>;
|
|
147
149
|
password: z.ZodOptional<z.ZodString>;
|
|
148
150
|
passwordGrant: z.ZodOptional<z.ZodString>;
|
|
149
151
|
mode: z.ZodOptional<z.ZodEnum<["any", "owner"]>>;
|
|
150
152
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
docId: string;
|
|
152
153
|
password?: string | undefined;
|
|
154
|
+
docId?: string | undefined;
|
|
153
155
|
layerName?: string | undefined;
|
|
154
156
|
passwordGrant?: string | undefined;
|
|
155
157
|
mode?: "owner" | "any" | undefined;
|
|
156
158
|
}, {
|
|
157
|
-
docId: string;
|
|
158
159
|
password?: string | undefined;
|
|
160
|
+
docId?: string | undefined;
|
|
159
161
|
layerName?: string | undefined;
|
|
160
162
|
passwordGrant?: string | undefined;
|
|
161
163
|
mode?: "owner" | "any" | undefined;
|
|
@@ -831,8 +833,18 @@ declare function decodeTokenText(encoded: string): string;
|
|
|
831
833
|
//#region src/wire/paths.d.ts
|
|
832
834
|
declare const DEFAULT_LAYER_NAME = "default";
|
|
833
835
|
declare const wirePaths: {
|
|
834
|
-
/**
|
|
835
|
-
|
|
836
|
+
/**
|
|
837
|
+
* POST: grant document access/caching credentials for the current
|
|
838
|
+
* bearer, on the document the path names (cross-checked against the
|
|
839
|
+
* token like every doc route). Doc-scoped BY PATH so the affinity tier
|
|
840
|
+
* — the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
|
|
841
|
+
* regex — pins the session bootstrap to the document's pod: the very
|
|
842
|
+
* first request of a session opens on the right replica.
|
|
843
|
+
*/
|
|
844
|
+
readonly access: (docId: string) => string;
|
|
845
|
+
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
846
|
+
* cycle so pre-rename clients keep working; remove after. */
|
|
847
|
+
readonly accessLegacy: "/v1/access";
|
|
836
848
|
/**
|
|
837
849
|
* GET: open the document referenced by the doc-scoped JWT and
|
|
838
850
|
* return its `DocumentHead`. The server materialises the base
|
package/dist/wire.d.ts
CHANGED
|
@@ -142,20 +142,22 @@ 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: the docId now rides the PATH (`/v1/docs/:docId/access`).
|
|
146
|
+
* Kept optional for the legacy `/v1/access` alias, which requires it. */
|
|
147
|
+
docId: z.ZodOptional<z.ZodString>;
|
|
146
148
|
layerName: z.ZodOptional<z.ZodString>;
|
|
147
149
|
password: z.ZodOptional<z.ZodString>;
|
|
148
150
|
passwordGrant: z.ZodOptional<z.ZodString>;
|
|
149
151
|
mode: z.ZodOptional<z.ZodEnum<["any", "owner"]>>;
|
|
150
152
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
docId: string;
|
|
152
153
|
password?: string | undefined;
|
|
154
|
+
docId?: string | undefined;
|
|
153
155
|
layerName?: string | undefined;
|
|
154
156
|
passwordGrant?: string | undefined;
|
|
155
157
|
mode?: "owner" | "any" | undefined;
|
|
156
158
|
}, {
|
|
157
|
-
docId: string;
|
|
158
159
|
password?: string | undefined;
|
|
160
|
+
docId?: string | undefined;
|
|
159
161
|
layerName?: string | undefined;
|
|
160
162
|
passwordGrant?: string | undefined;
|
|
161
163
|
mode?: "owner" | "any" | undefined;
|
|
@@ -831,8 +833,18 @@ declare function decodeTokenText(encoded: string): string;
|
|
|
831
833
|
//#region src/wire/paths.d.ts
|
|
832
834
|
declare const DEFAULT_LAYER_NAME = "default";
|
|
833
835
|
declare const wirePaths: {
|
|
834
|
-
/**
|
|
835
|
-
|
|
836
|
+
/**
|
|
837
|
+
* POST: grant document access/caching credentials for the current
|
|
838
|
+
* bearer, on the document the path names (cross-checked against the
|
|
839
|
+
* token like every doc route). Doc-scoped BY PATH so the affinity tier
|
|
840
|
+
* — the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
|
|
841
|
+
* regex — pins the session bootstrap to the document's pod: the very
|
|
842
|
+
* first request of a session opens on the right replica.
|
|
843
|
+
*/
|
|
844
|
+
readonly access: (docId: string) => string;
|
|
845
|
+
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
846
|
+
* cycle so pre-rename clients keep working; remove after. */
|
|
847
|
+
readonly accessLegacy: "/v1/access";
|
|
836
848
|
/**
|
|
837
849
|
* GET: open the document referenced by the doc-scoped JWT and
|
|
838
850
|
* return its `DocumentHead`. The server materialises the base
|
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 PageStateSchema, $n as FreeTextIntentSchema, $t as SquigglyDraftSchema, A as FormSetValueResultSchema, An as FileAttachmentPatchSchema, At as AnnotationDTOSchema, B as PageDeleteResultSchema, Bn as CaretDraftSchema, Bt as UnderlinePatchSchema, C as FormEffectSchema, Cn as HighlightDraftSchema, Cr as PdfRotationSchema, Ct as FormKindSchema, D as FormFieldUpdateResultSchema, Dn as FreeTextPatchSchema, Dt as ToggleFieldWidgetSchema, E as FormFieldDeleteResultSchema, En as FreeTextDraftSchema, Et as FormWidgetRefSchema, F as MetadataUpdateResultSchema, Fn as EmbeddedFileRefSchema, Ft as UnsupportedDTOSchema, G as PageListSnapshotSchema, Gn as AnnotationFlagsPartialSchema, Gt as StrikeoutDTOSchema, H as PageFlattenResultSchema, Hn as AnnotationBaseShape, Ht as TextDTOSchema, I as MutationMetaSchema, In as CircleDTOSchema, It as UnsupportedDraftSchema, J as PageNetworkRenderFormatSchema, Jn as AnnotationRefSchema, Jt as ResourceRefSchema, K as PageMoveInputSchema, Kn as AnnotationFlagsSchema, Kt as StrikeoutDraftSchema, L as OpenDocumentResponseSchema, Ln as CircleDraftSchema, Lt as UnsupportedPatchSchema, M as LayerScopesSchema, Mn as WireAttachmentFileSchema, Mt as AnnotationPatchSchema, N as ManifestPageSchema, Nn as AttachmentFileInfoSchema, Nt as KIND_BY_SUBTYPE, O as FormImportResultSchema, On as FileAttachmentDTOSchema, Ot as WidgetPlacementSchema, P as MetadataPatchSchema, Pn as EmbeddedFileItemSchema, Pt as WidgetAppearanceSchema, Q as PageRotateResultSchema, Qn as ColorSchema, Qt as SquigglyDTOSchema, R as PageBoxesSchema, Rn as CirclePatchSchema, Rt as UnderlineDTOSchema, S as EngineErrorPayloadSchema, Sn as HighlightDTOSchema, Sr as PdfRectSchema, St as FormFieldValueSchema, T as FormFieldCreateResultSchema, Tn as FreeTextDTOSchema, Tt as FormValueEntrySchema, U as PageGeometrySnapshotSchema, Un as AnnotationBorderStyleSchema, Ut as TextDraftSchema, V as PageFlattenInputSchema, Vn as CaretPatchSchema, Vt as NoteIconSchema, W as PageLayoutSchema, Wn as AnnotationDraftBaseShape, Wt as TextPatchSchema, X as PageRenderQuerySchema, Xn as BlendModeSchema, Xt as StampWireDraftSchema, Y as PageRenderAnnotatedQuerySchema, Yn as AnnotationStableIdSchema, Yt as StampDTOSchema, Z as PageRotateInputSchema, Zn as CaretIntentSchema, Zt as StampWirePatchSchema, _ as CachePinsSchema, _n as LineDraftSchema, _r as CalloutLineSchema, _t as FormFieldFlagsSchema, a as AnnotationCreateResultSchema, an as PolylineDraftSchema, ar as RectSchema, at as RefetchReasonSchema, b as DocumentMetadataSchema, bn as InkDraftSchema, br as PdfPointSchema, bt as FormFieldPatchSchema, c as AnnotationListPageSnapshotSchema, cn as PolygonDraftSchema, cr as StrikeoutIntentSchema, ct as SearchQuerySchema, d as AnnotationUpdateResultSchema, dn as LinkDraftSchema, dr as PdfActionNodeSchema, dt as SearchSnippetSchema, en as SquigglyPatchSchema, er as InkIntentSchema, et as PageStructureCacheSchema, f as AppearanceOutcomeSchema, fn as LinkPatchSchema, fr as PdfActionTreeSchema, ft as WeakAnnotationSessionPagesRequestSchema, g as CacheDeltaSchema, gn as LineDTOSchema, gr as PdfPageActionsSchema, gt as FormFieldDraftSchema, h as AttachmentsCacheSchema, hn as PdfLinkTargetWritableSchema, hr as PdfFieldActionsSchema, ht as FormFieldDTOSchema, i as AnnotationAppearancesQuerySchema, in as PolylineDTOSchema, ir as PointSchema, it as RedactionApplyScopeSchema, j as FormWidgetLinkResultSchema, jn as FileAttachmentWireDraftSchema, jt as AnnotationDraftSchema, k as FormRepairResultSchema, kn as FileAttachmentIconSchema, kt as ANNOTATION_KINDS, l as AnnotationListSnapshotAllPagesSchema, ln as PolygonPatchSchema, lr as TextAlignmentSchema, lt as SearchRequestSchema, m as AttachmentDeleteResultSchema, mn as PdfLinkTargetSchema, mr as PdfAnnotationActionsSchema, mt as FormDataFormatSchema, n as AccessResponseSchema, nn as SquareDraftSchema, nr as LineEndingsSchema, nt as PdfSaveModeSchema, o as AnnotationDeleteResultSchema, on as PolylinePatchSchema, or as RevisionTokenSchema, ot as SearchMatchSchema, p as AttachmentCreateResultSchema, pn as PdfDestinationSchema, pr as PdfActionTypeSchema, pt as WeakAnnotationSessionResponseSchema, q as PageMoveResultSchema, qn as AnnotationPatchBaseShape, qt as StrikeoutPatchSchema, r as AnnotationAppearanceManifestSchema, rn as SquarePatchSchema, rr as PdfRectDifferencesSchema, rt as RedactionApplyResultSchema, s as AnnotationListMutationMetaSchema, sn as PolygonDTOSchema, sr as StandardFontSchema, st as SearchModeSchema, t as AccessRequestSchema, tn as SquareDTOSchema, tr as LineEndingSchema, tt as PageTextSnapshotSchema, u as AnnotationMoveResultSchema, un as LinkDTOSchema, ur as DocumentActionsSnapshotSchema, ut as SearchSliceSchema, v as DocumentHeadSchema, vn as LinePatchSchema, vr as InkListSchema, vt as FormFieldOptionInputSchema, w as FormEffectsResultSchema, wn as HighlightPatchSchema, wr as PdfSizeSchema, wt as FormSnapshotSchema, x as DocumentSecurityStateSchema, xn as InkPatchSchema, xr as PdfQuadSchema, xt as FormFieldRefSchema, y as DocumentManifestSchema, yn as InkDTOSchema, yr as LinePointsSchema, yt as FormFieldOptionSchema, z as PageDeleteInputSchema, zn as CaretDTOSchema, zt as UnderlineDraftSchema } from "./schemas-
|
|
2
|
+
import { $ as PageStateSchema, $n as FreeTextIntentSchema, $t as SquigglyDraftSchema, A as FormSetValueResultSchema, An as FileAttachmentPatchSchema, At as AnnotationDTOSchema, B as PageDeleteResultSchema, Bn as CaretDraftSchema, Bt as UnderlinePatchSchema, C as FormEffectSchema, Cn as HighlightDraftSchema, Cr as PdfRotationSchema, Ct as FormKindSchema, D as FormFieldUpdateResultSchema, Dn as FreeTextPatchSchema, Dt as ToggleFieldWidgetSchema, E as FormFieldDeleteResultSchema, En as FreeTextDraftSchema, Et as FormWidgetRefSchema, F as MetadataUpdateResultSchema, Fn as EmbeddedFileRefSchema, Ft as UnsupportedDTOSchema, G as PageListSnapshotSchema, Gn as AnnotationFlagsPartialSchema, Gt as StrikeoutDTOSchema, H as PageFlattenResultSchema, Hn as AnnotationBaseShape, Ht as TextDTOSchema, I as MutationMetaSchema, In as CircleDTOSchema, It as UnsupportedDraftSchema, J as PageNetworkRenderFormatSchema, Jn as AnnotationRefSchema, Jt as ResourceRefSchema, K as PageMoveInputSchema, Kn as AnnotationFlagsSchema, Kt as StrikeoutDraftSchema, L as OpenDocumentResponseSchema, Ln as CircleDraftSchema, Lt as UnsupportedPatchSchema, M as LayerScopesSchema, Mn as WireAttachmentFileSchema, Mt as AnnotationPatchSchema, N as ManifestPageSchema, Nn as AttachmentFileInfoSchema, Nt as KIND_BY_SUBTYPE, O as FormImportResultSchema, On as FileAttachmentDTOSchema, Ot as WidgetPlacementSchema, P as MetadataPatchSchema, Pn as EmbeddedFileItemSchema, Pt as WidgetAppearanceSchema, Q as PageRotateResultSchema, Qn as ColorSchema, Qt as SquigglyDTOSchema, R as PageBoxesSchema, Rn as CirclePatchSchema, Rt as UnderlineDTOSchema, S as EngineErrorPayloadSchema, Sn as HighlightDTOSchema, Sr as PdfRectSchema, St as FormFieldValueSchema, T as FormFieldCreateResultSchema, Tn as FreeTextDTOSchema, Tt as FormValueEntrySchema, U as PageGeometrySnapshotSchema, Un as AnnotationBorderStyleSchema, Ut as TextDraftSchema, V as PageFlattenInputSchema, Vn as CaretPatchSchema, Vt as NoteIconSchema, W as PageLayoutSchema, Wn as AnnotationDraftBaseShape, Wt as TextPatchSchema, X as PageRenderQuerySchema, Xn as BlendModeSchema, Xt as StampWireDraftSchema, Y as PageRenderAnnotatedQuerySchema, Yn as AnnotationStableIdSchema, Yt as StampDTOSchema, Z as PageRotateInputSchema, Zn as CaretIntentSchema, Zt as StampWirePatchSchema, _ as CachePinsSchema, _n as LineDraftSchema, _r as CalloutLineSchema, _t as FormFieldFlagsSchema, a as AnnotationCreateResultSchema, an as PolylineDraftSchema, ar as RectSchema, at as RefetchReasonSchema, b as DocumentMetadataSchema, bn as InkDraftSchema, br as PdfPointSchema, bt as FormFieldPatchSchema, c as AnnotationListPageSnapshotSchema, cn as PolygonDraftSchema, cr as StrikeoutIntentSchema, ct as SearchQuerySchema, d as AnnotationUpdateResultSchema, dn as LinkDraftSchema, dr as PdfActionNodeSchema, dt as SearchSnippetSchema, en as SquigglyPatchSchema, er as InkIntentSchema, et as PageStructureCacheSchema, f as AppearanceOutcomeSchema, fn as LinkPatchSchema, fr as PdfActionTreeSchema, ft as WeakAnnotationSessionPagesRequestSchema, g as CacheDeltaSchema, gn as LineDTOSchema, gr as PdfPageActionsSchema, gt as FormFieldDraftSchema, h as AttachmentsCacheSchema, hn as PdfLinkTargetWritableSchema, hr as PdfFieldActionsSchema, ht as FormFieldDTOSchema, i as AnnotationAppearancesQuerySchema, in as PolylineDTOSchema, ir as PointSchema, it as RedactionApplyScopeSchema, j as FormWidgetLinkResultSchema, jn as FileAttachmentWireDraftSchema, jt as AnnotationDraftSchema, k as FormRepairResultSchema, kn as FileAttachmentIconSchema, kt as ANNOTATION_KINDS, l as AnnotationListSnapshotAllPagesSchema, ln as PolygonPatchSchema, lr as TextAlignmentSchema, lt as SearchRequestSchema, m as AttachmentDeleteResultSchema, mn as PdfLinkTargetSchema, mr as PdfAnnotationActionsSchema, mt as FormDataFormatSchema, n as AccessResponseSchema, nn as SquareDraftSchema, nr as LineEndingsSchema, nt as PdfSaveModeSchema, o as AnnotationDeleteResultSchema, on as PolylinePatchSchema, or as RevisionTokenSchema, ot as SearchMatchSchema, p as AttachmentCreateResultSchema, pn as PdfDestinationSchema, pr as PdfActionTypeSchema, pt as WeakAnnotationSessionResponseSchema, q as PageMoveResultSchema, qn as AnnotationPatchBaseShape, qt as StrikeoutPatchSchema, r as AnnotationAppearanceManifestSchema, rn as SquarePatchSchema, rr as PdfRectDifferencesSchema, rt as RedactionApplyResultSchema, s as AnnotationListMutationMetaSchema, sn as PolygonDTOSchema, sr as StandardFontSchema, st as SearchModeSchema, t as AccessRequestSchema, tn as SquareDTOSchema, tr as LineEndingSchema, tt as PageTextSnapshotSchema, u as AnnotationMoveResultSchema, un as LinkDTOSchema, ur as DocumentActionsSnapshotSchema, ut as SearchSliceSchema, v as DocumentHeadSchema, vn as LinePatchSchema, vr as InkListSchema, vt as FormFieldOptionInputSchema, w as FormEffectsResultSchema, wn as HighlightPatchSchema, wr as PdfSizeSchema, wt as FormSnapshotSchema, x as DocumentSecurityStateSchema, xn as InkPatchSchema, xr as PdfQuadSchema, xt as FormFieldRefSchema, y as DocumentManifestSchema, yn as InkDTOSchema, yr as LinePointsSchema, yt as FormFieldOptionSchema, z as PageDeleteInputSchema, zn as CaretDTOSchema, zt as UnderlineDraftSchema } from "./schemas-BCuQlwdg.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,18 @@ function decodePdfSaveMode(raw) {
|
|
|
353
353
|
*/
|
|
354
354
|
const DEFAULT_LAYER_NAME = "default";
|
|
355
355
|
const wirePaths = {
|
|
356
|
-
/**
|
|
357
|
-
|
|
356
|
+
/**
|
|
357
|
+
* POST: grant document access/caching credentials for the current
|
|
358
|
+
* bearer, on the document the path names (cross-checked against the
|
|
359
|
+
* token like every doc route). Doc-scoped BY PATH so the affinity tier
|
|
360
|
+
* — the `X-CloudPDF-Doc` header derivation AND the chart's uri-mode
|
|
361
|
+
* regex — pins the session bootstrap to the document's pod: the very
|
|
362
|
+
* first request of a session opens on the right replica.
|
|
363
|
+
*/
|
|
364
|
+
access: (docId) => `/v1/docs/${encodeURIComponent(docId)}/access`,
|
|
365
|
+
/** Deprecated alias (docId in the BODY) — served for one prerelease
|
|
366
|
+
* cycle so pre-rename clients keep working; remove after. */
|
|
367
|
+
accessLegacy: "/v1/access",
|
|
358
368
|
/**
|
|
359
369
|
* GET: open the document referenced by the doc-scoped JWT and
|
|
360
370
|
* return its `DocumentHead`. The server materialises the base
|