@cloudpdf/contract 3.0.0-next.10 → 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 CHANGED
@@ -6046,6 +6046,99 @@ declare const docOperations: {
6046
6046
  };
6047
6047
  };
6048
6048
  };
6049
+ readonly 'doc.annotations.flatten': {
6050
+ readonly operationId: "doc.annotations.flatten";
6051
+ readonly title: "Flatten annotations";
6052
+ readonly summary: "Flatten a chosen set of one page's annotations into its content — pages.flatten for a selection. Painted annotations are removed; ineligible ones report skipped.";
6053
+ readonly method: "POST";
6054
+ readonly path: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/flatten";
6055
+ readonly credentials: readonly ["api-token", "doc-jwt"];
6056
+ readonly scope: readonly [];
6057
+ readonly docCapabilities: readonly ["doc.pages.modify", "doc.annotate.modify"];
6058
+ readonly requestHeaders: readonly [AdminOperationHeader];
6059
+ readonly params: z.ZodObject<{
6060
+ docId: z.ZodString;
6061
+ } & {
6062
+ layerName: z.ZodString;
6063
+ } & {
6064
+ pon: z.ZodNumber;
6065
+ }, "strip", z.ZodTypeAny, {
6066
+ docId: string;
6067
+ layerName: string;
6068
+ pon: number;
6069
+ }, {
6070
+ docId: string;
6071
+ layerName: string;
6072
+ pon: number;
6073
+ }>;
6074
+ readonly body: {
6075
+ readonly contentType: "application/json";
6076
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6077
+ };
6078
+ readonly responses: {
6079
+ readonly 200: {
6080
+ readonly contentType: "application/json";
6081
+ readonly schema: z.ZodObject<{
6082
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6083
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6084
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6085
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6086
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6087
+ }, z.ZodTypeAny, "passthrough">>;
6088
+ };
6089
+ readonly 400: {
6090
+ readonly contentType: "application/json";
6091
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6092
+ };
6093
+ readonly 404: {
6094
+ readonly contentType: "application/json";
6095
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6096
+ };
6097
+ };
6098
+ };
6099
+ readonly 'doc.annotations.exportAppearance': {
6100
+ readonly operationId: "doc.annotations.exportAppearance";
6101
+ readonly title: "Export annotation appearances";
6102
+ readonly summary: "The chosen annotations' appearances as one single-page PDF sized to their union rect — vector, positions preserved. A read; the source is untouched.";
6103
+ readonly method: "POST";
6104
+ readonly path: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/appearance";
6105
+ readonly credentials: readonly ["api-token", "doc-jwt"];
6106
+ readonly scope: readonly [];
6107
+ readonly docCapabilities: readonly ["doc.download"];
6108
+ readonly requestHeaders: readonly [AdminOperationHeader];
6109
+ readonly params: z.ZodObject<{
6110
+ docId: z.ZodString;
6111
+ } & {
6112
+ layerName: z.ZodString;
6113
+ } & {
6114
+ pon: z.ZodNumber;
6115
+ }, "strip", z.ZodTypeAny, {
6116
+ docId: string;
6117
+ layerName: string;
6118
+ pon: number;
6119
+ }, {
6120
+ docId: string;
6121
+ layerName: string;
6122
+ pon: number;
6123
+ }>;
6124
+ readonly body: {
6125
+ readonly contentType: "application/json";
6126
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6127
+ };
6128
+ readonly responses: {
6129
+ readonly 200: {
6130
+ readonly contentType: "application/pdf";
6131
+ };
6132
+ readonly 400: {
6133
+ readonly contentType: "application/json";
6134
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6135
+ };
6136
+ readonly 404: {
6137
+ readonly contentType: "application/json";
6138
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6139
+ };
6140
+ };
6141
+ };
6049
6142
  readonly 'doc.forms.get': {
6050
6143
  readonly operationId: "doc.forms.get";
6051
6144
  readonly title: "Get form snapshot";
@@ -6392,6 +6485,98 @@ declare const docOperations: {
6392
6485
  };
6393
6486
  };
