@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
@@ -10,19 +10,22 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Upload, UploadLimits, UploadsGet200Response } from '../models/index';
14
- export interface UploadsGetRequest {
13
+ import type { Upload, UploadLimits, UploadsGet200Response, UploadsIdDelete200Response } from '../models/index';
14
+ export interface UploadsGet0Request {
15
15
  limit?: number;
16
16
  managedUserId?: string;
17
17
  managedUserExternalId?: string;
18
18
  }
19
- export interface UploadsIdGetRequest {
19
+ export interface UploadsIdDelete0Request {
20
20
  id: string;
21
21
  }
22
- export interface UploadsPostRequest {
22
+ export interface UploadsIdGet0Request {
23
+ id: string;
24
+ }
25
+ export interface UploadsPost0Request {
23
26
  file: Blob;
24
- contextType?: UploadsPostContextTypeEnum;
25
- source?: UploadsPostSourceEnum;
27
+ contextType?: UploadsPost0ContextTypeEnum;
28
+ source?: UploadsPost0SourceEnum;
26
29
  managedUserId?: string;
27
30
  managedUserExternalId?: string;
28
31
  }
@@ -37,22 +40,32 @@ export declare class UploadsApi extends runtime.BaseAPI {
37
40
  * The files the account has uploaded, newest first. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managed_user_id` or `managed_user_external_id`.
38
41
  * List the account\'s uploads
39
42
  */
40
- uploadsGetRaw(requestParameters: UploadsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadsGet200Response>>;
43
+ uploadsGetRaw(requestParameters: UploadsGet0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadsGet200Response>>;
41
44
  /**
42
45
  * The files the account has uploaded, newest first. Deleted files are not listed. Returns at most `limit` files and has no further pages: a client that needs more narrows the list instead, for example to one managed user\'s files with `managed_user_id` or `managed_user_external_id`.
43
46
  * List the account\'s uploads
44
47
  */
45
- uploadsGet(requestParameters?: UploadsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadsGet200Response>;
48
+ uploadsGet(requestParameters?: UploadsGet0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadsGet200Response>;
49
+ /**
50
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
51
+ * Delete an upload
52
+ */
53
+ uploadsIdDeleteRaw(requestParameters: UploadsIdDelete0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadsIdDelete200Response>>;
54
+ /**
55
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
56
+ * Delete an upload
57
+ */
58
+ uploadsIdDelete(requestParameters: UploadsIdDelete0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadsIdDelete200Response>;
46
59
  /**
47
60
  * The details of one of the account\'s uploads. An upload that belongs to another account is not found.
48
61
  * Get an upload by id
49
62
  */
50
- uploadsIdGetRaw(requestParameters: UploadsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Upload>>;
63
+ uploadsIdGetRaw(requestParameters: UploadsIdGet0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Upload>>;
51
64
  /**
52
65
  * The details of one of the account\'s uploads. An upload that belongs to another account is not found.
53
66
  * Get an upload by id
54
67
  */
55
- uploadsIdGet(requestParameters: UploadsIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Upload>;
68
+ uploadsIdGet(requestParameters: UploadsIdGet0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Upload>;
56
69
  /**
57
70
  * The size limit and the accepted file types of the upload endpoints. Read them from here rather than hard-coding thresholds: they are configuration and can change. The limits are the same for every account, whatever its plan: `multipart_max_bytes` for a file sent in one request (10 MB) and `tus_max_bytes` for a resumable upload (250 MB).
58
71
  * Upload size limits and accepted file types
@@ -67,12 +80,12 @@ export declare class UploadsApi extends runtime.BaseAPI {
67
80
  * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the account\'s storage allowance, and a full allowance is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. To upload the file for one of your managed users, send `managed_user_id` (Widgetic\'s id for the user) or `managed_user_external_id` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `context_type`, `source`, `widget_id` and `conversation_id` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional. A partner\'s own uploads (with its API key) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
68
81
  * Upload a file
69
82
  */
70
- uploadsPostRaw(requestParameters: UploadsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Upload>>;
83
+ uploadsPostRaw(requestParameters: UploadsPost0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Upload>>;
71
84
  /**
72
85
  * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the account\'s storage allowance, and a full allowance is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. To upload the file for one of your managed users, send `managed_user_id` (Widgetic\'s id for the user) or `managed_user_external_id` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `context_type`, `source`, `widget_id` and `conversation_id` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional. A partner\'s own uploads (with its API key) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
73
86
  * Upload a file
74
87
  */
75
- uploadsPost(requestParameters: UploadsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Upload>;
88
+ uploadsPost(requestParameters: UploadsPost0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Upload>;
76
89
  /**
77
90
  * Resumable uploads carry a file of up to 250 MB (the limit `tus_max_bytes` of `uploadsLimitsGet`, the same for every account) in pieces that can be resumed after a dropped connection, or after the server was restarted: the pieces wait in shared storage, not on one server. They follow the [tus protocol](https://tus.io): `POST /uploads/tus` declares the file (`Upload-Length` and the `Upload-Metadata` keys `filename`, `filetype` and, optionally, `context_type`, `source`, `widget_id`, `conversation_id` and, to file the upload under one of a partner\'s managed users, `managed_user_id` or `managed_user_external_id`), `PATCH` sends the bytes, `HEAD` says how far a client got. They need a signed-in session; an API key uses `uploadsPost`. A partner files an upload under one of its managed users with `managed_user_id` (Widgetic\'s id) or `managed_user_external_id` (the partner\'s own id for the user), never both: the same two fields, with the same spelling, as the form fields of `uploadsPost`. The managed user is looked up among the signed-in account\'s own when the upload is declared, so a wrong one is refused before any byte is sent (the declaring `POST /uploads/tus` answers 400, 404 or 409 with a line of text), and is looked up again here, when the file is stored. The stored file then carries the managed user (`managedUserId`), is found by the `managedUserId` filter of `uploadsGet`, and is counted for that user by `getPartnerStorageUsage`. Without either key the file is the account\'s own. This call stores the finished file: it counts against the account\'s storage allowance only now, not while the file is on its way, so an upload that is abandoned costs nothing. It is safe to call again after a lost answer: the file that was stored is returned, not stored twice. A file that could not be stored (storage down, allowance full) stays available for a day from when the upload began, so the call can be repeated without sending the file again. An unfinished upload is deleted after that day, and an account can hold only a few at once. A partner account that is paused or not yet activated cannot start a resumable upload (the declaring `POST /uploads/tus` answers 403) and cannot complete one (`PARTNER_SUSPENDED`, `PARTNER_INACTIVE`).
78
91
  * Finish a resumable upload — store the file and return it
@@ -87,20 +100,20 @@ export declare class UploadsApi extends runtime.BaseAPI {
87
100
  /**
88
101
  * @export
89
102
  */
90
- export declare const UploadsPostContextTypeEnum: {
103
+ export declare const UploadsPost0ContextTypeEnum: {
91
104
  readonly WidgetCodegen: "widget-codegen";
92
105
  readonly BrowserIc: "browser-ic";
93
106
  readonly ContentProperty: "content-property";
94
107
  };
95
- export type UploadsPostContextTypeEnum = typeof UploadsPostContextTypeEnum[keyof typeof UploadsPostContextTypeEnum];
108
+ export type UploadsPost0ContextTypeEnum = typeof UploadsPost0ContextTypeEnum[keyof typeof UploadsPost0ContextTypeEnum];
96
109
  /**
97
110
  * @export
98
111
  */
99
- export declare const UploadsPostSourceEnum: {
112
+ export declare const UploadsPost0SourceEnum: {
100
113
  readonly ChatUpload: "chat-upload";
101
114
  readonly ChatScreenshot: "chat-screenshot";
102
115
  readonly BrowserIcScreenshot: "browser-ic-screenshot";
103
116
  readonly PreviewScreenshot: "preview-screenshot";
104
117
  readonly FileBrowserUpload: "file-browser-upload";
105
118
  };
106
- export type UploadsPostSourceEnum = typeof UploadsPostSourceEnum[keyof typeof UploadsPostSourceEnum];
119
+ export type UploadsPost0SourceEnum = typeof UploadsPost0SourceEnum[keyof typeof UploadsPost0SourceEnum];
@@ -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.UploadsPostSourceEnum = exports.UploadsPostContextTypeEnum = exports.UploadsApi = void 0;
25
+ exports.UploadsPost0SourceEnum = exports.UploadsPost0ContextTypeEnum = exports.UploadsApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
@@ -72,6 +72,43 @@ class UploadsApi extends runtime.BaseAPI {
72
72
  return yield response.value();
73
73
  });
74
74
  }
75
+ /**
76
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
77
+ * Delete an upload
78
+ */
79
+ uploadsIdDeleteRaw(requestParameters, initOverrides) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ if (requestParameters['id'] == null) {
82
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadsIdDelete().');
83
+ }
84
+ const queryParameters = {};
85
+ const headerParameters = {};
86
+ if (this.configuration && this.configuration.accessToken) {
87
+ const token = this.configuration.accessToken;
88
+ const tokenString = yield token("apiKeyAuth", []);
89
+ if (tokenString) {
90
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
91
+ }
92
+ }
93
+ const response = yield this.request({
94
+ path: `/uploads/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
95
+ method: 'DELETE',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ }, initOverrides);
99
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UploadsIdDelete200ResponseFromJSON)(jsonValue));
100
+ });
101
+ }
102
+ /**
103
+ * Removes the stored file and the upload row. A file in Widgetic\'s own storage gives back the space it took from your storage allowance; a file in your own bucket is removed from your bucket. Deleting an upload that is already gone succeeds the same way as the first delete. An upload that belongs to another account is not found. If the storage cannot be reached the call fails and nothing is marked deleted, so it can be repeated.
104
+ * Delete an upload
105
+ */
106
+ uploadsIdDelete(requestParameters, initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const response = yield this.uploadsIdDeleteRaw(requestParameters, initOverrides);
109
+ return yield response.value();
110
+ });
111
+ }
75
112
  /**
76
113
  * The details of one of the account\'s uploads. An upload that belongs to another account is not found.
77
114
  * Get an upload by id
@@ -246,7 +283,7 @@ exports.UploadsApi = UploadsApi;
246
283
  /**
247
284
  * @export
248
285
  */
