@widgetic/api-sdk 1.0.30 → 1.0.32

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/apis/AdminApi.d.ts +3 -2
  2. package/dist/apis/AdminApi.js +3 -2
  3. package/dist/apis/BillingApi.d.ts +3 -3
  4. package/dist/apis/BillingApi.js +1 -1
  5. package/dist/apis/CompositionsApi.d.ts +190 -87
  6. package/dist/apis/CompositionsApi.js +378 -87
  7. package/dist/apis/CreditsApi.d.ts +6 -6
  8. package/dist/apis/InvoicesApi.d.ts +6 -6
  9. package/dist/apis/InvoicesApi.js +2 -2
  10. package/dist/apis/ManagedUsersApi.d.ts +104 -27
  11. package/dist/apis/ManagedUsersApi.js +247 -12
  12. package/dist/apis/OperationsApi.d.ts +3 -3
  13. package/dist/apis/PartnerApi.d.ts +1291 -0
  14. package/dist/apis/PartnerApi.js +3550 -0
  15. package/dist/apis/PartnersApi.d.ts +140 -43
  16. package/dist/apis/PartnersApi.js +286 -0
  17. package/dist/apis/PublicEmbedApi.d.ts +72 -0
  18. package/dist/apis/PublicEmbedApi.js +168 -0
  19. package/dist/apis/UploadsApi.d.ts +29 -16
  20. package/dist/apis/UploadsApi.js +40 -3
  21. package/dist/apis/UsersApi.d.ts +27 -27
  22. package/dist/apis/WidgetsApi.d.ts +33 -18
  23. package/dist/apis/WidgetsApi.js +84 -39
  24. package/dist/apis/index.d.ts +2 -0
  25. package/dist/apis/index.js +2 -0
  26. package/dist/esm/apis/AdminApi.d.ts +3 -2
  27. package/dist/esm/apis/AdminApi.js +3 -2
  28. package/dist/esm/apis/BillingApi.d.ts +3 -3
  29. package/dist/esm/apis/BillingApi.js +2 -2
  30. package/dist/esm/apis/CompositionsApi.d.ts +190 -87
  31. package/dist/esm/apis/CompositionsApi.js +378 -87
  32. package/dist/esm/apis/CreditsApi.d.ts +6 -6
  33. package/dist/esm/apis/InvoicesApi.d.ts +6 -6
  34. package/dist/esm/apis/InvoicesApi.js +1 -1
  35. package/dist/esm/apis/ManagedUsersApi.d.ts +104 -27
  36. package/dist/esm/apis/ManagedUsersApi.js +248 -13
  37. package/dist/esm/apis/OperationsApi.d.ts +3 -3
  38. package/dist/esm/apis/PartnerApi.d.ts +1291 -0
  39. package/dist/esm/apis/PartnerApi.js +3546 -0
  40. package/dist/esm/apis/PartnersApi.d.ts +140 -43
  41. package/dist/esm/apis/PartnersApi.js +287 -1
  42. package/dist/esm/apis/PublicEmbedApi.d.ts +72 -0
  43. package/dist/esm/apis/PublicEmbedApi.js +164 -0
  44. package/dist/esm/apis/UploadsApi.d.ts +29 -16
  45. package/dist/esm/apis/UploadsApi.js +40 -3
  46. package/dist/esm/apis/UsersApi.d.ts +27 -27
  47. package/dist/esm/apis/WidgetsApi.d.ts +33 -18
  48. package/dist/esm/apis/WidgetsApi.js +85 -40
  49. package/dist/esm/apis/index.d.ts +2 -0
  50. package/dist/esm/apis/index.js +2 -0
  51. package/dist/esm/models/Composition.d.ts +18 -0
  52. package/dist/esm/models/Composition.js +4 -0
  53. package/dist/esm/models/CompositionDataSource.d.ts +41 -0
  54. package/dist/esm/models/CompositionDataSource.js +47 -0
  55. package/dist/esm/models/CompositionEntriesReading.d.ts +20 -4
  56. package/dist/esm/models/CompositionEntriesReading.js +3 -0
  57. package/dist/esm/models/CompositionEntryAggregateTally.d.ts +69 -0
  58. package/dist/esm/models/CompositionEntryAggregateTally.js +51 -0
  59. package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +55 -0
  60. package/dist/esm/models/CompositionEntryAggregatesBlock.js +50 -0
  61. package/dist/esm/models/CompositionEntryDeleteSuccess.d.ts +39 -0
  62. package/dist/esm/models/CompositionEntryDeleteSuccess.js +48 -0
  63. package/dist/esm/models/CompositionEntryDeleteSuccessData.d.ts +32 -0
  64. package/dist/esm/models/CompositionEntryDeleteSuccessData.js +43 -0
  65. package/dist/esm/models/CompositionEntryItem.d.ts +63 -0
  66. package/dist/esm/models/CompositionEntryItem.js +57 -0
  67. package/dist/esm/models/CompositionEntryItemsMeta.d.ts +59 -0
  68. package/dist/esm/models/CompositionEntryItemsMeta.js +55 -0
  69. package/dist/esm/models/CompositionEntryItemsPageSuccess.d.ts +46 -0
  70. package/dist/esm/models/CompositionEntryItemsPageSuccess.js +53 -0
  71. package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
  72. package/dist/esm/models/CreateCanvasRequest.js +2 -0
  73. package/dist/esm/models/CreateCompositionContentItemRequest.d.ts +33 -0
  74. package/dist/esm/models/CreateCompositionContentItemRequest.js +37 -0
  75. package/dist/esm/models/CreateCompositionFromPresetRequest.d.ts +56 -0
  76. package/dist/esm/models/CreateCompositionFromPresetRequest.js +51 -0
  77. package/dist/esm/models/CreateCompositionFromWidget201Response.d.ts +39 -0
  78. package/dist/esm/models/{CreateComposition201Response.js → CreateCompositionFromWidget201Response.js} +8 -8
  79. package/dist/esm/models/CreateCompositionFromWidgetRequest.d.ts +62 -0
  80. package/dist/esm/models/CreateCompositionFromWidgetRequest.js +53 -0
  81. package/dist/esm/models/DeleteCompositionContentItem200Response.d.ts +38 -0
  82. package/dist/esm/models/DeleteCompositionContentItem200Response.js +43 -0
  83. package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  84. package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
  85. package/dist/esm/models/ExportCompositionEntryItems200Response.d.ts +46 -0
  86. package/dist/esm/models/ExportCompositionEntryItems200Response.js +53 -0
  87. package/dist/esm/models/ExportCompositionEntryItems200ResponseMeta.d.ts +38 -0
  88. package/dist/esm/models/ExportCompositionEntryItems200ResponseMeta.js +47 -0
  89. package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
  90. package/dist/esm/models/GetManagedUserLimits200Response.d.ts +39 -0
  91. package/dist/esm/models/GetManagedUserLimits200Response.js +44 -0
  92. package/dist/esm/models/GetManagedUserLimits200ResponseData.d.ts +50 -0
  93. package/dist/esm/models/GetManagedUserLimits200ResponseData.js +55 -0
  94. package/dist/esm/models/GetManagedUserStorageUsage200Response.d.ts +39 -0
  95. package/dist/esm/models/GetManagedUserStorageUsage200Response.js +44 -0
  96. package/dist/esm/models/GetManagedUserStorageUsage200ResponseData.d.ts +45 -0
  97. package/dist/esm/models/GetManagedUserStorageUsage200ResponseData.js +52 -0
  98. package/dist/esm/models/GetManagedUserStorageUsage200ResponseDataByPurpose.d.ts +51 -0
  99. package/dist/esm/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +48 -0
  100. package/dist/esm/models/GetPartnerDesignDefaults200Response.d.ts +39 -0
  101. package/dist/esm/models/GetPartnerDesignDefaults200Response.js +44 -0
  102. package/dist/esm/models/GetPartnerDesignDefaults200ResponseData.d.ts +32 -0
  103. package/dist/esm/models/GetPartnerDesignDefaults200ResponseData.js +41 -0
  104. package/dist/esm/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  105. package/dist/esm/models/GetPublicCompositionEmbed200Response.js +67 -0
  106. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  107. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
  108. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  109. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
  110. package/dist/esm/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  111. package/dist/esm/models/GetPublicCompositionEmbed403Response.js +48 -0
  112. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  113. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.js +50 -0
  114. package/dist/esm/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  115. package/dist/esm/models/GetPublicCompositionEmbed404Response.js +51 -0
  116. package/dist/esm/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  117. package/dist/esm/models/GetPublicCompositionEmbed429Response.js +43 -0
  118. package/dist/esm/models/ManagedUserEntriesMeta.d.ts +56 -0
  119. package/dist/esm/models/ManagedUserEntriesMeta.js +57 -0
  120. package/dist/esm/models/ManagedUserEntriesPageSuccess.d.ts +46 -0
  121. package/dist/esm/models/ManagedUserEntriesPageSuccess.js +53 -0
  122. package/dist/esm/models/ManagedUserEntryItem.d.ts +75 -0
  123. package/dist/esm/models/ManagedUserEntryItem.js +65 -0
  124. package/dist/esm/models/PartnerEntryContextSecret.d.ts +39 -0
  125. package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
  126. package/dist/esm/models/PartnerEntryContextSigning.d.ts +62 -0
  127. package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
  128. package/dist/esm/models/PartnerNotification.d.ts +1 -1
  129. package/dist/esm/models/PartnerNotificationDelivery.d.ts +6 -0
  130. package/dist/esm/models/PartnerNotificationDelivery.js +4 -0
  131. package/dist/esm/models/PartnerNotificationEvent.d.ts +15 -0
  132. package/dist/esm/models/PartnerNotificationEvent.js +13 -1
  133. package/dist/esm/models/PartnerNotificationEventType.d.ts +4 -0
  134. package/dist/esm/models/PartnerNotificationEventType.js +5 -1
  135. package/dist/esm/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  136. package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
  137. package/dist/esm/models/PartnerNotificationTestEventResult.d.ts +50 -0
  138. package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
  139. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  140. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +44 -0
  141. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  142. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
  143. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  144. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.js +41 -0
  145. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  146. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
  147. package/dist/esm/models/PublicCompositionEntryCreated.d.ts +39 -0
  148. package/dist/esm/models/PublicCompositionEntryCreated.js +48 -0
  149. package/dist/esm/models/PublicCompositionEntryCreatedData.d.ts +44 -0
  150. package/dist/esm/models/PublicCompositionEntryCreatedData.js +51 -0
  151. package/dist/esm/models/PublicCompositionEntryRequest.d.ts +40 -0
  152. package/dist/esm/models/PublicCompositionEntryRequest.js +45 -0
  153. package/dist/esm/models/PurposeStorageBucket.d.ts +38 -0
  154. package/dist/esm/models/PurposeStorageBucket.js +47 -0
  155. package/dist/esm/models/SetCompositionDataSourceRequest.d.ts +38 -0
  156. package/dist/esm/models/SetCompositionDataSourceRequest.js +47 -0
  157. package/dist/esm/models/SetDynamicContent200Response.d.ts +6 -0
  158. package/dist/esm/models/SetDynamicContent200Response.js +2 -0
  159. package/dist/esm/models/SetManagedUserLimitsRequest.d.ts +32 -0
  160. package/dist/esm/models/SetManagedUserLimitsRequest.js +43 -0
  161. package/dist/esm/models/SetPartnerDesignDefaultsRequest.d.ts +32 -0
  162. package/dist/esm/models/SetPartnerDesignDefaultsRequest.js +43 -0
  163. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  164. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
  165. package/dist/esm/models/Upload.d.ts +15 -0
  166. package/dist/esm/models/Upload.js +10 -0
  167. package/dist/esm/models/UploadsIdDelete200Response.d.ts +39 -0
  168. package/dist/esm/models/UploadsIdDelete200Response.js +44 -0
  169. package/dist/esm/models/UploadsIdDelete200ResponseData.d.ts +32 -0
  170. package/dist/esm/models/UploadsIdDelete200ResponseData.js +41 -0
  171. package/dist/esm/models/index.d.ts +51 -3
  172. package/dist/esm/models/index.js +51 -3
  173. package/dist/models/Composition.d.ts +18 -0
  174. package/dist/models/Composition.js +4 -0
  175. package/dist/models/CompositionDataSource.d.ts +41 -0
  176. package/dist/models/CompositionDataSource.js +54 -0
  177. package/dist/models/CompositionEntriesReading.d.ts +20 -4
  178. package/dist/models/CompositionEntriesReading.js +3 -0
  179. package/dist/models/CompositionEntryAggregateTally.d.ts +69 -0
  180. package/dist/models/CompositionEntryAggregateTally.js +58 -0
  181. package/dist/models/CompositionEntryAggregatesBlock.d.ts +55 -0
  182. package/dist/models/CompositionEntryAggregatesBlock.js +57 -0
  183. package/dist/models/CompositionEntryDeleteSuccess.d.ts +39 -0
  184. package/dist/models/CompositionEntryDeleteSuccess.js +55 -0
  185. package/dist/models/CompositionEntryDeleteSuccessData.d.ts +32 -0
  186. package/dist/models/CompositionEntryDeleteSuccessData.js +50 -0
  187. package/dist/models/CompositionEntryItem.d.ts +63 -0
  188. package/dist/models/CompositionEntryItem.js +64 -0
  189. package/dist/models/CompositionEntryItemsMeta.d.ts +59 -0
  190. package/dist/models/CompositionEntryItemsMeta.js +63 -0
  191. package/dist/models/CompositionEntryItemsPageSuccess.d.ts +46 -0
  192. package/dist/models/CompositionEntryItemsPageSuccess.js +60 -0
  193. package/dist/models/CreateCanvasRequest.d.ts +6 -0
  194. package/dist/models/CreateCanvasRequest.js +2 -0
  195. package/dist/models/CreateCompositionContentItemRequest.d.ts +33 -0
  196. package/dist/models/CreateCompositionContentItemRequest.js +44 -0
  197. package/dist/models/CreateCompositionFromPresetRequest.d.ts +56 -0
  198. package/dist/models/CreateCompositionFromPresetRequest.js +58 -0
  199. package/dist/models/CreateCompositionFromWidget201Response.d.ts +39 -0
  200. package/dist/models/CreateCompositionFromWidget201Response.js +51 -0
  201. package/dist/models/CreateCompositionFromWidgetRequest.d.ts +62 -0
  202. package/dist/models/CreateCompositionFromWidgetRequest.js +60 -0
  203. package/dist/models/DeleteCompositionContentItem200Response.d.ts +38 -0
  204. package/dist/models/DeleteCompositionContentItem200Response.js +50 -0
  205. package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  206. package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
  207. package/dist/models/ExportCompositionEntryItems200Response.d.ts +46 -0
  208. package/dist/models/ExportCompositionEntryItems200Response.js +60 -0
  209. package/dist/models/ExportCompositionEntryItems200ResponseMeta.d.ts +38 -0
  210. package/dist/models/ExportCompositionEntryItems200ResponseMeta.js +54 -0
  211. package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
  212. package/dist/models/GetManagedUserLimits200Response.d.ts +39 -0
  213. package/dist/models/GetManagedUserLimits200Response.js +51 -0
  214. package/dist/models/GetManagedUserLimits200ResponseData.d.ts +50 -0
  215. package/dist/models/GetManagedUserLimits200ResponseData.js +62 -0
  216. package/dist/models/GetManagedUserStorageUsage200Response.d.ts +39 -0
  217. package/dist/models/GetManagedUserStorageUsage200Response.js +51 -0
  218. package/dist/models/GetManagedUserStorageUsage200ResponseData.d.ts +45 -0
  219. package/dist/models/GetManagedUserStorageUsage200ResponseData.js +59 -0
  220. package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.d.ts +51 -0
  221. package/dist/models/GetManagedUserStorageUsage200ResponseDataByPurpose.js +55 -0
  222. package/dist/models/GetPartnerDesignDefaults200Response.d.ts +39 -0
  223. package/dist/models/GetPartnerDesignDefaults200Response.js +51 -0
  224. package/dist/models/GetPartnerDesignDefaults200ResponseData.d.ts +32 -0
  225. package/dist/models/GetPartnerDesignDefaults200ResponseData.js +48 -0
  226. package/dist/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  227. package/dist/models/GetPublicCompositionEmbed200Response.js +74 -0
  228. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  229. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
  230. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  231. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
  232. package/dist/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  233. package/dist/models/GetPublicCompositionEmbed403Response.js +55 -0
  234. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  235. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.js +58 -0
  236. package/dist/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  237. package/dist/models/GetPublicCompositionEmbed404Response.js +59 -0
  238. package/dist/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  239. package/dist/models/GetPublicCompositionEmbed429Response.js +50 -0
  240. package/dist/models/ManagedUserEntriesMeta.d.ts +56 -0
  241. package/dist/models/ManagedUserEntriesMeta.js +64 -0
  242. package/dist/models/ManagedUserEntriesPageSuccess.d.ts +46 -0
  243. package/dist/models/ManagedUserEntriesPageSuccess.js +60 -0
  244. package/dist/models/ManagedUserEntryItem.d.ts +75 -0
  245. package/dist/models/ManagedUserEntryItem.js +72 -0
  246. package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
  247. package/dist/models/PartnerEntryContextSecret.js +55 -0
  248. package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
  249. package/dist/models/PartnerEntryContextSigning.js +70 -0
  250. package/dist/models/PartnerNotification.d.ts +1 -1
  251. package/dist/models/PartnerNotificationDelivery.d.ts +6 -0
  252. package/dist/models/PartnerNotificationDelivery.js +4 -0
  253. package/dist/models/PartnerNotificationEvent.d.ts +15 -0
  254. package/dist/models/PartnerNotificationEvent.js +14 -2
  255. package/dist/models/PartnerNotificationEventType.d.ts +4 -0
  256. package/dist/models/PartnerNotificationEventType.js +5 -1
  257. package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  258. package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
  259. package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
  260. package/dist/models/PartnerNotificationTestEventResult.js +60 -0
  261. package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  262. package/dist/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
  263. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  264. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
  265. package/dist/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  266. package/dist/models/PostPublicCompositionEmbedStatus429Response.js +48 -0
  267. package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  268. package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
  269. package/dist/models/PublicCompositionEntryCreated.d.ts +39 -0
  270. package/dist/models/PublicCompositionEntryCreated.js +55 -0
  271. package/dist/models/PublicCompositionEntryCreatedData.d.ts +44 -0
  272. package/dist/models/PublicCompositionEntryCreatedData.js +58 -0
  273. package/dist/models/PublicCompositionEntryRequest.d.ts +40 -0
  274. package/dist/models/PublicCompositionEntryRequest.js +52 -0
  275. package/dist/models/PurposeStorageBucket.d.ts +38 -0
  276. package/dist/models/PurposeStorageBucket.js +54 -0
  277. package/dist/models/SetCompositionDataSourceRequest.d.ts +38 -0
  278. package/dist/models/SetCompositionDataSourceRequest.js +54 -0
  279. package/dist/models/SetDynamicContent200Response.d.ts +6 -0
  280. package/dist/models/SetDynamicContent200Response.js +2 -0
  281. package/dist/models/SetManagedUserLimitsRequest.d.ts +32 -0
  282. package/dist/models/SetManagedUserLimitsRequest.js +50 -0
  283. package/dist/models/SetPartnerDesignDefaultsRequest.d.ts +32 -0
  284. package/dist/models/SetPartnerDesignDefaultsRequest.js +50 -0
  285. package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  286. package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
  287. package/dist/models/Upload.d.ts +15 -0
  288. package/dist/models/Upload.js +11 -1
  289. package/dist/models/UploadsIdDelete200Response.d.ts +39 -0
  290. package/dist/models/UploadsIdDelete200Response.js +51 -0
  291. package/dist/models/UploadsIdDelete200ResponseData.d.ts +32 -0
  292. package/dist/models/UploadsIdDelete200ResponseData.js +48 -0
  293. package/dist/models/index.d.ts +51 -3
  294. package/dist/models/index.js +51 -3
  295. package/package.json +1 -1
  296. package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
  297. package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -44
  298. package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
  299. package/dist/esm/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -41
  300. package/dist/esm/models/CreateComposition201Response.d.ts +0 -39
  301. package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
  302. package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -51
  303. package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
  304. package/dist/models/BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -48
  305. package/dist/models/CreateComposition201Response.d.ts +0 -39
  306. package/dist/models/CreateComposition201Response.js +0 -51
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.GetAllCompositionsStatusEnum = exports.GetAllCompositionsWorkspaceEnum = exports.CompositionsApi = void 0;
25
+ exports.GetAllCompositions0StatusEnum = exports.GetAllCompositions0WorkspaceEnum = exports.CompositionsApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
@@ -67,17 +67,26 @@ class CompositionsApi extends runtime.BaseAPI {
67
67
  });
