@widgetic/api-sdk 1.0.21 → 1.0.23

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 (245) hide show
  1. package/dist/apis/AdminBillingApi.d.ts +92 -1
  2. package/dist/apis/AdminBillingApi.js +246 -1
  3. package/dist/apis/AgentApi.d.ts +2 -2
  4. package/dist/apis/AgentApi.js +2 -2
  5. package/dist/apis/AuthenticationApi.d.ts +12 -1
  6. package/dist/apis/AuthenticationApi.js +31 -0
  7. package/dist/apis/BillingApi.js +13 -13
  8. package/dist/apis/CompositionsApi.d.ts +5 -5
  9. package/dist/apis/CompositionsApi.js +3 -3
  10. package/dist/apis/CreditsApi.d.ts +4 -4
  11. package/dist/apis/CreditsApi.js +4 -4
  12. package/dist/apis/MCPApi.d.ts +6 -6
  13. package/dist/apis/MCPApi.js +15 -6
  14. package/dist/apis/NoticesApi.d.ts +41 -0
  15. package/dist/apis/NoticesApi.js +103 -0
  16. package/dist/apis/OrganizationsApi.d.ts +17 -4
  17. package/dist/apis/OrganizationsApi.js +41 -4
  18. package/dist/apis/SubscriptionsApi.d.ts +32 -4
  19. package/dist/apis/SubscriptionsApi.js +82 -5
  20. package/dist/apis/WidgetsApi.d.ts +19 -35
  21. package/dist/apis/WidgetsApi.js +32 -32
  22. package/dist/apis/WorkflowsApi.d.ts +2 -2
  23. package/dist/apis/WorkflowsApi.js +2 -2
  24. package/dist/apis/index.d.ts +1 -0
  25. package/dist/apis/index.js +1 -0
  26. package/dist/esm/apis/AdminBillingApi.d.ts +92 -1
  27. package/dist/esm/apis/AdminBillingApi.js +246 -1
  28. package/dist/esm/apis/AgentApi.d.ts +2 -2
  29. package/dist/esm/apis/AgentApi.js +2 -2
  30. package/dist/esm/apis/AuthenticationApi.d.ts +12 -1
  31. package/dist/esm/apis/AuthenticationApi.js +32 -1
  32. package/dist/esm/apis/BillingApi.js +13 -13
  33. package/dist/esm/apis/CompositionsApi.d.ts +5 -5
  34. package/dist/esm/apis/CompositionsApi.js +4 -4
  35. package/dist/esm/apis/CreditsApi.d.ts +4 -4
  36. package/dist/esm/apis/CreditsApi.js +4 -4
  37. package/dist/esm/apis/MCPApi.d.ts +6 -6
  38. package/dist/esm/apis/MCPApi.js +15 -6
  39. package/dist/esm/apis/NoticesApi.d.ts +41 -0
  40. package/dist/esm/apis/NoticesApi.js +99 -0
  41. package/dist/esm/apis/OrganizationsApi.d.ts +17 -4
  42. package/dist/esm/apis/OrganizationsApi.js +41 -4
  43. package/dist/esm/apis/SubscriptionsApi.d.ts +32 -4
  44. package/dist/esm/apis/SubscriptionsApi.js +83 -6
  45. package/dist/esm/apis/WidgetsApi.d.ts +19 -35
  46. package/dist/esm/apis/WidgetsApi.js +33 -33
  47. package/dist/esm/apis/WorkflowsApi.d.ts +2 -2
  48. package/dist/esm/apis/WorkflowsApi.js +2 -2
  49. package/dist/esm/apis/index.d.ts +1 -0
  50. package/dist/esm/apis/index.js +1 -0
  51. package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
  52. package/dist/esm/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
  53. package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
  54. package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +41 -0
  55. package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
  56. package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +43 -0
  57. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
  58. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +44 -0
  59. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
  60. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +50 -0
  61. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
  62. package/dist/esm/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +53 -0
  63. package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
  64. package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
  65. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
  66. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +59 -0
  67. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  68. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +48 -0
  69. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
  70. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +62 -0
  71. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
  72. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +44 -0
  73. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
  74. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +42 -0
  75. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  76. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +51 -0
  77. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
  78. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +44 -0
  79. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
  80. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +42 -0
  81. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
  82. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +43 -0
  83. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  84. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +44 -0
  85. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  86. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +47 -0
  87. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
  88. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +44 -0
  89. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
  90. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +41 -0
  91. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
  92. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +41 -0
  93. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
  94. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
  95. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
  96. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +59 -0
  97. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  98. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +48 -0
  99. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
  100. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +43 -0
  101. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
  102. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +45 -0
  103. package/dist/esm/models/ConfigureAutoReloadRequest.d.ts +6 -0
  104. package/dist/esm/models/ConfigureAutoReloadRequest.js +2 -0
  105. package/dist/esm/models/CreateMessageRequest.d.ts +13 -0
  106. package/dist/esm/models/CreateMessageRequest.js +2 -0
  107. package/dist/esm/models/GenerateCodeRequest.d.ts +54 -0
  108. package/dist/esm/models/GenerateCodeRequest.js +18 -0
  109. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
  110. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.js +43 -0
  111. package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
  112. package/dist/esm/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
  113. package/dist/esm/models/ListAccountNotices200Response.d.ts +39 -0
  114. package/dist/esm/models/ListAccountNotices200Response.js +44 -0
  115. package/dist/esm/models/ListAccountNotices200ResponseData.d.ts +33 -0
  116. package/dist/esm/models/ListAccountNotices200ResponseData.js +42 -0
  117. package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
  118. package/dist/esm/models/ListAccountNotices200ResponseDataNoticesInner.js +53 -0
  119. package/dist/esm/models/LoginUser200Response.d.ts +38 -0
  120. package/dist/esm/models/LoginUser200Response.js +43 -0
  121. package/dist/esm/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
  122. package/dist/esm/models/MoveSubscriptionSurfaceRequest.js +56 -0
  123. package/dist/esm/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
  124. package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
  125. package/dist/esm/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
  126. package/dist/esm/models/ProcessRefund200Response.d.ts +6 -0
  127. package/dist/esm/models/ProcessRefund200Response.js +2 -0
  128. package/dist/esm/models/RefundRequest.d.ts +10 -4
  129. package/dist/esm/models/RefundRequest.js +4 -4
  130. package/dist/esm/models/RollbackComponent200Response.d.ts +38 -0
  131. package/dist/esm/models/RollbackComponent200Response.js +43 -0
  132. package/dist/esm/models/SignupUserRequest.d.ts +12 -0
  133. package/dist/esm/models/SignupUserRequest.js +4 -0
  134. package/dist/esm/models/UpdateSubscription.d.ts +30 -8
  135. package/dist/esm/models/UpdateSubscription.js +21 -8
  136. package/dist/esm/models/UploadWidgetThumbnail200Response.d.ts +39 -0
  137. package/dist/esm/models/UploadWidgetThumbnail200Response.js +44 -0
  138. package/dist/esm/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
  139. package/dist/esm/models/UploadWidgetThumbnail200ResponseData.js +41 -0
  140. package/dist/esm/models/UploadWidgetThumbnailRequest.d.ts +32 -0
  141. package/dist/esm/models/UploadWidgetThumbnailRequest.js +43 -0
  142. package/dist/esm/models/ValidateInviteCode200Response.d.ts +39 -0
  143. package/dist/esm/models/ValidateInviteCode200Response.js +44 -0
  144. package/dist/esm/models/ValidateInviteCode200ResponseData.d.ts +44 -0
  145. package/dist/esm/models/ValidateInviteCode200ResponseData.js +45 -0
  146. package/dist/esm/models/index.d.ts +26 -1
  147. package/dist/esm/models/index.js +26 -1
  148. package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.d.ts +18 -0
  149. package/dist/models/AgentWidgetBuilderPublishWidgetIdPost200ResponseData.js +6 -0
  150. package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
  151. package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +48 -0
  152. package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
  153. package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +50 -0
  154. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.d.ts +39 -0
  155. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200Response.js +51 -0
  156. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.d.ts +57 -0
  157. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseData.js +57 -0
  158. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.d.ts +68 -0
  159. package/dist/models/ApiV1AdminBillingRefundsClawbacksGet200ResponseDataClawbacksInner.js +60 -0
  160. package/dist/models/ApiV1AdminBillingRefundsPostRequest.d.ts +8 -8
  161. package/dist/models/ApiV1AdminBillingRefundsPostRequest.js +4 -4
  162. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
  163. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +67 -0
  164. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  165. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +55 -0
  166. package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
  167. package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +70 -0
  168. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +39 -0
  169. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +51 -0
  170. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +33 -0
  171. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +49 -0
  172. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  173. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
  174. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +39 -0
  175. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +51 -0
  176. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +33 -0
  177. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +49 -0
  178. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +32 -0
  179. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +50 -0
  180. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  181. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +51 -0
  182. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  183. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
  184. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +39 -0
  185. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +51 -0
  186. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +32 -0
  187. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +48 -0
  188. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +32 -0
  189. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +48 -0
  190. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +1 -2
  191. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +1 -2
  192. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
  193. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +67 -0
  194. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  195. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +55 -0
  196. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
  197. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +50 -0
  198. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
  199. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +52 -0
  200. package/dist/models/ConfigureAutoReloadRequest.d.ts +6 -0
  201. package/dist/models/ConfigureAutoReloadRequest.js +2 -0
  202. package/dist/models/CreateMessageRequest.d.ts +13 -0
  203. package/dist/models/CreateMessageRequest.js +2 -0
  204. package/dist/models/GenerateCodeRequest.d.ts +54 -0
  205. package/dist/models/GenerateCodeRequest.js +18 -0
  206. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +38 -0
  207. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +50 -0
  208. package/dist/models/GetWidgetPublishHistory200ResponseDataInner.d.ts +13 -1
  209. package/dist/models/GetWidgetPublishHistory200ResponseDataInner.js +4 -0
  210. package/dist/models/ListAccountNotices200Response.d.ts +39 -0
  211. package/dist/models/ListAccountNotices200Response.js +51 -0
  212. package/dist/models/ListAccountNotices200ResponseData.d.ts +33 -0
  213. package/dist/models/ListAccountNotices200ResponseData.js +49 -0
  214. package/dist/models/ListAccountNotices200ResponseDataNoticesInner.d.ts +68 -0
  215. package/dist/models/ListAccountNotices200ResponseDataNoticesInner.js +60 -0
  216. package/dist/models/LoginUser200Response.d.ts +38 -0
  217. package/dist/models/LoginUser200Response.js +50 -0
  218. package/dist/models/MoveSubscriptionSurfaceRequest.d.ts +58 -0
  219. package/dist/models/MoveSubscriptionSurfaceRequest.js +64 -0
  220. package/dist/models/OrganizationsOrgIdBillingMembersUpdatePostRequest.d.ts +1 -1
  221. package/dist/models/OrganizationsOrgIdBillingYearlyMembersAddPostRequest.d.ts +1 -1
  222. package/dist/models/OrganizationsOrgIdBillingYearlyMembersRemovePostRequest.d.ts +1 -1
  223. package/dist/models/ProcessRefund200Response.d.ts +6 -0
  224. package/dist/models/ProcessRefund200Response.js +2 -0
  225. package/dist/models/RefundRequest.d.ts +10 -4
  226. package/dist/models/RefundRequest.js +4 -4
  227. package/dist/models/RollbackComponent200Response.d.ts +38 -0
  228. package/dist/models/RollbackComponent200Response.js +50 -0
  229. package/dist/models/SignupUserRequest.d.ts +12 -0
  230. package/dist/models/SignupUserRequest.js +4 -0
  231. package/dist/models/UpdateSubscription.d.ts +30 -8
  232. package/dist/models/UpdateSubscription.js +22 -9
  233. package/dist/models/UploadWidgetThumbnail200Response.d.ts +39 -0
  234. package/dist/models/UploadWidgetThumbnail200Response.js +51 -0
  235. package/dist/models/UploadWidgetThumbnail200ResponseData.d.ts +32 -0
  236. package/dist/models/UploadWidgetThumbnail200ResponseData.js +48 -0
  237. package/dist/models/UploadWidgetThumbnailRequest.d.ts +32 -0
  238. package/dist/models/UploadWidgetThumbnailRequest.js +50 -0
  239. package/dist/models/ValidateInviteCode200Response.d.ts +39 -0
  240. package/dist/models/ValidateInviteCode200Response.js +51 -0
  241. package/dist/models/ValidateInviteCode200ResponseData.d.ts +44 -0
  242. package/dist/models/ValidateInviteCode200ResponseData.js +52 -0
  243. package/dist/models/index.d.ts +26 -1
  244. package/dist/models/index.js +26 -1
  245. package/package.json +1 -1
