@widgetic/api-sdk 1.0.32 → 1.0.33

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 (536) hide show
  1. package/README.md +4 -0
  2. package/dist/apis/AdminApi.d.ts +30 -46
  3. package/dist/apis/AdminApi.js +53 -102
  4. package/dist/apis/AdminBillingApi.d.ts +2 -2
  5. package/dist/apis/AdminBillingApi.js +2 -2
  6. package/dist/apis/AgentRepositoryManagementApi.d.ts +32 -0
  7. package/dist/apis/AgentRepositoryManagementApi.js +75 -0
  8. package/dist/apis/BillingApi.d.ts +44 -1
  9. package/dist/apis/BillingApi.js +127 -0
  10. package/dist/apis/CompositionsApi.d.ts +2 -2
  11. package/dist/apis/CompositionsApi.js +2 -2
  12. package/dist/apis/CreditsApi.d.ts +7 -7
  13. package/dist/apis/CreditsApi.js +5 -5
  14. package/dist/apis/EnterpriseCustomizationsApi.d.ts +87 -0
  15. package/dist/apis/EnterpriseCustomizationsApi.js +233 -0
  16. package/dist/apis/OrganizationsApi.d.ts +35 -7
  17. package/dist/apis/OrganizationsApi.js +86 -6
  18. package/dist/apis/PartnerApi.d.ts +65 -21
  19. package/dist/apis/PartnerApi.js +147 -19
  20. package/dist/apis/PartnerCustomizationsApi.d.ts +4 -4
  21. package/dist/apis/PartnerCustomizationsApi.js +4 -4
  22. package/dist/apis/PartnersApi.d.ts +28 -67
  23. package/dist/apis/PartnersApi.js +31 -119
  24. package/dist/apis/PublicEmbedApi.d.ts +4 -4
  25. package/dist/apis/PublicEmbedApi.js +4 -4
  26. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  27. package/dist/apis/SubscriptionsApi.js +2 -2
  28. package/dist/apis/UIComponentsApi.d.ts +96 -0
  29. package/dist/apis/UIComponentsApi.js +209 -0
  30. package/dist/apis/UploadsApi.d.ts +4 -4
  31. package/dist/apis/UploadsApi.js +4 -4
  32. package/dist/apis/UsersApi.d.ts +4 -4
  33. package/dist/apis/UsersApi.js +4 -4
  34. package/dist/apis/WorkflowsApi.d.ts +44 -0
  35. package/dist/apis/WorkflowsApi.js +111 -0
  36. package/dist/esm/apis/AdminApi.d.ts +30 -46
  37. package/dist/esm/apis/AdminApi.js +54 -103
  38. package/dist/esm/apis/AdminBillingApi.d.ts +2 -2
  39. package/dist/esm/apis/AdminBillingApi.js +2 -2
  40. package/dist/esm/apis/AgentRepositoryManagementApi.d.ts +32 -0
  41. package/dist/esm/apis/AgentRepositoryManagementApi.js +71 -0
  42. package/dist/esm/apis/BillingApi.d.ts +44 -1
  43. package/dist/esm/apis/BillingApi.js +128 -1
  44. package/dist/esm/apis/CompositionsApi.d.ts +2 -2
  45. package/dist/esm/apis/CompositionsApi.js +2 -2
  46. package/dist/esm/apis/CreditsApi.d.ts +7 -7
  47. package/dist/esm/apis/CreditsApi.js +6 -6
  48. package/dist/esm/apis/EnterpriseCustomizationsApi.d.ts +87 -0
  49. package/dist/esm/apis/EnterpriseCustomizationsApi.js +229 -0
  50. package/dist/esm/apis/OrganizationsApi.d.ts +35 -7
  51. package/dist/esm/apis/OrganizationsApi.js +87 -7
  52. package/dist/esm/apis/PartnerApi.d.ts +65 -21
  53. package/dist/esm/apis/PartnerApi.js +148 -20
  54. package/dist/esm/apis/PartnerCustomizationsApi.d.ts +4 -4
  55. package/dist/esm/apis/PartnerCustomizationsApi.js +4 -4
  56. package/dist/esm/apis/PartnersApi.d.ts +28 -67
  57. package/dist/esm/apis/PartnersApi.js +31 -119
  58. package/dist/esm/apis/PublicEmbedApi.d.ts +4 -4
  59. package/dist/esm/apis/PublicEmbedApi.js +4 -4
  60. package/dist/esm/apis/SubscriptionsApi.d.ts +2 -2
  61. package/dist/esm/apis/SubscriptionsApi.js +2 -2
  62. package/dist/esm/apis/UIComponentsApi.d.ts +96 -0
  63. package/dist/esm/apis/UIComponentsApi.js +205 -0
  64. package/dist/esm/apis/UploadsApi.d.ts +4 -4
  65. package/dist/esm/apis/UploadsApi.js +4 -4
  66. package/dist/esm/apis/UsersApi.d.ts +4 -4
  67. package/dist/esm/apis/UsersApi.js +4 -4
  68. package/dist/esm/apis/WorkflowsApi.d.ts +44 -0
  69. package/dist/esm/apis/WorkflowsApi.js +107 -0
  70. package/dist/esm/models/AgentRepositoriesRepoIdSyncPost202Response.d.ts +32 -0
  71. package/dist/esm/models/AgentRepositoriesRepoIdSyncPost202Response.js +41 -0
  72. package/dist/esm/models/AgentRepositoriesRepoIdSyncPostRequest.d.ts +32 -0
  73. package/dist/esm/models/AgentRepositoriesRepoIdSyncPostRequest.js +43 -0
  74. package/dist/esm/models/AgentTasksTaskIdStatusPutRequest.d.ts +54 -0
  75. package/dist/esm/models/AgentTasksTaskIdStatusPutRequest.js +60 -0
  76. package/dist/esm/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.d.ts +32 -0
  77. package/dist/esm/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.js +41 -0
  78. package/dist/esm/models/ApiV1AdminBillingGrantsPostRequest.d.ts +82 -0
  79. package/dist/esm/models/ApiV1AdminBillingGrantsPostRequest.js +79 -0
  80. package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
  81. package/dist/esm/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +41 -0
  82. package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
  83. package/dist/esm/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +43 -0
  84. package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.d.ts +64 -0
  85. package/dist/esm/models/ApiV1AdminBillingRefundsPostRequest.js +60 -0
  86. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
  87. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +59 -0
  88. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  89. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +48 -0
  90. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
  91. package/dist/esm/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +62 -0
  92. package/dist/esm/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.d.ts +46 -0
  93. package/dist/esm/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.js +52 -0
  94. package/dist/esm/models/ApiV1BillingPricingGet200Response.d.ts +39 -0
  95. package/dist/esm/models/ApiV1BillingPricingGet200Response.js +44 -0
  96. package/dist/esm/models/ApiV1BillingPricingGet200ResponseData.d.ts +46 -0
  97. package/dist/esm/models/ApiV1BillingPricingGet200ResponseData.js +47 -0
  98. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataPlansInner.d.ts +68 -0
  99. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataPlansInner.js +53 -0
  100. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataTrial.d.ts +44 -0
  101. package/dist/esm/models/ApiV1BillingPricingGet200ResponseDataTrial.js +45 -0
  102. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200Response.d.ts +39 -0
  103. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200Response.js +44 -0
  104. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.d.ts +33 -0
  105. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.js +42 -0
  106. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.d.ts +68 -0
  107. package/dist/esm/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.js +53 -0
  108. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.d.ts +39 -0
  109. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.js +44 -0
  110. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.d.ts +32 -0
  111. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.js +41 -0
  112. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +39 -0
  113. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +44 -0
  114. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +32 -0
  115. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +41 -0
  116. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.d.ts +39 -0
  117. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.js +44 -0
  118. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.d.ts +32 -0
  119. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.js +41 -0
  120. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.d.ts +32 -0
  121. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.js +41 -0
  122. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.d.ts +39 -0
  123. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.js +44 -0
  124. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.d.ts +120 -0
  125. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.js +76 -0
  126. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.d.ts +39 -0
  127. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.js +44 -0
  128. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.d.ts +38 -0
  129. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.js +43 -0
  130. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.d.ts +39 -0
  131. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.js +44 -0
  132. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.d.ts +38 -0
  133. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.js +43 -0
  134. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +53 -0
  135. package/dist/esm/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +58 -0
  136. package/dist/esm/models/ApiV1MetricsGet200Response.d.ts +39 -0
  137. package/dist/esm/models/ApiV1MetricsGet200Response.js +44 -0
  138. package/dist/esm/models/ApiV1MetricsGet200ResponseData.d.ts +56 -0
  139. package/dist/esm/models/ApiV1MetricsGet200ResponseData.js +50 -0
  140. package/dist/esm/models/ApiV1MetricsGet200ResponseDataErrorsValue.d.ts +44 -0
  141. package/dist/esm/models/ApiV1MetricsGet200ResponseDataErrorsValue.js +45 -0
  142. package/dist/esm/models/ApiV1MetricsGet200ResponseDataLatencyValue.d.ts +50 -0
  143. package/dist/esm/models/ApiV1MetricsGet200ResponseDataLatencyValue.js +47 -0
  144. package/dist/esm/models/ApiV1MetricsLatencyGet200Response.d.ts +41 -0
  145. package/dist/esm/models/ApiV1MetricsLatencyGet200Response.js +45 -0
  146. package/dist/esm/models/ApiV1MetricsLatencyGet200ResponseDataValue.d.ts +62 -0
  147. package/dist/esm/models/ApiV1MetricsLatencyGet200ResponseDataValue.js +51 -0
  148. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
  149. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +59 -0
  150. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  151. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +48 -0
  152. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
  153. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +43 -0
  154. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
  155. package/dist/esm/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +45 -0
  156. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  157. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.js +43 -0
  158. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  159. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.js +44 -0
  160. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  161. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.js +42 -0
  162. package/dist/esm/models/CancelCurrentSubscription200Response.d.ts +45 -0
  163. package/dist/esm/models/CancelCurrentSubscription200Response.js +46 -0
  164. package/dist/esm/models/CancelCurrentSubscriptionRequest.d.ts +44 -0
  165. package/dist/esm/models/CancelCurrentSubscriptionRequest.js +45 -0
  166. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.d.ts +38 -0
  167. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.js +43 -0
  168. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.d.ts +38 -0
  169. package/dist/esm/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.js +47 -0
  170. package/dist/esm/models/ComponentManifest.d.ts +52 -0
  171. package/dist/esm/models/ComponentManifest.js +49 -0
  172. package/dist/esm/models/ComponentManifestAssets.d.ts +38 -0
  173. package/dist/esm/models/ComponentManifestAssets.js +43 -0
  174. package/dist/esm/models/ComponentManifestConfig.d.ts +44 -0
  175. package/dist/esm/models/ComponentManifestConfig.js +45 -0
  176. package/dist/esm/models/ConvertSoloToTeams200Response.d.ts +39 -0
  177. package/dist/esm/models/ConvertSoloToTeams200Response.js +44 -0
  178. package/dist/esm/models/CreateCheckoutSession200Response.d.ts +38 -0
  179. package/dist/esm/models/CreateCheckoutSession200Response.js +43 -0
  180. package/dist/esm/models/CreateCheckoutSessionRequest.d.ts +32 -0
  181. package/dist/esm/models/CreateCheckoutSessionRequest.js +43 -0
  182. package/dist/esm/models/CreateComposition201Response.d.ts +39 -0
  183. package/dist/esm/models/CreateComposition201Response.js +44 -0
  184. package/dist/esm/models/CreatePartnerRequest.d.ts +7 -0
  185. package/dist/esm/models/CreatePartnerRequest.js +2 -0
  186. package/dist/esm/models/DevelopmentPlan.d.ts +97 -0
  187. package/dist/esm/models/DevelopmentPlan.js +69 -0
  188. package/dist/esm/models/DevelopmentTask.d.ts +90 -0
  189. package/dist/esm/models/DevelopmentTask.js +66 -0
  190. package/dist/esm/models/EnterpriseCustomization.d.ts +125 -0
  191. package/dist/esm/models/EnterpriseCustomization.js +77 -0
  192. package/dist/esm/models/GenerateComponentWorkflowInput.d.ts +56 -0
  193. package/dist/esm/models/GenerateComponentWorkflowInput.js +55 -0
  194. package/dist/esm/models/GenerateMixedComponentInput.d.ts +62 -0
  195. package/dist/esm/models/GenerateMixedComponentInput.js +59 -0
  196. package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
  197. package/dist/esm/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  198. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataBreakdown.d.ts +44 -0
  199. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataBreakdown.js +45 -0
  200. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  201. package/dist/esm/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  202. package/dist/esm/models/GetPartnerCreditTransactions200Response.js +44 -0
  203. package/dist/esm/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  204. package/dist/esm/models/IssuePartnerInvoiceRequest.js +2 -0
  205. package/dist/esm/models/IssuedPartnerInvoice.d.ts +6 -0
  206. package/dist/esm/models/IssuedPartnerInvoice.js +4 -0
  207. package/dist/esm/models/ListComponents200Response.d.ts +33 -0
  208. package/dist/esm/models/ListComponents200Response.js +42 -0
  209. package/dist/esm/models/ListEnterpriseCustomizations200Response.d.ts +40 -0
  210. package/dist/esm/models/ListEnterpriseCustomizations200Response.js +45 -0
  211. package/dist/esm/models/ListEnterpriseCustomizations200ResponsePagination.d.ts +50 -0
  212. package/dist/esm/models/ListEnterpriseCustomizations200ResponsePagination.js +47 -0
  213. package/dist/esm/models/MountRequest.d.ts +45 -0
  214. package/dist/esm/models/MountRequest.js +48 -0
  215. package/dist/esm/models/MountRequestTheme.d.ts +54 -0
  216. package/dist/esm/models/MountRequestTheme.js +54 -0
  217. package/dist/esm/models/MountRequestThemeColors.d.ts +50 -0
  218. package/dist/esm/models/MountRequestThemeColors.js +47 -0
  219. package/dist/esm/models/MountRequestThemeTypography.d.ts +38 -0
  220. package/dist/esm/models/MountRequestThemeTypography.js +43 -0
  221. package/dist/esm/models/MountResponse.d.ts +46 -0
  222. package/dist/esm/models/MountResponse.js +50 -0
  223. package/dist/esm/models/MyPartner.d.ts +7 -0
  224. package/dist/esm/models/MyPartner.js +4 -0
  225. package/dist/esm/models/MyPartners.d.ts +9 -1
  226. package/dist/esm/models/MyPartners.js +6 -1
  227. package/dist/esm/models/NewWidgetComponentsMetadataInner.d.ts +64 -0
  228. package/dist/esm/models/NewWidgetComponentsMetadataInner.js +53 -0
  229. package/dist/esm/models/NewWidgetComponentsMetadataInnerPosition.d.ts +38 -0
  230. package/dist/esm/models/NewWidgetComponentsMetadataInnerPosition.js +43 -0
  231. package/dist/esm/models/NewWidgetComponentsMetadataInnerSize.d.ts +38 -0
  232. package/dist/esm/models/NewWidgetComponentsMetadataInnerSize.js +43 -0
  233. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  234. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.js +9 -0
  235. package/dist/esm/models/Partner.d.ts +7 -0
  236. package/dist/esm/models/Partner.js +2 -0
  237. package/dist/esm/models/PartnerActivation.d.ts +1 -1
  238. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  239. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  240. package/dist/esm/models/PartnerBillingProfile.d.ts +1 -1
  241. package/dist/esm/models/PartnerContract.d.ts +15 -3
  242. package/dist/esm/models/PartnerContract.js +6 -2
  243. package/dist/esm/models/PartnerCustomization.d.ts +15 -3
  244. package/dist/esm/models/PartnerCustomization.js +6 -2
  245. package/dist/esm/models/PartnerDetails.d.ts +7 -0
  246. package/dist/esm/models/PartnerDetails.js +2 -0
  247. package/dist/esm/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  248. package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
  249. package/dist/esm/models/PartnerInvoiceSchedule.d.ts +66 -0
  250. package/dist/esm/models/PartnerInvoiceSchedule.js +67 -0
  251. package/dist/esm/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  252. package/dist/esm/models/PartnerInvoiceScheduleContract.js +67 -0
  253. package/dist/esm/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  254. package/dist/esm/models/PartnerInvoiceScheduleNext.js +91 -0
  255. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  256. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.js +47 -0
  257. package/dist/esm/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  258. package/dist/esm/models/PartnerInvoiceScheduleOverdue.js +47 -0
  259. package/dist/esm/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  260. package/dist/esm/models/PartnerInvoiceSchedulePeriod.js +91 -0
  261. package/dist/esm/models/PartnerNotification.d.ts +1 -1
  262. package/dist/esm/models/PartnerNotificationEventType.d.ts +2 -0
  263. package/dist/esm/models/PartnerNotificationEventType.js +2 -0
  264. package/dist/esm/models/PartnerUpdateResult.d.ts +8 -16
  265. package/dist/esm/models/PartnerUpdateResult.js +2 -5
  266. package/dist/esm/models/PartnerWithWarnings.d.ts +7 -0
  267. package/dist/esm/models/PartnerWithWarnings.js +2 -0
  268. package/dist/esm/models/PersonalExtraStorage.d.ts +92 -0
  269. package/dist/esm/models/PersonalExtraStorage.js +83 -0
  270. package/dist/esm/models/PersonalExtraStorageBlock.d.ts +56 -0
  271. package/dist/esm/models/PersonalExtraStorageBlock.js +57 -0
  272. package/dist/esm/models/PersonalStorage.d.ts +80 -0
  273. package/dist/esm/models/PersonalStorage.js +73 -0
  274. package/dist/esm/models/PersonalStoragePack.d.ts +100 -0
  275. package/dist/esm/models/PersonalStoragePack.js +84 -0
  276. package/dist/esm/models/PurchaseStoragePack200ResponseDataPaymentIntent.d.ts +50 -0
  277. package/dist/esm/models/PurchaseStoragePack200ResponseDataPaymentIntent.js +47 -0
  278. package/dist/esm/models/RequestExtraCredits.d.ts +33 -0
  279. package/dist/esm/models/RequestExtraCredits.js +43 -0
  280. package/dist/esm/models/RollbackComponentRequest.d.ts +38 -0
  281. package/dist/esm/models/RollbackComponentRequest.js +45 -0
  282. package/dist/esm/models/StorageChange.d.ts +4 -3
  283. package/dist/esm/models/SurfaceConversionResult.d.ts +85 -0
  284. package/dist/esm/models/SurfaceConversionResult.js +76 -0
  285. package/dist/esm/models/SurfaceConversionResultSubscription.d.ts +82 -0
  286. package/dist/esm/models/SurfaceConversionResultSubscription.js +62 -0
  287. package/dist/esm/models/UIComponent.d.ts +65 -0
  288. package/dist/esm/models/UIComponent.js +57 -0
  289. package/dist/esm/models/UpdateCompositionRequest.d.ts +38 -0
  290. package/dist/esm/models/UpdateCompositionRequest.js +43 -0
  291. package/dist/esm/models/UpdateCurrentSubscriptionRequest.d.ts +38 -0
  292. package/dist/esm/models/UpdateCurrentSubscriptionRequest.js +43 -0
  293. package/dist/esm/models/UpdateEnterpriseCustomizationRequest.d.ts +95 -0
  294. package/dist/esm/models/UpdateEnterpriseCustomizationRequest.js +67 -0
  295. package/dist/esm/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  296. package/dist/esm/models/UpdatePartnerCustomizationRequest.js +2 -2
  297. package/dist/esm/models/UpdatePartnerRequest.d.ts +7 -24
  298. package/dist/esm/models/UpdatePartnerRequest.js +2 -8
  299. package/dist/esm/models/WorkflowAcceptedResponse.d.ts +38 -0
  300. package/dist/esm/models/WorkflowAcceptedResponse.js +43 -0
  301. package/dist/esm/models/index.d.ts +19 -9
  302. package/dist/esm/models/index.js +19 -9
  303. package/dist/models/AgentRepositoriesRepoIdSyncPost202Response.d.ts +32 -0
  304. package/dist/models/AgentRepositoriesRepoIdSyncPost202Response.js +48 -0
  305. package/dist/models/AgentRepositoriesRepoIdSyncPostRequest.d.ts +32 -0
  306. package/dist/models/AgentRepositoriesRepoIdSyncPostRequest.js +50 -0
  307. package/dist/models/AgentTasksTaskIdStatusPutRequest.d.ts +54 -0
  308. package/dist/models/AgentTasksTaskIdStatusPutRequest.js +68 -0
  309. package/dist/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.d.ts +32 -0
  310. package/dist/models/ApiV1AdminBillingGrantsGrantIdRejectPostRequest.js +48 -0
  311. package/dist/models/ApiV1AdminBillingGrantsPostRequest.d.ts +82 -0
  312. package/dist/models/ApiV1AdminBillingGrantsPostRequest.js +87 -0
  313. package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.d.ts +32 -0
  314. package/dist/models/ApiV1AdminBillingPlansPricesBackfillPostRequest.js +48 -0
  315. package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.d.ts +32 -0
  316. package/dist/models/ApiV1AdminBillingPlansPricesPlanTypeBillingFrequencyPutRequest.js +50 -0
  317. package/dist/models/ApiV1AdminBillingRefundsPostRequest.d.ts +64 -0
  318. package/dist/models/ApiV1AdminBillingRefundsPostRequest.js +68 -0
  319. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.d.ts +71 -0
  320. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200Response.js +67 -0
  321. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  322. package/dist/models/ApiV1AdminBillingRefundsPreviewPost200ResponseOrganizationPreview.js +55 -0
  323. package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.d.ts +70 -0
  324. package/dist/models/ApiV1AdminBillingRefundsPreviewPostRequest.js +70 -0
  325. package/dist/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.d.ts +46 -0
  326. package/dist/models/ApiV1AdminBillingSubscriptionsSubjectIdCancelPostRequest.js +60 -0
  327. package/dist/models/ApiV1BillingPricingGet200Response.d.ts +39 -0
  328. package/dist/models/ApiV1BillingPricingGet200Response.js +51 -0
  329. package/dist/models/ApiV1BillingPricingGet200ResponseData.d.ts +46 -0
  330. package/dist/models/ApiV1BillingPricingGet200ResponseData.js +54 -0
  331. package/dist/models/ApiV1BillingPricingGet200ResponseDataPlansInner.d.ts +68 -0
  332. package/dist/models/ApiV1BillingPricingGet200ResponseDataPlansInner.js +60 -0
  333. package/dist/models/ApiV1BillingPricingGet200ResponseDataTrial.d.ts +44 -0
  334. package/dist/models/ApiV1BillingPricingGet200ResponseDataTrial.js +52 -0
  335. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200Response.d.ts +39 -0
  336. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200Response.js +51 -0
  337. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.d.ts +33 -0
  338. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseData.js +49 -0
  339. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.d.ts +68 -0
  340. package/dist/models/ApiV1BillingUsersUserIdInvoicesGet200ResponseDataInvoicesInner.js +60 -0
  341. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.d.ts +39 -0
  342. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response.js +51 -0
  343. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.d.ts +32 -0
  344. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseData.js +48 -0
  345. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.d.ts +39 -0
  346. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response.js +51 -0
  347. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.d.ts +32 -0
  348. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseData.js +48 -0
  349. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.d.ts +39 -0
  350. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200Response.js +51 -0
  351. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.d.ts +32 -0
  352. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseData.js +48 -0
  353. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.d.ts +32 -0
  354. package/dist/models/ApiV1BillingUsersUserIdSubscriptionCancelPostRequest.js +48 -0
  355. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.d.ts +39 -0
  356. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200Response.js +51 -0
  357. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.d.ts +120 -0
  358. package/dist/models/ApiV1BillingUsersUserIdSubscriptionGet200ResponseData.js +84 -0
  359. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.d.ts +39 -0
  360. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200Response.js +51 -0
  361. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.d.ts +38 -0
  362. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseData.js +50 -0
  363. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.d.ts +39 -0
  364. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200Response.js +51 -0
  365. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.d.ts +38 -0
  366. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPost200ResponseData.js +50 -0
  367. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.d.ts +53 -0
  368. package/dist/models/ApiV1BillingUsersUserIdSubscriptionPostRequest.js +66 -0
  369. package/dist/models/ApiV1MetricsGet200Response.d.ts +39 -0
  370. package/dist/models/ApiV1MetricsGet200Response.js +51 -0
  371. package/dist/models/ApiV1MetricsGet200ResponseData.d.ts +56 -0
  372. package/dist/models/ApiV1MetricsGet200ResponseData.js +57 -0
  373. package/dist/models/ApiV1MetricsGet200ResponseDataErrorsValue.d.ts +44 -0
  374. package/dist/models/ApiV1MetricsGet200ResponseDataErrorsValue.js +52 -0
  375. package/dist/models/ApiV1MetricsGet200ResponseDataLatencyValue.d.ts +50 -0
  376. package/dist/models/ApiV1MetricsGet200ResponseDataLatencyValue.js +54 -0
  377. package/dist/models/ApiV1MetricsLatencyGet200Response.d.ts +41 -0
  378. package/dist/models/ApiV1MetricsLatencyGet200Response.js +52 -0
  379. package/dist/models/ApiV1MetricsLatencyGet200ResponseDataValue.d.ts +62 -0
  380. package/dist/models/ApiV1MetricsLatencyGet200ResponseDataValue.js +58 -0
  381. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.d.ts +71 -0
  382. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200Response.js +67 -0
  383. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.d.ts +51 -0
  384. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreview.js +55 -0
  385. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.d.ts +38 -0
  386. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPost200ResponseOrganizationPreviewSharesInner.js +50 -0
  387. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.d.ts +44 -0
  388. package/dist/models/ApiV1SubscriptionsIdRefundPreviewPostRequest.js +52 -0
  389. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  390. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.js +50 -0
  391. package/dist/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  392. package/dist/models/BillingUsersUserIdStorageGet200Response.js +51 -0
  393. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  394. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.js +49 -0
  395. package/dist/models/CancelCurrentSubscription200Response.d.ts +45 -0
  396. package/dist/models/CancelCurrentSubscription200Response.js +53 -0
  397. package/dist/models/CancelCurrentSubscriptionRequest.d.ts +44 -0
  398. package/dist/models/CancelCurrentSubscriptionRequest.js +52 -0
  399. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.d.ts +38 -0
  400. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPost202Response.js +50 -0
  401. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.d.ts +38 -0
  402. package/dist/models/CanvasesCanvasIdComponentsComponentIdPublishPostRequest.js +54 -0
  403. package/dist/models/ComponentManifest.d.ts +52 -0
  404. package/dist/models/ComponentManifest.js +56 -0
  405. package/dist/models/ComponentManifestAssets.d.ts +38 -0
  406. package/dist/models/ComponentManifestAssets.js +50 -0
  407. package/dist/models/ComponentManifestConfig.d.ts +44 -0
  408. package/dist/models/ComponentManifestConfig.js +52 -0
  409. package/dist/models/ConvertSoloToTeams200Response.d.ts +39 -0
  410. package/dist/models/ConvertSoloToTeams200Response.js +51 -0
  411. package/dist/models/CreateCheckoutSession200Response.d.ts +38 -0
  412. package/dist/models/CreateCheckoutSession200Response.js +50 -0
  413. package/dist/models/CreateCheckoutSessionRequest.d.ts +32 -0
  414. package/dist/models/CreateCheckoutSessionRequest.js +50 -0
  415. package/dist/models/CreateComposition201Response.d.ts +39 -0
  416. package/dist/models/CreateComposition201Response.js +51 -0
  417. package/dist/models/CreatePartnerRequest.d.ts +7 -0
  418. package/dist/models/CreatePartnerRequest.js +2 -0
  419. package/dist/models/DevelopmentPlan.d.ts +97 -0
  420. package/dist/models/DevelopmentPlan.js +77 -0
  421. package/dist/models/DevelopmentTask.d.ts +90 -0
  422. package/dist/models/DevelopmentTask.js +74 -0
  423. package/dist/models/EnterpriseCustomization.d.ts +125 -0
  424. package/dist/models/EnterpriseCustomization.js +85 -0
  425. package/dist/models/GenerateComponentWorkflowInput.d.ts +56 -0
  426. package/dist/models/GenerateComponentWorkflowInput.js +62 -0
  427. package/dist/models/GenerateMixedComponentInput.d.ts +62 -0
  428. package/dist/models/GenerateMixedComponentInput.js +66 -0
  429. package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
  430. package/dist/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  431. package/dist/models/GetOrganizationStorageUsage200ResponseDataBreakdown.d.ts +44 -0
  432. package/dist/models/GetOrganizationStorageUsage200ResponseDataBreakdown.js +52 -0
  433. package/dist/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  434. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  435. package/dist/models/GetPartnerCreditTransactions200Response.js +51 -0
  436. package/dist/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  437. package/dist/models/IssuePartnerInvoiceRequest.js +2 -0
  438. package/dist/models/IssuedPartnerInvoice.d.ts +6 -0
  439. package/dist/models/IssuedPartnerInvoice.js +4 -0
  440. package/dist/models/ListComponents200Response.d.ts +33 -0
  441. package/dist/models/ListComponents200Response.js +49 -0
  442. package/dist/models/ListEnterpriseCustomizations200Response.d.ts +40 -0
  443. package/dist/models/ListEnterpriseCustomizations200Response.js +52 -0
  444. package/dist/models/ListEnterpriseCustomizations200ResponsePagination.d.ts +50 -0
  445. package/dist/models/ListEnterpriseCustomizations200ResponsePagination.js +54 -0
  446. package/dist/models/MountRequest.d.ts +45 -0
  447. package/dist/models/MountRequest.js +55 -0
  448. package/dist/models/MountRequestTheme.d.ts +54 -0
  449. package/dist/models/MountRequestTheme.js +62 -0
  450. package/dist/models/MountRequestThemeColors.d.ts +50 -0
  451. package/dist/models/MountRequestThemeColors.js +54 -0
  452. package/dist/models/MountRequestThemeTypography.d.ts +38 -0
  453. package/dist/models/MountRequestThemeTypography.js +50 -0
  454. package/dist/models/MountResponse.d.ts +46 -0
  455. package/dist/models/MountResponse.js +58 -0
  456. package/dist/models/MyPartner.d.ts +7 -0
  457. package/dist/models/MyPartner.js +4 -0
  458. package/dist/models/MyPartners.d.ts +9 -1
  459. package/dist/models/MyPartners.js +6 -1
  460. package/dist/models/NewWidgetComponentsMetadataInner.d.ts +64 -0
  461. package/dist/models/NewWidgetComponentsMetadataInner.js +60 -0
  462. package/dist/models/NewWidgetComponentsMetadataInnerPosition.d.ts +38 -0
  463. package/dist/models/NewWidgetComponentsMetadataInnerPosition.js +50 -0
  464. package/dist/models/NewWidgetComponentsMetadataInnerSize.d.ts +38 -0
  465. package/dist/models/NewWidgetComponentsMetadataInnerSize.js +50 -0
  466. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  467. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.js +10 -0
  468. package/dist/models/Partner.d.ts +7 -0
  469. package/dist/models/Partner.js +2 -0
  470. package/dist/models/PartnerActivation.d.ts +1 -1
  471. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  472. package/dist/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  473. package/dist/models/PartnerBillingProfile.d.ts +1 -1
  474. package/dist/models/PartnerContract.d.ts +15 -3
  475. package/dist/models/PartnerContract.js +6 -2
  476. package/dist/models/PartnerCustomization.d.ts +15 -3
  477. package/dist/models/PartnerCustomization.js +6 -2
  478. package/dist/models/PartnerDetails.d.ts +7 -0
  479. package/dist/models/PartnerDetails.js +2 -0
  480. package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  481. package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
  482. package/dist/models/PartnerInvoiceSchedule.d.ts +66 -0
  483. package/dist/models/PartnerInvoiceSchedule.js +74 -0
  484. package/dist/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  485. package/dist/models/PartnerInvoiceScheduleContract.js +74 -0
  486. package/dist/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  487. package/dist/models/PartnerInvoiceScheduleNext.js +99 -0
  488. package/dist/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  489. package/dist/models/PartnerInvoiceScheduleNextPeriod.js +54 -0
  490. package/dist/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  491. package/dist/models/PartnerInvoiceScheduleOverdue.js +54 -0
  492. package/dist/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  493. package/dist/models/PartnerInvoiceSchedulePeriod.js +99 -0
  494. package/dist/models/PartnerNotification.d.ts +1 -1
  495. package/dist/models/PartnerNotificationEventType.d.ts +2 -0
  496. package/dist/models/PartnerNotificationEventType.js +2 -0
  497. package/dist/models/PartnerUpdateResult.d.ts +8 -16
  498. package/dist/models/PartnerUpdateResult.js +2 -5
  499. package/dist/models/PartnerWithWarnings.d.ts +7 -0
  500. package/dist/models/PartnerWithWarnings.js +2 -0
  501. package/dist/models/PersonalExtraStorage.d.ts +92 -0
  502. package/dist/models/PersonalExtraStorage.js +91 -0
  503. package/dist/models/PersonalExtraStorageBlock.d.ts +56 -0
  504. package/dist/models/PersonalExtraStorageBlock.js +65 -0
  505. package/dist/models/PersonalStorage.d.ts +80 -0
  506. package/dist/models/PersonalStorage.js +80 -0
  507. package/dist/models/PersonalStoragePack.d.ts +100 -0
  508. package/dist/models/PersonalStoragePack.js +92 -0
  509. package/dist/models/PurchaseStoragePack200ResponseDataPaymentIntent.d.ts +50 -0
  510. package/dist/models/PurchaseStoragePack200ResponseDataPaymentIntent.js +54 -0
  511. package/dist/models/RequestExtraCredits.d.ts +33 -0
  512. package/dist/models/RequestExtraCredits.js +50 -0
  513. package/dist/models/RollbackComponentRequest.d.ts +38 -0
  514. package/dist/models/RollbackComponentRequest.js +52 -0
  515. package/dist/models/StorageChange.d.ts +4 -3
  516. package/dist/models/SurfaceConversionResult.d.ts +85 -0
  517. package/dist/models/SurfaceConversionResult.js +84 -0
  518. package/dist/models/SurfaceConversionResultSubscription.d.ts +82 -0
  519. package/dist/models/SurfaceConversionResultSubscription.js +70 -0
  520. package/dist/models/UIComponent.d.ts +65 -0
  521. package/dist/models/UIComponent.js +65 -0
  522. package/dist/models/UpdateCompositionRequest.d.ts +38 -0
  523. package/dist/models/UpdateCompositionRequest.js +50 -0
  524. package/dist/models/UpdateCurrentSubscriptionRequest.d.ts +38 -0
  525. package/dist/models/UpdateCurrentSubscriptionRequest.js +50 -0
  526. package/dist/models/UpdateEnterpriseCustomizationRequest.d.ts +95 -0
  527. package/dist/models/UpdateEnterpriseCustomizationRequest.js +75 -0
  528. package/dist/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  529. package/dist/models/UpdatePartnerCustomizationRequest.js +2 -2
  530. package/dist/models/UpdatePartnerRequest.d.ts +7 -24
  531. package/dist/models/UpdatePartnerRequest.js +2 -8
  532. package/dist/models/WorkflowAcceptedResponse.d.ts +38 -0
  533. package/dist/models/WorkflowAcceptedResponse.js +50 -0
  534. package/dist/models/index.d.ts +19 -9
  535. package/dist/models/index.js +19 -9
  536. package/package.json +3 -2
