@remkoj/optimizely-cms-api 6.0.0-pre12 → 6.0.0-pre14

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.
Files changed (32) hide show
  1. package/README.md +6 -2
  2. package/dist/api-client.js +2 -2
  3. package/dist/client/client/client.gen.js +26 -1
  4. package/dist/client/client/index.d.ts +1 -1
  5. package/dist/client/client/types.gen.d.ts +2 -9
  6. package/dist/client/client.gen.js +2 -4
  7. package/dist/client/core/params.gen.d.ts +10 -0
  8. package/dist/client/core/params.gen.js +17 -5
  9. package/dist/client/core/serverSentEvents.gen.js +2 -0
  10. package/dist/client/index.d.ts +4 -4
  11. package/dist/client/index.js +97 -17
  12. package/dist/client/sdk.gen.d.ts +188 -1
  13. package/dist/client/sdk.gen.js +482 -144
  14. package/dist/client/transformers.gen.d.ts +27 -1
  15. package/dist/client/transformers.gen.js +229 -29
  16. package/dist/client/types.gen.d.ts +1753 -29
  17. package/dist/client-config.js +1 -1
  18. package/dist/instance.client/client/client.gen.js +26 -1
  19. package/dist/instance.client/client/index.d.ts +1 -1
  20. package/dist/instance.client/client/types.gen.d.ts +2 -9
  21. package/dist/instance.client/client.gen.js +2 -4
  22. package/dist/instance.client/core/params.gen.d.ts +10 -0
  23. package/dist/instance.client/core/params.gen.js +17 -5
  24. package/dist/instance.client/core/serverSentEvents.gen.js +2 -0
  25. package/dist/instance.client/index.d.ts +4 -4
  26. package/dist/instance.client/index.js +86 -18
  27. package/dist/instance.client/sdk.gen.js +273 -405
  28. package/dist/instance.client/transformers.gen.d.ts +1 -15
  29. package/dist/instance.client/transformers.gen.js +26 -198
  30. package/dist/instance.client/types.gen.d.ts +48 -64
  31. package/dist/version.json +2 -2
  32. package/package.json +7 -7
@@ -50,6 +50,399 @@ export type ArrayItem = {
50
50
  */
51
51
  restrictedTypes?: Array<string>;
52
52
  };
53
+ /**
54
+ * Represents a blueprint of a content item.
55
+ */
56
+ export type Blueprint = {
57
+ /**
58
+ * The key that identifies this blueprint.
59
+ */
60
+ readonly key?: string;
61
+ /**
62
+ * The display name of this blueprint.
63
+ */
64
+ displayName: string;
65
+ /**
66
+ * The content type of this blueprint.
67
+ */
68
+ readonly contentType?: string;
69
+ lastModified?: Date;
70
+ /**
71
+ * The username of the user that made the latest modification to this blueprint.
72
+ */
73
+ readonly lastModifiedBy?: string;
74
+ content?: BlueprintData;
75
+ };
76
+ /**
77
+ * Represents the data part of a Blueprint.
78
+ */
79
+ export type BlueprintData = {
80
+ /**
81
+ * Properties as they are defined by corresponding component or content type.
82
+ */
83
+ properties?: {
84
+ [key: string]: unknown;
85
+ };
86
+ composition?: CompositionNode;
87
+ };
88
+ export type BlueprintPage = {
89
+ /**
90
+ * The items in this paged collection.
91
+ */
92
+ readonly items?: Array<Blueprint>;
93
+ /**
94
+ * The zero-based index of the current page.
95
+ */
96
+ readonly pageIndex?: number;
97
+ /**
98
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
99
+ */
100
+ readonly pageSize?: number;
101
+ /**
102
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
103
+ */
104
+ readonly totalItemCount?: number;
105
+ };
106
+ /**
107
+ * Changesets are used to group work on several content items together.
108
+ */
109
+ export type Changeset = {
110
+ /**
111
+ * The unique key of this Changeset.
112
+ */
113
+ key?: string;
114
+ /**
115
+ * The source of this Changeset.
116
+ */
117
+ readonly source?: string;
118
+ /**
119
+ * The name of this Changeset.
120
+ */
121
+ displayName: string;
122
+ /**
123
+ * A timestamp indicating when this changeset was first created.
124
+ */
125
+ readonly created?: Date;
126
+ /**
127
+ * The username of the user that created this changeset.
128
+ */
129
+ readonly createdBy?: string;
130
+ lastModified?: Date;
131
+ };
132
+ /**
133
+ * Items in an changeset that contains a link to the specific content version.
134
+ */
135
+ export type ChangesetItem = {
136
+ reference: ContentReference;
137
+ /**
138
+ * Gets/sets the changeset item category.
139
+ */
140
+ category?: string;
141
+ };
142
+ export type ChangesetItemPage = {
143
+ /**
144
+ * The items in this paged collection.
145
+ */
146
+ readonly items?: Array<ChangesetItem>;
147
+ /**
148
+ * The zero-based index of the current page.
149
+ */
150
+ readonly pageIndex?: number;
151
+ /**
152
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
153
+ */
154
+ readonly pageSize?: number;
155
+ /**
156
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
157
+ */
158
+ readonly totalItemCount?: number;
159
+ };
160
+ export type ChangesetPage = {
161
+ /**
162
+ * The items in this paged collection.
163
+ */
164
+ readonly items?: Array<Changeset>;
165
+ /**
166
+ * The zero-based index of the current page.
167
+ */
168
+ readonly pageIndex?: number;
169
+ /**
170
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
171
+ */
172
+ readonly pageSize?: number;
173
+ /**
174
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
175
+ */
176
+ readonly totalItemCount?: number;
177
+ };
178
+ /**
179
+ * Defines display settings for a CompositionNode."/>
180
+ */
181
+ export type CompositionDisplaySettings = {
182
+ /**
183
+ * The key for the display template that these settings apply to.
184
+ */
185
+ readonly displayTemplate: string;
186
+ /**
187
+ * Gets/sets the display settings for this CompositionNode.
188
+ */
189
+ settings?: {
190
+ [key: string]: string;
191
+ } | null;
192
+ };
193
+ /**
194
+ * Specifies a node in a content composition.
195
+ */
196
+ export type CompositionNode = {
197
+ /**
198
+ * Specifies the id of this CompositionNode.
199
+ */
200
+ id?: string | null;
201
+ /**
202
+ * The display name of this ContentType.
203
+ */
204
+ displayName?: string | null;
205
+ /**
206
+ * Gets the node type of this CompositionNode.
207
+ */
208
+ readonly nodeType?: string;
209
+ /**
210
+ * Gets the node layout type of this CompositionNode
211
+ */
212
+ readonly layoutType?: string | null;
213
+ displaySettings?: CompositionDisplaySettings;
214
+ /**
215
+ * Represents a content component.
216
+ */
217
+ component?: {
218
+ /**
219
+ * Dictionary with all custom properties as specified by associated ContentType
220
+ */
221
+ properties?: unknown;
222
+ reference?: string;
223
+ /**
224
+ * The key of the content type that this is an embedded instance of.
225
+ */
226
+ contentType?: string | null;
227
+ };
228
+ /**
229
+ * Gets the available child nodes for this CompositionNode.
230
+ */
231
+ nodes?: Array<CompositionNode> | null;
232
+ };
233
+ /**
234
+ * Represents a content component.
235
+ */
236
+ export type ContentComponent = {
237
+ /**
238
+ * An optional display option for the content component.
239
+ */
240
+ displayOption?: string | null;
241
+ /**
242
+ * An optional group for the personalizable component.
243
+ */
244
+ segmentationGroup?: string | null;
245
+ /**
246
+ * Specifies the settings for the content component.
247
+ */
248
+ segments?: Array<string> | null;
249
+ /**
250
+ * The display name of the content component. If Reference is set, the name is automatically set to the name of the referenced content.
251
+ */
252
+ name?: string | null;
253
+ reference?: string;
254
+ /**
255
+ * The key of the content type that this is an embedded instance of.
256
+ */
257
+ contentType?: string | null;
258
+ /**
259
+ * Dictionary with all custom properties as specified by associated ContentType
260
+ */
261
+ content?: unknown;
262
+ };
263
+ /**
264
+ * Represents a version of a content item.
265
+ */
266
+ export type ContentItem = {
267
+ /**
268
+ * Properties as they are defined by corresponding component or content type.
269
+ */
270
+ properties?: {
271
+ [key: string]: unknown;
272
+ };
273
+ /**
274
+ * The key that identifies this content item.
275
+ */
276
+ readonly key?: string;
277
+ /**
278
+ * The locale of this content instance.
279
+ */
280
+ readonly locale?: string;
281
+ /**
282
+ * The version identifier of this content instance.
283
+ */
284
+ readonly version?: string;
285
+ /**
286
+ * The variation of this content item, if any. Variations are used to represent different states or forms of the same content item.
287
+ * A variation has it's own publish lifecycle. A variation can though not be published before the default version of same local is published.
288
+ */
289
+ readonly variation?: string | null;
290
+ /**
291
+ * The content type of this content item.
292
+ */
293
+ readonly contentType?: string;
294
+ /**
295
+ * The display name of this content item.
296
+ */
297
+ displayName: string;
298
+ /**
299
+ * Indicates a time when this content was published or should be published.
300
+ */
301
+ published?: Date | null;
302
+ /**
303
+ * Indicates a time when this content expired or should expire.
304
+ */
305
+ expired?: Date | null;
306
+ /**
307
+ * The status of this version of the content item.
308
+ */
309
+ status?: 'draft' | 'ready' | 'published' | 'previous' | 'scheduled' | 'rejected' | 'inReview';
310
+ /**
311
+ * Indicates a time when this content version should transition to published status. Must only be assigned when Status is set to Scheduled.
312
+ */
313
+ delayPublishUntil?: Date | null;
314
+ /**
315
+ * The key that identifies the container content that this content item belongs to.
316
+ */
317
+ container?: string | null;
318
+ /**
319
+ * The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
320
+ */
321
+ owner?: string | null;
322
+ /**
323
+ * A string that represents the segment that should be used when routing or generate routes to the current content instance.
324
+ */
325
+ routeSegment?: string | null;
326
+ lastModified?: Date;
327
+ /**
328
+ * The username of the user that made the latest modification to this content instance.
329
+ */
330
+ readonly lastModifiedBy?: string;
331
+ composition?: CompositionNode;
332
+ };
333
+ export type ContentItemPage = {
334
+ /**
335
+ * The items in this paged collection.
336
+ */
337
+ readonly items?: Array<ContentItem>;
338
+ /**
339
+ * The zero-based index of the current page.
340
+ */
341
+ readonly pageIndex?: number;
342
+ /**
343
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
344
+ */
345
+ readonly pageSize?: number;
346
+ /**
347
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
348
+ */
349
+ readonly totalItemCount?: number;
350
+ };
351
+ /**
352
+ * Describes information about a locale instance of a content item.
353
+ */
354
+ export type ContentLocaleInfo = {
355
+ /**
356
+ * The display name of the content.
357
+ */
358
+ readonly displayName?: string;
359
+ /**
360
+ * The date and time when the first locale version for the content was created.
361
+ */
362
+ readonly created?: Date;
363
+ /**
364
+ * The username of the user that created this locale version of content.
365
+ */
366
+ readonly createdBy?: string;
367
+ /**
368
+ * The status of the current locale.
369
+ */
370
+ status?: 'draft' | 'published';
371
+ };
372
+ /**
373
+ * Represents metadata about a content item.
374
+ */
375
+ export type ContentMetadata = {
376
+ /**
377
+ * The key that identifies this content.
378
+ */
379
+ key?: string;
380
+ /**
381
+ * The content type of this content.
382
+ */
383
+ contentType?: string;
384
+ /**
385
+ * Set of locales that this content has been created for.
386
+ */
387
+ readonly locales?: {
388
+ [key: string]: ContentLocaleInfo;
389
+ };
390
+ /**
391
+ * The key that identifies the container content that this content belongs to.
392
+ */
393
+ container?: string | null;
394
+ /**
395
+ * Indicates if the content contains any content items.
396
+ */
397
+ readonly hasItems?: boolean;
398
+ /**
399
+ * The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
400
+ */
401
+ owner?: string | null;
402
+ /**
403
+ * A timestamp, which if provided, indicates when this content was deleted.
404
+ */
405
+ readonly deleted?: Date | null;
406
+ /**
407
+ * The username of the user that deleted this content.
408
+ */
409
+ readonly deletedBy?: string | null;
410
+ };
411
+ export type ContentMetadataPage = {
412
+ /**
413
+ * The items in this paged collection.
414
+ */
415
+ readonly items?: Array<ContentMetadata>;
416
+ /**
417
+ * The zero-based index of the current page.
418
+ */
419
+ readonly pageIndex?: number;
420
+ /**
421
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
422
+ */
423
+ readonly pageSize?: number;
424
+ /**
425
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
426
+ */
427
+ readonly totalItemCount?: number;
428
+ };
429
+ /**
430
+ * A reference to a specific content instance.
431
+ */
432
+ export type ContentReference = {
433
+ /**
434
+ * The content key that identifies the content.
435
+ */
436
+ readonly key?: string;
437
+ /**
438
+ * The name of the content locale
439
+ */
440
+ readonly locale?: string;
441
+ /**
442
+ * The identifier of a specific version of the content.
443
+ */
444
+ readonly version?: string;
445
+ };
53
446
  /**
54
447
  * A writable implementation of an ContentType.
55
448
  */
