@cloudpdf/contract 3.0.0-next.11 → 3.0.0-next.12
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/index.d.ts +370 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -1
- package/dist/openapi.js +72 -0
- package/dist/openapi.js.map +1 -1
- package/openapi.json +1543 -376
- package/package.json +2 -2
package/dist/openapi.js
CHANGED
|
@@ -1040,6 +1040,42 @@ var docOperations = {
|
|
|
1040
1040
|
404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
|
|
1041
1041
|
}
|
|
1042
1042
|
},
|
|
1043
|
+
"doc.annotations.flatten": {
|
|
1044
|
+
operationId: "doc.annotations.flatten",
|
|
1045
|
+
title: "Flatten annotations",
|
|
1046
|
+
summary: "Flatten a chosen set of one page's annotations into its content \u2014 pages.flatten for a selection. Painted annotations are removed; ineligible ones report skipped.",
|
|
1047
|
+
method: "POST",
|
|
1048
|
+
path: wireTemplates.layerAnnotationItemsFlatten,
|
|
1049
|
+
credentials: docCredentials,
|
|
1050
|
+
scope: [],
|
|
1051
|
+
docCapabilities: ["doc.pages.modify", "doc.annotate.modify"],
|
|
1052
|
+
requestHeaders: [documentPasswordHeader],
|
|
1053
|
+
params: DocPageParamsSchema,
|
|
1054
|
+
body: { contentType: "application/json", schema: looseJson },
|
|
1055
|
+
responses: {
|
|
1056
|
+
200: { contentType: "application/json", schema: MutationResponseSchema },
|
|
1057
|
+
400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
|
|
1058
|
+
404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"doc.annotations.exportAppearance": {
|
|
1062
|
+
operationId: "doc.annotations.exportAppearance",
|
|
1063
|
+
title: "Export annotation appearances",
|
|
1064
|
+
summary: "The chosen annotations' appearances as one single-page PDF sized to their union rect \u2014 vector, positions preserved. A read; the source is untouched.",
|
|
1065
|
+
method: "POST",
|
|
1066
|
+
path: wireTemplates.layerAnnotationItemsAppearance,
|
|
1067
|
+
credentials: docCredentials,
|
|
1068
|
+
scope: [],
|
|
1069
|
+
docCapabilities: ["doc.download"],
|
|
1070
|
+
requestHeaders: [documentPasswordHeader],
|
|
1071
|
+
params: DocPageParamsSchema,
|
|
1072
|
+
body: { contentType: "application/json", schema: looseJson },
|
|
1073
|
+
responses: {
|
|
1074
|
+
200: { contentType: "application/pdf" },
|
|
1075
|
+
400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
|
|
1076
|
+
404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1043
1079
|
"doc.forms.get": {
|
|
1044
1080
|
operationId: "doc.forms.get",
|
|
1045
1081
|
title: "Get form snapshot",
|
|
@@ -1179,6 +1215,42 @@ var docOperations = {
|
|
|
1179
1215
|
404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
|
|
1180
1216
|
}
|
|
1181
1217
|
},
|
|
1218
|
+
"doc.pages.setName": {
|
|
1219
|
+
operationId: "doc.pages.setName",
|
|
1220
|
+
title: "Set page name",
|
|
1221
|
+
summary: "Register or rename a /Names /Pages entry (a named page). A page-structure mutation: the layout version advances.",
|
|
1222
|
+
method: "POST",
|
|
1223
|
+
path: wireTemplates.layerPagesNames,
|
|
1224
|
+
credentials: docCredentials,
|
|
1225
|
+
scope: [],
|
|
1226
|
+
docCapabilities: ["doc.pages.assemble"],
|
|
1227
|
+
requestHeaders: [documentPasswordHeader],
|
|
1228
|
+
params: DocLayerParamsSchema,
|
|
1229
|
+
body: { contentType: "application/json", schema: looseJson },
|
|
1230
|
+
responses: {
|
|
1231
|
+
200: { contentType: "application/json", schema: MutationResponseSchema },
|
|
1232
|
+
400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
|
|
1233
|
+
404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
|
|
1234
|
+
}
|
|
1235
|
+
},
|
|
1236
|
+
"doc.pages.removeName": {
|
|
1237
|
+
operationId: "doc.pages.removeName",
|
|
1238
|
+
title: "Remove page name",
|
|
1239
|
+
summary: "Remove a /Names /Pages entry; the page itself stays.",
|
|
1240
|
+
method: "POST",
|
|
1241
|
+
path: wireTemplates.layerPagesNamesDelete,
|
|
1242
|
+
credentials: docCredentials,
|
|
1243
|
+
scope: [],
|
|
1244
|
+
docCapabilities: ["doc.pages.assemble"],
|
|
1245
|
+
requestHeaders: [documentPasswordHeader],
|
|
1246
|
+
params: DocLayerParamsSchema,
|
|
1247
|
+
body: { contentType: "application/json", schema: looseJson },
|
|
1248
|
+
responses: {
|
|
1249
|
+
200: { contentType: "application/json", schema: MutationResponseSchema },
|
|
1250
|
+
400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
|
|
1251
|
+
404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
|
|
1252
|
+
}
|
|
1253
|
+
},
|
|
1182
1254
|
"doc.pages.flatten": {
|
|
1183
1255
|
operationId: "doc.pages.flatten",
|
|
1184
1256
|
title: "Flatten pages",
|