6394
6487
  };
6488
+ readonly 'doc.pages.setName': {
6489
+ readonly operationId: "doc.pages.setName";
6490
+ readonly title: "Set page name";
6491
+ readonly summary: "Register or rename a /Names /Pages entry (a named page). A page-structure mutation: the layout version advances.";
6492
+ readonly method: "POST";
6493
+ readonly path: "/v1/docs/:docId/layers/:layerName/pages/names";
6494
+ readonly credentials: readonly ["api-token", "doc-jwt"];
6495
+ readonly scope: readonly [];
6496
+ readonly docCapabilities: readonly ["doc.pages.assemble"];
6497
+ readonly requestHeaders: readonly [AdminOperationHeader];
6498
+ readonly params: z.ZodObject<{
6499
+ docId: z.ZodString;
6500
+ } & {
6501
+ layerName: z.ZodString;
6502
+ }, "strip", z.ZodTypeAny, {
6503
+ docId: string;
6504
+ layerName: string;
6505
+ }, {
6506
+ docId: string;
6507
+ layerName: string;
6508
+ }>;
6509
+ readonly body: {
6510
+ readonly contentType: "application/json";
6511
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6512
+ };
6513
+ readonly responses: {
6514
+ readonly 200: {
6515
+ readonly contentType: "application/json";
6516
+ readonly schema: z.ZodObject<{
6517
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6518
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6519
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6520
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6521
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6522
+ }, z.ZodTypeAny, "passthrough">>;
6523
+ };
6524
+ readonly 400: {
6525
+ readonly contentType: "application/json";
6526
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6527
+ };
6528
+ readonly 404: {
6529
+ readonly contentType: "application/json";
6530
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6531
+ };
6532
+ };
6533
+ };
6534
+ readonly 'doc.pages.removeName': {
6535
+ readonly operationId: "doc.pages.removeName";
6536
+ readonly title: "Remove page name";
6537
+ readonly summary: "Remove a /Names /Pages entry; the page itself stays.";
6538
+ readonly method: "POST";
6539
+ readonly path: "/v1/docs/:docId/layers/:layerName/pages/names/delete";
6540
+ readonly credentials: readonly ["api-token", "doc-jwt"];
6541
+ readonly scope: readonly [];
6542
+ readonly docCapabilities: readonly ["doc.pages.assemble"];
6543
+ readonly requestHeaders: readonly [AdminOperationHeader];
6544
+ readonly params: z.ZodObject<{
6545
+ docId: z.ZodString;
6546
+ } & {
6547
+ layerName: z.ZodString;
6548
+ }, "strip", z.ZodTypeAny, {
6549
+ docId: string;
6550
+ layerName: string;
6551
+ }, {
6552
+ docId: string;
6553
+ layerName: string;
6554
+ }>;
6555
+ readonly body: {
6556
+ readonly contentType: "application/json";
6557
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6558
+ };
6559
+ readonly responses: {
6560
+ readonly 200: {
6561
+ readonly contentType: "application/json";
6562
+ readonly schema: z.ZodObject<{
6563
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6564
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
6565
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6566
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
6567
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
6568
+ }, z.ZodTypeAny, "passthrough">>;
6569
+ };
6570
+ readonly 400: {
6571
+ readonly contentType: "application/json";
6572
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6573
+ };
6574
+ readonly 404: {
6575
+ readonly contentType: "application/json";
6576
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
6577
+ };
6578
+ };
6579
+ };
6395
6580
  readonly 'doc.pages.flatten': {
6396
6581
  readonly operationId: "doc.pages.flatten";
6397
6582
  readonly title: "Flatten pages";
@@ -7139,6 +7324,99 @@ declare const allOperations: {
7139
7324
  };
7140
7325
  };
7141
7326
  };