@@ -219,21 +612,42 @@ export type ContentTypeProperty = {
219
612
  items?: ArrayItem;
220
613
  };
221
614
  /**
222
- * Describes a setting for a display template.
615
+ * Options for copying content.
223
616
  */
224
- export type DisplaySetting = {
617
+ export type CopyContentOptions = {
225
618
  /**
226
- * The display name of this display setting.
619
+ * Indicates if deleted content could be used as source.
227
620
  */
228
- displayName: string;
621
+ allowDeleted?: boolean;
229
622
  /**
230
- * The suggested editor for this display setting.
623
+ * Optional key of the container where the copied content should be placed.
231
624
  */
232
- editor?: string;
625
+ container?: string | null;
233
626
  /**
234
- * The sort order of this display setting within the template.
627
+ * Optional key of the owner where the copied content should be placed.
235
628
  */
236
- sortOrder?: number;
629
+ owner?: string | null;
630
+ /**
631
+ * Indicates if published versions of the content should keep their published status rather than being created as a draft version at the destination.
632
+ */
633
+ keepPublishedStatus?: boolean;
634
+ };
635
+ /**
636
+ * Describes a setting for a display template.
637
+ */
638
+ export type DisplaySetting = {
639
+ /**
640
+ * The display name of this display setting.
641
+ */
642
+ displayName: string;
643
+ /**
644
+ * The suggested editor for this display setting.
645
+ */
646
+ editor?: string;
647
+ /**
648
+ * The sort order of this display setting within the template.
649
+ */
650
+ sortOrder?: number;
237
651
  /**
238
652
  * The available choices for this display setting.
239
653
  */
@@ -353,6 +767,27 @@ export type ImageDescriptor = {
353
767
  */
354
768
  pregenerated?: boolean;
355
769
  };
770
+ /**
771
+ * Represents a hyperlink.
772
+ */
773
+ export type Link = {
774
+ /**
775
+ * Gets or sets the URL.
776
+ */
777
+ url?: string | null;
778
+ /**
779
+ * Gets or sets where to display the URL in a browsing context.
780
+ */
781
+ target?: string;
782
+ /**
783
+ * Gets or sets the title of the link.
784
+ */
785
+ title?: string;
786
+ /**
787
+ * Gets or sets the content inside a link.
788
+ */
789
+ text?: string;
790
+ };
356
791
  export type ProblemDetails = {
357
792
  /**
358
793
  * A URI reference that identifies the problem type.
@@ -513,6 +948,176 @@ export type PropertyGroupPage = {
513
948
  */
514
949
  readonly totalItemCount?: number;
515
950
  };
951
+ /**
952
+ * Represents a blueprint of a content item.
953
+ */
954
+ export type BlueprintWritable = {
955
+ /**
956
+ * The display name of this blueprint.
957
+ */
958
+ displayName: string;
959
+ lastModified?: Date;
960
+ content?: BlueprintDataWritable;
961
+ };
962
+ /**
963
+ * Represents the data part of a Blueprint.
964
+ */
965
+ export type BlueprintDataWritable = {
966
+ /**
967
+ * Properties as they are defined by corresponding component or content type.
968
+ */
969
+ properties?: {
970
+ [key: string]: unknown;
971
+ };
972
+ composition?: CompositionNodeWritable;
973
+ };
974
+ export type BlueprintPageWritable = {
975
+ [key: string]: never;
976
+ };
977
+ /**
978
+ * Changesets are used to group work on several content items together.
979
+ */
980
+ export type ChangesetWritable = {
981
+ /**
982
+ * The unique key of this Changeset.
983
+ */
984
+ key?: string;
985
+ /**
986
+ * The name of this Changeset.
987
+ */
988
+ displayName: string;
989
+ lastModified?: Date;
990
+ };
991
+ /**
992
+ * Items in an changeset that contains a link to the specific content version.
993
+ */
994
+ export type ChangesetItemWritable = {
995
+ /**
996
+ * Gets/sets the changeset item category.
997
+ */
998
+ category?: string;
999
+ };
1000
+ export type ChangesetItemPageWritable = {
1001
+ [key: string]: never;
1002
+ };
1003
+ export type ChangesetPageWritable = {
1004
+ [key: string]: never;
1005
+ };
1006
+ /**
1007
+ * Defines display settings for a CompositionNode."/>
1008
+ */
1009
+ export type CompositionDisplaySettingsWritable = {
1010
+ /**
1011
+ * Gets/sets the display settings for this CompositionNode.
1012
+ */
1013
+ settings?: {
1014
+ [key: string]: string;
1015
+ } | null;
1016
+ };
1017
+ /**
1018
+ * Specifies a node in a content composition.
1019
+ */
1020
+ export type CompositionNodeWritable = {
1021
+ /**
1022
+ * Specifies the id of this CompositionNode.
1023
+ */
1024
+ id?: string | null;
1025
+ /**
1026
+ * The display name of this ContentType.
1027
+ */
1028
+ displayName?: string | null;
1029
+ displaySettings?: CompositionDisplaySettingsWritable;
1030
+ /**
1031
+ * Represents a content component.
1032
+ */
1033
+ component?: {
1034
+ /**
1035
+ * Dictionary with all custom properties as specified by associated ContentType
1036
+ */
1037
+ properties?: unknown;
1038
+ reference?: string;
1039
+ /**
1040
+ * The key of the content type that this is an embedded instance of.
1041
+ */
1042
+ contentType?: string | null;
1043
+ };
1044
+ /**
1045
+ * Gets the available child nodes for this CompositionNode.
1046
+ */
1047
+ nodes?: Array<CompositionNodeWritable> | null;
1048
+ };
1049
+ /**
1050
+ * Represents a version of a content item.
1051
+ */
1052
+ export type ContentItemWritable = {
1053
+ /**
1054
+ * Properties as they are defined by corresponding component or content type.
1055
+ */
1056
+ properties?: {
1057
+ [key: string]: unknown;
1058
+ };
1059
+ /**
1060
+ * The display name of this content item.
1061
+ */
1062
+ displayName: string;
1063
+ /**
1064
+ * Indicates a time when this content was published or should be published.
1065
+ */
1066
+ published?: Date | null;
1067
+ /**
1068
+ * Indicates a time when this content expired or should expire.
1069
+ */
1070
+ expired?: Date | null;
1071
+ /**
1072
+ * The status of this version of the content item.
1073
+ */
1074
+ status?: 'draft' | 'ready' | 'published' | 'previous' | 'scheduled' | 'rejected' | 'inReview';
1075
+ /**
1076
+ * Indicates a time when this content version should transition to published status. Must only be assigned when Status is set to Scheduled.
1077
+ */
1078
+ delayPublishUntil?: Date | null;
1079
+ /**
1080
+ * The key that identifies the container content that this content item belongs to.
1081
+ */
1082
+ container?: string | null;
1083
+ /**
1084
+ * The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
1085
+ */
1086
+ owner?: string | null;
1087
+ /**
1088
+ * A string that represents the segment that should be used when routing or generate routes to the current content instance.
1089
+ */
1090
+ routeSegment?: string | null;
1091
+ lastModified?: Date;
1092
+ composition?: CompositionNodeWritable;
1093
+ };
1094
+ export type ContentItemPageWritable = {
1095
+ [key: string]: never;
1096
+ };
1097
+ /**
1098
+ * Represents metadata about a content item.
1099
+ */
1100
+ export type ContentMetadataWritable = {
1101
+ /**
1102
+ * The key that identifies this content.
1103
+ */
1104
+ key?: string;
1105
+ /**
1106
+ * The content type of this content.
1107
+ */
1108
+ contentType?: string;
1109
+ /**
1110
+ * The key that identifies the container content that this content belongs to.
1111
+ */
1112
+ container?: string | null;
1113
+ /**
1114
+ * The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
1115
+ */
1116
+ owner?: string | null;
1117
+ };
1118
+ export type ContentMetadataPageWritable = {
1119
+ [key: string]: never;
1120
+ };
516
1121
  /**
517
1122
  * A writable implementation of an ContentType.
518
1123
  */
@@ -642,6 +1247,1125 @@ export type PropertyGroupWritable = {
642
1247
  export type PropertyGroupPageWritable = {
643
1248
  [key: string]: never;
644
1249
  };
1250
+ export type BlueprintsListData = {
1251
+ body?: never;
1252
+ path?: never;
1253
+ query?: {
1254
+ pageIndex?: number;
1255
+ pageSize?: number;
1256
+ };
1257
+ url: '/experimental/blueprints';
1258
+ };
1259
+ export type BlueprintsListErrors = {
1260
+ /**
1261
+ * Forbidden
1262
+ */
1263
+ 403: ProblemDetails;
1264
+ };
1265
+ export type BlueprintsListError = BlueprintsListErrors[keyof BlueprintsListErrors];
1266
+ export type BlueprintsListResponses = {
1267
+ /**
1268
+ * OK
1269
+ */
1270
+ 200: BlueprintPage;
1271
+ };
1272
+ export type BlueprintsListResponse = BlueprintsListResponses[keyof BlueprintsListResponses];
1273
+ export type BlueprintsCreateData = {
1274
+ /**
1275
+ * The blueprint that should be created.
1276
+ */
1277
+ body: BlueprintWritable;
1278
+ path?: never;
1279
+ query?: never;
1280
+ url: '/experimental/blueprints';
1281
+ };
1282
+ export type BlueprintsCreateErrors = {
1283
+ /**
1284
+ * Bad Request
1285
+ */
1286
+ 400: ProblemDetails;
1287
+ /**
1288
+ * Forbidden
1289
+ */
1290
+ 403: ProblemDetails;
1291
+ };
1292
+ export type BlueprintsCreateError = BlueprintsCreateErrors[keyof BlueprintsCreateErrors];
1293
+ export type BlueprintsCreateResponses = {
1294
+ /**
1295
+ * Created
1296
+ */
1297
+ 201: Blueprint;
1298
+ };
1299
+ export type BlueprintsCreateResponse = BlueprintsCreateResponses[keyof BlueprintsCreateResponses];
1300
+ export type BlueprintsDeleteData = {
1301
+ body?: never;
1302
+ headers?: {
1303
+ /**
1304
+ * If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
1305
+ */
1306
+ 'If-Match'?: string;
1307
+ /**
1308
+ * If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
1309
+ */
1310
+ 'If-Unmodified-Since'?: string;
1311
+ };
1312
+ path: {
1313
+ /**
1314
+ * The key of the blueprint to delete.
1315
+ */
1316
+ key: string;
1317
+ };
1318
+ query?: never;
1319
+ url: '/experimental/blueprints/{key}';
1320
+ };
1321
+ export type BlueprintsDeleteErrors = {
1322
+ /**
1323
+ * Bad Request
1324
+ */
1325
+ 400: ProblemDetails;
1326
+ /**
1327
+ * Forbidden
1328
+ */
1329
+ 403: ProblemDetails;
1330
+ /**
1331
+ * Not Found
1332
+ */
1333
+ 404: ProblemDetails;
1334
+ /**
1335
+ * Precondition Failed
1336
+ */
1337
+ 412: ProblemDetails;
1338
+ };
1339
+ export type BlueprintsDeleteError = BlueprintsDeleteErrors[keyof BlueprintsDeleteErrors];
1340
+ export type BlueprintsDeleteResponses = {
1341
+ /**
1342
+ * OK
1343
+ */
1344
+ 200: Blueprint;
1345
+ };
1346
+ export type BlueprintsDeleteResponse = BlueprintsDeleteResponses[keyof BlueprintsDeleteResponses];
1347
+ export type BlueprintsGetData = {
1348
+ body?: never;
1349
+ headers?: {
1350
+ /**
1351
+ * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
1352
+ */
1353
+ 'If-None-Match'?: string;
1354
+ /**
1355
+ * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
1356
+ */
1357
+ 'If-Modified-Since'?: string;
1358
+ };
1359
+ path: {
1360
+ /**
1361
+ * The key of the blueprint to retrieve.
1362
+ */
1363
+ key: string;
1364
+ };
1365
+ query?: never;
1366
+ url: '/experimental/blueprints/{key}';
1367
+ };
1368
+ export type BlueprintsGetErrors = {
1369
+ /**
1370
+ * Forbidden
1371
+ */
1372
+ 403: ProblemDetails;
1373
+ /**
1374
+ * Not Found
1375
+ */
1376
+ 404: ProblemDetails;
1377
+ };
1378
+ export type BlueprintsGetError = BlueprintsGetErrors[keyof BlueprintsGetErrors];
1379
+ export type BlueprintsGetResponses = {
1380
+ /**
1381
+ * OK
1382
+ */
1383
+ 200: Blueprint;
1384
+ };
1385
+ export type BlueprintsGetResponse = BlueprintsGetResponses[keyof BlueprintsGetResponses];
1386
+ export type BlueprintsPatchData = {
1387
+ /**
1388
+ * The values of the blueprint that should be patched formatted according to RFC7396.
1389
+ */
1390
+ body: BlueprintWritable;
1391
+ headers?: {
1392
+ /**
1393
+ * If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
1394
+ */
1395
+ 'If-Match'?: string;
1396
+ /**
1397
+ * If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
1398
+ */
1399
+ 'If-Unmodified-Since'?: string;
1400
+ };
1401
+ path: {
1402
+ /**
1403
+ * The key of the blueprint to patch.
1404
+ */
1405
+ key: string;
1406
+ };
1407
+ query?: never;
1408
+ url: '/experimental/blueprints/{key}';
1409
+ };
1410
+ export type BlueprintsPatchErrors = {
1411
+ /**
1412
+ * Bad Request
1413
+ */
1414
+ 400: ProblemDetails;
1415
+ /**
1416
+ * Forbidden
1417
+ */
1418
+ 403: ProblemDetails;
1419
+ /**
1420
+ * Not Found
1421
+ */
1422
+ 404: ProblemDetails;
1423
+ /**
1424
+ * Precondition Failed
1425
+ */
1426
+ 412: ProblemDetails;
1427
+ };
1428
+ export type BlueprintsPatchError = BlueprintsPatchErrors[keyof BlueprintsPatchErrors];
1429
+ export type BlueprintsPatchResponses = {
1430
+ /**
1431
+ * OK
1432
+ */
1433
+ 200: Blueprint;
1434
+ };
1435
+ export type BlueprintsPatchResponse = BlueprintsPatchResponses[keyof BlueprintsPatchResponses];
1436
+ export type ChangesetsListData = {
1437
+ body?: never;
1438
+ path?: never;
1439
+ query?: {
1440
+ /**
1441
+ * Indicates which sources should be included when listing changesets.
1442
+ * Use Default to include changesets without a specific sources.
1443
+ */
1444
+ sources?: Array<string>;
1445
+ pageIndex?: number;
1446
+ pageSize?: number;
1447
+ };
1448
+ url: '/experimental/changesets';
1449
+ };
1450
+ export type ChangesetsListErrors = {
1451
+ /**
1452
+ * Forbidden
1453
+ */
1454
+ 403: ProblemDetails;
1455
+ };
1456
+ export type ChangesetsListError = ChangesetsListErrors[keyof ChangesetsListErrors];
1457
+ export type ChangesetsListResponses = {
1458
+ /**
1459
+ * OK
1460
+ */
1461
+ 200: ChangesetPage;
1462
+ };
1463
+ export type ChangesetsListResponse = ChangesetsListResponses[keyof ChangesetsListResponses];
1464
+ export type ChangesetsCreateData = {
1465
+ /**
1466
+ * The changeset that should be created.
1467
+ */
1468
+ body: ChangesetWritable;
1469
+ path?: never;
1470
+ query?: never;
1471
+ url: '/experimental/changesets';
1472
+ };
1473
+ export type ChangesetsCreateErrors = {
1474
+ /**
1475
+ * Bad Request
1476
+ */
1477
+ 400: ProblemDetails;
1478
+ /**
1479
+ * Forbidden
1480
+ */
1481
+ 403: ProblemDetails;
1482
+ };
1483
+ export type ChangesetsCreateError = ChangesetsCreateErrors[keyof ChangesetsCreateErrors];
1484
+ export type ChangesetsCreateResponses = {
1485
+ /**
1486
+ * Created
1487
+ */
1488
+ 201: Changeset;
1489
+ };
1490
+ export type ChangesetsCreateResponse = ChangesetsCreateResponses[keyof ChangesetsCreateResponses];
1491
+ export type ChangesetsDeleteData = {
1492
+ body?: never;
1493
+ path: {
1494
+ /**
1495
+ * The key of the changeset to delete.
1496
+ */
1497
+ key: string;
1498
+ };
1499
+ query?: never;
1500
+ url: '/experimental/changesets/{key}';
1501
+ };
1502
+ export type ChangesetsDeleteErrors = {
1503
+ /**
1504
+ * Bad Request
1505
+ */
1506
+ 400: ProblemDetails;
1507
+ /**
1508
+ * Forbidden
1509
+ */
1510
+ 403: ProblemDetails;
1511
+ /**
1512
+ * Not Found
1513
+ */
1514
+ 404: ProblemDetails;
1515
+ };
1516
+ export type ChangesetsDeleteError = ChangesetsDeleteErrors[keyof ChangesetsDeleteErrors];
1517
+ export type ChangesetsDeleteResponses = {
1518
+ /**
1519
+ * OK
1520
+ */
1521
+ 200: Changeset;
1522
+ };
1523
+ export type ChangesetsDeleteResponse = ChangesetsDeleteResponses[keyof ChangesetsDeleteResponses];
1524
+ export type ChangesetsGetData = {
1525
+ body?: never;
1526
+ headers?: {
1527
+ /**
1528
+ * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
1529
+ */
1530
+ 'If-None-Match'?: string;
1531
+ /**
1532
+ * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
1533
+ */
1534
+ 'If-Modified-Since'?: string;
1535
+ };
1536
+ path: {
1537
+ /**
1538
+ * The key of the changeset to retrieve.
1539
+ */
1540
+ key: string;
1541
+ };
1542
+ query?: never;
1543
+ url: '/experimental/changesets/{key}';
1544
+ };
1545
+ export type ChangesetsGetErrors = {
1546
+ /**
1547
+ * Forbidden
1548
+ */
1549
+ 403: ProblemDetails;
1550
+ /**
1551
+ * Not Found
1552
+ */
1553
+ 404: ProblemDetails;
1554
+ };
1555
+ export type ChangesetsGetError = ChangesetsGetErrors[keyof ChangesetsGetErrors];
1556
+ export type ChangesetsGetResponses = {
1557
+ /**
1558
+ * OK
1559
+ */
1560
+ 200: Changeset;
1561
+ };
1562
+ export type ChangesetsGetResponse = ChangesetsGetResponses[keyof ChangesetsGetResponses];
1563
+ export type ChangesetsPatchData = {
1564
+ /**
1565
+ * The values of the changeset that should be patched formatted according to RFC7396.
1566
+ */
1567
+ body: ChangesetWritable;
1568
+ path: {
1569
+ /**
1570
+ * The key of the changeset to patch.
1571
+ */
1572
+ key: string;
1573
+ };
1574
+ query?: never;
1575
+ url: '/experimental/changesets/{key}';
1576
+ };
1577
+ export type ChangesetsPatchErrors = {
1578
+ /**
1579
+ * Bad Request
1580
+ */
1581
+ 400: ProblemDetails;
1582
+ /**
1583
+ * Forbidden
1584
+ */
1585
+ 403: ProblemDetails;
1586
+ /**
1587
+ * Not Found
1588
+ */
1589
+ 404: ProblemDetails;
1590
+ };
1591
+ export type ChangesetsPatchError = ChangesetsPatchErrors[keyof ChangesetsPatchErrors];
1592
+ export type ChangesetsPatchResponses = {
1593
+ /**
1594
+ * OK
1595
+ */
1596
+ 200: Changeset;
1597
+ };
1598
+ export type ChangesetsPatchResponse = ChangesetsPatchResponses[keyof ChangesetsPatchResponses];
1599
+ export type ChangesetsDeleteItemData = {
1600
+ body?: never;
1601
+ path: {
1602
+ /**
1603
+ * The changeset key
1604
+ */
1605
+ changeset: string;
1606
+ /**
1607
+ * The content key
1608
+ */
1609
+ key: string;
1610
+ /**
1611
+ * The content version
1612
+ */
1613
+ version: string;
1614
+ };
1615
+ query?: never;
1616
+ url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}';
1617
+ };
1618
+ export type ChangesetsDeleteItemErrors = {
1619
+ /**
1620
+ * Bad Request
1621
+ */
1622
+ 400: ProblemDetails;
1623
+ /**
1624
+ * Forbidden
1625
+ */
1626
+ 403: ProblemDetails;
1627
+ /**
1628
+ * Not Found
1629
+ */
1630
+ 404: ProblemDetails;
1631
+ };
1632
+ export type ChangesetsDeleteItemError = ChangesetsDeleteItemErrors[keyof ChangesetsDeleteItemErrors];
1633
+ export type ChangesetsDeleteItemResponses = {
1634
+ /**
1635
+ * OK
1636
+ */
1637
+ 200: ChangesetItem;
1638
+ };
1639
+ export type ChangesetsDeleteItemResponse = ChangesetsDeleteItemResponses[keyof ChangesetsDeleteItemResponses];
1640
+ export type ChangesetsGetItemData = {
1641
+ body?: never;
1642
+ path: {
1643
+ /**
1644
+ * The changeset key
1645
+ */
1646
+ changeset: string;
1647
+ /**
1648
+ * The content key
1649
+ */
1650
+ key: string;
1651
+ /**
1652
+ * The content version
1653
+ */
1654
+ version: string;
1655
+ };
1656
+ query?: never;
1657
+ url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}';
1658
+ };
1659
+ export type ChangesetsGetItemErrors = {
1660
+ /**
1661
+ * Forbidden
1662
+ */
1663
+ 403: ProblemDetails;
1664
+ /**
1665
+ * Not Found
1666
+ */
1667
+ 404: ProblemDetails;
1668
+ };
1669
+ export type ChangesetsGetItemError = ChangesetsGetItemErrors[keyof ChangesetsGetItemErrors];
1670
+ export type ChangesetsGetItemResponses = {
1671
+ /**
1672
+ * OK
1673
+ */
1674
+ 200: ChangesetItem;
1675
+ };
1676
+ export type ChangesetsGetItemResponse = ChangesetsGetItemResponses[keyof ChangesetsGetItemResponses];
1677
+ export type ChangesetsPatchItemData = {
1678
+ /**
1679
+ * The values of the changeset item that should be patched formatted according to RFC7396.
1680
+ */
1681
+ body: ChangesetItemWritable;
1682
+ path: {
1683
+ /**
1684
+ * The changeset key
1685
+ */
1686
+ changeset: string;
1687
+ /**
1688
+ * The content key
1689
+ */
1690
+ key: string;
1691
+ /**
1692
+ * The content version
1693
+ */
1694
+ version: string;
1695
+ };
1696
+ query?: never;
1697
+ url: '/experimental/changesets/{changeset}/items/{key}/versions/{version}';
1698
+ };
1699
+ export type ChangesetsPatchItemErrors = {
1700
+ /**
1701
+ * Bad Request
1702
+ */
1703
+ 400: ProblemDetails;
1704
+ /**
1705
+ * Forbidden
1706
+ */
1707
+ 403: ProblemDetails;
1708
+ /**
1709
+ * Not Found
1710
+ */
1711
+ 404: ProblemDetails;
1712
+ };
1713
+ export type ChangesetsPatchItemError = ChangesetsPatchItemErrors[keyof ChangesetsPatchItemErrors];
1714
+ export type ChangesetsPatchItemResponses = {
1715
+ /**
1716
+ * OK
1717
+ */
1718
+ 200: ChangesetItem;
1719
+ };
1720
+ export type ChangesetsPatchItemResponse = ChangesetsPatchItemResponses[keyof ChangesetsPatchItemResponses];
1721
+ export type ChangesetsListItemsData = {
1722
+ body?: never;
1723
+ path: {
1724
+ /**
1725
+ * The changeset key
1726
+ */
1727
+ changeset: string;
1728
+ };
1729
+ query?: {
1730
+ pageIndex?: number;
1731
+ pageSize?: number;
1732
+ };
1733
+ url: '/experimental/changesets/{changeset}/items';
1734
+ };
1735
+ export type ChangesetsListItemsErrors = {
1736
+ /**
1737
+ * Forbidden
1738
+ */
1739
+ 403: ProblemDetails;
1740
+ /**
1741
+ * Not Found
1742
+ */
1743
+ 404: ProblemDetails;
1744
+ };
1745
+ export type ChangesetsListItemsError = ChangesetsListItemsErrors[keyof ChangesetsListItemsErrors];
1746
+ export type ChangesetsListItemsResponses = {
1747
+ /**
1748
+ * OK
1749
+ */
1750
+ 200: ChangesetItemPage;
1751
+ };
1752
+ export type ChangesetsListItemsResponse = ChangesetsListItemsResponses[keyof ChangesetsListItemsResponses];
1753
+ export type ChangesetsCreateItemData = {
1754
+ /**
1755
+ * The changeset item
1756
+ */
1757
+ body: ChangesetItemWritable;
1758
+ path: {
1759
+ /**
1760
+ * The changeset key
1761
+ */
1762
+ changeset: string;
1763
+ };
1764
+ query?: never;
1765
+ url: '/experimental/changesets/{changeset}/items';
1766
+ };
1767
+ export type ChangesetsCreateItemErrors = {
1768
+ /**
1769
+ * Bad Request
1770
+ */
1771
+ 400: ProblemDetails;
1772
+ /**
1773
+ * Forbidden
1774
+ */
1775
+ 403: ProblemDetails;
1776
+ /**
1777
+ * Not Found
1778
+ */
1779
+ 404: ProblemDetails;
1780
+ };
1781
+ export type ChangesetsCreateItemError = ChangesetsCreateItemErrors[keyof ChangesetsCreateItemErrors];
1782
+ export type ChangesetsCreateItemResponses = {
1783
+ /**
1784
+ * Created
1785
+ */
1786
+ 201: ChangesetItem;
1787
+ };
1788
+ export type ChangesetsCreateItemResponse = ChangesetsCreateItemResponses[keyof ChangesetsCreateItemResponses];
1789
+ export type ContentCreateData = {
1790
+ /**
1791
+ * The content item that should be created.
1792
+ */
1793
+ body: ContentItemWritable;
1794
+ headers?: {
1795
+ /**
1796
+ * Indicates that the content validation should be ignored.
1797
+ */
1798
+ 'cms-skip-validation'?: boolean;
1799
+ };
1800
+ path?: never;
1801
+ query?: never;
1802
+ url: '/experimental/content';
1803
+ };
1804
+ export type ContentCreateErrors = {
1805
+ /**
1806
+ * Bad Request
1807
+ */
1808
+ 400: ProblemDetails;
1809
+ /**
1810
+ * Forbidden
1811
+ */
1812
+ 403: ProblemDetails;
1813
+ };
1814
+ export type ContentCreateError = ContentCreateErrors[keyof ContentCreateErrors];
1815
+ export type ContentCreateResponses = {
1816
+ /**
1817
+ * Created
1818
+ */
1819
+ 201: ContentItem;
1820
+ };
1821
+ export type ContentCreateResponse = ContentCreateResponses[keyof ContentCreateResponses];
1822
+ export type ContentDeleteData = {
1823
+ body?: never;
1824
+ headers?: {
1825
+ /**
1826
+ * Indicates that the content item should be permanently deleted immediately or if it should be soft deleted first.
1827
+ */
1828
+ 'cms-permanent-delete'?: boolean;
1829
+ };
1830
+ path: {
1831
+ /**
1832
+ * The key of the content item to delete.
1833
+ */
1834
+ key: string;
1835
+ };
1836
+ query?: never;
1837
+ url: '/experimental/content/{key}';
1838
+ };
1839
+ export type ContentDeleteErrors = {
1840
+ /**
1841
+ * Bad Request
1842
+ */
1843
+ 400: ProblemDetails;
1844
+ /**
1845
+ * Forbidden
1846
+ */
1847
+ 403: ProblemDetails;
1848
+ /**
1849
+ * Not Found
1850
+ */
1851
+ 404: ProblemDetails;
1852
+ };
1853
+ export type ContentDeleteError = ContentDeleteErrors[keyof ContentDeleteErrors];
1854
+ export type ContentDeleteResponses = {
1855
+ /**
1856
+ * OK
1857
+ */
1858
+ 200: ContentMetadata;
1859
+ };
1860
+ export type ContentDeleteResponse = ContentDeleteResponses[keyof ContentDeleteResponses];
1861
+ export type ContentGetMetadataData = {
1862
+ body?: never;
1863
+ path: {
1864
+ /**
1865
+ * The key of the content to retrieve metadata for.
1866
+ */
1867
+ key: string;
1868
+ };
1869
+ query?: {
1870
+ /**
1871
+ * Indicates that metadata for a deleted content may be returned.
1872
+ */
1873
+ allowDeleted?: boolean;
1874
+ };
1875
+ url: '/experimental/content/{key}';
1876
+ };
1877
+ export type ContentGetMetadataErrors = {
1878
+ /**
1879
+ * Forbidden
1880
+ */
1881
+ 403: ProblemDetails;
1882
+ /**
1883
+ * Not Found
1884
+ */
1885
+ 404: ProblemDetails;
1886
+ };
1887
+ export type ContentGetMetadataError = ContentGetMetadataErrors[keyof ContentGetMetadataErrors];
1888
+ export type ContentGetMetadataResponses = {
1889
+ /**
1890
+ * OK
1891
+ */
1892
+ 200: ContentMetadata;
1893
+ };
1894
+ export type ContentGetMetadataResponse = ContentGetMetadataResponses[keyof ContentGetMetadataResponses];
1895
+ export type ContentPatchMetadataData = {
1896
+ /**
1897
+ * The values of the content item that should be patched.
1898
+ */
1899
+ body: ContentMetadataWritable;
1900
+ path: {
1901
+ /**
1902
+ * The key of the content item to patch.
1903
+ */
1904
+ key: string;
1905
+ };
1906
+ query?: never;
1907
+ url: '/experimental/content/{key}';
1908
+ };
1909
+ export type ContentPatchMetadataErrors = {
1910
+ /**
1911
+ * Bad Request
1912
+ */
1913
+ 400: ProblemDetails;
1914
+ /**
1915
+ * Forbidden
1916
+ */
1917
+ 403: ProblemDetails;
1918
+ /**
1919
+ * Not Found
1920
+ */
1921
+ 404: ProblemDetails;
1922
+ };
1923
+ export type ContentPatchMetadataError = ContentPatchMetadataErrors[keyof ContentPatchMetadataErrors];
1924
+ export type ContentPatchMetadataResponses = {
1925
+ /**
1926
+ * OK
1927
+ */
1928
+ 200: ContentMetadata;
1929
+ };
1930
+ export type ContentPatchMetadataResponse = ContentPatchMetadataResponses[keyof ContentPatchMetadataResponses];
1931
+ export type ContentGetPathData = {
1932
+ body?: never;
1933
+ path: {
1934
+ /**
1935
+ * The key of the content path to retrieve.
1936
+ */
1937
+ key: string;
1938
+ };
1939
+ query?: {
1940
+ pageIndex?: number;
1941
+ pageSize?: number;
1942
+ };
1943
+ url: '/experimental/content/{key}/path';
1944
+ };
1945
+ export type ContentGetPathErrors = {
1946
+ /**
1947
+ * Forbidden
1948
+ */
1949
+ 403: ProblemDetails;
1950
+ /**
1951
+ * Not Found
1952
+ */
1953
+ 404: ProblemDetails;
1954
+ };
1955
+ export type ContentGetPathError = ContentGetPathErrors[keyof ContentGetPathErrors];
1956
+ export type ContentGetPathResponses = {
1957
+ /**
1958
+ * OK
1959
+ */
1960
+ 200: ContentMetadataPage;
1961
+ };
1962
+ export type ContentGetPathResponse = ContentGetPathResponses[keyof ContentGetPathResponses];
1963
+ export type ContentListItemsData = {
1964
+ body?: never;
1965
+ path: {
1966
+ /**
1967
+ * The key of the content to retrieve items for.
1968
+ */
1969
+ key: string;
1970
+ };
1971
+ query?: {
1972
+ /**
1973
+ * Indicates which content types or base types to include in the list.
1974
+ */
1975
+ contentTypes?: Array<string>;
1976
+ pageIndex?: number;
1977
+ pageSize?: number;
1978
+ };
1979
+ url: '/experimental/content/{key}/items';
1980
+ };
1981
+ export type ContentListItemsErrors = {
1982
+ /**
1983
+ * Forbidden
1984
+ */
1985
+ 403: ProblemDetails;
1986
+ /**
1987
+ * Not Found
1988
+ */
1989
+ 404: ProblemDetails;
1990
+ };
1991
+ export type ContentListItemsError = ContentListItemsErrors[keyof ContentListItemsErrors];
1992
+ export type ContentListItemsResponses = {
1993
+ /**
1994
+ * OK
1995
+ */
1996
+ 200: ContentMetadataPage;
1997
+ };
1998
+ export type ContentListItemsResponse = ContentListItemsResponses[keyof ContentListItemsResponses];
1999
+ export type ContentListAssetsData = {
2000
+ body?: never;
2001
+ path: {
2002
+ /**
2003
+ * The key of the content to retrieve assets for.
2004
+ */
2005
+ key: string;
2006
+ };
2007
+ query?: {
2008
+ /**
2009
+ * Indicates which content types or base types to include in the list.
2010
+ */
2011
+ contentTypes?: Array<string>;
2012
+ pageIndex?: number;
2013
+ pageSize?: number;
2014
+ };
2015
+ url: '/experimental/content/{key}/assets';
2016
+ };
2017
+ export type ContentListAssetsErrors = {
2018
+ /**
2019
+ * Forbidden
2020
+ */
2021
+ 403: ProblemDetails;
2022
+ /**
2023
+ * Not Found
2024
+ */
2025
+ 404: ProblemDetails;
2026
+ };
2027
+ export type ContentListAssetsError = ContentListAssetsErrors[keyof ContentListAssetsErrors];
2028
+ export type ContentListAssetsResponses = {
2029
+ /**
2030
+ * OK
2031
+ */
2032
+ 200: ContentMetadataPage;
2033
+ };
2034
+ export type ContentListAssetsResponse = ContentListAssetsResponses[keyof ContentListAssetsResponses];
2035
+ export type ContentCopyData = {
2036
+ /**
2037
+ * Optional instructions for how to copy content.
2038
+ */
2039
+ body?: CopyContentOptions;
2040
+ path: {
2041
+ /**
2042
+ * The key of the content item to copy.
2043
+ */
2044
+ key: string;
2045
+ };
2046
+ query?: never;
2047
+ url: '/experimental/content/{key}:copy';
2048
+ };
2049
+ export type ContentCopyErrors = {
2050
+ /**
2051
+ * Bad Request
2052
+ */
2053
+ 400: ProblemDetails;
2054
+ /**
2055
+ * Forbidden
2056
+ */
2057
+ 403: ProblemDetails;
2058
+ /**
2059
+ * Not Found
2060
+ */
2061
+ 404: ProblemDetails;
2062
+ };
2063
+ export type ContentCopyError = ContentCopyErrors[keyof ContentCopyErrors];
2064
+ export type ContentCopyResponses = {
2065
+ /**
2066
+ * OK
2067
+ */
2068
+ 200: ContentMetadata;
2069
+ };
2070
+ export type ContentCopyResponse = ContentCopyResponses[keyof ContentCopyResponses];
2071
+ export type ContentUndeleteData = {
2072
+ body?: never;
2073
+ path: {
2074
+ /**
2075
+ * The key of the content item to undelete.
2076
+ */
2077
+ key: string;
2078
+ };
2079
+ query?: never;
2080
+ url: '/experimental/content/{key}:undelete';
2081
+ };
2082
+ export type ContentUndeleteErrors = {
2083
+ /**
2084
+ * Bad Request
2085
+ */
2086
+ 400: ProblemDetails;
2087
+ /**
2088
+ * Forbidden
2089
+ */
2090
+ 403: ProblemDetails;
2091
+ /**
2092
+ * Not Found
2093
+ */
2094
+ 404: ProblemDetails;
2095
+ };
2096
+ export type ContentUndeleteError = ContentUndeleteErrors[keyof ContentUndeleteErrors];
2097
+ export type ContentUndeleteResponses = {
2098
+ /**
2099
+ * OK
2100
+ */
2101
+ 200: ContentMetadata;
2102
+ };
2103
+ export type ContentUndeleteResponse = ContentUndeleteResponses[keyof ContentUndeleteResponses];
2104
+ export type ContentListAllVersionsData = {
2105
+ body?: never;
2106
+ path?: never;
2107
+ query?: {
2108
+ /**
2109
+ * Indicates which content locales that should be listed. Use 'NEUTRAL' to include locale-neutral content.
2110
+ * Locale must be a valid IETF BCP-47 language tag.
2111
+ */
2112
+ locales?: Array<string>;
2113
+ /**
2114
+ * Indicates which status content versions must have to be listed.
2115
+ */
2116
+ statuses?: Array<'draft' | 'ready' | 'published' | 'previous' | 'scheduled' | 'rejected' | 'inReview'>;
2117
+ pageIndex?: number;
2118
+ pageSize?: number;
2119
+ };
2120
+ url: '/experimental/content/versions';
2121
+ };
2122
+ export type ContentListAllVersionsErrors = {
2123
+ /**
2124
+ * Forbidden
2125
+ */
2126
+ 403: ProblemDetails;
2127
+ };
2128
+ export type ContentListAllVersionsError = ContentListAllVersionsErrors[keyof ContentListAllVersionsErrors];
2129
+ export type ContentListAllVersionsResponses = {
2130
+ /**
2131
+ * OK
2132
+ */
2133
+ 200: ContentItemPage;
2134
+ };
2135
+ export type ContentListAllVersionsResponse = ContentListAllVersionsResponses[keyof ContentListAllVersionsResponses];
2136
+ export type ContentDeleteLocaleData = {
2137
+ body?: never;
2138
+ path: {
2139
+ key: string;
2140
+ };
2141
+ query?: {
2142
+ locale?: string;
2143
+ };
2144
+ url: '/experimental/content/{key}/versions';
2145
+ };
2146
+ export type ContentDeleteLocaleErrors = {
2147
+ /**
2148
+ * Bad Request
2149
+ */
2150
+ 400: ProblemDetails;
2151
+ /**
2152
+ * Forbidden
2153
+ */
2154
+ 403: ProblemDetails;
2155
+ /**
2156
+ * Not Found
2157
+ */
2158
+ 404: ProblemDetails;
2159
+ };
2160
+ export type ContentDeleteLocaleError = ContentDeleteLocaleErrors[keyof ContentDeleteLocaleErrors];
2161
+ export type ContentDeleteLocaleResponses = {
2162
+ /**
2163
+ * OK
2164
+ */
2165
+ 200: ContentItem;
2166
+ };
2167
+ export type ContentDeleteLocaleResponse = ContentDeleteLocaleResponses[keyof ContentDeleteLocaleResponses];
2168
+ export type ContentListVersionsData = {
2169
+ body?: never;
2170
+ path: {
2171
+ key: string;
2172
+ };
2173
+ query?: {
2174
+ /**
2175
+ * Indicates which content locales that should be listed. Use 'NEUTRAL' to include locale-neutral content.
2176
+ * Locale must be a valid IETF BCP-47 language tag.
2177
+ */
2178
+ locales?: Array<string>;
2179
+ /**
2180
+ * Indicates which status content versions must have to be listed.
2181
+ */
2182
+ statuses?: Array<'draft' | 'ready' | 'published' | 'previous' | 'scheduled' | 'rejected' | 'inReview'>;
2183
+ pageIndex?: number;
2184
+ pageSize?: number;
2185
+ };
2186
+ url: '/experimental/content/{key}/versions';
2187
+ };
2188
+ export type ContentListVersionsErrors = {
2189
+ /**
2190
+ * Forbidden
2191
+ */
2192
+ 403: ProblemDetails;
2193
+ /**
2194
+ * Not Found
2195
+ */
2196
+ 404: ProblemDetails;
2197
+ };
2198
+ export type ContentListVersionsError = ContentListVersionsErrors[keyof ContentListVersionsErrors];
2199
+ export type ContentListVersionsResponses = {
2200
+ /**
2201
+ * OK
2202
+ */
2203
+ 200: ContentItemPage;
2204
+ };
2205
+ export type ContentListVersionsResponse = ContentListVersionsResponses[keyof ContentListVersionsResponses];
2206
+ export type ContentCreateVersionData = {
2207
+ /**
2208
+ * The content version that should be created.
2209
+ */
2210
+ body: ContentItemWritable;
2211
+ headers?: {
2212
+ /**
2213
+ * Indicates that the content validation should be ignored.
2214
+ */
2215
+ 'cms-skip-validation'?: boolean;
2216
+ };
2217
+ path: {
2218
+ /**
2219
+ * The key of the content item for which a new content version should be created.
2220
+ */
2221
+ key: string;
2222
+ };
2223
+ query?: never;
2224
+ url: '/experimental/content/{key}/versions';
2225
+ };
2226
+ export type ContentCreateVersionErrors = {
2227
+ /**
2228
+ * Bad Request
2229
+ */
2230
+ 400: ProblemDetails;
2231
+ /**
2232
+ * Forbidden
2233
+ */
2234
+ 403: ProblemDetails;
2235
+ /**
2236
+ * Not Found
2237
+ */
2238
+ 404: ProblemDetails;
2239
+ };
2240
+ export type ContentCreateVersionError = ContentCreateVersionErrors[keyof ContentCreateVersionErrors];
2241
+ export type ContentCreateVersionResponses = {
2242
+ /**
2243
+ * Created
2244
+ */
2245
+ 201: ContentItem;
2246
+ };
2247
+ export type ContentCreateVersionResponse = ContentCreateVersionResponses[keyof ContentCreateVersionResponses];
2248
+ export type ContentDeleteVersionData = {
2249
+ body?: never;
2250
+ path: {
2251
+ key: string;
2252
+ version: string;
2253
+ };
2254
+ query?: never;
2255
+ url: '/experimental/content/{key}/versions/{version}';
2256
+ };
2257
+ export type ContentDeleteVersionErrors = {
2258
+ /**
2259
+ * Bad Request
2260
+ */
2261
+ 400: ProblemDetails;
2262
+ /**
2263
+ * Forbidden
2264
+ */
2265
+ 403: ProblemDetails;
2266
+ /**
2267
+ * Not Found
2268
+ */
2269
+ 404: ProblemDetails;
2270
+ };
2271
+ export type ContentDeleteVersionError = ContentDeleteVersionErrors[keyof ContentDeleteVersionErrors];
2272
+ export type ContentDeleteVersionResponses = {
2273
+ /**
2274
+ * OK
2275
+ */
2276
+ 200: ContentItem;
2277
+ };
2278
+ export type ContentDeleteVersionResponse = ContentDeleteVersionResponses[keyof ContentDeleteVersionResponses];
2279
+ export type ContentGetVersionData = {
2280
+ body?: never;
2281
+ headers?: {
2282
+ /**
2283
+ * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
2284
+ */
2285
+ 'If-None-Match'?: string;
2286
+ /**
2287
+ * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
2288
+ */
2289
+ 'If-Modified-Since'?: string;
2290
+ };
2291
+ path: {
2292
+ key: string;
2293
+ version: string;
2294
+ };
2295
+ query?: {
2296
+ locale?: string;
2297
+ };
2298
+ url: '/experimental/content/{key}/versions/{version}';
2299
+ };
2300
+ export type ContentGetVersionErrors = {
2301
+ /**
2302
+ * Forbidden
2303
+ */
2304
+ 403: ProblemDetails;
2305
+ /**
2306
+ * Not Found
2307
+ */
2308
+ 404: ProblemDetails;
2309
+ };
2310
+ export type ContentGetVersionError = ContentGetVersionErrors[keyof ContentGetVersionErrors];
2311
+ export type ContentGetVersionResponses = {
2312
+ /**
2313
+ * OK
2314
+ */
2315
+ 200: ContentItem;
2316
+ };
2317
+ export type ContentGetVersionResponse = ContentGetVersionResponses[keyof ContentGetVersionResponses];
2318
+ export type ContentPatchVersionData = {
2319
+ /**
2320
+ * The content information that should be patched.
2321
+ */
2322
+ body: ContentItemWritable;
2323
+ headers?: {
2324
+ /**
2325
+ * Indicates that the content validation should be ignored.
2326
+ */
2327
+ 'cms-skip-validation'?: boolean;
2328
+ };
2329
+ path: {
2330
+ /**
2331
+ * The key of the content item that should be patched.
2332
+ */
2333
+ key: string;
2334
+ /**
2335
+ * The version of the content that should be patched.
2336
+ */
2337
+ version: string;
2338
+ };
2339
+ query?: {
2340
+ /**
2341
+ * The locale of the content that should be patched.
2342
+ */
2343
+ locale?: string;
2344
+ };
2345
+ url: '/experimental/content/{key}/versions/{version}';
2346
+ };
2347
+ export type ContentPatchVersionErrors = {
2348
+ /**
2349
+ * Bad Request
2350
+ */
2351
+ 400: ProblemDetails;
2352
+ /**
2353
+ * Forbidden
2354
+ */
2355
+ 403: ProblemDetails;
2356
+ /**
2357
+ * Not Found
2358
+ */
2359
+ 404: ProblemDetails;
2360
+ };
2361
+ export type ContentPatchVersionError = ContentPatchVersionErrors[keyof ContentPatchVersionErrors];
2362
+ export type ContentPatchVersionResponses = {
2363
+ /**
2364
+ * OK
2365
+ */
2366
+ 200: ContentItem;
2367
+ };
2368
+ export type ContentPatchVersionResponse = ContentPatchVersionResponses[keyof ContentPatchVersionResponses];
645
2369
  export type ContentTypesListData = {
646
2370
  body?: never;
647
2371
  path?: never;
@@ -707,11 +2431,11 @@ export type ContentTypesDeleteData = {
707
2431
  /**
708
2432
  * If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
709
2433
  */
710
- ifMatch?: string;
2434
+ 'If-Match'?: string;
711
2435
  /**
712
2436
  * If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
713
2437
  */
714
- ifUnmodifiedSince?: string;
2438
+ 'If-Unmodified-Since'?: string;
715
2439
  };
716
2440
  path: {
717
2441
  /**
@@ -754,11 +2478,11 @@ export type ContentTypesGetData = {
754
2478
  /**
755
2479
  * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
756
2480
  */
757
- ifNoneMatch?: string;
2481
+ 'If-None-Match'?: string;
758
2482
  /**
759
2483
  * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
760
2484
  */
761
- ifModifiedSince?: string;
2485
+ 'If-Modified-Since'?: string;
762
2486
  };
763
2487
  path: {
764
2488
  /**
@@ -796,15 +2520,15 @@ export type ContentTypesPatchData = {
796
2520
  /**
797
2521
  * Patch the content type even though the changes might result in data loss.
798
2522
  */
799
- cmsIgnoreDataLossWarnings?: boolean;
2523
+ 'cms-ignore-data-loss-warnings'?: boolean;
800
2524
  /**
801
2525
  * If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
802
2526
  */
803
- ifMatch?: string;
2527
+ 'If-Match'?: string;
804
2528
  /**
805
2529
  * If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
806
2530
  */
807
- ifUnmodifiedSince?: string;
2531
+ 'If-Unmodified-Since'?: string;
808
2532
  };
809
2533
  path: {
810
2534
  /**
@@ -897,11 +2621,11 @@ export type DisplayTemplatesDeleteData = {
897
2621
  /**
898
2622
  * If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
899
2623
  */
900
- ifMatch?: string;
2624
+ 'If-Match'?: string;
901
2625
  /**
902
2626
  * If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
903
2627
  */
904
- ifUnmodifiedSince?: string;
2628
+ 'If-Unmodified-Since'?: string;
905
2629
  };
906
2630
  path: {
907
2631
  /**
@@ -944,11 +2668,11 @@ export type DisplayTemplatesGetData = {
944
2668
  /**
945
2669
  * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
946
2670
  */
947
- ifNoneMatch?: string;
2671
+ 'If-None-Match'?: string;
948
2672
  /**
949
2673
  * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
950
2674
  */
951
- ifModifiedSince?: string;
2675
+ 'If-Modified-Since'?: string;
952
2676
  };
953
2677
  path: {
954
2678
  /**
@@ -986,11 +2710,11 @@ export type DisplayTemplatesPatchData = {
986
2710
  /**
987
2711
  * If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
988
2712
  */
989
- ifMatch?: string;
2713
+ 'If-Match'?: string;
990
2714
  /**
991
2715
  * If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
992
2716
  */
993
- ifUnmodifiedSince?: string;
2717
+ 'If-Unmodified-Since'?: string;
994
2718
  };
995
2719
  path: {
996
2720
  /**
@@ -1056,11 +2780,11 @@ export type PropertyFormatsGetData = {
1056
2780
  /**
1057
2781
  * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
1058
2782
  */
1059
- ifNoneMatch?: string;
2783
+ 'If-None-Match'?: string;
1060
2784
  /**
1061
2785
  * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
1062
2786
  */
1063
- ifModifiedSince?: string;
2787
+ 'If-Modified-Since'?: string;
1064
2788
  };
1065
2789
  path: {
1066
2790
  /**
@@ -1153,11 +2877,11 @@ export type PropertyGroupsDeleteData = {
1153
2877
  /**
1154
2878
  * If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
1155
2879
  */
1156
- ifMatch?: string;
2880
+ 'If-Match'?: string;
1157
2881
  /**
1158
2882
  * If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
1159
2883
  */
1160
- ifUnmodifiedSince?: string;
2884
+ 'If-Unmodified-Since'?: string;
1161
2885
  };
1162
2886
  path: {
1163
2887
  /**
@@ -1200,11 +2924,11 @@ export type PropertyGroupsGetData = {
1200
2924
  /**
1201
2925
  * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
1202
2926
  */
1203
- ifNoneMatch?: string;
2927
+ 'If-None-Match'?: string;
1204
2928
  /**
1205
2929
  * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
1206
2930
  */
1207
- ifModifiedSince?: string;
2931
+ 'If-Modified-Since'?: string;
1208
2932
  };
1209
2933
  path: {
1210
2934
  /**
@@ -1242,11 +2966,11 @@ export type PropertyGroupsPatchData = {
1242
2966
  /**
1243
2967
  * If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
1244
2968
  */
1245
- ifMatch?: string;
2969
+ 'If-Match'?: string;
1246
2970
  /**
1247
2971
  * If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
1248
2972
  */
1249
- ifUnmodifiedSince?: string;
2973
+ 'If-Unmodified-Since'?: string;
1250
2974
  };
1251
2975
  path: {
1252
2976
  /**