@datocms/cma-client 1.1.2 → 1.1.4

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 (306) hide show
  1. package/dist/cjs/generated/Client.js.map +1 -1
  2. package/dist/cjs/generated/resources/AccessToken.js +36 -0
  3. package/dist/cjs/generated/resources/AccessToken.js.map +1 -1
  4. package/dist/cjs/generated/resources/AuditLogEvent.js +6 -0
  5. package/dist/cjs/generated/resources/AuditLogEvent.js.map +1 -1
  6. package/dist/cjs/generated/resources/BuildEvent.js +12 -0
  7. package/dist/cjs/generated/resources/BuildEvent.js.map +1 -1
  8. package/dist/cjs/generated/resources/BuildTrigger.js +54 -0
  9. package/dist/cjs/generated/resources/BuildTrigger.js.map +1 -1
  10. package/dist/cjs/generated/resources/DailyUsage.js +6 -0
  11. package/dist/cjs/generated/resources/DailyUsage.js.map +1 -1
  12. package/dist/cjs/generated/resources/EditingSession.js +15 -0
  13. package/dist/cjs/generated/resources/EditingSession.js.map +1 -1
  14. package/dist/cjs/generated/resources/Environment.js +30 -0
  15. package/dist/cjs/generated/resources/Environment.js.map +1 -1
  16. package/dist/cjs/generated/resources/Field.js +48 -0
  17. package/dist/cjs/generated/resources/Field.js.map +1 -1
  18. package/dist/cjs/generated/resources/Fieldset.js +30 -0
  19. package/dist/cjs/generated/resources/Fieldset.js.map +1 -1
  20. package/dist/cjs/generated/resources/Item.js +114 -0
  21. package/dist/cjs/generated/resources/Item.js.map +1 -1
  22. package/dist/cjs/generated/resources/ItemType.js +36 -0
  23. package/dist/cjs/generated/resources/ItemType.js.map +1 -1
  24. package/dist/cjs/generated/resources/ItemTypeFilter.js +33 -3
  25. package/dist/cjs/generated/resources/ItemTypeFilter.js.map +1 -1
  26. package/dist/cjs/generated/resources/ItemVersion.js +24 -0
  27. package/dist/cjs/generated/resources/ItemVersion.js.map +1 -1
  28. package/dist/cjs/generated/resources/JobResult.js +6 -0
  29. package/dist/cjs/generated/resources/JobResult.js.map +1 -1
  30. package/dist/cjs/generated/resources/MaintenanceMode.js +18 -0
  31. package/dist/cjs/generated/resources/MaintenanceMode.js.map +1 -1
  32. package/dist/cjs/generated/resources/MenuItem.js +32 -2
  33. package/dist/cjs/generated/resources/MenuItem.js.map +1 -1
  34. package/dist/cjs/generated/resources/Plugin.js +36 -0
  35. package/dist/cjs/generated/resources/Plugin.js.map +1 -1
  36. package/dist/cjs/generated/resources/PublicInfo.js +6 -0
  37. package/dist/cjs/generated/resources/PublicInfo.js.map +1 -1
  38. package/dist/cjs/generated/resources/Role.js +30 -0
  39. package/dist/cjs/generated/resources/Role.js.map +1 -1
  40. package/dist/cjs/generated/resources/ScheduledPublication.js +12 -0
  41. package/dist/cjs/generated/resources/ScheduledPublication.js.map +1 -1
  42. package/dist/cjs/generated/resources/ScheduledUnpublishing.js +12 -0
  43. package/dist/cjs/generated/resources/ScheduledUnpublishing.js.map +1 -1
  44. package/dist/cjs/generated/resources/SearchResult.js +12 -0
  45. package/dist/cjs/generated/resources/SearchResult.js.map +1 -1
  46. package/dist/cjs/generated/resources/Session.js +6 -0
  47. package/dist/cjs/generated/resources/Session.js.map +1 -1
  48. package/dist/cjs/generated/resources/Site.js +18 -0
  49. package/dist/cjs/generated/resources/Site.js.map +1 -1
  50. package/dist/cjs/generated/resources/SiteInvitation.js +36 -0
  51. package/dist/cjs/generated/resources/SiteInvitation.js.map +1 -1
  52. package/dist/cjs/generated/resources/SsoGroup.js +24 -0
  53. package/dist/cjs/generated/resources/SsoGroup.js.map +1 -1
  54. package/dist/cjs/generated/resources/SsoSettings.js +18 -0
  55. package/dist/cjs/generated/resources/SsoSettings.js.map +1 -1
  56. package/dist/cjs/generated/resources/SsoUser.js +24 -0
  57. package/dist/cjs/generated/resources/SsoUser.js.map +1 -1
  58. package/dist/cjs/generated/resources/SubscriptionFeature.js +6 -0
  59. package/dist/cjs/generated/resources/SubscriptionFeature.js.map +1 -1
  60. package/dist/cjs/generated/resources/SubscriptionLimit.js +12 -0
  61. package/dist/cjs/generated/resources/SubscriptionLimit.js.map +1 -1
  62. package/dist/cjs/generated/resources/Upload.js +66 -0
  63. package/dist/cjs/generated/resources/Upload.js.map +1 -1
  64. package/dist/cjs/generated/resources/UploadFilter.js +30 -0
  65. package/dist/cjs/generated/resources/UploadFilter.js.map +1 -1
  66. package/dist/cjs/generated/resources/UploadRequest.js +6 -0
  67. package/dist/cjs/generated/resources/UploadRequest.js.map +1 -1
  68. package/dist/cjs/generated/resources/UploadSmartTag.js +12 -0
  69. package/dist/cjs/generated/resources/UploadSmartTag.js.map +1 -1
  70. package/dist/cjs/generated/resources/UploadTag.js +18 -0
  71. package/dist/cjs/generated/resources/UploadTag.js.map +1 -1
  72. package/dist/cjs/generated/resources/UsageCounter.js +6 -0
  73. package/dist/cjs/generated/resources/UsageCounter.js.map +1 -1
  74. package/dist/cjs/generated/resources/User.js +30 -0
  75. package/dist/cjs/generated/resources/User.js.map +1 -1
  76. package/dist/cjs/generated/resources/Webhook.js +30 -0
  77. package/dist/cjs/generated/resources/Webhook.js.map +1 -1
  78. package/dist/cjs/generated/resources/WebhookCall.js +18 -0
  79. package/dist/cjs/generated/resources/WebhookCall.js.map +1 -1
  80. package/dist/cjs/generated/resources/WhiteLabelSettings.js +12 -0
  81. package/dist/cjs/generated/resources/WhiteLabelSettings.js.map +1 -1
  82. package/dist/cjs/generated/resources/Workflow.js +30 -0
  83. package/dist/cjs/generated/resources/Workflow.js.map +1 -1
  84. package/dist/cjs/index.js +2 -1
  85. package/dist/cjs/index.js.map +1 -1
  86. package/dist/esm/generated/Client.d.ts +9 -0
  87. package/dist/esm/generated/Client.js.map +1 -1
  88. package/dist/esm/generated/SchemaTypes.d.ts +164 -50
  89. package/dist/esm/generated/SimpleSchemaTypes.d.ts +168 -46
  90. package/dist/esm/generated/resources/AccessToken.d.ts +36 -0
  91. package/dist/esm/generated/resources/AccessToken.js +36 -0
  92. package/dist/esm/generated/resources/AccessToken.js.map +1 -1
  93. package/dist/esm/generated/resources/AuditLogEvent.d.ts +6 -0
  94. package/dist/esm/generated/resources/AuditLogEvent.js +6 -0
  95. package/dist/esm/generated/resources/AuditLogEvent.js.map +1 -1
  96. package/dist/esm/generated/resources/BuildEvent.d.ts +12 -0
  97. package/dist/esm/generated/resources/BuildEvent.js +12 -0
  98. package/dist/esm/generated/resources/BuildEvent.js.map +1 -1
  99. package/dist/esm/generated/resources/BuildTrigger.d.ts +54 -0
  100. package/dist/esm/generated/resources/BuildTrigger.js +54 -0
  101. package/dist/esm/generated/resources/BuildTrigger.js.map +1 -1
  102. package/dist/esm/generated/resources/DailyUsage.d.ts +6 -0
  103. package/dist/esm/generated/resources/DailyUsage.js +6 -0
  104. package/dist/esm/generated/resources/DailyUsage.js.map +1 -1
  105. package/dist/esm/generated/resources/EditingSession.d.ts +15 -0
  106. package/dist/esm/generated/resources/EditingSession.js +15 -0
  107. package/dist/esm/generated/resources/EditingSession.js.map +1 -1
  108. package/dist/esm/generated/resources/Environment.d.ts +30 -0
  109. package/dist/esm/generated/resources/Environment.js +30 -0
  110. package/dist/esm/generated/resources/Environment.js.map +1 -1
  111. package/dist/esm/generated/resources/Field.d.ts +48 -0
  112. package/dist/esm/generated/resources/Field.js +48 -0
  113. package/dist/esm/generated/resources/Field.js.map +1 -1
  114. package/dist/esm/generated/resources/Fieldset.d.ts +30 -0
  115. package/dist/esm/generated/resources/Fieldset.js +30 -0
  116. package/dist/esm/generated/resources/Fieldset.js.map +1 -1
  117. package/dist/esm/generated/resources/Item.d.ts +114 -0
  118. package/dist/esm/generated/resources/Item.js +114 -0
  119. package/dist/esm/generated/resources/Item.js.map +1 -1
  120. package/dist/esm/generated/resources/ItemType.d.ts +36 -0
  121. package/dist/esm/generated/resources/ItemType.js +36 -0
  122. package/dist/esm/generated/resources/ItemType.js.map +1 -1
  123. package/dist/esm/generated/resources/ItemTypeFilter.d.ts +30 -0
  124. package/dist/esm/generated/resources/ItemTypeFilter.js +33 -3
  125. package/dist/esm/generated/resources/ItemTypeFilter.js.map +1 -1
  126. package/dist/esm/generated/resources/ItemVersion.d.ts +24 -0
  127. package/dist/esm/generated/resources/ItemVersion.js +24 -0
  128. package/dist/esm/generated/resources/ItemVersion.js.map +1 -1
  129. package/dist/esm/generated/resources/JobResult.d.ts +6 -0
  130. package/dist/esm/generated/resources/JobResult.js +6 -0
  131. package/dist/esm/generated/resources/JobResult.js.map +1 -1
  132. package/dist/esm/generated/resources/MaintenanceMode.d.ts +18 -0
  133. package/dist/esm/generated/resources/MaintenanceMode.js +18 -0
  134. package/dist/esm/generated/resources/MaintenanceMode.js.map +1 -1
  135. package/dist/esm/generated/resources/MenuItem.d.ts +30 -0
  136. package/dist/esm/generated/resources/MenuItem.js +32 -2
  137. package/dist/esm/generated/resources/MenuItem.js.map +1 -1
  138. package/dist/esm/generated/resources/Plugin.d.ts +36 -0
  139. package/dist/esm/generated/resources/Plugin.js +36 -0
  140. package/dist/esm/generated/resources/Plugin.js.map +1 -1
  141. package/dist/esm/generated/resources/PublicInfo.d.ts +6 -0
  142. package/dist/esm/generated/resources/PublicInfo.js +6 -0
  143. package/dist/esm/generated/resources/PublicInfo.js.map +1 -1
  144. package/dist/esm/generated/resources/Role.d.ts +30 -0
  145. package/dist/esm/generated/resources/Role.js +30 -0
  146. package/dist/esm/generated/resources/Role.js.map +1 -1
  147. package/dist/esm/generated/resources/ScheduledPublication.d.ts +12 -0
  148. package/dist/esm/generated/resources/ScheduledPublication.js +12 -0
  149. package/dist/esm/generated/resources/ScheduledPublication.js.map +1 -1
  150. package/dist/esm/generated/resources/ScheduledUnpublishing.d.ts +12 -0
  151. package/dist/esm/generated/resources/ScheduledUnpublishing.js +12 -0
  152. package/dist/esm/generated/resources/ScheduledUnpublishing.js.map +1 -1
  153. package/dist/esm/generated/resources/SearchResult.d.ts +12 -0
  154. package/dist/esm/generated/resources/SearchResult.js +12 -0
  155. package/dist/esm/generated/resources/SearchResult.js.map +1 -1
  156. package/dist/esm/generated/resources/Session.d.ts +6 -0
  157. package/dist/esm/generated/resources/Session.js +6 -0
  158. package/dist/esm/generated/resources/Session.js.map +1 -1
  159. package/dist/esm/generated/resources/Site.d.ts +18 -0
  160. package/dist/esm/generated/resources/Site.js +18 -0
  161. package/dist/esm/generated/resources/Site.js.map +1 -1
  162. package/dist/esm/generated/resources/SiteInvitation.d.ts +36 -0
  163. package/dist/esm/generated/resources/SiteInvitation.js +36 -0
  164. package/dist/esm/generated/resources/SiteInvitation.js.map +1 -1
  165. package/dist/esm/generated/resources/SsoGroup.d.ts +24 -0
  166. package/dist/esm/generated/resources/SsoGroup.js +24 -0
  167. package/dist/esm/generated/resources/SsoGroup.js.map +1 -1
  168. package/dist/esm/generated/resources/SsoSettings.d.ts +18 -0
  169. package/dist/esm/generated/resources/SsoSettings.js +18 -0
  170. package/dist/esm/generated/resources/SsoSettings.js.map +1 -1
  171. package/dist/esm/generated/resources/SsoUser.d.ts +24 -0
  172. package/dist/esm/generated/resources/SsoUser.js +24 -0
  173. package/dist/esm/generated/resources/SsoUser.js.map +1 -1
  174. package/dist/esm/generated/resources/SubscriptionFeature.d.ts +6 -0
  175. package/dist/esm/generated/resources/SubscriptionFeature.js +6 -0
  176. package/dist/esm/generated/resources/SubscriptionFeature.js.map +1 -1
  177. package/dist/esm/generated/resources/SubscriptionLimit.d.ts +12 -0
  178. package/dist/esm/generated/resources/SubscriptionLimit.js +12 -0
  179. package/dist/esm/generated/resources/SubscriptionLimit.js.map +1 -1
  180. package/dist/esm/generated/resources/Upload.d.ts +66 -0
  181. package/dist/esm/generated/resources/Upload.js +66 -0
  182. package/dist/esm/generated/resources/Upload.js.map +1 -1
  183. package/dist/esm/generated/resources/UploadFilter.d.ts +30 -0
  184. package/dist/esm/generated/resources/UploadFilter.js +30 -0
  185. package/dist/esm/generated/resources/UploadFilter.js.map +1 -1
  186. package/dist/esm/generated/resources/UploadRequest.d.ts +6 -0
  187. package/dist/esm/generated/resources/UploadRequest.js +6 -0
  188. package/dist/esm/generated/resources/UploadRequest.js.map +1 -1
  189. package/dist/esm/generated/resources/UploadSmartTag.d.ts +12 -0
  190. package/dist/esm/generated/resources/UploadSmartTag.js +12 -0
  191. package/dist/esm/generated/resources/UploadSmartTag.js.map +1 -1
  192. package/dist/esm/generated/resources/UploadTag.d.ts +18 -0
  193. package/dist/esm/generated/resources/UploadTag.js +18 -0
  194. package/dist/esm/generated/resources/UploadTag.js.map +1 -1
  195. package/dist/esm/generated/resources/UsageCounter.d.ts +6 -0
  196. package/dist/esm/generated/resources/UsageCounter.js +6 -0
  197. package/dist/esm/generated/resources/UsageCounter.js.map +1 -1
  198. package/dist/esm/generated/resources/User.d.ts +30 -0
  199. package/dist/esm/generated/resources/User.js +30 -0
  200. package/dist/esm/generated/resources/User.js.map +1 -1
  201. package/dist/esm/generated/resources/Webhook.d.ts +30 -0
  202. package/dist/esm/generated/resources/Webhook.js +30 -0
  203. package/dist/esm/generated/resources/Webhook.js.map +1 -1
  204. package/dist/esm/generated/resources/WebhookCall.d.ts +18 -0
  205. package/dist/esm/generated/resources/WebhookCall.js +18 -0
  206. package/dist/esm/generated/resources/WebhookCall.js.map +1 -1
  207. package/dist/esm/generated/resources/WhiteLabelSettings.d.ts +12 -0
  208. package/dist/esm/generated/resources/WhiteLabelSettings.js +12 -0
  209. package/dist/esm/generated/resources/WhiteLabelSettings.js.map +1 -1
  210. package/dist/esm/generated/resources/Workflow.d.ts +30 -0
  211. package/dist/esm/generated/resources/Workflow.js +30 -0
  212. package/dist/esm/generated/resources/Workflow.js.map +1 -1
  213. package/dist/esm/index.d.ts +1 -1
  214. package/dist/esm/index.js +1 -1
  215. package/dist/esm/index.js.map +1 -1
  216. package/dist/types/generated/Client.d.ts +9 -0
  217. package/dist/types/generated/SchemaTypes.d.ts +164 -50
  218. package/dist/types/generated/SimpleSchemaTypes.d.ts +168 -46
  219. package/dist/types/generated/resources/AccessToken.d.ts +36 -0
  220. package/dist/types/generated/resources/AuditLogEvent.d.ts +6 -0
  221. package/dist/types/generated/resources/BuildEvent.d.ts +12 -0
  222. package/dist/types/generated/resources/BuildTrigger.d.ts +54 -0
  223. package/dist/types/generated/resources/DailyUsage.d.ts +6 -0
  224. package/dist/types/generated/resources/EditingSession.d.ts +15 -0
  225. package/dist/types/generated/resources/Environment.d.ts +30 -0
  226. package/dist/types/generated/resources/Field.d.ts +48 -0
  227. package/dist/types/generated/resources/Fieldset.d.ts +30 -0
  228. package/dist/types/generated/resources/Item.d.ts +114 -0
  229. package/dist/types/generated/resources/ItemType.d.ts +36 -0
  230. package/dist/types/generated/resources/ItemTypeFilter.d.ts +30 -0
  231. package/dist/types/generated/resources/ItemVersion.d.ts +24 -0
  232. package/dist/types/generated/resources/JobResult.d.ts +6 -0
  233. package/dist/types/generated/resources/MaintenanceMode.d.ts +18 -0
  234. package/dist/types/generated/resources/MenuItem.d.ts +30 -0
  235. package/dist/types/generated/resources/Plugin.d.ts +36 -0
  236. package/dist/types/generated/resources/PublicInfo.d.ts +6 -0
  237. package/dist/types/generated/resources/Role.d.ts +30 -0
  238. package/dist/types/generated/resources/ScheduledPublication.d.ts +12 -0
  239. package/dist/types/generated/resources/ScheduledUnpublishing.d.ts +12 -0
  240. package/dist/types/generated/resources/SearchResult.d.ts +12 -0
  241. package/dist/types/generated/resources/Session.d.ts +6 -0
  242. package/dist/types/generated/resources/Site.d.ts +18 -0
  243. package/dist/types/generated/resources/SiteInvitation.d.ts +36 -0
  244. package/dist/types/generated/resources/SsoGroup.d.ts +24 -0
  245. package/dist/types/generated/resources/SsoSettings.d.ts +18 -0
  246. package/dist/types/generated/resources/SsoUser.d.ts +24 -0
  247. package/dist/types/generated/resources/SubscriptionFeature.d.ts +6 -0
  248. package/dist/types/generated/resources/SubscriptionLimit.d.ts +12 -0
  249. package/dist/types/generated/resources/Upload.d.ts +66 -0
  250. package/dist/types/generated/resources/UploadFilter.d.ts +30 -0
  251. package/dist/types/generated/resources/UploadRequest.d.ts +6 -0
  252. package/dist/types/generated/resources/UploadSmartTag.d.ts +12 -0
  253. package/dist/types/generated/resources/UploadTag.d.ts +18 -0
  254. package/dist/types/generated/resources/UsageCounter.d.ts +6 -0
  255. package/dist/types/generated/resources/User.d.ts +30 -0
  256. package/dist/types/generated/resources/Webhook.d.ts +30 -0
  257. package/dist/types/generated/resources/WebhookCall.d.ts +18 -0
  258. package/dist/types/generated/resources/WhiteLabelSettings.d.ts +12 -0
  259. package/dist/types/generated/resources/Workflow.d.ts +30 -0
  260. package/dist/types/index.d.ts +1 -1
  261. package/package.json +4 -4
  262. package/src/generated/Client.ts +9 -0
  263. package/src/generated/SchemaTypes.ts +171 -51
  264. package/src/generated/SimpleSchemaTypes.ts +177 -47
  265. package/src/generated/resources/AccessToken.ts +36 -0
  266. package/src/generated/resources/AuditLogEvent.ts +6 -0
  267. package/src/generated/resources/BuildEvent.ts +12 -0
  268. package/src/generated/resources/BuildTrigger.ts +54 -0
  269. package/src/generated/resources/DailyUsage.ts +6 -0
  270. package/src/generated/resources/EditingSession.ts +15 -0
  271. package/src/generated/resources/Environment.ts +30 -0
  272. package/src/generated/resources/Field.ts +48 -0
  273. package/src/generated/resources/Fieldset.ts +30 -0
  274. package/src/generated/resources/Item.ts +114 -0
  275. package/src/generated/resources/ItemType.ts +36 -0
  276. package/src/generated/resources/ItemTypeFilter.ts +33 -3
  277. package/src/generated/resources/ItemVersion.ts +24 -0
  278. package/src/generated/resources/JobResult.ts +6 -0
  279. package/src/generated/resources/MaintenanceMode.ts +18 -0
  280. package/src/generated/resources/MenuItem.ts +32 -2
  281. package/src/generated/resources/Plugin.ts +36 -0
  282. package/src/generated/resources/PublicInfo.ts +6 -0
  283. package/src/generated/resources/Role.ts +30 -0
  284. package/src/generated/resources/ScheduledPublication.ts +12 -0
  285. package/src/generated/resources/ScheduledUnpublishing.ts +12 -0
  286. package/src/generated/resources/SearchResult.ts +12 -0
  287. package/src/generated/resources/Session.ts +6 -0
  288. package/src/generated/resources/Site.ts +18 -0
  289. package/src/generated/resources/SiteInvitation.ts +36 -0
  290. package/src/generated/resources/SsoGroup.ts +24 -0
  291. package/src/generated/resources/SsoSettings.ts +18 -0
  292. package/src/generated/resources/SsoUser.ts +24 -0
  293. package/src/generated/resources/SubscriptionFeature.ts +6 -0
  294. package/src/generated/resources/SubscriptionLimit.ts +12 -0
  295. package/src/generated/resources/Upload.ts +66 -0
  296. package/src/generated/resources/UploadFilter.ts +30 -0
  297. package/src/generated/resources/UploadRequest.ts +6 -0
  298. package/src/generated/resources/UploadSmartTag.ts +12 -0
  299. package/src/generated/resources/UploadTag.ts +18 -0
  300. package/src/generated/resources/UsageCounter.ts +6 -0
  301. package/src/generated/resources/User.ts +30 -0
  302. package/src/generated/resources/Webhook.ts +30 -0
  303. package/src/generated/resources/WebhookCall.ts +18 -0
  304. package/src/generated/resources/WhiteLabelSettings.ts +12 -0
  305. package/src/generated/resources/Workflow.ts +30 -0
  306. package/src/index.ts +1 -1
