@remkoj/optimizely-cms-api 5.1.5 → 6.0.0-pre10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) hide show
  1. package/README.md +3 -5
  2. package/dist/api-client.d.ts +70 -11
  3. package/dist/api-client.js +208 -48
  4. package/dist/client/client/client.gen.d.ts +2 -0
  5. package/dist/client/client/client.gen.js +208 -0
  6. package/dist/client/client/index.d.ts +8 -0
  7. package/dist/client/client/index.js +17 -0
  8. package/dist/client/client/types.gen.d.ts +124 -0
  9. package/dist/client/{core/ApiRequestOptions.js → client/types.gen.js} +1 -0
  10. package/dist/client/client/utils.gen.d.ts +33 -0
  11. package/dist/client/client/utils.gen.js +242 -0
  12. package/dist/client/client.gen.d.ts +12 -0
  13. package/dist/client/client.gen.js +9 -0
  14. package/dist/client/core/auth.gen.d.ts +18 -0
  15. package/dist/client/core/auth.gen.js +18 -0
  16. package/dist/client/core/bodySerializer.gen.d.ts +25 -0
  17. package/dist/client/core/bodySerializer.gen.js +60 -0
  18. package/dist/client/core/params.gen.d.ts +33 -0
  19. package/dist/client/core/params.gen.js +92 -0
  20. package/dist/client/core/pathSerializer.gen.d.ts +33 -0
  21. package/dist/client/core/pathSerializer.gen.js +123 -0
  22. package/dist/client/core/queryKeySerializer.gen.d.ts +18 -0
  23. package/dist/client/core/queryKeySerializer.gen.js +105 -0
  24. package/dist/client/core/serverSentEvents.gen.d.ts +71 -0
  25. package/dist/client/core/serverSentEvents.gen.js +139 -0
  26. package/dist/client/core/types.gen.d.ts +78 -0
  27. package/dist/client/core/{ApiResult.js → types.gen.js} +1 -0
  28. package/dist/client/core/utils.gen.d.ts +19 -0
  29. package/dist/client/core/utils.gen.js +93 -0
  30. package/dist/client/index.d.ts +4 -78
  31. package/dist/client/index.js +18 -46
  32. package/dist/client/sdk.gen.d.ts +117 -0
  33. package/dist/client/sdk.gen.js +251 -0
  34. package/dist/client/transformers.gen.d.ts +18 -0
  35. package/dist/client/transformers.gen.js +157 -0
  36. package/dist/client/types.gen.d.ts +1285 -0
  37. package/dist/client/{models/BooleanProperty.js → types.gen.js} +1 -0
  38. package/dist/client-config.d.ts +5 -0
  39. package/dist/client-config.js +55 -0
  40. package/dist/config.d.ts +5 -2
  41. package/dist/config.js +26 -18
  42. package/dist/getaccesstoken.d.ts +1 -1
  43. package/dist/getaccesstoken.js +10 -9
  44. package/dist/index.d.ts +7 -6
  45. package/dist/index.js +15 -8
  46. package/dist/instance.client/client/client.gen.d.ts +2 -0
  47. package/dist/instance.client/client/client.gen.js +208 -0
  48. package/dist/instance.client/client/index.d.ts +8 -0
  49. package/dist/instance.client/client/index.js +17 -0
  50. package/dist/instance.client/client/types.gen.d.ts +124 -0
  51. package/dist/{client/models/BinaryProperty.js → instance.client/client/types.gen.js} +1 -0
  52. package/dist/instance.client/client/utils.gen.d.ts +33 -0
  53. package/dist/instance.client/client/utils.gen.js +242 -0
  54. package/dist/instance.client/client.gen.d.ts +12 -0
  55. package/dist/instance.client/client.gen.js +9 -0
  56. package/dist/instance.client/core/auth.gen.d.ts +18 -0
  57. package/dist/instance.client/core/auth.gen.js +18 -0
  58. package/dist/instance.client/core/bodySerializer.gen.d.ts +25 -0
  59. package/dist/instance.client/core/bodySerializer.gen.js +60 -0
  60. package/dist/instance.client/core/params.gen.d.ts +33 -0
  61. package/dist/instance.client/core/params.gen.js +92 -0
  62. package/dist/instance.client/core/pathSerializer.gen.d.ts +33 -0
  63. package/dist/instance.client/core/pathSerializer.gen.js +123 -0
  64. package/dist/instance.client/core/queryKeySerializer.gen.d.ts +18 -0
  65. package/dist/instance.client/core/queryKeySerializer.gen.js +105 -0
  66. package/dist/instance.client/core/serverSentEvents.gen.d.ts +71 -0
  67. package/dist/instance.client/core/serverSentEvents.gen.js +139 -0
  68. package/dist/instance.client/core/types.gen.d.ts +78 -0
  69. package/dist/instance.client/core/types.gen.js +3 -0
  70. package/dist/instance.client/core/utils.gen.d.ts +19 -0
  71. package/dist/instance.client/core/utils.gen.js +93 -0
  72. package/dist/instance.client/index.d.ts +4 -0
  73. package/dist/instance.client/index.js +21 -0
  74. package/dist/instance.client/sdk.gen.d.ts +303 -0
  75. package/dist/instance.client/sdk.gen.js +699 -0
  76. package/dist/instance.client/transformers.gen.d.ts +48 -0
  77. package/dist/instance.client/transformers.gen.js +431 -0
  78. package/dist/instance.client/types.gen.d.ts +2838 -0
  79. package/dist/instance.client/types.gen.js +3 -0
  80. package/dist/types.d.ts +3 -1
  81. package/dist/types.js +1 -0
  82. package/dist/version.json +3 -3
  83. package/package.json +16 -11
  84. package/dist/client/CmsIntegrationApiClient.d.ts +0 -22
  85. package/dist/client/CmsIntegrationApiClient.js +0 -34
  86. package/dist/client/core/ApiError.d.ts +0 -10
  87. package/dist/client/core/ApiError.js +0 -15
  88. package/dist/client/core/ApiRequestOptions.d.ts +0 -13
  89. package/dist/client/core/ApiResult.d.ts +0 -7
  90. package/dist/client/core/BaseHttpRequest.d.ts +0 -8
  91. package/dist/client/core/BaseHttpRequest.js +0 -9
  92. package/dist/client/core/CancelablePromise.d.ts +0 -20
  93. package/dist/client/core/CancelablePromise.js +0 -116
  94. package/dist/client/core/FetchHttpRequest.d.ts +0 -14
  95. package/dist/client/core/FetchHttpRequest.js +0 -20
  96. package/dist/client/core/OpenAPI.d.ts +0 -16
  97. package/dist/client/core/OpenAPI.js +0 -14
  98. package/dist/client/core/request.d.ts +0 -30
  99. package/dist/client/core/request.js +0 -294
  100. package/dist/client/models/BinaryProperty.d.ts +0 -8
  101. package/dist/client/models/BooleanProperty.d.ts +0 -5
  102. package/dist/client/models/Changeset.d.ts +0 -26
  103. package/dist/client/models/Changeset.js +0 -2
  104. package/dist/client/models/ChangesetItem.d.ts +0 -11
  105. package/dist/client/models/ChangesetItem.js +0 -2
  106. package/dist/client/models/ChangesetItemPage.d.ts +0 -19
  107. package/dist/client/models/ChangesetItemPage.js +0 -2
  108. package/dist/client/models/ChangesetPage.d.ts +0 -19
  109. package/dist/client/models/ChangesetPage.js +0 -2
  110. package/dist/client/models/ComponentListItem.d.ts +0 -10
  111. package/dist/client/models/ComponentListItem.js +0 -2
  112. package/dist/client/models/ComponentProperty.d.ts +0 -10
  113. package/dist/client/models/ComponentProperty.js +0 -2
  114. package/dist/client/models/CompositionBehavior.d.ts +0 -7
  115. package/dist/client/models/CompositionBehavior.js +0 -15
  116. package/dist/client/models/ContentBaseType.d.ts +0 -14
  117. package/dist/client/models/ContentBaseType.js +0 -22
  118. package/dist/client/models/ContentComponent.d.ts +0 -30
  119. package/dist/client/models/ContentComponent.js +0 -2
  120. package/dist/client/models/ContentItem.d.ts +0 -60
  121. package/dist/client/models/ContentItem.js +0 -2
  122. package/dist/client/models/ContentItemListWithContentTypes.d.ts +0 -27
  123. package/dist/client/models/ContentItemListWithContentTypes.js +0 -2
  124. package/dist/client/models/ContentItemPage.d.ts +0 -19
  125. package/dist/client/models/ContentItemPage.js +0 -2
  126. package/dist/client/models/ContentItemWithContentTypes.d.ts +0 -12
  127. package/dist/client/models/ContentItemWithContentTypes.js +0 -2
  128. package/dist/client/models/ContentListItem.d.ts +0 -14
  129. package/dist/client/models/ContentListItem.js +0 -2
  130. package/dist/client/models/ContentLocaleInfo.d.ts +0 -19
  131. package/dist/client/models/ContentLocaleInfo.js +0 -2
  132. package/dist/client/models/ContentMetadata.d.ts +0 -38
  133. package/dist/client/models/ContentMetadata.js +0 -2
  134. package/dist/client/models/ContentMetadataPage.d.ts +0 -19
  135. package/dist/client/models/ContentMetadataPage.js +0 -2
  136. package/dist/client/models/ContentProperty.d.ts +0 -14
  137. package/dist/client/models/ContentProperty.js +0 -2
  138. package/dist/client/models/ContentReference.d.ts +0 -17
  139. package/dist/client/models/ContentReference.js +0 -2
  140. package/dist/client/models/ContentReferenceListItem.d.ts +0 -14
  141. package/dist/client/models/ContentReferenceListItem.js +0 -2
  142. package/dist/client/models/ContentReferenceProperty.d.ts +0 -14
  143. package/dist/client/models/ContentReferenceProperty.js +0 -2
  144. package/dist/client/models/ContentType.d.ts +0 -84
  145. package/dist/client/models/ContentType.js +0 -2
  146. package/dist/client/models/ContentTypeFeature.d.ts +0 -10
  147. package/dist/client/models/ContentTypeFeature.js +0 -18
  148. package/dist/client/models/ContentTypePage.d.ts +0 -19
  149. package/dist/client/models/ContentTypePage.js +0 -2
  150. package/dist/client/models/ContentTypeProperty.d.ts +0 -47
  151. package/dist/client/models/ContentTypeProperty.js +0 -2
  152. package/dist/client/models/ContentTypeUsage.d.ts +0 -7
  153. package/dist/client/models/ContentTypeUsage.js +0 -15
  154. package/dist/client/models/CopyContentOptions.d.ts +0 -21
  155. package/dist/client/models/CopyContentOptions.js +0 -2
  156. package/dist/client/models/DateTimeListItem.d.ts +0 -14
  157. package/dist/client/models/DateTimeListItem.js +0 -2
  158. package/dist/client/models/DateTimeProperty.d.ts +0 -14
  159. package/dist/client/models/DateTimeProperty.js +0 -2
  160. package/dist/client/models/DisplaySetting.d.ts +0 -22
  161. package/dist/client/models/DisplaySetting.js +0 -2
  162. package/dist/client/models/DisplaySettingChoice.d.ts +0 -13
  163. package/dist/client/models/DisplaySettingChoice.js +0 -2
  164. package/dist/client/models/DisplayTemplate.d.ts +0 -49
  165. package/dist/client/models/DisplayTemplate.js +0 -2
  166. package/dist/client/models/DisplayTemplatePage.d.ts +0 -19
  167. package/dist/client/models/DisplayTemplatePage.js +0 -2
  168. package/dist/client/models/DoubleEnumerationSettings.d.ts +0 -10
  169. package/dist/client/models/DoubleEnumerationSettings.js +0 -2
  170. package/dist/client/models/DoubleEnumerationValue.d.ts +0 -13
  171. package/dist/client/models/DoubleEnumerationValue.js +0 -2
  172. package/dist/client/models/FloatListItem.d.ts +0 -16
  173. package/dist/client/models/FloatListItem.js +0 -2
  174. package/dist/client/models/FloatProperty.d.ts +0 -16
  175. package/dist/client/models/FloatProperty.js +0 -2
  176. package/dist/client/models/ImageDescriptor.d.ts +0 -17
  177. package/dist/client/models/ImageDescriptor.js +0 -2
  178. package/dist/client/models/IndexingType.d.ts +0 -8
  179. package/dist/client/models/IndexingType.js +0 -16
  180. package/dist/client/models/Int32EnumerationSettings.d.ts +0 -10
  181. package/dist/client/models/Int32EnumerationSettings.js +0 -2
  182. package/dist/client/models/Int32EnumerationValue.d.ts +0 -13
  183. package/dist/client/models/Int32EnumerationValue.js +0 -2
  184. package/dist/client/models/IntegerListItem.d.ts +0 -16
  185. package/dist/client/models/IntegerListItem.js +0 -2
  186. package/dist/client/models/IntegerProperty.d.ts +0 -16
  187. package/dist/client/models/IntegerProperty.js +0 -2
  188. package/dist/client/models/JsonStringProperty.d.ts +0 -5
  189. package/dist/client/models/JsonStringProperty.js +0 -2
  190. package/dist/client/models/ListProperty.d.ts +0 -26
  191. package/dist/client/models/ListProperty.js +0 -2
  192. package/dist/client/models/ListPropertyItem.d.ts +0 -11
  193. package/dist/client/models/ListPropertyItem.js +0 -2
  194. package/dist/client/models/LocaleStatus.d.ts +0 -7
  195. package/dist/client/models/LocaleStatus.js +0 -15
  196. package/dist/client/models/OauthToken.d.ts +0 -18
  197. package/dist/client/models/OauthToken.js +0 -2
  198. package/dist/client/models/OauthTokenError.d.ts +0 -13
  199. package/dist/client/models/OauthTokenError.js +0 -2
  200. package/dist/client/models/OauthTokenRequest.d.ts +0 -21
  201. package/dist/client/models/OauthTokenRequest.js +0 -2
  202. package/dist/client/models/ProblemDetails.d.ts +0 -1
  203. package/dist/client/models/ProblemDetails.js +0 -2
  204. package/dist/client/models/PropertyDataType.d.ts +0 -18
  205. package/dist/client/models/PropertyDataType.js +0 -26
  206. package/dist/client/models/PropertyFormat.d.ts +0 -37
  207. package/dist/client/models/PropertyFormat.js +0 -2
  208. package/dist/client/models/PropertyFormatPage.d.ts +0 -19
  209. package/dist/client/models/PropertyFormatPage.js +0 -2
  210. package/dist/client/models/PropertyGroup.d.ts +0 -21
  211. package/dist/client/models/PropertyGroup.js +0 -2
  212. package/dist/client/models/PropertyGroupPage.d.ts +0 -19
  213. package/dist/client/models/PropertyGroupPage.js +0 -2
  214. package/dist/client/models/StringEnumerationSettings.d.ts +0 -10
  215. package/dist/client/models/StringEnumerationSettings.js +0 -2
  216. package/dist/client/models/StringEnumerationValue.d.ts +0 -13
  217. package/dist/client/models/StringEnumerationValue.js +0 -2
  218. package/dist/client/models/StringListItem.d.ts +0 -20
  219. package/dist/client/models/StringListItem.js +0 -2
  220. package/dist/client/models/StringProperty.d.ts +0 -20
  221. package/dist/client/models/StringProperty.js +0 -2
  222. package/dist/client/models/UrlListItem.d.ts +0 -5
  223. package/dist/client/models/UrlListItem.js +0 -2
  224. package/dist/client/models/UrlProperty.d.ts +0 -5
  225. package/dist/client/models/UrlProperty.js +0 -2
  226. package/dist/client/models/VersionStatus.d.ts +0 -12
  227. package/dist/client/models/VersionStatus.js +0 -20
  228. package/dist/client/services/ChangesetsService.d.ts +0 -105
  229. package/dist/client/services/ChangesetsService.js +0 -239
  230. package/dist/client/services/ContentService.d.ts +0 -172
  231. package/dist/client/services/ContentService.js +0 -409
  232. package/dist/client/services/ContentTypesService.d.ts +0 -66
  233. package/dist/client/services/ContentTypesService.js +0 -149
  234. package/dist/client/services/DisplayTemplatesService.d.ts +0 -60
  235. package/dist/client/services/DisplayTemplatesService.js +0 -135
  236. package/dist/client/services/OauthService.d.ts +0 -17
  237. package/dist/client/services/OauthService.js +0 -28
  238. package/dist/client/services/PropertyFormatsService.d.ts +0 -26
  239. package/dist/client/services/PropertyFormatsService.js +0 -53
  240. package/dist/client/services/PropertyGroupsService.d.ts +0 -61
  241. package/dist/client/services/PropertyGroupsService.js +0 -135