@@ -1526,6 +1526,43 @@ export class OrganizationsApi extends runtime.BaseAPI {
1526
1526
  return yield response.value();
1527
1527
  });
1528
1528
  }
1529
+ /**
1530
+ * Per-member Teams allowance view for the organization\'s live billing period: what each billable member was granted, what they have spent, what they hold now, and whether they are blocked from generating. `blocked: true` covers both a member who **spent** their allowance (ordinary exhaustion — compare `used` with `periodAllowance`) and a member who **never received** it (the deliberate re-add gap the owner notice reports — `used: 0` with no or small `periodAllowance`). The two rows read differently, so the owner can tell them apart without waiting for an email. A `blocked: null` is an unreadable balance, reported as unknown rather than guessed. Rows arrive blocked-first, so a gapped member is at the top of the list. Suspended members are not listed: they hold no seat, so they are not blocked, and no payment changes that.
1531
+ * Show each member\'s credit allowance for the current period
1532
+ */
1533
+ organizationsOrgIdBillingMemberAllowancesGetRaw(requestParameters, initOverrides) {
1534
+ return __awaiter(this, void 0, void 0, function* () {
1535
+ if (requestParameters['orgId'] == null) {
1536
+ throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling organizationsOrgIdBillingMemberAllowancesGet().');
1537
+ }
1538
+ const queryParameters = {};
1539
+ const headerParameters = {};
1540
+ if (this.configuration && this.configuration.accessToken) {
1541
+ const token = this.configuration.accessToken;
1542
+ const tokenString = yield token("BearerAuth", []);
1543
+ if (tokenString) {
1544
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1545
+ }
1546
+ }
1547
+ const response = yield this.request({
1548
+ path: `/organizations/{orgId}/billing/member-allowances`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
1549
+ method: 'GET',
1550
+ headers: headerParameters,
1551
+ query: queryParameters,
1552
+ }, initOverrides);
1553
+ return new runtime.JSONApiResponse(response);
1554
+ });
1555
+ }
1556
+ /**
1557
+ * Per-member Teams allowance view for the organization\'s live billing period: what each billable member was granted, what they have spent, what they hold now, and whether they are blocked from generating. `blocked: true` covers both a member who **spent** their allowance (ordinary exhaustion — compare `used` with `periodAllowance`) and a member who **never received** it (the deliberate re-add gap the owner notice reports — `used: 0` with no or small `periodAllowance`). The two rows read differently, so the owner can tell them apart without waiting for an email. A `blocked: null` is an unreadable balance, reported as unknown rather than guessed. Rows arrive blocked-first, so a gapped member is at the top of the list. Suspended members are not listed: they hold no seat, so they are not blocked, and no payment changes that.
1558
+ * Show each member\'s credit allowance for the current period
1559
+ */
1560
+ organizationsOrgIdBillingMemberAllowancesGet(requestParameters, initOverrides) {
1561
+ return __awaiter(this, void 0, void 0, function* () {
1562
+ const response = yield this.organizationsOrgIdBillingMemberAllowancesGetRaw(requestParameters, initOverrides);
1563
+ return yield response.value();
1564
+ });
1565
+ }
1529
1566
  /**
1530
1567
  * Update organization member count with proration
1531
1568
  */
