@widgetic/api-sdk 1.0.27 → 1.0.29

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 (669) hide show
  1. package/dist/apis/ABTestingApi.d.ts +13 -0
  2. package/dist/apis/ABTestingApi.js +39 -0
  3. package/dist/apis/AdminApi.d.ts +74 -4
  4. package/dist/apis/AdminApi.js +203 -9
  5. package/dist/apis/AdminBillingApi.d.ts +14 -3
  6. package/dist/apis/AdminBillingApi.js +35 -5
  7. package/dist/apis/AgentApi.d.ts +6 -2
  8. package/dist/apis/AgentApi.js +14 -2
  9. package/dist/apis/AuthenticationApi.d.ts +8 -0
  10. package/dist/apis/AuthenticationApi.js +24 -0
  11. package/dist/apis/BillingApi.d.ts +7 -0
  12. package/dist/apis/BillingApi.js +21 -0
  13. package/dist/apis/CompositionsApi.d.ts +10 -2
  14. package/dist/apis/CompositionsApi.js +26 -2
  15. package/dist/apis/ContentsApi.d.ts +3 -0
  16. package/dist/apis/ContentsApi.js +9 -0
  17. package/dist/apis/ConversationsApi.d.ts +2 -0
  18. package/dist/apis/ConversationsApi.js +6 -0
  19. package/dist/apis/CreditsApi.d.ts +2 -0
  20. package/dist/apis/CreditsApi.js +6 -0
  21. package/dist/apis/EmailApi.d.ts +2 -0
  22. package/dist/apis/EmailApi.js +6 -0
  23. package/dist/apis/EntitlementsApi.d.ts +1 -0
  24. package/dist/apis/EntitlementsApi.js +3 -0
  25. package/dist/apis/FoldersApi.d.ts +2 -0
  26. package/dist/apis/FoldersApi.js +6 -0
  27. package/dist/apis/IntegrationsApi.d.ts +2 -0
  28. package/dist/apis/IntegrationsApi.js +6 -0
  29. package/dist/apis/InvitationsApi.d.ts +1 -0
  30. package/dist/apis/InvitationsApi.js +3 -0
  31. package/dist/apis/InvoicesApi.d.ts +4 -2
  32. package/dist/apis/InvoicesApi.js +8 -2
  33. package/dist/apis/MCPApi.d.ts +8 -2
  34. package/dist/apis/MCPApi.js +16 -4
  35. package/dist/apis/ManagedUsersApi.d.ts +6 -2
  36. package/dist/apis/ManagedUsersApi.js +14 -2
  37. package/dist/apis/MessagesApi.d.ts +2 -0
  38. package/dist/apis/MessagesApi.js +6 -0
  39. package/dist/apis/OperationsApi.d.ts +3 -2
  40. package/dist/apis/OperationsApi.js +5 -2
  41. package/dist/apis/OrganizationsApi.d.ts +10 -2
  42. package/dist/apis/OrganizationsApi.js +24 -6
  43. package/dist/apis/PartnersApi.d.ts +173 -3
  44. package/dist/apis/PartnersApi.js +494 -4
  45. package/dist/apis/ProjectsApi.d.ts +3 -0
  46. package/dist/apis/ProjectsApi.js +9 -0
  47. package/dist/apis/PromptsApi.d.ts +2 -0
  48. package/dist/apis/PromptsApi.js +6 -0
  49. package/dist/apis/SubscriptionsApi.d.ts +4 -0
  50. package/dist/apis/SubscriptionsApi.js +12 -0
  51. package/dist/apis/TranslationsApi.d.ts +5 -0
  52. package/dist/apis/TranslationsApi.js +15 -0
  53. package/dist/apis/UploadsApi.d.ts +2 -2
  54. package/dist/apis/UploadsApi.js +2 -2
  55. package/dist/apis/UsageApi.d.ts +2 -0
  56. package/dist/apis/UsageApi.js +6 -0
  57. package/dist/apis/UsersApi.d.ts +9 -8
  58. package/dist/apis/UsersApi.js +11 -8
  59. package/dist/apis/WebhooksApi.d.ts +2 -0
  60. package/dist/apis/WebhooksApi.js +6 -0
  61. package/dist/apis/WidgetsApi.d.ts +2 -1
  62. package/dist/apis/WidgetsApi.js +3 -3
  63. package/dist/apis/WorkspacesApi.d.ts +9 -0
  64. package/dist/apis/WorkspacesApi.js +27 -0
  65. package/dist/esm/apis/ABTestingApi.d.ts +13 -0
  66. package/dist/esm/apis/ABTestingApi.js +39 -0
  67. package/dist/esm/apis/AdminApi.d.ts +74 -4
  68. package/dist/esm/apis/AdminApi.js +204 -10
  69. package/dist/esm/apis/AdminBillingApi.d.ts +14 -3
  70. package/dist/esm/apis/AdminBillingApi.js +35 -5
  71. package/dist/esm/apis/AgentApi.d.ts +6 -2
  72. package/dist/esm/apis/AgentApi.js +14 -2
  73. package/dist/esm/apis/AuthenticationApi.d.ts +8 -0
  74. package/dist/esm/apis/AuthenticationApi.js +24 -0
  75. package/dist/esm/apis/BillingApi.d.ts +7 -0
  76. package/dist/esm/apis/BillingApi.js +21 -0
  77. package/dist/esm/apis/CompositionsApi.d.ts +10 -2
  78. package/dist/esm/apis/CompositionsApi.js +26 -2
  79. package/dist/esm/apis/ContentsApi.d.ts +3 -0
  80. package/dist/esm/apis/ContentsApi.js +9 -0
  81. package/dist/esm/apis/ConversationsApi.d.ts +2 -0
  82. package/dist/esm/apis/ConversationsApi.js +6 -0
  83. package/dist/esm/apis/CreditsApi.d.ts +2 -0
  84. package/dist/esm/apis/CreditsApi.js +6 -0
  85. package/dist/esm/apis/EmailApi.d.ts +2 -0
  86. package/dist/esm/apis/EmailApi.js +6 -0
  87. package/dist/esm/apis/EntitlementsApi.d.ts +1 -0
  88. package/dist/esm/apis/EntitlementsApi.js +3 -0
  89. package/dist/esm/apis/FoldersApi.d.ts +2 -0
  90. package/dist/esm/apis/FoldersApi.js +6 -0
  91. package/dist/esm/apis/IntegrationsApi.d.ts +2 -0
  92. package/dist/esm/apis/IntegrationsApi.js +6 -0
  93. package/dist/esm/apis/InvitationsApi.d.ts +1 -0
  94. package/dist/esm/apis/InvitationsApi.js +3 -0
  95. package/dist/esm/apis/InvoicesApi.d.ts +4 -2
  96. package/dist/esm/apis/InvoicesApi.js +8 -2
  97. package/dist/esm/apis/MCPApi.d.ts +8 -2
  98. package/dist/esm/apis/MCPApi.js +16 -4
  99. package/dist/esm/apis/ManagedUsersApi.d.ts +6 -2
  100. package/dist/esm/apis/ManagedUsersApi.js +14 -2
  101. package/dist/esm/apis/MessagesApi.d.ts +2 -0
  102. package/dist/esm/apis/MessagesApi.js +6 -0
  103. package/dist/esm/apis/OperationsApi.d.ts +3 -2
  104. package/dist/esm/apis/OperationsApi.js +5 -2
  105. package/dist/esm/apis/OrganizationsApi.d.ts +10 -2
  106. package/dist/esm/apis/OrganizationsApi.js +24 -6
  107. package/dist/esm/apis/PartnersApi.d.ts +173 -3
  108. package/dist/esm/apis/PartnersApi.js +495 -5
  109. package/dist/esm/apis/ProjectsApi.d.ts +3 -0
  110. package/dist/esm/apis/ProjectsApi.js +9 -0
  111. package/dist/esm/apis/PromptsApi.d.ts +2 -0
  112. package/dist/esm/apis/PromptsApi.js +6 -0
  113. package/dist/esm/apis/SubscriptionsApi.d.ts +4 -0
  114. package/dist/esm/apis/SubscriptionsApi.js +12 -0
  115. package/dist/esm/apis/TranslationsApi.d.ts +5 -0
  116. package/dist/esm/apis/TranslationsApi.js +15 -0
  117. package/dist/esm/apis/UploadsApi.d.ts +2 -2
  118. package/dist/esm/apis/UploadsApi.js +2 -2
  119. package/dist/esm/apis/UsageApi.d.ts +2 -0
  120. package/dist/esm/apis/UsageApi.js +6 -0
  121. package/dist/esm/apis/UsersApi.d.ts +9 -8
  122. package/dist/esm/apis/UsersApi.js +11 -8
  123. package/dist/esm/apis/WebhooksApi.d.ts +2 -0
  124. package/dist/esm/apis/WebhooksApi.js +6 -0
  125. package/dist/esm/apis/WidgetsApi.d.ts +2 -1
  126. package/dist/esm/apis/WidgetsApi.js +3 -3
  127. package/dist/esm/apis/WorkspacesApi.d.ts +9 -0
  128. package/dist/esm/apis/WorkspacesApi.js +27 -0
  129. package/dist/esm/models/ApiKeyScope.d.ts +56 -0
  130. package/dist/esm/models/ApiKeyScope.js +74 -0
  131. package/dist/esm/models/CreateUserApiKeyRequest.d.ts +22 -0
  132. package/dist/esm/models/CreateUserApiKeyRequest.js +13 -0
  133. package/dist/esm/models/CreatedUserApiKey.d.ts +23 -0
  134. package/dist/esm/models/CreatedUserApiKey.js +18 -0
  135. package/dist/esm/models/IssuePartnerInvoiceRequest.d.ts +2 -2
  136. package/dist/esm/models/IssuedPartnerInvoice.d.ts +37 -1
  137. package/dist/esm/models/IssuedPartnerInvoice.js +24 -0
  138. package/dist/esm/models/MyPartner.d.ts +86 -0
  139. package/dist/esm/models/MyPartner.js +75 -0
  140. package/dist/esm/models/MyPartners.d.ts +50 -0
  141. package/dist/esm/models/MyPartners.js +57 -0
  142. package/dist/esm/models/NewEditorSession.d.ts +1 -1
  143. package/dist/esm/models/PartnerAnalyticsByManagedUser.d.ts +54 -0
  144. package/dist/esm/models/PartnerAnalyticsByManagedUser.js +58 -0
  145. package/dist/esm/models/PartnerAnalyticsOfDay.d.ts +50 -0
  146. package/dist/esm/models/PartnerAnalyticsOfDay.js +55 -0
  147. package/dist/esm/models/PartnerAnalyticsOfManagedUser.d.ts +86 -0
  148. package/dist/esm/models/PartnerAnalyticsOfManagedUser.js +79 -0
  149. package/dist/esm/models/PartnerAnalyticsOfWidget.d.ts +62 -0
  150. package/dist/esm/models/PartnerAnalyticsOfWidget.js +63 -0
  151. package/dist/esm/models/PartnerAnalyticsSummary.d.ts +76 -0
  152. package/dist/esm/models/PartnerAnalyticsSummary.js +72 -0
  153. package/dist/esm/models/PartnerAnalyticsTimeline.d.ts +52 -0
  154. package/dist/esm/models/PartnerAnalyticsTimeline.js +57 -0
  155. package/dist/esm/models/PartnerAnalyticsTopWidgets.d.ts +52 -0
  156. package/dist/esm/models/PartnerAnalyticsTopWidgets.js +57 -0
  157. package/dist/esm/models/PartnerBillingProfile.d.ts +76 -0
  158. package/dist/esm/models/PartnerBillingProfile.js +73 -0
  159. package/dist/esm/models/PartnerBillingProfileAddress.d.ts +62 -0
  160. package/dist/esm/models/PartnerBillingProfileAddress.js +55 -0
  161. package/dist/esm/models/PartnerBillingProfileSaved.d.ts +58 -0
  162. package/dist/esm/models/PartnerBillingProfileSaved.js +61 -0
  163. package/dist/esm/models/PartnerBillingProfileTaxId.d.ts +38 -0
  164. package/dist/esm/models/PartnerBillingProfileTaxId.js +47 -0
  165. package/dist/esm/models/PartnerBillingProfileView.d.ts +51 -0
  166. package/dist/esm/models/PartnerBillingProfileView.js +56 -0
  167. package/dist/esm/models/PartnerBillingStripeSync.d.ts +53 -0
  168. package/dist/esm/models/PartnerBillingStripeSync.js +55 -0
  169. package/dist/esm/models/PartnerEditorSessionSettings.d.ts +53 -0
  170. package/dist/esm/models/PartnerEditorSessionSettings.js +57 -0
  171. package/dist/esm/models/PartnerEditorSessionSettingsEffective.d.ts +44 -0
  172. package/dist/esm/models/PartnerEditorSessionSettingsEffective.js +51 -0
  173. package/dist/esm/models/PartnerEditorSessionSettingsSettings.d.ts +44 -0
  174. package/dist/esm/models/PartnerEditorSessionSettingsSettings.js +51 -0
  175. package/dist/esm/models/PartnerInvoice.d.ts +26 -1
  176. package/dist/esm/models/PartnerInvoice.js +8 -0
  177. package/dist/esm/models/PartnerNotification.d.ts +81 -0
  178. package/dist/esm/models/PartnerNotification.js +77 -0
  179. package/dist/esm/models/PartnerNotificationDefaultRecipients.d.ts +38 -0
  180. package/dist/esm/models/PartnerNotificationDefaultRecipients.js +47 -0
  181. package/dist/esm/models/PartnerNotificationDelivery.d.ts +128 -0
  182. package/dist/esm/models/PartnerNotificationDelivery.js +111 -0
  183. package/dist/esm/models/PartnerNotificationDeliveryLog.d.ts +33 -0
  184. package/dist/esm/models/PartnerNotificationDeliveryLog.js +44 -0
  185. package/dist/esm/models/PartnerNotificationEvent.d.ts +67 -0
  186. package/dist/esm/models/PartnerNotificationEvent.js +69 -0
  187. package/dist/esm/models/PartnerNotificationEventType.d.ts +33 -0
  188. package/dist/esm/models/PartnerNotificationEventType.js +51 -0
  189. package/dist/esm/models/PartnerNotificationPage.d.ts +39 -0
  190. package/dist/esm/models/PartnerNotificationPage.js +48 -0
  191. package/dist/esm/models/PartnerNotificationSettings.d.ts +89 -0
  192. package/dist/esm/models/PartnerNotificationSettings.js +82 -0
  193. package/dist/esm/models/PartnerNotificationSettingsChange.d.ts +39 -0
  194. package/dist/esm/models/PartnerNotificationSettingsChange.js +48 -0
  195. package/dist/esm/models/PartnerReportPage.d.ts +44 -0
  196. package/dist/esm/models/PartnerReportPage.js +51 -0
  197. package/dist/esm/models/PartnerReportPeriod.d.ts +38 -0
  198. package/dist/esm/models/PartnerReportPeriod.js +47 -0
  199. package/dist/esm/models/PartnerStorageUsage.d.ts +54 -0
  200. package/dist/esm/models/PartnerStorageUsage.js +58 -0
  201. package/dist/esm/models/PartnerStorageUsageOfManagedUser.d.ts +81 -0
  202. package/dist/esm/models/PartnerStorageUsageOfManagedUser.js +75 -0
  203. package/dist/esm/models/PartnerStorageUsageTotals.d.ts +50 -0
  204. package/dist/esm/models/PartnerStorageUsageTotals.js +55 -0
  205. package/dist/esm/models/RecordPartnerInvoicePaymentRequest.d.ts +32 -0
  206. package/dist/esm/models/RecordPartnerInvoicePaymentRequest.js +41 -0
  207. package/dist/esm/models/RecordedPartnerPayment.d.ts +39 -0
  208. package/dist/esm/models/RecordedPartnerPayment.js +48 -0
  209. package/dist/esm/models/RecordedPartnerPaymentInvoice.d.ts +50 -0
  210. package/dist/esm/models/RecordedPartnerPaymentInvoice.js +55 -0
  211. package/dist/esm/models/UpdatePartnerBillingProfileRequest.d.ts +58 -0
  212. package/dist/esm/models/UpdatePartnerBillingProfileRequest.js +51 -0
  213. package/dist/esm/models/UpdatePartnerBillingProfileRequestAddress.d.ts +62 -0
  214. package/dist/esm/models/UpdatePartnerBillingProfileRequestAddress.js +55 -0
  215. package/dist/esm/models/UpdatePartnerBillingProfileRequestTaxId.d.ts +38 -0
  216. package/dist/esm/models/UpdatePartnerBillingProfileRequestTaxId.js +47 -0
  217. package/dist/esm/models/UpdatePartnerEditorSessionSettingsRequest.d.ts +44 -0
  218. package/dist/esm/models/UpdatePartnerEditorSessionSettingsRequest.js +45 -0
  219. package/dist/esm/models/UpdatePartnerNotificationSettingsRequest.d.ts +51 -0
  220. package/dist/esm/models/UpdatePartnerNotificationSettingsRequest.js +48 -0
  221. package/dist/esm/models/UserApiKey.d.ts +23 -0
  222. package/dist/esm/models/UserApiKey.js +18 -0
  223. package/dist/esm/models/index.d.ts +41 -0
  224. package/dist/esm/models/index.js +41 -0
  225. package/dist/models/ApiKeyScope.d.ts +56 -0
  226. package/dist/models/ApiKeyScope.js +82 -0
  227. package/dist/models/CreateUserApiKeyRequest.d.ts +22 -0
  228. package/dist/models/CreateUserApiKeyRequest.js +14 -0
  229. package/dist/models/CreatedUserApiKey.d.ts +23 -0
  230. package/dist/models/CreatedUserApiKey.js +19 -0
  231. package/dist/models/IssuePartnerInvoiceRequest.d.ts +2 -2
  232. package/dist/models/IssuedPartnerInvoice.d.ts +37 -1
  233. package/dist/models/IssuedPartnerInvoice.js +24 -0
  234. package/dist/models/MyPartner.d.ts +86 -0
  235. package/dist/models/MyPartner.js +83 -0
  236. package/dist/models/MyPartners.d.ts +50 -0
  237. package/dist/models/MyPartners.js +65 -0
  238. package/dist/models/NewEditorSession.d.ts +1 -1
  239. package/dist/models/PartnerAnalyticsByManagedUser.d.ts +54 -0
  240. package/dist/models/PartnerAnalyticsByManagedUser.js +65 -0
  241. package/dist/models/PartnerAnalyticsOfDay.d.ts +50 -0
  242. package/dist/models/PartnerAnalyticsOfDay.js +62 -0
  243. package/dist/models/PartnerAnalyticsOfManagedUser.d.ts +86 -0
  244. package/dist/models/PartnerAnalyticsOfManagedUser.js +86 -0
  245. package/dist/models/PartnerAnalyticsOfWidget.d.ts +62 -0
  246. package/dist/models/PartnerAnalyticsOfWidget.js +70 -0
  247. package/dist/models/PartnerAnalyticsSummary.d.ts +76 -0
  248. package/dist/models/PartnerAnalyticsSummary.js +79 -0
  249. package/dist/models/PartnerAnalyticsTimeline.d.ts +52 -0
  250. package/dist/models/PartnerAnalyticsTimeline.js +64 -0
  251. package/dist/models/PartnerAnalyticsTopWidgets.d.ts +52 -0
  252. package/dist/models/PartnerAnalyticsTopWidgets.js +64 -0
  253. package/dist/models/PartnerBillingProfile.d.ts +76 -0
  254. package/dist/models/PartnerBillingProfile.js +80 -0
  255. package/dist/models/PartnerBillingProfileAddress.d.ts +62 -0
  256. package/dist/models/PartnerBillingProfileAddress.js +62 -0
  257. package/dist/models/PartnerBillingProfileSaved.d.ts +58 -0
  258. package/dist/models/PartnerBillingProfileSaved.js +68 -0
  259. package/dist/models/PartnerBillingProfileTaxId.d.ts +38 -0
  260. package/dist/models/PartnerBillingProfileTaxId.js +54 -0
  261. package/dist/models/PartnerBillingProfileView.d.ts +51 -0
  262. package/dist/models/PartnerBillingProfileView.js +63 -0
  263. package/dist/models/PartnerBillingStripeSync.d.ts +53 -0
  264. package/dist/models/PartnerBillingStripeSync.js +63 -0
  265. package/dist/models/PartnerEditorSessionSettings.d.ts +53 -0
  266. package/dist/models/PartnerEditorSessionSettings.js +64 -0
  267. package/dist/models/PartnerEditorSessionSettingsEffective.d.ts +44 -0
  268. package/dist/models/PartnerEditorSessionSettingsEffective.js +58 -0
  269. package/dist/models/PartnerEditorSessionSettingsSettings.d.ts +44 -0
  270. package/dist/models/PartnerEditorSessionSettingsSettings.js +58 -0
  271. package/dist/models/PartnerInvoice.d.ts +26 -1
  272. package/dist/models/PartnerInvoice.js +8 -0
  273. package/dist/models/PartnerNotification.d.ts +81 -0
  274. package/dist/models/PartnerNotification.js +85 -0
  275. package/dist/models/PartnerNotificationDefaultRecipients.d.ts +38 -0
  276. package/dist/models/PartnerNotificationDefaultRecipients.js +54 -0
  277. package/dist/models/PartnerNotificationDelivery.d.ts +128 -0
  278. package/dist/models/PartnerNotificationDelivery.js +119 -0
  279. package/dist/models/PartnerNotificationDeliveryLog.d.ts +33 -0
  280. package/dist/models/PartnerNotificationDeliveryLog.js +51 -0
  281. package/dist/models/PartnerNotificationEvent.d.ts +67 -0
  282. package/dist/models/PartnerNotificationEvent.js +77 -0
  283. package/dist/models/PartnerNotificationEventType.d.ts +33 -0
  284. package/dist/models/PartnerNotificationEventType.js +59 -0
  285. package/dist/models/PartnerNotificationPage.d.ts +39 -0
  286. package/dist/models/PartnerNotificationPage.js +55 -0
  287. package/dist/models/PartnerNotificationSettings.d.ts +89 -0
  288. package/dist/models/PartnerNotificationSettings.js +89 -0
  289. package/dist/models/PartnerNotificationSettingsChange.d.ts +39 -0
  290. package/dist/models/PartnerNotificationSettingsChange.js +55 -0
  291. package/dist/models/PartnerReportPage.d.ts +44 -0
  292. package/dist/models/PartnerReportPage.js +58 -0
  293. package/dist/models/PartnerReportPeriod.d.ts +38 -0
  294. package/dist/models/PartnerReportPeriod.js +54 -0
  295. package/dist/models/PartnerStorageUsage.d.ts +54 -0
  296. package/dist/models/PartnerStorageUsage.js +65 -0
  297. package/dist/models/PartnerStorageUsageOfManagedUser.d.ts +81 -0
  298. package/dist/models/PartnerStorageUsageOfManagedUser.js +82 -0
  299. package/dist/models/PartnerStorageUsageTotals.d.ts +50 -0
  300. package/dist/models/PartnerStorageUsageTotals.js +62 -0
  301. package/dist/models/RecordPartnerInvoicePaymentRequest.d.ts +32 -0
  302. package/dist/models/RecordPartnerInvoicePaymentRequest.js +48 -0
  303. package/dist/models/RecordedPartnerPayment.d.ts +39 -0
  304. package/dist/models/RecordedPartnerPayment.js +55 -0
  305. package/dist/models/RecordedPartnerPaymentInvoice.d.ts +50 -0
  306. package/dist/models/RecordedPartnerPaymentInvoice.js +62 -0
  307. package/dist/models/UpdatePartnerBillingProfileRequest.d.ts +58 -0
  308. package/dist/models/UpdatePartnerBillingProfileRequest.js +58 -0
  309. package/dist/models/UpdatePartnerBillingProfileRequestAddress.d.ts +62 -0
  310. package/dist/models/UpdatePartnerBillingProfileRequestAddress.js +62 -0
  311. package/dist/models/UpdatePartnerBillingProfileRequestTaxId.d.ts +38 -0
  312. package/dist/models/UpdatePartnerBillingProfileRequestTaxId.js +54 -0
  313. package/dist/models/UpdatePartnerEditorSessionSettingsRequest.d.ts +44 -0
  314. package/dist/models/UpdatePartnerEditorSessionSettingsRequest.js +52 -0
  315. package/dist/models/UpdatePartnerNotificationSettingsRequest.d.ts +51 -0
  316. package/dist/models/UpdatePartnerNotificationSettingsRequest.js +55 -0
  317. package/dist/models/UserApiKey.d.ts +23 -0
  318. package/dist/models/UserApiKey.js +19 -0
  319. package/dist/models/index.d.ts +41 -0
  320. package/dist/models/index.js +41 -0
  321. package/package.json +1 -1
  322. package/dist/apis/AgentRepositoryManagementApi.d.ts +0 -32
  323. package/dist/apis/AgentRepositoryManagementApi.js +0 -75
  324. package/dist/apis/UIComponentsApi.d.ts +0 -96
  325. package/dist/apis/UIComponentsApi.js +0 -209
  326. package/dist/apis/WorkflowsApi.d.ts +0 -44
  327. package/dist/apis/WorkflowsApi.js +0 -111
  328. package/dist/esm/apis/AgentRepositoryManagementApi.d.ts +0 -32
  329. package/dist/esm/apis/AgentRepositoryManagementApi.js +0 -71
  330. package/dist/esm/apis/UIComponentsApi.d.ts +0 -96
  331. package/dist/esm/apis/UIComponentsApi.js +0 -205
  332. package/dist/esm/apis/WorkflowsApi.d.ts +0 -44
  333. package/dist/esm/apis/WorkflowsApi.js +0 -107
  334. package/dist/esm/models/AgentRepositoriesRepoIdSyncPost202Response.d.ts +0 -32
  335. package/dist/esm/models/AgentRepositoriesRepoIdSyncPost202Response.js +0 -41
  336. package/dist/esm/models/AgentRepositoriesRepoIdSyncPostRequest.d.ts +0 -32
  337. package/dist/esm/models/AgentRepositoriesRepoIdSyncPostRequest.js +0 -43
  338. package/dist/esm/models/AgentTasksTaskIdStatusPutRequest.d.ts +0 -54
  339. package/dist/esm/models/AgentTasksTaskIdStatusPutRequest.js +0 -60
  340. package/dist/esm/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.d.ts +0 -32
  341. package/dist/esm/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.js +0 -41
  342. package/dist/esm/models/ApiV1AdminBillingGrantsPostRequest.d.ts +0 -82
  343. package/dist/esm/models/ApiV1AdminBillingGrantsPostRequest.js +0 -79
  344. package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +0 -32
  345. package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +0 -41
  346. package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +0 -32
  347. package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +0 -43
  348. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +0 -39
  349. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +0 -44
  350. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +0 -57
  351. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +0 -50
  352. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +0 -68
  353. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +0 -53
  354. package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.d.ts +0 -70
  355. package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.js +0 -64
  356. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +0 -71
  357. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +0 -59
  358. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
  359. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +0 -48
  360. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +0 -70
  361. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +0 -62
  362. package/dist/esm/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.d.ts +0 -46
  363. package/dist/esm/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.js +0 -52
  364. package/dist/esm/models/ApiV1BillingPricingGet200Response.d.ts +0 -39
  365. package/dist/esm/models/ApiV1BillingPricingGet200Response.js +0 -44
  366. package/dist/esm/models/ApiV1BillingPricingGet200ResponseData.d.ts +0 -46
  367. package/dist/esm/models/ApiV1BillingPricingGet200ResponseData.js +0 -47
  368. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataPlansInner.d.ts +0 -68
  369. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataPlansInner.js +0 -53
  370. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataTrial.d.ts +0 -44
  371. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataTrial.js +0 -45
  372. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200Response.d.ts +0 -39
  373. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200Response.js +0 -44
  374. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.d.ts +0 -33
  375. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.js +0 -42
  376. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.d.ts +0 -68
  377. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.js +0 -53
  378. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  379. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
  380. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  381. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
  382. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  383. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -51
  384. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.d.ts +0 -39
  385. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.js +0 -44
  386. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.d.ts +0 -32
  387. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.js +0 -41
  388. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
  389. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -44
  390. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
  391. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -41
  392. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  393. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
  394. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  395. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
  396. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  397. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -43
  398. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  399. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
  400. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  401. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -47
  402. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  403. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
  404. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  405. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
  406. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  407. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
  408. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.d.ts +0 -39
  409. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.js +0 -44
  410. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.d.ts +0 -32
  411. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.js +0 -41
  412. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.d.ts +0 -32
  413. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.js +0 -41
  414. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.d.ts +0 -39
  415. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.js +0 -44
  416. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.d.ts +0 -120
  417. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.js +0 -76
  418. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.d.ts +0 -39
  419. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.js +0 -44
  420. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.d.ts +0 -38
  421. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.js +0 -43
  422. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.d.ts +0 -39
  423. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.js +0 -44
  424. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.d.ts +0 -38
  425. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.js +0 -43
  426. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +0 -53
  427. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +0 -58
  428. package/dist/esm/models/ApiV1MetricsGet200Response.d.ts +0 -39
  429. package/dist/esm/models/ApiV1MetricsGet200Response.js +0 -44
  430. package/dist/esm/models/ApiV1MetricsGet200ResponseData.d.ts +0 -56
  431. package/dist/esm/models/ApiV1MetricsGet200ResponseData.js +0 -50
  432. package/dist/esm/models/ApiV1MetricsGet200ResponseDataErrorsValue.d.ts +0 -44
  433. package/dist/esm/models/ApiV1MetricsGet200ResponseDataErrorsValue.js +0 -45
  434. package/dist/esm/models/ApiV1MetricsGet200ResponseDataLatencyValue.d.ts +0 -50
  435. package/dist/esm/models/ApiV1MetricsGet200ResponseDataLatencyValue.js +0 -47
  436. package/dist/esm/models/ApiV1MetricsLatencyGet200Response.d.ts +0 -41
  437. package/dist/esm/models/ApiV1MetricsLatencyGet200Response.js +0 -45
  438. package/dist/esm/models/ApiV1MetricsLatencyGet200ResponseDataValue.d.ts +0 -62
  439. package/dist/esm/models/ApiV1MetricsLatencyGet200ResponseDataValue.js +0 -51
  440. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +0 -71
  441. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +0 -59
  442. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
  443. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +0 -48
  444. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +0 -38
  445. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +0 -43
  446. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +0 -44
  447. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +0 -45
  448. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.d.ts +0 -38
  449. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.js +0 -43
  450. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.d.ts +0 -38
  451. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.js +0 -47
  452. package/dist/esm/models/ComponentManifest.d.ts +0 -52
  453. package/dist/esm/models/ComponentManifest.js +0 -49
  454. package/dist/esm/models/ComponentManifestAssets.d.ts +0 -38
  455. package/dist/esm/models/ComponentManifestAssets.js +0 -43
  456. package/dist/esm/models/ComponentManifestConfig.d.ts +0 -44
  457. package/dist/esm/models/ComponentManifestConfig.js +0 -45
  458. package/dist/esm/models/DevelopmentPlan.d.ts +0 -97
  459. package/dist/esm/models/DevelopmentPlan.js +0 -69
  460. package/dist/esm/models/DevelopmentTask.d.ts +0 -90
  461. package/dist/esm/models/DevelopmentTask.js +0 -66
  462. package/dist/esm/models/GenerateComponentWorkflowInput.d.ts +0 -56
  463. package/dist/esm/models/GenerateComponentWorkflowInput.js +0 -55
  464. package/dist/esm/models/GenerateMixedComponentInput.d.ts +0 -62
  465. package/dist/esm/models/GenerateMixedComponentInput.js +0 -59
  466. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  467. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -43
  468. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataBreakdown.d.ts +0 -44
  469. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataBreakdown.js +0 -45
  470. package/dist/esm/models/ListComponents200Response.d.ts +0 -33
  471. package/dist/esm/models/ListComponents200Response.js +0 -42
  472. package/dist/esm/models/LoginUser200Response.d.ts +0 -38
  473. package/dist/esm/models/LoginUser200Response.js +0 -43
  474. package/dist/esm/models/MountRequest.d.ts +0 -45
  475. package/dist/esm/models/MountRequest.js +0 -48
  476. package/dist/esm/models/MountRequestTheme.d.ts +0 -54
  477. package/dist/esm/models/MountRequestTheme.js +0 -54
  478. package/dist/esm/models/MountRequestThemeColors.d.ts +0 -50
  479. package/dist/esm/models/MountRequestThemeColors.js +0 -47
  480. package/dist/esm/models/MountRequestThemeTypography.d.ts +0 -38
  481. package/dist/esm/models/MountRequestThemeTypography.js +0 -43
  482. package/dist/esm/models/MountResponse.d.ts +0 -46
  483. package/dist/esm/models/MountResponse.js +0 -50
  484. package/dist/esm/models/NewWidgetComponentsMetadataInner.d.ts +0 -64
  485. package/dist/esm/models/NewWidgetComponentsMetadataInner.js +0 -53
  486. package/dist/esm/models/NewWidgetComponentsMetadataInnerPosition.d.ts +0 -38
  487. package/dist/esm/models/NewWidgetComponentsMetadataInnerPosition.js +0 -43
  488. package/dist/esm/models/NewWidgetComponentsMetadataInnerSize.d.ts +0 -38
  489. package/dist/esm/models/NewWidgetComponentsMetadataInnerSize.js +0 -43
  490. package/dist/esm/models/PurchaseStoragePack200ResponseDataPaymentIntent.d.ts +0 -50
  491. package/dist/esm/models/PurchaseStoragePack200ResponseDataPaymentIntent.js +0 -47
  492. package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
  493. package/dist/esm/models/RollbackComponent200Response.js +0 -43
  494. package/dist/esm/models/RollbackComponentRequest.d.ts +0 -38
  495. package/dist/esm/models/RollbackComponentRequest.js +0 -45
  496. package/dist/esm/models/UIComponent.d.ts +0 -65
  497. package/dist/esm/models/UIComponent.js +0 -57
  498. package/dist/esm/models/UpdateCompositionRequest.d.ts +0 -68
  499. package/dist/esm/models/UpdateCompositionRequest.js +0 -53
  500. package/dist/esm/models/WorkflowAcceptedResponse.d.ts +0 -38
  501. package/dist/esm/models/WorkflowAcceptedResponse.js +0 -43
  502. package/dist/models/AgentRepositoriesRepoIdSyncPost202Response.d.ts +0 -32
  503. package/dist/models/AgentRepositoriesRepoIdSyncPost202Response.js +0 -48
  504. package/dist/models/AgentRepositoriesRepoIdSyncPostRequest.d.ts +0 -32
  505. package/dist/models/AgentRepositoriesRepoIdSyncPostRequest.js +0 -50
  506. package/dist/models/AgentTasksTaskIdStatusPutRequest.d.ts +0 -54
  507. package/dist/models/AgentTasksTaskIdStatusPutRequest.js +0 -68
  508. package/dist/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.d.ts +0 -32
  509. package/dist/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.js +0 -48
  510. package/dist/models/ApiV1AdminBillingGrantsPostRequest.d.ts +0 -82
  511. package/dist/models/ApiV1AdminBillingGrantsPostRequest.js +0 -87
  512. package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +0 -32
  513. package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +0 -48
  514. package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +0 -32
  515. package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +0 -50
  516. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +0 -39
  517. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +0 -51
  518. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +0 -57
  519. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +0 -57
  520. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +0 -68
  521. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +0 -60
  522. package/dist/models/ApiV1AdminBillingRefundsPostRequest.d.ts +0 -70
  523. package/dist/models/ApiV1AdminBillingRefundsPostRequest.js +0 -72
  524. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +0 -71
  525. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +0 -67
  526. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
  527. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +0 -55
  528. package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +0 -70
  529. package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +0 -70
  530. package/dist/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.d.ts +0 -46
  531. package/dist/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.js +0 -60
  532. package/dist/models/ApiV1BillingPricingGet200Response.d.ts +0 -39
  533. package/dist/models/ApiV1BillingPricingGet200Response.js +0 -51
  534. package/dist/models/ApiV1BillingPricingGet200ResponseData.d.ts +0 -46
  535. package/dist/models/ApiV1BillingPricingGet200ResponseData.js +0 -54
  536. package/dist/models/ApiV1BillingPricingGet200ResponseDataPlansInner.d.ts +0 -68
  537. package/dist/models/ApiV1BillingPricingGet200ResponseDataPlansInner.js +0 -60
  538. package/dist/models/ApiV1BillingPricingGet200ResponseDataTrial.d.ts +0 -44
  539. package/dist/models/ApiV1BillingPricingGet200ResponseDataTrial.js +0 -52
  540. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200Response.d.ts +0 -39
  541. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200Response.js +0 -51
  542. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.d.ts +0 -33
  543. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.js +0 -49
  544. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.d.ts +0 -68
  545. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.js +0 -60
  546. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  547. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
  548. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  549. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
  550. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  551. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
  552. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.d.ts +0 -39
  553. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.js +0 -51
  554. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.d.ts +0 -32
  555. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.js +0 -48
  556. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +0 -39
  557. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +0 -51
  558. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +0 -32
  559. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +0 -48
  560. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  561. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
  562. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  563. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
  564. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  565. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
  566. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  567. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
  568. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  569. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
  570. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  571. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
  572. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  573. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
  574. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  575. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
  576. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.d.ts +0 -39
  577. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.js +0 -51
  578. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.d.ts +0 -32
  579. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.js +0 -48
  580. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.d.ts +0 -32
  581. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.js +0 -48
  582. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.d.ts +0 -39
  583. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.js +0 -51
  584. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.d.ts +0 -120
  585. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.js +0 -84
  586. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.d.ts +0 -39
  587. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.js +0 -51
  588. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.d.ts +0 -38
  589. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.js +0 -50
  590. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.d.ts +0 -39
  591. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.js +0 -51
  592. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.d.ts +0 -38
  593. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.js +0 -50
  594. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +0 -53
  595. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +0 -66
  596. package/dist/models/ApiV1MetricsGet200Response.d.ts +0 -39
  597. package/dist/models/ApiV1MetricsGet200Response.js +0 -51
  598. package/dist/models/ApiV1MetricsGet200ResponseData.d.ts +0 -56
  599. package/dist/models/ApiV1MetricsGet200ResponseData.js +0 -57
  600. package/dist/models/ApiV1MetricsGet200ResponseDataErrorsValue.d.ts +0 -44
  601. package/dist/models/ApiV1MetricsGet200ResponseDataErrorsValue.js +0 -52
  602. package/dist/models/ApiV1MetricsGet200ResponseDataLatencyValue.d.ts +0 -50
  603. package/dist/models/ApiV1MetricsGet200ResponseDataLatencyValue.js +0 -54
  604. package/dist/models/ApiV1MetricsLatencyGet200Response.d.ts +0 -41
  605. package/dist/models/ApiV1MetricsLatencyGet200Response.js +0 -52
  606. package/dist/models/ApiV1MetricsLatencyGet200ResponseDataValue.d.ts +0 -62
  607. package/dist/models/ApiV1MetricsLatencyGet200ResponseDataValue.js +0 -58
  608. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +0 -71
  609. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +0 -67
  610. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +0 -51
  611. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +0 -55
  612. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +0 -38
  613. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +0 -50
  614. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +0 -44
  615. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +0 -52
  616. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.d.ts +0 -38
  617. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.js +0 -50
  618. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.d.ts +0 -38
  619. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.js +0 -54
  620. package/dist/models/ComponentManifest.d.ts +0 -52
  621. package/dist/models/ComponentManifest.js +0 -56
  622. package/dist/models/ComponentManifestAssets.d.ts +0 -38
  623. package/dist/models/ComponentManifestAssets.js +0 -50
  624. package/dist/models/ComponentManifestConfig.d.ts +0 -44
  625. package/dist/models/ComponentManifestConfig.js +0 -52
  626. package/dist/models/DevelopmentPlan.d.ts +0 -97
  627. package/dist/models/DevelopmentPlan.js +0 -77
  628. package/dist/models/DevelopmentTask.d.ts +0 -90
  629. package/dist/models/DevelopmentTask.js +0 -74
  630. package/dist/models/GenerateComponentWorkflowInput.d.ts +0 -56
  631. package/dist/models/GenerateComponentWorkflowInput.js +0 -62
  632. package/dist/models/GenerateMixedComponentInput.d.ts +0 -62
  633. package/dist/models/GenerateMixedComponentInput.js +0 -66
  634. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  635. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
  636. package/dist/models/GetOrganizationStorageUsage200ResponseDataBreakdown.d.ts +0 -44
  637. package/dist/models/GetOrganizationStorageUsage200ResponseDataBreakdown.js +0 -52
  638. package/dist/models/ListComponents200Response.d.ts +0 -33
  639. package/dist/models/ListComponents200Response.js +0 -49
  640. package/dist/models/LoginUser200Response.d.ts +0 -38
  641. package/dist/models/LoginUser200Response.js +0 -50
  642. package/dist/models/MountRequest.d.ts +0 -45
  643. package/dist/models/MountRequest.js +0 -55
  644. package/dist/models/MountRequestTheme.d.ts +0 -54
  645. package/dist/models/MountRequestTheme.js +0 -62
  646. package/dist/models/MountRequestThemeColors.d.ts +0 -50
  647. package/dist/models/MountRequestThemeColors.js +0 -54
  648. package/dist/models/MountRequestThemeTypography.d.ts +0 -38
  649. package/dist/models/MountRequestThemeTypography.js +0 -50
  650. package/dist/models/MountResponse.d.ts +0 -46
  651. package/dist/models/MountResponse.js +0 -58
  652. package/dist/models/NewWidgetComponentsMetadataInner.d.ts +0 -64
  653. package/dist/models/NewWidgetComponentsMetadataInner.js +0 -60
  654. package/dist/models/NewWidgetComponentsMetadataInnerPosition.d.ts +0 -38
  655. package/dist/models/NewWidgetComponentsMetadataInnerPosition.js +0 -50
  656. package/dist/models/NewWidgetComponentsMetadataInnerSize.d.ts +0 -38
  657. package/dist/models/NewWidgetComponentsMetadataInnerSize.js +0 -50
  658. package/dist/models/PurchaseStoragePack200ResponseDataPaymentIntent.d.ts +0 -50
  659. package/dist/models/PurchaseStoragePack200ResponseDataPaymentIntent.js +0 -54
  660. package/dist/models/RollbackComponent200Response.d.ts +0 -38
  661. package/dist/models/RollbackComponent200Response.js +0 -50
  662. package/dist/models/RollbackComponentRequest.d.ts +0 -38
  663. package/dist/models/RollbackComponentRequest.js +0 -52
  664. package/dist/models/UIComponent.d.ts +0 -65
  665. package/dist/models/UIComponent.js +0 -65
  666. package/dist/models/UpdateCompositionRequest.d.ts +0 -68
  667. package/dist/models/UpdateCompositionRequest.js +0 -60
  668. package/dist/models/WorkflowAcceptedResponse.d.ts +0 -38
  669. package/dist/models/WorkflowAcceptedResponse.js +0 -50