@@ -303,6 +303,23 @@ export declare type MenuItemType = 'menu_item';
303
303
  * via the `definition` "type".
304
304
  */
305
305
  export declare type ItemTypeType = 'item_type';
306
+ /**
307
+ * JSON API type field
308
+ *
309
+ * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
310
+ * via the `definition` "type".
311
+ */
312
+ export declare type ItemTypeFilterType = 'item_type_filter';
313
+ /**
314
+ * ID of filter
315
+ *
316
+ * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
317
+ * via the `definition` "identity".
318
+ *
319
+ * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
320
+ * via the `definition` "id".
321
+ */
322
+ export declare type ItemTypeFilterIdentity = string;
306
323
  /**
307
324
  * This interface was referenced by `MenuItem`'s JSON-Schema
308
325
  * via the `instances.targetSchema` link.
@@ -1163,23 +1180,6 @@ export declare type WebhookCallInstancesHrefSchema = {
1163
1180
  * via the `instances.targetSchema` link.
1164
1181
  */
1165
1182
  export declare type BuildTriggerInstancesTargetSchema = BuildTrigger[];
1166
- /**
1167
- * ID of filter
1168
- *
1169
- * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
1170
- * via the `definition` "identity".
1171
- *
1172
- * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
1173
- * via the `definition` "id".
1174
- */
1175
- export declare type ItemTypeFilterIdentity = string;
1176
- /**
1177
- * JSON API type field
1178
- *
1179
- * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
1180
- * via the `definition` "type".
1181
- */
1182
- export declare type ItemTypeFilterType = 'item_type_filter';
1183
1183
  /**
1184
1184
  * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
1185
1185
  * via the `instances.targetSchema` link.
@@ -3666,10 +3666,11 @@ export declare type MenuItem = {
3666
3666
  */