package/README.md CHANGED
@@ -79,5 +79,9 @@ Common auth errors and fixes:
79
79
  </script>
80
80
  ```
81
81
 
82
+ ## Publishing
83
+
84
+ GitLab CI on `main` publishes this package. Bump `version` in `package.json` and push `main`. The job is an npm Trusted Publisher (`NPM_ID_TOKEN`) and skips a version that is already on npm. A laptop publish is the fallback when CI minutes are gone. The token stays in `~/.npmrc` and is never committed.
85
+
82
86
  ## License
83
87
  MIT © Widgetic
@@ -10,12 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AdjustPartnerCredits200Response, AdjustPartnerCreditsRequest, AdjustUserCredits200Response, AdjustUserCreditsRequest, AdminHealthStatus, CleanupOrphanedInvitations200Response, CleanupOrphanedInvitationsRequest, CreatePartnerRequest, PartnerActivation, PartnerBillingProfileSaved, PartnerBillingProfileView, PartnerBillingReport, PartnerDetails, PartnerEditorSessionSettings, PartnerList, PartnerUpdateResult, PartnerWithWarnings, RecordPartnerInvoicePaymentRequest, RecordedPartnerPayment, RefundPartnerCreditsRequest, UpdatePartnerBillingProfileRequest, UpdatePartnerEditorSessionSettingsRequest, UpdatePartnerRequest, UpdatePartnerStatusRequest } from '../models/index';
14
- export interface AdjustPartnerCreditsOperationRequest {
15
- partnerId: string;
16
- adjustPartnerCreditsRequest: AdjustPartnerCreditsRequest;
17
- idempotencyKey?: string;
18
- }
13
+ import type { AdjustUserCredits200Response, AdjustUserCreditsRequest, AdminHealthStatus, CleanupOrphanedInvitations200Response, CleanupOrphanedInvitationsRequest, CreatePartnerRequest, PartnerActivation, PartnerBillingProfileSaved, PartnerBillingProfileView, PartnerBillingReport, PartnerDetails, PartnerEditorSessionSettings, PartnerInvoiceSchedule, PartnerList, PartnerUpdateResult, PartnerWithWarnings, RecordPartnerInvoicePaymentRequest, RecordedPartnerPayment, UpdatePartnerBillingProfileRequest, UpdatePartnerEditorSessionSettingsRequest, UpdatePartnerRequest, UpdatePartnerStatusRequest } from '../models/index';
19
14
  export interface AdjustUserCreditsOperationRequest {
20
15
  adjustUserCreditsRequest: AdjustUserCreditsRequest;
21
16
  idempotencyKey?: string;
@@ -49,6 +44,9 @@ export interface GetPartnerDetailsRequest {
49
44
  export interface GetPartnerEditorSessionSettingsRequest {
50
45
  partnerId: string;
51
46
  }
47
+ export interface GetPartnerInvoiceScheduleRequest {
48
+ partnerId: string;
49
+ }
52
50
  export interface ListAdminWidgetsRequest {
53
51
  scope?: ListAdminWidgetsScopeEnum;
54
52
  preset?: ListAdminWidgetsPresetEnum;
@@ -69,10 +67,6 @@ export interface RecordPartnerInvoicePaymentOperationRequest {
69
67
  idempotencyKey?: string;
70
68
  recordPartnerInvoicePaymentRequest?: RecordPartnerInvoicePaymentRequest;
71
69
  }
72
- export interface RefundPartnerCreditsOperationRequest {
73
- refundPartnerCreditsRequest: RefundPartnerCreditsRequest;
74
- idempotencyKey?: string;
75
- }
76
70
  export interface UpdatePartnerOperationRequest {
77
71
  partnerId: string;
78
72
  updatePartnerRequest: UpdatePartnerRequest;
@@ -95,22 +89,12 @@ export interface UpdatePartnerStatusOperationRequest {
95
89
  */
96
90
  export declare class AdminApi extends runtime.BaseAPI {
97
91
  /**
98
- * Admin only. A positive `amount` adds credits to the partner wallet; a negative `amount` removes them (the wallet must hold them). An `amount` of 0, or one that is not a finite number, is refused with 400. **One top-up may not exceed $100,000** (`BILLING_CONFIG.PARTNER_WALLET`), which is 1,000,000 credits at the list price of $0.10 per credit. A larger amount is refused with 400 and nothing is credited. The same ceiling applies to `POST /admin/billing/refund` and to the `creditBalance` field of `PUT /admin/partners/{partnerId}`. Removing credits is not limited by it. The `Idempotency-Key` header is required and names the adjustment: a retry with the same key replays the first result (`replayed: true`) instead of moving the balance twice, and a request without one is refused with 400. This moves a PARTNER\'s wallet. A user\'s balance is moved by `POST /admin/billing/credits/adjust`.
99
- * Add credits to, or remove credits from, a partner\'s wallet
100
- */
101
- adjustPartnerCreditsRaw(requestParameters: AdjustPartnerCreditsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdjustPartnerCredits200Response>>;
102
- /**
103
- * Admin only. A positive `amount` adds credits to the partner wallet; a negative `amount` removes them (the wallet must hold them). An `amount` of 0, or one that is not a finite number, is refused with 400. **One top-up may not exceed $100,000** (`BILLING_CONFIG.PARTNER_WALLET`), which is 1,000,000 credits at the list price of $0.10 per credit. A larger amount is refused with 400 and nothing is credited. The same ceiling applies to `POST /admin/billing/refund` and to the `creditBalance` field of `PUT /admin/partners/{partnerId}`. Removing credits is not limited by it. The `Idempotency-Key` header is required and names the adjustment: a retry with the same key replays the first result (`replayed: true`) instead of moving the balance twice, and a request without one is refused with 400. This moves a PARTNER\'s wallet. A user\'s balance is moved by `POST /admin/billing/credits/adjust`.
104
- * Add credits to, or remove credits from, a partner\'s wallet
105
- */
106
- adjustPartnerCredits(requestParameters: AdjustPartnerCreditsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdjustPartnerCredits200Response>;
107
- /**
108
- * Admin only. A positive `amount` grants free credits; a negative `amount` takes credits away (the balance must hold them). An `amount` of 0, or one that is not a finite number, is refused with 400. The `Idempotency-Key` header is required and names the adjustment: a retry with the same key replays the first result (`replayed: true`) instead of moving the balance twice, and a request without one is refused with 400. Free credits are limited per admin: one request may grant at most `ADMIN_GRANT_MAX_PER_REQUEST` credits (default 5000) and one admin may grant at most `ADMIN_GRANT_DAILY_LIMIT` credits alone per UTC day (default 10000), counted across this route, `POST /credits/add` and the grants route (`POST /admin-billing/grants`). Removing credits is not counted. A request over the per-request limit is refused with 400; one that would pass the daily limit is refused with 429 and `ADMIN_GRANT_LIMIT_REACHED` (`error.details` has the limit, what was used, what is left and when the day resets). This moves a USER\'s balance. A partner\'s wallet is moved by `POST /admin/partners/{partnerId}/credits`.
92
+ * Admin only. A positive `amount` grants free credits; a negative `amount` takes credits away (the balance must hold them). An `amount` of 0, or one that is not a finite number, is refused with 400. The `Idempotency-Key` header is required and names the adjustment: a retry with the same key replays the first result (`replayed: true`) instead of moving the balance twice, and a request without one is refused with 400. Free credits are limited per admin: one request may grant at most `ADMIN_GRANT_MAX_PER_REQUEST` credits (default 5000) and one admin may grant at most `ADMIN_GRANT_DAILY_LIMIT` credits alone per UTC day (default 10000), counted across this route, `POST /credits/add` and the grants route (`POST /admin-billing/grants`). Removing credits is not counted. A request over the per-request limit is refused with 400; one that would pass the daily limit is refused with 429 and `ADMIN_GRANT_LIMIT_REACHED` (`error.details` has the limit, what was used, what is left and when the day resets). This moves a USER\'s balance, which includes the account a partner\'s builds are charged to (its administrator\'s): the credits of a paid partner invoice are added there, and a clawback of them is made here. No route writes to a partner\'s own wallet any more, so this is the one place a partner\'s credits are taken back.
109
93
  * Add credits to, or remove credits from, a user\'s balance
110
94
  */
111
95
  adjustUserCreditsRaw(requestParameters: AdjustUserCreditsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdjustUserCredits200Response>>;
112
96
  /**
113
- * Admin only. A positive `amount` grants free credits; a negative `amount` takes credits away (the balance must hold them). An `amount` of 0, or one that is not a finite number, is refused with 400. The `Idempotency-Key` header is required and names the adjustment: a retry with the same key replays the first result (`replayed: true`) instead of moving the balance twice, and a request without one is refused with 400. Free credits are limited per admin: one request may grant at most `ADMIN_GRANT_MAX_PER_REQUEST` credits (default 5000) and one admin may grant at most `ADMIN_GRANT_DAILY_LIMIT` credits alone per UTC day (default 10000), counted across this route, `POST /credits/add` and the grants route (`POST /admin-billing/grants`). Removing credits is not counted. A request over the per-request limit is refused with 400; one that would pass the daily limit is refused with 429 and `ADMIN_GRANT_LIMIT_REACHED` (`error.details` has the limit, what was used, what is left and when the day resets). This moves a USER\'s balance. A partner\'s wallet is moved by `POST /admin/partners/{partnerId}/credits`.
97
+ * Admin only. A positive `amount` grants free credits; a negative `amount` takes credits away (the balance must hold them). An `amount` of 0, or one that is not a finite number, is refused with 400. The `Idempotency-Key` header is required and names the adjustment: a retry with the same key replays the first result (`replayed: true`) instead of moving the balance twice, and a request without one is refused with 400. Free credits are limited per admin: one request may grant at most `ADMIN_GRANT_MAX_PER_REQUEST` credits (default 5000) and one admin may grant at most `ADMIN_GRANT_DAILY_LIMIT` credits alone per UTC day (default 10000), counted across this route, `POST /credits/add` and the grants route (`POST /admin-billing/grants`). Removing credits is not counted. A request over the per-request limit is refused with 400; one that would pass the daily limit is refused with 429 and `ADMIN_GRANT_LIMIT_REACHED` (`error.details` has the limit, what was used, what is left and when the day resets). This moves a USER\'s balance, which includes the account a partner\'s builds are charged to (its administrator\'s): the credits of a paid partner invoice are added there, and a clawback of them is made here. No route writes to a partner\'s own wallet any more, so this is the one place a partner\'s credits are taken back.
114
98
  * Add credits to, or remove credits from, a user\'s balance
115
99
  */
116
100
  adjustUserCredits(requestParameters: AdjustUserCreditsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdjustUserCredits200Response>;
@@ -135,12 +119,12 @@ export declare class AdminApi extends runtime.BaseAPI {
135
119
  */
136
120
  cleanupOrphanedInvitations(requestParameters?: CleanupOrphanedInvitations0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CleanupOrphanedInvitations200Response>;
137
121
  /**
138
- * Admin only. This is how a partner comes to exist; there is no self-serve sign-up for one. **Before calling it**, the user who will administer the partner must exist and have the `partner` role (`PUT /admin/users/{userId}/role`). Every partner route belongs to that role, so a partner administered by an ordinary user would be created and then be unusable; such a request is refused with 400 and says so. A user with the `admin` role is accepted too. **A partner has no API key of its own, and none is issued.** The administrator calls the API with the `wgt_prt_` key of their own account: they make it themselves (`POST /users/{id}/keys`, or the dashboard\'s key screen), or Widgetic staff make it for them (the same route, called by an admin). **The new partner starts inactive, and is unusable until an administrator activates it.** A partner has no trial and pays from day one, so nothing it or its customers do works yet: its embeds are not served, its editor sessions are refused and its API key can only read and manage its billing. Activate it with `PUT /admin/partners/{partnerId}/status` (`active`) once the contract and a verified storage destination are in place (`GET /admin/partners/{partnerId}/activation` lists what is missing). Sending `isActive: true` here is refused, because it would skip that check. The new partner starts with an empty wallet and no contract. Fund the wallet with `POST /admin/partners/{partnerId}/credits` and record the contract terms with `POST /partner-customizations/{partnerId}`. Neither is a field of this request, and a field this request does not name is refused with 400 rather than ignored. Creating the partner also records the partner plan on its administrator\'s own account (`plan.partner`). A partner is not bought, so the administrator\'s account holds no subscription of its own. If that record could not be written the partner is still created (a refusal would hide that it exists, and a retry would be a 409) and `warnings` says so; sending the status `active` for the partner again (`PUT /admin/partners/{partnerId}/status`) records it. Pausing or deactivating the partner stops what it published from being served. A partner `name` is unique: one already in use is refused with 409 and nothing is created. This route takes no `Idempotency-Key`: the unique name makes a retry safe on its own. A retry after a dropped response gets 409 for the partner the first attempt created; find it with `GET /admin/partners` (`searchTerm`).
122
+ * Admin only. This is how a partner comes to exist; there is no self-serve sign-up for one. **Before calling it**, the user who will administer the partner must exist and have the `partner` role (`PUT /admin/users/{userId}/role`). Every partner route belongs to that role, so a partner administered by an ordinary user would be created and then be unusable; such a request is refused with 400 and says so. A user with the `admin` role is accepted too. **A partner has no API key of its own, and none is issued.** The administrator calls the API with the `wgt_prt_` key of their own account: they make it themselves (`POST /users/{id}/keys`, or the dashboard\'s key screen), or Widgetic staff make it for them (the same route, called by an admin). **The new partner starts inactive, and is unusable until an administrator activates it.** A partner has no trial and pays from day one, so nothing it or its customers do works yet: its embeds are not served, its editor sessions are refused and its API key can only read and manage its billing. Activate it with `PUT /admin/partners/{partnerId}/status` (`active`) once the contract and a verified storage destination are in place (`GET /admin/partners/{partnerId}/activation` lists what is missing). Sending `isActive: true` here is refused, because it would skip that check. The new partner starts with no credits and no contract. It is credited by a paid invoice that carries credits (`POST /admin-billing/partner/{partnerId}/invoice`), and the contract terms are recorded with `POST /partner-customizations/{partnerId}`. Neither is a field of this request, and a field this request does not name is refused with 400 rather than ignored. Creating the partner also records the partner plan on its administrator\'s own account (`plan.partner`). A partner is not bought, so the administrator\'s account holds no subscription of its own. If that record could not be written the partner is still created (a refusal would hide that it exists, and a retry would be a 409) and `warnings` says so; sending the status `active` for the partner again (`PUT /admin/partners/{partnerId}/status`) records it. Pausing or deactivating the partner stops what it published from being served. A partner `name` is unique: one already in use is refused with 409 and nothing is created. This route takes no `Idempotency-Key`: the unique name makes a retry safe on its own. A retry after a dropped response gets 409 for the partner the first attempt created; find it with `GET /admin/partners` (`searchTerm`).
139
123
  * Create a partner
140
124
  */
141
125
  createPartnerRaw(requestParameters: CreatePartnerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerWithWarnings>>;
142
126
  /**
143
- * Admin only. This is how a partner comes to exist; there is no self-serve sign-up for one. **Before calling it**, the user who will administer the partner must exist and have the `partner` role (`PUT /admin/users/{userId}/role`). Every partner route belongs to that role, so a partner administered by an ordinary user would be created and then be unusable; such a request is refused with 400 and says so. A user with the `admin` role is accepted too. **A partner has no API key of its own, and none is issued.** The administrator calls the API with the `wgt_prt_` key of their own account: they make it themselves (`POST /users/{id}/keys`, or the dashboard\'s key screen), or Widgetic staff make it for them (the same route, called by an admin). **The new partner starts inactive, and is unusable until an administrator activates it.** A partner has no trial and pays from day one, so nothing it or its customers do works yet: its embeds are not served, its editor sessions are refused and its API key can only read and manage its billing. Activate it with `PUT /admin/partners/{partnerId}/status` (`active`) once the contract and a verified storage destination are in place (`GET /admin/partners/{partnerId}/activation` lists what is missing). Sending `isActive: true` here is refused, because it would skip that check. The new partner starts with an empty wallet and no contract. Fund the wallet with `POST /admin/partners/{partnerId}/credits` and record the contract terms with `POST /partner-customizations/{partnerId}`. Neither is a field of this request, and a field this request does not name is refused with 400 rather than ignored. Creating the partner also records the partner plan on its administrator\'s own account (`plan.partner`). A partner is not bought, so the administrator\'s account holds no subscription of its own. If that record could not be written the partner is still created (a refusal would hide that it exists, and a retry would be a 409) and `warnings` says so; sending the status `active` for the partner again (`PUT /admin/partners/{partnerId}/status`) records it. Pausing or deactivating the partner stops what it published from being served. A partner `name` is unique: one already in use is refused with 409 and nothing is created. This route takes no `Idempotency-Key`: the unique name makes a retry safe on its own. A retry after a dropped response gets 409 for the partner the first attempt created; find it with `GET /admin/partners` (`searchTerm`).
127
+ * Admin only. This is how a partner comes to exist; there is no self-serve sign-up for one. **Before calling it**, the user who will administer the partner must exist and have the `partner` role (`PUT /admin/users/{userId}/role`). Every partner route belongs to that role, so a partner administered by an ordinary user would be created and then be unusable; such a request is refused with 400 and says so. A user with the `admin` role is accepted too. **A partner has no API key of its own, and none is issued.** The administrator calls the API with the `wgt_prt_` key of their own account: they make it themselves (`POST /users/{id}/keys`, or the dashboard\'s key screen), or Widgetic staff make it for them (the same route, called by an admin). **The new partner starts inactive, and is unusable until an administrator activates it.** A partner has no trial and pays from day one, so nothing it or its customers do works yet: its embeds are not served, its editor sessions are refused and its API key can only read and manage its billing. Activate it with `PUT /admin/partners/{partnerId}/status` (`active`) once the contract and a verified storage destination are in place (`GET /admin/partners/{partnerId}/activation` lists what is missing). Sending `isActive: true` here is refused, because it would skip that check. The new partner starts with no credits and no contract. It is credited by a paid invoice that carries credits (`POST /admin-billing/partner/{partnerId}/invoice`), and the contract terms are recorded with `POST /partner-customizations/{partnerId}`. Neither is a field of this request, and a field this request does not name is refused with 400 rather than ignored. Creating the partner also records the partner plan on its administrator\'s own account (`plan.partner`). A partner is not bought, so the administrator\'s account holds no subscription of its own. If that record could not be written the partner is still created (a refusal would hide that it exists, and a retry would be a 409) and `warnings` says so; sending the status `active` for the partner again (`PUT /admin/partners/{partnerId}/status`) records it. Pausing or deactivating the partner stops what it published from being served. A partner `name` is unique: one already in use is refused with 409 and nothing is created. This route takes no `Idempotency-Key`: the unique name makes a retry safe on its own. A retry after a dropped response gets 409 for the partner the first attempt created; find it with `GET /admin/partners` (`searchTerm`).
144
128
  * Create a partner
145
129
  */
146
130
  createPartner(requestParameters: CreatePartnerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerWithWarnings>;
@@ -165,12 +149,12 @@ export declare class AdminApi extends runtime.BaseAPI {
165
149
  */
166
150
  getPartnerActivation(requestParameters: GetPartnerActivationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerActivation>;
167
151
  /**
168
- * Admin only. Reads the billing profile of a partner: the legal name, the billing emails, the billing address, the tax number and the payment terms, and what the invoices will say with them. A partner that has none saved has the defaults (the partner\'s own name, its contact email, 30 days, no address), and `gaps` says what is missing for an invoice to carry the right tax. Nothing is changed by reading it.
152
+ * Admin only. Reads the billing profile of a partner: the legal name, the billing emails, the billing address, the tax number and the payment terms, and what the invoices will say with them. A partner that has none saved has the defaults (the partner\'s own name, its contact email, 7 days, no address), and `gaps` says what is missing for an invoice to carry the right tax. Nothing is changed by reading it.
169
153
  * What a partner\'s invoices are addressed with
170
154
  */
171
155
  getPartnerBillingProfileRaw(requestParameters: GetPartnerBillingProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerBillingProfileView>>;
172
156
  /**
173
- * Admin only. Reads the billing profile of a partner: the legal name, the billing emails, the billing address, the tax number and the payment terms, and what the invoices will say with them. A partner that has none saved has the defaults (the partner\'s own name, its contact email, 30 days, no address), and `gaps` says what is missing for an invoice to carry the right tax. Nothing is changed by reading it.
157
+ * Admin only. Reads the billing profile of a partner: the legal name, the billing emails, the billing address, the tax number and the payment terms, and what the invoices will say with them. A partner that has none saved has the defaults (the partner\'s own name, its contact email, 7 days, no address), and `gaps` says what is missing for an invoice to carry the right tax. Nothing is changed by reading it.
174
158
  * What a partner\'s invoices are addressed with
175
159
  */
176
160
  getPartnerBillingProfile(requestParameters: GetPartnerBillingProfileRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerBillingProfileView>;
@@ -185,12 +169,12 @@ export declare class AdminApi extends runtime.BaseAPI {
185
169
  */
186
170
  getPartnerBillingReport(requestParameters: GetPartnerBillingReportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerBillingReport>;
187
171
  /**
188
- * Admin only. The partner, with three things an administrator needs beside it: the billing overview (wallet, auto-reload settings, the ten newest ledger rows, the contract if one is recorded), the statistics of the last month\'s wallet activity, and a little metadata. The overview and the statistics are read at request time and are `null` when they could not be assembled: the partner itself is still returned. `monthlyStats.userCount` is `null` while the partner\'s member list cannot be read.
172
+ * Admin only. The partner, with three things an administrator needs beside it: the billing overview (wallet, the ten newest ledger rows, the contract if one is recorded), the statistics of the last month\'s wallet activity, and a little metadata. The overview and the statistics are read at request time and are `null` when they could not be assembled: the partner itself is still returned. `monthlyStats.userCount` is `null` while the partner\'s member list cannot be read.
189
173
  * Get a partner with its billing overview and last month\'s statistics
190
174
  */
191
175
  getPartnerDetailsRaw(requestParameters: GetPartnerDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerDetails>>;
192
176
  /**
193
- * Admin only. The partner, with three things an administrator needs beside it: the billing overview (wallet, auto-reload settings, the ten newest ledger rows, the contract if one is recorded), the statistics of the last month\'s wallet activity, and a little metadata. The overview and the statistics are read at request time and are `null` when they could not be assembled: the partner itself is still returned. `monthlyStats.userCount` is `null` while the partner\'s member list cannot be read.
177
+ * Admin only. The partner, with three things an administrator needs beside it: the billing overview (wallet, the ten newest ledger rows, the contract if one is recorded), the statistics of the last month\'s wallet activity, and a little metadata. The overview and the statistics are read at request time and are `null` when they could not be assembled: the partner itself is still returned. `monthlyStats.userCount` is `null` while the partner\'s member list cannot be read.
194
178
  * Get a partner with its billing overview and last month\'s statistics
195
179
  */
196
180
  getPartnerDetails(requestParameters: GetPartnerDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerDetails>;
@@ -204,6 +188,16 @@ export declare class AdminApi extends runtime.BaseAPI {
204
188
  * What is set for a partner\'s editor sessions
205
189
  */
206
190
  getPartnerEditorSessionSettings(requestParameters: GetPartnerEditorSessionSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEditorSessionSettings>;
191
+ /**
192
+ * Admin only. Shows what the daily invoicing run does with a partner\'s contract: the terms it runs on, the invoice that goes out next (the period, the day, the credits, the price of a credit and the amount before tax), the periods the run has taken so far with where each invoice stands, and the contract invoices the partner owes past their due day. The first invoice goes out on the contract\'s start date, the others 7 days before their period starts, for the credits of the period at the contract\'s price of a credit; the credits are added when the invoice is paid and expire when the period ends. `next` is worked out with the rules the run uses, so it is what the next run will do, including why it will not issue anything (`blocked`). Nothing is changed by reading it.
193
+ * When a partner\'s contract is invoiced next, and what it owes
194
+ */
195
+ getPartnerInvoiceScheduleRaw(requestParameters: GetPartnerInvoiceScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerInvoiceSchedule>>;
196
+ /**
197
+ * Admin only. Shows what the daily invoicing run does with a partner\'s contract: the terms it runs on, the invoice that goes out next (the period, the day, the credits, the price of a credit and the amount before tax), the periods the run has taken so far with where each invoice stands, and the contract invoices the partner owes past their due day. The first invoice goes out on the contract\'s start date, the others 7 days before their period starts, for the credits of the period at the contract\'s price of a credit; the credits are added when the invoice is paid and expire when the period ends. `next` is worked out with the rules the run uses, so it is what the next run will do, including why it will not issue anything (`blocked`). Nothing is changed by reading it.
198
+ * When a partner\'s contract is invoiced next, and what it owes
199
+ */
200
+ getPartnerInvoiceSchedule(requestParameters: GetPartnerInvoiceScheduleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerInvoiceSchedule>;
207
201
  /**
208
202
  * Admin only. `scope=mine` is the signed-in admin\'s widgets. `scope=others` is every other account. `scope=all` is every account. `preset=true` keeps widgets marked for signup copy. A normal account cannot call this route.
209
203
  * List widgets for the admin console
@@ -225,33 +219,23 @@ export declare class AdminApi extends runtime.BaseAPI {
225
219
  */
226
220
  listPartners(requestParameters?: ListPartnersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerList>;
227
221
  /**
228
- * Admin only. For an invoice that was paid by bank transfer, cheque or any other way outside Stripe. It marks the invoice paid in Stripe (`paid_out_of_band`), and Stripe then reports the payment exactly as it reports a card payment: the partner\'s invoice list is brought up to date (status and paid date), the reminders stop, the partner receives its receipt, and the administrators are told the payment arrived. Nothing is written to the partner\'s invoice list here, so the list changes a moment after the answer, when Stripe\'s report arrives; an administrator never updates a status by hand. The invoice is named by its id in the partner\'s invoice list and must belong to this partner. An invoice Stripe already holds as paid is answered (`recorded: false`) and nothing happens again, so a double click or a retry is safe. An invoice Stripe holds as void, uncollectible or still a draft cannot be marked paid (409 `INVOICE_NOT_PAYABLE`), and one that was never issued through Stripe has nothing to mark (409 `INVOICE_HAS_NO_STRIPE_INVOICE`). The audit trail records who recorded it, with the optional `note` (a bank reference, say).
222
+ * Admin only. For an invoice that was paid by bank transfer, cheque or any other way outside Stripe. It marks the invoice paid in Stripe (`paid_out_of_band`), and Stripe then reports the payment exactly as it reports a card payment: the partner\'s invoice list is brought up to date (status and paid date), the reminders stop, the partner receives its receipt, and the administrators are told the payment arrived. An invoice that was issued for credits (`credits` on `issuePartnerInvoice`) also adds them to the partner administrator\'s account at that moment, once. Nothing is written to the partner\'s invoice list here, so the list changes a moment after the answer, when Stripe\'s report arrives; an administrator never updates a status by hand. The invoice is named by its id in the partner\'s invoice list and must belong to this partner. An invoice Stripe already holds as paid is answered (`recorded: false`) and nothing happens again, so a double click or a retry is safe. An invoice Stripe holds as void, uncollectible or still a draft cannot be marked paid (409 `INVOICE_NOT_PAYABLE`), and one that was never issued through Stripe has nothing to mark (409 `INVOICE_HAS_NO_STRIPE_INVOICE`). The audit trail records who recorded it, with the optional `note` (a bank reference, say).
229
223
  * Record a payment that arrived outside Stripe
230
224
  */
231
225
  recordPartnerInvoicePaymentRaw(requestParameters: RecordPartnerInvoicePaymentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecordedPartnerPayment>>;
232
226
  /**
233
- * Admin only. For an invoice that was paid by bank transfer, cheque or any other way outside Stripe. It marks the invoice paid in Stripe (`paid_out_of_band`), and Stripe then reports the payment exactly as it reports a card payment: the partner\'s invoice list is brought up to date (status and paid date), the reminders stop, the partner receives its receipt, and the administrators are told the payment arrived. Nothing is written to the partner\'s invoice list here, so the list changes a moment after the answer, when Stripe\'s report arrives; an administrator never updates a status by hand. The invoice is named by its id in the partner\'s invoice list and must belong to this partner. An invoice Stripe already holds as paid is answered (`recorded: false`) and nothing happens again, so a double click or a retry is safe. An invoice Stripe holds as void, uncollectible or still a draft cannot be marked paid (409 `INVOICE_NOT_PAYABLE`), and one that was never issued through Stripe has nothing to mark (409 `INVOICE_HAS_NO_STRIPE_INVOICE`). The audit trail records who recorded it, with the optional `note` (a bank reference, say).
227
+ * Admin only. For an invoice that was paid by bank transfer, cheque or any other way outside Stripe. It marks the invoice paid in Stripe (`paid_out_of_band`), and Stripe then reports the payment exactly as it reports a card payment: the partner\'s invoice list is brought up to date (status and paid date), the reminders stop, the partner receives its receipt, and the administrators are told the payment arrived. An invoice that was issued for credits (`credits` on `issuePartnerInvoice`) also adds them to the partner administrator\'s account at that moment, once. Nothing is written to the partner\'s invoice list here, so the list changes a moment after the answer, when Stripe\'s report arrives; an administrator never updates a status by hand. The invoice is named by its id in the partner\'s invoice list and must belong to this partner. An invoice Stripe already holds as paid is answered (`recorded: false`) and nothing happens again, so a double click or a retry is safe. An invoice Stripe holds as void, uncollectible or still a draft cannot be marked paid (409 `INVOICE_NOT_PAYABLE`), and one that was never issued through Stripe has nothing to mark (409 `INVOICE_HAS_NO_STRIPE_INVOICE`). The audit trail records who recorded it, with the optional `note` (a bank reference, say).
234
228
  * Record a payment that arrived outside Stripe
235
229
  */
236
230
  recordPartnerInvoicePayment(requestParameters: RecordPartnerInvoicePaymentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecordedPartnerPayment>;
237
231
  /**
238
- * Admin only. Adds `amount` credits to the partner wallet as a refund. The `Idempotency-Key` header is required: a retry with the same key replays the first refund instead of issuing a second one. A refund is held to the same ceiling as a top-up: **at most $100,000 per operation** (1,000,000 credits at $0.10 per credit). A larger amount is refused with 400 and nothing is credited.
239
- * Credit a partner\'s wallet back with a refund
240
- */
241
- refundPartnerCreditsRaw(requestParameters: RefundPartnerCreditsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
242
- /**
243
- * Admin only. Adds `amount` credits to the partner wallet as a refund. The `Idempotency-Key` header is required: a retry with the same key replays the first refund instead of issuing a second one. A refund is held to the same ceiling as a top-up: **at most $100,000 per operation** (1,000,000 credits at $0.10 per credit). A larger amount is refused with 400 and nothing is credited.
244
- * Credit a partner\'s wallet back with a refund
245
- */
246
- refundPartnerCredits(requestParameters: RefundPartnerCreditsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
247
- /**
248
- * Admin only. Every field is optional; send the ones to change. The profile fields (`name`, `email`, `webhookUrl`, `allowedDomains`, `billingSettings`) are stored on the partner. `autoReloadAmount` and `autoReloadThreshold` are stored with the partner\'s auto-reload settings, which are a different record: an edit to one of them keeps the other and the rest of the configuration. `creditBalance` is a **target balance**, not a stored value. The wallet is moved by the difference between it and the balance the ledger holds now, as a ledger row, by the same keyed path `POST /admin/partners/{partnerId}/credits` uses. So a request that sets it **must** carry an `Idempotency-Key` (a request without one is refused with 400 and changes nothing, not even the fields beside it), a top-up is held to the same ceiling of $100,000 per operation, and a retry with the same key replays the first result instead of moving the wallet twice. `notes` becomes the reason on that ledger row. A request that sets no balance needs no key. `isActive` only flips the switch, and goes through the same check as `PUT /admin/partners/{partnerId}/status`: activating a partner that was never activated is refused with 409 `PARTNER_NOT_READY` until its contract and storage destination are in place, and the fields beside it are not written when it is refused. To pause a partner with a recorded reason, or to resume one so that everything the pause turned off is restored, use `PUT /admin/partners/{partnerId}/status`. The response is the partner as it is after the edit; `creditAdjustment` and `autoReload` report what was done to the wallet and the settings, when the request touched them.
249
- * Edit a partner\'s profile, wallet balance or auto-reload settings
232
+ * Admin only. Every field is optional; send the ones to change. The profile fields (`name`, `email`, `webhookUrl`, `allowedDomains`, `platformDomain`, `billingSettings`) are stored on the partner. This route no longer touches the partner\'s wallet, and four fields it used to accept are retired: `autoReloadAmount` and `autoReloadThreshold` (a wallet is not reloaded automatically), `creditBalance` (a wallet is not set to a balance by hand) and `notes` (the reason that went with a balance change). A request that carries any of them is refused with 400 that names it, and nothing in the request is written, not even the fields beside it. Credits come with a paid partner invoice (`POST /admin-billing/partner/{partnerId}/invoice` with `credits`), and they are added to the partner\'s administrator\'s account; a clawback of them is made on that account, with `POST /admin/billing/credits/adjust`. `isActive` only flips the switch, and goes through the same check as `PUT /admin/partners/{partnerId}/status`: activating a partner that was never activated is refused with 409 `PARTNER_NOT_READY` until its contract and storage destination are in place, and the fields beside it are not written when it is refused. To pause a partner with a recorded reason, or to resume one so that everything the pause turned off is restored, use `PUT /admin/partners/{partnerId}/status`. The response is the partner as it is after the edit.
233
+ * Edit a partner\'s profile
250
234
  */
251
235
  updatePartnerRaw(requestParameters: UpdatePartnerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerUpdateResult>>;
252
236
  /**
253
- * Admin only. Every field is optional; send the ones to change. The profile fields (`name`, `email`, `webhookUrl`, `allowedDomains`, `billingSettings`) are stored on the partner. `autoReloadAmount` and `autoReloadThreshold` are stored with the partner\'s auto-reload settings, which are a different record: an edit to one of them keeps the other and the rest of the configuration. `creditBalance` is a **target balance**, not a stored value. The wallet is moved by the difference between it and the balance the ledger holds now, as a ledger row, by the same keyed path `POST /admin/partners/{partnerId}/credits` uses. So a request that sets it **must** carry an `Idempotency-Key` (a request without one is refused with 400 and changes nothing, not even the fields beside it), a top-up is held to the same ceiling of $100,000 per operation, and a retry with the same key replays the first result instead of moving the wallet twice. `notes` becomes the reason on that ledger row. A request that sets no balance needs no key. `isActive` only flips the switch, and goes through the same check as `PUT /admin/partners/{partnerId}/status`: activating a partner that was never activated is refused with 409 `PARTNER_NOT_READY` until its contract and storage destination are in place, and the fields beside it are not written when it is refused. To pause a partner with a recorded reason, or to resume one so that everything the pause turned off is restored, use `PUT /admin/partners/{partnerId}/status`. The response is the partner as it is after the edit; `creditAdjustment` and `autoReload` report what was done to the wallet and the settings, when the request touched them.
254
- * Edit a partner\'s profile, wallet balance or auto-reload settings
237
+ * Admin only. Every field is optional; send the ones to change. The profile fields (`name`, `email`, `webhookUrl`, `allowedDomains`, `platformDomain`, `billingSettings`) are stored on the partner. This route no longer touches the partner\'s wallet, and four fields it used to accept are retired: `autoReloadAmount` and `autoReloadThreshold` (a wallet is not reloaded automatically), `creditBalance` (a wallet is not set to a balance by hand) and `notes` (the reason that went with a balance change). A request that carries any of them is refused with 400 that names it, and nothing in the request is written, not even the fields beside it. Credits come with a paid partner invoice (`POST /admin-billing/partner/{partnerId}/invoice` with `credits`), and they are added to the partner\'s administrator\'s account; a clawback of them is made on that account, with `POST /admin/billing/credits/adjust`. `isActive` only flips the switch, and goes through the same check as `PUT /admin/partners/{partnerId}/status`: activating a partner that was never activated is refused with 409 `PARTNER_NOT_READY` until its contract and storage destination are in place, and the fields beside it are not written when it is refused. To pause a partner with a recorded reason, or to resume one so that everything the pause turned off is restored, use `PUT /admin/partners/{partnerId}/status`. The response is the partner as it is after the edit.
238
+ * Edit a partner\'s profile
255
239
  */
256
240
  updatePartner(requestParameters: UpdatePartnerOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerUpdateResult>;
257
241
  /**
@@ -275,12 +259,12 @@ export declare class AdminApi extends runtime.BaseAPI {
275
259
  */
276
260
  updatePartnerEditorSessionSettings(requestParameters: UpdatePartnerEditorSessionSettingsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerEditorSessionSettings>;
277
261
  /**
278
- * Admin only. Sets the partner\'s standing (the `status` field every partner response carries). - `active` activates a new partner, or resumes a paused one: it is switched on, and a suspension\'s reason and time are cleared. **Activating a partner that was never activated (or was deactivated) is refused with 409 `PARTNER_NOT_READY` until a contract is in force and a verified storage destination is set** (`error.details.requirements` lists each, and `GET /admin/partners/{partnerId}/activation` reads them without changing anything). Resuming a paused partner is never held up by that. It also records the partner plan on the partner\'s administrator again if that was missing (a partner created before the plan was recorded, or whose write failed); if that could not be done the partner is still reinstated and `warnings` says so. - `inactive` switches the partner off without a reason; a suspension\'s reason and time are cleared, so a partner moved from suspended to inactive is no longer reported as suspended. - `suspended` is the pause: it switches the partner off and records `reason` (default `Suspended by admin`) and the time. It is manual only. An unpaid invoice is chased and reported to the administrators, but never pauses a partner by itself. While a partner is not `active` it is unusable, and what it published is not served: its embeds answer as if they did not exist, editor sessions are refused, its customers cannot create or generate anything, and every write or generation by its API key is refused with 403 `PARTNER_SUSPENDED` (or `PARTNER_INACTIVE`). This takes hold within 15 seconds at most, on every instance. The partner\'s own administrator can still sign in and use billing, invoices, credits, the contract and notifications. Resuming the partner restores everything, with no new token for a customer. A person who administers two partners is served while either is active, and an administrator account that also holds a subscription of its own is served on that. Sending the standing the partner already has is accepted; for `suspended` it replaces the recorded reason and time.
262
+ * Admin only. Sets the partner\'s standing (the `status` field every partner response carries). - `active` activates a new partner, or resumes a paused one: it is switched on, and a suspension\'s reason and time are cleared. **Activating a partner that was never activated (or was deactivated) is refused with 409 `PARTNER_NOT_READY` until a contract is in force and a verified storage destination is set** (`error.details.requirements` lists each, and `GET /admin/partners/{partnerId}/activation` reads them without changing anything). Resuming a paused partner is never held up by that. It also records the partner plan on the partner\'s administrator again if that was missing (a partner created before the plan was recorded, or whose write failed); if that could not be done the partner is still reinstated and `warnings` says so. - `inactive` switches the partner off without a reason; a suspension\'s reason and time are cleared, so a partner moved from suspended to inactive is no longer reported as suspended. - `suspended` is the pause: it switches the partner off and records `reason` (default `Suspended by admin`) and the time. It is manual only. An unpaid invoice is chased and reported to the administrators, and never pauses a partner by itself: a contract invoice left unpaid past its due date STOPS the partner on its own from the day after (standing `payment_arrears`, refused with 403 `PARTNER_PAYMENT_ARREARS`). That records nothing on the partner and is not a status you set: it ends the moment the invoice is paid, voided or written off, and an invoice for extra credits never causes it. While a partner is not `active` it is unusable, and what it published is not served: its embeds answer as if they did not exist, editor sessions are refused, its customers cannot create or generate anything, and every write or generation by its API key is refused with 403 `PARTNER_SUSPENDED` (or `PARTNER_INACTIVE`). This takes hold within 15 seconds at most, on every instance. The partner\'s own administrator can still sign in and use billing, invoices, credits, the contract and notifications. Resuming the partner restores everything, with no new token for a customer. A person who administers two partners is served while either is active, and an administrator account that also holds a subscription of its own is served on that. Sending the standing the partner already has is accepted; for `suspended` it replaces the recorded reason and time.
279
263
  * Activate, deactivate or suspend a partner
280
264
  */
281
265
  updatePartnerStatusRaw(requestParameters: UpdatePartnerStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerWithWarnings>>;
282
266
  /**
283
- * Admin only. Sets the partner\'s standing (the `status` field every partner response carries). - `active` activates a new partner, or resumes a paused one: it is switched on, and a suspension\'s reason and time are cleared. **Activating a partner that was never activated (or was deactivated) is refused with 409 `PARTNER_NOT_READY` until a contract is in force and a verified storage destination is set** (`error.details.requirements` lists each, and `GET /admin/partners/{partnerId}/activation` reads them without changing anything). Resuming a paused partner is never held up by that. It also records the partner plan on the partner\'s administrator again if that was missing (a partner created before the plan was recorded, or whose write failed); if that could not be done the partner is still reinstated and `warnings` says so. - `inactive` switches the partner off without a reason; a suspension\'s reason and time are cleared, so a partner moved from suspended to inactive is no longer reported as suspended. - `suspended` is the pause: it switches the partner off and records `reason` (default `Suspended by admin`) and the time. It is manual only. An unpaid invoice is chased and reported to the administrators, but never pauses a partner by itself. While a partner is not `active` it is unusable, and what it published is not served: its embeds answer as if they did not exist, editor sessions are refused, its customers cannot create or generate anything, and every write or generation by its API key is refused with 403 `PARTNER_SUSPENDED` (or `PARTNER_INACTIVE`). This takes hold within 15 seconds at most, on every instance. The partner\'s own administrator can still sign in and use billing, invoices, credits, the contract and notifications. Resuming the partner restores everything, with no new token for a customer. A person who administers two partners is served while either is active, and an administrator account that also holds a subscription of its own is served on that. Sending the standing the partner already has is accepted; for `suspended` it replaces the recorded reason and time.
267
+ * Admin only. Sets the partner\'s standing (the `status` field every partner response carries). - `active` activates a new partner, or resumes a paused one: it is switched on, and a suspension\'s reason and time are cleared. **Activating a partner that was never activated (or was deactivated) is refused with 409 `PARTNER_NOT_READY` until a contract is in force and a verified storage destination is set** (`error.details.requirements` lists each, and `GET /admin/partners/{partnerId}/activation` reads them without changing anything). Resuming a paused partner is never held up by that. It also records the partner plan on the partner\'s administrator again if that was missing (a partner created before the plan was recorded, or whose write failed); if that could not be done the partner is still reinstated and `warnings` says so. - `inactive` switches the partner off without a reason; a suspension\'s reason and time are cleared, so a partner moved from suspended to inactive is no longer reported as suspended. - `suspended` is the pause: it switches the partner off and records `reason` (default `Suspended by admin`) and the time. It is manual only. An unpaid invoice is chased and reported to the administrators, and never pauses a partner by itself: a contract invoice left unpaid past its due date STOPS the partner on its own from the day after (standing `payment_arrears`, refused with 403 `PARTNER_PAYMENT_ARREARS`). That records nothing on the partner and is not a status you set: it ends the moment the invoice is paid, voided or written off, and an invoice for extra credits never causes it. While a partner is not `active` it is unusable, and what it published is not served: its embeds answer as if they did not exist, editor sessions are refused, its customers cannot create or generate anything, and every write or generation by its API key is refused with 403 `PARTNER_SUSPENDED` (or `PARTNER_INACTIVE`). This takes hold within 15 seconds at most, on every instance. The partner\'s own administrator can still sign in and use billing, invoices, credits, the contract and notifications. Resuming the partner restores everything, with no new token for a customer. A person who administers two partners is served while either is active, and an administrator account that also holds a subscription of its own is served on that. Sending the standing the partner already has is accepted; for `suspended` it replaces the recorded reason and time.
284
268
  * Activate, deactivate or suspend a partner
285
269
  */
286
270
  updatePartnerStatus(requestParameters: UpdatePartnerStatusOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerWithWarnings>;