@cloudpdf/contract 3.0.0-next.13 → 3.0.0-next.14

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/openapi.js CHANGED
@@ -4,6 +4,11 @@ import { z as z2 } from "zod";
4
4
  import { ignoreOverride, zodToJsonSchema } from "zod-to-json-schema";
5
5
 
6
6
  // src/index.ts
7
+ import {
8
+ PageScaleInputSchema,
9
+ PageScaleResultSchema,
10
+ PageMeasurementViewportSchema
11
+ } from "@embedpdf/engine-core/wire";
7
12
  import {
8
13
  AnnotationListPageSnapshotSchema,
9
14
  AnnotationListSnapshotAllPagesSchema,
@@ -1404,6 +1409,40 @@ var docOperations = {
1404
1409
  404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1405
1410
  }
1406
1411
  },
1412
+ "doc.pages.viewports": {
1413
+ operationId: "doc.pages.viewports",
1414
+ title: "Read measurement viewports",
1415
+ summary: "Read page measurement viewports in drawing order from the current layer.",
1416
+ method: "GET",
1417
+ path: wireTemplates.layerPageViewports,
1418
+ credentials: docCredentials,
1419
+ scope: [],
1420
+ docCapabilities: ["doc.open"],
1421
+ requestHeaders: [documentPasswordHeader],
1422
+ params: DocPageParamsSchema,
1423
+ responses: {
1424
+ 200: { contentType: "application/json", schema: z.array(PageMeasurementViewportSchema) },
1425
+ 404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1426
+ }
1427
+ },
1428
+ "doc.pages.setScale": {
1429
+ operationId: "doc.pages.setScale",
1430
+ title: "Set page measurement scale",
1431
+ summary: "Upsert or remove EmbedPDF calibration while preserving foreign viewports. Existing annotation scales are unchanged.",
1432
+ method: "PUT",
1433
+ path: wireTemplates.layerPageScale,
1434
+ credentials: docCredentials,
1435
+ scope: [],
1436
+ docCapabilities: ["doc.annotate.modify"],
1437
+ requestHeaders: [documentPasswordHeader],
1438
+ params: DocPageParamsSchema,
1439
+ body: { contentType: "application/json", schema: PageScaleInputSchema },
1440
+ responses: {
1441
+ 200: { contentType: "application/json", schema: PageScaleResultSchema },
1442
+ 400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
1443
+ 404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1444
+ }
1445
+ },
1407
1446
  "doc.pages.move": {
1408
1447
  operationId: "doc.pages.move",
1409
1448
  title: "Move pages",