@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
@@ -10,13 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiV1AdminBillingGrantsGrantIdRejectPostRequest, ApiV1AdminBillingGrantsPostRequest, ApiV1AdminBillingRefundsPostRequest, ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest } from '../models/index';
13
+ import type { ApiV1AdminBillingGrantsGrantIdRejectPostRequest, ApiV1AdminBillingGrantsPostRequest, ApiV1AdminBillingPlansPricesBackfillPostRequest, ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest, ApiV1AdminBillingRefundsClawbacksGet200Response, ApiV1AdminBillingRefundsPostRequest, ApiV1AdminBillingRefundsPreviewPost200Response, ApiV1AdminBillingRefundsPreviewPostRequest, ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest } from '../models/index';
14
14
  export interface ApiV1AdminBillingAuditGetRequest {
15
15
  subjectType?: ApiV1AdminBillingAuditGetSubjectTypeEnum;
16
16
  subjectId?: string;
17
17
  action?: string;
18
18
  limit?: number;
19
19
  }
20
+ export interface ApiV1AdminBillingDisputesGetRequest {
21
+ page?: number;
22
+ size?: number;
23
+ }
20
24
  export interface ApiV1AdminBillingGrantsGetRequest {
21
25
  status?: string;
22
26
  limit?: number;
@@ -38,9 +42,26 @@ export interface ApiV1AdminBillingMetricsGetRequest {
38
42
  export interface ApiV1AdminBillingPartnerPartnerIdInvoicePostRequest {
39
43
  partnerId: string;
40
44
  }
45
+ export interface ApiV1AdminBillingPlansPricesBackfillPostOperationRequest {
46
+ apiV1AdminBillingPlansPricesBackfillPostRequest?: ApiV1AdminBillingPlansPricesBackfillPostRequest;
47
+ }
48
+ export interface ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutOperationRequest {
49
+ planType: string;
50
+ billingFrequency: string;
51
+ apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest: ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest;
52
+ }
53
+ export interface ApiV1AdminBillingRefundsClawbacksGetRequest {
54
+ subjectType?: ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum;
55
+ subjectId?: string;
56
+ page?: number;
57
+ size?: number;
58
+ }
41
59
  export interface ApiV1AdminBillingRefundsPostOperationRequest {
42
60
  apiV1AdminBillingRefundsPostRequest: ApiV1AdminBillingRefundsPostRequest;
43
61
  }
62
+ export interface ApiV1AdminBillingRefundsPreviewPostOperationRequest {
63
+ apiV1AdminBillingRefundsPreviewPostRequest: ApiV1AdminBillingRefundsPreviewPostRequest;
64
+ }
44
65
  export interface ApiV1AdminBillingSubscriptionsSubjectIdCancelAtPeriodEndPostRequest {
45
66
  subjectId: string;
46
67
  }
@@ -92,6 +113,16 @@ export declare class AdminBillingApi extends runtime.BaseAPI {
92
113
  * Billing admin dashboard aggregate
93
114
  */
94
115
  apiV1AdminBillingDashboardGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
116
+ /**
117
+ * Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
118
+ * Open dispute seat-suspensions, for the admin billing console
119
+ */
120
+ apiV1AdminBillingDisputesGetRaw(requestParameters: ApiV1AdminBillingDisputesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
121
+ /**
122
+ * Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
123
+ * Open dispute seat-suspensions, for the admin billing console
124
+ */
125
+ apiV1AdminBillingDisputesGet(requestParameters?: ApiV1AdminBillingDisputesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
95
126
  /**
96
127
  * Expire admin grants past their expiry date (deduct remaining balance)
97
128
  */
@@ -156,6 +187,36 @@ export declare class AdminBillingApi extends runtime.BaseAPI {
156
187
  * Issue a Stripe invoice for a partner contract
157
188
  */
158
189
  apiV1AdminBillingPartnerPartnerIdInvoicePost(requestParameters: ApiV1AdminBillingPartnerPartnerIdInvoicePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
190
+ /**
191
+ * For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
192
+ * Fill in the plan price ids from the catalogue (dry run by default)
193
+ */
194
+ apiV1AdminBillingPlansPricesBackfillPostRaw(requestParameters: ApiV1AdminBillingPlansPricesBackfillPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
195
+ /**
196
+ * For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
197
+ * Fill in the plan price ids from the catalogue (dry run by default)
198
+ */
199
+ apiV1AdminBillingPlansPricesBackfillPost(requestParameters?: ApiV1AdminBillingPlansPricesBackfillPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
200
+ /**
201
+ * For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
202
+ * Audit the stored plan price ids against the catalogue
203
+ */
204
+ apiV1AdminBillingPlansPricesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
205
+ /**
206
+ * For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
207
+ * Audit the stored plan price ids against the catalogue
208
+ */
209
+ apiV1AdminBillingPlansPricesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
210
+ /**
211
+ * The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
212
+ * Set a plan\'s Stripe price id, after verifying it bills the catalogue
213
+ */
214
+ apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRaw(requestParameters: ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
215
+ /**
216
+ * The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
217
+ * Set a plan\'s Stripe price id, after verifying it bills the catalogue
218
+ */
219
+ apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut(requestParameters: ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
159
220
  /**
160
221
  * Find local invoice rows missing their Stripe counterpart
161
222
  */
@@ -165,13 +226,35 @@ export declare class AdminBillingApi extends runtime.BaseAPI {
165
226
  */
166
227
  apiV1AdminBillingReconciliationDanglingInvoicesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
167
228
  /**
229
+ * Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
230
+ * Recent seat credit clawbacks (refund/chargeback reversals)
231
+ */
232
+ apiV1AdminBillingRefundsClawbacksGetRaw(requestParameters: ApiV1AdminBillingRefundsClawbacksGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1AdminBillingRefundsClawbacksGet200Response>>;
233
+ /**
234
+ * Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
235
+ * Recent seat credit clawbacks (refund/chargeback reversals)
236
+ */
237
+ apiV1AdminBillingRefundsClawbacksGet(requestParameters?: ApiV1AdminBillingRefundsClawbacksGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1AdminBillingRefundsClawbacksGet200Response>;
238
+ /**
239
+ * Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
168
240
  * Refund a payment (30-day age limit; reverses credits proportionally)
169
241
  */
170
242
  apiV1AdminBillingRefundsPostRaw(requestParameters: ApiV1AdminBillingRefundsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
171
243
  /**
244
+ * Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
172
245
  * Refund a payment (30-day age limit; reverses credits proportionally)
173
246
  */
174
247
  apiV1AdminBillingRefundsPost(requestParameters: ApiV1AdminBillingRefundsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
248
+ /**
249
+ * Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
250
+ * Preview a refund without issuing it (dry run)
251
+ */
252
+ apiV1AdminBillingRefundsPreviewPostRaw(requestParameters: ApiV1AdminBillingRefundsPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1AdminBillingRefundsPreviewPost200Response>>;
253
+ /**
254
+ * Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
255
+ * Preview a refund without issuing it (dry run)
256
+ */
257
+ apiV1AdminBillingRefundsPreviewPost(requestParameters: ApiV1AdminBillingRefundsPreviewPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1AdminBillingRefundsPreviewPost200Response>;
175
258
  /**
176
259
  * Schedule cancellation at period end (admin)
177
260
  */
@@ -248,3 +331,11 @@ export declare const ApiV1AdminBillingMetricsGetPeriodEnum: {
248
331
  readonly Year: "year";
249
332
  };
250
333
  export type ApiV1AdminBillingMetricsGetPeriodEnum = typeof ApiV1AdminBillingMetricsGetPeriodEnum[keyof typeof ApiV1AdminBillingMetricsGetPeriodEnum];
334
+ /**
335
+ * @export
336
+ */
337
+ export declare const ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum: {
338
+ readonly User: "user";
339
+ readonly Organization: "organization";
340
+ };
341
+ export type ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum = typeof ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum[keyof typeof ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ApiV1AdminBillingMetricsGetPeriodEnum = exports.ApiV1AdminBillingAuditGetSubjectTypeEnum = exports.AdminBillingApi = void 0;
25
+ exports.ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum = exports.ApiV1AdminBillingMetricsGetPeriodEnum = exports.ApiV1AdminBillingAuditGetSubjectTypeEnum = exports.AdminBillingApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const index_1 = require("../models/index");
28
28
  /**
@@ -134,6 +134,45 @@ class AdminBillingApi extends runtime.BaseAPI {
134
134
  yield this.apiV1AdminBillingDashboardGetRaw(initOverrides);
135
135
  });
136
136
  }
137
+ /**
138
+ * Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
139
+ * Open dispute seat-suspensions, for the admin billing console
140
+ */
141
+ apiV1AdminBillingDisputesGetRaw(requestParameters, initOverrides) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const queryParameters = {};
144
+ if (requestParameters['page'] != null) {
145
+ queryParameters['page'] = requestParameters['page'];
146
+ }
147
+ if (requestParameters['size'] != null) {
148
+ queryParameters['size'] = requestParameters['size'];
149
+ }
150
+ const headerParameters = {};
151
+ if (this.configuration && this.configuration.accessToken) {
152
+ const token = this.configuration.accessToken;
153
+ const tokenString = yield token("bearerAuth", []);
154
+ if (tokenString) {
155
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
156
+ }
157
+ }
158
+ const response = yield this.request({
159
+ path: `/api/v1/admin-billing/disputes`,
160
+ method: 'GET',
161
+ headers: headerParameters,
162
+ query: queryParameters,
163
+ }, initOverrides);
164
+ return new runtime.VoidApiResponse(response);
165
+ });
166
+ }
167
+ /**
168
+ * Lists the organization subscriptions currently suspended under an open dispute, with the organization, the amount, the seats covered, the live Stripe status and the evidence deadline. Read-only: restoring seats belongs to the dispute.closed/won path (or an explicit admin unsuspend), never to this listing.
169
+ * Open dispute seat-suspensions, for the admin billing console
170
+ */
171
+ apiV1AdminBillingDisputesGet() {
172
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
173
+ yield this.apiV1AdminBillingDisputesGetRaw(requestParameters, initOverrides);
174
+ });
175
+ }
137
176
  /**
138
177
  * Expire admin grants past their expiry date (deduct remaining balance)
139
178
  */
@@ -410,6 +449,118 @@ class AdminBillingApi extends runtime.BaseAPI {
410
449
  yield this.apiV1AdminBillingPartnerPartnerIdInvoicePostRaw(requestParameters, initOverrides);
411
450
  });
412
451
  }
452
+ /**
453
+ * For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
454
+ * Fill in the plan price ids from the catalogue (dry run by default)
455
+ */
456
+ apiV1AdminBillingPlansPricesBackfillPostRaw(requestParameters, initOverrides) {
457
+ return __awaiter(this, void 0, void 0, function* () {
458
+ const queryParameters = {};
459
+ const headerParameters = {};
460
+ headerParameters['Content-Type'] = 'application/json';
461
+ if (this.configuration && this.configuration.accessToken) {
462
+ const token = this.configuration.accessToken;
463
+ const tokenString = yield token("bearerAuth", []);
464
+ if (tokenString) {
465
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
466
+ }
467
+ }
468
+ const response = yield this.request({
469
+ path: `/api/v1/admin-billing/plans/prices/backfill`,
470
+ method: 'POST',
471
+ headers: headerParameters,
472
+ query: queryParameters,
473
+ body: (0, index_1.ApiV1AdminBillingPlansPricesBackfillPostRequestToJSON)(requestParameters['apiV1AdminBillingPlansPricesBackfillPostRequest']),
474
+ }, initOverrides);
475
+ return new runtime.VoidApiResponse(response);
476
+ });
477
+ }
478
+ /**
479
+ * For every slot whose column is empty — or whose stored id contradicts the catalogue — finds or creates the Stripe price that bills the catalogue amount and stores its id. An id Stripe cannot be asked about is left alone, and a slot with no `subscription_plans` row is reported rather than invented. Refused outright when Stripe is not configured, since the only id available in that mode is a synthetic one.
480
+ * Fill in the plan price ids from the catalogue (dry run by default)
481
+ */
482
+ apiV1AdminBillingPlansPricesBackfillPost() {
483
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
484
+ yield this.apiV1AdminBillingPlansPricesBackfillPostRaw(requestParameters, initOverrides);
485
+ });
486
+ }
487
+ /**
488
+ * For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
489
+ * Audit the stored plan price ids against the catalogue
490
+ */
491
+ apiV1AdminBillingPlansPricesGetRaw(initOverrides) {
492
+ return __awaiter(this, void 0, void 0, function* () {
493
+ const queryParameters = {};
494
+ const headerParameters = {};
495
+ if (this.configuration && this.configuration.accessToken) {
496
+ const token = this.configuration.accessToken;
497
+ const tokenString = yield token("bearerAuth", []);
498
+ if (tokenString) {
499
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
500
+ }
501
+ }
502
+ const response = yield this.request({
503
+ path: `/api/v1/admin-billing/plans/prices`,
504
+ method: 'GET',
505
+ headers: headerParameters,
506
+ query: queryParameters,
507
+ }, initOverrides);
508
+ return new runtime.VoidApiResponse(response);
509
+ });
510
+ }
511
+ /**
512
+ * For every plan and billing frequency, what `subscription_plans` stores, what Stripe says that price bills, and what the catalogue requires (`PLAN_UTILS.getYearlyPrice` for the yearly slots). Read-only: the « agrees » flag is the answer to whether the amount stored and the amount quoted are the same number.
513
+ * Audit the stored plan price ids against the catalogue
514
+ */
515
+ apiV1AdminBillingPlansPricesGet(initOverrides) {
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ yield this.apiV1AdminBillingPlansPricesGetRaw(initOverrides);
518
+ });
519
+ }
520
+ /**
521
+ * The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
522
+ * Set a plan\'s Stripe price id, after verifying it bills the catalogue
523
+ */
524
+ apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRaw(requestParameters, initOverrides) {
525
+ return __awaiter(this, void 0, void 0, function* () {
526
+ if (requestParameters['planType'] == null) {
527
+ throw new runtime.RequiredError('planType', 'Required parameter "planType" was null or undefined when calling apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut().');
528
+ }
529
+ if (requestParameters['billingFrequency'] == null) {
530
+ throw new runtime.RequiredError('billingFrequency', 'Required parameter "billingFrequency" was null or undefined when calling apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut().');
531
+ }
532
+ if (requestParameters['apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest'] == null) {
533
+ throw new runtime.RequiredError('apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest', 'Required parameter "apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest" was null or undefined when calling apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut().');
534
+ }
535
+ const queryParameters = {};
536
+ const headerParameters = {};
537
+ headerParameters['Content-Type'] = 'application/json';
538
+ if (this.configuration && this.configuration.accessToken) {
539
+ const token = this.configuration.accessToken;
540
+ const tokenString = yield token("bearerAuth", []);
541
+ if (tokenString) {
542
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
543
+ }
544
+ }
545
+ const response = yield this.request({
546
+ path: `/api/v1/admin-billing/plans/prices/{planType}/{billingFrequency}`.replace(`{${"planType"}}`, encodeURIComponent(String(requestParameters['planType']))).replace(`{${"billingFrequency"}}`, encodeURIComponent(String(requestParameters['billingFrequency']))),
547
+ method: 'PUT',
548
+ headers: headerParameters,
549
+ query: queryParameters,
550
+ body: (0, index_1.ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequestToJSON)(requestParameters['apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest']),
551
+ }, initOverrides);
552
+ return new runtime.VoidApiResponse(response);
553
+ });
554
+ }
555
+ /**
556
+ * The id is read back from Stripe and refused unless its amount, currency and interval match the catalogue, so an id for a stale amount — or an annual price that never had the 20% yearly discount applied — cannot be stored.
557
+ * Set a plan\'s Stripe price id, after verifying it bills the catalogue
558
+ */
559
+ apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPut(requestParameters, initOverrides) {
560
+ return __awaiter(this, void 0, void 0, function* () {
561
+ yield this.apiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRaw(requestParameters, initOverrides);
562
+ });
563
+ }
413
564
  /**
414
565
  * Find local invoice rows missing their Stripe counterpart
415
566
  */
@@ -442,6 +593,53 @@ class AdminBillingApi extends runtime.BaseAPI {
442
593
  });
443
594
  }
444
595
  /**
596
+ * Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
597
+ * Recent seat credit clawbacks (refund/chargeback reversals)
598
+ */
599
+ apiV1AdminBillingRefundsClawbacksGetRaw(requestParameters, initOverrides) {
600
+ return __awaiter(this, void 0, void 0, function* () {
601
+ const queryParameters = {};
602
+ if (requestParameters['subjectType'] != null) {
603
+ queryParameters['subjectType'] = requestParameters['subjectType'];
604
+ }
605
+ if (requestParameters['subjectId'] != null) {
606
+ queryParameters['subjectId'] = requestParameters['subjectId'];
607
+ }
608
+ if (requestParameters['page'] != null) {
609
+ queryParameters['page'] = requestParameters['page'];
610
+ }
611
+ if (requestParameters['size'] != null) {
612
+ queryParameters['size'] = requestParameters['size'];
613
+ }
614
+ const headerParameters = {};
615
+ if (this.configuration && this.configuration.accessToken) {
616
+ const token = this.configuration.accessToken;
617
+ const tokenString = yield token("bearerAuth", []);
618
+ if (tokenString) {
619
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
620
+ }
621
+ }
622
+ const response = yield this.request({
623
+ path: `/api/v1/admin-billing/refunds/clawbacks`,
624
+ method: 'GET',
625
+ headers: headerParameters,
626
+ query: queryParameters,
627
+ }, initOverrides);
628
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1AdminBillingRefundsClawbacksGet200ResponseFromJSON)(jsonValue));
629
+ });
630
+ }
631
+ /**
632
+ * Lists the per-member credit reversals the refund and chargeback paths wrote to the ledger, optionally scoped to one organization, with the aggregates support needs to size a re-grant after a won dispute or a good-will refund. Read-only: issuing a re-grant is a separate decision through the grants endpoints, which records its own admin action row.
633
+ * Recent seat credit clawbacks (refund/chargeback reversals)
634
+ */
635
+ apiV1AdminBillingRefundsClawbacksGet() {
636
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
637
+ const response = yield this.apiV1AdminBillingRefundsClawbacksGetRaw(requestParameters, initOverrides);
638
+ return yield response.value();
639
+ });
640
+ }
641
+ /**
642
+ * Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
445
643
  * Refund a payment (30-day age limit; reverses credits proportionally)
446
644
  */
447
645
  apiV1AdminBillingRefundsPostRaw(requestParameters, initOverrides) {
@@ -470,6 +668,7 @@ class AdminBillingApi extends runtime.BaseAPI {
470
668
  });
471
669
  }
472
670
  /**
671
+ * Refunds exactly the charge named by `paymentIntentId`, `stripeInvoiceId` or `subscriptionId`\'s latest paid invoice (resolved server-side from Stripe, with the ledger as the fallback). A request that names no charge is refused; the amount is derived from the charge\'s unspent allowance and cannot be supplied.
473
672
  * Refund a payment (30-day age limit; reverses credits proportionally)
474
673
  */
475
674
  apiV1AdminBillingRefundsPost(requestParameters, initOverrides) {
@@ -477,6 +676,45 @@ class AdminBillingApi extends runtime.BaseAPI {
477
676
  yield this.apiV1AdminBillingRefundsPostRaw(requestParameters, initOverrides);
478
677
  });
479
678
  }
