@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
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { CheckCompositionAccess200ResponseFromJSON, CompositionFromJSON, CompositionEntriesDescriptionFromJSON, CompositionEntriesReadingFromJSON, CreateComposition201ResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAllCompositions200ResponseFromJSON, GetCompositionContentSchema200ResponseFromJSON, GetCompositionDesignSchema200ResponseFromJSON, GetCompositionEmbedSchema200ResponseFromJSON, GetCompositionPreview200ResponseFromJSON, GetCompositionVersions200ResponseFromJSON, GetCompositionsBatch200ResponseFromJSON, GetCompositionsBatchRequestToJSON, NewCompositionToJSON, SetDynamicContent200ResponseFromJSON, SetDynamicContentRequestToJSON, UpdateCompositionToJSON, UpdateCompositionStatusRequestToJSON, ValidateCompositionContent200ResponseFromJSON, } from '../models/index.js';
24
+ import { CheckCompositionAccess200ResponseFromJSON, CompositionFromJSON, CompositionDataSourceFromJSON, CompositionEntriesDescriptionFromJSON, CompositionEntriesReadingFromJSON, CreateCompositionContentItemRequestToJSON, CreateCompositionFromWidget201ResponseFromJSON, DeleteCompositionContentItem200ResponseFromJSON, DeleteCompositionDataSource200ResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAllCompositions200ResponseFromJSON, GetCompositionContentSchema200ResponseFromJSON, GetCompositionDesignSchema200ResponseFromJSON, GetCompositionEmbedSchema200ResponseFromJSON, GetCompositionPreview200ResponseFromJSON, GetCompositionVersions200ResponseFromJSON, GetCompositionsBatch200ResponseFromJSON, GetCompositionsBatchRequestToJSON, NewCompositionToJSON, SetCompositionDataSourceRequestToJSON, SetDynamicContent200ResponseFromJSON, SetDynamicContentRequestToJSON, UpdateCompositionToJSON, UpdateCompositionStatusRequestToJSON, ValidateCompositionContent200ResponseFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -64,17 +64,26 @@ export class CompositionsApi extends runtime.BaseAPI {
64
64
  });
65
65
  }
66
66
  /**
67
- * 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.
68
- * Create Composition
67
+ * 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.
68
+ * Add a content list item
69
69
  */