68
68
  }
69
69
  /**
70
- * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
71
- * Create Composition
70
+ * Creates one item in a widget content list without replacing the whole list. Item field keys are widget data (camelCase or snake_case are kept as sent). Partners use this to keep galleries in sync.
71
+ * Add a content list item
72
72
  */
73
- createCompositionRaw(requestParameters, initOverrides) {
73
+ createCompositionContentItemRaw(requestParameters, initOverrides) {
74
74
  return __awaiter(this, void 0, void 0, function* () {
75
- if (requestParameters['newComposition'] == null) {
76
- throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
75
+ if (requestParameters['id'] == null) {
76
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createCompositionContentItem().');
77
+ }
78
+ if (requestParameters['list'] == null) {
79
+ throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling createCompositionContentItem().');
80
+ }
81
+ if (requestParameters['createCompositionContentItemRequest'] == null) {
82
+ throw new runtime.RequiredError('createCompositionContentItemRequest', 'Required parameter "createCompositionContentItemRequest" was null or undefined when calling createCompositionContentItem().');
77
83
  }
78
84
  const queryParameters = {};
79
85
  const headerParameters = {};
80
86
  headerParameters['Content-Type'] = 'application/json';
87
+ if (requestParameters['ifMatch'] != null) {
88
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
89
+ }
81
90
  if (requestParameters['idempotencyKey'] != null) {
82
91
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
83
92
  }
@@ -89,23 +98,22 @@ class CompositionsApi extends runtime.BaseAPI {
89
98
  }
90
99
  }
91
100
  const response = yield this.request({
92
- path: `/compositions`,
101
+ path: `/compositions/{id}/content/{list}/items`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"list"}}`, encodeURIComponent(String(requestParameters['list']))),
93
102
  method: 'POST',
94
103
  headers: headerParameters,
95
104
  query: queryParameters,
96
- body: (0, index_1.NewCompositionToJSON)(requestParameters['newComposition']),
105
+ body: (0, index_1.CreateCompositionContentItemRequestToJSON)(requestParameters['createCompositionContentItemRequest']),
97
106
  }, initOverrides);
98
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateComposition201ResponseFromJSON)(jsonValue));
107
+ return new runtime.VoidApiResponse(response);
99
108
  });
100
109
  }
101
110
  /**
102
- * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
103
- * Create Composition
111
+ * Creates one item in a widget content list without replacing the whole list. Item field keys are widget data (camelCase or snake_case are kept as sent). Partners use this to keep galleries in sync.
112
+ * Add a content list item
104
113
  */
105
- createComposition(requestParameters, initOverrides) {
114
+ createCompositionContentItem(requestParameters, initOverrides) {
106
115
  return __awaiter(this, void 0, void 0, function* () {
107
- const response = yield this.createCompositionRaw(requestParameters, initOverrides);
108
- return yield response.value();
116
+ yield this.createCompositionContentItemRaw(requestParameters, initOverrides);
109
117
  });
110
118
  }
111
119
  /**
@@ -156,16 +164,69 @@ class CompositionsApi extends runtime.BaseAPI {
156
164
  });
157
165
  }
158
166
  /**
159
- * Deletes a specific composition.
160
- * Delete Composition
167
+ * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
168
+ * Create Composition
161
169
  */
162
- deleteCompositionRaw(requestParameters, initOverrides) {
170
+ createCompositionRaw(requestParameters, initOverrides) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ if (requestParameters['newComposition'] == null) {
173
+ throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
174
+ }
175
+ const queryParameters = {};
176
+ const headerParameters = {};
177
+ headerParameters['Content-Type'] = 'application/json';
178
+ if (requestParameters['idempotencyKey'] != null) {
179
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
180
+ }
181
+ if (this.configuration && this.configuration.accessToken) {
182
+ const token = this.configuration.accessToken;
183
+ const tokenString = yield token("apiKeyAuth", []);
184
+ if (tokenString) {
185
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
186
+ }
187
+ }
188
+ const response = yield this.request({
189
+ path: `/compositions`,
190
+ method: 'POST',
191
+ headers: headerParameters,
192
+ query: queryParameters,
193
+ body: (0, index_1.NewCompositionToJSON)(requestParameters['newComposition']),
194
+ }, initOverrides);
195
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionFromWidget201ResponseFromJSON)(jsonValue));
196
+ });
197
+ }
198
+ /**
199
+ * Creates a new composition. To make the composition for one of your managed users, send `managedUserId` or `managedUserExternalId`. The composition stays in your account and is yours to edit; the tag lets you list one user\'s compositions with `getAllCompositions`. The managed user must be yours and active: one that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`. The tag is set here and does not change afterwards. A copy made with `duplicateComposition` keeps the tag of the original. An editor session with the `creator` surface may call this to start a composition of a widget it built: it sends only `name`, `widgetId` (a widget made for the session\'s managed user) and `content`, and the composition is always made for that managed user. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry, so one composition is created, not two.
200
+ * Create Composition
201
+ */
202
+ createComposition(requestParameters, initOverrides) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ const response = yield this.createCompositionRaw(requestParameters, initOverrides);
205
+ return yield response.value();
206
+ });
207
+ }
208
+ /**
209
+ * Delete a content list item
210
+ */
211
+ deleteCompositionContentItemRaw(requestParameters, initOverrides) {
163
212
  return __awaiter(this, void 0, void 0, function* () {
164
213
  if (requestParameters['id'] == null) {
165
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
214
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionContentItem().');
215
+ }
216
+ if (requestParameters['list'] == null) {
217
+ throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling deleteCompositionContentItem().');
218
+ }
219
+ if (requestParameters['itemId'] == null) {
220
+ throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling deleteCompositionContentItem().');
166
221
  }
167
222
  const queryParameters = {};
168
223
  const headerParameters = {};
224
+ if (requestParameters['ifMatch'] != null) {
225
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
226
+ }
227
+ if (requestParameters['idempotencyKey'] != null) {
228
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
229
+ }
169
230
  if (this.configuration && this.configuration.accessToken) {
170
231
  const token = this.configuration.accessToken;
171
232
  const tokenString = yield token("apiKeyAuth", []);
@@ -174,21 +235,61 @@ class CompositionsApi extends runtime.BaseAPI {
174
235
  }
175
236
  }
176
237
  const response = yield this.request({
177
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
238
+ path: `/compositions/{id}/content/{list}/items/{itemId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"list"}}`, encodeURIComponent(String(requestParameters['list']))).replace(`{${"itemId"}}`, encodeURIComponent(String(requestParameters['itemId']))),
178
239
  method: 'DELETE',
179
240
  headers: headerParameters,
180
241
  query: queryParameters,
181
242
  }, initOverrides);
182
- return new runtime.VoidApiResponse(response);
243
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteCompositionContentItem200ResponseFromJSON)(jsonValue));
183
244
  });