679
+ /**
680
+ * Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
681
+ * Preview a refund without issuing it (dry run)
682
+ */
683
+ apiV1AdminBillingRefundsPreviewPostRaw(requestParameters, initOverrides) {
684
+ return __awaiter(this, void 0, void 0, function* () {
685
+ if (requestParameters['apiV1AdminBillingRefundsPreviewPostRequest'] == null) {
686
+ throw new runtime.RequiredError('apiV1AdminBillingRefundsPreviewPostRequest', 'Required parameter "apiV1AdminBillingRefundsPreviewPostRequest" was null or undefined when calling apiV1AdminBillingRefundsPreviewPost().');
687
+ }
688
+ const queryParameters = {};
689
+ const headerParameters = {};
690
+ headerParameters['Content-Type'] = 'application/json';
691
+ if (this.configuration && this.configuration.accessToken) {
692
+ const token = this.configuration.accessToken;
693
+ const tokenString = yield token("bearerAuth", []);
694
+ if (tokenString) {
695
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
696
+ }
697
+ }
698
+ const response = yield this.request({
699
+ path: `/api/v1/admin-billing/refunds/preview`,
700
+ method: 'POST',
701
+ headers: headerParameters,
702
+ query: queryParameters,
703
+ body: (0, index_1.ApiV1AdminBillingRefundsPreviewPostRequestToJSON)(requestParameters['apiV1AdminBillingRefundsPreviewPostRequest']),
704
+ }, initOverrides);
705
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1AdminBillingRefundsPreviewPost200ResponseFromJSON)(jsonValue));
706
+ });
707
+ }
708
+ /**
709
+ * Resolves the charge exactly as the refund endpoint does and returns the derived amount, the plan\'s credit rate and — for an organization seat invoice — the per-member clawback the refund would make, before any money moves. Writes nothing: no Stripe refund, no audit row, no idempotency entry, so it can be run repeatedly. Every guard refusal the refund endpoint can raise is raised here identically.
710
+ * Preview a refund without issuing it (dry run)
711
+ */
712
+ apiV1AdminBillingRefundsPreviewPost(requestParameters, initOverrides) {
713
+ return __awaiter(this, void 0, void 0, function* () {
714
+ const response = yield this.apiV1AdminBillingRefundsPreviewPostRaw(requestParameters, initOverrides);
715
+ return yield response.value();
716
+ });
717
+ }
480
718
  /**
481
719
  * Schedule cancellation at period end (admin)
482
720
  */