@@ -1864,7 +1901,7 @@ export class OrganizationsApi extends runtime.BaseAPI {
1864
1901
  });
1865
1902
  }
1866
1903
  /**
1867
- * Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
1904
+ * Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration. Supplying `memberEmail` (the member being added, by email) resolves that member and runs their provisioning pass specifically, so a re-added member whose period allowance was already spent is reported to the owner at add time instead of at the next hourly audit. The response\'s `member` block carries the resolved identity and whether their seat currently holds a spendable allowance (`allowanceGap`: true gapped, false holds credits, null unknown or nobody named/resolved).
1868
1905
  * Add member to yearly subscription
1869
1906
  */
1870
1907
  organizationsOrgIdBillingYearlyMembersAddPostRaw(requestParameters, initOverrides) {
@@ -1896,7 +1933,7 @@ export class OrganizationsApi extends runtime.BaseAPI {
1896
1933
  });
1897
1934
  }
1898
1935
  /**
1899
- * Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
1936
+ * Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration. Supplying `memberEmail` (the member being added, by email) resolves that member and runs their provisioning pass specifically, so a re-added member whose period allowance was already spent is reported to the owner at add time instead of at the next hourly audit. The response\'s `member` block carries the resolved identity and whether their seat currently holds a spendable allowance (`allowanceGap`: true gapped, false holds credits, null unknown or nobody named/resolved).
1900
1937
  * Add member to yearly subscription
1901
1938
  */
1902
1939
  organizationsOrgIdBillingYearlyMembersAddPost(requestParameters, initOverrides) {
@@ -1906,7 +1943,7 @@ export class OrganizationsApi extends runtime.BaseAPI {
1906
1943
  });
1907
1944
  }
