@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
@@ -37,7 +37,7 @@ class BillingApi extends runtime.BaseAPI {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
39
  const response = yield this.request({
40
- path: `/api/v1/billing/pricing`,
40
+ path: `/billing/pricing`,
41
41
  method: 'GET',
42
42
  headers: headerParameters,
43
43
  query: queryParameters,
@@ -75,7 +75,7 @@ class BillingApi extends runtime.BaseAPI {
75
75
  }
76
76
  }
77
77
  const response = yield this.request({
78
- path: `/api/v1/billing/users/{userId}/invoices`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
78
+ path: `/billing/users/{userId}/invoices`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
79
79
  method: 'GET',
80
80
  headers: headerParameters,
81
81
  query: queryParameters,
@@ -110,7 +110,7 @@ class BillingApi extends runtime.BaseAPI {
110
110
  }
111
111
  }
112
112
  const response = yield this.request({
113
- path: `/api/v1/billing/users/{userId}/payment-methods`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
113
+ path: `/billing/users/{userId}/payment-methods`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
114
114
  method: 'GET',
115
115
  headers: headerParameters,
116
116
  query: queryParameters,
@@ -148,7 +148,7 @@ class BillingApi extends runtime.BaseAPI {
148
148
  }
149
149
  }
150
150
  const response = yield this.request({
151
- path: `/api/v1/billing/users/{userId}/payment-methods/{paymentMethodId}/default`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
151
+ path: `/billing/users/{userId}/payment-methods/{paymentMethodId}/default`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
152
152
  method: 'PUT',
153
153
  headers: headerParameters,
154
154
  query: queryParameters,
@@ -186,7 +186,7 @@ class BillingApi extends runtime.BaseAPI {
186
186
  }
187
187
  }
188
188
  const response = yield this.request({
189
- path: `/api/v1/billing/users/{userId}/payment-methods/{paymentMethodId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
189
+ path: `/billing/users/{userId}/payment-methods/{paymentMethodId}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"paymentMethodId"}}`, encodeURIComponent(String(requestParameters['paymentMethodId']))),
190
190
  method: 'DELETE',
191
191
  headers: headerParameters,
192
192
  query: queryParameters,
@@ -225,7 +225,7 @@ class BillingApi extends runtime.BaseAPI {
225
225
  }
226
226
  }
227
227
  const response = yield this.request({
228
- path: `/api/v1/billing/users/{userId}/payment-methods`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
228
+ path: `/billing/users/{userId}/payment-methods`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
229
229
  method: 'POST',
230
230
  headers: headerParameters,
231
231
  query: queryParameters,
@@ -261,7 +261,7 @@ class BillingApi extends runtime.BaseAPI {
261
261
  }
262
262
  }
263
263
  const response = yield this.request({
264
- path: `/api/v1/billing/users/{userId}/payment-methods/setup-intent`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
264
+ path: `/billing/users/{userId}/payment-methods/setup-intent`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
265
265
  method: 'POST',
266
266
  headers: headerParameters,
267
267
  query: queryParameters,
@@ -297,7 +297,7 @@ class BillingApi extends runtime.BaseAPI {
297
297
  }
298
298
  }
299
299
  const response = yield this.request({
300
- path: `/api/v1/billing/users/{userId}/portal`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
300
+ path: `/billing/users/{userId}/portal`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
301
301
  method: 'POST',
302
302
  headers: headerParameters,
303
303
  query: queryParameters,
@@ -334,7 +334,7 @@ class BillingApi extends runtime.BaseAPI {
334
334
  }
335
335
  }
336
336
  const response = yield this.request({
337
- path: `/api/v1/billing/users/{userId}/subscription/cancel`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
337
+ path: `/billing/users/{userId}/subscription/cancel`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
338
338
  method: 'POST',
339
339
  headers: headerParameters,
340
340
  query: queryParameters,
@@ -370,7 +370,7 @@ class BillingApi extends runtime.BaseAPI {
370
370
  }
371
371
  }
372
372
  const response = yield this.request({
373
- path: `/api/v1/billing/users/{userId}/subscription`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
373
+ path: `/billing/users/{userId}/subscription`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
374
374
  method: 'GET',
375
375
  headers: headerParameters,
376
376
  query: queryParameters,
@@ -405,7 +405,7 @@ class BillingApi extends runtime.BaseAPI {
405
405
  }
406
406
  }
407
407
  const response = yield this.request({
408
- path: `/api/v1/billing/users/{userId}/subscription/pay`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
408
+ path: `/billing/users/{userId}/subscription/pay`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
409
409
  method: 'POST',
410
410
  headers: headerParameters,
411
411
  query: queryParameters,
@@ -444,7 +444,7 @@ class BillingApi extends runtime.BaseAPI {
444
444
  }
445
445
  }
446
446
  const response = yield this.request({
447
- path: `/api/v1/billing/users/{userId}/subscription`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
447
+ path: `/billing/users/{userId}/subscription`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
448
448
  method: 'POST',
449
449
  headers: headerParameters,
450
450
  query: queryParameters,
@@ -480,7 +480,7 @@ class BillingApi extends runtime.BaseAPI {
480
480
  }
481
481
  }
482
482
  const response = yield this.request({
483
- path: `/api/v1/billing/users/{userId}/subscription/resume`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
483
+ path: `/billing/users/{userId}/subscription/resume`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
484
484
  method: 'POST',
485
485
  headers: headerParameters,
486
486
  query: queryParameters,
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CheckCompositionAccess200Response, Composition, CompositionVersion, CreateComposition201Response, DuplicateComposition202Response, DuplicateCompositionRequest, GetAllCompositions200Response, GetCompositionContentSchema200Response, GetCompositionDesignSchema200Response, GetCompositionsBatch200Response, GetCompositionsBatchRequest, NewComposition, SetDynamicContent200Response, SetDynamicContentRequest, UpdateCompositionRequest, UpdateCompositionStatusRequest, ValidateCompositionContent200Response } from '../models/index';
13
+ import type { CheckCompositionAccess200Response, Composition, CompositionVersion, CreateComposition201Response, DuplicateComposition202Response, DuplicateCompositionRequest, GetAllCompositions200Response, GetCompositionContentSchema200Response, GetCompositionDesignSchema200Response, GetCompositionsBatch200Response, GetCompositionsBatchRequest, NewComposition, SetDynamicContent200Response, SetDynamicContentRequest, UpdateComposition, UpdateCompositionStatusRequest, ValidateCompositionContent200Response } from '../models/index';
14
14
  export interface CheckCompositionAccessRequest {
15
15
  id: string;
16
16
  }
@@ -81,9 +81,9 @@ export interface SetDynamicContentOperationRequest {
81
81
  id: string;
82
82
  setDynamicContentRequest: SetDynamicContentRequest;
83
83
  }
84
- export interface UpdateCompositionOperationRequest {
84
+ export interface UpdateCompositionRequest {
85
85
  id: string;
86
- updateCompositionRequest: UpdateCompositionRequest;
86
+ updateComposition: UpdateComposition;
87
87
  }
88
88
  export interface UpdateCompositionDatabaseRecordRequest {
89
89
  id: string;
@@ -287,12 +287,12 @@ export declare class CompositionsApi extends runtime.BaseAPI {
287
287
  * Updates a specific composition.
288
288
  * Update Composition
289
289
  */
290
- updateCompositionRaw(requestParameters: UpdateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateComposition201Response>>;
290
+ updateCompositionRaw(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateComposition201Response>>;
291
291
  /**
292
292
  * Updates a specific composition.
293
293
  * Update Composition
294
294
  */
295
- updateComposition(requestParameters: UpdateCompositionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateComposition201Response>;
295
+ updateComposition(requestParameters: UpdateCompositionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateComposition201Response>;
296
296
  /**
297
297
  * Updates a specific record in a table in the composition\'s database.
298
298
  * Update Record In Composition Database
@@ -754,8 +754,8 @@ class CompositionsApi extends runtime.BaseAPI {
754
754
  if (requestParameters['id'] == null) {
755
755
  throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateComposition().');
756
756
  }
757
- if (requestParameters['updateCompositionRequest'] == null) {
758
- throw new runtime.RequiredError('updateCompositionRequest', 'Required parameter "updateCompositionRequest" was null or undefined when calling updateComposition().');
757
+ if (requestParameters['updateComposition'] == null) {
758
+ throw new runtime.RequiredError('updateComposition', 'Required parameter "updateComposition" was null or undefined when calling updateComposition().');
759
759
  }
760
760
  const queryParameters = {};
761
761
  const headerParameters = {};
@@ -772,7 +772,7 @@ class CompositionsApi extends runtime.BaseAPI {
772
772
  method: 'PUT',
773
773
  headers: headerParameters,
774
774
  query: queryParameters,
775
- body: (0, index_1.UpdateCompositionRequestToJSON)(requestParameters['updateCompositionRequest']),
775
+ body: (0, index_1.UpdateCompositionToJSON)(requestParameters['updateComposition']),
776
776
  }, initOverrides);
777
777
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateComposition201ResponseFromJSON)(jsonValue));
778
778
  });
@@ -34,12 +34,12 @@ export interface SubtractCreditsRequest {
34
34
  */
35
35
  export declare class CreditsApi extends runtime.BaseAPI {
36
36
  /**
37
- * Adds credits to a user\'s balance. Admin only.
37
+ * Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
38
38
  * Add credits to user balance
39
39
  */
40
40
  addCreditsRaw(requestParameters: AddCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
41
41
  /**
42
- * Adds credits to a user\'s balance. Admin only.
42
+ * Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
43
43
  * Add credits to user balance
44
44
  */
45
45
  addCredits(requestParameters: AddCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -74,12 +74,12 @@ export declare class CreditsApi extends runtime.BaseAPI {
74
74
  */
75
75
  getUserCreditTransactions(requestParameters: GetUserCreditTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<object>>;
76
76
  /**
77
- * Subtracts credits from a user\'s balance. Admin only.
77
+ * Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
78
78
  * Subtract credits from user balance
79
79
  */
80
80
  subtractCreditsRaw(requestParameters: SubtractCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
81
81
  /**
82
- * Subtracts credits from a user\'s balance. Admin only.
82
+ * Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
83
83
  * Subtract credits from user balance
84
84
  */
85
85
  subtractCredits(requestParameters: SubtractCreditsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -29,7 +29,7 @@ const runtime = require("../runtime");
29
29
  */
30
30
  class CreditsApi extends runtime.BaseAPI {
31
31
  /**
32
- * Adds credits to a user\'s balance. Admin only.
32
+ * Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
33
33
  * Add credits to user balance
34
34
  */
35
35
  addCreditsRaw(requestParameters, initOverrides) {
@@ -58,7 +58,7 @@ class CreditsApi extends runtime.BaseAPI {
58
58
  });
59
59
  }
60
60
  /**
61
- * Adds credits to a user\'s balance. Admin only.
61
+ * Adds credits to a user\'s balance. Admin only. A `referenceId` in the body names the grant event; when it is omitted the request\'s `Idempotency-Key` header is used instead. One of the two is required — a grant with no reference id cannot be recognised as a repeat by the ledger, so a retried request would credit the account twice — and the request is refused with 400 when neither is present.
62
62
  * Add credits to user balance
63
63
  */
64
64
  addCredits(requestParameters, initOverrides) {
@@ -191,7 +191,7 @@ class CreditsApi extends runtime.BaseAPI {
191
191
  });
192
192
  }
193
193
  /**
194
- * Subtracts credits from a user\'s balance. Admin only.
194
+ * Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
195
195
  * Subtract credits from user balance
196
196
  */
197
197
  subtractCreditsRaw(requestParameters, initOverrides) {
@@ -220,7 +220,7 @@ class CreditsApi extends runtime.BaseAPI {
220
220
  });
221
221
  }
222
222
  /**
223
- * Subtracts credits from a user\'s balance. Admin only.
223
+ * Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
224
224
  * Subtract credits from user balance
225
225
  */
226
226
  subtractCredits(requestParameters, initOverrides) {
@@ -30,32 +30,32 @@ export interface McpInternalWidgeticSseMessagesPostRequest {
30
30
  */
31
31
  export declare class MCPApi extends runtime.BaseAPI {
32
32
  /**
33
- * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
33
+ * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
34
34
  * MCP Endpoint for Component Registry Tools
35
35
  */
36
36
  mcpComponentRegistryPostRaw(requestParameters: McpComponentRegistryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
37
37
  /**
38
- * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
38
+ * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
39
39
  * MCP Endpoint for Component Registry Tools
40
40
  */
41
41
  mcpComponentRegistryPost(requestParameters: McpComponentRegistryPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
42
42
  /**
43
- * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
43
+ * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
44
44
  * MCP Endpoint for Console Log Tools
45
45
  */
46
46
  mcpConsolePostRaw(requestParameters: McpConsolePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
47
47
  /**
48
- * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
48
+ * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
49
49
  * MCP Endpoint for Console Log Tools
50
50
  */
51
51
  mcpConsolePost(requestParameters: McpConsolePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
52
52
  /**
53
- * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
53
+ * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
54
54
  * MCP Endpoint for CPG Tools
55
55
  */
56
56
  mcpCpgPostRaw(requestParameters: McpCpgPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
57
57
  /**
58
- * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
58
+ * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
59
59
  * MCP Endpoint for CPG Tools
60
60
  */
61
61
  mcpCpgPost(requestParameters: McpCpgPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -29,7 +29,7 @@ const runtime = require("../runtime");
29
29
  */
30
30
  class MCPApi extends runtime.BaseAPI {
31
31
  /**
32
- * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
32
+ * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
33
33
  * MCP Endpoint for Component Registry Tools
34
34
  */
35
35
  mcpComponentRegistryPostRaw(requestParameters, initOverrides) {
@@ -40,6 +40,9 @@ class MCPApi extends runtime.BaseAPI {
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
42
  headerParameters['Content-Type'] = 'application/json';
43
+ if (this.configuration && this.configuration.apiKey) {
44
+ headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
45
+ }
43
46
  const response = yield this.request({
44
47
  path: `/mcp/component-registry`,
45
48
  method: 'POST',
@@ -51,7 +54,7 @@ class MCPApi extends runtime.BaseAPI {
51
54
  });
52
55
  }
53
56
  /**
54
- * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
57
+ * Handles Model Context Protocol (MCP) requests directed at the Component Registry tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
55
58
  * MCP Endpoint for Component Registry Tools
56
59
  */
57
60
  mcpComponentRegistryPost(requestParameters, initOverrides) {
@@ -61,7 +64,7 @@ class MCPApi extends runtime.BaseAPI {
61
64
  });
62
65
  }
63
66
  /**
64
- * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
67
+ * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
65
68
  * MCP Endpoint for Console Log Tools
66
69
  */
67
70
  mcpConsolePostRaw(requestParameters, initOverrides) {
@@ -72,6 +75,9 @@ class MCPApi extends runtime.BaseAPI {
72
75
  const queryParameters = {};
73
76
  const headerParameters = {};
74
77
  headerParameters['Content-Type'] = 'application/json';
78
+ if (this.configuration && this.configuration.apiKey) {
79
+ headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
80
+ }
75
81
  const response = yield this.request({
76
82
  path: `/mcp/console`,
77
83
  method: 'POST',
@@ -83,7 +89,7 @@ class MCPApi extends runtime.BaseAPI {
83
89
  });
84
90
  }
85
91
  /**
86
- * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
92
+ * Handles Model Context Protocol (MCP) requests directed at the Console Log tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
87
93
  * MCP Endpoint for Console Log Tools
88
94
  */
89
95
  mcpConsolePost(requestParameters, initOverrides) {
@@ -93,7 +99,7 @@ class MCPApi extends runtime.BaseAPI {
93
99
  });
94
100
  }
95
101
  /**
96
- * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
102
+ * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
97
103
  * MCP Endpoint for CPG Tools
98
104
  */
99
105
  mcpCpgPostRaw(requestParameters, initOverrides) {
@@ -104,6 +110,9 @@ class MCPApi extends runtime.BaseAPI {
104
110
  const queryParameters = {};
105
111
  const headerParameters = {};
106
112
  headerParameters['Content-Type'] = 'application/json';
113
+ if (this.configuration && this.configuration.apiKey) {
114
+ headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
115
+ }
107
116
  const response = yield this.request({
108
117
  path: `/mcp/cpg`,
109
118
  method: 'POST',
@@ -115,7 +124,7 @@ class MCPApi extends runtime.BaseAPI {
115
124
  });
116
125
  }
117
126
  /**
118
- * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages.
127
+ * Handles Model Context Protocol (MCP) requests directed at the CPG query tools. Clients should send standard MCP request messages (like initialize or tool_call) to this endpoint. The server will respond with MCP messages. Requires a valid credential belonging to an account on a paid plan (or a staff, partner or internal service credential). The GET stream and DELETE termination routes for this path ask the same.
119
128
  * MCP Endpoint for CPG Tools
120
129
  */
121
130
  mcpCpgPost(requestParameters, initOverrides) {
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { ListAccountNotices200Response } from '../models/index';
14
+ export interface DismissAccountNoticeRequest {
15
+ id: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class NoticesApi extends runtime.BaseAPI {
21
+ /**
22
+ * Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
23
+ * Dismiss an account notice
24
+ */
25
+ dismissAccountNoticeRaw(requestParameters: DismissAccountNoticeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
26
+ /**
27
+ * Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
28
+ * Dismiss an account notice
29
+ */
30
+ dismissAccountNotice(requestParameters: DismissAccountNoticeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
31
+ /**
32
+ * The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
33
+ * List active account notices
34
+ */
35
+ listAccountNoticesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAccountNotices200Response>>;
36
+ /**
37
+ * The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
38
+ * List active account notices
39
+ */
40
+ listAccountNotices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccountNotices200Response>;
41
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Widgetic API Gateway
6
+ * API documentation for the Widgetic API Gateway
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.NoticesApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class NoticesApi extends runtime.BaseAPI {
32
+ /**
33
+ * Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
34
+ * Dismiss an account notice
35
+ */
36
+ dismissAccountNoticeRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['id'] == null) {
39
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling dismissAccountNotice().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("apiKeyAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
49
+ }
50
+ const response = yield this.request({
51
+ path: `/notices/{id}/dismiss`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
52
+ method: 'POST',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ }, initOverrides);
56
+ return new runtime.VoidApiResponse(response);
57
+ });
58
+ }
59
+ /**
60
+ * Marks one notice dismissed for this caller. Idempotent: dismissing an already-dismissed notice is a success, and a notice that does not apply to the caller is a `404` rather than a `403` — its existence is not the caller\'s business.
61
+ * Dismiss an account notice
62
+ */
63
+ dismissAccountNotice(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ yield this.dismissAccountNoticeRaw(requestParameters, initOverrides);
66
+ });
67
+ }
68
+ /**
69
+ * The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
70
+ * List active account notices
71
+ */
72
+ listAccountNoticesRaw(initOverrides) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ const queryParameters = {};
75
+ const headerParameters = {};
76
+ if (this.configuration && this.configuration.accessToken) {
77
+ const token = this.configuration.accessToken;
78
+ const tokenString = yield token("apiKeyAuth", []);
79
+ if (tokenString) {
80
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
81
+ }
82
+ }
83
+ const response = yield this.request({
84
+ path: `/notices`,
85
+ method: 'GET',
86
+ headers: headerParameters,
87
+ query: queryParameters,
88
+ }, initOverrides);
89
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListAccountNotices200ResponseFromJSON)(jsonValue));
90
+ });
91
+ }
92
+ /**
93
+ * The notices that currently apply to the caller: their own, plus those of the organizations they own or administer. Expired and dismissed notices are never returned, so a client can render what it receives without filtering. Two producers today. The free plan\'s window closing: an account that never subscribed stops having its published embeds served when its 7-day window ends (`embedServingGate`). And a failed payment on an organization\'s subscription (`organizationDunningNoticeService`): shown to the organization\'s owners and admins, because the card is theirs to fix and the email that says so may not be read before the dunning window closes. Both are raised by the server for conditions it observed, never by a client.
94
+ * List active account notices
95
+ */
96
+ listAccountNotices(initOverrides) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ const response = yield this.listAccountNoticesRaw(initOverrides);
99
+ return yield response.value();
100
+ });
101
+ }
102
+ }
103
+ exports.NoticesApi = NoticesApi;
@@ -142,6 +142,9 @@ export interface OrganizationsOrgIdBillingGetRequest {
142
142
  export interface OrganizationsOrgIdBillingInvoicePreviewGetRequest {
143
143
  orgId: string;
144
144
  }
145
+ export interface OrganizationsOrgIdBillingMemberAllowancesGetRequest {
146
+ orgId: string;
147
+ }
145
148
  export interface OrganizationsOrgIdBillingMembersUpdatePostOperationRequest {
146
149
  orgId: string;
147
150
  organizationsOrgIdBillingMembersUpdatePostRequest: OrganizationsOrgIdBillingMembersUpdatePostRequest;
@@ -631,6 +634,16 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
631
634
  * Preview next organization invoice
632
635
  */
633
636
  organizationsOrgIdBillingInvoicePreviewGet(requestParameters: OrganizationsOrgIdBillingInvoicePreviewGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingInvoicePreviewGet200Response>;
637
+ /**
638
+ * 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.
639
+ * Show each member\'s credit allowance for the current period
640
+ */
641
+ organizationsOrgIdBillingMemberAllowancesGetRaw(requestParameters: OrganizationsOrgIdBillingMemberAllowancesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
642
+ /**
643
+ * 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.
644
+ * Show each member\'s credit allowance for the current period
645
+ */
646
+ organizationsOrgIdBillingMemberAllowancesGet(requestParameters: OrganizationsOrgIdBillingMemberAllowancesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
634
647
  /**
635
648
  * Update organization member count with proration
636
649
  */
@@ -710,22 +723,22 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
710
723
  */
711
724
  organizationsOrgIdBillingYearlyDetailsGet(requestParameters: OrganizationsOrgIdBillingYearlyDetailsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
712
725
  /**
713
- * Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
726
+ * 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).
714
727
  * Add member to yearly subscription
715
728
  */
716
729
  organizationsOrgIdBillingYearlyMembersAddPostRaw(requestParameters: OrganizationsOrgIdBillingYearlyMembersAddPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
717
730
  /**
718
- * Add a member to an existing yearly organization subscription with pro-rated charge for the remaining contract duration.
731
+ * 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).
719
732
  * Add member to yearly subscription
720
733
  */
721
734
  organizationsOrgIdBillingYearlyMembersAddPost(requestParameters: OrganizationsOrgIdBillingYearlyMembersAddPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
722
735
  /**
723
- * Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
736
+ * 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.
724
737
  * Remove member from yearly subscription
725
738
  */
726
739
  organizationsOrgIdBillingYearlyMembersRemovePostRaw(requestParameters: OrganizationsOrgIdBillingYearlyMembersRemovePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
727
740
  /**
728
- * Remove a member from yearly organization subscription. Credits are accumulated for next renewal (no immediate refund).
741
+ * 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.
729
742
  * Remove member from yearly subscription
730
743
  */
731
744
  organizationsOrgIdBillingYearlyMembersRemovePost(requestParameters: OrganizationsOrgIdBillingYearlyMembersRemovePostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;