184
245
  }
185
246
  /**
186
- * Deletes a specific composition.
187
- * Delete Composition
247
+ * Delete a content list item
188
248
  */
189
- deleteComposition(requestParameters, initOverrides) {
249
+ deleteCompositionContentItem(requestParameters, initOverrides) {
190
250
  return __awaiter(this, void 0, void 0, function* () {
191
- yield this.deleteCompositionRaw(requestParameters, initOverrides);
251
+ const response = yield this.deleteCompositionContentItemRaw(requestParameters, initOverrides);
252
+ return yield response.value();
253
+ });
254
+ }
255
+ /**
256
+ * Removes the binding. Asking again, or asking for a composition that had none, is not an error: the composition has no data source afterwards, and that is all `removed: true` says.
257
+ * Remove the composition data source binding
258
+ */
259
+ deleteCompositionDataSourceRaw(requestParameters, initOverrides) {
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ if (requestParameters['id'] == null) {
262
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionDataSource().');
263
+ }
264
+ const queryParameters = {};
265
+ const headerParameters = {};
266
+ if (requestParameters['idempotencyKey'] != null) {
267
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
268
+ }
269
+ if (this.configuration && this.configuration.accessToken) {
270
+ const token = this.configuration.accessToken;
271
+ const tokenString = yield token("apiKeyAuth", []);
272
+ if (tokenString) {
273
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
274
+ }
275
+ }
276
+ const response = yield this.request({
277
+ path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
278
+ method: 'DELETE',
279
+ headers: headerParameters,
280
+ query: queryParameters,
281
+ }, initOverrides);
282
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteCompositionDataSource200ResponseFromJSON)(jsonValue));
283
+ });
284
+ }
285
+ /**
286
+ * Removes the binding. Asking again, or asking for a composition that had none, is not an error: the composition has no data source afterwards, and that is all `removed: true` says.
287
+ * Remove the composition data source binding
288
+ */
289
+ deleteCompositionDataSource(requestParameters, initOverrides) {
290
+ return __awaiter(this, void 0, void 0, function* () {
291
+ const response = yield this.deleteCompositionDataSourceRaw(requestParameters, initOverrides);
292
+ return yield response.value();
192
293
  });
193
294
  }