1908
1945
  /**
1909
- * Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
1946
+ * Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund). Supplying `memberEmail` (the member being removed, by email) names them in the accumulated-credit ledger row and in the response, so the credit the contract banks is attributable to a person. The member is resolved by account, not by membership: by the time this is called the removal has already taken their seat away, which is exactly when naming them matters. This endpoint does **not** withhold the member\'s Teams allowance — the seat-loss paths do that and report it, and this call can be a count correction for a member who stays in the organization.
1910
1947
  * Remove member from yearly subscription
1911
1948
  */
1912
1949
  organizationsOrgIdBillingYearlyMembersRemovePostRaw(requestParameters, initOverrides) {
@@ -1938,7 +1975,7 @@ export class OrganizationsApi extends runtime.BaseAPI {
1938
1975
  });
1939
1976
  }
1940
1977
  /**
1941
- * Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
1978
+ * Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund). Supplying `memberEmail` (the member being removed, by email) names them in the accumulated-credit ledger row and in the response, so the credit the contract banks is attributable to a person. The member is resolved by account, not by membership: by the time this is called the removal has already taken their seat away, which is exactly when naming them matters. This endpoint does **not** withhold the member\'s Teams allowance — the seat-loss paths do that and report it, and this call can be a count correction for a member who stays in the organization.
1942
1979
  * Remove member from yearly subscription
1943
1980
  */
1944
1981
  organizationsOrgIdBillingYearlyMembersRemovePost(requestParameters, initOverrides) {
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetBillingReports200ResponseInner, NewSubscription, ProcessRefund200Response, RefundRequest, Subscription, UpdateSubscription } from '../models/index';
13
+ import type { ApiV1SubscriptionsIdRefundPreviewPost200Response, ApiV1SubscriptionsIdRefundPreviewPostRequest, GetBillingReports200ResponseInner, MoveSubscriptionSurfaceRequest, NewSubscription, ProcessRefund200Response, RefundRequest, Subscription, UpdateSubscription } from '../models/index';
14
+ export interface ApiV1SubscriptionsIdRefundPreviewPostOperationRequest {
15
+ id: string;
16
+ apiV1SubscriptionsIdRefundPreviewPostRequest?: ApiV1SubscriptionsIdRefundPreviewPostRequest;
17
+ }
14
18
  export interface CreateSubscriptionRequest {
15
19
  newSubscription: NewSubscription;
16
20
  }
@@ -35,9 +39,13 @@ export interface GetSubscriptionsByUserIdRequest {
35
39
  limit?: number;
36
40
  offset?: number;
37
41
  }
42
+ export interface MoveSubscriptionSurfaceOperationRequest {
43
+ id: string;
44
+ moveSubscriptionSurfaceRequest: MoveSubscriptionSurfaceRequest;
45
+ }
38
46
  export interface ProcessRefundRequest {
39
47
  id: string;
40
- refundRequest: RefundRequest;
48
+ refundRequest?: RefundRequest;
41
49
  }
