@embedpdf/engine-core 3.0.0-next.12 → 3.0.0-next.13
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-CRSooKsk.cjs → AbortError-Cq2igpZ6.cjs} +2 -2
- package/dist/{AbortError-CRSooKsk.cjs.map → AbortError-Cq2igpZ6.cjs.map} +1 -1
- package/dist/{AbortError-8-9JAX1Y.js → AbortError-DHqPBnYc.js} +2 -2
- package/dist/{AbortError-8-9JAX1Y.js.map → AbortError-DHqPBnYc.js.map} +1 -1
- package/dist/{AnnotationListSnapshot-x6tKulNV.d.cts → AnnotationListSnapshot-D3mFut1e.d.cts} +1155 -171
- package/dist/{AnnotationListSnapshot-x6tKulNV.d.ts → AnnotationListSnapshot-D3mFut1e.d.ts} +1155 -171
- package/dist/{DocumentSecurityService-CK0pejAK.d.cts → DocumentSecurityService-ClTZc0zO.d.cts} +2 -2
- package/dist/{DocumentSecurityService-9MawYxP-.d.ts → DocumentSecurityService-_JRjqvoI.d.ts} +2 -2
- package/dist/{Engine-Ds0ytbl6.d.ts → Engine-Bx0NOfmd.d.cts} +166 -11
- package/dist/{Engine--0XF0UAK.d.cts → Engine-DxtpCYcP.d.ts} +166 -11
- package/dist/{PageInsertBlankInput-CzShuSJI.cjs → PageInsertBlankInput-CqXBmFhN.cjs} +37 -2
- package/dist/PageInsertBlankInput-CqXBmFhN.cjs.map +1 -0
- package/dist/{PageInsertBlankInput-WKY0tr6S.js → PageInsertBlankInput-cHq9-i-z.js} +37 -2
- package/dist/PageInsertBlankInput-cHq9-i-z.js.map +1 -0
- package/dist/{builders-8Hl1AYNU.cjs → builders-Bqm8yTpi.cjs} +1470 -4
- package/dist/builders-Bqm8yTpi.cjs.map +1 -0
- package/dist/{builders-DOjcKDWQ.js → builders-Dqo2X-dt.js} +1351 -5
- package/dist/builders-Dqo2X-dt.js.map +1 -0
- package/dist/conformance.cjs +1079 -13
- package/dist/conformance.cjs.map +1 -1
- package/dist/conformance.d.cts +70 -3
- package/dist/conformance.d.ts +70 -3
- package/dist/conformance.js +1079 -14
- package/dist/conformance.js.map +1 -1
- package/dist/{fold-C7I5GpBz.cjs → fold-2V29cxCV.cjs} +2 -2
- package/dist/{fold-C7I5GpBz.cjs.map → fold-2V29cxCV.cjs.map} +1 -1
- package/dist/{fold-BfyxxwS6.js → fold-CdEJTBTn.js} +2 -2
- package/dist/{fold-BfyxxwS6.js.map → fold-CdEJTBTn.js.map} +1 -1
- package/dist/index.cjs +33 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/{resolver-D-jumvgM.cjs → resolver-CYVNV4hn.cjs} +216 -10
- package/dist/resolver-CYVNV4hn.cjs.map +1 -0
- package/dist/{resolver-CHG4waXL.js → resolver-inAVzsWt.js} +157 -11
- package/dist/resolver-inAVzsWt.js.map +1 -0
- package/dist/runtime.cjs +34 -5
- package/dist/runtime.d.cts +192 -5
- package/dist/runtime.d.ts +192 -5
- package/dist/runtime.js +6 -6
- package/dist/{schemas-DOyVEPk7.js → schemas-BLARNCgx.js} +420 -4
- package/dist/schemas-BLARNCgx.js.map +1 -0
- package/dist/{schemas-RChsAMWw.cjs → schemas-DIqFMmrC.cjs} +581 -3
- package/dist/schemas-DIqFMmrC.cjs.map +1 -0
- package/dist/wire.cjs +228 -12
- package/dist/wire.cjs.map +1 -1
- package/dist/wire.d.cts +415 -4
- package/dist/wire.d.ts +415 -4
- package/dist/wire.js +199 -13
- package/dist/wire.js.map +1 -1
- package/package.json +1 -1
- package/dist/PageInsertBlankInput-CzShuSJI.cjs.map +0 -1
- package/dist/PageInsertBlankInput-WKY0tr6S.js.map +0 -1
- package/dist/builders-8Hl1AYNU.cjs.map +0 -1
- package/dist/builders-DOjcKDWQ.js.map +0 -1
- package/dist/resolver-CHG4waXL.js.map +0 -1
- package/dist/resolver-D-jumvgM.cjs.map +0 -1
- package/dist/schemas-DOyVEPk7.js.map +0 -1
- package/dist/schemas-RChsAMWw.cjs.map +0 -1
package/dist/wire.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_resolver = require("./resolver-
|
|
3
|
-
const require_schemas = require("./schemas-
|
|
2
|
+
const require_resolver = require("./resolver-CYVNV4hn.cjs");
|
|
3
|
+
const require_schemas = require("./schemas-DIqFMmrC.cjs");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
//#region src/forms/submission.ts
|
|
6
6
|
const FormSubmissionEntrySchema = zod.z.object({
|
|
@@ -117,6 +117,19 @@ const AnnotationTokenSchema = { fields: ["annotationVersion"] };
|
|
|
117
117
|
const AnnotationsAllTokenSchema = { fields: ["annotationsVersion"] };
|
|
118
118
|
const ActionsTokenSchema = { fields: ["actionsVersion"] };
|
|
119
119
|
const AttachmentsTokenSchema = { fields: ["attachmentsVersion"] };
|
|
120
|
+
/**
|
|
121
|
+
* Layer signature analysis: the working copy judged against the base,
|
|
122
|
+
* pinned by `docVersion`; `since.signature` XOR `since.revision`; `level`
|
|
123
|
+
* only in exploratory mode.
|
|
124
|
+
*/
|
|
125
|
+
const AnalysisTokenSchema = { fields: [
|
|
126
|
+
"docVersion",
|
|
127
|
+
"since.signature",
|
|
128
|
+
"since.revision",
|
|
129
|
+
"level",
|
|
130
|
+
"policy",
|
|
131
|
+
"detail"
|
|
132
|
+
] };
|
|
120
133
|
const DownloadTokenSchema = {
|
|
121
134
|
fields: ["docVersion", "mode"],
|
|
122
135
|
maxLength: 128
|
|
@@ -200,6 +213,46 @@ const AnnotationAppearancesRenderTokenSchema = {
|
|
|
200
213
|
};
|
|
201
214
|
//#endregion
|
|
202
215
|
//#region src/wire/tokens.ts
|
|
216
|
+
const encodeAnalysisToken = (input) => encodeToken(AnalysisTokenSchema, {
|
|
217
|
+
docVersion: input.docVersion,
|
|
218
|
+
"since.signature": "signatureIndex" in input.since ? input.since.signatureIndex : void 0,
|
|
219
|
+
"since.revision": "revisionIndex" in input.since ? input.since.revisionIndex : void 0,
|
|
220
|
+
level: input.exploratoryLevel,
|
|
221
|
+
policy: input.policyVersion ?? 4,
|
|
222
|
+
detail: input.detail
|
|
223
|
+
});
|
|
224
|
+
const decodeAnalysisToken = (raw) => {
|
|
225
|
+
const t = decodeToken(AnalysisTokenSchema, raw);
|
|
226
|
+
const sinceSignature = t["since.signature"];
|
|
227
|
+
const sinceRevision = t["since.revision"];
|
|
228
|
+
if (sinceSignature === void 0 === (sinceRevision === void 0)) throw new Error("analysis token needs exactly one of \"since.signature\" / \"since.revision\"");
|
|
229
|
+
return {
|
|
230
|
+
docVersion: decodePositiveInteger(t.docVersion, "docVersion"),
|
|
231
|
+
since: sinceSignature !== void 0 ? { signatureIndex: decodeNonNegativeInteger(sinceSignature, "since.signature") } : { revisionIndex: decodeNonNegativeInteger(sinceRevision, "since.revision") },
|
|
232
|
+
...t.level !== void 0 ? { exploratoryLevel: decodeModificationLevel(t.level) } : {},
|
|
233
|
+
...t.policy !== void 0 ? { policyVersion: decodePositiveInteger(t.policy, "policy") } : {},
|
|
234
|
+
...t.detail !== void 0 ? { detail: decodeDetail(t.detail) } : {}
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
function decodeDetail(raw) {
|
|
238
|
+
if (raw !== "summary" && raw !== "full") throw new Error("token field \"detail\" must be summary|full");
|
|
239
|
+
return raw;
|
|
240
|
+
}
|
|
241
|
+
const MODIFICATION_LEVELS = [
|
|
242
|
+
"none",
|
|
243
|
+
"lta",
|
|
244
|
+
"fill",
|
|
245
|
+
"annotate"
|
|
246
|
+
];
|
|
247
|
+
function decodeModificationLevel(raw) {
|
|
248
|
+
if (!MODIFICATION_LEVELS.includes(raw)) throw new Error(`token field "level" must be one of ${MODIFICATION_LEVELS.join("|")}`);
|
|
249
|
+
return raw;
|
|
250
|
+
}
|
|
251
|
+
function decodeNonNegativeInteger(raw, field) {
|
|
252
|
+
if (raw === void 0) throw new Error(`token is missing "${field}"`);
|
|
253
|
+
if (!/^(0|[1-9][0-9]*)$/.test(raw)) throw new Error(`token field "${field}" must be a non-negative integer`);
|
|
254
|
+
return Number(raw);
|
|
255
|
+
}
|
|
203
256
|
const encodeDocToken = (docVersion) => encodeToken(DocTokenSchema, { docVersion });
|
|
204
257
|
const decodeDocToken = (raw) => decodePositiveInteger(decodeToken(DocTokenSchema, raw).docVersion, "docVersion");
|
|
205
258
|
const encodeContentToken = (contentVersion) => encodeToken(ContentTokenSchema, { contentVersion });
|
|
@@ -472,6 +525,34 @@ const wirePaths = {
|
|
|
472
525
|
/** Immutable BASE catalog actions (plane-scope model): the shared-URL
|
|
473
526
|
* variant an actions-inheriting layer resolves at. */
|
|
474
527
|
docActions: (docId, actionsVersion) => `/v1/docs/${encodeURIComponent(docId)}/actions@${encodeActionsToken(actionsVersion)}`,
|
|
528
|
+
/** Immutable layer signature snapshot (base signatures + the layer's fields + protection). */
|
|
529
|
+
layerSignatures: (docId, layerName, docVersion) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures@${encodeDocToken(docVersion)}`,
|
|
530
|
+
layerSignaturesCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures`,
|
|
531
|
+
/** Immutable: the layer's working copy judged against the base, pinned by `docVersion`. */
|
|
532
|
+
layerSignaturesAnalysis: (docId, layerName, token) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/analysis@${encodeAnalysisToken(token)}`,
|
|
533
|
+
layerSignaturesAnalysisCurrent: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/analysis`,
|
|
534
|
+
/** POST (multipart envelope): author and seal a signing candidate. */
|
|
535
|
+
layerSignaturesPrepare: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/prepare`,
|
|
536
|
+
/** POST (JSON): install the CMS and publish the sealed bytes as the next base version. */
|
|
537
|
+
layerSignatureComplete: (docId, layerName, signingId) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/${encodeURIComponent(signingId)}/complete`,
|
|
538
|
+
/** DELETE: discard a pending signing. */
|
|
539
|
+
layerSignatureAbort: (docId, layerName, signingId) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/signatures/${encodeURIComponent(signingId)}`,
|
|
540
|
+
/** The document's base versions, oldest first (grows; never cached). */
|
|
541
|
+
docVersions: (docId) => `/v1/docs/${encodeURIComponent(docId)}/versions`,
|
|
542
|
+
/** Immutable: the signature snapshot of one base version. */
|
|
543
|
+
docVersionSignatures: (docId, sha256) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}`,
|
|
544
|
+
/** Immutable: a signed field's DER `/Contents` in one base version (`application/pkcs7-signature`). */
|
|
545
|
+
docVersionSignatureContents: (docId, sha256, fieldName) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}/${encodeTokenText(fieldName)}/contents`,
|
|
546
|
+
/** Immutable: the digest of a signed field's `/ByteRange` in one base version. */
|
|
547
|
+
docVersionSignatureDigest: (docId, sha256, fieldName, algorithm) => `/v1/docs/${encodeURIComponent(docId)}/versions/signatures/${sha256}/${encodeTokenText(fieldName)}/digest/${algorithm}`,
|
|
548
|
+
/** Immutable: history between two revisions of one base version. */
|
|
549
|
+
docVersionAnalysis: (docId, sha256, query) => `/v1/docs/${encodeURIComponent(docId)}/versions/analysis/${sha256}?${analysisQueryString(query)}`,
|
|
550
|
+
/** Immutable: the bytes of one base version. */
|
|
551
|
+
docVersionDownload: (docId, sha256) => `/v1/docs/${encodeURIComponent(docId)}/versions/download/${sha256}`,
|
|
552
|
+
/** Immutable: the byte prefix `[0, end)` of revision `index` of one base version. */
|
|
553
|
+
docVersionRevision: (docId, sha256, index) => `/v1/docs/${encodeURIComponent(docId)}/versions/revisions/${sha256}/${index}`,
|
|
554
|
+
/** POST (multipart envelope): draw a PDF page into an unsigned signature field's widgets. */
|
|
555
|
+
layerFormFieldSignatureAppearance: (docId, layerName, fieldKey) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/form/fields/${encodeURIComponent(fieldKey)}/signature-appearance`,
|
|
475
556
|
/** POST: rewrite the document Info dict for the layer (metadata edit). */
|
|
476
557
|
layerMetadataUpdate: (docId, layerName) => `/v1/docs/${encodeURIComponent(docId)}/layers/${encodeURIComponent(layerName)}/metadata`,
|
|
477
558
|
/**
|
|
@@ -682,15 +763,16 @@ const wirePaths = {
|
|
|
682
763
|
*/
|
|
683
764
|
docWarm: "/v1/warm"
|
|
684
765
|
};
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
766
|
+
function analysisQueryString(query) {
|
|
767
|
+
const params = new URLSearchParams();
|
|
768
|
+
if ("signatureIndex" in query.since) params.set("since.signature", String(query.since.signatureIndex));
|
|
769
|
+
else params.set("since.revision", String(query.since.revisionIndex));
|
|
770
|
+
if (query.until !== void 0) params.set("until", String(query.until));
|
|
771
|
+
if (query.exploratoryLevel !== void 0) params.set("level", query.exploratoryLevel);
|
|
772
|
+
if (query.detail !== void 0) params.set("detail", query.detail);
|
|
773
|
+
params.set("policy", String(4));
|
|
774
|
+
return params.toString();
|
|
775
|
+
}
|
|
694
776
|
const wireTemplates = {
|
|
695
777
|
docHead: "/v1/docs/:docId/head",
|
|
696
778
|
layerManifest: "/v1/docs/:docId/layers/:layerName/manifest",
|
|
@@ -705,6 +787,7 @@ const wireTemplates = {
|
|
|
705
787
|
layerForm: "/v1/docs/:docId/layers/:layerName/form",
|
|
706
788
|
layerFormFieldValue: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/value",
|
|
707
789
|
layerFormFieldReset: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/reset",
|
|
790
|
+
layerFormFieldSignatureAppearance: "/v1/docs/:docId/layers/:layerName/form/fields/:fieldKey/signature-appearance",
|
|
708
791
|
layerFormData: "/v1/docs/:docId/layers/:layerName/form/data",
|
|
709
792
|
layerPagesMove: "/v1/docs/:docId/layers/:layerName/pages/move",
|
|
710
793
|
layerPagesRotate: "/v1/docs/:docId/layers/:layerName/pages/rotate",
|
|
@@ -716,7 +799,19 @@ const wireTemplates = {
|
|
|
716
799
|
layerPagesInsertBlank: "/v1/docs/:docId/layers/:layerName/pages/insert-blank",
|
|
717
800
|
layerPagesExtract: "/v1/docs/:docId/layers/:layerName/pages/extract",
|
|
718
801
|
layerRedactionsApply: "/v1/docs/:docId/layers/:layerName/redactions/apply",
|
|
719
|
-
layerDownload: "/v1/docs/:docId/layers/:layerName/download"
|
|
802
|
+
layerDownload: "/v1/docs/:docId/layers/:layerName/download",
|
|
803
|
+
layerSignatures: "/v1/docs/:docId/layers/:layerName/signatures",
|
|
804
|
+
layerSignaturesAnalysis: "/v1/docs/:docId/layers/:layerName/signatures/analysis",
|
|
805
|
+
layerSignaturesPrepare: "/v1/docs/:docId/layers/:layerName/signatures/prepare",
|
|
806
|
+
layerSignatureComplete: "/v1/docs/:docId/layers/:layerName/signatures/:signingId/complete",
|
|
807
|
+
layerSignatureAbort: "/v1/docs/:docId/layers/:layerName/signatures/:signingId",
|
|
808
|
+
docVersions: "/v1/docs/:docId/versions",
|
|
809
|
+
docVersionSignatures: "/v1/docs/:docId/versions/signatures/:sha",
|
|
810
|
+
docVersionSignatureContents: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/contents",
|
|
811
|
+
docVersionSignatureDigest: "/v1/docs/:docId/versions/signatures/:sha/:fieldKey/digest/:algorithm",
|
|
812
|
+
docVersionAnalysis: "/v1/docs/:docId/versions/analysis/:sha",
|
|
813
|
+
docVersionDownload: "/v1/docs/:docId/versions/download/:sha",
|
|
814
|
+
docVersionRevision: "/v1/docs/:docId/versions/revisions/:sha/:index"
|
|
720
815
|
};
|
|
721
816
|
//#endregion
|
|
722
817
|
//#region src/wire/resources.ts
|
|
@@ -1103,6 +1198,97 @@ const DOC_RESOURCES = {
|
|
|
1103
1198
|
},
|
|
1104
1199
|
routeKind: "versioned-read",
|
|
1105
1200
|
cdnCacheable: true
|
|
1201
|
+
},
|
|
1202
|
+
"layer-signatures": {
|
|
1203
|
+
id: "layer-signatures",
|
|
1204
|
+
pathPattern: "/v1/docs/{docId}/layers/{layerName}/signatures@*",
|
|
1205
|
+
resolvePathPattern: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures@*`,
|
|
1206
|
+
pathPrefix: "/v1/docs/{docId}/layers/{layerName}/signatures@",
|
|
1207
|
+
resolvePathPrefix: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures@`,
|
|
1208
|
+
requirement: {
|
|
1209
|
+
kind: "single",
|
|
1210
|
+
capability: "doc.forms.read"
|
|
1211
|
+
},
|
|
1212
|
+
routeKind: "versioned-read",
|
|
1213
|
+
cdnCacheable: true
|
|
1214
|
+
},
|
|
1215
|
+
"layer-signatures-analysis": {
|
|
1216
|
+
id: "layer-signatures-analysis",
|
|
1217
|
+
pathPattern: "/v1/docs/{docId}/layers/{layerName}/signatures/analysis@*",
|
|
1218
|
+
resolvePathPattern: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures/analysis@*`,
|
|
1219
|
+
pathPrefix: "/v1/docs/{docId}/layers/{layerName}/signatures/analysis@",
|
|
1220
|
+
resolvePathPrefix: (docId, layerName = "default") => `/v1/docs/${docId}/layers/${layerName}/signatures/analysis@`,
|
|
1221
|
+
requirement: {
|
|
1222
|
+
kind: "single",
|
|
1223
|
+
capability: "doc.forms.read"
|
|
1224
|
+
},
|
|
1225
|
+
routeKind: "versioned-read",
|
|
1226
|
+
cdnCacheable: true
|
|
1227
|
+
},
|
|
1228
|
+
versions: {
|
|
1229
|
+
id: "versions",
|
|
1230
|
+
pathPattern: "/v1/docs/{docId}/versions",
|
|
1231
|
+
resolvePathPattern: (docId) => `/v1/docs/${docId}/versions`,
|
|
1232
|
+
pathPrefix: "/v1/docs/{docId}/versions",
|
|
1233
|
+
resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions`,
|
|
1234
|
+
requirement: {
|
|
1235
|
+
kind: "single",
|
|
1236
|
+
capability: "doc.open"
|
|
1237
|
+
},
|
|
1238
|
+
routeKind: "origin",
|
|
1239
|
+
cdnCacheable: false
|
|
1240
|
+
},
|
|
1241
|
+
"version-signatures": {
|
|
1242
|
+
id: "version-signatures",
|
|
1243
|
+
pathPattern: "/v1/docs/{docId}/versions/signatures/*",
|
|
1244
|
+
resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/signatures/*`,
|
|
1245
|
+
pathPrefix: "/v1/docs/{docId}/versions/signatures/",
|
|
1246
|
+
resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/signatures/`,
|
|
1247
|
+
requirement: {
|
|
1248
|
+
kind: "single",
|
|
1249
|
+
capability: "doc.forms.read"
|
|
1250
|
+
},
|
|
1251
|
+
routeKind: "versioned-read",
|
|
1252
|
+
cdnCacheable: true
|
|
1253
|
+
},
|
|
1254
|
+
"version-analysis": {
|
|
1255
|
+
id: "version-analysis",
|
|
1256
|
+
pathPattern: "/v1/docs/{docId}/versions/analysis/*",
|
|
1257
|
+
resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/analysis/*`,
|
|
1258
|
+
pathPrefix: "/v1/docs/{docId}/versions/analysis/",
|
|
1259
|
+
resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/analysis/`,
|
|
1260
|
+
requirement: {
|
|
1261
|
+
kind: "single",
|
|
1262
|
+
capability: "doc.forms.read"
|
|
1263
|
+
},
|
|
1264
|
+
routeKind: "versioned-read",
|
|
1265
|
+
cdnCacheable: true
|
|
1266
|
+
},
|
|
1267
|
+
"version-download": {
|
|
1268
|
+
id: "version-download",
|
|
1269
|
+
pathPattern: "/v1/docs/{docId}/versions/download/*",
|
|
1270
|
+
resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/download/*`,
|
|
1271
|
+
pathPrefix: "/v1/docs/{docId}/versions/download/",
|
|
1272
|
+
resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/download/`,
|
|
1273
|
+
requirement: {
|
|
1274
|
+
kind: "single",
|
|
1275
|
+
capability: "doc.download"
|
|
1276
|
+
},
|
|
1277
|
+
routeKind: "versioned-read",
|
|
1278
|
+
cdnCacheable: true
|
|
1279
|
+
},
|
|
1280
|
+
"version-revisions": {
|
|
1281
|
+
id: "version-revisions",
|
|
1282
|
+
pathPattern: "/v1/docs/{docId}/versions/revisions/*",
|
|
1283
|
+
resolvePathPattern: (docId) => `/v1/docs/${docId}/versions/revisions/*`,
|
|
1284
|
+
pathPrefix: "/v1/docs/{docId}/versions/revisions/",
|
|
1285
|
+
resolvePathPrefix: (docId) => `/v1/docs/${docId}/versions/revisions/`,
|
|
1286
|
+
requirement: {
|
|
1287
|
+
kind: "single",
|
|
1288
|
+
capability: "doc.download"
|
|
1289
|
+
},
|
|
1290
|
+
routeKind: "versioned-read",
|
|
1291
|
+
cdnCacheable: true
|
|
1106
1292
|
}
|
|
1107
1293
|
};
|
|
1108
1294
|
/**
|
|
@@ -1468,7 +1654,9 @@ exports.AttachmentCreateResultSchema = require_schemas.AttachmentCreateResultSch
|
|
|
1468
1654
|
exports.AttachmentDeleteResultSchema = require_schemas.AttachmentDeleteResultSchema;
|
|
1469
1655
|
exports.AttachmentFileInfoSchema = require_schemas.AttachmentFileInfoSchema;
|
|
1470
1656
|
exports.AttachmentsCacheSchema = require_schemas.AttachmentsCacheSchema;
|
|
1657
|
+
exports.BaseVersionInfoSchema = require_schemas.BaseVersionInfoSchema;
|
|
1471
1658
|
exports.BlendModeSchema = require_schemas.BlendModeSchema;
|
|
1659
|
+
exports.ByteRangeSchema = require_schemas.ByteRangeSchema;
|
|
1472
1660
|
exports.CacheDeltaSchema = require_schemas.CacheDeltaSchema;
|
|
1473
1661
|
exports.CachePinsSchema = require_schemas.CachePinsSchema;
|
|
1474
1662
|
exports.CalloutLineSchema = require_schemas.CalloutLineSchema;
|
|
@@ -1476,6 +1664,7 @@ exports.CaretDTOSchema = require_schemas.CaretDTOSchema;
|
|
|
1476
1664
|
exports.CaretDraftSchema = require_schemas.CaretDraftSchema;
|
|
1477
1665
|
exports.CaretIntentSchema = require_schemas.CaretIntentSchema;
|
|
1478
1666
|
exports.CaretPatchSchema = require_schemas.CaretPatchSchema;
|
|
1667
|
+
exports.ChangeAnalysisSchema = require_schemas.ChangeAnalysisSchema;
|
|
1479
1668
|
exports.CircleDTOSchema = require_schemas.CircleDTOSchema;
|
|
1480
1669
|
exports.CircleDraftSchema = require_schemas.CircleDraftSchema;
|
|
1481
1670
|
exports.CirclePatchSchema = require_schemas.CirclePatchSchema;
|
|
@@ -1483,15 +1672,21 @@ exports.ColorSchema = require_schemas.ColorSchema;
|
|
|
1483
1672
|
exports.ContentTokenSchema = ContentTokenSchema;
|
|
1484
1673
|
exports.DEFAULT_LAYER_NAME = DEFAULT_LAYER_NAME;
|
|
1485
1674
|
exports.DOC_RESOURCES = DOC_RESOURCES;
|
|
1675
|
+
exports.DigestAlgorithmSchema = require_schemas.DigestAlgorithmSchema;
|
|
1486
1676
|
exports.DocTokenSchema = DocTokenSchema;
|
|
1487
1677
|
exports.DocumentActionsSnapshotSchema = require_schemas.DocumentActionsSnapshotSchema;
|
|
1488
1678
|
exports.DocumentHeadSchema = require_schemas.DocumentHeadSchema;
|
|
1489
1679
|
exports.DocumentManifestSchema = require_schemas.DocumentManifestSchema;
|
|
1490
1680
|
exports.DocumentMetadataSchema = require_schemas.DocumentMetadataSchema;
|
|
1681
|
+
exports.DocumentProtectionSchema = require_schemas.DocumentProtectionSchema;
|
|
1491
1682
|
exports.DocumentSecurityStateSchema = require_schemas.DocumentSecurityStateSchema;
|
|
1683
|
+
exports.DocumentVersionRefSchema = require_schemas.DocumentVersionRefSchema;
|
|
1684
|
+
exports.DocumentVersionSchema = require_schemas.DocumentVersionSchema;
|
|
1685
|
+
exports.DocumentVersionsSchema = require_schemas.DocumentVersionsSchema;
|
|
1492
1686
|
exports.EmbeddedFileItemSchema = require_schemas.EmbeddedFileItemSchema;
|
|
1493
1687
|
exports.EmbeddedFileRefSchema = require_schemas.EmbeddedFileRefSchema;
|
|
1494
1688
|
exports.EngineErrorPayloadSchema = require_schemas.EngineErrorPayloadSchema;
|
|
1689
|
+
exports.FieldLockSpecSchema = require_schemas.FieldLockSpecSchema;
|
|
1495
1690
|
exports.FileAttachmentDTOSchema = require_schemas.FileAttachmentDTOSchema;
|
|
1496
1691
|
exports.FileAttachmentIconSchema = require_schemas.FileAttachmentIconSchema;
|
|
1497
1692
|
exports.FileAttachmentPatchSchema = require_schemas.FileAttachmentPatchSchema;
|
|
@@ -1534,6 +1729,7 @@ exports.InkIntentSchema = require_schemas.InkIntentSchema;
|
|
|
1534
1729
|
exports.InkListSchema = require_schemas.InkListSchema;
|
|
1535
1730
|
exports.InkPatchSchema = require_schemas.InkPatchSchema;
|
|
1536
1731
|
exports.KIND_BY_SUBTYPE = require_schemas.KIND_BY_SUBTYPE;
|
|
1732
|
+
exports.LayerAnalysisQuerySchema = require_schemas.LayerAnalysisQuerySchema;
|
|
1537
1733
|
exports.LayerScopesSchema = require_schemas.LayerScopesSchema;
|
|
1538
1734
|
exports.LayoutTokenSchema = LayoutTokenSchema;
|
|
1539
1735
|
exports.LineDTOSchema = require_schemas.LineDTOSchema;
|
|
@@ -1549,6 +1745,7 @@ exports.ManifestPageSchema = require_schemas.ManifestPageSchema;
|
|
|
1549
1745
|
exports.MetadataPatchSchema = require_schemas.MetadataPatchSchema;
|
|
1550
1746
|
exports.MetadataTokenSchema = MetadataTokenSchema;
|
|
1551
1747
|
exports.MetadataUpdateResultSchema = require_schemas.MetadataUpdateResultSchema;
|
|
1748
|
+
exports.ModificationLevelSchema = require_schemas.ModificationLevelSchema;
|
|
1552
1749
|
exports.MutationMetaSchema = require_schemas.MutationMetaSchema;
|
|
1553
1750
|
exports.NamedPageEntrySchema = require_schemas.NamedPageEntrySchema;
|
|
1554
1751
|
exports.NoteIconSchema = require_schemas.NoteIconSchema;
|
|
@@ -1593,6 +1790,7 @@ exports.PdfPointSchema = require_schemas.PdfPointSchema;
|
|
|
1593
1790
|
exports.PdfQuadSchema = require_schemas.PdfQuadSchema;
|
|
1594
1791
|
exports.PdfRectDifferencesSchema = require_schemas.PdfRectDifferencesSchema;
|
|
1595
1792
|
exports.PdfRectSchema = require_schemas.PdfRectSchema;
|
|
1793
|
+
exports.PdfRevisionSchema = require_schemas.PdfRevisionSchema;
|
|
1596
1794
|
exports.PdfRotationSchema = require_schemas.PdfRotationSchema;
|
|
1597
1795
|
exports.PdfSaveModeSchema = require_schemas.PdfSaveModeSchema;
|
|
1598
1796
|
exports.PdfSizeSchema = require_schemas.PdfSizeSchema;
|
|
@@ -1618,6 +1816,15 @@ exports.SearchRequestSchema = require_schemas.SearchRequestSchema;
|
|
|
1618
1816
|
exports.SearchSliceSchema = require_schemas.SearchSliceSchema;
|
|
1619
1817
|
exports.SearchSnippetSchema = require_schemas.SearchSnippetSchema;
|
|
1620
1818
|
exports.SearchTokenSchema = SearchTokenSchema;
|
|
1819
|
+
exports.SignatureAbortResultSchema = require_schemas.SignatureAbortResultSchema;
|
|
1820
|
+
exports.SignatureAppearanceBodySchema = require_schemas.SignatureAppearanceBodySchema;
|
|
1821
|
+
exports.SignatureCompleteBodySchema = require_schemas.SignatureCompleteBodySchema;
|
|
1822
|
+
exports.SignatureCompleteResultSchema = require_schemas.SignatureCompleteResultSchema;
|
|
1823
|
+
exports.SignatureDTOSchema = require_schemas.SignatureDTOSchema;
|
|
1824
|
+
exports.SignaturePrepareBodySchema = require_schemas.SignaturePrepareBodySchema;
|
|
1825
|
+
exports.SignaturePreparedWireSchema = require_schemas.SignaturePreparedWireSchema;
|
|
1826
|
+
exports.SignatureSeedValueSchema = require_schemas.SignatureSeedValueSchema;
|
|
1827
|
+
exports.SignatureSnapshotSchema = require_schemas.SignatureSnapshotSchema;
|
|
1621
1828
|
exports.SquareDTOSchema = require_schemas.SquareDTOSchema;
|
|
1622
1829
|
exports.SquareDraftSchema = require_schemas.SquareDraftSchema;
|
|
1623
1830
|
exports.SquarePatchSchema = require_schemas.SquarePatchSchema;
|
|
@@ -1643,11 +1850,14 @@ exports.UnderlinePatchSchema = require_schemas.UnderlinePatchSchema;
|
|
|
1643
1850
|
exports.UnsupportedDTOSchema = require_schemas.UnsupportedDTOSchema;
|
|
1644
1851
|
exports.UnsupportedDraftSchema = require_schemas.UnsupportedDraftSchema;
|
|
1645
1852
|
exports.UnsupportedPatchSchema = require_schemas.UnsupportedPatchSchema;
|
|
1853
|
+
exports.VersionAnalysisQuerySchema = require_schemas.VersionAnalysisQuerySchema;
|
|
1646
1854
|
exports.WeakAnnotationSessionPagesRequestSchema = require_schemas.WeakAnnotationSessionPagesRequestSchema;
|
|
1647
1855
|
exports.WeakAnnotationSessionResponseSchema = require_schemas.WeakAnnotationSessionResponseSchema;
|
|
1648
1856
|
exports.WidgetAppearanceSchema = require_schemas.WidgetAppearanceSchema;
|
|
1649
1857
|
exports.WidgetPlacementSchema = require_schemas.WidgetPlacementSchema;
|
|
1650
1858
|
exports.WireAttachmentFileSchema = require_schemas.WireAttachmentFileSchema;
|
|
1859
|
+
exports.analysisQueryString = analysisQueryString;
|
|
1860
|
+
exports.analyzeInputFromQuery = require_schemas.analyzeInputFromQuery;
|
|
1651
1861
|
exports.annotationAppearancesImageOptionsToToken = annotationAppearancesImageOptionsToToken;
|
|
1652
1862
|
exports.annotationAppearancesImageOptionsToWire = annotationAppearancesImageOptionsToWire;
|
|
1653
1863
|
exports.annotationRenderOptionsFromImageOptions = annotationRenderOptionsFromImageOptions;
|
|
@@ -1655,6 +1865,7 @@ exports.applyCdnAccess = applyCdnAccess;
|
|
|
1655
1865
|
exports.cdnCoverageForScope = cdnCoverageForScope;
|
|
1656
1866
|
exports.checkResourceAccess = checkResourceAccess;
|
|
1657
1867
|
exports.decodeActionsToken = decodeActionsToken;
|
|
1868
|
+
exports.decodeAnalysisToken = decodeAnalysisToken;
|
|
1658
1869
|
exports.decodeAnnotationAppearancesRenderToken = decodeAnnotationAppearancesRenderToken;
|
|
1659
1870
|
exports.decodeAnnotationToken = decodeAnnotationToken;
|
|
1660
1871
|
exports.decodeAnnotationsAllToken = decodeAnnotationsAllToken;
|
|
@@ -1664,11 +1875,13 @@ exports.decodeDocToken = decodeDocToken;
|
|
|
1664
1875
|
exports.decodeDownloadToken = decodeDownloadToken;
|
|
1665
1876
|
exports.decodeLayoutToken = decodeLayoutToken;
|
|
1666
1877
|
exports.decodeMetadataToken = decodeMetadataToken;
|
|
1878
|
+
exports.decodePrepared = require_schemas.decodePrepared;
|
|
1667
1879
|
exports.decodeRenderToken = decodeRenderToken;
|
|
1668
1880
|
exports.decodeSearchToken = decodeSearchToken;
|
|
1669
1881
|
exports.decodeToken = decodeToken;
|
|
1670
1882
|
exports.decodeTokenText = decodeTokenText;
|
|
1671
1883
|
exports.encodeActionsToken = encodeActionsToken;
|
|
1884
|
+
exports.encodeAnalysisToken = encodeAnalysisToken;
|
|
1672
1885
|
exports.encodeAnnotationAppearancesRenderToken = encodeAnnotationAppearancesRenderToken;
|
|
1673
1886
|
exports.encodeAnnotationToken = encodeAnnotationToken;
|
|
1674
1887
|
exports.encodeAnnotationsAllToken = encodeAnnotationsAllToken;
|
|
@@ -1678,15 +1891,18 @@ exports.encodeDocToken = encodeDocToken;
|
|
|
1678
1891
|
exports.encodeDownloadToken = encodeDownloadToken;
|
|
1679
1892
|
exports.encodeLayoutToken = encodeLayoutToken;
|
|
1680
1893
|
exports.encodeMetadataToken = encodeMetadataToken;
|
|
1894
|
+
exports.encodePrepared = require_schemas.encodePrepared;
|
|
1681
1895
|
exports.encodeRenderToken = encodeRenderToken;
|
|
1682
1896
|
exports.encodeSearchToken = encodeSearchToken;
|
|
1683
1897
|
exports.encodeToken = encodeToken;
|
|
1684
1898
|
exports.encodeTokenText = encodeTokenText;
|
|
1685
1899
|
exports.flatten = flatten;
|
|
1900
|
+
exports.fromBase64 = require_schemas.fromBase64;
|
|
1686
1901
|
exports.pageRenderOptionsFromImageOptions = pageRenderOptionsFromImageOptions;
|
|
1687
1902
|
exports.renderImageOptionsToToken = renderImageOptionsToToken;
|
|
1688
1903
|
exports.renderImageOptionsToWire = renderImageOptionsToWire;
|
|
1689
1904
|
exports.resolveResourceIdForPath = resolveResourceIdForPath;
|
|
1905
|
+
exports.toBase64 = require_schemas.toBase64;
|
|
1690
1906
|
exports.unflatten = unflatten;
|
|
1691
1907
|
exports.wirePaths = wirePaths;
|
|
1692
1908
|
exports.wireTemplates = wireTemplates;
|