194
295
  /**
@@ -233,6 +334,42 @@ class CompositionsApi extends runtime.BaseAPI {
233
334
  yield this.deleteCompositionDatabaseRecordRaw(requestParameters, initOverrides);
234
335
  });
235
336
  }
337
+ /**
338
+ * Deletes a specific composition.
339
+ * Delete Composition
340
+ */
341
+ deleteCompositionRaw(requestParameters, initOverrides) {
342
+ return __awaiter(this, void 0, void 0, function* () {
343
+ if (requestParameters['id'] == null) {
344
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
345
+ }
346
+ const queryParameters = {};
347
+ const headerParameters = {};
348
+ if (this.configuration && this.configuration.accessToken) {
349
+ const token = this.configuration.accessToken;
350
+ const tokenString = yield token("apiKeyAuth", []);
351
+ if (tokenString) {
352
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
353
+ }
354
+ }
355
+ const response = yield this.request({
356
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
357
+ method: 'DELETE',
358
+ headers: headerParameters,
359
+ query: queryParameters,
360
+ }, initOverrides);
361
+ return new runtime.VoidApiResponse(response);
362
+ });
363
+ }
364
+ /**
365
+ * Deletes a specific composition.
366
+ * Delete Composition
367
+ */
368
+ deleteComposition(requestParameters, initOverrides) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ yield this.deleteCompositionRaw(requestParameters, initOverrides);
371
+ });
372
+ }
236
373
  /**
237
374
  * Names the tables a composition\'s widget keeps entries in (the votes, ratings, answers or sign-ups its visitors left), their columns, and how many entries each holds. Call it first to learn the table and column names that `readCompositionEntries` takes. A widget that only shows content keeps nothing of its own: the answer is `hasData: false` with no tables, and that is not an error. A table that could not be counted has `rows: null`, which is not zero. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
238
375
  * Describe What a Composition Keeps
@@ -377,7 +514,7 @@ class CompositionsApi extends runtime.BaseAPI {
377
514
  });
378
515
  }
379
516
  /**
380
- * Retrieves a specific composition by its ID.
517
+ * Retrieves a specific composition by its ID. The answer carries `direct`, which says whether the widget the composition is made from is drawn straight into your page (`true`) or inside a frame (`false`), or `null` while the widget has no published version. Read it before you go live: a widget drawn without a frame writes its entries from your own page, so the public entry route accepts them only from a website on the composition\'s allowed list, and refuses them while that list is empty (the public JSON of the composition stays open to every website). A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says.
381
518
  * Get Composition
382
519
  */