3667
3667
  position: number;
3668
3668
  /**
3669
- * Opens link in new tab (used together with `external_url`)
3669
+ * Opens link in new tab (to be used together with `external_url`)
3670
3670
  */
3671
3671
  open_in_new_tab: boolean;
3672
3672
  item_type: ItemTypeData | null;
3673
+ item_type_filter: ItemTypeFilterData | null;
3673
3674
  parent: null | MenuItemData;
3674
3675
  children: MenuItemData[];
3675
3676
  };
@@ -3687,6 +3688,16 @@ export declare type ItemTypeData = {
3687
3688
  type: ItemTypeType;
3688
3689
  id: ItemTypeIdentity;
3689
3690
  };
3691
+ /**
3692
+ * JSON API data
3693
+ *
3694
+ * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
3695
+ * via the `definition` "data".
3696
+ */
3697
+ export declare type ItemTypeFilterData = {
3698
+ type: ItemTypeFilterType;
3699
+ id: ItemTypeFilterIdentity;
3700
+ };
3690
3701
  /**
3691
3702
  * JSON API data
3692
3703
  *
@@ -3717,7 +3728,7 @@ export declare type MenuItemAttributes = {
3717
3728
  */
3718
3729
  position: number;
3719
3730
  /**
3720
- * Opens link in new tab (used together with `external_url`)
3731
+ * Opens link in new tab (to be used together with `external_url`)
3721
3732
  */