249
- exports.UploadsPostContextTypeEnum = {
286
+ exports.UploadsPost0ContextTypeEnum = {
250
287
  WidgetCodegen: 'widget-codegen',
251
288
  BrowserIc: 'browser-ic',
252
289
  ContentProperty: 'content-property'
@@ -254,7 +291,7 @@ exports.UploadsPostContextTypeEnum = {
254
291
  /**
255
292
  * @export
256
293
  */
257
- exports.UploadsPostSourceEnum = {
294
+ exports.UploadsPost0SourceEnum = {
258
295
  ChatUpload: 'chat-upload',
259
296
  ChatScreenshot: 'chat-screenshot',
260
297
  BrowserIcScreenshot: 'browser-ic-screenshot',
@@ -11,40 +11,40 @@
11
11
  */
12
12
  import * as runtime from '../runtime';
13
13
  import type { AddDomainRequest, CreateUserApiKeyRequest, CreatedUserApiKey, DeletePersonalWorkspaceDomain200Response, DeleteUserApiKey200Response, GetPersonalWorkspaceDomains200Response, GetUserApiKeyUsageLogs200Response, GetUserApiKeys200Response, PersonalWorkspaceDomainResult, UpdateDomainRequest, UpdateUserApiKeyRequest, UserApiKey, UsersMeBillingGet200Response, UsersSendFeedbackPost200Response, UsersSendFeedbackPostRequest } from '../models/index';
14
- export interface AddPersonalWorkspaceDomainRequest {
14
+ export interface AddPersonalWorkspaceDomain0Request {
15
15
  id: string;
16
16
  addDomainRequest: AddDomainRequest;
17
17
  }
18
- export interface CreateUserApiKeyOperationRequest {
18
+ export interface CreateUserApiKey0Request {
19
19
  id: string;
20
20
  createUserApiKeyRequest: CreateUserApiKeyRequest;
21
21
  idempotencyKey?: string;
22
22
  }
23
- export interface DeletePersonalWorkspaceDomainRequest {
23
+ export interface DeletePersonalWorkspaceDomain0Request {
24
24
  id: string;
25
25
  domainId: string;
26
26
  }
27
- export interface DeleteUserApiKeyRequest {
27
+ export interface DeleteUserApiKey0Request {
28
28
  id: string;
29
29
  keyId: string;
30
30
  }
31
- export interface GetPersonalWorkspaceDomainsRequest {
31
+ export interface GetPersonalWorkspaceDomains0Request {
32
32
  id: string;
33
33
  }
34
- export interface GetUserApiKeyUsageLogsRequest {
34
+ export interface GetUserApiKeyUsageLogs0Request {
35
35
  id: string;
36
36
  keyId: string;
37
37
  limit?: number;
38
38
  }
39
- export interface GetUserApiKeysRequest {
39
+ export interface GetUserApiKeys0Request {
40
40
  id: string;
41
41
  }
42
- export interface UpdatePersonalWorkspaceDomainRequest {
42
+ export interface UpdatePersonalWorkspaceDomain0Request {
43
43
  id: string;
44
44
  domainId: string;
45
45
  updateDomainRequest: UpdateDomainRequest;
46
46
  }
47
- export interface UpdateUserApiKeyOperationRequest {
47
+ export interface UpdateUserApiKey0Request {
48
48
  id: string;
49
49
  keyId: string;
50
50
  updateUserApiKeyRequest: UpdateUserApiKeyRequest;
@@ -60,42 +60,42 @@ export declare class UsersApi extends runtime.BaseAPI {
60
60
  * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. An account can list at most 50 websites. Use `*.example.com` for a website and all of its subdomains instead of listing each one.
61
61
  * Allow a website to show your widgets
62
62
  */
63
- addPersonalWorkspaceDomainRaw(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResult>>;
63
+ addPersonalWorkspaceDomainRaw(requestParameters: AddPersonalWorkspaceDomain0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResult>>;
64
64
  /**
65
65
  * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. An account can list at most 50 websites. Use `*.example.com` for a website and all of its subdomains instead of listing each one.
66
66
  * Allow a website to show your widgets
67
67
  */
68
- addPersonalWorkspaceDomain(requestParameters: AddPersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResult>;
68
+ addPersonalWorkspaceDomain(requestParameters: AddPersonalWorkspaceDomain0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResult>;
69
69
  /**
70
70
  * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. An account can hold at most 25 keys. An account on a plan without API access cannot make one.
71
71
  * Create an API key
72
72
  */
73
- createUserApiKeyRaw(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedUserApiKey>>;
73
+ createUserApiKeyRaw(requestParameters: CreateUserApiKey0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreatedUserApiKey>>;
74
74
  /**
75
75
  * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. An account can hold at most 25 keys. An account on a plan without API access cannot make one.
76
76
  * Create an API key
77
77
  */
78
- createUserApiKey(requestParameters: CreateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedUserApiKey>;
78
+ createUserApiKey(requestParameters: CreateUserApiKey0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreatedUserApiKey>;
79
79
  /**
80
80
  * Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
81
81
  * Stop allowing a website to show your widgets
82
82
  */
83
- deletePersonalWorkspaceDomainRaw(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeletePersonalWorkspaceDomain200Response>>;
83
+ deletePersonalWorkspaceDomainRaw(requestParameters: DeletePersonalWorkspaceDomain0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeletePersonalWorkspaceDomain200Response>>;
84
84
  /**
85
85
  * Removes one entry from an account\'s own list. When it was the last one, nothing is restricted any more and a widget can be shown anywhere again. A change can take about 15 seconds to reach every server.
86
86
  * Stop allowing a website to show your widgets
87
87
  */
88
- deletePersonalWorkspaceDomain(requestParameters: DeletePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletePersonalWorkspaceDomain200Response>;
88
+ deletePersonalWorkspaceDomain(requestParameters: DeletePersonalWorkspaceDomain0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeletePersonalWorkspaceDomain200Response>;
89
89
  /**
90
90
  * Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
91
91
  * Delete an API key
92
92
  */
93
- deleteUserApiKeyRaw(requestParameters: DeleteUserApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteUserApiKey200Response>>;
93
+ deleteUserApiKeyRaw(requestParameters: DeleteUserApiKey0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteUserApiKey200Response>>;
94
94
  /**
95
95
  * Deletes a key and the record of what it was used for. The key stops working at once on the server that took the request and within a minute on the others, and cannot be brought back: make a new one instead. To stop a key without losing it, switch it off with `updateUserApiKey`.
96
96
  * Delete an API key
97
97
  */
98
- deleteUserApiKey(requestParameters: DeleteUserApiKeyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserApiKey200Response>;
98
+ deleteUserApiKey(requestParameters: DeleteUserApiKey0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteUserApiKey200Response>;
99
99
  /**
100
100
  * Returns the caller\'s profile, including user_role. Any signed-in account may call it.
101
101
  * The signed-in account
@@ -110,52 +110,52 @@ export declare class UsersApi extends runtime.BaseAPI {
110
110
  * Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead.
111
111
  * List the websites allowed to show your widgets
112
112
  */
113
- getPersonalWorkspaceDomainsRaw(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPersonalWorkspaceDomains200Response>>;
113
+ getPersonalWorkspaceDomainsRaw(requestParameters: GetPersonalWorkspaceDomains0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPersonalWorkspaceDomains200Response>>;
114
114
  /**
115
115
  * Lists the websites on an account\'s own list, newest first. It is the list Widgetic checks when a widget of the account is embedded: when it holds at least one website, the widget is shown on those websites (and on Widgetic\'s own) and nowhere else; when it is empty, the widget can be shown anywhere. If the account administers a partner, the websites set on the partner record by Widgetic are added to them. Widgets that belong to an organization use the organization\'s list instead.
116
116
  * List the websites allowed to show your widgets
117
117
  */
118
- getPersonalWorkspaceDomains(requestParameters: GetPersonalWorkspaceDomainsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPersonalWorkspaceDomains200Response>;
118
+ getPersonalWorkspaceDomains(requestParameters: GetPersonalWorkspaceDomains0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPersonalWorkspaceDomains200Response>;
119
119
  /**
120
120
  * Lists the calls made with one key, newest first: when, which path and method, and the status each ended with. Use it to see whether a key is still in use before deleting it, or to see what a key that should not be in use has been doing.
121
121
  * Read what an API key was used for
122
122
  */
123
- getUserApiKeyUsageLogsRaw(requestParameters: GetUserApiKeyUsageLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeyUsageLogs200Response>>;
123
+ getUserApiKeyUsageLogsRaw(requestParameters: GetUserApiKeyUsageLogs0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeyUsageLogs200Response>>;
124
124
  /**
125
125
  * Lists the calls made with one key, newest first: when, which path and method, and the status each ended with. Use it to see whether a key is still in use before deleting it, or to see what a key that should not be in use has been doing.
126
126
  * Read what an API key was used for
127
127
  */
128
- getUserApiKeyUsageLogs(requestParameters: GetUserApiKeyUsageLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeyUsageLogs200Response>;
128
+ getUserApiKeyUsageLogs(requestParameters: GetUserApiKeyUsageLogs0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeyUsageLogs200Response>;
129
129
  /**
130
130
  * Lists the API keys of an account, in the order they were made: name, the first characters of the key, when it was made, when it expires, when it was last used, whether it is switched on and what it is limited to (`scopes` and `preset`). The secret of a key is never part of the list. A caller can list its own account\'s keys; Widgetic staff can list any account\'s.
131
131
  * List the API keys of an account
132
132
  */
133
- getUserApiKeysRaw(requestParameters: GetUserApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeys200Response>>;
133
+ getUserApiKeysRaw(requestParameters: GetUserApiKeys0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserApiKeys200Response>>;
134
134
  /**
135
135
  * Lists the API keys of an account, in the order they were made: name, the first characters of the key, when it was made, when it expires, when it was last used, whether it is switched on and what it is limited to (`scopes` and `preset`). The secret of a key is never part of the list. A caller can list its own account\'s keys; Widgetic staff can list any account\'s.
136
136
  * List the API keys of an account
137
137
  */
138
- getUserApiKeys(requestParameters: GetUserApiKeysRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeys200Response>;
138
+ getUserApiKeys(requestParameters: GetUserApiKeys0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserApiKeys200Response>;
139
139
  /**
140
140
  * Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
141
141
  * Change a website on your list
142
142
  */
143
- updatePersonalWorkspaceDomainRaw(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResult>>;
143
+ updatePersonalWorkspaceDomainRaw(requestParameters: UpdatePersonalWorkspaceDomain0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PersonalWorkspaceDomainResult>>;
144
144
  /**
145
145
  * Replaces the website of one entry on an account\'s own list. The same rules apply as when adding one (`addPersonalWorkspaceDomain`): a website name such as `example.com` or `*.example.com`, kept in its cleaned form, and refused when it is not a website name or is already on the list.
146
146
  * Change a website on your list
147
147
  */
148
- updatePersonalWorkspaceDomain(requestParameters: UpdatePersonalWorkspaceDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResult>;
148
+ updatePersonalWorkspaceDomain(requestParameters: UpdatePersonalWorkspaceDomain0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PersonalWorkspaceDomainResult>;
149
149
  /**
150
150
  * Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
151
151
  * Rename an API key, or switch it off or on
152
152
  */
153
- updateUserApiKeyRaw(requestParameters: UpdateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserApiKey>>;
153
+ updateUserApiKeyRaw(requestParameters: UpdateUserApiKey0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserApiKey>>;
154
154
  /**
155
155
  * Renames a key, or switches it off (`isActive: false`) or back on. A key that is switched off is refused at once by the server that took the request and within a minute by the others, and can be switched on again; deleting is for a key that is not coming back. The secret, the expiry and the scopes of a key cannot be changed. Only a key with full access can make these requests: a key limited to some scopes is refused with 403 and the code `API_KEY_SCOPE_MISSING`. Renaming and switching off can be done with an API key. Switching a key on needs a person signed in on widgetic.com: a request that asks for it with an API key or an SDK token is refused with 403, so a leaked key cannot bring a dormant key back to life.
156
156
  * Rename an API key, or switch it off or on
157
157
  */
158
- updateUserApiKey(requestParameters: UpdateUserApiKeyOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserApiKey>;
158
+ updateUserApiKey(requestParameters: UpdateUserApiKey0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserApiKey>;
159
159
  /**
160
160
  * Personal workspace billing status for the authenticated user
161
161
  */
@@ -10,11 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CheckWidgetAccess200Response, CreateWidget201Response, DeleteWidgetRequest, DuplicateWidget201Response, DuplicateWidgetRequest, GetWidgetPublishHistory200Response, GetWidgets200Response, GetWidgetsBatch200Response, GetWidgetsBatchRequest, NewWidget, RenameWidgetPublishHistoryTitle200Response, RenameWidgetPublishHistoryTitleRequest, SetWidgetPublishHistoryLive200Response, UpdateWidgetRepository200Response, UpdateWidgetRepositoryRequest, UpdateWidgetRequest, UploadWidgetThumbnail200Response, UploadWidgetThumbnailRequest } from '../models/index';
13
+ import type { CheckWidgetAccess200Response, CreateCompositionFromWidget201Response, CreateCompositionFromWidgetRequest, CreateWidget201Response, DeleteWidgetRequest, DuplicateWidget201Response, DuplicateWidgetRequest, GetWidgetPublishHistory200Response, GetWidgets200Response, GetWidgetsBatch200Response, GetWidgetsBatchRequest, NewWidget, RenameWidgetPublishHistoryTitle200Response, RenameWidgetPublishHistoryTitleRequest, SetWidgetPublishHistoryLive200Response, UpdateWidgetRepository200Response, UpdateWidgetRepositoryRequest, UpdateWidgetRequest, UploadWidgetThumbnail200Response, UploadWidgetThumbnailRequest } from '../models/index';
14
14
  export interface CheckWidgetAccessRequest {
15
15
  id: string;
16
16
  }
17
- export interface CreateWidgetRequest {
17
+ export interface CreateCompositionFromWidget0Request {
18
+ id: string;
19
+ createCompositionFromWidgetRequest: CreateCompositionFromWidgetRequest;
20
+ idempotencyKey?: string;
21
+ }
22
+ export interface CreateWidget0Request {
18
23
  newWidget: NewWidget;
19
24
  idempotencyKey?: string;
20
25
  }
@@ -39,16 +44,16 @@ export interface GetWidgetDesignSchemaRequest {
39
44
  export interface GetWidgetPublishHistoryRequest {
40
45
  widgetId: string;
41
46
  }
42
- export interface GetWidgetsRequest {
47
+ export interface GetWidgetsBatchOperationRequest {
48
+ getWidgetsBatchRequest: GetWidgetsBatchRequest;
49
+ }
50
+ export interface GetWidgets0Request {
43
51
  page?: number;
44
52
  size?: number;
45
53
  canvasId?: string;
46
54
  managedUserId?: string;
47
55
  managedUserExternalId?: string;
48
56
  }
49
- export interface GetWidgetsBatchOperationRequest {
50
- getWidgetsBatchRequest: GetWidgetsBatchRequest;
51
- }
52
57
  export interface RenameWidgetPublishHistoryTitleOperationRequest {
53
58
  widgetId: string;
54
59
  version: number;
@@ -84,16 +89,26 @@ export declare class WidgetsApi extends runtime.BaseAPI {
84
89
  * Check Widget Access
85
90
  */
86
91
  checkWidgetAccess(requestParameters: CheckWidgetAccessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CheckWidgetAccess200Response>;
92
+ /**
93
+ * After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managed_user_id`. When you send it, it must match that tag. The widget must be published. The `Idempotency-Key` header is required.
94
+ * Create a composition for a widget in one call
95
+ */
96
+ createCompositionFromWidgetRaw(requestParameters: CreateCompositionFromWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateCompositionFromWidget201Response>>;
97
+ /**
98
+ * After a managed user publishes a widget from the creator, call this with the widget id, the customer\'s managed user (when the widget is not already filed under one), and optional content, design, embed settings and locale. Every input is validated before a single insert; a failure never leaves a half-made composition. When the widget is already tagged with a managed user, you may omit `managed_user_id`. When you send it, it must match that tag. The widget must be published. The `Idempotency-Key` header is required.
99
+ * Create a composition for a widget in one call
100
+ */
101
+ createCompositionFromWidget(requestParameters: CreateCompositionFromWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateCompositionFromWidget201Response>;
87
102
  /**
88
103
  * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name), with a database provisioned for it. It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If the database cannot be provisioned the widget is still created, and `data.warnings` says what did not go through. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. 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. Creating a widget provisions its database, so this call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
89
104
  * Create Widget
90
105
  */
91
- createWidgetRaw(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWidget201Response>>;
106
+ createWidgetRaw(requestParameters: CreateWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateWidget201Response>>;
92
107
  /**
93
108
  * Creates a widget for your account: a named record with a type and some starting content, on a canvas of its own (or one of yours that you name), with a database provisioned for it. It costs no credits and has no code yet; the code is generated for it afterwards. The new widget is yours, and you can list it with `getWidgets`. A widget is a draft until you say otherwise (`isDraft: false`). If the database cannot be provisioned the widget is still created, and `data.warnings` says what did not go through. Read it before relying on the widget. A widget can be placed on one of your canvases (`canvasId`), in a project you can edit (`projectId`) or in an organization where you may create widgets (`organizationId`). Naming anything you cannot use is refused with 403, and the answer is the same whether it exists or not. To make the widget for one of your managed users, send `managedUserId` or `managedUserExternalId`. The widget stays in your account and is yours to edit; the tag lets you list one user\'s widgets with `getWidgets`. 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. Creating a widget provisions its database, so this call has a limit of its own: 120 per minute for each account (ask Widgetic if you need more). Past that the call is answered with 429 and a `Retry-After`. The `Idempotency-Key` header is required; send the same key when you retry, so one widget is created, not two.
94
109
  * Create Widget
95
110
  */
96
- createWidget(requestParameters: CreateWidgetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWidget201Response>;
111
+ createWidget(requestParameters: CreateWidget0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateWidget201Response>;
97
112
  /**
98
113
  * Permanently deletes a widget and all related resources. Users can delete their own widgets; admin API key can delete any widget.
99
114
  * Delete Widget
@@ -154,16 +169,6 @@ export declare class WidgetsApi extends runtime.BaseAPI {
154
169
  * List version history for a widget
155
170
  */
156
171
  getWidgetPublishHistory(requestParameters: GetWidgetPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgetPublishHistory200Response>;
157
- /**
158
- * Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
159
- * List Widgets
160
- */
161
- getWidgetsRaw(requestParameters: GetWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgets200Response>>;
162
- /**
163
- * Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
164
- * List Widgets
165
- */
166
- getWidgets(requestParameters?: GetWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgets200Response>;
167
172
  /**
168
173
  * Retrieves multiple widgets by their IDs in a single request. An id that is not found, or that is not yours, is reported in `errors` exactly like one that does not exist. Called with an editor session, only the widgets made for the session\'s managed user are returned.
169
174
  * Get Widgets Batch
@@ -174,6 +179,16 @@ export declare class WidgetsApi extends runtime.BaseAPI {
174
179
  * Get Widgets Batch
175
180
  */
176
181
  getWidgetsBatch(requestParameters: GetWidgetsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgetsBatch200Response>;
182
+ /**
183
+ * Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
184
+ * List Widgets
185
+ */
186
+ getWidgetsRaw(requestParameters: GetWidgets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgets200Response>>;
187
+ /**
188
+ * Lists the widgets your account owns, newest first. A widget is the reusable piece a composition is made from; this is your own library, not a catalogue of Widgetic\'s widgets. Pass `page` (counting from 1) and `size` (1 to 100, 20 when left out) to read the list one page at a time. `meta` then carries `total`, `hasNextPage` and `hasPreviousPage`, so a client can walk the list to its end. A page past the end is an empty list. Without `page` and `size` the call returns the whole list in one response, which only suits an account with a few widgets. Pass `canvasId` to list only the widgets on one of your canvases. That list is always returned whole, whatever `page` and `size` say. Pass `managedUserId` (Widgetic\'s id for one of your managed users) or `managedUserExternalId` (your own identifier for the user) to list only the widgets made for that managed user. The widgets of your other managed users, and your own, are left out. It combines with `page`, `size` and `canvasId`. A managed user that is not yours, or does not exist, is answered with 404 and `MANAGED_USER_NOT_FOUND`.
189
+ * List Widgets
190
+ */
191
+ getWidgets(requestParameters?: GetWidgets0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgets200Response>;
177
192
  /**
178
193
  * Updates `commit_title` on one version — the owner\'s correction of the wording the codegen pipeline authored for the commit. Works on Draft and Live versions alike; the Live badge says what is being served, the title says what the change was. A whitespace-only title clears it.
179
194
  * Rename a version\'s title