383
520
  getCompositionByIdRaw(requestParameters, initOverrides) {
@@ -400,11 +537,11 @@ class CompositionsApi extends runtime.BaseAPI {
400
537
  headers: headerParameters,
401
538
  query: queryParameters,
402
539
  }, initOverrides);
403
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateComposition201ResponseFromJSON)(jsonValue));
540
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionFromWidget201ResponseFromJSON)(jsonValue));
404
541
  });
405
542
  }
406
543
  /**
407
- * Retrieves a specific composition by its ID.
544
+ * Retrieves a specific composition by its ID. The answer carries `direct`, which says whether the widget the composition is made from is drawn straight into your page (`true`) or inside a frame (`false`), or `null` while the widget has no published version. Read it before you go live: a widget drawn without a frame writes its entries from your own page, so the public entry route accepts them only from a website on the composition\'s allowed list, and refuses them while that list is empty (the public JSON of the composition stays open to every website). A widget in a frame writes from Widgetic\'s own frame and is accepted whatever the list says.
408
545
  * Get Composition
409
546
  */
410
547
  getCompositionById(requestParameters, initOverrides) {
@@ -413,6 +550,43 @@ class CompositionsApi extends runtime.BaseAPI {
413
550
  return yield response.value();
414
551
  });
415
552
  }
553
+ /**
554
+ * Retrieves the content schema for a composition based on its widget type
555
+ * Get Content Schema
556
+ */
557
+ getCompositionContentSchemaRaw(requestParameters, initOverrides) {
558
+ return __awaiter(this, void 0, void 0, function* () {
559
+ if (requestParameters['id'] == null) {
560
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
561
+ }
562
+ const queryParameters = {};
563
+ const headerParameters = {};
564
+ if (this.configuration && this.configuration.accessToken) {
565
+ const token = this.configuration.accessToken;
566
+ const tokenString = yield token("apiKeyAuth", []);
567
+ if (tokenString) {
568
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
569
+ }
570
+ }
571
+ const response = yield this.request({
572
+ path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
573
+ method: 'GET',
574
+ headers: headerParameters,
575
+ query: queryParameters,
576
+ }, initOverrides);
577
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionContentSchema200ResponseFromJSON)(jsonValue));
578
+ });
579
+ }
580
+ /**
581
+ * Retrieves the content schema for a composition based on its widget type
582
+ * Get Content Schema
583
+ */
584
+ getCompositionContentSchema(requestParameters, initOverrides) {
585
+ return __awaiter(this, void 0, void 0, function* () {
586
+ const response = yield this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
587
+ return yield response.value();
588
+ });
589
+ }
416
590
  /**
417
591
  * Retrieves the current content of a composition
418
592
  * Get Current Content
@@ -451,13 +625,13 @@ class CompositionsApi extends runtime.BaseAPI {
451
625
  });
452
626
  }
453
627
  /**
454
- * Retrieves the content schema for a composition based on its widget type
455
- * Get Content Schema
628
+ * The data source that is bound to the composition: `url` and `refreshSeconds`. The answer\'s `data` is `null` when none is bound, and also when what is stored does not pass the rule for a public https address (a binding written by another path, such as the general embed-settings update, is never shown to a page unless it passes the same checks as this route).
629
+ * Read the composition data source binding
456
630
  */