3722
3733
  open_in_new_tab: boolean;
3723
3734
  };
@@ -3729,6 +3740,7 @@ export declare type MenuItemAttributes = {
3729
3740
  */
3730
3741
  export declare type MenuItemRelationships = {
3731
3742
  item_type: ItemTypeData | null;
3743
+ item_type_filter: ItemTypeFilterData | null;
3732
3744
  parent: null | MenuItemData;
3733
3745
  children: MenuItemData[];
3734
3746
  };
@@ -3749,12 +3761,13 @@ export declare type MenuItemCreateSchema = {
3749
3761
  /**
3750
3762
  * Ordering index
3751
3763
  */
3752
- position: number;
3764
+ position?: number;
3753
3765
  /**
3754
- * Opens link in new tab (used together with `external_url`)
3766
+ * Opens link in new tab (to be used together with `external_url`)
3755
3767
  */
3756
3768
  open_in_new_tab?: boolean;
3757
3769
  item_type?: ItemTypeData | null;
3770
+ item_type_filter?: ItemTypeFilterData | null;
3758
3771
  parent?: null | MenuItemData;
3759
3772
  };
3760
3773
  /**
@@ -3777,10 +3790,11 @@ export declare type MenuItemUpdateSchema = {
3777
3790
  */
3778
3791
  position?: number;
3779
3792
  /**
3780
- * Opens link in new tab (used together with `external_url`)
3793
+ * Opens link in new tab (to be used together with `external_url`)
3781
3794
  */
3782
3795
  open_in_new_tab?: boolean;
3783
3796
  item_type?: ItemTypeData | null;
3797
+ item_type_filter?: ItemTypeFilterData | null;
3784
3798
  parent?: null | MenuItemData;
3785
3799
  };