7327
+ readonly 'doc.annotations.flatten': {
7328
+ readonly operationId: "doc.annotations.flatten";
7329
+ readonly title: "Flatten annotations";
7330
+ readonly summary: "Flatten a chosen set of one page's annotations into its content — pages.flatten for a selection. Painted annotations are removed; ineligible ones report skipped.";
7331
+ readonly method: "POST";
7332
+ readonly path: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/flatten";
7333
+ readonly credentials: readonly ["api-token", "doc-jwt"];
7334
+ readonly scope: readonly [];
7335
+ readonly docCapabilities: readonly ["doc.pages.modify", "doc.annotate.modify"];
7336
+ readonly requestHeaders: readonly [AdminOperationHeader];
7337
+ readonly params: z.ZodObject<{
7338
+ docId: z.ZodString;
7339
+ } & {
7340
+ layerName: z.ZodString;
7341
+ } & {
7342
+ pon: z.ZodNumber;
7343
+ }, "strip", z.ZodTypeAny, {
7344
+ docId: string;
7345
+ layerName: string;
7346
+ pon: number;
7347
+ }, {
7348
+ docId: string;
7349
+ layerName: string;
7350
+ pon: number;
7351
+ }>;
7352
+ readonly body: {
7353
+ readonly contentType: "application/json";
7354
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7355
+ };
7356
+ readonly responses: {
7357
+ readonly 200: {
7358
+ readonly contentType: "application/json";
7359
+ readonly schema: z.ZodObject<{
7360
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7361
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7362
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7363
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7364
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7365
+ }, z.ZodTypeAny, "passthrough">>;
7366
+ };
7367
+ readonly 400: {
7368
+ readonly contentType: "application/json";
7369
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7370
+ };
7371
+ readonly 404: {
7372
+ readonly contentType: "application/json";
7373
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7374
+ };
7375
+ };
7376
+ };
7377
+ readonly 'doc.annotations.exportAppearance': {
7378
+ readonly operationId: "doc.annotations.exportAppearance";
7379
+ readonly title: "Export annotation appearances";
7380
+ readonly summary: "The chosen annotations' appearances as one single-page PDF sized to their union rect — vector, positions preserved. A read; the source is untouched.";
7381
+ readonly method: "POST";
7382
+ readonly path: "/v1/docs/:docId/layers/:layerName/annotations/pages/:pon/items/appearance";
7383
+ readonly credentials: readonly ["api-token", "doc-jwt"];
7384
+ readonly scope: readonly [];
7385
+ readonly docCapabilities: readonly ["doc.download"];
7386
+ readonly requestHeaders: readonly [AdminOperationHeader];
7387
+ readonly params: z.ZodObject<{
7388
+ docId: z.ZodString;
7389
+ } & {
7390
+ layerName: z.ZodString;
7391
+ } & {
7392
+ pon: z.ZodNumber;
7393
+ }, "strip", z.ZodTypeAny, {
7394
+ docId: string;
7395
+ layerName: string;
7396
+ pon: number;
7397
+ }, {
7398
+ docId: string;
7399
+ layerName: string;
7400
+ pon: number;
7401
+ }>;
7402
+ readonly body: {
7403
+ readonly contentType: "application/json";
7404
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7405
+ };
7406
+ readonly responses: {
7407
+ readonly 200: {
7408
+ readonly contentType: "application/pdf";
7409
+ };
7410
+ readonly 400: {
7411
+ readonly contentType: "application/json";
7412
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7413
+ };
7414
+ readonly 404: {
7415
+ readonly contentType: "application/json";
7416
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7417
+ };
7418
+ };
7419
+ };
7142
7420
  readonly 'doc.forms.get': {
7143
7421
  readonly operationId: "doc.forms.get";
7144
7422
  readonly title: "Get form snapshot";
@@ -7485,6 +7763,98 @@ declare const allOperations: {
7485
7763
  };
7486
7764
  };
7487
7765
  };