457
- getCompositionContentSchemaRaw(requestParameters, initOverrides) {
631
+ getCompositionDataSourceRaw(requestParameters, initOverrides) {
458
632
  return __awaiter(this, void 0, void 0, function* () {
459
633
  if (requestParameters['id'] == null) {
460
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
634
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDataSource().');
461
635
  }
462
636
  const queryParameters = {};
463
637
  const headerParameters = {};
@@ -469,21 +643,21 @@ class CompositionsApi extends runtime.BaseAPI {
469
643
  }
470
644
  }
471
645
  const response = yield this.request({
472
- path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
646
+ path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
473
647
  method: 'GET',
474
648
  headers: headerParameters,
475
649
  query: queryParameters,
476
650
  }, initOverrides);
477
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionContentSchema200ResponseFromJSON)(jsonValue));
651
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionDataSourceFromJSON)(jsonValue));
478
652
  });
479
653
  }
480
654
  /**
481
- * Retrieves the content schema for a composition based on its widget type
482
- * Get Content Schema
655
+ * The data source that is bound to the composition: `url` and `refreshSeconds`. The answer\'s `data` is `null` when none is bound, and also when what is stored does not pass the rule for a public https address (a binding written by another path, such as the general embed-settings update, is never shown to a page unless it passes the same checks as this route).
656
+ * Read the composition data source binding
483
657
  */
484
- getCompositionContentSchema(requestParameters, initOverrides) {
658
+ getCompositionDataSource(requestParameters, initOverrides) {
485
659
  return __awaiter(this, void 0, void 0, function* () {
486
- const response = yield this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
660
+ const response = yield this.getCompositionDataSourceRaw(requestParameters, initOverrides);
487
661
  return yield response.value();
488
662
  });
489
663
  }
@@ -569,13 +743,13 @@ class CompositionsApi extends runtime.BaseAPI {
569
743
  });
570
744
  }
571
745
  /**
572
- * Retrieves only the design field from a composition.
573
- * Get Composition Design
746
+ * Retrieves the design schema for a composition based on its widget type
747
+ * Get Design Schema
574
748
  */
575
- getCompositionDesignRaw(requestParameters, initOverrides) {
749
+ getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
576
750
  return __awaiter(this, void 0, void 0, function* () {
577
751
  if (requestParameters['id'] == null) {
578
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
752
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
579
753
  }
580
754
  const queryParameters = {};
581
755
  const headerParameters = {};
@@ -587,32 +761,32 @@ class CompositionsApi extends runtime.BaseAPI {
587
761
  }
588
762
  }
589
763
  const response = yield this.request({
590
- path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
764
+ path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
591
765
  method: 'GET',
592
766
  headers: headerParameters,
593
767
  query: queryParameters,
594
768
  }, initOverrides);
595
- return new runtime.JSONApiResponse(response);
769
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionDesignSchema200ResponseFromJSON)(jsonValue));
596
770
  });
597
771
  }
598
772
  /**
599
- * Retrieves only the design field from a composition.
600
- * Get Composition Design
773
+ * Retrieves the design schema for a composition based on its widget type
774
+ * Get Design Schema
601
775
  */
602
- getCompositionDesign(requestParameters, initOverrides) {
776
+ getCompositionDesignSchema(requestParameters, initOverrides) {
603
777
  return __awaiter(this, void 0, void 0, function* () {
604
- const response = yield this.getCompositionDesignRaw(requestParameters, initOverrides);
778
+ const response = yield this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
605
779
  return yield response.value();
606
780
  });
607
781
  }
608
782
  /**
609
- * Retrieves the design schema for a composition based on its widget type
610
- * Get Design Schema
783
+ * Retrieves only the design field from a composition.
784
+ * Get Composition Design
611
785
  */
612
- getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
786
+ getCompositionDesignRaw(requestParameters, initOverrides) {
613
787
  return __awaiter(this, void 0, void 0, function* () {
614
788
  if (requestParameters['id'] == null) {
615
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
789
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
616
790
  }
617
791
  const queryParameters = {};
618
792
  const headerParameters = {};
@@ -624,21 +798,21 @@ class CompositionsApi extends runtime.BaseAPI {
624
798
  }
625
799
  }
626
800
  const response = yield this.request({
627
- path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
801
+ path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
628
802
  method: 'GET',
629
803
  headers: headerParameters,
630
804
  query: queryParameters,
631
805
  }, initOverrides);
632
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCompositionDesignSchema200ResponseFromJSON)(jsonValue));
806
+ return new runtime.JSONApiResponse(response);
633
807
  });
634
808
  }
635
809
  /**
636
- * Retrieves the design schema for a composition based on its widget type
637
- * Get Design Schema
810
+ * Retrieves only the design field from a composition.
811
+ * Get Composition Design
638
812
  */
639
- getCompositionDesignSchema(requestParameters, initOverrides) {
813
+ getCompositionDesign(requestParameters, initOverrides) {
640
814
  return __awaiter(this, void 0, void 0, function* () {
641
- const response = yield this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
815
+ const response = yield this.getCompositionDesignRaw(requestParameters, initOverrides);
642
816
  return yield response.value();
643
817
  });
644
818
  }
@@ -830,7 +1004,58 @@ class CompositionsApi extends runtime.BaseAPI {
830
1004
  });
831
1005
  }
832
1006
  /**
833
- * Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. This read is bounded on purpose: it never returns more than 25 entries, 20 groups, 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
1007
+ * Update a content list item
1008
+ */
1009
+ patchCompositionContentItemRaw(requestParameters, initOverrides) {
1010
+ return __awaiter(this, void 0, void 0, function* () {
1011
+ if (requestParameters['id'] == null) {
1012
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling patchCompositionContentItem().');
1013
+ }
1014
+ if (requestParameters['list'] == null) {
1015
+ throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling patchCompositionContentItem().');
1016
+ }
1017
+ if (requestParameters['itemId'] == null) {
1018
+ throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling patchCompositionContentItem().');
1019
+ }
1020
+ if (requestParameters['requestBody'] == null) {
1021
+ throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling patchCompositionContentItem().');
1022
+ }
1023
+ const queryParameters = {};
1024
+ const headerParameters = {};
1025
+ headerParameters['Content-Type'] = 'application/json';
1026
+ if (requestParameters['ifMatch'] != null) {
1027
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1028
+ }
1029
+ if (requestParameters['idempotencyKey'] != null) {
1030
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1031
+ }
1032
+ if (this.configuration && this.configuration.accessToken) {
1033
+ const token = this.configuration.accessToken;
1034
+ const tokenString = yield token("apiKeyAuth", []);
1035
+ if (tokenString) {
1036
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1037
+ }
1038
+ }
1039
+ const response = yield this.request({
1040
+ path: `/compositions/{id}/content/{list}/items/{itemId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"list"}}`, encodeURIComponent(String(requestParameters['list']))).replace(`{${"itemId"}}`, encodeURIComponent(String(requestParameters['itemId']))),
1041
+ method: 'PATCH',
1042
+ headers: headerParameters,
1043
+ query: queryParameters,
1044
+ body: requestParameters['requestBody'],
1045
+ }, initOverrides);
1046
+ return new runtime.VoidApiResponse(response);
1047
+ });
1048
+ }
1049
+ /**
1050
+ * Update a content list item
1051
+ */
1052
+ patchCompositionContentItem(requestParameters, initOverrides) {
1053
+ return __awaiter(this, void 0, void 0, function* () {
1054
+ yield this.patchCompositionContentItemRaw(requestParameters, initOverrides);
1055
+ });
1056
+ }
1057
+ /**
1058
+ * Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. - **`aggregate`** asks for `aggregates` as well: a comma-separated list of `count`, `avg`, `min`, `max` and `sum`. `avg`, `min`, `max` and `sum` need `column`, a numeric column of the table. With `groupBy` there is one tally per value of it, in the order of that column, up to 200 groups (`aggregates.truncated` is true when there are more); without `groupBy` there is one tally for the whole selection. **`aggregates` counts a selection; the rest of the answer does not.** `since` (inclusive), `until` (exclusive), `context[key]=value` and `filter[column]=value` narrow `aggregates` alone, so \"the average rating this week\" is `aggregate=avg&column=stars&since=...`. `totalRows`, `tallies` and `rows` always describe the whole table. These parameters, and `column`, are refused (400) on a read without `aggregate`, where they would be accepted and change nothing. This read is bounded on purpose: it never returns more than 25 entries, 20 groups (200 in `aggregates`), 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`; to page through entries with their time, context and filters, use `listCompositionEntryItems`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
834
1059
  * Read the Entries of a Composition\'s Table
835
1060
  */