3786
3800
  /**
@@ -4594,9 +4608,9 @@ export declare type JobData = {
4594
4608
  *
4595
4609
  * Only accept assets with specific file extensions.
4596
4610
  *
4597
- * | Parameter | Type | Required | Description |
4598
- * | ----------------- | ----------------------------------------- | -------- | ------------------------------ |
4599
- * | `extensions` | `Array<String>` | | Set of allowed file extensions |
4611
+ * | Parameter | Type | Required | Description |
4612
+ * | ----------------- | ------------------------------------------------------------------ | -------- | ------------------------------ |
4613
+ * | `extensions` | `Array<String>` | | Set of allowed file extensions |
4600
4614
  * | `predefined_list` | one of `"image"`, `"transformable_image"`, `"video"`, `"document"` | | Allowed file type |
4601
4615
  *
4602
4616
  * Only one of the parameters must be specified.
@@ -5039,13 +5053,14 @@ export declare type JobData = {
5039
5053
  *
5040
5054
  * Built-in editor for _Structured text_ fields.
5041
5055
  *
5042
- * | Parameter | Type | Required | Description |
5043
- * | ------------------------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
5044
- * | `nodes` | `Array<String>` | ✅ | Specify which nodes the field should allow. Valid values: `"blockquote"`, `"code"`, `"heading"`, `"link"`, `"list"`, `"thematicBreak"` |
5045
- * | `marks` | `Array<String>` | ✅ | Specify which marks the field should allow. Valid values: `"strong"`, `"emphasis"`, `"underline"`, `"strikethrough"`, `"code"`, `"highlight"` |
5046
- * | `blocks_start_collapsed` | `Boolean` | | Whether you want block nodes collapsed by default or not |
5047
- * | `show_links_target_blank` | `Boolean` | | Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the `target: "_blank"` meta attribute for links |
5048
- * | `show_links_meta_editor` | `Boolean` | | Whether you want to show the complete meta editor for links |
5056
+ * | Parameter | Type | Required | Description |
5057
+ * | ------------------------- | ---------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
5058
+ * | `nodes` | `Array<String>` | ✅ | Specify which nodes the field should allow. Valid values: `"blockquote"`, `"code"`, `"heading"`, `"link"`, `"list"`, `"thematicBreak"` |
5059
+ * | `marks` | `Array<String>` | ✅ | Specify which marks the field should allow. Valid values: `"strong"`, `"emphasis"`, `"underline"`, `"strikethrough"`, `"code"`, `"highlight"` |
5060
+ * | `heading_levels` | `Array<Integer>` | ✅ | If `nodes` includes `"heading"`, specify which heading levels the field should allow. Valid values: numbers between 1 and 6 |
5061
+ * | `blocks_start_collapsed` | `Boolean` | | Whether you want block nodes collapsed by default or not |
5062
+ * | `show_links_target_blank` | `Boolean` | | Whether you want to show the "Open this link in a new tab?" checkbox, that fills in the `target: "_blank"` meta attribute for links |
5063
+ * | `show_links_meta_editor` | `Boolean` | | Whether you want to show the complete meta editor for links |
5049
5064
  *
5050
5065
  * </details>
5051
5066
  *
@@ -7840,6 +7855,35 @@ export declare type ItemTypeFilter = {
7840
7855
  filter: {
7841
7856
  [k: string]: unknown;
7842
7857
  };
7858
+ /**
7859
+ * The columns to show with this filter
7860
+ */
7861
+ columns: [
7862
+ {
7863
+ /**
7864
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
7865
+ */
7866
+ name: string;
7867
+ /**
7868
+ * The percentage width for the column (float, from 0 to 1.0)
7869
+ */
7870
+ width: number;
7871
+ },
7872
+ ...{
7873
+ /**
7874
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
7875
+ */
7876
+ name: string;
7877
+ /**
7878
+ * The percentage width for the column (float, from 0 to 1.0)
7879
+ */
7880
+ width: number;
7881
+ }[]
7882
+ ] | null;
7883
+ /**
7884
+ * The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7885
+ */
7886
+ order_by: string | null;
7843
7887
  /**
7844
7888
  * Whether it's a shared filter or not
7845
7889
  */
@@ -7850,16 +7894,6 @@ export declare type ItemTypeFilterCreateTargetSchema = ItemTypeFilter;
7850
7894
  export declare type ItemTypeFilterUpdateTargetSchema = ItemTypeFilter;
7851
7895
  export declare type ItemTypeFilterSelfTargetSchema = ItemTypeFilter;
7852
7896
  export declare type ItemTypeFilterDestroyTargetSchema = ItemTypeFilter;
7853
- /**
7854
- * JSON API data
7855
- *
7856
- * This interface was referenced by `ItemTypeFilter`'s JSON-Schema
7857
- * via the `definition` "data".
7858
- */
7859
- export declare type ItemTypeFilterData = {
7860
- type: ItemTypeFilterType;
7861
- id: ItemTypeFilterIdentity;
7862
- };
7863
7897
  /**
7864
7898
  * JSON API attributes
7865
7899
  *
@@ -7877,6 +7911,35 @@ export declare type ItemTypeFilterAttributes = {
7877
7911
  filter: {
7878
7912
  [k: string]: unknown;
7879
7913
  };
7914
+ /**
7915
+ * The columns to show with this filter
7916
+ */
7917
+ columns: [
7918
+ {
7919
+ /**
7920
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
7921
+ */
7922
+ name: string;
7923
+ /**
7924
+ * The percentage width for the column (float, from 0 to 1.0)
7925
+ */
7926
+ width: number;
7927
+ },
7928
+ ...{
7929
+ /**
7930
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
7931
+ */
7932
+ name: string;
7933
+ /**
7934
+ * The percentage width for the column (float, from 0 to 1.0)
7935
+ */
7936
+ width: number;
7937
+ }[]
7938
+ ] | null;
7939
+ /**
7940
+ * The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7941
+ */
7942
+ order_by: string | null;
7880
7943
  /**
7881
7944
  * Whether it's a shared filter or not
7882
7945
  */
