@remkoj/optimizely-cms-api 6.0.0-pre9 → 6.0.0-rc.1
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/README.md +6 -2
- package/dist/api-client.d.ts +1 -13
- package/dist/api-client.js +1 -48
- package/dist/client/client/client.gen.js +36 -5
- package/dist/client/client/index.d.ts +1 -1
- package/dist/client/client/types.gen.d.ts +3 -10
- package/dist/client/client/utils.gen.d.ts +1 -1
- package/dist/client/client/utils.gen.js +9 -11
- package/dist/client/client.gen.js +2 -4
- package/dist/client/core/bodySerializer.gen.d.ts +16 -8
- package/dist/client/core/bodySerializer.gen.js +1 -1
- package/dist/client/core/params.gen.d.ts +10 -0
- package/dist/client/core/params.gen.js +18 -6
- package/dist/client/core/pathSerializer.gen.js +3 -11
- package/dist/client/core/queryKeySerializer.gen.js +4 -11
- package/dist/client/core/serverSentEvents.gen.js +5 -7
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +98 -17
- package/dist/client/sdk.gen.d.ts +211 -1
- package/dist/client/sdk.gen.js +506 -144
- package/dist/client/transformers.gen.d.ts +27 -1
- package/dist/client/transformers.gen.js +246 -46
- package/dist/client/types.gen.d.ts +1818 -44
- package/dist/client-config.js +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -2
- package/dist/version.json +2 -2
- package/package.json +9 -9
- package/dist/instance.client/client/client.gen.d.ts +0 -2
- package/dist/instance.client/client/client.gen.js +0 -208
- package/dist/instance.client/client/index.d.ts +0 -8
- package/dist/instance.client/client/index.js +0 -17
- package/dist/instance.client/client/types.gen.d.ts +0 -124
- package/dist/instance.client/client/types.gen.js +0 -3
- package/dist/instance.client/client/utils.gen.d.ts +0 -33
- package/dist/instance.client/client/utils.gen.js +0 -241
- package/dist/instance.client/client.gen.d.ts +0 -12
- package/dist/instance.client/client.gen.js +0 -9
- package/dist/instance.client/core/auth.gen.d.ts +0 -18
- package/dist/instance.client/core/auth.gen.js +0 -18
- package/dist/instance.client/core/bodySerializer.gen.d.ts +0 -17
- package/dist/instance.client/core/bodySerializer.gen.js +0 -60
- package/dist/instance.client/core/params.gen.d.ts +0 -33
- package/dist/instance.client/core/params.gen.js +0 -92
- package/dist/instance.client/core/pathSerializer.gen.d.ts +0 -33
- package/dist/instance.client/core/pathSerializer.gen.js +0 -123
- package/dist/instance.client/core/queryKeySerializer.gen.d.ts +0 -18
- package/dist/instance.client/core/queryKeySerializer.gen.js +0 -105
- package/dist/instance.client/core/serverSentEvents.gen.d.ts +0 -71
- package/dist/instance.client/core/serverSentEvents.gen.js +0 -139
- package/dist/instance.client/core/types.gen.d.ts +0 -78
- package/dist/instance.client/core/types.gen.js +0 -3
- package/dist/instance.client/core/utils.gen.d.ts +0 -19
- package/dist/instance.client/core/utils.gen.js +0 -93
- package/dist/instance.client/index.d.ts +0 -4
- package/dist/instance.client/index.js +0 -21
- package/dist/instance.client/sdk.gen.d.ts +0 -256
- package/dist/instance.client/sdk.gen.js +0 -638
- package/dist/instance.client/transformers.gen.d.ts +0 -34
- package/dist/instance.client/transformers.gen.js +0 -273
- package/dist/instance.client/types.gen.d.ts +0 -2838
- package/dist/instance.client/types.gen.js +0 -3
|
@@ -1,2838 +0,0 @@
|
|
|
1
|
-
export type ClientOptions = {
|
|
2
|
-
baseUrl: `${string}://${string}/_cms/preview2` | (string & {});
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Describes a property that can contain a reference to binary data.
|
|
6
|
-
*/
|
|
7
|
-
export type BinaryProperty = ContentTypeProperty & {
|
|
8
|
-
type: 'BinaryProperty';
|
|
9
|
-
} & {
|
|
10
|
-
imageDescriptor?: ImageDescriptor;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Describes a property that can contain a boolean value.
|
|
14
|
-
*/
|
|
15
|
-
export type BooleanProperty = ContentTypeProperty & {
|
|
16
|
-
type: 'BooleanProperty';
|
|
17
|
-
} & {};
|
|
18
|
-
/**
|
|
19
|
-
* Changesets are used to group work on several content items together.
|
|
20
|
-
*/
|
|
21
|
-
export type Changeset = {
|
|
22
|
-
/**
|
|
23
|
-
* The unique key of this Changeset.
|
|
24
|
-
*/
|
|
25
|
-
key: string;
|
|
26
|
-
/**
|
|
27
|
-
* The source of this Changeset
|
|
28
|
-
*/
|
|
29
|
-
source?: string;
|
|
30
|
-
/**
|
|
31
|
-
* The name of this Changeset.
|
|
32
|
-
*/
|
|
33
|
-
displayName: string;
|
|
34
|
-
/**
|
|
35
|
-
* A timestamp indicating when this changeset was first created.
|
|
36
|
-
*/
|
|
37
|
-
readonly created?: Date;
|
|
38
|
-
/**
|
|
39
|
-
* The username of the user that created this changeset.
|
|
40
|
-
*/
|
|
41
|
-
readonly createdBy?: string;
|
|
42
|
-
lastModified?: Date;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Items in an changeset that contains a link to the specific content version.
|
|
46
|
-
*/
|
|
47
|
-
export type ChangesetItem = {
|
|
48
|
-
reference: ContentReference;
|
|
49
|
-
/**
|
|
50
|
-
* Gets/sets the changeset item category.
|
|
51
|
-
*/
|
|
52
|
-
category?: string;
|
|
53
|
-
};
|
|
54
|
-
export type ChangesetItemPage = {
|
|
55
|
-
/**
|
|
56
|
-
* The items in this paged collection.
|
|
57
|
-
*/
|
|
58
|
-
readonly items?: Array<ChangesetItem>;
|
|
59
|
-
/**
|
|
60
|
-
* The zero-based index of the current page.
|
|
61
|
-
*/
|
|
62
|
-
readonly pageIndex?: number;
|
|
63
|
-
/**
|
|
64
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
65
|
-
*/
|
|
66
|
-
readonly pageSize?: number;
|
|
67
|
-
/**
|
|
68
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
69
|
-
*/
|
|
70
|
-
readonly totalItemCount?: number;
|
|
71
|
-
};
|
|
72
|
-
export type ChangesetPage = {
|
|
73
|
-
/**
|
|
74
|
-
* The items in this paged collection.
|
|
75
|
-
*/
|
|
76
|
-
readonly items?: Array<Changeset>;
|
|
77
|
-
/**
|
|
78
|
-
* The zero-based index of the current page.
|
|
79
|
-
*/
|
|
80
|
-
readonly pageIndex?: number;
|
|
81
|
-
/**
|
|
82
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
83
|
-
*/
|
|
84
|
-
readonly pageSize?: number;
|
|
85
|
-
/**
|
|
86
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
87
|
-
*/
|
|
88
|
-
readonly totalItemCount?: number;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Describes a property list item that can contain a component instance of a specific type.
|
|
92
|
-
*/
|
|
93
|
-
export type ComponentListItem = ListPropertyItem & {
|
|
94
|
-
type: 'ComponentListItem';
|
|
95
|
-
} & {
|
|
96
|
-
/**
|
|
97
|
-
* The key of the ContentType that this ComponentListItem can contain.
|
|
98
|
-
*/
|
|
99
|
-
contentType: string;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Describes a property that can contain a component instance of a specific type.
|
|
103
|
-
*/
|
|
104
|
-
export type ComponentProperty = ContentTypeProperty & {
|
|
105
|
-
type: 'ComponentProperty';
|
|
106
|
-
} & {
|
|
107
|
-
/**
|
|
108
|
-
* The key of the ContentType that this ComponentProperty can contain.
|
|
109
|
-
*/
|
|
110
|
-
contentType: string;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Represent a Composition behavior for a ContentType.
|
|
114
|
-
*/
|
|
115
|
-
export type CompositionBehavior = 'sectionEnabled' | 'elementEnabled' | 'formsElementEnabled';
|
|
116
|
-
/**
|
|
117
|
-
* Represent the base type of a ContentType.
|
|
118
|
-
*/
|
|
119
|
-
export type ContentBaseType = 'page' | 'component' | 'media' | 'image' | 'video' | 'folder' | 'experience' | 'section' | 'element';
|
|
120
|
-
/**
|
|
121
|
-
* Represents a content component.
|
|
122
|
-
*/
|
|
123
|
-
export type ContentComponent = {
|
|
124
|
-
/**
|
|
125
|
-
* The name of the content component. If Reference is set, the name is automatically set to the name of the referenced content.
|
|
126
|
-
*/
|
|
127
|
-
name?: string;
|
|
128
|
-
/**
|
|
129
|
-
* An optional display option for the content component.
|
|
130
|
-
*/
|
|
131
|
-
displayOption?: string;
|
|
132
|
-
/**
|
|
133
|
-
* An optional group for the personalizable component.
|
|
134
|
-
*/
|
|
135
|
-
segmentationGroup?: string;
|
|
136
|
-
/**
|
|
137
|
-
* Specifies the settings for the content component.
|
|
138
|
-
*/
|
|
139
|
-
segments?: Array<string>;
|
|
140
|
-
reference?: string;
|
|
141
|
-
/**
|
|
142
|
-
* The key of the content type that this is an embedded instance of.
|
|
143
|
-
*/
|
|
144
|
-
contentType?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Dictionary with all custom properties as specified by associated ContentType
|
|
147
|
-
*/
|
|
148
|
-
content?: unknown;
|
|
149
|
-
};
|
|
150
|
-
/**
|
|
151
|
-
* Represents a version of a content item.
|
|
152
|
-
*/
|
|
153
|
-
export type ContentItem = {
|
|
154
|
-
/**
|
|
155
|
-
* Properties as they are defined by corresponding component or content type.
|
|
156
|
-
*/
|
|
157
|
-
properties?: {
|
|
158
|
-
[key: string]: unknown;
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* The key that identifies this content item.
|
|
162
|
-
*/
|
|
163
|
-
readonly key: string;
|
|
164
|
-
/**
|
|
165
|
-
* The locale of this content instance.
|
|
166
|
-
*/
|
|
167
|
-
readonly locale?: string;
|
|
168
|
-
/**
|
|
169
|
-
* The version identifier of this content instance.
|
|
170
|
-
*/
|
|
171
|
-
readonly version?: string;
|
|
172
|
-
/**
|
|
173
|
-
* The content type of this content item.
|
|
174
|
-
*/
|
|
175
|
-
readonly contentType?: string;
|
|
176
|
-
/**
|
|
177
|
-
* The display name of this content item.
|
|
178
|
-
*/
|
|
179
|
-
displayName: string;
|
|
180
|
-
/**
|
|
181
|
-
* Indicates a time when this content was published or should be published.
|
|
182
|
-
*/
|
|
183
|
-
published?: Date | null;
|
|
184
|
-
/**
|
|
185
|
-
* Indicates a time when this content expired or should expire.
|
|
186
|
-
*/
|
|
187
|
-
expired?: Date | null;
|
|
188
|
-
status?: VersionStatus;
|
|
189
|
-
/**
|
|
190
|
-
* Indicates a time when this content version should transition to published status. Must only be assigned when Status is set to Scheduled.
|
|
191
|
-
*/
|
|
192
|
-
delayPublishUntil?: Date | null;
|
|
193
|
-
/**
|
|
194
|
-
* The key that identifies the container content that this content item belongs to.
|
|
195
|
-
*/
|
|
196
|
-
container?: string | null;
|
|
197
|
-
/**
|
|
198
|
-
* The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
|
|
199
|
-
*/
|
|
200
|
-
owner?: string | null;
|
|
201
|
-
/**
|
|
202
|
-
* A string that represents the segment that should be used when routing or generate routes to the current content instance.
|
|
203
|
-
*/
|
|
204
|
-
routeSegment?: string | null;
|
|
205
|
-
lastModified?: Date;
|
|
206
|
-
/**
|
|
207
|
-
* The username of the user that made the latest modification to this content instance.
|
|
208
|
-
*/
|
|
209
|
-
readonly lastModifiedBy?: string;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* The response object for Page`1 when used ContentType are included.
|
|
213
|
-
*/
|
|
214
|
-
export type ContentItemListWithContentTypes = {
|
|
215
|
-
/**
|
|
216
|
-
* The content types that are used by the content items in the response.
|
|
217
|
-
*/
|
|
218
|
-
readonly contentTypes?: Array<ContentType>;
|
|
219
|
-
/**
|
|
220
|
-
* The content items in this paged collection.
|
|
221
|
-
*/
|
|
222
|
-
readonly items?: Array<ContentItem>;
|
|
223
|
-
/**
|
|
224
|
-
* The zero-based index of the current page.
|
|
225
|
-
*/
|
|
226
|
-
readonly pageIndex?: number;
|
|
227
|
-
/**
|
|
228
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
229
|
-
*/
|
|
230
|
-
readonly pageSize?: number;
|
|
231
|
-
/**
|
|
232
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
233
|
-
*/
|
|
234
|
-
readonly totalItemCount?: number;
|
|
235
|
-
};
|
|
236
|
-
export type ContentItemPage = {
|
|
237
|
-
/**
|
|
238
|
-
* The items in this paged collection.
|
|
239
|
-
*/
|
|
240
|
-
readonly items?: Array<ContentItem>;
|
|
241
|
-
/**
|
|
242
|
-
* The zero-based index of the current page.
|
|
243
|
-
*/
|
|
244
|
-
readonly pageIndex?: number;
|
|
245
|
-
/**
|
|
246
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
247
|
-
*/
|
|
248
|
-
readonly pageSize?: number;
|
|
249
|
-
/**
|
|
250
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
251
|
-
*/
|
|
252
|
-
readonly totalItemCount?: number;
|
|
253
|
-
};
|
|
254
|
-
/**
|
|
255
|
-
* The response object for ContentItem when used ContentType are included.
|
|
256
|
-
*/
|
|
257
|
-
export type ContentItemWithContentTypes = {
|
|
258
|
-
/**
|
|
259
|
-
* The content types that are used by the content item in the response.
|
|
260
|
-
*/
|
|
261
|
-
readonly contentTypes?: Array<ContentType>;
|
|
262
|
-
item?: ContentItem;
|
|
263
|
-
};
|
|
264
|
-
/**
|
|
265
|
-
* Describes a property list item that can hold a content item.
|
|
266
|
-
*/
|
|
267
|
-
export type ContentListItem = ListPropertyItem & {
|
|
268
|
-
type: 'ContentListItem';
|
|
269
|
-
} & {
|
|
270
|
-
/**
|
|
271
|
-
* Specifies which content types and base types these property items are allowed to contain.
|
|
272
|
-
*/
|
|
273
|
-
allowedTypes?: Array<string>;
|
|
274
|
-
/**
|
|
275
|
-
* Specifies which content types and base types these property items cannot contain.
|
|
276
|
-
*/
|
|
277
|
-
restrictedTypes?: Array<string>;
|
|
278
|
-
};
|
|
279
|
-
/**
|
|
280
|
-
* Describes information about a locale instance of a content item.
|
|
281
|
-
*/
|
|
282
|
-
export type ContentLocaleInfo = {
|
|
283
|
-
/**
|
|
284
|
-
* The display name of the content.
|
|
285
|
-
*/
|
|
286
|
-
readonly displayName?: string;
|
|
287
|
-
/**
|
|
288
|
-
* The date and time when the first locale version for the content was created.
|
|
289
|
-
*/
|
|
290
|
-
readonly created?: Date;
|
|
291
|
-
/**
|
|
292
|
-
* The username of the user that created this locale version of content.
|
|
293
|
-
*/
|
|
294
|
-
readonly createdBy?: string;
|
|
295
|
-
status?: LocaleStatus;
|
|
296
|
-
};
|
|
297
|
-
/**
|
|
298
|
-
* Represents metadata about a content item.
|
|
299
|
-
*/
|
|
300
|
-
export type ContentMetadata = {
|
|
301
|
-
/**
|
|
302
|
-
* The key that identifies this content.
|
|
303
|
-
*/
|
|
304
|
-
key?: string;
|
|
305
|
-
/**
|
|
306
|
-
* The content type of this content.
|
|
307
|
-
*/
|
|
308
|
-
contentType?: string;
|
|
309
|
-
/**
|
|
310
|
-
* Set of locales that this content has been created for.
|
|
311
|
-
*/
|
|
312
|
-
readonly locales?: {
|
|
313
|
-
[key: string]: ContentLocaleInfo;
|
|
314
|
-
};
|
|
315
|
-
/**
|
|
316
|
-
* The key that identifies the container content that this content belongs to.
|
|
317
|
-
*/
|
|
318
|
-
container?: string | null;
|
|
319
|
-
/**
|
|
320
|
-
* Indicates if the content contains any content items.
|
|
321
|
-
*/
|
|
322
|
-
readonly hasItems?: boolean;
|
|
323
|
-
/**
|
|
324
|
-
* The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
|
|
325
|
-
*/
|
|
326
|
-
owner?: string | null;
|
|
327
|
-
/**
|
|
328
|
-
* A timestamp, which if provided, indicates when this content was deleted.
|
|
329
|
-
*/
|
|
330
|
-
readonly deleted?: Date | null;
|
|
331
|
-
/**
|
|
332
|
-
* The username of the user that deleted this content.
|
|
333
|
-
*/
|
|
334
|
-
readonly deletedBy?: string | null;
|
|
335
|
-
};
|
|
336
|
-
export type ContentMetadataPage = {
|
|
337
|
-
/**
|
|
338
|
-
* The items in this paged collection.
|
|
339
|
-
*/
|
|
340
|
-
readonly items?: Array<ContentMetadata>;
|
|
341
|
-
/**
|
|
342
|
-
* The zero-based index of the current page.
|
|
343
|
-
*/
|
|
344
|
-
readonly pageIndex?: number;
|
|
345
|
-
/**
|
|
346
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
347
|
-
*/
|
|
348
|
-
readonly pageSize?: number;
|
|
349
|
-
/**
|
|
350
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
351
|
-
*/
|
|
352
|
-
readonly totalItemCount?: number;
|
|
353
|
-
};
|
|
354
|
-
/**
|
|
355
|
-
* Describes a property that can contain a content item.
|
|
356
|
-
*/
|
|
357
|
-
export type ContentProperty = ContentTypeProperty & {
|
|
358
|
-
type: 'ContentProperty';
|
|
359
|
-
} & {
|
|
360
|
-
/**
|
|
361
|
-
* Specifies which content types and base types this property is allowed to contain.
|
|
362
|
-
*/
|
|
363
|
-
allowedTypes?: Array<string>;
|
|
364
|
-
/**
|
|
365
|
-
* Specifies which content types and base types this property cannot contain.
|
|
366
|
-
*/
|
|
367
|
-
restrictedTypes?: Array<string>;
|
|
368
|
-
};
|
|
369
|
-
/**
|
|
370
|
-
* A reference to a specific content instance.
|
|
371
|
-
*/
|
|
372
|
-
export type ContentReference = {
|
|
373
|
-
/**
|
|
374
|
-
* The content key that identifies the content.
|
|
375
|
-
*/
|
|
376
|
-
readonly key?: string;
|
|
377
|
-
/**
|
|
378
|
-
* The name of the content locale
|
|
379
|
-
*/
|
|
380
|
-
readonly locale?: string;
|
|
381
|
-
/**
|
|
382
|
-
* The identifier of a specific version of the content.
|
|
383
|
-
*/
|
|
384
|
-
readonly version?: string;
|
|
385
|
-
};
|
|
386
|
-
/**
|
|
387
|
-
* Describes a property list item that can hold a reference to a content item.
|
|
388
|
-
*/
|
|
389
|
-
export type ContentReferenceListItem = ListPropertyItem & {
|
|
390
|
-
type: 'ContentReferenceListItem';
|
|
391
|
-
} & {
|
|
392
|
-
/**
|
|
393
|
-
* Specifies which content types and base types these list items are allowed to reference.
|
|
394
|
-
*/
|
|
395
|
-
allowedTypes?: Array<string>;
|
|
396
|
-
/**
|
|
397
|
-
* Specifies which content types and base types these list items cannot contain.
|
|
398
|
-
*/
|
|
399
|
-
restrictedTypes?: Array<string>;
|
|
400
|
-
};
|
|
401
|
-
/**
|
|
402
|
-
* Describes a property that can contain a reference to a content item.
|
|
403
|
-
*/
|
|
404
|
-
export type ContentReferenceProperty = ContentTypeProperty & {
|
|
405
|
-
type: 'ContentReferenceProperty';
|
|
406
|
-
} & {
|
|
407
|
-
/**
|
|
408
|
-
* Specifies which content types and base types this property is allowed to reference.
|
|
409
|
-
*/
|
|
410
|
-
allowedTypes?: Array<string>;
|
|
411
|
-
/**
|
|
412
|
-
* Specifies which content types and base types this property is restricted from referencing.
|
|
413
|
-
*/
|
|
414
|
-
restrictedTypes?: Array<string>;
|
|
415
|
-
};
|
|
416
|
-
/**
|
|
417
|
-
* A writable implementation of an ContentType.
|
|
418
|
-
*/
|
|
419
|
-
export type ContentType = {
|
|
420
|
-
/**
|
|
421
|
-
* The key that identifies this ContentType.
|
|
422
|
-
*/
|
|
423
|
-
key: string;
|
|
424
|
-
/**
|
|
425
|
-
* The display name of this ContentType.
|
|
426
|
-
*/
|
|
427
|
-
displayName?: string;
|
|
428
|
-
/**
|
|
429
|
-
* A description of this ContentType.
|
|
430
|
-
*/
|
|
431
|
-
description?: string;
|
|
432
|
-
baseType?: ContentBaseType;
|
|
433
|
-
/**
|
|
434
|
-
* A string that is used to indicate the source of this ContentType.
|
|
435
|
-
*/
|
|
436
|
-
readonly source?: string;
|
|
437
|
-
/**
|
|
438
|
-
* An value that is used to when sorting ContentType instances.
|
|
439
|
-
*/
|
|
440
|
-
sortOrder?: number;
|
|
441
|
-
/**
|
|
442
|
-
* Provides a set of features that content based on this ContentType supports.
|
|
443
|
-
* This value is assigned based on the BaseType and cannot be modified.
|
|
444
|
-
*/
|
|
445
|
-
features?: Array<ContentTypeFeature>;
|
|
446
|
-
/**
|
|
447
|
-
* Specifies how this ContentType can be used.
|
|
448
|
-
*/
|
|
449
|
-
usage?: Array<ContentTypeUsage>;
|
|
450
|
-
/**
|
|
451
|
-
* Provides a set of content types that can be created in container of this type
|
|
452
|
-
*/
|
|
453
|
-
mayContainTypes?: Array<string>;
|
|
454
|
-
/**
|
|
455
|
-
* Provides a set of media file extensions that this content type can handle.
|
|
456
|
-
*/
|
|
457
|
-
mediaFileExtensions?: Array<string>;
|
|
458
|
-
/**
|
|
459
|
-
* Provides a set of composition behaviors specifying how this content type can be used within compositions.
|
|
460
|
-
*/
|
|
461
|
-
compositionBehaviors?: Array<CompositionBehavior>;
|
|
462
|
-
/**
|
|
463
|
-
* A timestamp indicating when this ContentType was first created.
|
|
464
|
-
*/
|
|
465
|
-
readonly created?: Date;
|
|
466
|
-
/**
|
|
467
|
-
* Indicates the last time this content type was modified.
|
|
468
|
-
*/
|
|
469
|
-
readonly lastModified?: Date;
|
|
470
|
-
/**
|
|
471
|
-
* The username of the user that made the latest modification to this ContentType.
|
|
472
|
-
*/
|
|
473
|
-
readonly lastModifiedBy?: string;
|
|
474
|
-
/**
|
|
475
|
-
* Dictionary with all custom properties of this ContentType.
|
|
476
|
-
*/
|
|
477
|
-
properties?: {
|
|
478
|
-
[key: string]: ({
|
|
479
|
-
type: 'BinaryProperty';
|
|
480
|
-
} & BinaryProperty) | ({
|
|
481
|
-
type: 'BooleanProperty';
|
|
482
|
-
} & BooleanProperty) | ({
|
|
483
|
-
type: 'ComponentProperty';
|
|
484
|
-
} & ComponentProperty) | ({
|
|
485
|
-
type: 'ContentProperty';
|
|
486
|
-
} & ContentProperty) | ({
|
|
487
|
-
type: 'ContentReferenceProperty';
|
|
488
|
-
} & ContentReferenceProperty) | ({
|
|
489
|
-
type: 'DateTimeProperty';
|
|
490
|
-
} & DateTimeProperty) | ({
|
|
491
|
-
type: 'FloatProperty';
|
|
492
|
-
} & FloatProperty) | ({
|
|
493
|
-
type: 'IntegerProperty';
|
|
494
|
-
} & IntegerProperty) | ({
|
|
495
|
-
type: 'StringProperty';
|
|
496
|
-
} & StringProperty) | ({
|
|
497
|
-
type: 'UrlProperty';
|
|
498
|
-
} & UrlProperty) | ({
|
|
499
|
-
type: 'JsonStringProperty';
|
|
500
|
-
} & JsonStringProperty) | ({
|
|
501
|
-
type: 'ListProperty';
|
|
502
|
-
} & ListProperty);
|
|
503
|
-
};
|
|
504
|
-
};
|
|
505
|
-
/**
|
|
506
|
-
* Represent different features that a content type can have.
|
|
507
|
-
*/
|
|
508
|
-
export type ContentTypeFeature = 'localization' | 'versioning' | 'publishPeriod' | 'routing' | 'binary';
|
|
509
|
-
export type ContentTypePage = {
|
|
510
|
-
/**
|
|
511
|
-
* The items in this paged collection.
|
|
512
|
-
*/
|
|
513
|
-
readonly items?: Array<ContentType>;
|
|
514
|
-
/**
|
|
515
|
-
* The zero-based index of the current page.
|
|
516
|
-
*/
|
|
517
|
-
readonly pageIndex?: number;
|
|
518
|
-
/**
|
|
519
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
520
|
-
*/
|
|
521
|
-
readonly pageSize?: number;
|
|
522
|
-
/**
|
|
523
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
524
|
-
*/
|
|
525
|
-
readonly totalItemCount?: number;
|
|
526
|
-
};
|
|
527
|
-
/**
|
|
528
|
-
* Describes a property of a ContentType in the CMS.
|
|
529
|
-
*/
|
|
530
|
-
export type ContentTypeProperty = {
|
|
531
|
-
type: PropertyDataType;
|
|
532
|
-
/**
|
|
533
|
-
* The key of the PropertyFormat that this ContentTypeProperty is an instance of.
|
|
534
|
-
*/
|
|
535
|
-
format?: string | null;
|
|
536
|
-
/**
|
|
537
|
-
* The display name of this ContentTypeProperty.
|
|
538
|
-
*/
|
|
539
|
-
displayName?: string;
|
|
540
|
-
/**
|
|
541
|
-
* A description of this ContentTypeProperty.
|
|
542
|
-
*/
|
|
543
|
-
description?: string;
|
|
544
|
-
/**
|
|
545
|
-
* Indicates if a property instance of this type should be localized for each locale
|
|
546
|
-
* or if values are shared between all locales.
|
|
547
|
-
*/
|
|
548
|
-
localized?: boolean;
|
|
549
|
-
/**
|
|
550
|
-
* Indicates if a property instance of this type must always be assigned a value.
|
|
551
|
-
*/
|
|
552
|
-
required?: boolean;
|
|
553
|
-
/**
|
|
554
|
-
* A reference to the PropertyGroup that this ContentTypeProperty is part of.
|
|
555
|
-
* If this value is empty, a group may be assigned by the system.
|
|
556
|
-
*/
|
|
557
|
-
group?: string;
|
|
558
|
-
/**
|
|
559
|
-
* An value that is used to when sorting ContentTypeProperty instances.
|
|
560
|
-
*/
|
|
561
|
-
sortOrder?: number;
|
|
562
|
-
indexingType?: IndexingType;
|
|
563
|
-
/**
|
|
564
|
-
* Editor used for managing this property.
|
|
565
|
-
*/
|
|
566
|
-
editor?: string | null;
|
|
567
|
-
/**
|
|
568
|
-
* Settings for the editor.
|
|
569
|
-
*/
|
|
570
|
-
editorSettings?: {
|
|
571
|
-
[key: string]: {
|
|
572
|
-
[key: string]: unknown;
|
|
573
|
-
};
|
|
574
|
-
} | null;
|
|
575
|
-
};
|
|
576
|
-
/**
|
|
577
|
-
* Represent the usage types for a ContentType.
|
|
578
|
-
*/
|
|
579
|
-
export type ContentTypeUsage = 'property' | 'instance';
|
|
580
|
-
/**
|
|
581
|
-
* Options for copying content.
|
|
582
|
-
*/
|
|
583
|
-
export type CopyContentOptions = {
|
|
584
|
-
/**
|
|
585
|
-
* Indicates if deleted content could be used as source.
|
|
586
|
-
*/
|
|
587
|
-
allowDeleted?: boolean;
|
|
588
|
-
/**
|
|
589
|
-
* Optional key of the container where the copied content should be placed.
|
|
590
|
-
*/
|
|
591
|
-
container?: string | null;
|
|
592
|
-
/**
|
|
593
|
-
* Optional key of the owner where the copied content should be placed.
|
|
594
|
-
*/
|
|
595
|
-
owner?: string | null;
|
|
596
|
-
/**
|
|
597
|
-
* Indicates if published versions of the content should keep their published status rather than being created as a draft version at the destination.
|
|
598
|
-
*/
|
|
599
|
-
keepPublishedStatus?: boolean;
|
|
600
|
-
};
|
|
601
|
-
/**
|
|
602
|
-
* Describes a property list item that can contain a timestamp.
|
|
603
|
-
*/
|
|
604
|
-
export type DateTimeListItem = ListPropertyItem & {
|
|
605
|
-
type: 'DateTimeListItem';
|
|
606
|
-
} & {
|
|
607
|
-
/**
|
|
608
|
-
* The earliest timestamp that list items of this type should be able to contain.
|
|
609
|
-
*/
|
|
610
|
-
minimum?: Date | null;
|
|
611
|
-
/**
|
|
612
|
-
* The latest timestamp that list items of this type should be able to contain.
|
|
613
|
-
*/
|
|
614
|
-
maximum?: Date | null;
|
|
615
|
-
};
|
|
616
|
-
/**
|
|
617
|
-
* Describes a property that can contain a timestamp.
|
|
618
|
-
*/
|
|
619
|
-
export type DateTimeProperty = ContentTypeProperty & {
|
|
620
|
-
type: 'DateTimeProperty';
|
|
621
|
-
} & {
|
|
622
|
-
/**
|
|
623
|
-
* The earliest timestamp that properties of this type should be able to contain.
|
|
624
|
-
*/
|
|
625
|
-
minimum?: Date | null;
|
|
626
|
-
/**
|
|
627
|
-
* The latest timestamp that properties of this type should be able to contain.
|
|
628
|
-
*/
|
|
629
|
-
maximum?: Date | null;
|
|
630
|
-
};
|
|
631
|
-
/**
|
|
632
|
-
* Describes a setting for a display template.
|
|
633
|
-
*/
|
|
634
|
-
export type DisplaySetting = {
|
|
635
|
-
/**
|
|
636
|
-
* The display name of this display setting.
|
|
637
|
-
*/
|
|
638
|
-
displayName: string;
|
|
639
|
-
/**
|
|
640
|
-
* The suggested editor for this display setting.
|
|
641
|
-
*/
|
|
642
|
-
editor?: string;
|
|
643
|
-
/**
|
|
644
|
-
* The sort order of this display setting within the template.
|
|
645
|
-
*/
|
|
646
|
-
sortOrder?: number;
|
|
647
|
-
/**
|
|
648
|
-
* The available choices for this display setting.
|
|
649
|
-
*/
|
|
650
|
-
choices?: {
|
|
651
|
-
[key: string]: DisplaySettingChoice;
|
|
652
|
-
};
|
|
653
|
-
};
|
|
654
|
-
/**
|
|
655
|
-
* Describes a setting for a display template.
|
|
656
|
-
*/
|
|
657
|
-
export type DisplaySettingChoice = {
|
|
658
|
-
/**
|
|
659
|
-
* The display name of this display setting choice.
|
|
660
|
-
*/
|
|
661
|
-
displayName: string;
|
|
662
|
-
/**
|
|
663
|
-
* The sort order of this choice within the setting.
|
|
664
|
-
*/
|
|
665
|
-
sortOrder?: number;
|
|
666
|
-
};
|
|
667
|
-
/**
|
|
668
|
-
* Describes a display template that can be assigned to content.
|
|
669
|
-
*/
|
|
670
|
-
export type DisplayTemplate = {
|
|
671
|
-
/**
|
|
672
|
-
* The key that identifies this display template.
|
|
673
|
-
*/
|
|
674
|
-
readonly key: string;
|
|
675
|
-
/**
|
|
676
|
-
* The display name of this display template.
|
|
677
|
-
*/
|
|
678
|
-
displayName: string;
|
|
679
|
-
/**
|
|
680
|
-
* The optional node type this display template is valid for.
|
|
681
|
-
*/
|
|
682
|
-
nodeType?: string | null;
|
|
683
|
-
baseType?: ContentBaseType;
|
|
684
|
-
/**
|
|
685
|
-
* The optional key of the content type this display template is valid for.
|
|
686
|
-
*/
|
|
687
|
-
contentType?: string | null;
|
|
688
|
-
/**
|
|
689
|
-
* If this is the default display template for the associated base type,
|
|
690
|
-
* node type or content type.
|
|
691
|
-
*/
|
|
692
|
-
isDefault?: boolean;
|
|
693
|
-
/**
|
|
694
|
-
* A timestamp indicating when this display template was first created.
|
|
695
|
-
*/
|
|
696
|
-
readonly created?: Date;
|
|
697
|
-
/**
|
|
698
|
-
* The username of the user that created this display template.
|
|
699
|
-
*/
|
|
700
|
-
readonly createdBy?: string;
|
|
701
|
-
/**
|
|
702
|
-
* A timestamp indicating when this display template was last modified.
|
|
703
|
-
*/
|
|
704
|
-
readonly lastModified?: Date;
|
|
705
|
-
/**
|
|
706
|
-
* The username of the user that last modified this display template.
|
|
707
|
-
*/
|
|
708
|
-
readonly lastModifiedBy?: string;
|
|
709
|
-
/**
|
|
710
|
-
* The available settings for this display template.
|
|
711
|
-
*/
|
|
712
|
-
settings?: {
|
|
713
|
-
[key: string]: DisplaySetting;
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
|
-
export type DisplayTemplatePage = {
|
|
717
|
-
/**
|
|
718
|
-
* The items in this paged collection.
|
|
719
|
-
*/
|
|
720
|
-
readonly items?: Array<DisplayTemplate>;
|
|
721
|
-
/**
|
|
722
|
-
* The zero-based index of the current page.
|
|
723
|
-
*/
|
|
724
|
-
readonly pageIndex?: number;
|
|
725
|
-
/**
|
|
726
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
727
|
-
*/
|
|
728
|
-
readonly pageSize?: number;
|
|
729
|
-
/**
|
|
730
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
731
|
-
*/
|
|
732
|
-
readonly totalItemCount?: number;
|
|
733
|
-
};
|
|
734
|
-
/**
|
|
735
|
-
* Enumeration settings for a property or format.
|
|
736
|
-
*/
|
|
737
|
-
export type DoubleEnumerationSettings = {
|
|
738
|
-
/**
|
|
739
|
-
* Enumeration values for this property or format.
|
|
740
|
-
*/
|
|
741
|
-
values?: Array<DoubleEnumerationValue>;
|
|
742
|
-
};
|
|
743
|
-
/**
|
|
744
|
-
* Describes an enumeration value.
|
|
745
|
-
*/
|
|
746
|
-
export type DoubleEnumerationValue = {
|
|
747
|
-
/**
|
|
748
|
-
* The display name of the value.
|
|
749
|
-
*/
|
|
750
|
-
displayName?: string;
|
|
751
|
-
/**
|
|
752
|
-
* The underlying enumeration value.
|
|
753
|
-
*/
|
|
754
|
-
value?: number;
|
|
755
|
-
};
|
|
756
|
-
/**
|
|
757
|
-
* Describes a property list item that can contain a float number.
|
|
758
|
-
*/
|
|
759
|
-
export type FloatListItem = ListPropertyItem & {
|
|
760
|
-
type: 'FloatListItem';
|
|
761
|
-
} & {
|
|
762
|
-
/**
|
|
763
|
-
* The minimum value that list items of this type should be able to contain.
|
|
764
|
-
*/
|
|
765
|
-
minimum?: number | null;
|
|
766
|
-
/**
|
|
767
|
-
* The maximum value that list items of this type should be able to contain.
|
|
768
|
-
*/
|
|
769
|
-
maximum?: number | null;
|
|
770
|
-
enum?: DoubleEnumerationSettings;
|
|
771
|
-
};
|
|
772
|
-
/**
|
|
773
|
-
* Describes a property that can contain a float number.
|
|
774
|
-
*/
|
|
775
|
-
export type FloatProperty = ContentTypeProperty & {
|
|
776
|
-
type: 'FloatProperty';
|
|
777
|
-
} & {
|
|
778
|
-
/**
|
|
779
|
-
* The minimum value that properties of this type should be able to contain.
|
|
780
|
-
*/
|
|
781
|
-
minimum?: number | null;
|
|
782
|
-
/**
|
|
783
|
-
* The maximum value that properties of this type should be able to contain.
|
|
784
|
-
*/
|
|
785
|
-
maximum?: number | null;
|
|
786
|
-
enum?: DoubleEnumerationSettings;
|
|
787
|
-
};
|
|
788
|
-
/**
|
|
789
|
-
* Instruction for generating an alternative image from the main binary of an image content item.
|
|
790
|
-
*/
|
|
791
|
-
export type ImageDescriptor = {
|
|
792
|
-
/**
|
|
793
|
-
* The image width in pixels.
|
|
794
|
-
*/
|
|
795
|
-
width?: number;
|
|
796
|
-
/**
|
|
797
|
-
* The image height in pixels.
|
|
798
|
-
*/
|
|
799
|
-
height?: number;
|
|
800
|
-
/**
|
|
801
|
-
* Indicates if the image should be pregenerated when a new image is uploaded rather than when first requested.
|
|
802
|
-
*/
|
|
803
|
-
pregenerated?: boolean;
|
|
804
|
-
};
|
|
805
|
-
/**
|
|
806
|
-
* Represents the indexing type of a content type property.
|
|
807
|
-
*/
|
|
808
|
-
export type IndexingType = 'disabled' | 'queryable' | 'searchable';
|
|
809
|
-
/**
|
|
810
|
-
* Enumeration settings for a property or format.
|
|
811
|
-
*/
|
|
812
|
-
export type Int32EnumerationSettings = {
|
|
813
|
-
/**
|
|
814
|
-
* Enumeration values for this property or format.
|
|
815
|
-
*/
|
|
816
|
-
values?: Array<Int32EnumerationValue>;
|
|
817
|
-
};
|
|
818
|
-
/**
|
|
819
|
-
* Describes an enumeration value.
|
|
820
|
-
*/
|
|
821
|
-
export type Int32EnumerationValue = {
|
|
822
|
-
/**
|
|
823
|
-
* The display name of the value.
|
|
824
|
-
*/
|
|
825
|
-
displayName?: string;
|
|
826
|
-
/**
|
|
827
|
-
* The underlying enumeration value.
|
|
828
|
-
*/
|
|
829
|
-
value?: number;
|
|
830
|
-
};
|
|
831
|
-
/**
|
|
832
|
-
* Describes a property list item that can contain integers.
|
|
833
|
-
*/
|
|
834
|
-
export type IntegerListItem = ListPropertyItem & {
|
|
835
|
-
type: 'IntegerListItem';
|
|
836
|
-
} & {
|
|
837
|
-
/**
|
|
838
|
-
* The minimum value that list items of this type should be able to contain.
|
|
839
|
-
*/
|
|
840
|
-
minimum?: number | null;
|
|
841
|
-
/**
|
|
842
|
-
* The maximum value that list items of this type should be able to contain.
|
|
843
|
-
*/
|
|
844
|
-
maximum?: number | null;
|
|
845
|
-
enum?: Int32EnumerationSettings;
|
|
846
|
-
};
|
|
847
|
-
/**
|
|
848
|
-
* Describes a property that can contain an integer.
|
|
849
|
-
*/
|
|
850
|
-
export type IntegerProperty = ContentTypeProperty & {
|
|
851
|
-
type: 'IntegerProperty';
|
|
852
|
-
} & {
|
|
853
|
-
/**
|
|
854
|
-
* The minimum value that properties of this type should be able to contain.
|
|
855
|
-
*/
|
|
856
|
-
minimum?: number | null;
|
|
857
|
-
/**
|
|
858
|
-
* The maximum value that properties of this type should be able to contain.
|
|
859
|
-
*/
|
|
860
|
-
maximum?: number | null;
|
|
861
|
-
enum?: Int32EnumerationSettings;
|
|
862
|
-
};
|
|
863
|
-
/**
|
|
864
|
-
* Describes a property that can contain a JSON value in the form of a string.
|
|
865
|
-
*/
|
|
866
|
-
export type JsonStringProperty = ContentTypeProperty & {
|
|
867
|
-
type: 'JsonStringProperty';
|
|
868
|
-
} & {};
|
|
869
|
-
/**
|
|
870
|
-
* A property in the CMS that may hold a list of items.
|
|
871
|
-
*/
|
|
872
|
-
export type ListProperty = ContentTypeProperty & {
|
|
873
|
-
type: 'ListProperty';
|
|
874
|
-
} & {
|
|
875
|
-
/**
|
|
876
|
-
* Specifies the minimum number of items in this array property.
|
|
877
|
-
*/
|
|
878
|
-
minItems?: number | null;
|
|
879
|
-
/**
|
|
880
|
-
* Specifies the maximum number of items in this array property.
|
|
881
|
-
*/
|
|
882
|
-
maxItems?: number | null;
|
|
883
|
-
/**
|
|
884
|
-
* Describes the list item of a ListProperty in the CMS.
|
|
885
|
-
*/
|
|
886
|
-
items: ({
|
|
887
|
-
type: 'ComponentListItem';
|
|
888
|
-
} & ComponentListItem) | ({
|
|
889
|
-
type: 'ContentListItem';
|
|
890
|
-
} & ContentListItem) | ({
|
|
891
|
-
type: 'ContentReferenceListItem';
|
|
892
|
-
} & ContentReferenceListItem) | ({
|
|
893
|
-
type: 'DateTimeListItem';
|
|
894
|
-
} & DateTimeListItem) | ({
|
|
895
|
-
type: 'FloatListItem';
|
|
896
|
-
} & FloatListItem) | ({
|
|
897
|
-
type: 'IntegerListItem';
|
|
898
|
-
} & IntegerListItem) | ({
|
|
899
|
-
type: 'StringListItem';
|
|
900
|
-
} & StringListItem) | ({
|
|
901
|
-
type: 'UrlListItem';
|
|
902
|
-
} & UrlListItem);
|
|
903
|
-
};
|
|
904
|
-
/**
|
|
905
|
-
* Describes the list item of a ListProperty in the CMS.
|
|
906
|
-
*/
|
|
907
|
-
export type ListPropertyItem = {
|
|
908
|
-
type: PropertyDataType;
|
|
909
|
-
/**
|
|
910
|
-
* The key of the PropertyFormat that this property item is an instance of.
|
|
911
|
-
*/
|
|
912
|
-
format?: string | null;
|
|
913
|
-
};
|
|
914
|
-
/**
|
|
915
|
-
* Represent the different status values of a content locale.
|
|
916
|
-
*/
|
|
917
|
-
export type LocaleStatus = 'draft' | 'published';
|
|
918
|
-
/**
|
|
919
|
-
* Represents an OAuth JSON Web Token (JWT) and
|
|
920
|
-
* its expiry in seconds.
|
|
921
|
-
*/
|
|
922
|
-
export type OauthToken = {
|
|
923
|
-
/**
|
|
924
|
-
* Gets or sets the access token.
|
|
925
|
-
*/
|
|
926
|
-
accessToken?: string | null;
|
|
927
|
-
/**
|
|
928
|
-
* Gets or sets the expiry time in seconds.
|
|
929
|
-
*/
|
|
930
|
-
expiresIn?: number;
|
|
931
|
-
/**
|
|
932
|
-
* Gets or sets the token type.
|
|
933
|
-
*/
|
|
934
|
-
tokenType?: string;
|
|
935
|
-
};
|
|
936
|
-
/**
|
|
937
|
-
* Represents an OAuth error.
|
|
938
|
-
*/
|
|
939
|
-
export type OauthTokenError = {
|
|
940
|
-
/**
|
|
941
|
-
* Gets or sets the error.
|
|
942
|
-
*/
|
|
943
|
-
error?: string | null;
|
|
944
|
-
/**
|
|
945
|
-
* Gets or sets the error description.
|
|
946
|
-
*/
|
|
947
|
-
errorDescription?: string | null;
|
|
948
|
-
};
|
|
949
|
-
/**
|
|
950
|
-
* Represents an OAuth token request.
|
|
951
|
-
*/
|
|
952
|
-
export type OauthTokenRequest = {
|
|
953
|
-
/**
|
|
954
|
-
* Gets or sets the grant type.
|
|
955
|
-
*/
|
|
956
|
-
grantType?: string | null;
|
|
957
|
-
/**
|
|
958
|
-
* Gets or sets the client id.
|
|
959
|
-
*/
|
|
960
|
-
clientId?: string | null;
|
|
961
|
-
/**
|
|
962
|
-
* Gets or sets the client secret.
|
|
963
|
-
*/
|
|
964
|
-
clientSecret?: string | null;
|
|
965
|
-
/**
|
|
966
|
-
* Get or sets the subject to act as.
|
|
967
|
-
*/
|
|
968
|
-
actAs?: string | null;
|
|
969
|
-
};
|
|
970
|
-
export type ProblemDetails = {
|
|
971
|
-
type?: string | null;
|
|
972
|
-
title?: string | null;
|
|
973
|
-
status?: number | null;
|
|
974
|
-
detail?: string | null;
|
|
975
|
-
instance?: string | null;
|
|
976
|
-
readonly code?: string | null;
|
|
977
|
-
readonly errors?: {
|
|
978
|
-
[key: string]: Array<string>;
|
|
979
|
-
} | null;
|
|
980
|
-
[key: string]: unknown | string | null | string | null | number | null | string | null | string | null | string | null | {
|
|
981
|
-
[key: string]: Array<string>;
|
|
982
|
-
} | null | undefined;
|
|
983
|
-
};
|
|
984
|
-
/**
|
|
985
|
-
* Represent the basic type that a PropertyFormat
|
|
986
|
-
* is using for data storage and data transport.
|
|
987
|
-
*/
|
|
988
|
-
export type PropertyDataType = 'string' | 'url' | 'boolean' | 'integer' | 'float' | 'dateTime' | 'contentReference' | 'content' | 'binary' | 'json' | 'array' | 'component';
|
|
989
|
-
/**
|
|
990
|
-
* Represent the definition of semantic property formats for content items.
|
|
991
|
-
*/
|
|
992
|
-
export type PropertyFormat = {
|
|
993
|
-
/**
|
|
994
|
-
* The key that identifies this PropertyFormat.
|
|
995
|
-
*/
|
|
996
|
-
key?: string;
|
|
997
|
-
dataType?: PropertyDataType;
|
|
998
|
-
itemType?: PropertyDataType;
|
|
999
|
-
/**
|
|
1000
|
-
* The name and identifier of this PropertyFormat.
|
|
1001
|
-
*/
|
|
1002
|
-
displayName?: string;
|
|
1003
|
-
/**
|
|
1004
|
-
* Editor used for managing properties with this format.
|
|
1005
|
-
*/
|
|
1006
|
-
editor?: string | null;
|
|
1007
|
-
/**
|
|
1008
|
-
* Indicates if this property format has been deleted.
|
|
1009
|
-
*/
|
|
1010
|
-
deleted?: boolean;
|
|
1011
|
-
/**
|
|
1012
|
-
* Settings for the editor.
|
|
1013
|
-
*/
|
|
1014
|
-
editorSettings?: {
|
|
1015
|
-
[key: string]: {
|
|
1016
|
-
[key: string]: unknown;
|
|
1017
|
-
};
|
|
1018
|
-
} | null;
|
|
1019
|
-
/**
|
|
1020
|
-
* Enumerations for the format.
|
|
1021
|
-
*/
|
|
1022
|
-
enum?: {
|
|
1023
|
-
values?: Array<{
|
|
1024
|
-
value?: string | number | number;
|
|
1025
|
-
displayName?: string;
|
|
1026
|
-
}>;
|
|
1027
|
-
} | null;
|
|
1028
|
-
};
|
|
1029
|
-
export type PropertyFormatPage = {
|
|
1030
|
-
/**
|
|
1031
|
-
* The items in this paged collection.
|
|
1032
|
-
*/
|
|
1033
|
-
readonly items?: Array<PropertyFormat>;
|
|
1034
|
-
/**
|
|
1035
|
-
* The zero-based index of the current page.
|
|
1036
|
-
*/
|
|
1037
|
-
readonly pageIndex?: number;
|
|
1038
|
-
/**
|
|
1039
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
1040
|
-
*/
|
|
1041
|
-
readonly pageSize?: number;
|
|
1042
|
-
/**
|
|
1043
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
1044
|
-
*/
|
|
1045
|
-
readonly totalItemCount?: number;
|
|
1046
|
-
};
|
|
1047
|
-
/**
|
|
1048
|
-
* Describes a property group of a ContentType in the CMS.
|
|
1049
|
-
*/
|
|
1050
|
-
export type PropertyGroup = {
|
|
1051
|
-
/**
|
|
1052
|
-
* The key that identifies this PropertyGroup.
|
|
1053
|
-
*/
|
|
1054
|
-
readonly key: string;
|
|
1055
|
-
/**
|
|
1056
|
-
* The display name of this PropertyGroup.
|
|
1057
|
-
*/
|
|
1058
|
-
displayName?: string;
|
|
1059
|
-
/**
|
|
1060
|
-
* A string that is used to indicate the source of this PropertyGroup.
|
|
1061
|
-
*/
|
|
1062
|
-
readonly source?: string;
|
|
1063
|
-
/**
|
|
1064
|
-
* An value that is used to when sorting PropertyGroup instances.
|
|
1065
|
-
*/
|
|
1066
|
-
sortOrder?: number;
|
|
1067
|
-
};
|
|
1068
|
-
export type PropertyGroupPage = {
|
|
1069
|
-
/**
|
|
1070
|
-
* The items in this paged collection.
|
|
1071
|
-
*/
|
|
1072
|
-
readonly items?: Array<PropertyGroup>;
|
|
1073
|
-
/**
|
|
1074
|
-
* The zero-based index of the current page.
|
|
1075
|
-
*/
|
|
1076
|
-
readonly pageIndex?: number;
|
|
1077
|
-
/**
|
|
1078
|
-
* The number of item in each page. Not necessarily the same as the number of items in this page.
|
|
1079
|
-
*/
|
|
1080
|
-
readonly pageSize?: number;
|
|
1081
|
-
/**
|
|
1082
|
-
* The estimated total number of items in the collection. May be omitted if the total item count is unknown.
|
|
1083
|
-
*/
|
|
1084
|
-
readonly totalItemCount?: number;
|
|
1085
|
-
};
|
|
1086
|
-
/**
|
|
1087
|
-
* Enumeration settings for a property or format.
|
|
1088
|
-
*/
|
|
1089
|
-
export type StringEnumerationSettings = {
|
|
1090
|
-
/**
|
|
1091
|
-
* Enumeration values for this property or format.
|
|
1092
|
-
*/
|
|
1093
|
-
values?: Array<StringEnumerationValue>;
|
|
1094
|
-
};
|
|
1095
|
-
/**
|
|
1096
|
-
* Describes an enumeration value.
|
|
1097
|
-
*/
|
|
1098
|
-
export type StringEnumerationValue = {
|
|
1099
|
-
/**
|
|
1100
|
-
* The display name of the value.
|
|
1101
|
-
*/
|
|
1102
|
-
displayName?: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* The underlying enumeration value.
|
|
1105
|
-
*/
|
|
1106
|
-
value?: string;
|
|
1107
|
-
};
|
|
1108
|
-
/**
|
|
1109
|
-
* Describes a property list item that can contain a string.
|
|
1110
|
-
*/
|
|
1111
|
-
export type StringListItem = ListPropertyItem & {
|
|
1112
|
-
type: 'StringListItem';
|
|
1113
|
-
} & {
|
|
1114
|
-
/**
|
|
1115
|
-
* The minimum string length that list items of this type should be able to contain.
|
|
1116
|
-
*/
|
|
1117
|
-
minLength?: number | null;
|
|
1118
|
-
/**
|
|
1119
|
-
* The maximum string length that list items of this type should be able to contain.
|
|
1120
|
-
*/
|
|
1121
|
-
maxLength?: number | null;
|
|
1122
|
-
/**
|
|
1123
|
-
* Regular expression pattern that limits what strings that list items of this type should be able to contain.
|
|
1124
|
-
*/
|
|
1125
|
-
pattern?: string | null;
|
|
1126
|
-
enum?: StringEnumerationSettings;
|
|
1127
|
-
};
|
|
1128
|
-
/**
|
|
1129
|
-
* Describes a property that can contain strings.
|
|
1130
|
-
*/
|
|
1131
|
-
export type StringProperty = ContentTypeProperty & {
|
|
1132
|
-
type: 'StringProperty';
|
|
1133
|
-
} & {
|
|
1134
|
-
/**
|
|
1135
|
-
* The minimum string length that properties of this type should be able to contain.
|
|
1136
|
-
*/
|
|
1137
|
-
minLength?: number | null;
|
|
1138
|
-
/**
|
|
1139
|
-
* The maximum string length that properties of this type should be able to contain.
|
|
1140
|
-
*/
|
|
1141
|
-
maxLength?: number | null;
|
|
1142
|
-
/**
|
|
1143
|
-
* Regular expression pattern that limits what strings that properties of this type should be able to contain.
|
|
1144
|
-
*/
|
|
1145
|
-
pattern?: string | null;
|
|
1146
|
-
enum?: StringEnumerationSettings;
|
|
1147
|
-
};
|
|
1148
|
-
/**
|
|
1149
|
-
* Describes a property list item that can contain a URL.
|
|
1150
|
-
*/
|
|
1151
|
-
export type UrlListItem = ListPropertyItem & {
|
|
1152
|
-
type: 'UrlListItem';
|
|
1153
|
-
} & {};
|
|
1154
|
-
/**
|
|
1155
|
-
* Describes a property that can contain URLs.
|
|
1156
|
-
*/
|
|
1157
|
-
export type UrlProperty = ContentTypeProperty & {
|
|
1158
|
-
type: 'UrlProperty';
|
|
1159
|
-
} & {};
|
|
1160
|
-
/**
|
|
1161
|
-
* Represent the different status values of a content version.
|
|
1162
|
-
*/
|
|
1163
|
-
export type VersionStatus = 'draft' | 'ready' | 'published' | 'previous' | 'scheduled' | 'rejected' | 'inReview';
|
|
1164
|
-
/**
|
|
1165
|
-
* Changesets are used to group work on several content items together.
|
|
1166
|
-
*/
|
|
1167
|
-
export type ChangesetWritable = {
|
|
1168
|
-
/**
|
|
1169
|
-
* The unique key of this Changeset.
|
|
1170
|
-
*/
|
|
1171
|
-
key: string;
|
|
1172
|
-
/**
|
|
1173
|
-
* The source of this Changeset
|
|
1174
|
-
*/
|
|
1175
|
-
source?: string;
|
|
1176
|
-
/**
|
|
1177
|
-
* The name of this Changeset.
|
|
1178
|
-
*/
|
|
1179
|
-
displayName: string;
|
|
1180
|
-
lastModified?: Date;
|
|
1181
|
-
};
|
|
1182
|
-
/**
|
|
1183
|
-
* Items in an changeset that contains a link to the specific content version.
|
|
1184
|
-
*/
|
|
1185
|
-
export type ChangesetItemWritable = {
|
|
1186
|
-
/**
|
|
1187
|
-
* Gets/sets the changeset item category.
|
|
1188
|
-
*/
|
|
1189
|
-
category?: string;
|
|
1190
|
-
};
|
|
1191
|
-
export type ChangesetItemPageWritable = {
|
|
1192
|
-
[key: string]: never;
|
|
1193
|
-
};
|
|
1194
|
-
export type ChangesetPageWritable = {
|
|
1195
|
-
[key: string]: never;
|
|
1196
|
-
};
|
|
1197
|
-
/**
|
|
1198
|
-
* Represents a version of a content item.
|
|
1199
|
-
*/
|
|
1200
|
-
export type ContentItemWritable = {
|
|
1201
|
-
/**
|
|
1202
|
-
* Properties as they are defined by corresponding component or content type.
|
|
1203
|
-
*/
|
|
1204
|
-
properties?: {
|
|
1205
|
-
[key: string]: unknown;
|
|
1206
|
-
};
|
|
1207
|
-
/**
|
|
1208
|
-
* The display name of this content item.
|
|
1209
|
-
*/
|
|
1210
|
-
displayName: string;
|
|
1211
|
-
/**
|
|
1212
|
-
* Indicates a time when this content was published or should be published.
|
|
1213
|
-
*/
|
|
1214
|
-
published?: Date | null;
|
|
1215
|
-
/**
|
|
1216
|
-
* Indicates a time when this content expired or should expire.
|
|
1217
|
-
*/
|
|
1218
|
-
expired?: Date | null;
|
|
1219
|
-
status?: VersionStatus;
|
|
1220
|
-
/**
|
|
1221
|
-
* Indicates a time when this content version should transition to published status. Must only be assigned when Status is set to Scheduled.
|
|
1222
|
-
*/
|
|
1223
|
-
delayPublishUntil?: Date | null;
|
|
1224
|
-
/**
|
|
1225
|
-
* The key that identifies the container content that this content item belongs to.
|
|
1226
|
-
*/
|
|
1227
|
-
container?: string | null;
|
|
1228
|
-
/**
|
|
1229
|
-
* The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
|
|
1230
|
-
*/
|
|
1231
|
-
owner?: string | null;
|
|
1232
|
-
/**
|
|
1233
|
-
* A string that represents the segment that should be used when routing or generate routes to the current content instance.
|
|
1234
|
-
*/
|
|
1235
|
-
routeSegment?: string | null;
|
|
1236
|
-
lastModified?: Date;
|
|
1237
|
-
};
|
|
1238
|
-
/**
|
|
1239
|
-
* The response object for Page`1 when used ContentType are included.
|
|
1240
|
-
*/
|
|
1241
|
-
export type ContentItemListWithContentTypesWritable = {
|
|
1242
|
-
[key: string]: never;
|
|
1243
|
-
};
|
|
1244
|
-
export type ContentItemPageWritable = {
|
|
1245
|
-
[key: string]: never;
|
|
1246
|
-
};
|
|
1247
|
-
/**
|
|
1248
|
-
* The response object for ContentItem when used ContentType are included.
|
|
1249
|
-
*/
|
|
1250
|
-
export type ContentItemWithContentTypesWritable = {
|
|
1251
|
-
item?: ContentItemWritable;
|
|
1252
|
-
};
|
|
1253
|
-
/**
|
|
1254
|
-
* Describes information about a locale instance of a content item.
|
|
1255
|
-
*/
|
|
1256
|
-
export type ContentLocaleInfoWritable = {
|
|
1257
|
-
status?: LocaleStatus;
|
|
1258
|
-
};
|
|
1259
|
-
/**
|
|
1260
|
-
* Represents metadata about a content item.
|
|
1261
|
-
*/
|
|
1262
|
-
export type ContentMetadataWritable = {
|
|
1263
|
-
/**
|
|
1264
|
-
* The key that identifies this content.
|
|
1265
|
-
*/
|
|
1266
|
-
key?: string;
|
|
1267
|
-
/**
|
|
1268
|
-
* The content type of this content.
|
|
1269
|
-
*/
|
|
1270
|
-
contentType?: string;
|
|
1271
|
-
/**
|
|
1272
|
-
* The key that identifies the container content that this content belongs to.
|
|
1273
|
-
*/
|
|
1274
|
-
container?: string | null;
|
|
1275
|
-
/**
|
|
1276
|
-
* The key that identifies the owner of this content. Content that is own by another content is also known as an asset.
|
|
1277
|
-
*/
|
|
1278
|
-
owner?: string | null;
|
|
1279
|
-
};
|
|
1280
|
-
export type ContentMetadataPageWritable = {
|
|
1281
|
-
[key: string]: never;
|
|
1282
|
-
};
|
|
1283
|
-
/**
|
|
1284
|
-
* A writable implementation of an ContentType.
|
|
1285
|
-
*/
|
|
1286
|
-
export type ContentTypeWritable = {
|
|
1287
|
-
/**
|
|
1288
|
-
* The key that identifies this ContentType.
|
|
1289
|
-
*/
|
|
1290
|
-
key: string;
|
|
1291
|
-
/**
|
|
1292
|
-
* The display name of this ContentType.
|
|
1293
|
-
*/
|
|
1294
|
-
displayName?: string;
|
|
1295
|
-
/**
|
|
1296
|
-
* A description of this ContentType.
|
|
1297
|
-
*/
|
|
1298
|
-
description?: string;
|
|
1299
|
-
baseType?: ContentBaseType;
|
|
1300
|
-
/**
|
|
1301
|
-
* An value that is used to when sorting ContentType instances.
|
|
1302
|
-
*/
|
|
1303
|
-
sortOrder?: number;
|
|
1304
|
-
/**
|
|
1305
|
-
* Provides a set of features that content based on this ContentType supports.
|
|
1306
|
-
* This value is assigned based on the BaseType and cannot be modified.
|
|
1307
|
-
*/
|
|
1308
|
-
features?: Array<ContentTypeFeature>;
|
|
1309
|
-
/**
|
|
1310
|
-
* Specifies how this ContentType can be used.
|
|
1311
|
-
*/
|
|
1312
|
-
usage?: Array<ContentTypeUsage>;
|
|
1313
|
-
/**
|
|
1314
|
-
* Provides a set of content types that can be created in container of this type
|
|
1315
|
-
*/
|
|
1316
|
-
mayContainTypes?: Array<string>;
|
|
1317
|
-
/**
|
|
1318
|
-
* Provides a set of media file extensions that this content type can handle.
|
|
1319
|
-
*/
|
|
1320
|
-
mediaFileExtensions?: Array<string>;
|
|
1321
|
-
/**
|
|
1322
|
-
* Provides a set of composition behaviors specifying how this content type can be used within compositions.
|
|
1323
|
-
*/
|
|
1324
|
-
compositionBehaviors?: Array<CompositionBehavior>;
|
|
1325
|
-
/**
|
|
1326
|
-
* Dictionary with all custom properties of this ContentType.
|
|
1327
|
-
*/
|
|
1328
|
-
properties?: {
|
|
1329
|
-
[key: string]: ({
|
|
1330
|
-
type: 'BinaryProperty';
|
|
1331
|
-
} & BinaryProperty) | ({
|
|
1332
|
-
type: 'BooleanProperty';
|
|
1333
|
-
} & BooleanProperty) | ({
|
|
1334
|
-
type: 'ComponentProperty';
|
|
1335
|
-
} & ComponentProperty) | ({
|
|
1336
|
-
type: 'ContentProperty';
|
|
1337
|
-
} & ContentProperty) | ({
|
|
1338
|
-
type: 'ContentReferenceProperty';
|
|
1339
|
-
} & ContentReferenceProperty) | ({
|
|
1340
|
-
type: 'DateTimeProperty';
|
|
1341
|
-
} & DateTimeProperty) | ({
|
|
1342
|
-
type: 'FloatProperty';
|
|
1343
|
-
} & FloatProperty) | ({
|
|
1344
|
-
type: 'IntegerProperty';
|
|
1345
|
-
} & IntegerProperty) | ({
|
|
1346
|
-
type: 'StringProperty';
|
|
1347
|
-
} & StringProperty) | ({
|
|
1348
|
-
type: 'UrlProperty';
|
|
1349
|
-
} & UrlProperty) | ({
|
|
1350
|
-
type: 'JsonStringProperty';
|
|
1351
|
-
} & JsonStringProperty) | ({
|
|
1352
|
-
type: 'ListProperty';
|
|
1353
|
-
} & ListProperty);
|
|
1354
|
-
};
|
|
1355
|
-
};
|
|
1356
|
-
export type ContentTypePageWritable = {
|
|
1357
|
-
[key: string]: never;
|
|
1358
|
-
};
|
|
1359
|
-
/**
|
|
1360
|
-
* Describes a display template that can be assigned to content.
|
|
1361
|
-
*/
|
|
1362
|
-
export type DisplayTemplateWritable = {
|
|
1363
|
-
/**
|
|
1364
|
-
* The display name of this display template.
|
|
1365
|
-
*/
|
|
1366
|
-
displayName: string;
|
|
1367
|
-
/**
|
|
1368
|
-
* The optional node type this display template is valid for.
|
|
1369
|
-
*/
|
|
1370
|
-
nodeType?: string | null;
|
|
1371
|
-
baseType?: ContentBaseType;
|
|
1372
|
-
/**
|
|
1373
|
-
* The optional key of the content type this display template is valid for.
|
|
1374
|
-
*/
|
|
1375
|
-
contentType?: string | null;
|
|
1376
|
-
/**
|
|
1377
|
-
* If this is the default display template for the associated base type,
|
|
1378
|
-
* node type or content type.
|
|
1379
|
-
*/
|
|
1380
|
-
isDefault?: boolean;
|
|
1381
|
-
/**
|
|
1382
|
-
* The available settings for this display template.
|
|
1383
|
-
*/
|
|
1384
|
-
settings?: {
|
|
1385
|
-
[key: string]: DisplaySetting;
|
|
1386
|
-
};
|
|
1387
|
-
};
|
|
1388
|
-
export type DisplayTemplatePageWritable = {
|
|
1389
|
-
[key: string]: never;
|
|
1390
|
-
};
|
|
1391
|
-
export type ProblemDetailsWritable = {
|
|
1392
|
-
type?: string | null;
|
|
1393
|
-
title?: string | null;
|
|
1394
|
-
status?: number | null;
|
|
1395
|
-
detail?: string | null;
|
|
1396
|
-
instance?: string | null;
|
|
1397
|
-
[key: string]: unknown | string | null | string | null | number | null | string | null | string | null | undefined;
|
|
1398
|
-
};
|
|
1399
|
-
export type PropertyFormatPageWritable = {
|
|
1400
|
-
[key: string]: never;
|
|
1401
|
-
};
|
|
1402
|
-
/**
|
|
1403
|
-
* Describes a property group of a ContentType in the CMS.
|
|
1404
|
-
*/
|
|
1405
|
-
export type PropertyGroupWritable = {
|
|
1406
|
-
/**
|
|
1407
|
-
* The display name of this PropertyGroup.
|
|
1408
|
-
*/
|
|
1409
|
-
displayName?: string;
|
|
1410
|
-
/**
|
|
1411
|
-
* An value that is used to when sorting PropertyGroup instances.
|
|
1412
|
-
*/
|
|
1413
|
-
sortOrder?: number;
|
|
1414
|
-
};
|
|
1415
|
-
export type PropertyGroupPageWritable = {
|
|
1416
|
-
[key: string]: never;
|
|
1417
|
-
};
|
|
1418
|
-
export type ChangesetsListData = {
|
|
1419
|
-
body?: never;
|
|
1420
|
-
path?: never;
|
|
1421
|
-
query?: {
|
|
1422
|
-
pageIndex?: number;
|
|
1423
|
-
pageSize?: number;
|
|
1424
|
-
};
|
|
1425
|
-
url: '/changesets';
|
|
1426
|
-
};
|
|
1427
|
-
export type ChangesetsListErrors = {
|
|
1428
|
-
/**
|
|
1429
|
-
* Forbidden
|
|
1430
|
-
*/
|
|
1431
|
-
403: ProblemDetails;
|
|
1432
|
-
};
|
|
1433
|
-
export type ChangesetsListError = ChangesetsListErrors[keyof ChangesetsListErrors];
|
|
1434
|
-
export type ChangesetsListResponses = {
|
|
1435
|
-
/**
|
|
1436
|
-
* OK
|
|
1437
|
-
*/
|
|
1438
|
-
200: ChangesetPage;
|
|
1439
|
-
};
|
|
1440
|
-
export type ChangesetsListResponse = ChangesetsListResponses[keyof ChangesetsListResponses];
|
|
1441
|
-
export type ChangesetsCreateData = {
|
|
1442
|
-
/**
|
|
1443
|
-
* The changeset that should be created.
|
|
1444
|
-
*/
|
|
1445
|
-
body: ChangesetWritable;
|
|
1446
|
-
path?: never;
|
|
1447
|
-
query?: never;
|
|
1448
|
-
url: '/changesets';
|
|
1449
|
-
};
|
|
1450
|
-
export type ChangesetsCreateErrors = {
|
|
1451
|
-
/**
|
|
1452
|
-
* Bad Request
|
|
1453
|
-
*/
|
|
1454
|
-
400: ProblemDetails;
|
|
1455
|
-
/**
|
|
1456
|
-
* Forbidden
|
|
1457
|
-
*/
|
|
1458
|
-
403: ProblemDetails;
|
|
1459
|
-
};
|
|
1460
|
-
export type ChangesetsCreateError = ChangesetsCreateErrors[keyof ChangesetsCreateErrors];
|
|
1461
|
-
export type ChangesetsCreateResponses = {
|
|
1462
|
-
/**
|
|
1463
|
-
* OK
|
|
1464
|
-
*/
|
|
1465
|
-
200: Changeset;
|
|
1466
|
-
};
|
|
1467
|
-
export type ChangesetsCreateResponse = ChangesetsCreateResponses[keyof ChangesetsCreateResponses];
|
|
1468
|
-
export type ChangesetsDeleteData = {
|
|
1469
|
-
body?: never;
|
|
1470
|
-
path: {
|
|
1471
|
-
/**
|
|
1472
|
-
* The key of the changeset to delete.
|
|
1473
|
-
*/
|
|
1474
|
-
key: string;
|
|
1475
|
-
};
|
|
1476
|
-
query?: never;
|
|
1477
|
-
url: '/changesets/{key}';
|
|
1478
|
-
};
|
|
1479
|
-
export type ChangesetsDeleteErrors = {
|
|
1480
|
-
/**
|
|
1481
|
-
* Bad Request
|
|
1482
|
-
*/
|
|
1483
|
-
400: ProblemDetails;
|
|
1484
|
-
/**
|
|
1485
|
-
* Forbidden
|
|
1486
|
-
*/
|
|
1487
|
-
403: ProblemDetails;
|
|
1488
|
-
};
|
|
1489
|
-
export type ChangesetsDeleteError = ChangesetsDeleteErrors[keyof ChangesetsDeleteErrors];
|
|
1490
|
-
export type ChangesetsDeleteResponses = {
|
|
1491
|
-
/**
|
|
1492
|
-
* OK
|
|
1493
|
-
*/
|
|
1494
|
-
200: Changeset;
|
|
1495
|
-
};
|
|
1496
|
-
export type ChangesetsDeleteResponse = ChangesetsDeleteResponses[keyof ChangesetsDeleteResponses];
|
|
1497
|
-
export type ChangesetsGetData = {
|
|
1498
|
-
body?: never;
|
|
1499
|
-
path: {
|
|
1500
|
-
/**
|
|
1501
|
-
* The key of the changeset to retrieve.
|
|
1502
|
-
*/
|
|
1503
|
-
key: string;
|
|
1504
|
-
};
|
|
1505
|
-
query?: never;
|
|
1506
|
-
url: '/changesets/{key}';
|
|
1507
|
-
};
|
|
1508
|
-
export type ChangesetsGetErrors = {
|
|
1509
|
-
/**
|
|
1510
|
-
* Forbidden
|
|
1511
|
-
*/
|
|
1512
|
-
403: ProblemDetails;
|
|
1513
|
-
};
|
|
1514
|
-
export type ChangesetsGetError = ChangesetsGetErrors[keyof ChangesetsGetErrors];
|
|
1515
|
-
export type ChangesetsGetResponses = {
|
|
1516
|
-
/**
|
|
1517
|
-
* OK
|
|
1518
|
-
*/
|
|
1519
|
-
200: Changeset;
|
|
1520
|
-
};
|
|
1521
|
-
export type ChangesetsGetResponse = ChangesetsGetResponses[keyof ChangesetsGetResponses];
|
|
1522
|
-
export type ChangesetsPutData = {
|
|
1523
|
-
/**
|
|
1524
|
-
* The values of the created or replaced changeset.
|
|
1525
|
-
*/
|
|
1526
|
-
body: ChangesetWritable;
|
|
1527
|
-
path: {
|
|
1528
|
-
/**
|
|
1529
|
-
* The key of the changeset to update or create.
|
|
1530
|
-
*/
|
|
1531
|
-
key: string;
|
|
1532
|
-
};
|
|
1533
|
-
query?: never;
|
|
1534
|
-
url: '/changesets/{key}';
|
|
1535
|
-
};
|
|
1536
|
-
export type ChangesetsPutErrors = {
|
|
1537
|
-
/**
|
|
1538
|
-
* Bad Request
|
|
1539
|
-
*/
|
|
1540
|
-
400: ProblemDetails;
|
|
1541
|
-
/**
|
|
1542
|
-
* Forbidden
|
|
1543
|
-
*/
|
|
1544
|
-
403: ProblemDetails;
|
|
1545
|
-
};
|
|
1546
|
-
export type ChangesetsPutError = ChangesetsPutErrors[keyof ChangesetsPutErrors];
|
|
1547
|
-
export type ChangesetsPutResponses = {
|
|
1548
|
-
/**
|
|
1549
|
-
* OK
|
|
1550
|
-
*/
|
|
1551
|
-
200: Changeset;
|
|
1552
|
-
};
|
|
1553
|
-
export type ChangesetsPutResponse = ChangesetsPutResponses[keyof ChangesetsPutResponses];
|
|
1554
|
-
export type ChangesetsDeleteItemData = {
|
|
1555
|
-
body?: never;
|
|
1556
|
-
path: {
|
|
1557
|
-
/**
|
|
1558
|
-
* The changeset key
|
|
1559
|
-
*/
|
|
1560
|
-
changeset: string;
|
|
1561
|
-
/**
|
|
1562
|
-
* The content key
|
|
1563
|
-
*/
|
|
1564
|
-
key: string;
|
|
1565
|
-
/**
|
|
1566
|
-
* The content version
|
|
1567
|
-
*/
|
|
1568
|
-
version: string;
|
|
1569
|
-
};
|
|
1570
|
-
query?: never;
|
|
1571
|
-
url: '/changesets/{changeset}/items/{key}/versions/{version}';
|
|
1572
|
-
};
|
|
1573
|
-
export type ChangesetsDeleteItemErrors = {
|
|
1574
|
-
/**
|
|
1575
|
-
* Bad Request
|
|
1576
|
-
*/
|
|
1577
|
-
400: ProblemDetails;
|
|
1578
|
-
/**
|
|
1579
|
-
* Forbidden
|
|
1580
|
-
*/
|
|
1581
|
-
403: ProblemDetails;
|
|
1582
|
-
};
|
|
1583
|
-
export type ChangesetsDeleteItemError = ChangesetsDeleteItemErrors[keyof ChangesetsDeleteItemErrors];
|
|
1584
|
-
export type ChangesetsDeleteItemResponses = {
|
|
1585
|
-
/**
|
|
1586
|
-
* OK
|
|
1587
|
-
*/
|
|
1588
|
-
200: ChangesetItem;
|
|
1589
|
-
};
|
|
1590
|
-
export type ChangesetsDeleteItemResponse = ChangesetsDeleteItemResponses[keyof ChangesetsDeleteItemResponses];
|
|
1591
|
-
export type ChangesetsGetItemData = {
|
|
1592
|
-
body?: never;
|
|
1593
|
-
path: {
|
|
1594
|
-
/**
|
|
1595
|
-
* The changeset key
|
|
1596
|
-
*/
|
|
1597
|
-
changeset: string;
|
|
1598
|
-
/**
|
|
1599
|
-
* The content key
|
|
1600
|
-
*/
|
|
1601
|
-
key: string;
|
|
1602
|
-
/**
|
|
1603
|
-
* The content version
|
|
1604
|
-
*/
|
|
1605
|
-
version: string;
|
|
1606
|
-
};
|
|
1607
|
-
query?: never;
|
|
1608
|
-
url: '/changesets/{changeset}/items/{key}/versions/{version}';
|
|
1609
|
-
};
|
|
1610
|
-
export type ChangesetsGetItemErrors = {
|
|
1611
|
-
/**
|
|
1612
|
-
* Forbidden
|
|
1613
|
-
*/
|
|
1614
|
-
403: ProblemDetails;
|
|
1615
|
-
};
|
|
1616
|
-
export type ChangesetsGetItemError = ChangesetsGetItemErrors[keyof ChangesetsGetItemErrors];
|
|
1617
|
-
export type ChangesetsGetItemResponses = {
|
|
1618
|
-
/**
|
|
1619
|
-
* OK
|
|
1620
|
-
*/
|
|
1621
|
-
200: ChangesetItem;
|
|
1622
|
-
};
|
|
1623
|
-
export type ChangesetsGetItemResponse = ChangesetsGetItemResponses[keyof ChangesetsGetItemResponses];
|
|
1624
|
-
export type ChangesetsListItemsData = {
|
|
1625
|
-
body?: never;
|
|
1626
|
-
path: {
|
|
1627
|
-
/**
|
|
1628
|
-
* The changeset key
|
|
1629
|
-
*/
|
|
1630
|
-
changeset: string;
|
|
1631
|
-
};
|
|
1632
|
-
query?: {
|
|
1633
|
-
pageIndex?: number;
|
|
1634
|
-
pageSize?: number;
|
|
1635
|
-
};
|
|
1636
|
-
url: '/changesets/{changeset}/items';
|
|
1637
|
-
};
|
|
1638
|
-
export type ChangesetsListItemsErrors = {
|
|
1639
|
-
/**
|
|
1640
|
-
* Forbidden
|
|
1641
|
-
*/
|
|
1642
|
-
403: ProblemDetails;
|
|
1643
|
-
};
|
|
1644
|
-
export type ChangesetsListItemsError = ChangesetsListItemsErrors[keyof ChangesetsListItemsErrors];
|
|
1645
|
-
export type ChangesetsListItemsResponses = {
|
|
1646
|
-
/**
|
|
1647
|
-
* OK
|
|
1648
|
-
*/
|
|
1649
|
-
200: ChangesetItemPage;
|
|
1650
|
-
};
|
|
1651
|
-
export type ChangesetsListItemsResponse = ChangesetsListItemsResponses[keyof ChangesetsListItemsResponses];
|
|
1652
|
-
export type ChangesetsCreateItemData = {
|
|
1653
|
-
/**
|
|
1654
|
-
* The changeset item
|
|
1655
|
-
*/
|
|
1656
|
-
body: ChangesetItemWritable;
|
|
1657
|
-
path: {
|
|
1658
|
-
/**
|
|
1659
|
-
* The changeset key
|
|
1660
|
-
*/
|
|
1661
|
-
changeset: string;
|
|
1662
|
-
};
|
|
1663
|
-
query?: never;
|
|
1664
|
-
url: '/changesets/{changeset}/items';
|
|
1665
|
-
};
|
|
1666
|
-
export type ChangesetsCreateItemErrors = {
|
|
1667
|
-
/**
|
|
1668
|
-
* Bad Request
|
|
1669
|
-
*/
|
|
1670
|
-
400: ProblemDetails;
|
|
1671
|
-
/**
|
|
1672
|
-
* Forbidden
|
|
1673
|
-
*/
|
|
1674
|
-
403: ProblemDetails;
|
|
1675
|
-
};
|
|
1676
|
-
export type ChangesetsCreateItemError = ChangesetsCreateItemErrors[keyof ChangesetsCreateItemErrors];
|
|
1677
|
-
export type ChangesetsCreateItemResponses = {
|
|
1678
|
-
/**
|
|
1679
|
-
* OK
|
|
1680
|
-
*/
|
|
1681
|
-
200: ChangesetItem;
|
|
1682
|
-
};
|
|
1683
|
-
export type ChangesetsCreateItemResponse = ChangesetsCreateItemResponses[keyof ChangesetsCreateItemResponses];
|
|
1684
|
-
export type ChangesetsUpdateItemData = {
|
|
1685
|
-
/**
|
|
1686
|
-
* The changeset item
|
|
1687
|
-
*/
|
|
1688
|
-
body: ChangesetItemWritable;
|
|
1689
|
-
path: {
|
|
1690
|
-
/**
|
|
1691
|
-
* The changeset key
|
|
1692
|
-
*/
|
|
1693
|
-
changeset: string;
|
|
1694
|
-
/**
|
|
1695
|
-
* The content key
|
|
1696
|
-
*/
|
|
1697
|
-
contentKey: string;
|
|
1698
|
-
/**
|
|
1699
|
-
* The content version
|
|
1700
|
-
*/
|
|
1701
|
-
contentVersion: string;
|
|
1702
|
-
};
|
|
1703
|
-
query?: {
|
|
1704
|
-
/**
|
|
1705
|
-
* Indicates if a new changeset item should be created if it does not exist
|
|
1706
|
-
*/
|
|
1707
|
-
allowCreate?: boolean;
|
|
1708
|
-
};
|
|
1709
|
-
url: '/changesets/{changeset}/items/{contentKey}/versions/{contentVersion}';
|
|
1710
|
-
};
|
|
1711
|
-
export type ChangesetsUpdateItemErrors = {
|
|
1712
|
-
/**
|
|
1713
|
-
* Bad Request
|
|
1714
|
-
*/
|
|
1715
|
-
400: ProblemDetails;
|
|
1716
|
-
/**
|
|
1717
|
-
* Forbidden
|
|
1718
|
-
*/
|
|
1719
|
-
403: ProblemDetails;
|
|
1720
|
-
};
|
|
1721
|
-
export type ChangesetsUpdateItemError = ChangesetsUpdateItemErrors[keyof ChangesetsUpdateItemErrors];
|
|
1722
|
-
export type ChangesetsUpdateItemResponses = {
|
|
1723
|
-
/**
|
|
1724
|
-
* OK
|
|
1725
|
-
*/
|
|
1726
|
-
200: ChangesetItem;
|
|
1727
|
-
};
|
|
1728
|
-
export type ChangesetsUpdateItemResponse = ChangesetsUpdateItemResponses[keyof ChangesetsUpdateItemResponses];
|
|
1729
|
-
export type ContentCreateData = {
|
|
1730
|
-
/**
|
|
1731
|
-
* The content item that should be created.
|
|
1732
|
-
*/
|
|
1733
|
-
body: ContentItemWritable;
|
|
1734
|
-
path?: never;
|
|
1735
|
-
query?: {
|
|
1736
|
-
/**
|
|
1737
|
-
* Indicates that the content validation should be ignored.
|
|
1738
|
-
*/
|
|
1739
|
-
skipValidation?: boolean;
|
|
1740
|
-
};
|
|
1741
|
-
url: '/content';
|
|
1742
|
-
};
|
|
1743
|
-
export type ContentCreateErrors = {
|
|
1744
|
-
/**
|
|
1745
|
-
* Bad Request
|
|
1746
|
-
*/
|
|
1747
|
-
400: ProblemDetails;
|
|
1748
|
-
/**
|
|
1749
|
-
* Forbidden
|
|
1750
|
-
*/
|
|
1751
|
-
403: ProblemDetails;
|
|
1752
|
-
};
|
|
1753
|
-
export type ContentCreateError = ContentCreateErrors[keyof ContentCreateErrors];
|
|
1754
|
-
export type ContentCreateResponses = {
|
|
1755
|
-
/**
|
|
1756
|
-
* Created
|
|
1757
|
-
*/
|
|
1758
|
-
201: ContentItemWithContentTypes;
|
|
1759
|
-
};
|
|
1760
|
-
export type ContentCreateResponse = ContentCreateResponses[keyof ContentCreateResponses];
|
|
1761
|
-
export type ContentDeleteData = {
|
|
1762
|
-
body?: never;
|
|
1763
|
-
path: {
|
|
1764
|
-
/**
|
|
1765
|
-
* The key of the content item to delete.
|
|
1766
|
-
*/
|
|
1767
|
-
key: string;
|
|
1768
|
-
};
|
|
1769
|
-
query?: {
|
|
1770
|
-
/**
|
|
1771
|
-
* Indicates that the content item should be permanently deleted immediately or if it should be soft deleted first.
|
|
1772
|
-
*/
|
|
1773
|
-
permanent?: boolean;
|
|
1774
|
-
};
|
|
1775
|
-
url: '/content/{key}';
|
|
1776
|
-
};
|
|
1777
|
-
export type ContentDeleteErrors = {
|
|
1778
|
-
/**
|
|
1779
|
-
* Bad Request
|
|
1780
|
-
*/
|
|
1781
|
-
400: ProblemDetails;
|
|
1782
|
-
/**
|
|
1783
|
-
* Forbidden
|
|
1784
|
-
*/
|
|
1785
|
-
403: ProblemDetails;
|
|
1786
|
-
};
|
|
1787
|
-
export type ContentDeleteError = ContentDeleteErrors[keyof ContentDeleteErrors];
|
|
1788
|
-
export type ContentDeleteResponses = {
|
|
1789
|
-
/**
|
|
1790
|
-
* OK
|
|
1791
|
-
*/
|
|
1792
|
-
200: ContentMetadata;
|
|
1793
|
-
};
|
|
1794
|
-
export type ContentDeleteResponse = ContentDeleteResponses[keyof ContentDeleteResponses];
|
|
1795
|
-
export type ContentGetMetadataData = {
|
|
1796
|
-
body?: never;
|
|
1797
|
-
path: {
|
|
1798
|
-
/**
|
|
1799
|
-
* The key of the content to retrieve metadata for.
|
|
1800
|
-
*/
|
|
1801
|
-
key: string;
|
|
1802
|
-
};
|
|
1803
|
-
query?: {
|
|
1804
|
-
/**
|
|
1805
|
-
* Indicates that metadata for a deleted content may be returned.
|
|
1806
|
-
*/
|
|
1807
|
-
allowDeleted?: boolean;
|
|
1808
|
-
};
|
|
1809
|
-
url: '/content/{key}';
|
|
1810
|
-
};
|
|
1811
|
-
export type ContentGetMetadataErrors = {
|
|
1812
|
-
/**
|
|
1813
|
-
* Forbidden
|
|
1814
|
-
*/
|
|
1815
|
-
403: ProblemDetails;
|
|
1816
|
-
};
|
|
1817
|
-
export type ContentGetMetadataError = ContentGetMetadataErrors[keyof ContentGetMetadataErrors];
|
|
1818
|
-
export type ContentGetMetadataResponses = {
|
|
1819
|
-
/**
|
|
1820
|
-
* OK
|
|
1821
|
-
*/
|
|
1822
|
-
200: ContentMetadata;
|
|
1823
|
-
};
|
|
1824
|
-
export type ContentGetMetadataResponse = ContentGetMetadataResponses[keyof ContentGetMetadataResponses];
|
|
1825
|
-
export type ContentPatchMetadataData = {
|
|
1826
|
-
/**
|
|
1827
|
-
* The values of the content item that should be updated.
|
|
1828
|
-
*/
|
|
1829
|
-
body: ContentMetadataWritable;
|
|
1830
|
-
path: {
|
|
1831
|
-
/**
|
|
1832
|
-
* The key of the content item to patch.
|
|
1833
|
-
*/
|
|
1834
|
-
key: string;
|
|
1835
|
-
};
|
|
1836
|
-
query?: never;
|
|
1837
|
-
url: '/content/{key}';
|
|
1838
|
-
};
|
|
1839
|
-
export type ContentPatchMetadataErrors = {
|
|
1840
|
-
/**
|
|
1841
|
-
* Bad Request
|
|
1842
|
-
*/
|
|
1843
|
-
400: ProblemDetails;
|
|
1844
|
-
/**
|
|
1845
|
-
* Forbidden
|
|
1846
|
-
*/
|
|
1847
|
-
403: ProblemDetails;
|
|
1848
|
-
};
|
|
1849
|
-
export type ContentPatchMetadataError = ContentPatchMetadataErrors[keyof ContentPatchMetadataErrors];
|
|
1850
|
-
export type ContentPatchMetadataResponses = {
|
|
1851
|
-
/**
|
|
1852
|
-
* OK
|
|
1853
|
-
*/
|
|
1854
|
-
200: ContentMetadata;
|
|
1855
|
-
};
|
|
1856
|
-
export type ContentPatchMetadataResponse = ContentPatchMetadataResponses[keyof ContentPatchMetadataResponses];
|
|
1857
|
-
export type ContentGetPathData = {
|
|
1858
|
-
body?: never;
|
|
1859
|
-
path: {
|
|
1860
|
-
/**
|
|
1861
|
-
* The key of the content path to retrieve.
|
|
1862
|
-
*/
|
|
1863
|
-
key: string;
|
|
1864
|
-
};
|
|
1865
|
-
query?: {
|
|
1866
|
-
pageIndex?: number;
|
|
1867
|
-
pageSize?: number;
|
|
1868
|
-
};
|
|
1869
|
-
url: '/content/{key}/path';
|
|
1870
|
-
};
|
|
1871
|
-
export type ContentGetPathErrors = {
|
|
1872
|
-
/**
|
|
1873
|
-
* Forbidden
|
|
1874
|
-
*/
|
|
1875
|
-
403: ProblemDetails;
|
|
1876
|
-
};
|
|
1877
|
-
export type ContentGetPathError = ContentGetPathErrors[keyof ContentGetPathErrors];
|
|
1878
|
-
export type ContentGetPathResponses = {
|
|
1879
|
-
/**
|
|
1880
|
-
* OK
|
|
1881
|
-
*/
|
|
1882
|
-
200: ContentMetadataPage;
|
|
1883
|
-
};
|
|
1884
|
-
export type ContentGetPathResponse = ContentGetPathResponses[keyof ContentGetPathResponses];
|
|
1885
|
-
export type ContentListItemsData = {
|
|
1886
|
-
body?: never;
|
|
1887
|
-
path: {
|
|
1888
|
-
/**
|
|
1889
|
-
* The key of the content to retrieve items for.
|
|
1890
|
-
*/
|
|
1891
|
-
key: string;
|
|
1892
|
-
};
|
|
1893
|
-
query?: {
|
|
1894
|
-
/**
|
|
1895
|
-
* Indicates which content types or base types to include in the list.
|
|
1896
|
-
*/
|
|
1897
|
-
contentTypes?: Array<string>;
|
|
1898
|
-
pageIndex?: number;
|
|
1899
|
-
pageSize?: number;
|
|
1900
|
-
};
|
|
1901
|
-
url: '/content/{key}/items';
|
|
1902
|
-
};
|
|
1903
|
-
export type ContentListItemsErrors = {
|
|
1904
|
-
/**
|
|
1905
|
-
* Forbidden
|
|
1906
|
-
*/
|
|
1907
|
-
403: ProblemDetails;
|
|
1908
|
-
};
|
|
1909
|
-
export type ContentListItemsError = ContentListItemsErrors[keyof ContentListItemsErrors];
|
|
1910
|
-
export type ContentListItemsResponses = {
|
|
1911
|
-
/**
|
|
1912
|
-
* OK
|
|
1913
|
-
*/
|
|
1914
|
-
200: ContentMetadataPage;
|
|
1915
|
-
};
|
|
1916
|
-
export type ContentListItemsResponse = ContentListItemsResponses[keyof ContentListItemsResponses];
|
|
1917
|
-
export type ContentListAssetsData = {
|
|
1918
|
-
body?: never;
|
|
1919
|
-
path: {
|
|
1920
|
-
/**
|
|
1921
|
-
* The key of the content to retrieve assets for.
|
|
1922
|
-
*/
|
|
1923
|
-
key: string;
|
|
1924
|
-
};
|
|
1925
|
-
query?: {
|
|
1926
|
-
/**
|
|
1927
|
-
* Indicates which content types or base types to include in the list.
|
|
1928
|
-
*/
|
|
1929
|
-
contentTypes?: Array<string>;
|
|
1930
|
-
pageIndex?: number;
|
|
1931
|
-
pageSize?: number;
|
|
1932
|
-
};
|
|
1933
|
-
url: '/content/{key}/assets';
|
|
1934
|
-
};
|
|
1935
|
-
export type ContentListAssetsErrors = {
|
|
1936
|
-
/**
|
|
1937
|
-
* Forbidden
|
|
1938
|
-
*/
|
|
1939
|
-
403: ProblemDetails;
|
|
1940
|
-
};
|
|
1941
|
-
export type ContentListAssetsError = ContentListAssetsErrors[keyof ContentListAssetsErrors];
|
|
1942
|
-
export type ContentListAssetsResponses = {
|
|
1943
|
-
/**
|
|
1944
|
-
* OK
|
|
1945
|
-
*/
|
|
1946
|
-
200: ContentMetadataPage;
|
|
1947
|
-
};
|
|
1948
|
-
export type ContentListAssetsResponse = ContentListAssetsResponses[keyof ContentListAssetsResponses];
|
|
1949
|
-
export type ContentCopyData = {
|
|
1950
|
-
/**
|
|
1951
|
-
* Optional instructions for how to copy content.
|
|
1952
|
-
*/
|
|
1953
|
-
body?: CopyContentOptions;
|
|
1954
|
-
path: {
|
|
1955
|
-
/**
|
|
1956
|
-
* The key of the content item to copy.
|
|
1957
|
-
*/
|
|
1958
|
-
key: string;
|
|
1959
|
-
};
|
|
1960
|
-
query?: never;
|
|
1961
|
-
url: '/content/{key}:copy';
|
|
1962
|
-
};
|
|
1963
|
-
export type ContentCopyErrors = {
|
|
1964
|
-
/**
|
|
1965
|
-
* Bad Request
|
|
1966
|
-
*/
|
|
1967
|
-
400: ProblemDetails;
|
|
1968
|
-
/**
|
|
1969
|
-
* Forbidden
|
|
1970
|
-
*/
|
|
1971
|
-
403: ProblemDetails;
|
|
1972
|
-
};
|
|
1973
|
-
export type ContentCopyError = ContentCopyErrors[keyof ContentCopyErrors];
|
|
1974
|
-
export type ContentCopyResponses = {
|
|
1975
|
-
/**
|
|
1976
|
-
* OK
|
|
1977
|
-
*/
|
|
1978
|
-
200: ContentMetadata;
|
|
1979
|
-
};
|
|
1980
|
-
export type ContentCopyResponse = ContentCopyResponses[keyof ContentCopyResponses];
|
|
1981
|
-
export type ContentUndeleteData = {
|
|
1982
|
-
body?: never;
|
|
1983
|
-
path: {
|
|
1984
|
-
/**
|
|
1985
|
-
* The key of the content item to undelete.
|
|
1986
|
-
*/
|
|
1987
|
-
key: string;
|
|
1988
|
-
};
|
|
1989
|
-
query?: never;
|
|
1990
|
-
url: '/content/{key}:undelete';
|
|
1991
|
-
};
|
|
1992
|
-
export type ContentUndeleteErrors = {
|
|
1993
|
-
/**
|
|
1994
|
-
* Bad Request
|
|
1995
|
-
*/
|
|
1996
|
-
400: ProblemDetails;
|
|
1997
|
-
/**
|
|
1998
|
-
* Forbidden
|
|
1999
|
-
*/
|
|
2000
|
-
403: ProblemDetails;
|
|
2001
|
-
};
|
|
2002
|
-
export type ContentUndeleteError = ContentUndeleteErrors[keyof ContentUndeleteErrors];
|
|
2003
|
-
export type ContentUndeleteResponses = {
|
|
2004
|
-
/**
|
|
2005
|
-
* OK
|
|
2006
|
-
*/
|
|
2007
|
-
200: ContentMetadata;
|
|
2008
|
-
};
|
|
2009
|
-
export type ContentUndeleteResponse = ContentUndeleteResponses[keyof ContentUndeleteResponses];
|
|
2010
|
-
export type ContentListAllVersionsData = {
|
|
2011
|
-
body?: never;
|
|
2012
|
-
path?: never;
|
|
2013
|
-
query?: {
|
|
2014
|
-
/**
|
|
2015
|
-
* Indicates which content locales that should be listed. Use 'NEUTRAL' to include locale-neutral content.
|
|
2016
|
-
* Locale must be a valid IETF BCP-47 language tag.
|
|
2017
|
-
*/
|
|
2018
|
-
locales?: Array<string>;
|
|
2019
|
-
/**
|
|
2020
|
-
* Indicates which status content versions must have to be listed.
|
|
2021
|
-
*/
|
|
2022
|
-
statuses?: Array<VersionStatus>;
|
|
2023
|
-
pageIndex?: number;
|
|
2024
|
-
pageSize?: number;
|
|
2025
|
-
};
|
|
2026
|
-
url: '/content/versions';
|
|
2027
|
-
};
|
|
2028
|
-
export type ContentListAllVersionsErrors = {
|
|
2029
|
-
/**
|
|
2030
|
-
* Forbidden
|
|
2031
|
-
*/
|
|
2032
|
-
403: ProblemDetails;
|
|
2033
|
-
};
|
|
2034
|
-
export type ContentListAllVersionsError = ContentListAllVersionsErrors[keyof ContentListAllVersionsErrors];
|
|
2035
|
-
export type ContentListAllVersionsResponses = {
|
|
2036
|
-
/**
|
|
2037
|
-
* OK
|
|
2038
|
-
*/
|
|
2039
|
-
200: ContentItemListWithContentTypes;
|
|
2040
|
-
};
|
|
2041
|
-
export type ContentListAllVersionsResponse = ContentListAllVersionsResponses[keyof ContentListAllVersionsResponses];
|
|
2042
|
-
export type ContentDeleteLocaleData = {
|
|
2043
|
-
body?: never;
|
|
2044
|
-
path: {
|
|
2045
|
-
key: string;
|
|
2046
|
-
};
|
|
2047
|
-
query?: {
|
|
2048
|
-
locale?: string;
|
|
2049
|
-
};
|
|
2050
|
-
url: '/content/{key}/versions';
|
|
2051
|
-
};
|
|
2052
|
-
export type ContentDeleteLocaleErrors = {
|
|
2053
|
-
/**
|
|
2054
|
-
* Bad Request
|
|
2055
|
-
*/
|
|
2056
|
-
400: ProblemDetails;
|
|
2057
|
-
/**
|
|
2058
|
-
* Forbidden
|
|
2059
|
-
*/
|
|
2060
|
-
403: ProblemDetails;
|
|
2061
|
-
};
|
|
2062
|
-
export type ContentDeleteLocaleError = ContentDeleteLocaleErrors[keyof ContentDeleteLocaleErrors];
|
|
2063
|
-
export type ContentDeleteLocaleResponses = {
|
|
2064
|
-
/**
|
|
2065
|
-
* OK
|
|
2066
|
-
*/
|
|
2067
|
-
200: ContentItemWithContentTypes;
|
|
2068
|
-
};
|
|
2069
|
-
export type ContentDeleteLocaleResponse = ContentDeleteLocaleResponses[keyof ContentDeleteLocaleResponses];
|
|
2070
|
-
export type ContentListVersionsData = {
|
|
2071
|
-
body?: never;
|
|
2072
|
-
path: {
|
|
2073
|
-
key: string;
|
|
2074
|
-
};
|
|
2075
|
-
query?: {
|
|
2076
|
-
/**
|
|
2077
|
-
* Indicates which content locales that should be listed. Use 'NEUTRAL' to include locale-neutral content.
|
|
2078
|
-
* Locale must be a valid IETF BCP-47 language tag.
|
|
2079
|
-
*/
|
|
2080
|
-
locales?: Array<string>;
|
|
2081
|
-
/**
|
|
2082
|
-
* Indicates which status content versions must have to be listed.
|
|
2083
|
-
*/
|
|
2084
|
-
statuses?: Array<VersionStatus>;
|
|
2085
|
-
pageIndex?: number;
|
|
2086
|
-
pageSize?: number;
|
|
2087
|
-
};
|
|
2088
|
-
url: '/content/{key}/versions';
|
|
2089
|
-
};
|
|
2090
|
-
export type ContentListVersionsErrors = {
|
|
2091
|
-
/**
|
|
2092
|
-
* Forbidden
|
|
2093
|
-
*/
|
|
2094
|
-
403: ProblemDetails;
|
|
2095
|
-
};
|
|
2096
|
-
export type ContentListVersionsError = ContentListVersionsErrors[keyof ContentListVersionsErrors];
|
|
2097
|
-
export type ContentListVersionsResponses = {
|
|
2098
|
-
/**
|
|
2099
|
-
* OK
|
|
2100
|
-
*/
|
|
2101
|
-
200: ContentItemListWithContentTypes;
|
|
2102
|
-
};
|
|
2103
|
-
export type ContentListVersionsResponse = ContentListVersionsResponses[keyof ContentListVersionsResponses];
|
|
2104
|
-
export type ContentCreateVersionData = {
|
|
2105
|
-
/**
|
|
2106
|
-
* The content version that should be created.
|
|
2107
|
-
*/
|
|
2108
|
-
body: ContentItemWritable;
|
|
2109
|
-
path: {
|
|
2110
|
-
/**
|
|
2111
|
-
* The key of the content item for which a new content version should be created.
|
|
2112
|
-
*/
|
|
2113
|
-
key: string;
|
|
2114
|
-
};
|
|
2115
|
-
query?: {
|
|
2116
|
-
/**
|
|
2117
|
-
* Indicates that the content validation should be ignored.
|
|
2118
|
-
*/
|
|
2119
|
-
skipValidation?: boolean;
|
|
2120
|
-
};
|
|
2121
|
-
url: '/content/{key}/versions';
|
|
2122
|
-
};
|
|
2123
|
-
export type ContentCreateVersionErrors = {
|
|
2124
|
-
/**
|
|
2125
|
-
* Bad Request
|
|
2126
|
-
*/
|
|
2127
|
-
400: ProblemDetails;
|
|
2128
|
-
/**
|
|
2129
|
-
* Forbidden
|
|
2130
|
-
*/
|
|
2131
|
-
403: ProblemDetails;
|
|
2132
|
-
};
|
|
2133
|
-
export type ContentCreateVersionError = ContentCreateVersionErrors[keyof ContentCreateVersionErrors];
|
|
2134
|
-
export type ContentCreateVersionResponses = {
|
|
2135
|
-
/**
|
|
2136
|
-
* Created
|
|
2137
|
-
*/
|
|
2138
|
-
201: ContentItemWithContentTypes;
|
|
2139
|
-
};
|
|
2140
|
-
export type ContentCreateVersionResponse = ContentCreateVersionResponses[keyof ContentCreateVersionResponses];
|
|
2141
|
-
export type ContentDeleteVersionData = {
|
|
2142
|
-
body?: never;
|
|
2143
|
-
path: {
|
|
2144
|
-
key: string;
|
|
2145
|
-
version: string;
|
|
2146
|
-
};
|
|
2147
|
-
query?: never;
|
|
2148
|
-
url: '/content/{key}/versions/{version}';
|
|
2149
|
-
};
|
|
2150
|
-
export type ContentDeleteVersionErrors = {
|
|
2151
|
-
/**
|
|
2152
|
-
* Bad Request
|
|
2153
|
-
*/
|
|
2154
|
-
400: ProblemDetails;
|
|
2155
|
-
/**
|
|
2156
|
-
* Forbidden
|
|
2157
|
-
*/
|
|
2158
|
-
403: ProblemDetails;
|
|
2159
|
-
};
|
|
2160
|
-
export type ContentDeleteVersionError = ContentDeleteVersionErrors[keyof ContentDeleteVersionErrors];
|
|
2161
|
-
export type ContentDeleteVersionResponses = {
|
|
2162
|
-
/**
|
|
2163
|
-
* OK
|
|
2164
|
-
*/
|
|
2165
|
-
200: ContentItemWithContentTypes;
|
|
2166
|
-
};
|
|
2167
|
-
export type ContentDeleteVersionResponse = ContentDeleteVersionResponses[keyof ContentDeleteVersionResponses];
|
|
2168
|
-
export type ContentGetVersionData = {
|
|
2169
|
-
body?: never;
|
|
2170
|
-
path: {
|
|
2171
|
-
key: string;
|
|
2172
|
-
version: string;
|
|
2173
|
-
};
|
|
2174
|
-
query?: {
|
|
2175
|
-
locale?: string;
|
|
2176
|
-
};
|
|
2177
|
-
url: '/content/{key}/versions/{version}';
|
|
2178
|
-
};
|
|
2179
|
-
export type ContentGetVersionErrors = {
|
|
2180
|
-
/**
|
|
2181
|
-
* Forbidden
|
|
2182
|
-
*/
|
|
2183
|
-
403: ProblemDetails;
|
|
2184
|
-
};
|
|
2185
|
-
export type ContentGetVersionError = ContentGetVersionErrors[keyof ContentGetVersionErrors];
|
|
2186
|
-
export type ContentGetVersionResponses = {
|
|
2187
|
-
/**
|
|
2188
|
-
* OK
|
|
2189
|
-
*/
|
|
2190
|
-
200: ContentItemWithContentTypes;
|
|
2191
|
-
};
|
|
2192
|
-
export type ContentGetVersionResponse = ContentGetVersionResponses[keyof ContentGetVersionResponses];
|
|
2193
|
-
export type ContentPatchVersionData = {
|
|
2194
|
-
/**
|
|
2195
|
-
* The content information that should be updated.
|
|
2196
|
-
*/
|
|
2197
|
-
body: ContentItemWritable;
|
|
2198
|
-
path: {
|
|
2199
|
-
/**
|
|
2200
|
-
* The key of the content item that should be updated.
|
|
2201
|
-
*/
|
|
2202
|
-
key: string;
|
|
2203
|
-
/**
|
|
2204
|
-
* The version of the content that should be updated.
|
|
2205
|
-
*/
|
|
2206
|
-
version: string;
|
|
2207
|
-
};
|
|
2208
|
-
query?: {
|
|
2209
|
-
/**
|
|
2210
|
-
* The locale of the content that should be updated.
|
|
2211
|
-
*/
|
|
2212
|
-
locale?: string;
|
|
2213
|
-
/**
|
|
2214
|
-
* Indicates that the content validation should be ignored.
|
|
2215
|
-
*/
|
|
2216
|
-
skipValidation?: boolean;
|
|
2217
|
-
};
|
|
2218
|
-
url: '/content/{key}/versions/{version}';
|
|
2219
|
-
};
|
|
2220
|
-
export type ContentPatchVersionErrors = {
|
|
2221
|
-
/**
|
|
2222
|
-
* Bad Request
|
|
2223
|
-
*/
|
|
2224
|
-
400: ProblemDetails;
|
|
2225
|
-
/**
|
|
2226
|
-
* Forbidden
|
|
2227
|
-
*/
|
|
2228
|
-
403: ProblemDetails;
|
|
2229
|
-
};
|
|
2230
|
-
export type ContentPatchVersionError = ContentPatchVersionErrors[keyof ContentPatchVersionErrors];
|
|
2231
|
-
export type ContentPatchVersionResponses = {
|
|
2232
|
-
/**
|
|
2233
|
-
* OK
|
|
2234
|
-
*/
|
|
2235
|
-
200: ContentItemWithContentTypes;
|
|
2236
|
-
};
|
|
2237
|
-
export type ContentPatchVersionResponse = ContentPatchVersionResponses[keyof ContentPatchVersionResponses];
|
|
2238
|
-
export type ContentTypesListData = {
|
|
2239
|
-
body?: never;
|
|
2240
|
-
path?: never;
|
|
2241
|
-
query?: {
|
|
2242
|
-
/**
|
|
2243
|
-
* Only include types that are available for creation under the provided container type
|
|
2244
|
-
*/
|
|
2245
|
-
forContainerType?: string;
|
|
2246
|
-
/**
|
|
2247
|
-
* Indicates which sources should be included when listing content types.
|
|
2248
|
-
* Use All to include content types from all sources or
|
|
2249
|
-
* Default to include content types without a specific sources.
|
|
2250
|
-
*/
|
|
2251
|
-
sources?: Array<string>;
|
|
2252
|
-
pageIndex?: number;
|
|
2253
|
-
pageSize?: number;
|
|
2254
|
-
};
|
|
2255
|
-
url: '/contenttypes';
|
|
2256
|
-
};
|
|
2257
|
-
export type ContentTypesListErrors = {
|
|
2258
|
-
/**
|
|
2259
|
-
* Forbidden
|
|
2260
|
-
*/
|
|
2261
|
-
403: ProblemDetails;
|
|
2262
|
-
};
|
|
2263
|
-
export type ContentTypesListError = ContentTypesListErrors[keyof ContentTypesListErrors];
|
|
2264
|
-
export type ContentTypesListResponses = {
|
|
2265
|
-
/**
|
|
2266
|
-
* OK
|
|
2267
|
-
*/
|
|
2268
|
-
200: ContentTypePage;
|
|
2269
|
-
};
|
|
2270
|
-
export type ContentTypesListResponse = ContentTypesListResponses[keyof ContentTypesListResponses];
|
|
2271
|
-
export type ContentTypesCreateData = {
|
|
2272
|
-
/**
|
|
2273
|
-
* The content type that should be created.
|
|
2274
|
-
*/
|
|
2275
|
-
body: ContentTypeWritable;
|
|
2276
|
-
path?: never;
|
|
2277
|
-
query?: never;
|
|
2278
|
-
url: '/contenttypes';
|
|
2279
|
-
};
|
|
2280
|
-
export type ContentTypesCreateErrors = {
|
|
2281
|
-
/**
|
|
2282
|
-
* Bad Request
|
|
2283
|
-
*/
|
|
2284
|
-
400: ProblemDetails;
|
|
2285
|
-
/**
|
|
2286
|
-
* Forbidden
|
|
2287
|
-
*/
|
|
2288
|
-
403: ProblemDetails;
|
|
2289
|
-
};
|
|
2290
|
-
export type ContentTypesCreateError = ContentTypesCreateErrors[keyof ContentTypesCreateErrors];
|
|
2291
|
-
export type ContentTypesCreateResponses = {
|
|
2292
|
-
/**
|
|
2293
|
-
* OK
|
|
2294
|
-
*/
|
|
2295
|
-
200: ContentType;
|
|
2296
|
-
};
|
|
2297
|
-
export type ContentTypesCreateResponse = ContentTypesCreateResponses[keyof ContentTypesCreateResponses];
|
|
2298
|
-
export type ContentTypesDeleteData = {
|
|
2299
|
-
body?: never;
|
|
2300
|
-
path: {
|
|
2301
|
-
/**
|
|
2302
|
-
* The key of the content type to delete.
|
|
2303
|
-
*/
|
|
2304
|
-
key: string;
|
|
2305
|
-
};
|
|
2306
|
-
query?: never;
|
|
2307
|
-
url: '/contenttypes/{key}';
|
|
2308
|
-
};
|
|
2309
|
-
export type ContentTypesDeleteErrors = {
|
|
2310
|
-
/**
|
|
2311
|
-
* Bad Request
|
|
2312
|
-
*/
|
|
2313
|
-
400: ProblemDetails;
|
|
2314
|
-
/**
|
|
2315
|
-
* Forbidden
|
|
2316
|
-
*/
|
|
2317
|
-
403: ProblemDetails;
|
|
2318
|
-
};
|
|
2319
|
-
export type ContentTypesDeleteError = ContentTypesDeleteErrors[keyof ContentTypesDeleteErrors];
|
|
2320
|
-
export type ContentTypesDeleteResponses = {
|
|
2321
|
-
/**
|
|
2322
|
-
* OK
|
|
2323
|
-
*/
|
|
2324
|
-
200: ContentType;
|
|
2325
|
-
};
|
|
2326
|
-
export type ContentTypesDeleteResponse = ContentTypesDeleteResponses[keyof ContentTypesDeleteResponses];
|
|
2327
|
-
export type ContentTypesGetData = {
|
|
2328
|
-
body?: never;
|
|
2329
|
-
path: {
|
|
2330
|
-
/**
|
|
2331
|
-
* The key of the content type to retrieve.
|
|
2332
|
-
*/
|
|
2333
|
-
key: string;
|
|
2334
|
-
};
|
|
2335
|
-
query?: never;
|
|
2336
|
-
url: '/contenttypes/{key}';
|
|
2337
|
-
};
|
|
2338
|
-
export type ContentTypesGetErrors = {
|
|
2339
|
-
/**
|
|
2340
|
-
* Forbidden
|
|
2341
|
-
*/
|
|
2342
|
-
403: ProblemDetails;
|
|
2343
|
-
};
|
|
2344
|
-
export type ContentTypesGetError = ContentTypesGetErrors[keyof ContentTypesGetErrors];
|
|
2345
|
-
export type ContentTypesGetResponses = {
|
|
2346
|
-
/**
|
|
2347
|
-
* OK
|
|
2348
|
-
*/
|
|
2349
|
-
200: ContentType;
|
|
2350
|
-
};
|
|
2351
|
-
export type ContentTypesGetResponse = ContentTypesGetResponses[keyof ContentTypesGetResponses];
|
|
2352
|
-
export type ContentTypesPatchData = {
|
|
2353
|
-
/**
|
|
2354
|
-
* The values of the content type that should be updated.
|
|
2355
|
-
*/
|
|
2356
|
-
body: ContentTypeWritable;
|
|
2357
|
-
path: {
|
|
2358
|
-
/**
|
|
2359
|
-
* The key of the content type to patch.
|
|
2360
|
-
*/
|
|
2361
|
-
key: string;
|
|
2362
|
-
};
|
|
2363
|
-
query?: {
|
|
2364
|
-
/**
|
|
2365
|
-
* Update the content type even though the changes might result in data loss.
|
|
2366
|
-
*/
|
|
2367
|
-
ignoreDataLossWarnings?: boolean;
|
|
2368
|
-
};
|
|
2369
|
-
url: '/contenttypes/{key}';
|
|
2370
|
-
};
|
|
2371
|
-
export type ContentTypesPatchErrors = {
|
|
2372
|
-
/**
|
|
2373
|
-
* Bad Request
|
|
2374
|
-
*/
|
|
2375
|
-
400: ProblemDetails;
|
|
2376
|
-
/**
|
|
2377
|
-
* Forbidden
|
|
2378
|
-
*/
|
|
2379
|
-
403: ProblemDetails;
|
|
2380
|
-
};
|
|
2381
|
-
export type ContentTypesPatchError = ContentTypesPatchErrors[keyof ContentTypesPatchErrors];
|
|
2382
|
-
export type ContentTypesPatchResponses = {
|
|
2383
|
-
/**
|
|
2384
|
-
* OK
|
|
2385
|
-
*/
|
|
2386
|
-
200: ContentType;
|
|
2387
|
-
};
|
|
2388
|
-
export type ContentTypesPatchResponse = ContentTypesPatchResponses[keyof ContentTypesPatchResponses];
|
|
2389
|
-
export type ContentTypesPutData = {
|
|
2390
|
-
/**
|
|
2391
|
-
* The values of the created or replaced content type.
|
|
2392
|
-
*/
|
|
2393
|
-
body: ContentTypeWritable;
|
|
2394
|
-
path: {
|
|
2395
|
-
/**
|
|
2396
|
-
* The key of the content type to update or create.
|
|
2397
|
-
*/
|
|
2398
|
-
key: string;
|
|
2399
|
-
};
|
|
2400
|
-
query?: {
|
|
2401
|
-
/**
|
|
2402
|
-
* Update the content type even though the changes might result in data loss.
|
|
2403
|
-
*/
|
|
2404
|
-
ignoreDataLossWarnings?: boolean;
|
|
2405
|
-
};
|
|
2406
|
-
url: '/contenttypes/{key}';
|
|
2407
|
-
};
|
|
2408
|
-
export type ContentTypesPutErrors = {
|
|
2409
|
-
/**
|
|
2410
|
-
* Bad Request
|
|
2411
|
-
*/
|
|
2412
|
-
400: ProblemDetails;
|
|
2413
|
-
/**
|
|
2414
|
-
* Forbidden
|
|
2415
|
-
*/
|
|
2416
|
-
403: ProblemDetails;
|
|
2417
|
-
};
|
|
2418
|
-
export type ContentTypesPutError = ContentTypesPutErrors[keyof ContentTypesPutErrors];
|
|
2419
|
-
export type ContentTypesPutResponses = {
|
|
2420
|
-
/**
|
|
2421
|
-
* OK
|
|
2422
|
-
*/
|
|
2423
|
-
200: ContentType;
|
|
2424
|
-
};
|
|
2425
|
-
export type ContentTypesPutResponse = ContentTypesPutResponses[keyof ContentTypesPutResponses];
|
|
2426
|
-
export type DisplayTemplatesListData = {
|
|
2427
|
-
body?: never;
|
|
2428
|
-
path?: never;
|
|
2429
|
-
query?: {
|
|
2430
|
-
pageIndex?: number;
|
|
2431
|
-
pageSize?: number;
|
|
2432
|
-
};
|
|
2433
|
-
url: '/displaytemplates';
|
|
2434
|
-
};
|
|
2435
|
-
export type DisplayTemplatesListErrors = {
|
|
2436
|
-
/**
|
|
2437
|
-
* Forbidden
|
|
2438
|
-
*/
|
|
2439
|
-
403: ProblemDetails;
|
|
2440
|
-
};
|
|
2441
|
-
export type DisplayTemplatesListError = DisplayTemplatesListErrors[keyof DisplayTemplatesListErrors];
|
|
2442
|
-
export type DisplayTemplatesListResponses = {
|
|
2443
|
-
/**
|
|
2444
|
-
* OK
|
|
2445
|
-
*/
|
|
2446
|
-
200: DisplayTemplatePage;
|
|
2447
|
-
};
|
|
2448
|
-
export type DisplayTemplatesListResponse = DisplayTemplatesListResponses[keyof DisplayTemplatesListResponses];
|
|
2449
|
-
export type DisplayTemplatesCreateData = {
|
|
2450
|
-
/**
|
|
2451
|
-
* The display template that should be created.
|
|
2452
|
-
*/
|
|
2453
|
-
body: DisplayTemplateWritable;
|
|
2454
|
-
path?: never;
|
|
2455
|
-
query?: never;
|
|
2456
|
-
url: '/displaytemplates';
|
|
2457
|
-
};
|
|
2458
|
-
export type DisplayTemplatesCreateErrors = {
|
|
2459
|
-
/**
|
|
2460
|
-
* Bad Request
|
|
2461
|
-
*/
|
|
2462
|
-
400: ProblemDetails;
|
|
2463
|
-
/**
|
|
2464
|
-
* Forbidden
|
|
2465
|
-
*/
|
|
2466
|
-
403: ProblemDetails;
|
|
2467
|
-
};
|
|
2468
|
-
export type DisplayTemplatesCreateError = DisplayTemplatesCreateErrors[keyof DisplayTemplatesCreateErrors];
|
|
2469
|
-
export type DisplayTemplatesCreateResponses = {
|
|
2470
|
-
/**
|
|
2471
|
-
* OK
|
|
2472
|
-
*/
|
|
2473
|
-
200: DisplayTemplate;
|
|
2474
|
-
};
|
|
2475
|
-
export type DisplayTemplatesCreateResponse = DisplayTemplatesCreateResponses[keyof DisplayTemplatesCreateResponses];
|
|
2476
|
-
export type DisplayTemplatesDeleteData = {
|
|
2477
|
-
body?: never;
|
|
2478
|
-
path: {
|
|
2479
|
-
/**
|
|
2480
|
-
* The key of the display template to delete.
|
|
2481
|
-
*/
|
|
2482
|
-
key: string;
|
|
2483
|
-
};
|
|
2484
|
-
query?: never;
|
|
2485
|
-
url: '/displaytemplates/{key}';
|
|
2486
|
-
};
|
|
2487
|
-
export type DisplayTemplatesDeleteErrors = {
|
|
2488
|
-
/**
|
|
2489
|
-
* Bad Request
|
|
2490
|
-
*/
|
|
2491
|
-
400: ProblemDetails;
|
|
2492
|
-
/**
|
|
2493
|
-
* Forbidden
|
|
2494
|
-
*/
|
|
2495
|
-
403: ProblemDetails;
|
|
2496
|
-
};
|
|
2497
|
-
export type DisplayTemplatesDeleteError = DisplayTemplatesDeleteErrors[keyof DisplayTemplatesDeleteErrors];
|
|
2498
|
-
export type DisplayTemplatesDeleteResponses = {
|
|
2499
|
-
/**
|
|
2500
|
-
* OK
|
|
2501
|
-
*/
|
|
2502
|
-
200: DisplayTemplate;
|
|
2503
|
-
};
|
|
2504
|
-
export type DisplayTemplatesDeleteResponse = DisplayTemplatesDeleteResponses[keyof DisplayTemplatesDeleteResponses];
|
|
2505
|
-
export type DisplayTemplatesGetData = {
|
|
2506
|
-
body?: never;
|
|
2507
|
-
path: {
|
|
2508
|
-
/**
|
|
2509
|
-
* The key of the display template to retrieve.
|
|
2510
|
-
*/
|
|
2511
|
-
key: string;
|
|
2512
|
-
};
|
|
2513
|
-
query?: never;
|
|
2514
|
-
url: '/displaytemplates/{key}';
|
|
2515
|
-
};
|
|
2516
|
-
export type DisplayTemplatesGetErrors = {
|
|
2517
|
-
/**
|
|
2518
|
-
* Forbidden
|
|
2519
|
-
*/
|
|
2520
|
-
403: ProblemDetails;
|
|
2521
|
-
};
|
|
2522
|
-
export type DisplayTemplatesGetError = DisplayTemplatesGetErrors[keyof DisplayTemplatesGetErrors];
|
|
2523
|
-
export type DisplayTemplatesGetResponses = {
|
|
2524
|
-
/**
|
|
2525
|
-
* OK
|
|
2526
|
-
*/
|
|
2527
|
-
200: DisplayTemplate;
|
|
2528
|
-
};
|
|
2529
|
-
export type DisplayTemplatesGetResponse = DisplayTemplatesGetResponses[keyof DisplayTemplatesGetResponses];
|
|
2530
|
-
export type DisplayTemplatesPatchData = {
|
|
2531
|
-
/**
|
|
2532
|
-
* The values of the display template that should be updated.
|
|
2533
|
-
*/
|
|
2534
|
-
body: DisplayTemplateWritable;
|
|
2535
|
-
path: {
|
|
2536
|
-
/**
|
|
2537
|
-
* The key of the display template to patch.
|
|
2538
|
-
*/
|
|
2539
|
-
key: string;
|
|
2540
|
-
};
|
|
2541
|
-
query?: never;
|
|
2542
|
-
url: '/displaytemplates/{key}';
|
|
2543
|
-
};
|
|
2544
|
-
export type DisplayTemplatesPatchErrors = {
|
|
2545
|
-
/**
|
|
2546
|
-
* Bad Request
|
|
2547
|
-
*/
|
|
2548
|
-
400: ProblemDetails;
|
|
2549
|
-
/**
|
|
2550
|
-
* Forbidden
|
|
2551
|
-
*/
|
|
2552
|
-
403: ProblemDetails;
|
|
2553
|
-
};
|
|
2554
|
-
export type DisplayTemplatesPatchError = DisplayTemplatesPatchErrors[keyof DisplayTemplatesPatchErrors];
|
|
2555
|
-
export type DisplayTemplatesPatchResponses = {
|
|
2556
|
-
/**
|
|
2557
|
-
* OK
|
|
2558
|
-
*/
|
|
2559
|
-
200: DisplayTemplate;
|
|
2560
|
-
};
|
|
2561
|
-
export type DisplayTemplatesPatchResponse = DisplayTemplatesPatchResponses[keyof DisplayTemplatesPatchResponses];
|
|
2562
|
-
export type DisplayTemplatesPutData = {
|
|
2563
|
-
/**
|
|
2564
|
-
* The values of the created or replaced display template.
|
|
2565
|
-
*/
|
|
2566
|
-
body: DisplayTemplateWritable;
|
|
2567
|
-
path: {
|
|
2568
|
-
/**
|
|
2569
|
-
* The key of the display template to update or create.
|
|
2570
|
-
*/
|
|
2571
|
-
key: string;
|
|
2572
|
-
};
|
|
2573
|
-
query?: never;
|
|
2574
|
-
url: '/displaytemplates/{key}';
|
|
2575
|
-
};
|
|
2576
|
-
export type DisplayTemplatesPutErrors = {
|
|
2577
|
-
/**
|
|
2578
|
-
* Bad Request
|
|
2579
|
-
*/
|
|
2580
|
-
400: ProblemDetails;
|
|
2581
|
-
/**
|
|
2582
|
-
* Forbidden
|
|
2583
|
-
*/
|
|
2584
|
-
403: ProblemDetails;
|
|
2585
|
-
};
|
|
2586
|
-
export type DisplayTemplatesPutError = DisplayTemplatesPutErrors[keyof DisplayTemplatesPutErrors];
|
|
2587
|
-
export type DisplayTemplatesPutResponses = {
|
|
2588
|
-
/**
|
|
2589
|
-
* OK
|
|
2590
|
-
*/
|
|
2591
|
-
200: DisplayTemplate;
|
|
2592
|
-
};
|
|
2593
|
-
export type DisplayTemplatesPutResponse = DisplayTemplatesPutResponses[keyof DisplayTemplatesPutResponses];
|
|
2594
|
-
export type OauthTokenData = {
|
|
2595
|
-
body: OauthTokenRequest;
|
|
2596
|
-
path?: never;
|
|
2597
|
-
query?: never;
|
|
2598
|
-
url: '/oauth/token';
|
|
2599
|
-
};
|
|
2600
|
-
export type OauthTokenErrors = {
|
|
2601
|
-
/**
|
|
2602
|
-
* Bad Request
|
|
2603
|
-
*/
|
|
2604
|
-
400: OauthTokenError;
|
|
2605
|
-
};
|
|
2606
|
-
export type OauthTokenError2 = OauthTokenErrors[keyof OauthTokenErrors];
|
|
2607
|
-
export type OauthTokenResponses = {
|
|
2608
|
-
/**
|
|
2609
|
-
* OK
|
|
2610
|
-
*/
|
|
2611
|
-
200: OauthToken;
|
|
2612
|
-
};
|
|
2613
|
-
export type OauthTokenResponse = OauthTokenResponses[keyof OauthTokenResponses];
|
|
2614
|
-
export type PropertyFormatsListData = {
|
|
2615
|
-
body?: never;
|
|
2616
|
-
path?: never;
|
|
2617
|
-
query?: {
|
|
2618
|
-
pageIndex?: number;
|
|
2619
|
-
pageSize?: number;
|
|
2620
|
-
};
|
|
2621
|
-
url: '/propertyformats';
|
|
2622
|
-
};
|
|
2623
|
-
export type PropertyFormatsListErrors = {
|
|
2624
|
-
/**
|
|
2625
|
-
* Forbidden
|
|
2626
|
-
*/
|
|
2627
|
-
403: ProblemDetails;
|
|
2628
|
-
};
|
|
2629
|
-
export type PropertyFormatsListError = PropertyFormatsListErrors[keyof PropertyFormatsListErrors];
|
|
2630
|
-
export type PropertyFormatsListResponses = {
|
|
2631
|
-
/**
|
|
2632
|
-
* OK
|
|
2633
|
-
*/
|
|
2634
|
-
200: PropertyFormatPage;
|
|
2635
|
-
};
|
|
2636
|
-
export type PropertyFormatsListResponse = PropertyFormatsListResponses[keyof PropertyFormatsListResponses];
|
|
2637
|
-
export type PropertyFormatsGetData = {
|
|
2638
|
-
body?: never;
|
|
2639
|
-
path: {
|
|
2640
|
-
/**
|
|
2641
|
-
* The key of the property format to retrieve.
|
|
2642
|
-
*/
|
|
2643
|
-
key: string;
|
|
2644
|
-
};
|
|
2645
|
-
query?: {
|
|
2646
|
-
/**
|
|
2647
|
-
* Indicates that a deleted property format may be returned.
|
|
2648
|
-
*/
|
|
2649
|
-
allowDeleted?: boolean;
|
|
2650
|
-
};
|
|
2651
|
-
url: '/propertyformats/{key}';
|
|
2652
|
-
};
|
|
2653
|
-
export type PropertyFormatsGetErrors = {
|
|
2654
|
-
/**
|
|
2655
|
-
* Forbidden
|
|
2656
|
-
*/
|
|
2657
|
-
403: ProblemDetails;
|
|
2658
|
-
};
|
|
2659
|
-
export type PropertyFormatsGetError = PropertyFormatsGetErrors[keyof PropertyFormatsGetErrors];
|
|
2660
|
-
export type PropertyFormatsGetResponses = {
|
|
2661
|
-
/**
|
|
2662
|
-
* OK
|
|
2663
|
-
*/
|
|
2664
|
-
200: PropertyFormat;
|
|
2665
|
-
};
|
|
2666
|
-
export type PropertyFormatsGetResponse = PropertyFormatsGetResponses[keyof PropertyFormatsGetResponses];
|
|
2667
|
-
export type PropertyGroupsListData = {
|
|
2668
|
-
body?: never;
|
|
2669
|
-
path?: never;
|
|
2670
|
-
query?: {
|
|
2671
|
-
/**
|
|
2672
|
-
* Indicates which property groups sources that should be listed.
|
|
2673
|
-
* Use All to include groups from all sources or
|
|
2674
|
-
* Default to include groups without a specific sources.
|
|
2675
|
-
*/
|
|
2676
|
-
sources?: Array<string>;
|
|
2677
|
-
};
|
|
2678
|
-
url: '/propertygroups';
|
|
2679
|
-
};
|
|
2680
|
-
export type PropertyGroupsListErrors = {
|
|
2681
|
-
/**
|
|
2682
|
-
* Forbidden
|
|
2683
|
-
*/
|
|
2684
|
-
403: ProblemDetails;
|
|
2685
|
-
};
|
|
2686
|
-
export type PropertyGroupsListError = PropertyGroupsListErrors[keyof PropertyGroupsListErrors];
|
|
2687
|
-
export type PropertyGroupsListResponses = {
|
|
2688
|
-
/**
|
|
2689
|
-
* OK
|
|
2690
|
-
*/
|
|
2691
|
-
200: PropertyGroupPage;
|
|
2692
|
-
};
|
|
2693
|
-
export type PropertyGroupsListResponse = PropertyGroupsListResponses[keyof PropertyGroupsListResponses];
|
|
2694
|
-
export type PropertyGroupsCreateData = {
|
|
2695
|
-
/**
|
|
2696
|
-
* The property group that should be created.
|
|
2697
|
-
*/
|
|
2698
|
-
body: PropertyGroupWritable;
|
|
2699
|
-
path?: never;
|
|
2700
|
-
query?: never;
|
|
2701
|
-
url: '/propertygroups';
|
|
2702
|
-
};
|
|
2703
|
-
export type PropertyGroupsCreateErrors = {
|
|
2704
|
-
/**
|
|
2705
|
-
* Bad Request
|
|
2706
|
-
*/
|
|
2707
|
-
400: ProblemDetails;
|
|
2708
|
-
/**
|
|
2709
|
-
* Forbidden
|
|
2710
|
-
*/
|
|
2711
|
-
403: ProblemDetails;
|
|
2712
|
-
};
|
|
2713
|
-
export type PropertyGroupsCreateError = PropertyGroupsCreateErrors[keyof PropertyGroupsCreateErrors];
|
|
2714
|
-
export type PropertyGroupsCreateResponses = {
|
|
2715
|
-
/**
|
|
2716
|
-
* OK
|
|
2717
|
-
*/
|
|
2718
|
-
200: PropertyGroup;
|
|
2719
|
-
};
|
|
2720
|
-
export type PropertyGroupsCreateResponse = PropertyGroupsCreateResponses[keyof PropertyGroupsCreateResponses];
|
|
2721
|
-
export type PropertyGroupsDeleteData = {
|
|
2722
|
-
body?: never;
|
|
2723
|
-
path: {
|
|
2724
|
-
/**
|
|
2725
|
-
* The key of the property group to delete.
|
|
2726
|
-
*/
|
|
2727
|
-
key: string;
|
|
2728
|
-
};
|
|
2729
|
-
query?: never;
|
|
2730
|
-
url: '/propertygroups/{key}';
|
|
2731
|
-
};
|
|
2732
|
-
export type PropertyGroupsDeleteErrors = {
|
|
2733
|
-
/**
|
|
2734
|
-
* Bad Request
|
|
2735
|
-
*/
|
|
2736
|
-
400: ProblemDetails;
|
|
2737
|
-
/**
|
|
2738
|
-
* Forbidden
|
|
2739
|
-
*/
|
|
2740
|
-
403: ProblemDetails;
|
|
2741
|
-
};
|
|
2742
|
-
export type PropertyGroupsDeleteError = PropertyGroupsDeleteErrors[keyof PropertyGroupsDeleteErrors];
|
|
2743
|
-
export type PropertyGroupsDeleteResponses = {
|
|
2744
|
-
/**
|
|
2745
|
-
* OK
|
|
2746
|
-
*/
|
|
2747
|
-
200: PropertyGroup;
|
|
2748
|
-
};
|
|
2749
|
-
export type PropertyGroupsDeleteResponse = PropertyGroupsDeleteResponses[keyof PropertyGroupsDeleteResponses];
|
|
2750
|
-
export type PropertyGroupsGetData = {
|
|
2751
|
-
body?: never;
|
|
2752
|
-
path: {
|
|
2753
|
-
/**
|
|
2754
|
-
* The key of the property group to retrieve.
|
|
2755
|
-
*/
|
|
2756
|
-
key: string;
|
|
2757
|
-
};
|
|
2758
|
-
query?: never;
|
|
2759
|
-
url: '/propertygroups/{key}';
|
|
2760
|
-
};
|
|
2761
|
-
export type PropertyGroupsGetErrors = {
|
|
2762
|
-
/**
|
|
2763
|
-
* Forbidden
|
|
2764
|
-
*/
|
|
2765
|
-
403: ProblemDetails;
|
|
2766
|
-
};
|
|
2767
|
-
export type PropertyGroupsGetError = PropertyGroupsGetErrors[keyof PropertyGroupsGetErrors];
|
|
2768
|
-
export type PropertyGroupsGetResponses = {
|
|
2769
|
-
/**
|
|
2770
|
-
* OK
|
|
2771
|
-
*/
|
|
2772
|
-
200: PropertyGroup;
|
|
2773
|
-
};
|
|
2774
|
-
export type PropertyGroupsGetResponse = PropertyGroupsGetResponses[keyof PropertyGroupsGetResponses];
|
|
2775
|
-
export type PropertyGroupsPatchData = {
|
|
2776
|
-
/**
|
|
2777
|
-
* The values of the property group that should be updated.
|
|
2778
|
-
*/
|
|
2779
|
-
body: PropertyGroupWritable;
|
|
2780
|
-
path: {
|
|
2781
|
-
/**
|
|
2782
|
-
* The key of the property group to patch.
|
|
2783
|
-
*/
|
|
2784
|
-
key: string;
|
|
2785
|
-
};
|
|
2786
|
-
query?: never;
|
|
2787
|
-
url: '/propertygroups/{key}';
|
|
2788
|
-
};
|
|
2789
|
-
export type PropertyGroupsPatchErrors = {
|
|
2790
|
-
/**
|
|
2791
|
-
* Bad Request
|
|
2792
|
-
*/
|
|
2793
|
-
400: ProblemDetails;
|
|
2794
|
-
/**
|
|
2795
|
-
* Forbidden
|
|
2796
|
-
*/
|
|
2797
|
-
403: ProblemDetails;
|
|
2798
|
-
};
|
|
2799
|
-
export type PropertyGroupsPatchError = PropertyGroupsPatchErrors[keyof PropertyGroupsPatchErrors];
|
|
2800
|
-
export type PropertyGroupsPatchResponses = {
|
|
2801
|
-
/**
|
|
2802
|
-
* OK
|
|
2803
|
-
*/
|
|
2804
|
-
200: PropertyGroup;
|
|
2805
|
-
};
|
|
2806
|
-
export type PropertyGroupsPatchResponse = PropertyGroupsPatchResponses[keyof PropertyGroupsPatchResponses];
|
|
2807
|
-
export type PropertyGroupsPutData = {
|
|
2808
|
-
/**
|
|
2809
|
-
* The values of the created or replaced property group.
|
|
2810
|
-
*/
|
|
2811
|
-
body: PropertyGroupWritable;
|
|
2812
|
-
path: {
|
|
2813
|
-
/**
|
|
2814
|
-
* The key of the property group to update or create.
|
|
2815
|
-
*/
|
|
2816
|
-
key: string;
|
|
2817
|
-
};
|
|
2818
|
-
query?: never;
|
|
2819
|
-
url: '/propertygroups/{key}';
|
|
2820
|
-
};
|
|
2821
|
-
export type PropertyGroupsPutErrors = {
|
|
2822
|
-
/**
|
|
2823
|
-
* Bad Request
|
|
2824
|
-
*/
|
|
2825
|
-
400: ProblemDetails;
|
|
2826
|
-
/**
|
|
2827
|
-
* Forbidden
|
|
2828
|
-
*/
|
|
2829
|
-
403: ProblemDetails;
|
|
2830
|
-
};
|
|
2831
|
-
export type PropertyGroupsPutError = PropertyGroupsPutErrors[keyof PropertyGroupsPutErrors];
|
|
2832
|
-
export type PropertyGroupsPutResponses = {
|
|
2833
|
-
/**
|
|
2834
|
-
* OK
|
|
2835
|
-
*/
|
|
2836
|
-
200: PropertyGroup;
|
|
2837
|
-
};
|
|
2838
|
-
export type PropertyGroupsPutResponse = PropertyGroupsPutResponses[keyof PropertyGroupsPutResponses];
|