7766
+ readonly 'doc.pages.setName': {
7767
+ readonly operationId: "doc.pages.setName";
7768
+ readonly title: "Set page name";
7769
+ readonly summary: "Register or rename a /Names /Pages entry (a named page). A page-structure mutation: the layout version advances.";
7770
+ readonly method: "POST";
7771
+ readonly path: "/v1/docs/:docId/layers/:layerName/pages/names";
7772
+ readonly credentials: readonly ["api-token", "doc-jwt"];
7773
+ readonly scope: readonly [];
7774
+ readonly docCapabilities: readonly ["doc.pages.assemble"];
7775
+ readonly requestHeaders: readonly [AdminOperationHeader];
7776
+ readonly params: z.ZodObject<{
7777
+ docId: z.ZodString;
7778
+ } & {
7779
+ layerName: z.ZodString;
7780
+ }, "strip", z.ZodTypeAny, {
7781
+ docId: string;
7782
+ layerName: string;
7783
+ }, {
7784
+ docId: string;
7785
+ layerName: string;
7786
+ }>;
7787
+ readonly body: {
7788
+ readonly contentType: "application/json";
7789
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7790
+ };
7791
+ readonly responses: {
7792
+ readonly 200: {
7793
+ readonly contentType: "application/json";
7794
+ readonly schema: z.ZodObject<{
7795
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7796
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7797
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7798
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7799
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7800
+ }, z.ZodTypeAny, "passthrough">>;
7801
+ };
7802
+ readonly 400: {
7803
+ readonly contentType: "application/json";
7804
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7805
+ };
7806
+ readonly 404: {
7807
+ readonly contentType: "application/json";
7808
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7809
+ };
7810
+ };
7811
+ };
7812
+ readonly 'doc.pages.removeName': {
7813
+ readonly operationId: "doc.pages.removeName";
7814
+ readonly title: "Remove page name";
7815
+ readonly summary: "Remove a /Names /Pages entry; the page itself stays.";
7816
+ readonly method: "POST";
7817
+ readonly path: "/v1/docs/:docId/layers/:layerName/pages/names/delete";
7818
+ readonly credentials: readonly ["api-token", "doc-jwt"];
7819
+ readonly scope: readonly [];
7820
+ readonly docCapabilities: readonly ["doc.pages.assemble"];
7821
+ readonly requestHeaders: readonly [AdminOperationHeader];
7822
+ readonly params: z.ZodObject<{
7823
+ docId: z.ZodString;
7824
+ } & {
7825
+ layerName: z.ZodString;
7826
+ }, "strip", z.ZodTypeAny, {
7827
+ docId: string;
7828
+ layerName: string;
7829
+ }, {
7830
+ docId: string;
7831
+ layerName: string;
7832
+ }>;
7833
+ readonly body: {
7834
+ readonly contentType: "application/json";
7835
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7836
+ };
7837
+ readonly responses: {
7838
+ readonly 200: {
7839
+ readonly contentType: "application/json";
7840
+ readonly schema: z.ZodObject<{
7841
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7842
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
7843
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7844
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
7845
+ meta: z.ZodType<_embedpdf_engine_core_runtime.MutationMeta, z.ZodTypeDef, _embedpdf_engine_core_runtime.MutationMeta>;
7846
+ }, z.ZodTypeAny, "passthrough">>;
7847
+ };
7848
+ readonly 400: {
7849
+ readonly contentType: "application/json";
7850
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7851
+ };
7852
+ readonly 404: {
7853
+ readonly contentType: "application/json";
7854
+ readonly schema: z.ZodType<_embedpdf_engine_core_runtime.SerializedEngineError, z.ZodTypeDef, _embedpdf_engine_core_runtime.SerializedEngineError>;
7855
+ };
7856
+ };
7857
+ };
7488
7858
  readonly 'doc.pages.flatten': {
7489
7859
  readonly operationId: "doc.pages.flatten";
7490
7860
  readonly title: "Flatten pages";
package/dist/index.js CHANGED
@@ -1036,6 +1036,42 @@ var docOperations = {
1036
1036
  404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1037
1037
  }
1038
1038
  },