@@ -7904,13 +7967,42 @@ export declare type ItemTypeFilterCreateSchema = {
7904
7967
  /**
7905
7968
  * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7906
7969
  */
7907
- filter: {
7970
+ filter?: {
7908
7971
  [k: string]: unknown;
7909
7972
  };
7973
+ /**
7974
+ * The columns to show with this filter
7975
+ */
7976
+ columns?: [
7977
+ {
7978
+ /**
7979
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
7980
+ */
7981
+ name: string;
7982
+ /**
7983
+ * The percentage width for the column (float, from 0 to 1.0)
7984
+ */
7985
+ width: number;
7986
+ },
7987
+ ...{
7988
+ /**
7989
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
7990
+ */
7991
+ name: string;
7992
+ /**
7993
+ * The percentage width for the column (float, from 0 to 1.0)
7994
+ */
7995
+ width: number;
7996
+ }[]
7997
+ ] | null;
7998
+ /**
7999
+ * The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8000
+ */
8001
+ order_by?: string | null;
7910
8002
  /**
7911
8003
  * Whether it's a shared filter or not
7912
8004
  */
7913
- shared: boolean;
8005
+ shared?: boolean;
7914
8006
  item_type: ItemTypeData;
7915
8007
  };
7916
8008
  /**
@@ -7923,7 +8015,36 @@ export declare type ItemTypeFilterUpdateSchema = {
7923
8015
  /**
7924
8016
  * The name of the filter
7925
8017
  */
7926
- name: string;
8018
+ name?: string;
8019
+ /**
8020
+ * The columns to show with this filter
8021
+ */
8022
+ columns?: [
8023
+ {
8024
+ /**
8025
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
8026
+ */
8027
+ name: string;
8028
+ /**
8029
+ * The percentage width for the column (float, from 0 to 1.0)
8030
+ */
8031
+ width: number;
8032
+ },
8033
+ ...{
8034
+ /**
8035
+ * Can be either the API key of a model's field, or one of the following meta columns: `id`, `_preview`, `_updated_at`, `_created_at`, `_creator`, `_status`, `_published_at`, `_first_published_at`, `_publication_scheduled_at`, `_unpublishing_scheduled_at`, `position` (only for sortable models), `_stage (only for models associated with a workflow).
8036
+ */
8037
+ name: string;
8038
+ /**
8039
+ * The percentage width for the column (float, from 0 to 1.0)
8040
+ */
8041
+ width: number;
8042
+ }[]
8043
+ ] | null;
8044
+ /**
8045
+ * The ordering to apply with this filter, or `null` for the default model ordering. It follows the form of the `order_by` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
8046
+ */
8047
+ order_by?: string | null;
7927
8048
  /**
7928
8049
  * Whether it's a shared filter or not
7929
8050
  */
@@ -7931,9 +8052,10 @@ export declare type ItemTypeFilterUpdateSchema = {
7931
8052
  /**
7932
8053
  * The actual filter. It follows the form of the `filter` query parameter of the [List all records](https://www.datocms.com/docs/content-management-api/resources/item/instances) endpoint.
7933
8054
  */
7934
- filter: {
8055
+ filter?: {
7935
8056
  [k: string]: unknown;
7936
8057
  };
8058
+ item_type?: ItemTypeData;
7937
8059
  };
7938
8060
  /**
7939
8061
  * In DatoCMS you can create filters to help you (and other editors) quickly search for uploads
@@ -7,72 +7,108 @@ export default class AccessToken extends BaseResource {
7
7
  * Create a new API token
8
8
  *
9
9
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
10
+ *
11
+ * @throws {ApiError}
12
+ * @throws {TimeoutError}
10
13
  */
11
14
  create(body: SimpleSchemaTypes.AccessTokenCreateSchema): Promise<SimpleSchemaTypes.AccessToken>;
12
15
  /**
13
16
  * Create a new API token
14
17
  *
15
18
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
19
+ *
20
+ * @throws {ApiError}
21
+ * @throws {TimeoutError}
16
22
  */
17
23
  rawCreate(body: SchemaTypes.AccessTokenCreateSchema): Promise<SchemaTypes.AccessTokenCreateTargetSchema>;
18
24
  /**
19
25
  * Update an API token
20
26
  *
21
27
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
28
+ *
29
+ * @throws {ApiError}
30
+ * @throws {TimeoutError}
22
31
  */
23
32
  update(accessTokenId: string | SimpleSchemaTypes.AccessTokenData, body: SimpleSchemaTypes.AccessTokenUpdateSchema): Promise<SimpleSchemaTypes.AccessToken>;
24
33
  /**
25
34
  * Update an API token
26
35
  *
27
36
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
37
+ *
38
+ * @throws {ApiError}
39
+ * @throws {TimeoutError}
28
40
  */
29
41
  rawUpdate(accessTokenId: string, body: SchemaTypes.AccessTokenUpdateSchema): Promise<SchemaTypes.AccessTokenUpdateTargetSchema>;
30
42
  /**
31
43
  * List all API tokens
32
44
  *
33
45
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
46
+ *
47
+ * @throws {ApiError}
48
+ * @throws {TimeoutError}
34
49
  */
35
50
  list(): Promise<SimpleSchemaTypes.AccessTokenInstancesTargetSchema>;
36
51
  /**
37
52
  * List all API tokens
38
53
  *
39
54
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
55
+ *
56
+ * @throws {ApiError}
57
+ * @throws {TimeoutError}
40
58
  */
41
59
  rawList(): Promise<SchemaTypes.AccessTokenInstancesTargetSchema>;
42
60
  /**
43
61
  * Retrieve an API token
44
62
  *
45
63
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
64
+ *
65
+ * @throws {ApiError}
66
+ * @throws {TimeoutError}
46
67
  */
47
68
  find(accessTokenId: string | SimpleSchemaTypes.AccessTokenData): Promise<SimpleSchemaTypes.AccessToken>;
48
69
  /**
49
70
  * Retrieve an API token
50
71
  *
51
72
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
73
+ *
74
+ * @throws {ApiError}
75
+ * @throws {TimeoutError}
52
76
  */
53
77
  rawFind(accessTokenId: string): Promise<SchemaTypes.AccessTokenSelfTargetSchema>;
54
78
  /**
55
79
  * Rotate API token
56
80
  *
57
81
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
82
+ *
83
+ * @throws {ApiError}
84
+ * @throws {TimeoutError}
58
85
  */
59
86
  regenerateToken(accessTokenId: string | SimpleSchemaTypes.AccessTokenData): Promise<SimpleSchemaTypes.AccessToken>;
60
87
  /**
61
88
  * Rotate API token
62
89
  *
63
90
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
91
+ *
92
+ * @throws {ApiError}
93
+ * @throws {TimeoutError}
64
94
  */
65
95
  rawRegenerateToken(accessTokenId: string): Promise<SchemaTypes.AccessTokenRegenerateTokenTargetSchema>;
66
96
  /**
67
97
  * Delete an API token
68
98
  *
69
99
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
100
+ *
101
+ * @throws {ApiError}
102
+ * @throws {TimeoutError}
70
103
  */
71
104
  destroy(accessTokenId: string | SimpleSchemaTypes.AccessTokenData, queryParams?: SimpleSchemaTypes.AccessTokenDestroyHrefSchema): Promise<SimpleSchemaTypes.AccessToken>;
72
105
  /**
73
106
  * Delete an API token
74
107
  *
75
108
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
109
+ *
110
+ * @throws {ApiError}
111
+ * @throws {TimeoutError}
76
112
  */
77
113
  rawDestroy(accessTokenId: string, queryParams?: SchemaTypes.AccessTokenDestroyHrefSchema): Promise<SchemaTypes.AccessTokenDestroyTargetSchema>;
78
114
  }
@@ -24,6 +24,9 @@ var AccessToken = /** @class */ (function (_super) {
24
24
  * Create a new API token
25
25
  *
26
26
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
27
+ *
28
+ * @throws {ApiError}
29
+ * @throws {TimeoutError}
27
30
  */
28
31
  AccessToken.prototype.create = function (body) {
29
32
  return this.rawCreate(Utils.serializeRequestBody(body, {
@@ -43,6 +46,9 @@ var AccessToken = /** @class */ (function (_super) {
43
46
  * Create a new API token
44
47
  *
45
48
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/create
49
+ *
50
+ * @throws {ApiError}
51
+ * @throws {TimeoutError}
46
52
  */
47
53
  AccessToken.prototype.rawCreate = function (body) {
48
54
  return this.client.request({
@@ -55,6 +61,9 @@ var AccessToken = /** @class */ (function (_super) {
55
61
  * Update an API token
56
62
  *
57
63
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
64
+ *
65
+ * @throws {ApiError}
66
+ * @throws {TimeoutError}
58
67
  */
59
68
  AccessToken.prototype.update = function (accessTokenId, body) {
60
69
  return this.rawUpdate(Utils.toId(accessTokenId), Utils.serializeRequestBody(body, {
@@ -75,6 +84,9 @@ var AccessToken = /** @class */ (function (_super) {
75
84
  * Update an API token
76
85
  *
77
86
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/update
87
+ *
88
+ * @throws {ApiError}
89
+ * @throws {TimeoutError}
78
90
  */
79
91
  AccessToken.prototype.rawUpdate = function (accessTokenId, body) {
80
92
  return this.client.request({
@@ -87,6 +99,9 @@ var AccessToken = /** @class */ (function (_super) {
87
99
  * List all API tokens
88
100
  *
89
101
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
102
+ *
103
+ * @throws {ApiError}
104
+ * @throws {TimeoutError}
90
105
  */
91
106
  AccessToken.prototype.list = function () {
92
107
  return this.rawList().then(function (body) {
@@ -97,6 +112,9 @@ var AccessToken = /** @class */ (function (_super) {
97
112
  * List all API tokens
98
113
  *
99
114
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/instances
115
+ *
116
+ * @throws {ApiError}
117
+ * @throws {TimeoutError}
100
118
  */
101
119
  AccessToken.prototype.rawList = function () {
102
120
  return this.client.request({
@@ -108,6 +126,9 @@ var AccessToken = /** @class */ (function (_super) {
108
126
  * Retrieve an API token
109
127
  *
110
128
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
129
+ *
130
+ * @throws {ApiError}
131
+ * @throws {TimeoutError}
111
132
  */
112
133
  AccessToken.prototype.find = function (accessTokenId) {
113
134
  return this.rawFind(Utils.toId(accessTokenId)).then(function (body) {
@@ -118,6 +139,9 @@ var AccessToken = /** @class */ (function (_super) {
118
139
  * Retrieve an API token
119
140
  *
120
141
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/self
142
+ *
143
+ * @throws {ApiError}
144
+ * @throws {TimeoutError}
121
145
  */
122
146
  AccessToken.prototype.rawFind = function (accessTokenId) {
123
147
  return this.client.request({
@@ -129,6 +153,9 @@ var AccessToken = /** @class */ (function (_super) {
129
153
  * Rotate API token
130
154
  *
131
155
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
156
+ *
157
+ * @throws {ApiError}
158
+ * @throws {TimeoutError}
132
159
  */
133
160
  AccessToken.prototype.regenerateToken = function (accessTokenId) {
134
161
  return this.rawRegenerateToken(Utils.toId(accessTokenId)).then(function (body) {
@@ -139,6 +166,9 @@ var AccessToken = /** @class */ (function (_super) {
139
166
  * Rotate API token
140
167
  *
141
168
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/regenerate_token
169
+ *
170
+ * @throws {ApiError}
171
+ * @throws {TimeoutError}
142
172
  */
143
173
  AccessToken.prototype.rawRegenerateToken = function (accessTokenId) {
144
174
  return this.client.request({
@@ -150,6 +180,9 @@ var AccessToken = /** @class */ (function (_super) {
150
180
  * Delete an API token
151
181
  *
152
182
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
183
+ *
184
+ * @throws {ApiError}
185
+ * @throws {TimeoutError}
153
186
  */
154
187
  AccessToken.prototype.destroy = function (accessTokenId, queryParams) {
155
188
  return this.rawDestroy(Utils.toId(accessTokenId), queryParams).then(function (body) {
@@ -160,6 +193,9 @@ var AccessToken = /** @class */ (function (_super) {
160
193
  * Delete an API token
161
194
  *
162
195
  * Read more: https://www.datocms.com/docs/content-management-api/resources/access-token/destroy
196
+ *
197
+ * @throws {ApiError}
198
+ * @throws {TimeoutError}
163
199
  */
164
200
  AccessToken.prototype.rawDestroy = function (accessTokenId, queryParams) {
165
201
  return this.client.request({
@@ -1 +1 @@
1
- {"version":3,"file":"AccessToken.js","sourceRoot":"","sources":["../../../../src/generated/resources/AccessToken.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAyC,+BAAY;IAArD;;IAwMA,CAAC;IArMC;;;;OAIG;IACH,4BAAM,GAAN,UAAO,IAA+C;QACpD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAsC,IAAI,EAAE;YACpE,IAAI,EAAE,cAAc;YACpB,UAAU,EAAE;gBACV,MAAM;gBACN,gBAAgB;gBAChB,wBAAwB;gBACxB,gBAAgB;aACjB;YACD,aAAa,EAAE,CAAC,MAAM,CAAC;SACxB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,+BAAS,GAAT,UACE,IAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA4C;YACpE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,gBAAgB;YACrB,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,4BAAM,GAAN,UACE,aAAyD,EACzD,IAA+C;QAE/C,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,EACzB,KAAK,CAAC,oBAAoB,CAAsC,IAAI,EAAE;YACpE,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC;YAC7B,IAAI,EAAE,cAAc;YACpB,UAAU,EAAE;gBACV,MAAM;gBACN,gBAAgB;gBAChB,wBAAwB;gBACxB,gBAAgB;aACjB;YACD,aAAa,EAAE,CAAC,MAAM,CAAC;SACxB,CAAC,CACH,CAAC,IAAI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C,UAAC,IAAI;YAClE,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,wCAAkB,GAAlB,UACE,aAAqB;QAErB,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB;YACE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAkB,aAAa,sBAAmB;SACxD,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,6BAAO,GAAP,UACE,aAAyD,EACzD,WAA4D;QAE5D,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,CAAC,IAAI,CACjE,UAAC,IAAI;YACH,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACJ,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,gCAAU,GAAV,UACE,aAAqB,EACrB,WAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6C;YACrE,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,yBAAkB,aAAa,CAAE;YACtC,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IAtMe,gBAAI,GAAmB,cAAc,CAAC;IAuMxD,kBAAC;CAAA,AAxMD,CAAyC,YAAY,GAwMpD;eAxMoB,WAAW"}
1
+ {"version":3,"file":"AccessToken.js","sourceRoot":"","sources":["../../../../src/generated/resources/AccessToken.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAAyC,+BAAY;IAArD;;IA4OA,CAAC;IAzOC;;;;;;;OAOG;IACH,4BAAM,GAAN,UAAO,IAA+C;QACpD,OAAO,IAAI,CAAC,SAAS,CACnB,KAAK,CAAC,oBAAoB,CAAsC,IAAI,EAAE;YACpE,IA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D;QAE5D,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC,CAAC,IAAI,CACjE,UAAC,IAAI;YACH,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACJ,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,gCAAU,GAAV,UACE,aAAqB,EACrB,WAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6C;YACrE,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,yBAAkB,aAAa,CAAE;YACtC,WAAW,aAAA;SACZ,CAAC,CAAC;IACL,CAAC;IA1Oe,gBAAI,GAAmB,cAAc,CAAC;IA2OxD,kBAAC;CAAA,AA5OD,CAAyC,YAAY,GA4OpD;eA5OoB,WAAW"}
@@ -7,12 +7,18 @@ export default class AuditLogEvent extends BaseResource {
7
7
  * List Audit Log events
8
8
  *
9
9
  * Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
10
+ *
11
+ * @throws {ApiError}
12
+ * @throws {TimeoutError}
10
13
  */
11
14
  query(body: SimpleSchemaTypes.AuditLogEventQuerySchema): Promise<SimpleSchemaTypes.AuditLogEventQueryTargetSchema>;
12
15
  /**
13
16
  * List Audit Log events
14
17
  *
15
18
  * Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
19
+ *
20
+ * @throws {ApiError}
21
+ * @throws {TimeoutError}
16
22
  */
17
23
  rawQuery(body: SchemaTypes.AuditLogEventQuerySchema): Promise<SchemaTypes.AuditLogEventQueryTargetSchema>;
18
24
  }
@@ -24,6 +24,9 @@ var AuditLogEvent = /** @class */ (function (_super) {
24
24
  * List Audit Log events
25
25
  *
26
26
  * Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
27
+ *
28
+ * @throws {ApiError}
29
+ * @throws {TimeoutError}
27
30
  */
28
31
  AuditLogEvent.prototype.query = function (body) {
29
32
  return this.rawQuery(Utils.serializeRequestBody(body, {
@@ -38,6 +41,9 @@ var AuditLogEvent = /** @class */ (function (_super) {
38
41
  * List Audit Log events
39
42
  *
40
43
  * Read more: https://www.datocms.com/docs/content-management-api/resources/audit-log_event/query
44
+ *
45
+ * @throws {ApiError}
46
+ * @throws {TimeoutError}
41
47
  */
42
48
  AuditLogEvent.prototype.rawQuery = function (body) {
43
49
  return this.client.request({
@@ -1 +1 @@
1
- {"version":3,"file":"AuditLogEvent.js","sourceRoot":"","sources":["../../../../src/generated/resources/AuditLogEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAA2C,iCAAY;IAAvD;;IAoCA,CAAC;IAjCC;;;;OAIG;IACH,6BAAK,GAAL,UAAM,IAAgD;QACpD,OAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,CAAC,oBAAoB,CAAuC,IAAI,EAAE;YACrE,IAAI,EAAE,iBAAiB;YACvB,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,cAAc,CAAC;YACpD,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,gCAAQ,GAAR,UACE,IAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6C;YACrE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAlCe,kBAAI,GAAsB,iBAAiB,CAAC;IAmC9D,oBAAC;CAAA,AApCD,CAA2C,YAAY,GAoCtD;eApCoB,aAAa"}
1
+ {"version":3,"file":"AuditLogEvent.js","sourceRoot":"","sources":["../../../../src/generated/resources/AuditLogEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,4BAA4B,CAAC;AAGpD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C;IAA2C,iCAAY;IAAvD;;IA0CA,CAAC;IAvCC;;;;;;;OAOG;IACH,6BAAK,GAAL,UAAM,IAAgD;QACpD,OAAO,IAAI,CAAC,QAAQ,CAClB,KAAK,CAAC,oBAAoB,CAAuC,IAAI,EAAE;YACrE,IAAI,EAAE,iBAAiB;YACvB,UAAU,EAAE,CAAC,QAAQ,EAAE,YAAY,EAAE,cAAc,CAAC;YACpD,aAAa,EAAE,EAAE;SAClB,CAAC,CACH,CAAC,IAAI,CAAC,UAAC,IAAI;YACV,OAAA,KAAK,CAAC,uBAAuB,CAC3B,IAAI,CACL;QAFD,CAEC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,gCAAQ,GAAR,UACE,IAA0C;QAE1C,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAA6C;YACrE,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,yBAAyB;YAC9B,IAAI,MAAA;SACL,CAAC,CAAC;IACL,CAAC;IAxCe,kBAAI,GAAsB,iBAAiB,CAAC;IAyC9D,oBAAC;CAAA,AA1CD,CAA2C,YAAY,GA0CtD;eA1CoB,aAAa"}
@@ -7,24 +7,36 @@ export default class BuildEvent extends BaseResource {
7
7
  * List all deploy events
8
8
  *
9
9
  * Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/instances
10
+ *
11
+ * @throws {ApiError}
12
+ * @throws {TimeoutError}
10
13
  */
11
14
  list(): Promise<SimpleSchemaTypes.BuildEventInstancesTargetSchema>;
12
15
  /**
13
16
  * List all deploy events
14
17
  *
15
18
  * Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/instances
19
+ *
20
+ * @throws {ApiError}
21
+ * @throws {TimeoutError}
16
22
  */
17
23
  rawList(): Promise<SchemaTypes.BuildEventInstancesTargetSchema>;
18
24
  /**
19
25
  * Retrieve a deploy event
20
26
  *
21
27
  * Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/self
28
+ *
29
+ * @throws {ApiError}
30
+ * @throws {TimeoutError}
22
31
  */
23
32
  find(buildEventId: string | SimpleSchemaTypes.BuildEventData): Promise<SimpleSchemaTypes.BuildEvent>;
24
33
  /**
25
34
  * Retrieve a deploy event
26
35
  *
27
36
  * Read more: https://www.datocms.com/docs/content-management-api/resources/build-event/self
37
+ *
38
+ * @throws {ApiError}
39
+ * @throws {TimeoutError}
28
40
  */
29
41
  rawFind(buildEventId: string): Promise<SchemaTypes.BuildEventSelfTargetSchema>;
30
42
  }