70
- createCompositionRaw(requestParameters, initOverrides) {
70
+ createCompositionContentItemRaw(requestParameters, initOverrides) {
71
71
  return __awaiter(this, void 0, void 0, function* () {
72
- if (requestParameters['newComposition'] == null) {
73
- throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
72
+ if (requestParameters['id'] == null) {
73
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling createCompositionContentItem().');
74
+ }
75
+ if (requestParameters['list'] == null) {
76
+ throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling createCompositionContentItem().');
77
+ }
78
+ if (requestParameters['createCompositionContentItemRequest'] == null) {
79
+ throw new runtime.RequiredError('createCompositionContentItemRequest', 'Required parameter "createCompositionContentItemRequest" was null or undefined when calling createCompositionContentItem().');
74
80
  }
75
81
  const queryParameters = {};
76
82
  const headerParameters = {};
77
83
  headerParameters['Content-Type'] = 'application/json';
84
+ if (requestParameters['ifMatch'] != null) {
85
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
86
+ }
78
87
  if (requestParameters['idempotencyKey'] != null) {
79
88
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
80
89
  }
@@ -86,23 +95,22 @@ export class CompositionsApi extends runtime.BaseAPI {
86
95
  }
87
96
  }
88
97
  const response = yield this.request({
89
- path: `/compositions`,
98
+ path: `/compositions/{id}/content/{list}/items`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"list"}}`, encodeURIComponent(String(requestParameters['list']))),
90
99
  method: 'POST',
91
100
  headers: headerParameters,
92
101
  query: queryParameters,
93
- body: NewCompositionToJSON(requestParameters['newComposition']),
102
+ body: CreateCompositionContentItemRequestToJSON(requestParameters['createCompositionContentItemRequest']),
94
103
  }, initOverrides);
95
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateComposition201ResponseFromJSON(jsonValue));
104
+ return new runtime.VoidApiResponse(response);
96
105
  });
97
106
  }
98
107
  /**
99
- * 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.
100
- * Create Composition
108
+ * 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.
109
+ * Add a content list item
101
110
  */
102
- createComposition(requestParameters, initOverrides) {
111
+ createCompositionContentItem(requestParameters, initOverrides) {
103
112
  return __awaiter(this, void 0, void 0, function* () {
104
- const response = yield this.createCompositionRaw(requestParameters, initOverrides);
105
- return yield response.value();
113
+ yield this.createCompositionContentItemRaw(requestParameters, initOverrides);
106
114
  });
107
115
  }
108
116
  /**
@@ -153,16 +161,69 @@ export class CompositionsApi extends runtime.BaseAPI {
153
161
  });
154
162
  }
155
163
  /**
156
- * Deletes a specific composition.
157
- * Delete Composition
164
+ * 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.
165
+ * Create Composition
158
166
  */
159
- deleteCompositionRaw(requestParameters, initOverrides) {
167
+ createCompositionRaw(requestParameters, initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ if (requestParameters['newComposition'] == null) {
170
+ throw new runtime.RequiredError('newComposition', 'Required parameter "newComposition" was null or undefined when calling createComposition().');
171
+ }
172
+ const queryParameters = {};
173
+ const headerParameters = {};
174
+ headerParameters['Content-Type'] = 'application/json';
175
+ if (requestParameters['idempotencyKey'] != null) {
176
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
177
+ }
178
+ if (this.configuration && this.configuration.accessToken) {
179
+ const token = this.configuration.accessToken;
180
+ const tokenString = yield token("apiKeyAuth", []);
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
183
+ }
184
+ }
185
+ const response = yield this.request({
186
+ path: `/compositions`,
187
+ method: 'POST',
188
+ headers: headerParameters,
189
+ query: queryParameters,
190
+ body: NewCompositionToJSON(requestParameters['newComposition']),
191
+ }, initOverrides);
192
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
193
+ });
194
+ }
195
+ /**
196
+ * 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.
197
+ * Create Composition
198
+ */
199
+ createComposition(requestParameters, initOverrides) {
200
+ return __awaiter(this, void 0, void 0, function* () {
201
+ const response = yield this.createCompositionRaw(requestParameters, initOverrides);
202
+ return yield response.value();
203
+ });
204
+ }
205
+ /**
206
+ * Delete a content list item
207
+ */
208
+ deleteCompositionContentItemRaw(requestParameters, initOverrides) {
160
209
  return __awaiter(this, void 0, void 0, function* () {
161
210
  if (requestParameters['id'] == null) {
162
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
211
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionContentItem().');
212
+ }
213
+ if (requestParameters['list'] == null) {
214
+ throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling deleteCompositionContentItem().');
215
+ }
216
+ if (requestParameters['itemId'] == null) {
217
+ throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling deleteCompositionContentItem().');
163
218
  }
164
219
  const queryParameters = {};
165
220
  const headerParameters = {};
221
+ if (requestParameters['ifMatch'] != null) {
222
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
223
+ }
224
+ if (requestParameters['idempotencyKey'] != null) {
225
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
226
+ }
166
227
  if (this.configuration && this.configuration.accessToken) {
167
228
  const token = this.configuration.accessToken;
168
229
  const tokenString = yield token("apiKeyAuth", []);
@@ -171,21 +232,61 @@ export class CompositionsApi extends runtime.BaseAPI {
171
232
  }
172
233
  }
173
234
  const response = yield this.request({
174
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
235
+ 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']))),
175
236
  method: 'DELETE',
176
237
  headers: headerParameters,
177
238
  query: queryParameters,
178
239
  }, initOverrides);
179
- return new runtime.VoidApiResponse(response);
240
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeleteCompositionContentItem200ResponseFromJSON(jsonValue));
180
241
  });
181
242
  }
182
243
  /**
183
- * Deletes a specific composition.
184
- * Delete Composition
244
+ * Delete a content list item
185
245
  */
186
- deleteComposition(requestParameters, initOverrides) {
246
+ deleteCompositionContentItem(requestParameters, initOverrides) {
187
247
  return __awaiter(this, void 0, void 0, function* () {
188
- yield this.deleteCompositionRaw(requestParameters, initOverrides);
248
+ const response = yield this.deleteCompositionContentItemRaw(requestParameters, initOverrides);
249
+ return yield response.value();
250
+ });
251
+ }
252
+ /**
253
+ * 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.
254
+ * Remove the composition data source binding
255
+ */
256
+ deleteCompositionDataSourceRaw(requestParameters, initOverrides) {
257
+ return __awaiter(this, void 0, void 0, function* () {
258
+ if (requestParameters['id'] == null) {
259
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteCompositionDataSource().');
260
+ }
261
+ const queryParameters = {};
262
+ const headerParameters = {};
263
+ if (requestParameters['idempotencyKey'] != null) {
264
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
265
+ }
266
+ if (this.configuration && this.configuration.accessToken) {
267
+ const token = this.configuration.accessToken;
268
+ const tokenString = yield token("apiKeyAuth", []);
269
+ if (tokenString) {
270
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
271
+ }
272
+ }
273
+ const response = yield this.request({
274
+ path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
275
+ method: 'DELETE',
276
+ headers: headerParameters,
277
+ query: queryParameters,
278
+ }, initOverrides);
279
+ return new runtime.JSONApiResponse(response, (jsonValue) => DeleteCompositionDataSource200ResponseFromJSON(jsonValue));
280
+ });
281
+ }
282
+ /**
283
+ * 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.
284
+ * Remove the composition data source binding
285
+ */
286
+ deleteCompositionDataSource(requestParameters, initOverrides) {
287
+ return __awaiter(this, void 0, void 0, function* () {
288
+ const response = yield this.deleteCompositionDataSourceRaw(requestParameters, initOverrides);
289
+ return yield response.value();
189
290
  });
190
291
  }
191
292
  /**
@@ -230,6 +331,42 @@ export class CompositionsApi extends runtime.BaseAPI {
230
331
  yield this.deleteCompositionDatabaseRecordRaw(requestParameters, initOverrides);
231
332
  });
232
333
  }
334
+ /**
335
+ * Deletes a specific composition.
336
+ * Delete Composition
337
+ */
338
+ deleteCompositionRaw(requestParameters, initOverrides) {
339
+ return __awaiter(this, void 0, void 0, function* () {
340
+ if (requestParameters['id'] == null) {
341
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling deleteComposition().');
342
+ }
343
+ const queryParameters = {};
344
+ const headerParameters = {};
345
+ if (this.configuration && this.configuration.accessToken) {
346
+ const token = this.configuration.accessToken;
347
+ const tokenString = yield token("apiKeyAuth", []);
348
+ if (tokenString) {
349
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
350
+ }
351
+ }
352
+ const response = yield this.request({
353
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
354
+ method: 'DELETE',
355
+ headers: headerParameters,
356
+ query: queryParameters,
357
+ }, initOverrides);
358
+ return new runtime.VoidApiResponse(response);
359
+ });
360
+ }
361
+ /**
362
+ * Deletes a specific composition.
363
+ * Delete Composition
364
+ */
365
+ deleteComposition(requestParameters, initOverrides) {
366
+ return __awaiter(this, void 0, void 0, function* () {
367
+ yield this.deleteCompositionRaw(requestParameters, initOverrides);
368
+ });
369
+ }
233
370
  /**
234
371
  * 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.
235
372
  * Describe What a Composition Keeps
@@ -374,7 +511,7 @@ export class CompositionsApi extends runtime.BaseAPI {
374
511
  });
375
512
  }
376
513
  /**
377
- * Retrieves a specific composition by its ID.
514
+ * 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.
378
515
  * Get Composition
379
516
  */
380
517
  getCompositionByIdRaw(requestParameters, initOverrides) {
@@ -397,11 +534,11 @@ export class CompositionsApi extends runtime.BaseAPI {
397
534
  headers: headerParameters,
398
535
  query: queryParameters,
399
536
  }, initOverrides);
400
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateComposition201ResponseFromJSON(jsonValue));
537
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
401
538
  });
402
539
  }
403
540
  /**
404
- * Retrieves a specific composition by its ID.
541
+ * 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.
405
542
  * Get Composition
406
543
  */
407
544
  getCompositionById(requestParameters, initOverrides) {
@@ -410,6 +547,43 @@ export class CompositionsApi extends runtime.BaseAPI {
410
547
  return yield response.value();
411
548
  });
412
549
  }
550
+ /**
551
+ * Retrieves the content schema for a composition based on its widget type
552
+ * Get Content Schema
553
+ */
554
+ getCompositionContentSchemaRaw(requestParameters, initOverrides) {
555
+ return __awaiter(this, void 0, void 0, function* () {
556
+ if (requestParameters['id'] == null) {
557
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
558
+ }
559
+ const queryParameters = {};
560
+ const headerParameters = {};
561
+ if (this.configuration && this.configuration.accessToken) {
562
+ const token = this.configuration.accessToken;
563
+ const tokenString = yield token("apiKeyAuth", []);
564
+ if (tokenString) {
565
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
566
+ }
567
+ }
568
+ const response = yield this.request({
569
+ path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
570
+ method: 'GET',
571
+ headers: headerParameters,
572
+ query: queryParameters,
573
+ }, initOverrides);
574
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentSchema200ResponseFromJSON(jsonValue));
575
+ });
576
+ }
577
+ /**
578
+ * Retrieves the content schema for a composition based on its widget type
579
+ * Get Content Schema
580
+ */
581
+ getCompositionContentSchema(requestParameters, initOverrides) {
582
+ return __awaiter(this, void 0, void 0, function* () {
583
+ const response = yield this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
584
+ return yield response.value();
585
+ });
586
+ }
413
587
  /**
414
588
  * Retrieves the current content of a composition
415
589
  * Get Current Content
@@ -448,13 +622,13 @@ export class CompositionsApi extends runtime.BaseAPI {
448
622
  });
449
623
  }
450
624
  /**
451
- * Retrieves the content schema for a composition based on its widget type
452
- * Get Content Schema
625
+ * 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).
626
+ * Read the composition data source binding
453
627
  */
454
- getCompositionContentSchemaRaw(requestParameters, initOverrides) {
628
+ getCompositionDataSourceRaw(requestParameters, initOverrides) {
455
629
  return __awaiter(this, void 0, void 0, function* () {
456
630
  if (requestParameters['id'] == null) {
457
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionContentSchema().');
631
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDataSource().');
458
632
  }
459
633
  const queryParameters = {};
460
634
  const headerParameters = {};
@@ -466,21 +640,21 @@ export class CompositionsApi extends runtime.BaseAPI {
466
640
  }
467
641
  }
468
642
  const response = yield this.request({
469
- path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
643
+ path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
470
644
  method: 'GET',
471
645
  headers: headerParameters,
472
646
  query: queryParameters,
473
647
  }, initOverrides);
474
- return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionContentSchema200ResponseFromJSON(jsonValue));
648
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionDataSourceFromJSON(jsonValue));
475
649
  });
476
650
  }
477
651
  /**
478
- * Retrieves the content schema for a composition based on its widget type
479
- * Get Content Schema
652
+ * 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).
653
+ * Read the composition data source binding
480
654
  */
481
- getCompositionContentSchema(requestParameters, initOverrides) {
655
+ getCompositionDataSource(requestParameters, initOverrides) {
482
656
  return __awaiter(this, void 0, void 0, function* () {
483
- const response = yield this.getCompositionContentSchemaRaw(requestParameters, initOverrides);
657
+ const response = yield this.getCompositionDataSourceRaw(requestParameters, initOverrides);
484
658
  return yield response.value();
485
659
  });
486
660
  }
@@ -566,13 +740,13 @@ export class CompositionsApi extends runtime.BaseAPI {
566
740
  });
567
741
  }
568
742
  /**
569
- * Retrieves only the design field from a composition.
570
- * Get Composition Design
743
+ * Retrieves the design schema for a composition based on its widget type
744
+ * Get Design Schema
571
745
  */
572
- getCompositionDesignRaw(requestParameters, initOverrides) {
746
+ getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
573
747
  return __awaiter(this, void 0, void 0, function* () {
574
748
  if (requestParameters['id'] == null) {
575
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
749
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
576
750
  }
577
751
  const queryParameters = {};
578
752
  const headerParameters = {};
@@ -584,32 +758,32 @@ export class CompositionsApi extends runtime.BaseAPI {
584
758
  }
585
759
  }
586
760
  const response = yield this.request({
587
- path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
761
+ path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
588
762
  method: 'GET',
589
763
  headers: headerParameters,
590
764
  query: queryParameters,
591
765
  }, initOverrides);
592
- return new runtime.JSONApiResponse(response);
766
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignSchema200ResponseFromJSON(jsonValue));
593
767
  });
594
768
  }
595
769
  /**
596
- * Retrieves only the design field from a composition.
597
- * Get Composition Design
770
+ * Retrieves the design schema for a composition based on its widget type
771
+ * Get Design Schema
598
772
  */
599
- getCompositionDesign(requestParameters, initOverrides) {
773
+ getCompositionDesignSchema(requestParameters, initOverrides) {
600
774
  return __awaiter(this, void 0, void 0, function* () {
601
- const response = yield this.getCompositionDesignRaw(requestParameters, initOverrides);
775
+ const response = yield this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
602
776
  return yield response.value();
603
777
  });
604
778
  }
605
779
  /**
606
- * Retrieves the design schema for a composition based on its widget type
607
- * Get Design Schema
780
+ * Retrieves only the design field from a composition.
781
+ * Get Composition Design
608
782
  */
609
- getCompositionDesignSchemaRaw(requestParameters, initOverrides) {
783
+ getCompositionDesignRaw(requestParameters, initOverrides) {
610
784
  return __awaiter(this, void 0, void 0, function* () {
611
785
  if (requestParameters['id'] == null) {
612
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesignSchema().');
786
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getCompositionDesign().');
613
787
  }
614
788
  const queryParameters = {};
615
789
  const headerParameters = {};
@@ -621,21 +795,21 @@ export class CompositionsApi extends runtime.BaseAPI {
621
795
  }
622
796
  }
623
797
  const response = yield this.request({
624
- path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
798
+ path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
625
799
  method: 'GET',
626
800
  headers: headerParameters,
627
801
  query: queryParameters,
628
802
  }, initOverrides);
629
- return new runtime.JSONApiResponse(response, (jsonValue) => GetCompositionDesignSchema200ResponseFromJSON(jsonValue));
803
+ return new runtime.JSONApiResponse(response);
630
804
  });
631
805
  }
632
806
  /**
633
- * Retrieves the design schema for a composition based on its widget type
634
- * Get Design Schema
807
+ * Retrieves only the design field from a composition.
808
+ * Get Composition Design
635
809
  */
636
- getCompositionDesignSchema(requestParameters, initOverrides) {
810
+ getCompositionDesign(requestParameters, initOverrides) {
637
811
  return __awaiter(this, void 0, void 0, function* () {
638
- const response = yield this.getCompositionDesignSchemaRaw(requestParameters, initOverrides);
812
+ const response = yield this.getCompositionDesignRaw(requestParameters, initOverrides);
639
813
  return yield response.value();
640
814
  });
641
815
  }
@@ -827,7 +1001,58 @@ export class CompositionsApi extends runtime.BaseAPI {
827
1001
  });
828
1002
  }
829
1003
  /**
830
- * 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.
1004
+ * Update a content list item
1005
+ */
1006
+ patchCompositionContentItemRaw(requestParameters, initOverrides) {
1007
+ return __awaiter(this, void 0, void 0, function* () {
1008
+ if (requestParameters['id'] == null) {
1009
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling patchCompositionContentItem().');
1010
+ }
1011
+ if (requestParameters['list'] == null) {
1012
+ throw new runtime.RequiredError('list', 'Required parameter "list" was null or undefined when calling patchCompositionContentItem().');
1013
+ }
1014
+ if (requestParameters['itemId'] == null) {
1015
+ throw new runtime.RequiredError('itemId', 'Required parameter "itemId" was null or undefined when calling patchCompositionContentItem().');
1016
+ }
1017
+ if (requestParameters['requestBody'] == null) {
1018
+ throw new runtime.RequiredError('requestBody', 'Required parameter "requestBody" was null or undefined when calling patchCompositionContentItem().');
1019
+ }
1020
+ const queryParameters = {};
1021
+ const headerParameters = {};
1022
+ headerParameters['Content-Type'] = 'application/json';
1023
+ if (requestParameters['ifMatch'] != null) {
1024
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1025
+ }
1026
+ if (requestParameters['idempotencyKey'] != null) {
1027
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1028
+ }
1029
+ if (this.configuration && this.configuration.accessToken) {
1030
+ const token = this.configuration.accessToken;
1031
+ const tokenString = yield token("apiKeyAuth", []);
1032
+ if (tokenString) {
1033
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1034
+ }
1035
+ }
1036
+ const response = yield this.request({
1037
+ 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']))),
1038
+ method: 'PATCH',
1039
+ headers: headerParameters,
1040
+ query: queryParameters,
1041
+ body: requestParameters['requestBody'],
1042
+ }, initOverrides);
1043
+ return new runtime.VoidApiResponse(response);
1044
+ });
1045
+ }
1046
+ /**
1047
+ * Update a content list item
1048
+ */
1049
+ patchCompositionContentItem(requestParameters, initOverrides) {
1050
+ return __awaiter(this, void 0, void 0, function* () {
1051
+ yield this.patchCompositionContentItemRaw(requestParameters, initOverrides);
1052
+ });
1053
+ }
1054
+ /**
1055
+ * 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.
831
1056
  * Read the Entries of a Composition\'s Table
832
1057
  */
833
1058
  readCompositionEntriesRaw(requestParameters, initOverrides) {
@@ -845,6 +1070,24 @@ export class CompositionsApi extends runtime.BaseAPI {
845
1070
  if (requestParameters['rows'] != null) {
846
1071
  queryParameters['rows'] = requestParameters['rows'];
847
1072
  }
1073
+ if (requestParameters['aggregate'] != null) {
1074
+ queryParameters['aggregate'] = requestParameters['aggregate'];
1075
+ }
1076
+ if (requestParameters['column'] != null) {
1077
+ queryParameters['column'] = requestParameters['column'];
1078
+ }
1079
+ if (requestParameters['since'] != null) {
1080
+ queryParameters['since'] = requestParameters['since'].toISOString();
1081
+ }
1082
+ if (requestParameters['until'] != null) {
1083
+ queryParameters['until'] = requestParameters['until'].toISOString();
1084
+ }
1085
+ if (requestParameters['context'] != null) {
1086
+ queryParameters['context'] = requestParameters['context'];
1087
+ }
1088
+ if (requestParameters['filter'] != null) {
1089
+ queryParameters['filter'] = requestParameters['filter'];
1090
+ }
848
1091
  const headerParameters = {};
849
1092
  if (this.configuration && this.configuration.accessToken) {
850
1093
  const token = this.configuration.accessToken;
@@ -863,7 +1106,7 @@ export class CompositionsApi extends runtime.BaseAPI {
863
1106
  });
864
1107
  }
865
1108
  /**
866
- * 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.
1109
+ * 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.
867
1110
  * Read the Entries of a Composition\'s Table
868
1111
  */
869
1112
  readCompositionEntries(requestParameters, initOverrides) {
@@ -873,16 +1116,16 @@ export class CompositionsApi extends runtime.BaseAPI {
873
1116
  });
874
1117
  }
875
1118
  /**
876
- * 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`.
877
- * Set Dynamic Content
1119
+ * 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`).
1120
+ * Bind a public JSON data source for embed refresh
878
1121
  */
879
- setDynamicContentRaw(requestParameters, initOverrides) {
1122
+ setCompositionDataSourceRaw(requestParameters, initOverrides) {
880
1123
  return __awaiter(this, void 0, void 0, function* () {
881
1124
  if (requestParameters['id'] == null) {
882
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setDynamicContent().');
1125
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setCompositionDataSource().');
883
1126
  }
884
- if (requestParameters['setDynamicContentRequest'] == null) {
885
- throw new runtime.RequiredError('setDynamicContentRequest', 'Required parameter "setDynamicContentRequest" was null or undefined when calling setDynamicContent().');
1127
+ if (requestParameters['setCompositionDataSourceRequest'] == null) {
1128
+ throw new runtime.RequiredError('setCompositionDataSourceRequest', 'Required parameter "setCompositionDataSourceRequest" was null or undefined when calling setCompositionDataSource().');
886
1129
  }
887
1130
  const queryParameters = {};
888
1131
  const headerParameters = {};
@@ -898,40 +1141,43 @@ export class CompositionsApi extends runtime.BaseAPI {
898
1141
  }
899
1142
  }
900
1143
  const response = yield this.request({
901
- path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1144
+ path: `/compositions/{id}/data-source`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
902
1145
  method: 'PUT',
903
1146
  headers: headerParameters,
904
1147
  query: queryParameters,
905
- body: SetDynamicContentRequestToJSON(requestParameters['setDynamicContentRequest']),
1148
+ body: SetCompositionDataSourceRequestToJSON(requestParameters['setCompositionDataSourceRequest']),
906
1149
  }, initOverrides);
907
- return new runtime.JSONApiResponse(response, (jsonValue) => SetDynamicContent200ResponseFromJSON(jsonValue));
1150
+ return new runtime.JSONApiResponse(response, (jsonValue) => CompositionDataSourceFromJSON(jsonValue));
908
1151
  });
909
1152
  }
910
1153
  /**
911
- * 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`.
912
- * Set Dynamic Content
1154
+ * 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`).
1155
+ * Bind a public JSON data source for embed refresh
913
1156
  */
914
- setDynamicContent(requestParameters, initOverrides) {
1157
+ setCompositionDataSource(requestParameters, initOverrides) {
915
1158
  return __awaiter(this, void 0, void 0, function* () {
916
- const response = yield this.setDynamicContentRaw(requestParameters, initOverrides);
1159
+ const response = yield this.setCompositionDataSourceRaw(requestParameters, initOverrides);
917
1160
  return yield response.value();
918
1161
  });
919
1162
  }
920
1163
  /**
921
- * 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`.
922
- * Update Composition
1164
+ * 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`.
1165
+ * Set Dynamic Content
923
1166
  */
924
- updateCompositionRaw(requestParameters, initOverrides) {
1167
+ setDynamicContentRaw(requestParameters, initOverrides) {
925
1168
  return __awaiter(this, void 0, void 0, function* () {
926
1169
  if (requestParameters['id'] == null) {
927
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1170
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling setDynamicContent().');
928
1171
  }
929
- if (requestParameters['updateComposition'] == null) {
930
- throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1172
+ if (requestParameters['setDynamicContentRequest'] == null) {
1173
+ throw new runtime.RequiredError('setDynamicContentRequest', 'Required parameter "setDynamicContentRequest" was null or undefined when calling setDynamicContent().');
931
1174
  }
932
1175
  const queryParameters = {};
933
1176
  const headerParameters = {};
934
1177
  headerParameters['Content-Type'] = 'application/json';
1178
+ if (requestParameters['ifMatch'] != null) {
1179
+ headerParameters['If-Match'] = String(requestParameters['ifMatch']);
1180
+ }
935
1181
  if (requestParameters['idempotencyKey'] != null) {
936
1182
  headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
937
1183
  }
@@ -943,22 +1189,22 @@ export class CompositionsApi extends runtime.BaseAPI {
943
1189
  }
944
1190
  }
945
1191
  const response = yield this.request({
946
- path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1192
+ path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
947
1193
  method: 'PUT',
948
1194
  headers: headerParameters,
949
1195
  query: queryParameters,
950
- body: UpdateCompositionToJSON(requestParameters['updateComposition']),
1196
+ body: SetDynamicContentRequestToJSON(requestParameters['setDynamicContentRequest']),
951
1197
  }, initOverrides);
952
- return new runtime.JSONApiResponse(response, (jsonValue) => CreateComposition201ResponseFromJSON(jsonValue));
1198
+ return new runtime.JSONApiResponse(response, (jsonValue) => SetDynamicContent200ResponseFromJSON(jsonValue));
953
1199
  });
954
1200
  }
955
1201
  /**
956
- * 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`.
957
- * Update Composition
1202
+ * 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`.
1203
+ * Set Dynamic Content
958
1204
  */
959
- updateComposition(requestParameters, initOverrides) {
1205
+ setDynamicContent(requestParameters, initOverrides) {
960
1206
  return __awaiter(this, void 0, void 0, function* () {
961
- const response = yield this.updateCompositionRaw(requestParameters, initOverrides);
1207
+ const response = yield this.setDynamicContentRaw(requestParameters, initOverrides);
962
1208
  return yield response.value();
963
1209
  });
964
1210
  }
@@ -1057,6 +1303,51 @@ export class CompositionsApi extends runtime.BaseAPI {
1057
1303
  return yield response.value();
1058
1304
  });
1059
1305
  }
1306
+ /**
1307
+ * 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`.
1308
+ * Update Composition
1309
+ */
1310
+ updateCompositionRaw(requestParameters, initOverrides) {
1311
+ return __awaiter(this, void 0, void 0, function* () {
1312
+ if (requestParameters['id'] == null) {
1313
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
1314
+ }
1315
+ if (requestParameters['updateComposition'] == null) {
1316
+ throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
1317
+ }
1318
+ const queryParameters = {};
1319
+ const headerParameters = {};
1320
+ headerParameters['Content-Type'] = 'application/json';
1321
+ if (requestParameters['idempotencyKey'] != null) {
1322
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
1323
+ }
1324
+ if (this.configuration && this.configuration.accessToken) {
1325
+ const token = this.configuration.accessToken;
1326
+ const tokenString = yield token("apiKeyAuth", []);
1327
+ if (tokenString) {
1328
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1329
+ }
1330
+ }
1331
+ const response = yield this.request({
1332
+ path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
1333
+ method: 'PUT',
1334
+ headers: headerParameters,
1335
+ query: queryParameters,
1336
+ body: UpdateCompositionToJSON(requestParameters['updateComposition']),
1337
+ }, initOverrides);
1338
+ return new runtime.JSONApiResponse(response, (jsonValue) => CreateCompositionFromWidget201ResponseFromJSON(jsonValue));
1339
+ });
1340
+ }
1341
+ /**
1342
+ * 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`.
1343
+ * Update Composition
1344
+ */
1345
+ updateComposition(requestParameters, initOverrides) {
1346
+ return __awaiter(this, void 0, void 0, function* () {
1347
+ const response = yield this.updateCompositionRaw(requestParameters, initOverrides);
1348
+ return yield response.value();
1349
+ });
1350
+ }
1060
1351
  /**
1061
1352
  * Validates content against the composition\'s widget schema without updating
1062
1353
  * Validate Content
@@ -1106,14 +1397,14 @@ export class CompositionsApi extends runtime.BaseAPI {
1106
1397
  /**
1107
1398
  * @export
1108
1399
  */
1109
- export const GetAllCompositionsWorkspaceEnum = {
1400
+ export const GetAllCompositions0WorkspaceEnum = {
1110
1401
  True: 'true',
1111
1402
  False: 'false'
1112
1403
  };
1113
1404
  /**
1114
1405
  * @export
1115
1406
  */
1116
- export const GetAllCompositionsStatusEnum = {
1407
+ export const GetAllCompositions0StatusEnum = {
1117
1408
  Draft: 'draft',
1118
1409
  Published: 'published',
1119
1410
  Archived: 'archived'