836
1061
  readCompositionEntriesRaw(requestParameters, initOverrides) {
@@ -848,6 +1073,24 @@ class CompositionsApi extends runtime.BaseAPI {
848
1073
  if (requestParameters['rows'] != null) {
849
1074
  queryParameters['rows'] = requestParameters['rows'];
850
1075
  }
1076
+ if (requestParameters['aggregate'] != null) {
1077
+ queryParameters['aggregate'] = requestParameters['aggregate'];
1078
+ }
1079
+ if (requestParameters['column'] != null) {
1080
+ queryParameters['column'] = requestParameters['column'];
1081
+ }
1082
+ if (requestParameters['since'] != null) {
1083
+ queryParameters['since'] = requestParameters['since'].toISOString();
1084
+ }
1085
+ if (requestParameters['until'] != null) {
1086
+ queryParameters['until'] = requestParameters['until'].toISOString();
1087
+ }
1088
+ if (requestParameters['context'] != null) {
1089
+ queryParameters['context'] = requestParameters['context'];
1090
+ }
1091
+ if (requestParameters['filter'] != null) {
1092
+ queryParameters['filter'] = requestParameters['filter'];
1093
+ }
851
1094
  const headerParameters = {};
852
1095
  if (this.configuration && this.configuration.accessToken) {
853
1096
  const token = this.configuration.accessToken;
@@ -866,7 +1109,7 @@ class CompositionsApi extends runtime.BaseAPI {
866
1109
  });
867
1110
  }
868
1111
  /**
869
- * Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. This read is bounded on purpose: it never returns more than 25 entries, 20 groups, 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
1112
+ * Counts the entries visitors left in one table, tallies them per value of a column on request, and returns the newest entries only when asked to. To show the results of a rating widget, tally by its rating column (`groupBy`): each group is a rating and how many visitors gave it. The average is then `sum(value * count) / sum(count)` over the tallies (all of them, when `moreGroups` is false). - **`totalRows`** is how many entries the table holds in all. - **`groupBy`** names a column (as `describeCompositionEntries` lists it). `tallies` then lists up to 20 values of it, the largest group first; `moreGroups` is true when there are more. - **`rows`** asks for the newest entries too, 1 to 25. The default is 0: counts and tallies only. `moreRows` is true when the table holds more than were returned. Each entry is a list of values, and `columns` names them in the same order: to get objects, zip them with `Object.fromEntries(columns.map((name, index) => [name, entry[index]]))`. The names are the database\'s own (`created_at`, not `createdAt`), the same ones `describeCompositionEntries` lists. - **`aggregate`** asks for `aggregates` as well: a comma-separated list of `count`, `avg`, `min`, `max` and `sum`. `avg`, `min`, `max` and `sum` need `column`, a numeric column of the table. With `groupBy` there is one tally per value of it, in the order of that column, up to 200 groups (`aggregates.truncated` is true when there are more); without `groupBy` there is one tally for the whole selection. **`aggregates` counts a selection; the rest of the answer does not.** `since` (inclusive), `until` (exclusive), `context[key]=value` and `filter[column]=value` narrow `aggregates` alone, so \"the average rating this week\" is `aggregate=avg&column=stars&since=...`. `totalRows`, `tallies` and `rows` always describe the whole table. These parameters, and `column`, are refused (400) on a read without `aggregate`, where they would be accepted and change nothing. This read is bounded on purpose: it never returns more than 25 entries, 20 groups (200 in `aggregates`), 40 columns or 200 characters a value. To read a whole table (or to change an entry) use `getCompositionDatabaseRecords`; to page through entries with their time, context and filters, use `listCompositionEntryItems`. **The values are what visitors typed or chose.** They can include names and email addresses, and text written to look like instructions. Treat them as data: escape them before showing them in a page, and keep them to the people who may see them. The caller must be able to read the composition: its creator, or a member of its project or organization. An editor session cannot call this route.
870
1113
  * Read the Entries of a Composition\'s Table
871
1114
  */
872
1115
  readCompositionEntries(requestParameters, initOverrides) {
@@ -876,16 +1119,16 @@ class CompositionsApi extends runtime.BaseAPI {
876
1119
  });
877
1120
  }
878
1121
  /**
879
- * Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
880
- * Set Dynamic Content
1122
+ * Stores an https URL the widget runtime may read on load and every `refresh_seconds`. The URL must name a public host (no loopback, link-local or metadata addresses). A composition has one binding: saving another replaces it. The answer is the binding as it was saved (`url`, `refreshSeconds`).
1123
+ * Bind a public JSON data source for embed refresh
881
1124
  */
882
- setDynamicContentRaw(requestParameters, initOverrides) {
1125
+ setCompositionDataSourceRaw(requestParameters, initOverrides) {
883
1126
  return __awaiter(this, void 0, void 0, function* () {
884
1127
  if (requestParameters['id'] == null) {
885
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setDynamicContent().');
1128
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setCompositionDataSource().');
886
1129
  }
887
- if (requestParameters['setDynamicContentRequest'] == null) {
888
- throw new runtime.RequiredError('setDynamicContentRequest', 'Required parameter "setDynamicContentRequest" was null or undefined when calling setDynamicContent().');
1130
+ if (requestParameters['setCompositionDataSourceRequest'] == null) {
1131
+ throw new runtime.RequiredError('setCompositionDataSourceRequest', 'Required parameter "setCompositionDataSourceRequest" was null or undefined when calling setCompositionDataSource().');
889
1132
  }
890
1133
  const queryParameters = {};
891
1134
  const headerParameters = {};
@@ -901,40 +1144,43 @@ class CompositionsApi extends runtime.BaseAPI {
901
1144
  }
902
1145
  }
903
1146
  const response = yield this.request({
904
- path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1147
+ path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
905
1148
  method: 'PUT',
906
1149
  headers: headerParameters,
907
1150
  query: queryParameters,
908
- body: (0, index_1.SetDynamicContentRequestToJSON)(requestParameters['setDynamicContentRequest']),
1151
+ body: (0, index_1.SetCompositionDataSourceRequestToJSON)(requestParameters['setCompositionDataSourceRequest']),
909
1152
  }, initOverrides);
910
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SetDynamicContent200ResponseFromJSON)(jsonValue));
1153
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CompositionDataSourceFromJSON)(jsonValue));
911
1154
  });