@@ -77,6 +77,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
77
77
  const queryParameters = {};
78
78
  const headerParameters = {};
79
79
  headerParameters['Content-Type'] = 'application/json';
80
+ if (requestParameters['idempotencyKey'] != null) {
81
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
82
+ }
80
83
  if (this.configuration && this.configuration.accessToken) {
81
84
  const token = this.configuration.accessToken;
82
85
  const tokenString = yield token("apiKeyAuth", []);
@@ -273,6 +276,9 @@ export class IntegrationsApi extends runtime.BaseAPI {
273
276
  const queryParameters = {};
274
277
  const headerParameters = {};
275
278
  headerParameters['Content-Type'] = 'application/json';
279
+ if (requestParameters['idempotencyKey'] != null) {
280
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
281
+ }
276
282
  if (this.configuration && this.configuration.accessToken) {
277
283
  const token = this.configuration.accessToken;
278
284
  const tokenString = yield token("apiKeyAuth", []);
@@ -13,6 +13,7 @@ import * as runtime from '../runtime';
13
13
  import type { AcceptInvitation200Response, VerifyInvitation200Response } from '../models/index';
14
14
  export interface AcceptInvitationRequest {
15
15
  orgId: string;
16
+ idempotencyKey?: string;
16
17
  }
17
18
  export interface VerifyInvitationRequest {
18
19
  orgId: string;
@@ -37,6 +37,9 @@ export class InvitationsApi extends runtime.BaseAPI {
37
37
  }
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
+ if (requestParameters['idempotencyKey'] != null) {
41
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
42
+ }
40
43
  if (this.configuration && this.configuration.accessToken) {
41
44
  const token = this.configuration.accessToken;
42
45
  const tokenString = yield token("apiKeyAuth", []);
@@ -13,6 +13,7 @@ import * as runtime from '../runtime';
13
13
  import type { CreateInvoiceRequest, GetInvoicesByPartnerId200Response, UpdateInvoiceStatusRequest } from '../models/index';
14
14
  export interface CreateInvoiceOperationRequest {
15
15
  createInvoiceRequest: CreateInvoiceRequest;
16
+ idempotencyKey?: string;
16
17
  }
17
18
  export interface GetAllInvoicesRequest {
18
19
  status?: string;
@@ -39,6 +40,7 @@ export interface GetInvoicesByUserIdRequest {
39
40
  export interface UpdateInvoiceStatusOperationRequest {
40
41
  id: string;
41
42
  updateInvoiceStatusRequest: UpdateInvoiceStatusRequest;
43
+ idempotencyKey?: string;
42
44
  }
43
45
  /**
44
46
  *
@@ -75,12 +77,12 @@ export declare class InvoicesApi extends runtime.BaseAPI {
75
77
  */
76
78
  getInvoiceById(requestParameters: GetInvoiceByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
77
79
  /**
78
- * Lists the invoices issued to a partner, newest first. A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
80
+ * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
79
81
  * List a partner\'s invoices
80
82
  */
81
83
  getInvoicesByPartnerIdRaw(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetInvoicesByPartnerId200Response>>;
82
84
  /**
83
- * Lists the invoices issued to a partner, newest first. A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
85
+ * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
84
86
  * List a partner\'s invoices
85
87
  */
86
88
  getInvoicesByPartnerId(requestParameters: GetInvoicesByPartnerIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetInvoicesByPartnerId200Response>;
@@ -38,6 +38,9 @@ export class InvoicesApi extends runtime.BaseAPI {
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
40
  headerParameters['Content-Type'] = 'application/json';
41
+ if (requestParameters['idempotencyKey'] != null) {
42
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
43
+ }
41
44
  if (this.configuration && this.configuration.accessToken) {
42
45
  const token = this.configuration.accessToken;
43
46
  const tokenString = yield token("apiKeyAuth", []);
@@ -152,7 +155,7 @@ export class InvoicesApi extends runtime.BaseAPI {
152
155
  });
153
156
  }
154
157
  /**
155
- * Lists the invoices issued to a partner, newest first. A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
158
+ * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
156
159
  * List a partner\'s invoices
157
160
  */
158
161
  getInvoicesByPartnerIdRaw(requestParameters, initOverrides) {
@@ -188,7 +191,7 @@ export class InvoicesApi extends runtime.BaseAPI {
188
191
  });
189
192
  }
190
193
  /**
191
- * Lists the invoices issued to a partner, newest first. A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
194
+ * Lists the invoices issued to a partner, newest first. Each carries the price (`subtotal`), the tax on it (`taxAmount`) and what is paid (`total`), its status as the payment provider reports it, why the last payment failed (`failureReason`), and the page where it is paid (`hostedInvoiceUrl`). A partner reads its own: the caller must be the person who administers the partner (an API key of that account works), and anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can read any partner\'s and see exactly what the partner sees; the full records, with the internal fields, are `getAllInvoices` filtered by partner. The page is always bounded: `limit` defaults to 50 and is capped at 100, `offset` defaults to 0.
192
195
  * List a partner\'s invoices
193
196
  */
194
197
  getInvoicesByPartnerId(requestParameters, initOverrides) {
@@ -258,6 +261,9 @@ export class InvoicesApi extends runtime.BaseAPI {
258
261
  const queryParameters = {};
259
262
  const headerParameters = {};
260
263
  headerParameters['Content-Type'] = 'application/json';
264
+ if (requestParameters['idempotencyKey'] != null) {
265
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
266
+ }
261
267
  if (this.configuration && this.configuration.accessToken) {
262
268
  const token = this.configuration.accessToken;
263
269
  const tokenString = yield token("apiKeyAuth", []);
@@ -12,12 +12,18 @@
12
12
  import * as runtime from '../runtime';
13
13
  export interface McpComponentRegistryPostRequest {
14
14
  body: object;
15
+ idempotencyKey?: string;
15
16
  }
16
17
  export interface McpConsolePostRequest {
17
18
  body: object;
19
+ idempotencyKey?: string;
18
20
  }
19
21
  export interface McpCpgPostRequest {
20
22
  body: object;
23
+ idempotencyKey?: string;
24
+ }
25
+ export interface McpInternalWidgeticPostRequest {
26
+ idempotencyKey?: string;
21
27
  }
22
28
  export interface McpInternalWidgeticSseMessagesPostRequest {
23
29
  sessionId: string;
@@ -80,12 +86,12 @@ export declare class MCPApi extends runtime.BaseAPI {
80
86
  * Internal MCP endpoint for widget-creator, agent harness, and other first-party clients. Uses JWT session auth. Customers\' own agents do not use this endpoint: they connect to the public MCP host (mcp.widgetic.com). Replaces the retired VM IP + MCP-Bridge path.
81
87
  * Internal MCP Endpoint for widget-creator and harness
82
88
  */
83
- mcpInternalWidgeticPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
89
+ mcpInternalWidgeticPostRaw(requestParameters: McpInternalWidgeticPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
84
90
  /**
85
91
  * Internal MCP endpoint for widget-creator, agent harness, and other first-party clients. Uses JWT session auth. Customers\' own agents do not use this endpoint: they connect to the public MCP host (mcp.widgetic.com). Replaces the retired VM IP + MCP-Bridge path.
86
92
  * Internal MCP Endpoint for widget-creator and harness
87
93
  */
88
- mcpInternalWidgeticPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
94
+ mcpInternalWidgeticPost(requestParameters?: McpInternalWidgeticPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
89
95
  /**
90
96
  * Establishes an SSE connection for internal MCP clients (widget-creator harness). Requires JWT auth. Sends an \"endpoint\" event with the URL for POSTing messages.
91
97
  * SSE connection endpoint for MCP-Bridge (Python SDK compatible)
@@ -37,6 +37,9 @@ export class MCPApi extends runtime.BaseAPI {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
39
  headerParameters['Content-Type'] = 'application/json';
40
+ if (requestParameters['idempotencyKey'] != null) {
41
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
42
+ }
40
43
  if (this.configuration && this.configuration.apiKey) {
41
44
  headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
42
45
  }
@@ -72,6 +75,9 @@ export class MCPApi extends runtime.BaseAPI {
72
75
  const queryParameters = {};
73
76
  const headerParameters = {};
74
77
  headerParameters['Content-Type'] = 'application/json';
78
+ if (requestParameters['idempotencyKey'] != null) {
79
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
80
+ }
75
81
  if (this.configuration && this.configuration.apiKey) {
76
82
  headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
77
83
  }
@@ -107,6 +113,9 @@ export class MCPApi extends runtime.BaseAPI {
107
113
  const queryParameters = {};
108
114
  const headerParameters = {};
109
115
  headerParameters['Content-Type'] = 'application/json';
116
+ if (requestParameters['idempotencyKey'] != null) {
117
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
118
+ }
110
119
  if (this.configuration && this.configuration.apiKey) {
111
120
  headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
112
121
  }
@@ -186,10 +195,13 @@ export class MCPApi extends runtime.BaseAPI {
186
195
  * Internal MCP endpoint for widget-creator, agent harness, and other first-party clients. Uses JWT session auth. Customers\' own agents do not use this endpoint: they connect to the public MCP host (mcp.widgetic.com). Replaces the retired VM IP + MCP-Bridge path.
187
196
  * Internal MCP Endpoint for widget-creator and harness
188
197
  */
189
- mcpInternalWidgeticPostRaw(initOverrides) {
198
+ mcpInternalWidgeticPostRaw(requestParameters, initOverrides) {
190
199
  return __awaiter(this, void 0, void 0, function* () {
191
200
  const queryParameters = {};
192
201
  const headerParameters = {};
202
+ if (requestParameters['idempotencyKey'] != null) {
203
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
204
+ }
193
205
  const response = yield this.request({
194
206
  path: `/mcp/internal-widgetic`,
195
207
  method: 'POST',
@@ -203,9 +215,9 @@ export class MCPApi extends runtime.BaseAPI {
203
215
  * Internal MCP endpoint for widget-creator, agent harness, and other first-party clients. Uses JWT session auth. Customers\' own agents do not use this endpoint: they connect to the public MCP host (mcp.widgetic.com). Replaces the retired VM IP + MCP-Bridge path.
204
216
  * Internal MCP Endpoint for widget-creator and harness
205
217
  */
206
- mcpInternalWidgeticPost(initOverrides) {
207
- return __awaiter(this, void 0, void 0, function* () {
208
- yield this.mcpInternalWidgeticPostRaw(initOverrides);
218
+ mcpInternalWidgeticPost() {
219
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
220
+ yield this.mcpInternalWidgeticPostRaw(requestParameters, initOverrides);
209
221
  });
210
222
  }
211
223
  /**
@@ -13,14 +13,17 @@ import * as runtime from '../runtime';
13
13
  import type { CopyMyPresetRequest, CopyPartnerPresetRequest, EditorSession, GetAllManagedUsers200Response, GetManagedUsersByManagerId200Response, ListMyPresets200Response, ManagedUser, ManagedUserUsage, MyPresetCopy, NewEditorSession, NewManagedUser, PartnerPresetCopy, RevokeManagedUserEditorSessions200Response, UpdateManagedUser } from '../models/index';
14
14
  export interface CopyMyPresetOperationRequest {
15
15
  copyMyPresetRequest: CopyMyPresetRequest;
16
+ idempotencyKey?: string;
16
17
  }
17
18
  export interface CopyPresetForManagedUserRequest {
18
19
  id: string;
19
20
  key: string;
21
+ idempotencyKey?: string;
20
22
  copyPartnerPresetRequest?: CopyPartnerPresetRequest;
21
23
  }
22
24
  export interface CreateManagedUserRequest {
23
25
  newManagedUser: NewManagedUser;
26
+ idempotencyKey?: string;
24
27
  }
25
28
  export interface CreateManagedUserEditorSessionRequest {
26
29
  id: string;
@@ -58,6 +61,7 @@ export interface RevokeManagedUserEditorSessionsRequest {
58
61
  export interface UpdateManagedUserRequest {
59
62
  id: string;
60
63
  updateManagedUser: UpdateManagedUser;
64
+ idempotencyKey?: string;
61
65
  }
62
66
  /**
63
67
  *
@@ -94,12 +98,12 @@ export declare class ManagedUsersApi extends runtime.BaseAPI {
94
98
  */
95
99
  createManagedUser(requestParameters: CreateManagedUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ManagedUser>;
96
100
  /**
97
- * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
101
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `max_credits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
98
102
  * Create an editor session for a managed user
99
103
  */
100
104
  createManagedUserEditorSessionRaw(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EditorSession>>;
101
105
  /**
102
- * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
106
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `max_credits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
103
107
  * Create an editor session for a managed user
104
108
  */
105
109
  createManagedUserEditorSession(requestParameters: CreateManagedUserEditorSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EditorSession>;
@@ -38,6 +38,9 @@ export class ManagedUsersApi extends runtime.BaseAPI {
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
40
  headerParameters['Content-Type'] = 'application/json';
41
+ if (requestParameters['idempotencyKey'] != null) {
42
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
43
+ }
41
44
  if (this.configuration && this.configuration.accessToken) {
42
45
  const token = this.configuration.accessToken;
43
46
  const tokenString = yield token("apiKeyAuth", []);
@@ -80,6 +83,9 @@ export class ManagedUsersApi extends runtime.BaseAPI {
80
83
  const queryParameters = {};
81
84
  const headerParameters = {};
82
85
  headerParameters['Content-Type'] = 'application/json';
86
+ if (requestParameters['idempotencyKey'] != null) {
87
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
88
+ }
83
89
  if (this.configuration && this.configuration.accessToken) {
84
90
  const token = this.configuration.accessToken;
85
91
  const tokenString = yield token("apiKeyAuth", []);
@@ -119,6 +125,9 @@ export class ManagedUsersApi extends runtime.BaseAPI {
119
125
  const queryParameters = {};
120
126
  const headerParameters = {};
121
127
  headerParameters['Content-Type'] = 'application/json';
128
+ if (requestParameters['idempotencyKey'] != null) {
129
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
130
+ }
122
131
  if (this.configuration && this.configuration.accessToken) {
123
132
  const token = this.configuration.accessToken;
124
133
  const tokenString = yield token("apiKeyAuth", []);
@@ -147,7 +156,7 @@ export class ManagedUsersApi extends runtime.BaseAPI {
147
156
  });
148
157
  }
149
158
  /**
150
- * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
159
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `max_credits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
151
160
  * Create an editor session for a managed user
152
161
  */
153
162
  createManagedUserEditorSessionRaw(requestParameters, initOverrides) {
@@ -179,7 +188,7 @@ export class ManagedUsersApi extends runtime.BaseAPI {
179
188
  });
180
189
  }
181
190
  /**
182
- * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
191
+ * Makes a short-lived credential that lets the browser of ONE of your managed users use Widgetic\'s editor pieces, such as the File Browser and the composition editor, without your API key ever reaching that browser. Call this from your server when the page that hosts the editor opens, and hand the `token` in the answer to that page. The token is shown once. It starts with `wgt_ses_` and the browser sends it as `Authorization: Bearer <token>`. It can do only what the `surfaces` you name allow, and only for this managed user: - `files`: upload a file (`uploadsPost`) and list the files uploaded for this user (`uploadsGet`). Every file is filed for this user and stored in your own storage destination, never in Widgetic\'s: a file a customer uploads is yours to keep, and takes none of your storage allowance. Partner storage is not optional, so no session, whatever its surfaces, can be made until you have set a destination (`setPartnerStorageDestination`); until then it is refused with 409 and `PARTNER_STORAGE_REQUIRED`, and when the destination cannot be used with 503 and `STORAGE_DESTINATION_UNAVAILABLE`. A destination you remove after the session was made stops its uploads too (the same 409; the browser is only told that the feature is not available right now). To keep a customer from uploading, leave `files` out of the session and hand the editors your own media library instead (`mediaLibrary`). - `editor`: edit one of this user\'s compositions: read it (`getCompositionById`, its content, design, embed settings and schemas), check a content change (`validateCompositionContent`), and change its name, content, design and embed settings (`updateComposition`, `setDynamicContent`). It can reach only compositions you created for this managed user (tag them with `managedUserId` when you create them); any other composition, including another of your users\', answers 404. - `creator`: use Widgetic\'s widget creator for this user, including its AI. Draw on canvases and save them (`getAllCanvases`, `getCanvas`, `createCanvas`, `updateCanvas`, `previewDeleteCanvas`, `deleteCanvas`); make, change, copy and delete the widgets on them (`createWidget`, `getWidgets`, `getWidgetsBatch`, `updateWidget`, `uploadWidgetThumbnail`, `duplicateWidget`, `deleteWidget`); list and make the compositions of a widget it built (`getAllCompositions`, `createComposition`), which is how it shows the widget with sample values; read and add their components (`getComponentsByWidgetId`, `createComponent`); keep the conversation of each widget (`getConversationsByWidgetId`, `createConversationForWidget`, `updateConversation`, `getMessages`, `createMessage`, `updateMessage`, `restoreCheckpoint`); and read a widget\'s schemas and give it its repository (`getWidgetContentSchema`, `getWidgetDesignSchema`, `updateWidgetRepository`). The AI that builds a widget is part of it: list the models (`agentModelsGet`), open the widget\'s repository (`agentRepositoriesPost`, `agentRepositoriesRepoIdGet`), start a generation and follow or cancel it (`agentCodeGeneratePost`, `operationsStreamGet`, `operationsIdGet`, `operationsIdCancelPost`), build and preview the result (`agentWidgetBuilderRepoHeadWidgetIdGet`, `buildWidgetFromRepo`, `previewWidgetVersion`), publish a version of the widget and move between its versions (`agentWidgetBuilderPublishWidgetIdPost`, `getWidgetPublishHistory`, `setWidgetPublishHistoryLive`, `renameWidgetPublishHistoryTitle`), and turn a stroke or a sentence into a decision (`agentShapeRecognizePost`, `agentDesignResolvePost`). It can also offer the customer your presets as starting points: read them and ask for a copy for this customer (`listMyPresets`, `copyMyPreset`; you choose the presets with `setPartnerPreset`). What the session makes is filed for this managed user, and the lists it reads hold only this user\'s canvases, widgets and compositions. It can reach only canvases, widgets, compositions, repositories, uploaded files and operations made for this managed user (tag the canvases and widgets you create with `managedUserId`); any other canvas, widget, composition, conversation, message, repository, file or operation, including another of your users\', answers 404. The creator also saves the composition it is editing (`updateComposition`, from the `editor` surface) and attaches pictures to its chat (`uploadsPost`, from the `files` surface), and the surfaces do not imply one another: to open the whole creator for a user, ask for `creator`, `editor` and `files` together. A generation or a build one user starts can be followed and cancelled by that user and by you, never by another of your users. The AI is paid for by your account, as your own calls are: its credits and allowances are yours. A session cannot make a widget public (publishing a version does not), file one under a project or an organization, or set anything the creator does not set: a body with another field is refused with 403 and `EDITOR_SESSION_FIELD_NOT_ALLOWED`. Everything else is refused with 403 and `EDITOR_SESSION_ROUTE_NOT_ALLOWED`: a session cannot read your account, make more sessions, change your presets or delete a composition, and a session without the `creator` surface cannot create or list compositions. Create the composition yourself with your API key, then open the editor on it. A session ends at `expiresAt` (at most four hours), when you end it (`revokeManagedUserEditorSession`), or when the managed user is switched off or deleted. A managed user can have at most 100 live sessions at once (`429 EDITOR_SESSION_LIMIT_REACHED`). A session that is bound to a web page (`allowed_origin`) is refused from any other origin. The AI the session runs is paid for with your credits. Set `max_credits` to hold the session to a number of them: once its generations have taken that many (a generation that fails is refunded and does not count), the next one is refused with 402 and `EDITOR_SESSION_CREDIT_LIMIT_REACHED`, and the browser is told only that the feature is not available right now. Without it, the limit Widgetic has set for your account applies when it has set one (the same limit for every session you make, and `max_credits: null` asks for none), and otherwise the credits of your account are the only ceiling. What each of your users\' sessions has spent is in `getManagedUserUsage`. Each call makes a new session. It does not take an `Idempotency-Key`: the answer holds the token, and the token is never stored where a retry could read it back. The answer is sent with `Cache-Control: no-store`.
183
192
  * Create an editor session for a managed user
184
193
  */
185
194
  createManagedUserEditorSession(requestParameters, initOverrides) {
@@ -518,6 +527,9 @@ export class ManagedUsersApi extends runtime.BaseAPI {
518
527
  const queryParameters = {};
519
528
  const headerParameters = {};
520
529
  headerParameters['Content-Type'] = 'application/json';
530
+ if (requestParameters['idempotencyKey'] != null) {
531
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
532
+ }
521
533
  if (this.configuration && this.configuration.accessToken) {
522
534
  const token = this.configuration.accessToken;
523
535
  const tokenString = yield token("apiKeyAuth", []);
@@ -14,6 +14,7 @@ import type { CreateMessageRequest, RestoreCheckpointRequest, UpdateMessageReque
14
14
  export interface CreateMessageOperationRequest {
15
15
  conversationId: string;
16
16
  createMessageRequest: CreateMessageRequest;
17
+ idempotencyKey?: string;
17
18
  }
18
19
  export interface DeleteMessageRequest {
19
20
  conversationId: string;
@@ -37,6 +38,7 @@ export interface UpdateMessageOperationRequest {
37
38
  conversationId: string;
38
39
  messageId: string;
39
40
  updateMessageRequest: UpdateMessageRequest;
41
+ idempotencyKey?: string;
40
42
  }
41
43
  /**
42
44
  *
@@ -41,6 +41,9 @@ export class MessagesApi extends runtime.BaseAPI {
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
43
  headerParameters['Content-Type'] = 'application/json';
44
+ if (requestParameters['idempotencyKey'] != null) {
45
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
46
+ }
44
47
  if (this.configuration && this.configuration.accessToken) {
45
48
  const token = this.configuration.accessToken;
46
49
  const tokenString = yield token("apiKeyAuth", []);
@@ -249,6 +252,9 @@ export class MessagesApi extends runtime.BaseAPI {
249
252
  const queryParameters = {};
250
253
  const headerParameters = {};
251
254
  headerParameters['Content-Type'] = 'application/json';
255
+ if (requestParameters['idempotencyKey'] != null) {
256
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
257
+ }
252
258
  if (this.configuration && this.configuration.accessToken) {
253
259
  const token = this.configuration.accessToken;
254
260
  const tokenString = yield token("apiKeyAuth", []);
@@ -13,6 +13,7 @@ import * as runtime from '../runtime';
13
13
  import type { OperationsIdGet200Response } from '../models/index';
14
14
  export interface OperationsIdCancelPostRequest {
15
15
  id: string;
16
+ idempotencyKey?: string;
16
17
  }
17
18
  export interface OperationsIdGetRequest {
18
19
  id: string;
@@ -25,12 +26,12 @@ export interface OperationsStreamGetRequest {
25
26
  */
26
27
  export declare class OperationsApi extends runtime.BaseAPI {
27
28
  /**
28
- * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running.
29
+ * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running. Cancelling stops the work, not only the record of it. The request to the model is aborted, so the model stops writing, and the run ends at its next checkpoint without building a preview or saving anything. This holds wherever the run is happening: a stop sent to one server reaches a run that is working on another. The credit of a generation is settled by how far the run had got. A run stopped before the model began to write has shown the person nothing, so its credit is returned. A run stopped after the answer began to stream keeps its credit: the output was shown, and the model was paid for it. A generation costs one whole credit, so there is no part to return; the credit comes back whole or not at all. Cancelling an operation that has already ended (finished, failed or cancelled) changes nothing and returns it as it stands.
29
30
  * Cancel an in-flight operation
30
31
  */
31
32
  operationsIdCancelPostRaw(requestParameters: OperationsIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
32
33
  /**
33
- * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running.
34
+ * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running. Cancelling stops the work, not only the record of it. The request to the model is aborted, so the model stops writing, and the run ends at its next checkpoint without building a preview or saving anything. This holds wherever the run is happening: a stop sent to one server reaches a run that is working on another. The credit of a generation is settled by how far the run had got. A run stopped before the model began to write has shown the person nothing, so its credit is returned. A run stopped after the answer began to stream keeps its credit: the output was shown, and the model was paid for it. A generation costs one whole credit, so there is no part to return; the credit comes back whole or not at all. Cancelling an operation that has already ended (finished, failed or cancelled) changes nothing and returns it as it stands.
34
35
  * Cancel an in-flight operation
35
36
  */
36
37
  operationsIdCancelPost(requestParameters: OperationsIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -27,7 +27,7 @@ import { OperationsIdGet200ResponseFromJSON, } from '../models/index.js';
27
27
  */
28
28
  export class OperationsApi extends runtime.BaseAPI {
29
29
  /**
30
- * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running.
30
+ * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running. Cancelling stops the work, not only the record of it. The request to the model is aborted, so the model stops writing, and the run ends at its next checkpoint without building a preview or saving anything. This holds wherever the run is happening: a stop sent to one server reaches a run that is working on another. The credit of a generation is settled by how far the run had got. A run stopped before the model began to write has shown the person nothing, so its credit is returned. A run stopped after the answer began to stream keeps its credit: the output was shown, and the model was paid for it. A generation costs one whole credit, so there is no part to return; the credit comes back whole or not at all. Cancelling an operation that has already ended (finished, failed or cancelled) changes nothing and returns it as it stands.
31
31
  * Cancel an in-flight operation
32
32
  */
33
33
  operationsIdCancelPostRaw(requestParameters, initOverrides) {
@@ -37,6 +37,9 @@ export class OperationsApi extends runtime.BaseAPI {
37
37
  }
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
+ if (requestParameters['idempotencyKey'] != null) {
41
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
42
+ }
40
43
  if (this.configuration && this.configuration.accessToken) {
41
44
  const token = this.configuration.accessToken;
42
45
  const tokenString = yield token("bearerAuth", []);
@@ -54,7 +57,7 @@ export class OperationsApi extends runtime.BaseAPI {
54
57
  });
55
58
  }
56
59
  /**
57
- * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running.
60
+ * An operation belongs to the user who started it, and only that user (or an administrator) can cancel it. Cancelling somebody else\'s operation answers 404, exactly as for one that does not exist, and leaves it running. Cancelling stops the work, not only the record of it. The request to the model is aborted, so the model stops writing, and the run ends at its next checkpoint without building a preview or saving anything. This holds wherever the run is happening: a stop sent to one server reaches a run that is working on another. The credit of a generation is settled by how far the run had got. A run stopped before the model began to write has shown the person nothing, so its credit is returned. A run stopped after the answer began to stream keeps its credit: the output was shown, and the model was paid for it. A generation costs one whole credit, so there is no part to return; the credit comes back whole or not at all. Cancelling an operation that has already ended (finished, failed or cancelled) changes nothing and returns it as it stands.
58
61
  * Cancel an in-flight operation
59
62
  */
60
63
  operationsIdCancelPost(requestParameters, initOverrides) {
@@ -25,18 +25,20 @@ export interface CancelInvitationRequest {
25
25
  }
26
26
  export interface CancelStoragePackOperationRequest {
27
27
  orgId: string;
28
- idempotencyKey: string;
29
28
  cancelStoragePackRequest: CancelStoragePackRequest;
29
+ idempotencyKey?: string;
30
30
  }
31
31
  export interface CleanupOrphanedInvitationsOperationRequest {
32
32
  cleanupOrphanedInvitationsRequest?: CleanupOrphanedInvitationsRequest;
33
33
  }
34
34
  export interface CreateOrganizationOperationRequest {
35
35
  createOrganizationRequest: CreateOrganizationRequest;
36
+ idempotencyKey?: string;
36
37
  }
37
38
  export interface CreateOrganizationApiKeyOperationRequest {
38
39
  orgId: string;
39
40
  createOrganizationApiKeyRequest: CreateOrganizationApiKeyRequest;
41
+ idempotencyKey?: string;
40
42
  }
41
43
  export interface CreateOrganizationTranslationOperationRequest {
42
44
  orgId: string;
@@ -129,6 +131,7 @@ export interface GetStoragePacksRequest {
129
131
  export interface InviteOrganizationMemberOperationRequest {
130
132
  orgId: string;
131
133
  inviteOrganizationMemberRequest: InviteOrganizationMemberRequest;
134
+ idempotencyKey?: string;
132
135
  }
133
136
  export interface LeaveOrganizationRequest {
134
137
  orgId: string;
@@ -160,17 +163,21 @@ export interface OrganizationsOrgIdBillingPaymentMethodsGetRequest {
160
163
  export interface OrganizationsOrgIdBillingPaymentMethodsPostOperationRequest {
161
164
  orgId: string;
162
165
  organizationsOrgIdBillingPaymentMethodsPostRequest: OrganizationsOrgIdBillingPaymentMethodsPostRequest;
166
+ idempotencyKey?: string;
163
167
  }
164
168
  export interface OrganizationsOrgIdBillingPaymentMethodsSetupIntentPostRequest {
165
169
  orgId: string;
170
+ idempotencyKey?: string;
166
171
  }
167
172
  export interface OrganizationsOrgIdBillingPortalPostOperationRequest {
168
173
  orgId: string;
174
+ idempotencyKey?: string;
169
175
  organizationsOrgIdBillingPortalPostRequest?: OrganizationsOrgIdBillingPortalPostRequest;
170
176
  }
171
177
  export interface OrganizationsOrgIdBillingUpgradePostOperationRequest {
172
178
  orgId: string;
173
179
  organizationsOrgIdBillingUpgradePostRequest: OrganizationsOrgIdBillingUpgradePostRequest;
180
+ idempotencyKey?: string;
174
181
  }
175
182
  export interface OrganizationsOrgIdBillingYearlyApplyCreditsPostRequest {
176
183
  orgId: string;
@@ -196,11 +203,12 @@ export interface OrganizationsOrgIdBillingYearlyPricingComparisonGetRequest {
196
203
  export interface OrganizationsOrgIdBillingYearlySubscriptionPostOperationRequest {
197
204
  orgId: string;
198
205
  organizationsOrgIdBillingYearlySubscriptionPostRequest: OrganizationsOrgIdBillingYearlySubscriptionPostRequest;
206
+ idempotencyKey?: string;
199
207
  }
200
208
  export interface PurchaseStoragePackOperationRequest {
201
209
  orgId: string;
202
- idempotencyKey: string;
203
210
  purchaseStoragePackRequest: PurchaseStoragePackRequest;
211
+ idempotencyKey?: string;
204
212
  }
205
213
  export interface ReactivateMemberOperationRequest {
206
214
  orgId: string;