1039
+ "doc.annotations.flatten": {
1040
+ operationId: "doc.annotations.flatten",
1041
+ title: "Flatten annotations",
1042
+ 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.",
1043
+ method: "POST",
1044
+ path: wireTemplates.layerAnnotationItemsFlatten,
1045
+ credentials: docCredentials,
1046
+ scope: [],
1047
+ docCapabilities: ["doc.pages.modify", "doc.annotate.modify"],
1048
+ requestHeaders: [documentPasswordHeader],
1049
+ params: DocPageParamsSchema,
1050
+ body: { contentType: "application/json", schema: looseJson },
1051
+ responses: {
1052
+ 200: { contentType: "application/json", schema: MutationResponseSchema },
1053
+ 400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
1054
+ 404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1055
+ }
1056
+ },
1057
+ "doc.annotations.exportAppearance": {
1058
+ operationId: "doc.annotations.exportAppearance",
1059
+ title: "Export annotation appearances",
1060
+ 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.",
1061
+ method: "POST",
1062
+ path: wireTemplates.layerAnnotationItemsAppearance,
1063
+ credentials: docCredentials,
1064
+ scope: [],
1065
+ docCapabilities: ["doc.download"],
1066
+ requestHeaders: [documentPasswordHeader],
1067
+ params: DocPageParamsSchema,
1068
+ body: { contentType: "application/json", schema: looseJson },
1069
+ responses: {
1070
+ 200: { contentType: "application/pdf" },
1071
+ 400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
1072
+ 404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1073
+ }
1074
+ },
1039
1075
  "doc.forms.get": {
1040
1076
  operationId: "doc.forms.get",
1041
1077
  title: "Get form snapshot",
@@ -1175,6 +1211,42 @@ var docOperations = {
1175
1211
  404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1176
1212
  }
1177
1213
  },
1214
+ "doc.pages.setName": {
1215
+ operationId: "doc.pages.setName",
1216
+ title: "Set page name",
1217
+ summary: "Register or rename a /Names /Pages entry (a named page). A page-structure mutation: the layout version advances.",
1218
+ method: "POST",
1219
+ path: wireTemplates.layerPagesNames,
1220
+ credentials: docCredentials,
1221
+ scope: [],
1222
+ docCapabilities: ["doc.pages.assemble"],
1223
+ requestHeaders: [documentPasswordHeader],
1224
+ params: DocLayerParamsSchema,
1225
+ body: { contentType: "application/json", schema: looseJson },
1226
+ responses: {
1227
+ 200: { contentType: "application/json", schema: MutationResponseSchema },
1228
+ 400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
1229
+ 404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1230
+ }
1231
+ },
1232
+ "doc.pages.removeName": {
1233
+ operationId: "doc.pages.removeName",
1234
+ title: "Remove page name",
1235
+ summary: "Remove a /Names /Pages entry; the page itself stays.",
1236
+ method: "POST",
1237
+ path: wireTemplates.layerPagesNamesDelete,
1238
+ credentials: docCredentials,
1239
+ scope: [],
1240
+ docCapabilities: ["doc.pages.assemble"],
1241
+ requestHeaders: [documentPasswordHeader],
1242
+ params: DocLayerParamsSchema,
1243
+ body: { contentType: "application/json", schema: looseJson },
1244
+ responses: {
1245
+ 200: { contentType: "application/json", schema: MutationResponseSchema },
1246
+ 400: { contentType: "application/json", schema: EngineErrorPayloadSchema },
1247
+ 404: { contentType: "application/json", schema: EngineErrorPayloadSchema }
1248
+ }
1249
+ },
1178
1250
  "doc.pages.flatten": {
1179
1251
  operationId: "doc.pages.flatten",
1180
1252
  title: "Flatten pages",