912
1155
  }
913
1156
  /**
914
- * Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
915
- * Set Dynamic Content
1157
+ * Stores an https URL the widget runtime may read on load and every `refresh_seconds`. The URL must name a public host (no loopback, link-local or metadata addresses). A composition has one binding: saving another replaces it. The answer is the binding as it was saved (`url`, `refreshSeconds`).
1158
+ * Bind a public JSON data source for embed refresh
916
1159
  */
917
- setDynamicContent(requestParameters, initOverrides) {
1160
+ setCompositionDataSource(requestParameters, initOverrides) {
918
1161
  return __awaiter(this, void 0, void 0, function* () {
919
- const response = yield this.setDynamicContentRaw(requestParameters, initOverrides);
1162
+ const response = yield this.setCompositionDataSourceRaw(requestParameters, initOverrides);
920
1163
  return yield response.value();
921
1164
  });
922
1165
  }
923
1166
  /**
924
- * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
925
- * Update Composition
1167
+ * Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
1168
+ * Set Dynamic Content
926
1169
  */
927
- updateCompositionRaw(requestParameters, initOverrides) {
1170
+ setDynamicContentRaw(requestParameters, initOverrides) {
928
1171
  return __awaiter(this, void 0, void 0, function* () {
929
1172
  if (requestParameters['id'] == null) {
930
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1173
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setDynamicContent().');
931
1174
  }
932
- if (requestParameters['updateComposition'] == null) {
933
- throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1175
+ if (requestParameters['setDynamicContentRequest'] == null) {
1176
+ throw new runtime.RequiredError('setDynamicContentRequest', 'Required parameter "setDynamicContentRequest" was null or undefined when calling setDynamicContent().');
934
1177
  }
935
1178
  const queryParameters = {};
936
1179
  const headerParameters = {};
937
1180
  headerParameters['Content-Type'] = 'application/json';
1181
+ if (requestParameters['ifMatch'] != null) {
1182
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1183
+ }
938
1184
  if (requestParameters['idempotencyKey'] != null) {
939
1185
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
940
1186
  }
@@ -946,22 +1192,22 @@ class CompositionsApi extends runtime.BaseAPI {
946
1192
  }
947
1193
  }
948
1194
  const response = yield this.request({
949
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1195
+ path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
950
1196
  method: 'PUT',
951
1197
  headers: headerParameters,
952
1198
  query: queryParameters,
953
- body: (0, index_1.UpdateCompositionToJSON)(requestParameters['updateComposition']),
1199
+ body: (0, index_1.SetDynamicContentRequestToJSON)(requestParameters['setDynamicContentRequest']),
954
1200
  }, initOverrides);
955
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateComposition201ResponseFromJSON)(jsonValue));
1201
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SetDynamicContent200ResponseFromJSON)(jsonValue));
956
1202
  });
957
1203
  }
958
1204
  /**
959
- * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
960
- * Update Composition
1205
+ * Updates the content of a composition dynamically with optional schema validation. An editor session (see `createManagedUserEditorSession`) can send only `content`, `validate` and `partial`, and only for a composition made for its managed user. A body that names `version`, `source` or any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
1206
+ * Set Dynamic Content
961
1207
  */
962
- updateComposition(requestParameters, initOverrides) {
1208
+ setDynamicContent(requestParameters, initOverrides) {
963
1209
  return __awaiter(this, void 0, void 0, function* () {
964
- const response = yield this.updateCompositionRaw(requestParameters, initOverrides);
1210
+ const response = yield this.setDynamicContentRaw(requestParameters, initOverrides);
965
1211
  return yield response.value();
966
1212
  });
967
1213
  }
@@ -1060,6 +1306,51 @@ class CompositionsApi extends runtime.BaseAPI {
1060
1306
  return yield response.value();
1061
1307
  });
1062
1308
  }
1309
+ /**
1310
+ * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
1311
+ * Update Composition
1312
+ */
1313
+ updateCompositionRaw(requestParameters, initOverrides) {
1314
+ return __awaiter(this, void 0, void 0, function* () {
1315
+ if (requestParameters['id'] == null) {
1316
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1317
+ }
1318
+ if (requestParameters['updateComposition'] == null) {
1319
+ throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1320
+ }
1321
+ const queryParameters = {};
1322
+ const headerParameters = {};
1323
+ headerParameters['Content-Type'] = 'application/json';
1324
+ if (requestParameters['idempotencyKey'] != null) {
1325
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1326
+ }
1327
+ if (this.configuration && this.configuration.accessToken) {
1328
+ const token = this.configuration.accessToken;
1329
+ const tokenString = yield token("apiKeyAuth", []);
1330
+ if (tokenString) {
1331
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1332
+ }
1333
+ }
1334
+ const response = yield this.request({
1335
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1336
+ method: 'PUT',
1337
+ headers: headerParameters,
1338
+ query: queryParameters,
1339
+ body: (0, index_1.UpdateCompositionToJSON)(requestParameters['updateComposition']),
1340
+ }, initOverrides);
1341
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateCompositionFromWidget201ResponseFromJSON)(jsonValue));
1342
+ });
1343
+ }
1344
+ /**
1345
+ * Updates a specific composition. The `Idempotency-Key` header is required (`400` without it). Send the same key when you retry. An editor session (see `createManagedUserEditorSession`) can send only `name`, `content`, `design` and `embedSettings`, and only for a composition made for its managed user. A body that names any other field is refused with `403` and `EDITOR_SESSION_FIELD_NOT_ALLOWED`.
1346
+ * Update Composition
1347
+ */
1348
+ updateComposition(requestParameters, initOverrides) {
1349
+ return __awaiter(this, void 0, void 0, function* () {
1350
+ const response = yield this.updateCompositionRaw(requestParameters, initOverrides);
1351
+ return yield response.value();
1352
+ });
1353
+ }
1063
1354
  /**
1064
1355
  * Validates content against the composition\'s widget schema without updating
1065
1356
  * Validate Content
@@ -1110,14 +1401,14 @@ exports.CompositionsApi = CompositionsApi;
1110
1401
  /**
1111
1402
  * @export
1112
1403
  */
1113
- exports.GetAllCompositionsWorkspaceEnum = {
1404
+ exports.GetAllCompositions0WorkspaceEnum = {
1114
1405
  True: 'true',
1115
1406
  False: 'false'
1116
1407
  };
1117
1408
  /**
1118
1409
  * @export
1119
1410
  */
1120
- exports.GetAllCompositionsStatusEnum = {
1411
+ exports.GetAllCompositions0StatusEnum = {
1121
1412
  Draft: 'draft',
1122
1413
  Published: 'published',
1123
1414
  Archived: 'archived'