@@ -0,0 +1,1285 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://api.cms.optimizely.com/preview3' | (string & {});
3
+ };
4
+ /**
5
+ * Describes the list item of a content type property of type 'array'.
6
+ */
7
+ export type ArrayItem = {
8
+ /**
9
+ * Gets the data type for the list item property.
10
+ */
11
+ type?: 'string' | 'url' | 'boolean' | 'integer' | 'float' | 'dateTime' | 'contentReference' | 'content' | 'binary' | 'link' | 'richText' | 'json' | 'component';
12
+ /**
13
+ * The key of the PropertyFormat that this property item is an instance of.
14
+ */
15
+ format?: string | null;
16
+ /**
17
+ * The key of the content type that a property with 'type': 'component' may contain.
18
+ */
19
+ contentType?: string | null;
20
+ /**
21
+ * The minimum value that properties of this type should be able to contain. Value type must match the type of the array item.
22
+ */
23
+ minimum?: number | null | number | string;
24
+ /**
25
+ * The maximum value that properties of this type should be able to contain. Value type must match the type of the array item.
26
+ */
27
+ maximum?: number | null | number | string;
28
+ /**
29
+ * The minimum string length that list items of this type should be able to contain.
30
+ */
31
+ minLength?: number | null;
32
+ /**
33
+ * The maximum string length that list items of this type should be able to contain.
34
+ */
35
+ maxLength?: number | null;
36
+ /**
37
+ * Regular expression pattern that limits what strings that list items of this type should be able to contain.
38
+ */
39
+ pattern?: string | null;
40
+ /**
41
+ * A list of possible values that properties of this type should be able to contain.
42
+ */
43
+ enum?: Array<EnumerationValue> | null;
44
+ /**
45
+ * Specifies which content types and base types this property is allowed to contain.
46
+ */
47
+ allowedTypes?: Array<string>;
48
+ /**
49
+ * Specifies which content types and base types this property cannot contain.
50
+ */
51
+ restrictedTypes?: Array<string>;
52
+ };
53
+ /**
54
+ * A writable implementation of an ContentType.
55
+ */
56
+ export type ContentType = {
57
+ /**
58
+ * The key that identifies this ContentType.
59
+ */
60
+ key?: string;
61
+ /**
62
+ * The display name of this ContentType.
63
+ */
64
+ displayName?: string;
65
+ /**
66
+ * A description of this ContentType.
67
+ */
68
+ description?: string;
69
+ /**
70
+ * The base type of this ContentType.
71
+ * Ignored for contracts; required for all other content types.
72
+ */
73
+ baseType?: string | null;
74
+ /**
75
+ * A string that is used to indicate the source of this ContentType.
76
+ */
77
+ readonly source?: string;
78
+ /**
79
+ * A value that is used to when sorting ContentType instances.
80
+ */
81
+ sortOrder?: number;
82
+ /**
83
+ * Provides a set of content types that can be created in containers of this type
84
+ */
85
+ mayContainTypes?: Array<string>;
86
+ /**
87
+ * Provides a set of media file extensions that this content type can handle.
88
+ */
89
+ mediaFileExtensions?: Array<string>;
90
+ /**
91
+ * Provides a set of composition behaviors specifying how this content type can be used within compositions.
92
+ */
93
+ compositionBehaviors?: Array<'sectionEnabled' | 'elementEnabled' | 'formsElementEnabled'>;
94
+ /**
95
+ * A timestamp indicating when this ContentType was first created.
96
+ */
97
+ readonly created?: Date;
98
+ /**
99
+ * Indicates the last time this content type was modified.
100
+ */
101
+ readonly lastModified?: Date;
102
+ /**
103
+ * The username of the user that made the latest modification to this ContentType.
104
+ */
105
+ readonly lastModifiedBy?: string;
106
+ /**
107
+ * Dictionary with all custom properties of this ContentType.
108
+ */
109
+ properties?: {
110
+ [key: string]: ContentTypeProperty;
111
+ };
112
+ };
113
+ export type ContentTypePage = {
114
+ /**
115
+ * The items in this paged collection.
116
+ */
117
+ readonly items?: Array<ContentType>;
118
+ /**
119
+ * The zero-based index of the current page.
120
+ */
121
+ readonly pageIndex?: number;
122
+ /**
123
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
124
+ */
125
+ readonly pageSize?: number;
126
+ /**
127
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
128
+ */
129
+ readonly totalItemCount?: number;
130
+ };
131
+ /**
132
+ * Describes a property of a ContentType in the CMS.
133
+ */
134
+ export type ContentTypeProperty = {
135
+ /**
136
+ * Gets the data type for the property.
137
+ */
138
+ type?: 'string' | 'url' | 'boolean' | 'integer' | 'float' | 'dateTime' | 'contentReference' | 'content' | 'binary' | 'link' | 'richText' | 'json' | 'array' | 'component';
139
+ /**
140
+ * The key of the PropertyFormat that this ContentTypeProperty is an instance of.
141
+ */
142
+ format?: string | null;
143
+ /**
144
+ * The key of the content type that a property with 'type': 'component' may contain.
145
+ */
146
+ contentType?: string | null;
147
+ /**
148
+ * The display name of this ContentTypeProperty.
149
+ */
150
+ displayName?: string;
151
+ /**
152
+ * A description of this ContentTypeProperty.
153
+ */
154
+ description?: string;
155
+ /**
156
+ * Indicates if a property instance of this type should be localized for each locale
157
+ * or if values are shared between all locales.
158
+ */
159
+ localized?: boolean;
160
+ /**
161
+ * Indicates if a property instance of this type must always be assigned a value.
162
+ */
163
+ required?: boolean;
164
+ /**
165
+ * A reference to the PropertyGroup that this ContentTypeProperty is part of.
166
+ * If this value is empty, a group may be assigned by the system.
167
+ */
168
+ group?: string;
169
+ /**
170
+ * An value that is used to when sorting ContentTypeProperty instances.
171
+ */
172
+ sortOrder?: number;
173
+ /**
174
+ * Indicates how should this property will be indexed in the search engine.
175
+ * If this value is not explicitly set, the property will be indexed using default indexing setting of the search engine.
176
+ */
177
+ indexingType?: 'disabled' | 'queryable' | 'searchable';
178
+ /**
179
+ * The minimum value that properties of this type should be able to contain. Value type must match the type of the property.
180
+ */
181
+ minimum?: number | null | number | string;
182
+ /**
183
+ * The minimum value that properties of this type should be able to contain. Value type must match the type of the property.
184
+ */
185
+ maximum?: number | null | number | string;
186
+ /**
187
+ * A list of possible values that properties of this type should be able to contain.
188
+ */
189
+ enum?: Array<EnumerationValue> | null;
190
+ imageDescriptor?: ImageDescriptor;
191
+ /**
192
+ * The minimum string length that properties of this type should be able to contain.
193
+ */
194
+ minLength?: number | null;
195
+ /**
196
+ * The maximum string length that properties of this type should be able to contain.
197
+ */
198
+ maxLength?: number | null;
199
+ /**
200
+ * Regular expression pattern that limits what value that a string type property should be able to contain.
201
+ */
202
+ pattern?: string | null;
203
+ /**
204
+ * Optional minimum list length validation.
205
+ */
206
+ minItems?: number | null;
207
+ /**
208
+ * Optional maximum list length validation.
209
+ */
210
+ maxItems?: number | null;
211
+ /**
212
+ * Specifies which content types and base types these property items are allowed to contain.
213
+ */
214
+ allowedTypes?: Array<string>;
215
+ /**
216
+ * Specifies which content types and base types these property items cannot contain.
217
+ */
218
+ restrictedTypes?: Array<string>;
219
+ items?: ArrayItem;
220
+ };
221
+ /**
222
+ * Describes a setting for a display template.
223
+ */
224
+ export type DisplaySetting = {
225
+ /**
226
+ * The display name of this display setting.
227
+ */
228
+ displayName: string;
229
+ /**
230
+ * The suggested editor for this display setting.
231
+ */
232
+ editor?: string;
233
+ /**
234
+ * The sort order of this display setting within the template.
235
+ */
236
+ sortOrder?: number;
237
+ /**
238
+ * The available choices for this display setting.
239
+ */
240
+ choices?: {
241
+ [key: string]: DisplaySettingChoice;
242
+ };
243
+ };
244
+ /**
245
+ * Describes a setting for a display template.
246
+ */
247
+ export type DisplaySettingChoice = {
248
+ /**
249
+ * The display name of this display setting choice.
250
+ */
251
+ displayName: string;
252
+ /**
253
+ * The sort order of this choice within the setting.
254
+ */
255
+ sortOrder?: number;
256
+ };
257
+ /**
258
+ * Describes a display template that can be assigned to content.
259
+ */
260
+ export type DisplayTemplate = {
261
+ /**
262
+ * The key that identifies this display template.
263
+ */
264
+ key?: string;
265
+ /**
266
+ * The display name of this display template.
267
+ */
268
+ displayName: string;
269
+ /**
270
+ * The optional node type this display template is valid for.
271
+ */
272
+ nodeType?: string | null;
273
+ /**
274
+ * The optional base type this display template is valid for.
275
+ */
276
+ baseType?: string | null;
277
+ /**
278
+ * The optional key of the content type this display template is valid for.
279
+ */
280
+ contentType?: string | null;
281
+ /**
282
+ * If this is the default display template for the associated base type, node type or content type.
283
+ */
284
+ isDefault?: boolean;
285
+ /**
286
+ * A timestamp indicating when this display template was first created.
287
+ */
288
+ readonly created?: Date;
289
+ /**
290
+ * The username of the user that created this display template.
291
+ */
292
+ readonly createdBy?: string;
293
+ /**
294
+ * A timestamp indicating when this display template was last modified.
295
+ */
296
+ readonly lastModified?: Date;
297
+ /**
298
+ * The username of the user that last modified this display template.
299
+ */
300
+ readonly lastModifiedBy?: string;
301
+ /**
302
+ * The available settings for this display template.
303
+ */
304
+ settings?: {
305
+ [key: string]: DisplaySetting;
306
+ };
307
+ };
308
+ export type DisplayTemplatePage = {
309
+ /**
310
+ * The items in this paged collection.
311
+ */
312
+ readonly items?: Array<DisplayTemplate>;
313
+ /**
314
+ * The zero-based index of the current page.
315
+ */
316
+ readonly pageIndex?: number;
317
+ /**
318
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
319
+ */
320
+ readonly pageSize?: number;
321
+ /**
322
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
323
+ */
324
+ readonly totalItemCount?: number;
325
+ };
326
+ /**
327
+ * Describes one value in an enumeration of possible values.
328
+ */
329
+ export type EnumerationValue = {
330
+ /**
331
+ * The defined enumeration value. Value type must match the property type.
332
+ */
333
+ value: number | null | number | string;
334
+ /**
335
+ * The display name of the enumeration value.
336
+ */
337
+ displayName: string;
338
+ };
339
+ /**
340
+ * Instruction for generating an alternative image from the main binary of an image content item.
341
+ */
342
+ export type ImageDescriptor = {
343
+ /**
344
+ * The image width in pixels.
345
+ */
346
+ width?: number;
347
+ /**
348
+ * The image height in pixels.
349
+ */
350
+ height?: number;
351
+ /**
352
+ * Indicates if the image should be pre-generated when a new image is uploaded rather than when first requested.
353
+ */
354
+ pregenerated?: boolean;
355
+ };
356
+ export type ProblemDetails = {
357
+ /**
358
+ * A URI reference that identifies the problem type.
359
+ */
360
+ type?: string | null;
361
+ /**
362
+ * A short, human-readable summary of the problem type.
363
+ */
364
+ title?: string | null;
365
+ /**
366
+ * The HTTP status code generated by the origin server for this occurrence of the problem.
367
+ */
368
+ status?: number | null;
369
+ /**
370
+ * A human-readable explanation specific to this occurrence of the problem.
371
+ */
372
+ detail?: string | null;
373
+ /**
374
+ * A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
375
+ */
376
+ instance?: string | null;
377
+ /**
378
+ * Error code that identifies the problem type.
379
+ */
380
+ code?: string | null;
381
+ /**
382
+ * An array of error details with more detailed information about the problem.
383
+ */
384
+ errors?: Array<{
385
+ /**
386
+ * A granular explanation of one specific error related to a field, header or query parameter.
387
+ */
388
+ detail?: string;
389
+ /**
390
+ * A string that may provide a hint to which field that was the source of the error.
391
+ */
392
+ field?: string | null;
393
+ }> | null;
394
+ [key: string]: unknown | string | null | string | null | number | null | string | null | string | null | string | null | Array<{
395
+ /**
396
+ * A granular explanation of one specific error related to a field, header or query parameter.
397
+ */
398
+ detail?: string;
399
+ /**
400
+ * A string that may provide a hint to which field that was the source of the error.
401
+ */
402
+ field?: string | null;
403
+ }> | null | undefined;
404
+ };
405
+ /**
406
+ * Represent the definition of semantic property formats for content items.
407
+ */
408
+ export type PropertyFormat = {
409
+ /**
410
+ * The key that identifies this PropertyFormat.
411
+ */
412
+ key?: string;
413
+ /**
414
+ * The underlying data type used for this PropertyFormat.
415
+ */
416
+ dataType?: 'string' | 'url' | 'boolean' | 'integer' | 'float' | 'dateTime' | 'contentReference' | 'content' | 'binary' | 'link' | 'richText' | 'json' | 'array' | 'component';
417
+ /**
418
+ * The underlying item type used for this PropertyFormat.
419
+ */
420
+ itemType?: 'string' | 'url' | 'boolean' | 'integer' | 'float' | 'dateTime' | 'contentReference' | 'content' | 'binary' | 'link' | 'richText' | 'json' | 'array' | 'component';
421
+ /**
422
+ * The name and identifier of this PropertyFormat.
423
+ */
424
+ displayName?: string;
425
+ /**
426
+ * Indicates if this property format has been deleted.
427
+ */
428
+ readonly deleted?: boolean;
429
+ /**
430
+ * A timestamp indicating when this display template was first created.
431
+ */
432
+ readonly created?: Date;
433
+ /**
434
+ * The username of the user that created this display template.
435
+ */
436
+ readonly createdBy?: string;
437
+ /**
438
+ * A timestamp indicating when this display template was last modified.
439
+ */
440
+ readonly lastModified?: Date;
441
+ /**
442
+ * The username of the user that last modified this display template.
443
+ */
444
+ readonly lastModifiedBy?: string;
445
+ };
446
+ export type PropertyFormatPage = {
447
+ /**
448
+ * The items in this paged collection.
449
+ */
450
+ readonly items?: Array<PropertyFormat>;
451
+ /**
452
+ * The zero-based index of the current page.
453
+ */
454
+ readonly pageIndex?: number;
455
+ /**
456
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
457
+ */
458
+ readonly pageSize?: number;
459
+ /**
460
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
461
+ */
462
+ readonly totalItemCount?: number;
463
+ };
464
+ /**
465
+ * Describes a property group of a ContentType in the CMS.
466
+ */
467
+ export type PropertyGroup = {
468
+ /**
469
+ * The key that identifies this PropertyGroup.
470
+ */
471
+ key?: string;
472
+ /**
473
+ * The display name of this PropertyGroup.
474
+ */
475
+ displayName?: string;
476
+ /**
477
+ * A string that is used to indicate the source of this PropertyGroup.
478
+ */
479
+ readonly source?: string;
480
+ /**
481
+ * An value that is used to when sorting PropertyGroup instances.
482
+ */
483
+ sortOrder?: number;
484
+ /**
485
+ * A timestamp indicating when this property group was first created.
486
+ */
487
+ readonly created?: Date;
488
+ /**
489
+ * The username of the user that created this property group.
490
+ */
491
+ readonly createdBy?: string;
492
+ readonly lastModified?: Date;
493
+ /**
494
+ * The username of the user that last modified this property group.
495
+ */
496
+ readonly lastModifiedBy?: string;
497
+ };
498
+ export type PropertyGroupPage = {
499
+ /**
500
+ * The items in this paged collection.
501
+ */
502
+ readonly items?: Array<PropertyGroup>;
503
+ /**
504
+ * The zero-based index of the current page.
505
+ */
506
+ readonly pageIndex?: number;
507
+ /**
508
+ * The number of items in each page. Not necessarily the same as the number of items in this page.
509
+ */
510
+ readonly pageSize?: number;
511
+ /**
512
+ * The estimated total number of items in the collection. May be omitted if the total item count is unknown.
513
+ */
514
+ readonly totalItemCount?: number;
515
+ };
516
+ /**
517
+ * A writable implementation of an ContentType.
518
+ */
519
+ export type ContentTypeWritable = {
520
+ /**
521
+ * The key that identifies this ContentType.
522
+ */
523
+ key?: string;
524
+ /**
525
+ * The display name of this ContentType.
526
+ */
527
+ displayName?: string;
528
+ /**
529
+ * A description of this ContentType.
530
+ */
531
+ description?: string;
532
+ /**
533
+ * The base type of this ContentType.
534
+ * Ignored for contracts; required for all other content types.
535
+ */
536
+ baseType?: string | null;
537
+ /**
538
+ * A value that is used to when sorting ContentType instances.
539
+ */
540
+ sortOrder?: number;
541
+ /**
542
+ * Provides a set of content types that can be created in containers of this type
543
+ */
544
+ mayContainTypes?: Array<string>;
545
+ /**
546
+ * Provides a set of media file extensions that this content type can handle.
547
+ */
548
+ mediaFileExtensions?: Array<string>;
549
+ /**
550
+ * Provides a set of composition behaviors specifying how this content type can be used within compositions.
551
+ */
552
+ compositionBehaviors?: Array<'sectionEnabled' | 'elementEnabled' | 'formsElementEnabled'>;
553
+ /**
554
+ * Dictionary with all custom properties of this ContentType.
555
+ */
556
+ properties?: {
557
+ [key: string]: ContentTypeProperty;
558
+ };
559
+ };
560
+ export type ContentTypePageWritable = {
561
+ [key: string]: never;
562
+ };
563
+ /**
564
+ * Describes a display template that can be assigned to content.
565
+ */
566
+ export type DisplayTemplateWritable = {
567
+ /**
568
+ * The key that identifies this display template.
569
+ */
570
+ key?: string;
571
+ /**
572
+ * The display name of this display template.
573
+ */
574
+ displayName: string;
575
+ /**
576
+ * The optional node type this display template is valid for.
577
+ */
578
+ nodeType?: string | null;
579
+ /**
580
+ * The optional base type this display template is valid for.
581
+ */
582
+ baseType?: string | null;
583
+ /**
584
+ * The optional key of the content type this display template is valid for.
585
+ */
586
+ contentType?: string | null;
587
+ /**
588
+ * If this is the default display template for the associated base type, node type or content type.
589
+ */
590
+ isDefault?: boolean;
591
+ /**
592
+ * The available settings for this display template.
593
+ */
594
+ settings?: {
595
+ [key: string]: DisplaySetting;
596
+ };
597
+ };
598
+ export type DisplayTemplatePageWritable = {
599
+ [key: string]: never;
600
+ };
601
+ /**
602
+ * Represent the definition of semantic property formats for content items.
603
+ */
604
+ export type PropertyFormatWritable = {
605
+ /**
606
+ * The key that identifies this PropertyFormat.
607
+ */
608
+ key?: string;
609
+ /**
610
+ * The underlying data type used for this PropertyFormat.
611
+ */
612
+ dataType?: 'string' | 'url' | 'boolean' | 'integer' | 'float' | 'dateTime' | 'contentReference' | 'content' | 'binary' | 'link' | 'richText' | 'json' | 'array' | 'component';
613
+ /**
614
+ * The underlying item type used for this PropertyFormat.
615
+ */
616
+ itemType?: 'string' | 'url' | 'boolean' | 'integer' | 'float' | 'dateTime' | 'contentReference' | 'content' | 'binary' | 'link' | 'richText' | 'json' | 'array' | 'component';
617
+ /**
618
+ * The name and identifier of this PropertyFormat.
619
+ */
620
+ displayName?: string;
621
+ };
622
+ export type PropertyFormatPageWritable = {
623
+ [key: string]: never;
624
+ };
625
+ /**
626
+ * Describes a property group of a ContentType in the CMS.
627
+ */
628
+ export type PropertyGroupWritable = {
629
+ /**
630
+ * The key that identifies this PropertyGroup.
631
+ */
632
+ key?: string;
633
+ /**
634
+ * The display name of this PropertyGroup.
635
+ */
636
+ displayName?: string;
637
+ /**
638
+ * An value that is used to when sorting PropertyGroup instances.
639
+ */
640
+ sortOrder?: number;
641
+ };
642
+ export type PropertyGroupPageWritable = {
643
+ [key: string]: never;
644
+ };
645
+ export type ContentTypesListData = {
646
+ body?: never;
647
+ path?: never;
648
+ query?: {
649
+ /**
650
+ * Only include types that are available for creation under the provided container type
651
+ */
652
+ forContainerType?: string;
653
+ /**
654
+ * Indicates which sources should be included when listing content types.
655
+ * Use 'DEFAULT' to include content types without a specific source.
656
+ */
657
+ sources?: Array<string>;
658
+ pageIndex?: number;
659
+ pageSize?: number;
660
+ };
661
+ url: '/contenttypes';
662
+ };
663
+ export type ContentTypesListErrors = {
664
+ /**
665
+ * Forbidden
666
+ */
667
+ 403: ProblemDetails;
668
+ };
669
+ export type ContentTypesListError = ContentTypesListErrors[keyof ContentTypesListErrors];
670
+ export type ContentTypesListResponses = {
671
+ /**
672
+ * OK
673
+ */
674
+ 200: ContentTypePage;
675
+ };
676
+ export type ContentTypesListResponse = ContentTypesListResponses[keyof ContentTypesListResponses];
677
+ export type ContentTypesCreateData = {
678
+ /**
679
+ * The content type that should be created or replaced.
680
+ */
681
+ body: ContentTypeWritable;
682
+ path?: never;
683
+ query?: never;
684
+ url: '/contenttypes';
685
+ };
686
+ export type ContentTypesCreateErrors = {
687
+ /**
688
+ * Bad Request
689
+ */
690
+ 400: ProblemDetails;
691
+ /**
692
+ * Forbidden
693
+ */
694
+ 403: ProblemDetails;
695
+ };
696
+ export type ContentTypesCreateError = ContentTypesCreateErrors[keyof ContentTypesCreateErrors];
697
+ export type ContentTypesCreateResponses = {
698
+ /**
699
+ * Created
700
+ */
701
+ 201: ContentType;
702
+ };
703
+ export type ContentTypesCreateResponse = ContentTypesCreateResponses[keyof ContentTypesCreateResponses];
704
+ export type ContentTypesDeleteData = {
705
+ body?: never;
706
+ headers?: {
707
+ /**
708
+ * If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
709
+ */
710
+ ifMatch?: string;
711
+ /**
712
+ * If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
713
+ */
714
+ ifUnmodifiedSince?: string;
715
+ };
716
+ path: {
717
+ /**
718
+ * The key of the content type to delete.
719
+ */
720
+ key: string;
721
+ };
722
+ query?: never;
723
+ url: '/contenttypes/{key}';
724
+ };
725
+ export type ContentTypesDeleteErrors = {
726
+ /**
727
+ * Bad Request
728
+ */
729
+ 400: ProblemDetails;
730
+ /**
731
+ * Forbidden
732
+ */
733
+ 403: ProblemDetails;
734
+ /**
735
+ * Not Found
736
+ */
737
+ 404: ProblemDetails;
738
+ /**
739
+ * Precondition Failed
740
+ */
741
+ 412: ProblemDetails;
742
+ };
743
+ export type ContentTypesDeleteError = ContentTypesDeleteErrors[keyof ContentTypesDeleteErrors];
744
+ export type ContentTypesDeleteResponses = {
745
+ /**
746
+ * OK
747
+ */
748
+ 200: ContentType;
749
+ };
750
+ export type ContentTypesDeleteResponse = ContentTypesDeleteResponses[keyof ContentTypesDeleteResponses];
751
+ export type ContentTypesGetData = {
752
+ body?: never;
753
+ headers?: {
754
+ /**
755
+ * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
756
+ */
757
+ ifNoneMatch?: string;
758
+ /**
759
+ * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
760
+ */
761
+ ifModifiedSince?: string;
762
+ };
763
+ path: {
764
+ /**
765
+ * The key of the content type to retrieve.
766
+ */
767
+ key: string;
768
+ };
769
+ query?: never;
770
+ url: '/contenttypes/{key}';
771
+ };
772
+ export type ContentTypesGetErrors = {
773
+ /**
774
+ * Forbidden
775
+ */
776
+ 403: ProblemDetails;
777
+ /**
778
+ * Not Found
779
+ */
780
+ 404: ProblemDetails;
781
+ };
782
+ export type ContentTypesGetError = ContentTypesGetErrors[keyof ContentTypesGetErrors];
783
+ export type ContentTypesGetResponses = {
784
+ /**
785
+ * OK
786
+ */
787
+ 200: ContentType;
788
+ };
789
+ export type ContentTypesGetResponse = ContentTypesGetResponses[keyof ContentTypesGetResponses];
790
+ export type ContentTypesPatchData = {
791
+ /**
792
+ * The values of the content type that should be patched formatted according to RFC7396.
793
+ */
794
+ body: ContentTypeWritable;
795
+ headers?: {
796
+ /**
797
+ * Patch the content type even though the changes might result in data loss.
798
+ */
799
+ cmsIgnoreDataLossWarnings?: boolean;
800
+ /**
801
+ * If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
802
+ */
803
+ ifMatch?: string;
804
+ /**
805
+ * If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
806
+ */
807
+ ifUnmodifiedSince?: string;
808
+ };
809
+ path: {
810
+ /**
811
+ * The key of the content type to patch.
812
+ */
813
+ key: string;
814
+ };
815
+ query?: never;
816
+ url: '/contenttypes/{key}';
817
+ };
818
+ export type ContentTypesPatchErrors = {
819
+ /**
820
+ * Bad Request
821
+ */
822
+ 400: ProblemDetails;
823
+ /**
824
+ * Forbidden
825
+ */
826
+ 403: ProblemDetails;
827
+ /**
828
+ * Not Found
829
+ */
830
+ 404: ProblemDetails;
831
+ /**
832
+ * Precondition Failed
833
+ */
834
+ 412: ProblemDetails;
835
+ };
836
+ export type ContentTypesPatchError = ContentTypesPatchErrors[keyof ContentTypesPatchErrors];
837
+ export type ContentTypesPatchResponses = {
838
+ /**
839
+ * OK
840
+ */
841
+ 200: ContentType;
842
+ };
843
+ export type ContentTypesPatchResponse = ContentTypesPatchResponses[keyof ContentTypesPatchResponses];
844
+ export type DisplayTemplatesListData = {
845
+ body?: never;
846
+ path?: never;
847
+ query?: {
848
+ pageIndex?: number;
849
+ pageSize?: number;
850
+ };
851
+ url: '/displaytemplates';
852
+ };
853
+ export type DisplayTemplatesListErrors = {
854
+ /**
855
+ * Forbidden
856
+ */
857
+ 403: ProblemDetails;
858
+ };
859
+ export type DisplayTemplatesListError = DisplayTemplatesListErrors[keyof DisplayTemplatesListErrors];
860
+ export type DisplayTemplatesListResponses = {
861
+ /**
862
+ * OK
863
+ */
864
+ 200: DisplayTemplatePage;
865
+ };
866
+ export type DisplayTemplatesListResponse = DisplayTemplatesListResponses[keyof DisplayTemplatesListResponses];
867
+ export type DisplayTemplatesCreateData = {
868
+ /**
869
+ * The display template that should be created.
870
+ */
871
+ body: DisplayTemplateWritable;
872
+ path?: never;
873
+ query?: never;
874
+ url: '/displaytemplates';
875
+ };
876
+ export type DisplayTemplatesCreateErrors = {
877
+ /**
878
+ * Bad Request
879
+ */
880
+ 400: ProblemDetails;
881
+ /**
882
+ * Forbidden
883
+ */
884
+ 403: ProblemDetails;
885
+ };
886
+ export type DisplayTemplatesCreateError = DisplayTemplatesCreateErrors[keyof DisplayTemplatesCreateErrors];
887
+ export type DisplayTemplatesCreateResponses = {
888
+ /**
889
+ * Created
890
+ */
891
+ 201: DisplayTemplate;
892
+ };
893
+ export type DisplayTemplatesCreateResponse = DisplayTemplatesCreateResponses[keyof DisplayTemplatesCreateResponses];
894
+ export type DisplayTemplatesDeleteData = {
895
+ body?: never;
896
+ headers?: {
897
+ /**
898
+ * If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
899
+ */
900
+ ifMatch?: string;
901
+ /**
902
+ * If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
903
+ */
904
+ ifUnmodifiedSince?: string;
905
+ };
906
+ path: {
907
+ /**
908
+ * The key of the display template to delete.
909
+ */
910
+ key: string;
911
+ };
912
+ query?: never;
913
+ url: '/displaytemplates/{key}';
914
+ };
915
+ export type DisplayTemplatesDeleteErrors = {
916
+ /**
917
+ * Bad Request
918
+ */
919
+ 400: ProblemDetails;
920
+ /**
921
+ * Forbidden
922
+ */
923
+ 403: ProblemDetails;
924
+ /**
925
+ * Not Found
926
+ */
927
+ 404: ProblemDetails;
928
+ /**
929
+ * Precondition Failed
930
+ */
931
+ 412: ProblemDetails;
932
+ };
933
+ export type DisplayTemplatesDeleteError = DisplayTemplatesDeleteErrors[keyof DisplayTemplatesDeleteErrors];
934
+ export type DisplayTemplatesDeleteResponses = {
935
+ /**
936
+ * OK
937
+ */
938
+ 200: DisplayTemplate;
939
+ };
940
+ export type DisplayTemplatesDeleteResponse = DisplayTemplatesDeleteResponses[keyof DisplayTemplatesDeleteResponses];
941
+ export type DisplayTemplatesGetData = {
942
+ body?: never;
943
+ headers?: {
944
+ /**
945
+ * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
946
+ */
947
+ ifNoneMatch?: string;
948
+ /**
949
+ * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
950
+ */
951
+ ifModifiedSince?: string;
952
+ };
953
+ path: {
954
+ /**
955
+ * The key of the display template to retrieve.
956
+ */
957
+ key: string;
958
+ };
959
+ query?: never;
960
+ url: '/displaytemplates/{key}';
961
+ };
962
+ export type DisplayTemplatesGetErrors = {
963
+ /**
964
+ * Forbidden
965
+ */
966
+ 403: ProblemDetails;
967
+ /**
968
+ * Not Found
969
+ */
970
+ 404: ProblemDetails;
971
+ };
972
+ export type DisplayTemplatesGetError = DisplayTemplatesGetErrors[keyof DisplayTemplatesGetErrors];
973
+ export type DisplayTemplatesGetResponses = {
974
+ /**
975
+ * OK
976
+ */
977
+ 200: DisplayTemplate;
978
+ };
979
+ export type DisplayTemplatesGetResponse = DisplayTemplatesGetResponses[keyof DisplayTemplatesGetResponses];
980
+ export type DisplayTemplatesPatchData = {
981
+ /**
982
+ * The values of the display template that should be patched formatted according to RFC7396.
983
+ */
984
+ body: DisplayTemplateWritable;
985
+ headers?: {
986
+ /**
987
+ * If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
988
+ */
989
+ ifMatch?: string;
990
+ /**
991
+ * If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
992
+ */
993
+ ifUnmodifiedSince?: string;
994
+ };
995
+ path: {
996
+ /**
997
+ * The key of the display template to patch.
998
+ */
999
+ key: string;
1000
+ };
1001
+ query?: never;
1002
+ url: '/displaytemplates/{key}';
1003
+ };
1004
+ export type DisplayTemplatesPatchErrors = {
1005
+ /**
1006
+ * Bad Request
1007
+ */
1008
+ 400: ProblemDetails;
1009
+ /**
1010
+ * Forbidden
1011
+ */
1012
+ 403: ProblemDetails;
1013
+ /**
1014
+ * Not Found
1015
+ */
1016
+ 404: ProblemDetails;
1017
+ /**
1018
+ * Precondition Failed
1019
+ */
1020
+ 412: ProblemDetails;
1021
+ };
1022
+ export type DisplayTemplatesPatchError = DisplayTemplatesPatchErrors[keyof DisplayTemplatesPatchErrors];
1023
+ export type DisplayTemplatesPatchResponses = {
1024
+ /**
1025
+ * OK
1026
+ */
1027
+ 200: DisplayTemplate;
1028
+ };
1029
+ export type DisplayTemplatesPatchResponse = DisplayTemplatesPatchResponses[keyof DisplayTemplatesPatchResponses];
1030
+ export type PropertyFormatsListData = {
1031
+ body?: never;
1032
+ path?: never;
1033
+ query?: {
1034
+ pageIndex?: number;
1035
+ pageSize?: number;
1036
+ };
1037
+ url: '/propertyformats';
1038
+ };
1039
+ export type PropertyFormatsListErrors = {
1040
+ /**
1041
+ * Forbidden
1042
+ */
1043
+ 403: ProblemDetails;
1044
+ };
1045
+ export type PropertyFormatsListError = PropertyFormatsListErrors[keyof PropertyFormatsListErrors];
1046
+ export type PropertyFormatsListResponses = {
1047
+ /**
1048
+ * OK
1049
+ */
1050
+ 200: PropertyFormatPage;
1051
+ };
1052
+ export type PropertyFormatsListResponse = PropertyFormatsListResponses[keyof PropertyFormatsListResponses];
1053
+ export type PropertyFormatsGetData = {
1054
+ body?: never;
1055
+ headers?: {
1056
+ /**
1057
+ * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
1058
+ */
1059
+ ifNoneMatch?: string;
1060
+ /**
1061
+ * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
1062
+ */
1063
+ ifModifiedSince?: string;
1064
+ };
1065
+ path: {
1066
+ /**
1067
+ * The key of the property format to retrieve.
1068
+ */
1069
+ key: string;
1070
+ };
1071
+ query?: {
1072
+ /**
1073
+ * Indicates that a deleted property format may be returned.
1074
+ */
1075
+ allowDeleted?: boolean;
1076
+ };
1077
+ url: '/propertyformats/{key}';
1078
+ };
1079
+ export type PropertyFormatsGetErrors = {
1080
+ /**
1081
+ * Forbidden
1082
+ */
1083
+ 403: ProblemDetails;
1084
+ /**
1085
+ * Not Found
1086
+ */
1087
+ 404: ProblemDetails;
1088
+ };
1089
+ export type PropertyFormatsGetError = PropertyFormatsGetErrors[keyof PropertyFormatsGetErrors];
1090
+ export type PropertyFormatsGetResponses = {
1091
+ /**
1092
+ * OK
1093
+ */
1094
+ 200: PropertyFormat;
1095
+ };
1096
+ export type PropertyFormatsGetResponse = PropertyFormatsGetResponses[keyof PropertyFormatsGetResponses];
1097
+ export type PropertyGroupsListData = {
1098
+ body?: never;
1099
+ path?: never;
1100
+ query?: {
1101
+ /**
1102
+ * Indicates which property groups sources should be listed.
1103
+ * Use 'DEFAULT' to include groups without a specific sources.
1104
+ */
1105
+ sources?: Array<string>;
1106
+ };
1107
+ url: '/propertygroups';
1108
+ };
1109
+ export type PropertyGroupsListErrors = {
1110
+ /**
1111
+ * Forbidden
1112
+ */
1113
+ 403: ProblemDetails;
1114
+ };
1115
+ export type PropertyGroupsListError = PropertyGroupsListErrors[keyof PropertyGroupsListErrors];
1116
+ export type PropertyGroupsListResponses = {
1117
+ /**
1118
+ * OK
1119
+ */
1120
+ 200: PropertyGroupPage;
1121
+ };
1122
+ export type PropertyGroupsListResponse = PropertyGroupsListResponses[keyof PropertyGroupsListResponses];
1123
+ export type PropertyGroupsCreateData = {
1124
+ /**
1125
+ * The property group that should be created.
1126
+ */
1127
+ body: PropertyGroupWritable;
1128
+ path?: never;
1129
+ query?: never;
1130
+ url: '/propertygroups';
1131
+ };
1132
+ export type PropertyGroupsCreateErrors = {
1133
+ /**
1134
+ * Bad Request
1135
+ */
1136
+ 400: ProblemDetails;
1137
+ /**
1138
+ * Forbidden
1139
+ */
1140
+ 403: ProblemDetails;
1141
+ };
1142
+ export type PropertyGroupsCreateError = PropertyGroupsCreateErrors[keyof PropertyGroupsCreateErrors];
1143
+ export type PropertyGroupsCreateResponses = {
1144
+ /**
1145
+ * Created
1146
+ */
1147
+ 201: PropertyGroup;
1148
+ };
1149
+ export type PropertyGroupsCreateResponse = PropertyGroupsCreateResponses[keyof PropertyGroupsCreateResponses];
1150
+ export type PropertyGroupsDeleteData = {
1151
+ body?: never;
1152
+ headers?: {
1153
+ /**
1154
+ * If provided, the DELETE request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
1155
+ */
1156
+ ifMatch?: string;
1157
+ /**
1158
+ * If provided, the DELETE request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
1159
+ */
1160
+ ifUnmodifiedSince?: string;
1161
+ };
1162
+ path: {
1163
+ /**
1164
+ * The key of the property group to delete.
1165
+ */
1166
+ key: string;
1167
+ };
1168
+ query?: never;
1169
+ url: '/propertygroups/{key}';
1170
+ };
1171
+ export type PropertyGroupsDeleteErrors = {
1172
+ /**
1173
+ * Bad Request
1174
+ */
1175
+ 400: ProblemDetails;
1176
+ /**
1177
+ * Forbidden
1178
+ */
1179
+ 403: ProblemDetails;
1180
+ /**
1181
+ * Not Found
1182
+ */
1183
+ 404: ProblemDetails;
1184
+ /**
1185
+ * Precondition Failed
1186
+ */
1187
+ 412: ProblemDetails;
1188
+ };
1189
+ export type PropertyGroupsDeleteError = PropertyGroupsDeleteErrors[keyof PropertyGroupsDeleteErrors];
1190
+ export type PropertyGroupsDeleteResponses = {
1191
+ /**
1192
+ * OK
1193
+ */
1194
+ 200: PropertyGroup;
1195
+ };
1196
+ export type PropertyGroupsDeleteResponse = PropertyGroupsDeleteResponses[keyof PropertyGroupsDeleteResponses];
1197
+ export type PropertyGroupsGetData = {
1198
+ body?: never;
1199
+ headers?: {
1200
+ /**
1201
+ * If provided and the value matches the RFC7232 ETag of the current resource a 304 NotModified response will be returned. Weak ETags will always be ignored.
1202
+ */
1203
+ ifNoneMatch?: string;
1204
+ /**
1205
+ * If provided and the resource has not been modified since the date a 304 NotModified response will be returned. This parameter will be ignored if an 'If-None-Match' parameter is also provided.
1206
+ */
1207
+ ifModifiedSince?: string;
1208
+ };
1209
+ path: {
1210
+ /**
1211
+ * The key of the property group to retrieve.
1212
+ */
1213
+ key: string;
1214
+ };
1215
+ query?: never;
1216
+ url: '/propertygroups/{key}';
1217
+ };
1218
+ export type PropertyGroupsGetErrors = {
1219
+ /**
1220
+ * Forbidden
1221
+ */
1222
+ 403: ProblemDetails;
1223
+ /**
1224
+ * Not Found
1225
+ */
1226
+ 404: ProblemDetails;
1227
+ };
1228
+ export type PropertyGroupsGetError = PropertyGroupsGetErrors[keyof PropertyGroupsGetErrors];
1229
+ export type PropertyGroupsGetResponses = {
1230
+ /**
1231
+ * OK
1232
+ */
1233
+ 200: PropertyGroup;
1234
+ };
1235
+ export type PropertyGroupsGetResponse = PropertyGroupsGetResponses[keyof PropertyGroupsGetResponses];
1236
+ export type PropertyGroupsPatchData = {
1237
+ /**
1238
+ * The values of the property group that should be patched formatted according to RFC7396.
1239
+ */
1240
+ body: PropertyGroupWritable;
1241
+ headers?: {
1242
+ /**
1243
+ * If provided, the PATCH request will only be considered if the value matches the RFC7232 ETag of the current resource. Weak ETags will always be ignored.
1244
+ */
1245
+ ifMatch?: string;
1246
+ /**
1247
+ * If provided, the PATCH request will only be considered if the resource has not been modified since the provided date. This parameter will be ignored if an 'If-Match' parameter is also provided.
1248
+ */
1249
+ ifUnmodifiedSince?: string;
1250
+ };
1251
+ path: {
1252
+ /**
1253
+ * The key of the property group to patch.
1254
+ */
1255
+ key: string;
1256
+ };
1257
+ query?: never;
1258
+ url: '/propertygroups/{key}';
1259
+ };
1260
+ export type PropertyGroupsPatchErrors = {
1261
+ /**
1262
+ * Bad Request
1263
+ */
1264
+ 400: ProblemDetails;
1265
+ /**
1266
+ * Forbidden
1267
+ */
1268
+ 403: ProblemDetails;
1269
+ /**
1270
+ * Not Found
1271
+ */
1272
+ 404: ProblemDetails;
1273
+ /**
1274
+ * Precondition Failed
1275
+ */
1276
+ 412: ProblemDetails;
1277
+ };
1278
+ export type PropertyGroupsPatchError = PropertyGroupsPatchErrors[keyof PropertyGroupsPatchErrors];
1279
+ export type PropertyGroupsPatchResponses = {
1280
+ /**
1281
+ * OK
1282
+ */
1283
+ 200: PropertyGroup;
1284
+ };
1285
+ export type PropertyGroupsPatchResponse = PropertyGroupsPatchResponses[keyof PropertyGroupsPatchResponses];