@@ -742,3 +980,10 @@ exports.ApiV1AdminBillingMetricsGetPeriodEnum = {
742
980
  Quarter: 'quarter',
743
981
  Year: 'year'
744
982
  };
983
+ /**
984
+ * @export
985
+ */
986
+ exports.ApiV1AdminBillingRefundsClawbacksGetSubjectTypeEnum = {
987
+ User: 'user',
988
+ Organization: 'organization'
989
+ };
@@ -69,12 +69,12 @@ export declare class AgentApi extends runtime.BaseAPI {
69
69
  */
70
70
  agentCodeGeneratePost(requestParameters: AgentCodeGeneratePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentCodeGeneratePost202Response>;
71
71
  /**
72
- * Initiates an asynchronous code modification task using Aider.
72
+ * Initiates an asynchronous code modification task using Direct LLM.
73
73
  * Modify existing code based on instructions
74
74
  */
75
75
  agentCodeModifyPostRaw(requestParameters: AgentCodeModifyPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AgentCodeModifyPost202Response>>;
76
76
  /**
77
- * Initiates an asynchronous code modification task using Aider.
77
+ * Initiates an asynchronous code modification task using Direct LLM.
78
78
  * Modify existing code based on instructions
79
79
  */
80
80
  agentCodeModifyPost(requestParameters: AgentCodeModifyPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AgentCodeModifyPost202Response>;
@@ -69,7 +69,7 @@ class AgentApi extends runtime.BaseAPI {
69
69
  });
70
70
  }
71
71
  /**
72
- * Initiates an asynchronous code modification task using Aider.
72
+ * Initiates an asynchronous code modification task using Direct LLM.
73
73
  * Modify existing code based on instructions
74
74
  */
75
75
  agentCodeModifyPostRaw(requestParameters, initOverrides) {
@@ -98,7 +98,7 @@ class AgentApi extends runtime.BaseAPI {
98
98
  });
99
99
  }
100
100
  /**
101
- * Initiates an asynchronous code modification task using Aider.
101
+ * Initiates an asynchronous code modification task using Direct LLM.
102
102
  * Modify existing code based on instructions
103
103
  */
104
104
  agentCodeModifyPost(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 { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, RefreshSessionRequest, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
13
+ import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, RefreshSessionRequest, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest, ValidateInviteCode200Response } from '../models/index';
14
14
  export interface CompleteSignupOperationRequest {
15
15
  completeSignupRequest: CompleteSignupRequest;
16
16
  }
@@ -53,6 +53,9 @@ export interface UpdatePasswordOperationRequest {
53
53
  export interface UpdateUserMetadataOperationRequest {
54
54
  updateUserMetadataRequest: UpdateUserMetadataRequest;
55
55
  }
56
+ export interface ValidateInviteCodeRequest {
57
+ code: string;
58
+ }
56
59
  /**
57
60
  *
58
61
  */
@@ -193,4 +196,12 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
193
196
  * Update user metadata
194
197
  */
195
198
  updateUserMetadata(requestParameters: UpdateUserMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
199
+ /**
200
+ * Validate an access invite code
201
+ */
202
+ validateInviteCodeRaw(requestParameters: ValidateInviteCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateInviteCode200Response>>;
203
+ /**
204
+ * Validate an access invite code
205
+ */
206
+ validateInviteCode(requestParameters: ValidateInviteCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateInviteCode200Response>;
196
207
  }
@@ -545,5 +545,36 @@ class AuthenticationApi extends runtime.BaseAPI {
545
545
  yield this.updateUserMetadataRaw(requestParameters, initOverrides);
546
546
  });
547
547
  }
548
+ /**
549
+ * Validate an access invite code
550
+ */
551
+ validateInviteCodeRaw(requestParameters, initOverrides) {
552
+ return __awaiter(this, void 0, void 0, function* () {
553
+ if (requestParameters['code'] == null) {
554
+ throw new runtime.RequiredError('code', 'Required parameter "code" was null or undefined when calling validateInviteCode().');
555
+ }
556
+ const queryParameters = {};
557
+ if (requestParameters['code'] != null) {
558
+ queryParameters['code'] = requestParameters['code'];
559
+ }
560
+ const headerParameters = {};
561
+ const response = yield this.request({
562
+ path: `/auth/invite-code`,
563
+ method: 'GET',
564
+ headers: headerParameters,
565
+ query: queryParameters,
566
+ }, initOverrides);
567
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ValidateInviteCode200ResponseFromJSON)(jsonValue));
568
+ });
569
+ }
570
+ /**
571
+ * Validate an access invite code
572
+ */
573
+ validateInviteCode(requestParameters, initOverrides) {
574
+ return __awaiter(this, void 0, void 0, function* () {
575
+ const response = yield this.validateInviteCodeRaw(requestParameters, initOverrides);
576
+ return yield response.value();
577
+ });
578
+ }
548
579
  }
549
580
  exports.AuthenticationApi = AuthenticationApi;