42
50
  export interface UpdateSubscriptionRequest {
43
51
  id: string;
@@ -47,6 +55,16 @@ export interface UpdateSubscriptionRequest {
47
55
  *
48
56
  */
49
57
  export declare class SubscriptionsApi extends runtime.BaseAPI {
58
+ /**
59
+ * Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
60
+ * Preview this subscription\'s refund without issuing it (dry run)
61
+ */
62
+ apiV1SubscriptionsIdRefundPreviewPostRaw(requestParameters: ApiV1SubscriptionsIdRefundPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1SubscriptionsIdRefundPreviewPost200Response>>;
63
+ /**
64
+ * Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
65
+ * Preview this subscription\'s refund without issuing it (dry run)
66
+ */
67
+ apiV1SubscriptionsIdRefundPreviewPost(requestParameters: ApiV1SubscriptionsIdRefundPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1SubscriptionsIdRefundPreviewPost200Response>;
50
68
  /**
51
69
  * Creates a new subscription. Admin only.
52
70
  * Create subscription
@@ -108,12 +126,22 @@ export declare class SubscriptionsApi extends runtime.BaseAPI {
108
126
  */
109
127
  getSubscriptionsByUserId(requestParameters: GetSubscriptionsByUserIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Subscription>>;
110
128
  /**
111
- * Processes a refund for a subscription. Admin only.
129
+ * Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
130
+ * Move a subscription between the personal and organization surfaces
131
+ */
132
+ moveSubscriptionSurfaceRaw(requestParameters: MoveSubscriptionSurfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
133
+ /**
134
+ * Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
135
+ * Move a subscription between the personal and organization surfaces
136
+ */
137
+ moveSubscriptionSurface(requestParameters: MoveSubscriptionSurfaceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
138
+ /**
139
+ * Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
112
140
  * Process refund
113
141
  */
114
142
  processRefundRaw(requestParameters: ProcessRefundRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProcessRefund200Response>>;
115
143
  /**
116
- * Processes a refund for a subscription. Admin only.
144
+ * Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
117
145
  * Process refund
118
146
  */
119
147
  processRefund(requestParameters: ProcessRefundRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessRefund200Response>;
@@ -21,11 +21,50 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { GetBillingReports200ResponseInnerFromJSON, NewSubscriptionToJSON, ProcessRefund200ResponseFromJSON, RefundRequestToJSON, SubscriptionFromJSON, UpdateSubscriptionToJSON, } from '../models/index.js';
24
+ import { ApiV1SubscriptionsIdRefundPreviewPost200ResponseFromJSON, ApiV1SubscriptionsIdRefundPreviewPostRequestToJSON, GetBillingReports200ResponseInnerFromJSON, MoveSubscriptionSurfaceRequestToJSON, NewSubscriptionToJSON, ProcessRefund200ResponseFromJSON, RefundRequestToJSON, SubscriptionFromJSON, UpdateSubscriptionToJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class SubscriptionsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
31
+ * Preview this subscription\'s refund without issuing it (dry run)
32
+ */
33
+ apiV1SubscriptionsIdRefundPreviewPostRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['id'] == null) {
36
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling apiV1SubscriptionsIdRefundPreviewPost().');
37
+ }
38
+ const queryParameters = {};
39
+ const headerParameters = {};
40
+ headerParameters['Content-Type'] = 'application/json';
41
+ if (this.configuration && this.configuration.accessToken) {
42
+ const token = this.configuration.accessToken;
43
+ const tokenString = yield token("bearerAuth", []);
44
+ if (tokenString) {
45
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
46
+ }
47
+ }
48
+ const response = yield this.request({
49
+ path: `/api/v1/subscriptions/{id}/refund/preview`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ body: ApiV1SubscriptionsIdRefundPreviewPostRequestToJSON(requestParameters['apiV1SubscriptionsIdRefundPreviewPostRequest']),
54
+ }, initOverrides);
55
+ return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1SubscriptionsIdRefundPreviewPost200ResponseFromJSON(jsonValue));
56
+ });
57
+ }
58
+ /**
59
+ * Resolves the subscription\'s latest paid charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization subscription — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry. Every guard refusal the refund endpoint can raise is raised here identically, so a client can drive its confirm dialog off a successful preview.
60
+ * Preview this subscription\'s refund without issuing it (dry run)
61
+ */
62
+ apiV1SubscriptionsIdRefundPreviewPost(requestParameters, initOverrides) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ const response = yield this.apiV1SubscriptionsIdRefundPreviewPostRaw(requestParameters, initOverrides);
65
+ return yield response.value();
66
+ });
67
+ }
29
68
  /**
30
69
  * Creates a new subscription. Admin only.
31
70
  * Create subscription
@@ -268,7 +307,48 @@ export class SubscriptionsApi extends runtime.BaseAPI {
268
307
  });
269
308
  }
270
309
  /**
271
- * Processes a refund for a subscription. Admin only.
310
+ * Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
311
+ * Move a subscription between the personal and organization surfaces
312
+ */
313
+ moveSubscriptionSurfaceRaw(requestParameters, initOverrides) {
314
+ return __awaiter(this, void 0, void 0, function* () {
315
+ if (requestParameters['id'] == null) {
316
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling moveSubscriptionSurface().');
317
+ }
318
+ if (requestParameters['moveSubscriptionSurfaceRequest'] == null) {
319
+ throw new runtime.RequiredError('moveSubscriptionSurfaceRequest', 'Required parameter "moveSubscriptionSurfaceRequest" was null or undefined when calling moveSubscriptionSurface().');
320
+ }
321
+ const queryParameters = {};
322
+ const headerParameters = {};
323
+ headerParameters['Content-Type'] = 'application/json';
324
+ if (this.configuration && this.configuration.accessToken) {
325
+ const token = this.configuration.accessToken;
326
+ const tokenString = yield token("apiKeyAuth", []);
327
+ if (tokenString) {
328
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
329
+ }
330
+ }
331
+ const response = yield this.request({
332
+ path: `/subscriptions/{id}/surface-move`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
333
+ method: 'POST',
334
+ headers: headerParameters,
335
+ query: queryParameters,
336
+ body: MoveSubscriptionSurfaceRequestToJSON(requestParameters['moveSubscriptionSurfaceRequest']),
337
+ }, initOverrides);
338
+ return new runtime.VoidApiResponse(response);
339
+ });
340
+ }
341
+ /**
342
+ * Rewrites the subscription onto the target surface: the scope columns and the plan are updated together, the Stripe subscription is repriced to the target plan first (so a refusal changes nothing), the source plan\'s entitlements and the allowance it granted are retired, and the target plan\'s are granted — for an organization target, to each of its billable members. Admin only.
343
+ * Move a subscription between the personal and organization surfaces
344
+ */
345
+ moveSubscriptionSurface(requestParameters, initOverrides) {
346
+ return __awaiter(this, void 0, void 0, function* () {
347
+ yield this.moveSubscriptionSurfaceRaw(requestParameters, initOverrides);
348
+ });
349
+ }
350
+ /**
351
+ * Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
272
352
  * Process refund
273
353
  */
274
354
  processRefundRaw(requestParameters, initOverrides) {
@@ -276,9 +356,6 @@ export class SubscriptionsApi extends runtime.BaseAPI {
276
356
  if (requestParameters['id'] == null) {
277
357
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling processRefund().');
278
358
  }
279
- if (requestParameters['refundRequest'] == null) {
280
- throw new runtime.RequiredError('refundRequest', 'Required parameter "refundRequest" was null or undefined when calling processRefund().');
281
- }
282
359
  const queryParameters = {};
283
360
  const headerParameters = {};
284
361
  headerParameters['Content-Type'] = 'application/json';
@@ -300,7 +377,7 @@ export class SubscriptionsApi extends runtime.BaseAPI {
300
377
  });
301
378
  }
302
379
  /**
303
- * Processes a refund for a subscription. Admin only.
380
+ * Issues a real Stripe refund against a charge belonging to the subscription. Admin only. A `200` means Stripe accepted the refund; the endpoint never reports success for a charge that was not refunded. The body may name the charge (`paymentIntentId` or `stripeInvoiceId`), in which case exactly that charge is refunded. If it names none, the charge is the subscription\'s **latest paid invoice**, resolved server-side — Stripe\'s newest *paid* invoice for the subscription, with the subscription\'s own newest paid credit grant as the fallback. A subscription that has never been charged is refused (`404`), never guessed at.
304
381
  * Process refund
305
382
  */
306
383
  processRefund(requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CheckWidgetAccess200Response, CreateWidget201Response, DeleteWidgetRequest, DuplicateWidget201Response, DuplicateWidgetRequest, GetWidgetPublishHistory200Response, GetWidgets200Response, GetWidgetsBatch200Response, GetWidgetsBatchRequest, NewWidget, SetWidgetPublishHistoryLive200Response, UpdateWidgetRepository200Response, UpdateWidgetRepositoryRequest, UpdateWidgetRequest } from '../models/index';
13
+ import type { CheckWidgetAccess200Response, CreateWidget201Response, DeleteWidgetRequest, DuplicateWidget201Response, DuplicateWidgetRequest, GetWidgetPublishHistory200Response, GetWidgets200Response, GetWidgetsBatch200Response, GetWidgetsBatchRequest, NewWidget, SetWidgetPublishHistoryLive200Response, UpdateWidgetRepository200Response, UpdateWidgetRepositoryRequest, UpdateWidgetRequest, UploadWidgetThumbnail200Response, UploadWidgetThumbnailRequest } from '../models/index';
14
14
  export interface CheckWidgetAccessRequest {
15
15
  id: string;
16
16
  }
@@ -64,6 +64,10 @@ export interface UpdateWidgetRepositoryOperationRequest {
64
64
  id: string;
65
65
  updateWidgetRepositoryRequest: UpdateWidgetRepositoryRequest;
66
66
  }
67
+ export interface UploadWidgetThumbnailOperationRequest {
68
+ id: string;
69
+ uploadWidgetThumbnailRequest: UploadWidgetThumbnailRequest;
70
+ }
67
71
  /**
68
72
  *
69
73
  */
@@ -139,13 +143,13 @@ export declare class WidgetsApi extends runtime.BaseAPI {
139
143
  */
140
144
  getWidgetDesignSchema(requestParameters: GetWidgetDesignSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
141
145
  /**
142
- * Returns all publish history records for the widget, ordered by version descending.
143
- * List publish history for a widget
146
+ * Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
147
+ * List version history for a widget
144
148
  */
145
149
  getWidgetPublishHistoryRaw(requestParameters: GetWidgetPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetWidgetPublishHistory200Response>>;
146
150
  /**
147
- * Returns all publish history records for the widget, ordered by version descending.
148
- * List publish history for a widget
151
+ * Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
152
+ * List version history for a widget
149
153
  */
150
154
  getWidgetPublishHistory(requestParameters: GetWidgetPublishHistoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetWidgetPublishHistory200Response>;
151
155
  /**
@@ -188,36 +192,6 @@ export declare class WidgetsApi extends runtime.BaseAPI {
188
192
  * Update Widget
189
193
  */
190
194
  updateWidget(requestParameters: UpdateWidgetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
191
- /**
192
- * Stores a convert/preview screenshot as widgets.thumbnail_url.
193
- * Upload Widget Thumbnail
194
- */
195
- uploadWidgetThumbnailRaw(requestParameters: {
196
- id: string;
197
- uploadWidgetThumbnailRequest: {
198
- imageDataUrl: string;
199
- };
200
- }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<{
201
- data?: {
202
- thumbnailUrl?: string;
203
- };
204
- thumbnailUrl?: string;
205
- }>>;
206
- /**
207
- * Stores a convert/preview screenshot as widgets.thumbnail_url.
208
- * Upload Widget Thumbnail
209
- */
210
- uploadWidgetThumbnail(requestParameters: {
211
- id: string;
212
- uploadWidgetThumbnailRequest: {
213
- imageDataUrl: string;
214
- };
215
- }, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<{
216
- data?: {
217
- thumbnailUrl?: string;
218
- };
219
- thumbnailUrl?: string;
220
- }>;
221
195
  /**
222
196
  * Associates an existing widget with a repository ID.
223
197
  * Update Widget Repository
@@ -228,6 +202,16 @@ export declare class WidgetsApi extends runtime.BaseAPI {
228
202
  * Update Widget Repository
229
203
  */
230
204
  updateWidgetRepository(requestParameters: UpdateWidgetRepositoryOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UpdateWidgetRepository200Response>;
205
+ /**
206
+ * Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
207
+ * Upload Widget Thumbnail
208
+ */
209
+ uploadWidgetThumbnailRaw(requestParameters: UploadWidgetThumbnailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadWidgetThumbnail200Response>>;
210
+ /**
211
+ * Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
212
+ * Upload Widget Thumbnail
213
+ */
214
+ uploadWidgetThumbnail(requestParameters: UploadWidgetThumbnailOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadWidgetThumbnail200Response>;
231
215
  }
232
216
  /**
233
217
  * @export
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { CheckWidgetAccess200ResponseFromJSON, CreateWidget201ResponseFromJSON, DeleteWidgetRequestToJSON, DuplicateWidget201ResponseFromJSON, DuplicateWidgetRequestToJSON, GetWidgetPublishHistory200ResponseFromJSON, GetWidgets200ResponseFromJSON, GetWidgetsBatch200ResponseFromJSON, GetWidgetsBatchRequestToJSON, NewWidgetToJSON, SetWidgetPublishHistoryLive200ResponseFromJSON, UpdateWidgetRepository200ResponseFromJSON, UpdateWidgetRepositoryRequestToJSON, UpdateWidgetRequestToJSON, } from '../models/index.js';
24
+ import { CheckWidgetAccess200ResponseFromJSON, CreateWidget201ResponseFromJSON, DeleteWidgetRequestToJSON, DuplicateWidget201ResponseFromJSON, DuplicateWidgetRequestToJSON, GetWidgetPublishHistory200ResponseFromJSON, GetWidgets200ResponseFromJSON, GetWidgetsBatch200ResponseFromJSON, GetWidgetsBatchRequestToJSON, NewWidgetToJSON, SetWidgetPublishHistoryLive200ResponseFromJSON, UpdateWidgetRepository200ResponseFromJSON, UpdateWidgetRepositoryRequestToJSON, UpdateWidgetRequestToJSON, UploadWidgetThumbnail200ResponseFromJSON, UploadWidgetThumbnailRequestToJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -297,8 +297,8 @@ export class WidgetsApi extends runtime.BaseAPI {
297
297
  });
298
298
  }
299
299
  /**
300
- * Returns all publish history records for the widget, ordered by version descending.
301
- * List publish history for a widget
300
+ * Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
301
+ * List version history for a widget
302
302
  */
303
303
  getWidgetPublishHistoryRaw(requestParameters, initOverrides) {
304
304
  return __awaiter(this, void 0, void 0, function* () {
@@ -324,8 +324,8 @@ export class WidgetsApi extends runtime.BaseAPI {
324
324
  });
325
325
  }
326
326
  /**
327
- * Returns all publish history records for the widget, ordered by version descending.
328
- * List publish history for a widget
327
+ * Returns every version of the widget, newest first. A version is created when code is generated and becomes Live when it is published, so `publishedAt` null marks a Draft and a timestamp marks a Live version.
328
+ * List version history for a widget
329
329
  */
330
330
  getWidgetPublishHistory(requestParameters, initOverrides) {
331
331
  return __awaiter(this, void 0, void 0, function* () {
@@ -518,16 +518,16 @@ export class WidgetsApi extends runtime.BaseAPI {
518
518
  });
519
519
  }
520
520
  /**
521
- * Stores a convert/preview screenshot as widgets.thumbnail_url.
522
- * Upload Widget Thumbnail
521
+ * Associates an existing widget with a repository ID.
522
+ * Update Widget Repository
523
523
  */
524
- uploadWidgetThumbnailRaw(requestParameters, initOverrides) {
524
+ updateWidgetRepositoryRaw(requestParameters, initOverrides) {
525
525
  return __awaiter(this, void 0, void 0, function* () {
526
526
  if (requestParameters['id'] == null) {
527
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadWidgetThumbnail().');
527
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateWidgetRepository().');
528
528
  }
529
- if (requestParameters['uploadWidgetThumbnailRequest'] == null) {
530
- throw new runtime.RequiredError('uploadWidgetThumbnailRequest', 'Required parameter "uploadWidgetThumbnailRequest" was null or undefined when calling uploadWidgetThumbnail().');
529
+ if (requestParameters['updateWidgetRepositoryRequest'] == null) {
530
+ throw new runtime.RequiredError('updateWidgetRepositoryRequest', 'Required parameter "updateWidgetRepositoryRequest" was null or undefined when calling updateWidgetRepository().');
531
531
  }
532
532
  const queryParameters = {};
533
533
  const headerParameters = {};
@@ -540,36 +540,36 @@ export class WidgetsApi extends runtime.BaseAPI {
540
540
  }
541
541
  }
542
542
  const response = yield this.request({
543
- path: `/widgets/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
544
- method: 'POST',
543
+ path: `/widgets/{id}/repository`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
544
+ method: 'PUT',
545
545
  headers: headerParameters,
546
546
  query: queryParameters,
547
- body: requestParameters['uploadWidgetThumbnailRequest'],
547
+ body: UpdateWidgetRepositoryRequestToJSON(requestParameters['updateWidgetRepositoryRequest']),
548
548
  }, initOverrides);
549
- return new runtime.JSONApiResponse(response);
549
+ return new runtime.JSONApiResponse(response, (jsonValue) => UpdateWidgetRepository200ResponseFromJSON(jsonValue));
550
550
  });
551
551
  }
552
552
  /**
553
- * Stores a convert/preview screenshot as widgets.thumbnail_url.
554
- * Upload Widget Thumbnail
553
+ * Associates an existing widget with a repository ID.
554
+ * Update Widget Repository
555
555
  */
556
- uploadWidgetThumbnail(requestParameters, initOverrides) {
556
+ updateWidgetRepository(requestParameters, initOverrides) {
557
557
  return __awaiter(this, void 0, void 0, function* () {
558
- const response = yield this.uploadWidgetThumbnailRaw(requestParameters, initOverrides);
558
+ const response = yield this.updateWidgetRepositoryRaw(requestParameters, initOverrides);
559
559
  return yield response.value();
560
560
  });
561
561
  }
562
562
  /**
563
- * Associates an existing widget with a repository ID.
564
- * Update Widget Repository
563
+ * Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
564
+ * Upload Widget Thumbnail
565
565
  */
566
- updateWidgetRepositoryRaw(requestParameters, initOverrides) {
566
+ uploadWidgetThumbnailRaw(requestParameters, initOverrides) {
567
567
  return __awaiter(this, void 0, void 0, function* () {
568
568
  if (requestParameters['id'] == null) {
569
- throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateWidgetRepository().');
569
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling uploadWidgetThumbnail().');
570
570
  }
571
- if (requestParameters['updateWidgetRepositoryRequest'] == null) {
572
- throw new runtime.RequiredError('updateWidgetRepositoryRequest', 'Required parameter "updateWidgetRepositoryRequest" was null or undefined when calling updateWidgetRepository().');
571
+ if (requestParameters['uploadWidgetThumbnailRequest'] == null) {
572
+ throw new runtime.RequiredError('uploadWidgetThumbnailRequest', 'Required parameter "uploadWidgetThumbnailRequest" was null or undefined when calling uploadWidgetThumbnail().');
573
573
  }
574
574
  const queryParameters = {};
575
575
  const headerParameters = {};
@@ -582,22 +582,22 @@ export class WidgetsApi extends runtime.BaseAPI {
582
582
  }
583
583
  }
584
584
  const response = yield this.request({
585
- path: `/widgets/{id}/repository`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
586
- method: 'PUT',
585
+ path: `/widgets/{id}/thumbnail`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
586
+ method: 'POST',
587
587
  headers: headerParameters,
588
588
  query: queryParameters,
589
- body: UpdateWidgetRepositoryRequestToJSON(requestParameters['updateWidgetRepositoryRequest']),
589
+ body: UploadWidgetThumbnailRequestToJSON(requestParameters['uploadWidgetThumbnailRequest']),
590
590
  }, initOverrides);
591
- return new runtime.JSONApiResponse(response, (jsonValue) => UpdateWidgetRepository200ResponseFromJSON(jsonValue));
591
+ return new runtime.JSONApiResponse(response, (jsonValue) => UploadWidgetThumbnail200ResponseFromJSON(jsonValue));
592
592
  });
593
593
  }
594
594
  /**
595
- * Associates an existing widget with a repository ID.
596
- * Update Widget Repository
595
+ * Stores a convert/preview screenshot as widgets.thumbnail_url (R2 widgets/{id}/thumbnail.png).
596
+ * Upload Widget Thumbnail
597
597
  */
598
- updateWidgetRepository(requestParameters, initOverrides) {
598
+ uploadWidgetThumbnail(requestParameters, initOverrides) {
599
599
  return __awaiter(this, void 0, void 0, function* () {
600
- const response = yield this.updateWidgetRepositoryRaw(requestParameters, initOverrides);
600
+ const response = yield this.uploadWidgetThumbnailRaw(requestParameters, initOverrides);
601
601
  return yield response.value();
602
602
  });
603
603
  }
@@ -32,12 +32,12 @@ export declare class WorkflowsApi extends runtime.BaseAPI {
32
32
  */
33
33
  workflowsGenerateComponentFromMixPost(requestParameters: WorkflowsGenerateComponentFromMixPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowAcceptedResponse>;
34
34
  /**
35
- * Starts the end-to-end workflow for generating a new component based on initial user requirements. This involves creating a development plan via Task Master, and then executing the plan\'s tasks using Aider for code generation. The process runs asynchronously, and progress should be monitored via WebSockets.
35
+ * Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
36
36
  * Initiate initial component generation workflow
37
37
  */
38
38
  workflowsGenerateComponentPostRaw(requestParameters: WorkflowsGenerateComponentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowAcceptedResponse>>;
39
39
  /**
40
- * Starts the end-to-end workflow for generating a new component based on initial user requirements. This involves creating a development plan via Task Master, and then executing the plan\'s tasks using Aider for code generation. The process runs asynchronously, and progress should be monitored via WebSockets.
40
+ * Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
41
41
  * Initiate initial component generation workflow
42
42
  */
43
43
  workflowsGenerateComponentPost(requestParameters: WorkflowsGenerateComponentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowAcceptedResponse>;
@@ -66,7 +66,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
66
66
  });
67
67
  }
68
68
  /**
69
- * Starts the end-to-end workflow for generating a new component based on initial user requirements. This involves creating a development plan via Task Master, and then executing the plan\'s tasks using Aider for code generation. The process runs asynchronously, and progress should be monitored via WebSockets.
69
+ * Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
70
70
  * Initiate initial component generation workflow
71
71
  */
72
72
  workflowsGenerateComponentPostRaw(requestParameters, initOverrides) {
@@ -95,7 +95,7 @@ export class WorkflowsApi extends runtime.BaseAPI {
95
95
  });
96
96
  }
97
97
  /**
98
- * Starts the end-to-end workflow for generating a new component based on initial user requirements. This involves creating a development plan via Task Master, and then executing the plan\'s tasks using Aider for code generation. The process runs asynchronously, and progress should be monitored via WebSockets.
98
+ * Retired workflow route. Live codegen is POST /agent/code/generate (Direct LLM).
99
99
  * Initiate initial component generation workflow
100
100
  */
101
101
  workflowsGenerateComponentPost(requestParameters, initOverrides) {
@@ -28,6 +28,7 @@ export * from './MCPApi';
28
28
  export * from './ManagedUsersApi';
29
29
  export * from './MessagesApi';
30
30
  export * from './MonitoringApi';
31
+ export * from './NoticesApi';
31
32
  export * from './OperationsApi';
32
33
  export * from './OrganizationActivitiesApi';
33
34
  export * from './OrganizationsApi';
@@ -30,6 +30,7 @@ export * from './MCPApi.js';
30
30
  export * from './ManagedUsersApi.js';
31
31
  export * from './MessagesApi.js';
32
32
  export * from './MonitoringApi.js';
33
+ export * from './NoticesApi.js';
33
34
  export * from './OperationsApi.js';
34
35
  export * from './OrganizationActivitiesApi.js';
35
36
  export * from './OrganizationsApi.js';
@@ -51,6 +51,24 @@ export interface AgentWidgetBuilderPublishWidgetIdPost200ResponseData {
51
51
  * @memberof AgentWidgetBuilderPublishWidgetIdPost200ResponseData
52
52
  */
53
53
  commitSha?: string | null;
54
+ /**
55
+ * CDN URL of the frameless ESM module, when direct artifact is available
56
+ * @type {string}
57
+ * @memberof AgentWidgetBuilderPublishWidgetIdPost200ResponseData
58
+ */
59
+ directModuleUrl?: string | null;
60
+ /**
61
+ * Contract version of the direct module (e.g. 2)
62
+ * @type {number}
63
+ * @memberof AgentWidgetBuilderPublishWidgetIdPost200ResponseData
64
+ */
65
+ directContractVersion?: number | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof AgentWidgetBuilderPublishWidgetIdPost200ResponseData
70
+ */
71
+ directModuleHash?: string | null;
54
72
  }
55
73
  /**
56
74
  * Check if a given object implements the AgentWidgetBuilderPublishWidgetIdPost200ResponseData interface.
@@ -31,6 +31,9 @@ export function AgentWidgetBuilderPublishWidgetIdPost200ResponseDataFromJSONType
31
31
  'version': json['version'] == null ? undefined : json['version'],
32
32
  'artifactUrl': json['artifactUrl'] == null ? undefined : json['artifactUrl'],
33
33
  'commitSha': json['commitSha'] == null ? undefined : json['commitSha'],
34
+ 'directModuleUrl': json['directModuleUrl'] == null ? undefined : json['directModuleUrl'],
35
+ 'directContractVersion': json['directContractVersion'] == null ? undefined : json['directContractVersion'],
36
+ 'directModuleHash': json['directModuleHash'] == null ? undefined : json['directModuleHash'],
34
37
  };
35
38
  }
36
39
  export function AgentWidgetBuilderPublishWidgetIdPost200ResponseDataToJSON(json) {
@@ -47,5 +50,8 @@ export function AgentWidgetBuilderPublishWidgetIdPost200ResponseDataToJSONTyped(
47
50
  'version': value['version'],
48
51
  'artifactUrl': value['artifactUrl'],
49
52
  'commitSha': value['commitSha'],
53
+ 'directModuleUrl': value['directModuleUrl'],
54
+ 'directContractVersion': value['directContractVersion'],
55
+ 'directModuleHash': value['directModuleHash'],
50
56
  };
51
57
  }