@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
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { BillingPricingGet200ResponseFromJSON, BillingUsersUserIdInvoicesGet200ResponseFromJSON, BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseFromJSON, BillingUsersUserIdPortalPostRequestToJSON, BillingUsersUserIdSubscriptionCancelPost200ResponseFromJSON, BillingUsersUserIdSubscriptionCancelPostRequestToJSON, BillingUsersUserIdSubscriptionGet200ResponseFromJSON, BillingUsersUserIdSubscriptionPayPost200ResponseFromJSON, BillingUsersUserIdSubscriptionPost200ResponseFromJSON, BillingUsersUserIdSubscriptionPostRequestToJSON, OrganizationsOrgIdBillingPaymentMethodsGet200ResponseFromJSON, OrganizationsOrgIdBillingPaymentMethodsPost200ResponseFromJSON, OrganizationsOrgIdBillingPaymentMethodsPostRequestToJSON, OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseFromJSON, OrganizationsOrgIdBillingPortalPost200ResponseFromJSON, UploadsIdDelete200ResponseFromJSON, } from '../models/index.js';
24
+ import { BillingPricingGet200ResponseFromJSON, BillingUsersUserIdInvoicesGet200ResponseFromJSON, BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseFromJSON, BillingUsersUserIdPortalPostRequestToJSON, BillingUsersUserIdStorageCancelPackPostRequestToJSON, BillingUsersUserIdStorageGet200ResponseFromJSON, BillingUsersUserIdSubscriptionCancelPost200ResponseFromJSON, BillingUsersUserIdSubscriptionCancelPostRequestToJSON, BillingUsersUserIdSubscriptionGet200ResponseFromJSON, BillingUsersUserIdSubscriptionPayPost200ResponseFromJSON, BillingUsersUserIdSubscriptionPost200ResponseFromJSON, BillingUsersUserIdSubscriptionPostRequestToJSON, OrganizationsOrgIdBillingPaymentMethodsGet200ResponseFromJSON, OrganizationsOrgIdBillingPaymentMethodsPost200ResponseFromJSON, OrganizationsOrgIdBillingPaymentMethodsPostRequestToJSON, OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseFromJSON, OrganizationsOrgIdBillingPortalPost200ResponseFromJSON, PurchaseStoragePack200ResponseFromJSON, PurchaseStoragePackRequestToJSON, UploadsIdDelete200ResponseFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -321,6 +321,133 @@ export class BillingApi extends runtime.BaseAPI {
321
321
  return yield response.value();
322
322
  });
323
323
  }
324
+ /**
325
+ * Gives back extra storage: removes `pack_size_gb` GB from the person\'s storage add-on, or all of it with `remove_all`. The add-on stops billing for the GB removed; what was already paid for the rest of the current period is credited on the next invoice. Removing storage does not delete files. A person who holds more than their limit afterwards can read and delete what they have but cannot upload until they are back under the limit. Send either `pack_size_gb` or `remove_all: true`, not both. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result. Removing is allowed on an overdue subscription and on one that ends with the period, so a person is never stuck paying for storage they want to drop. Users can only change their own storage.
326
+ * Remove Extra Storage from Your Own Storage
327
+ */
328
+ billingUsersUserIdStorageCancelPackPostRaw(requestParameters, initOverrides) {
329
+ return __awaiter(this, void 0, void 0, function* () {
330
+ if (requestParameters['userId'] == null) {
331
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling billingUsersUserIdStorageCancelPackPost().');
332
+ }
333
+ if (requestParameters['billingUsersUserIdStorageCancelPackPostRequest'] == null) {
334
+ throw new runtime.RequiredError('billingUsersUserIdStorageCancelPackPostRequest', 'Required parameter "billingUsersUserIdStorageCancelPackPostRequest" was null or undefined when calling billingUsersUserIdStorageCancelPackPost().');
335
+ }
336
+ const queryParameters = {};
337
+ const headerParameters = {};
338
+ headerParameters['Content-Type'] = 'application/json';
339
+ if (requestParameters['idempotencyKey'] != null) {
340
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
341
+ }
342
+ if (this.configuration && this.configuration.accessToken) {
343
+ const token = this.configuration.accessToken;
344
+ const tokenString = yield token("bearerAuth", []);
345
+ if (tokenString) {
346
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
347
+ }
348
+ }
349
+ const response = yield this.request({
350
+ path: `/billing/users/{userId}/storage/cancel-pack`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
351
+ method: 'POST',
352
+ headers: headerParameters,
353
+ query: queryParameters,
354
+ body: BillingUsersUserIdStorageCancelPackPostRequestToJSON(requestParameters['billingUsersUserIdStorageCancelPackPostRequest']),
355
+ }, initOverrides);
356
+ return new runtime.JSONApiResponse(response, (jsonValue) => PurchaseStoragePack200ResponseFromJSON(jsonValue));
357
+ });
358
+ }
359
+ /**
360
+ * Gives back extra storage: removes `pack_size_gb` GB from the person\'s storage add-on, or all of it with `remove_all`. The add-on stops billing for the GB removed; what was already paid for the rest of the current period is credited on the next invoice. Removing storage does not delete files. A person who holds more than their limit afterwards can read and delete what they have but cannot upload until they are back under the limit. Send either `pack_size_gb` or `remove_all: true`, not both. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result. Removing is allowed on an overdue subscription and on one that ends with the period, so a person is never stuck paying for storage they want to drop. Users can only change their own storage.
361
+ * Remove Extra Storage from Your Own Storage
362
+ */
363
+ billingUsersUserIdStorageCancelPackPost(requestParameters, initOverrides) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ const response = yield this.billingUsersUserIdStorageCancelPackPostRaw(requestParameters, initOverrides);
366
+ return yield response.value();
367
+ });
368
+ }
369
+ /**
370
+ * Returns a person\'s own storage and the extra storage they can add to it on Solo, in one call: the limit the upload check holds their own workspace to (plan plus extra storage), what they have stored, the extra storage they hold (one row per storage item on the subscription) and what it costs per billing period, and whether storage can be added or removed right now (`extraStorage.canAdd` and `extraStorage.canRemove`) with the reason when it cannot (`extraStorage.addBlockedReason`; its codes are the ones the purchase request answers with). A partner account is never offered extra storage (`PARTNER_STORAGE_NOT_SOLD`): its files are kept in its own storage destination. This is the person\'s OWN workspace. The storage of a team they belong to is the team\'s pool, read with `GET /organizations/{orgId}/storage/usage`; extra storage bought here does not add to it. Users can only read their own storage; internal callers can read anyone\'s.
371
+ * Get Your Own Storage and Extra Storage
372
+ */
373
+ billingUsersUserIdStorageGetRaw(requestParameters, initOverrides) {
374
+ return __awaiter(this, void 0, void 0, function* () {
375
+ if (requestParameters['userId'] == null) {
376
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling billingUsersUserIdStorageGet().');
377
+ }
378
+ const queryParameters = {};
379
+ const headerParameters = {};
380
+ if (this.configuration && this.configuration.accessToken) {
381
+ const token = this.configuration.accessToken;
382
+ const tokenString = yield token("bearerAuth", []);
383
+ if (tokenString) {
384
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
385
+ }
386
+ }
387
+ const response = yield this.request({
388
+ path: `/billing/users/{userId}/storage`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
389
+ method: 'GET',
390
+ headers: headerParameters,
391
+ query: queryParameters,
392
+ }, initOverrides);
393
+ return new runtime.JSONApiResponse(response, (jsonValue) => BillingUsersUserIdStorageGet200ResponseFromJSON(jsonValue));
394
+ });
395
+ }
396
+ /**
397
+ * Returns a person\'s own storage and the extra storage they can add to it on Solo, in one call: the limit the upload check holds their own workspace to (plan plus extra storage), what they have stored, the extra storage they hold (one row per storage item on the subscription) and what it costs per billing period, and whether storage can be added or removed right now (`extraStorage.canAdd` and `extraStorage.canRemove`) with the reason when it cannot (`extraStorage.addBlockedReason`; its codes are the ones the purchase request answers with). A partner account is never offered extra storage (`PARTNER_STORAGE_NOT_SOLD`): its files are kept in its own storage destination. This is the person\'s OWN workspace. The storage of a team they belong to is the team\'s pool, read with `GET /organizations/{orgId}/storage/usage`; extra storage bought here does not add to it. Users can only read their own storage; internal callers can read anyone\'s.
398
+ * Get Your Own Storage and Extra Storage
399
+ */
400
+ billingUsersUserIdStorageGet(requestParameters, initOverrides) {
401
+ return __awaiter(this, void 0, void 0, function* () {
402
+ const response = yield this.billingUsersUserIdStorageGetRaw(requestParameters, initOverrides);
403
+ return yield response.value();
404
+ });
405
+ }
406
+ /**
407
+ * Adds extra storage to the person\'s own Solo subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the plan, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the person\'s own storage as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the person already has, so buying again adds more. Remove storage with `POST /billing/users/{userId}/storage/cancel-pack`. The extra storage adds to the person\'s OWN workspace only. It is not shared with a team the person belongs to: a team\'s storage is the team\'s pool, and its admins buy storage for it. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. A refused request gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only a Solo subscription that Stripe bills and that is active can have extra storage. During the free trial the request is refused with 409 `TRIAL_NOT_ENDED` (storage added then would be free until the trial ends); a person with no Solo subscription is refused with a plan restriction pointing at Solo, and the owner account of a Shopify store (whose plan Shopify bills) with 409 `BILLED_THROUGH_SHOPIFY`. Users can only change their own storage. Extra storage is not sold to an account that administers a partner (403 `PARTNER_STORAGE_NOT_SOLD`): the files of a partner account are kept in the partner\'s own storage destination and never use Widgetic storage, so there would be nothing for the storage to add to. Giving storage back stays open to such an account.
408
+ * Add Extra Storage to Your Own Storage
409
+ */
410
+ billingUsersUserIdStoragePurchasePackPostRaw(requestParameters, initOverrides) {
411
+ return __awaiter(this, void 0, void 0, function* () {
412
+ if (requestParameters['userId'] == null) {
413
+ throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling billingUsersUserIdStoragePurchasePackPost().');
414
+ }
415
+ if (requestParameters['purchaseStoragePackRequest'] == null) {
416
+ throw new runtime.RequiredError('purchaseStoragePackRequest', 'Required parameter "purchaseStoragePackRequest" was null or undefined when calling billingUsersUserIdStoragePurchasePackPost().');
417
+ }
418
+ const queryParameters = {};
419
+ const headerParameters = {};
420
+ headerParameters['Content-Type'] = 'application/json';
421
+ if (requestParameters['idempotencyKey'] != null) {
422
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
423
+ }
424
+ if (this.configuration && this.configuration.accessToken) {
425
+ const token = this.configuration.accessToken;
426
+ const tokenString = yield token("bearerAuth", []);
427
+ if (tokenString) {
428
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
429
+ }
430
+ }
431
+ const response = yield this.request({
432
+ path: `/billing/users/{userId}/storage/purchase-pack`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
433
+ method: 'POST',
434
+ headers: headerParameters,
435
+ query: queryParameters,
436
+ body: PurchaseStoragePackRequestToJSON(requestParameters['purchaseStoragePackRequest']),
437
+ }, initOverrides);
438
+ return new runtime.JSONApiResponse(response, (jsonValue) => PurchaseStoragePack200ResponseFromJSON(jsonValue));
439
+ });
440
+ }
441
+ /**
442
+ * Adds extra storage to the person\'s own Solo subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the plan, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the person\'s own storage as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the person already has, so buying again adds more. Remove storage with `POST /billing/users/{userId}/storage/cancel-pack`. The extra storage adds to the person\'s OWN workspace only. It is not shared with a team the person belongs to: a team\'s storage is the team\'s pool, and its admins buy storage for it. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. A refused request gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only a Solo subscription that Stripe bills and that is active can have extra storage. During the free trial the request is refused with 409 `TRIAL_NOT_ENDED` (storage added then would be free until the trial ends); a person with no Solo subscription is refused with a plan restriction pointing at Solo, and the owner account of a Shopify store (whose plan Shopify bills) with 409 `BILLED_THROUGH_SHOPIFY`. Users can only change their own storage. Extra storage is not sold to an account that administers a partner (403 `PARTNER_STORAGE_NOT_SOLD`): the files of a partner account are kept in the partner\'s own storage destination and never use Widgetic storage, so there would be nothing for the storage to add to. Giving storage back stays open to such an account.
443
+ * Add Extra Storage to Your Own Storage
444
+ */
445
+ billingUsersUserIdStoragePurchasePackPost(requestParameters, initOverrides) {
446
+ return __awaiter(this, void 0, void 0, function* () {
447
+ const response = yield this.billingUsersUserIdStoragePurchasePackPostRaw(requestParameters, initOverrides);
448
+ return yield response.value();
449
+ });
450
+ }
324
451
  /**
325
452
  * Cancel the active subscription
326
453
  */
@@ -404,12 +404,12 @@ export declare class CompositionsApi extends runtime.BaseAPI {
404
404
  */
405
405
  getCompositionVersions(requestParameters: GetCompositionVersionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionVersions200Response>;
406
406
  /**
407
- * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed.
407
+ * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
408
408
  * Get Compositions Batch
409
409
  */
410
410
  getCompositionsBatchRaw(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCompositionsBatch200Response>>;
411
411
  /**
412
- * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed.
412
+ * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
413
413
  * Get Compositions Batch
414
414
  */
415
415
  getCompositionsBatch(requestParameters: GetCompositionsBatchOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCompositionsBatch200Response>;
@@ -962,7 +962,7 @@ export class CompositionsApi extends runtime.BaseAPI {
962
962
  });
963
963
  }
964
964
  /**
965
- * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed.
965
+ * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
966
966
  * Get Compositions Batch
967
967
  */
968
968
  getCompositionsBatchRaw(requestParameters, initOverrides) {
@@ -991,7 +991,7 @@ export class CompositionsApi extends runtime.BaseAPI {
991
991
  });
992
992
  }
993
993
  /**
994
- * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed.
994
+ * Retrieves multiple compositions by their IDs in a single request. This endpoint includes domain validation for embed contexts and is used by the embed SDK. Each composition is checked on its own. If its owner listed the websites it may appear on (the workspace\'s domain list, or the `allowedDomains` of a partner the owner administers) and the request comes from another website (the `Origin` header, or the host of `Referer` when there is no `Origin`), that composition is left out of `compositions` and reported in `errors` as `Domain access denied: <reason>`; the others are still returned. A request that names no website, and an owner who listed nothing, are not restricted, and a page on the visitor\'s own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed. So is the website where a partner integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), for the compositions of that partner: a partner\'s list never has to name it.
995
995
  * Get Compositions Batch
996
996
  */
997
997
  getCompositionsBatch(requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountCreditBalance, GetUserCreditTransactions200Response } from '../models/index';
13
+ import type { AccountCreditBalance, GetPartnerCreditTransactions200Response } from '../models/index';
14
14
  export interface AddCreditsRequest {
15
15
  body: object;
16
16
  idempotencyKey?: string;
@@ -57,25 +57,25 @@ export declare class CreditsApi extends runtime.BaseAPI {
57
57
  */
58
58
  getAllCreditBalances(requestParameters?: GetAllCreditBalancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<object>>;
59
59
  /**
60
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0.
60
+ * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
61
61
  * Get an account\'s credit balance
62
62
  */
63
63
  getUserCreditBalanceRaw(requestParameters: GetUserCreditBalance0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountCreditBalance>>;
64
64
  /**
65
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0.
65
+ * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
66
66
  * Get an account\'s credit balance
67
67
  */
68
68
  getUserCreditBalance(requestParameters: GetUserCreditBalance0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountCreditBalance>;
69
69
  /**
70
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. A partner\'s wallet is a separate ledger, read with `getPartnerCreditTransactions`. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
70
+ * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
71
71
  * List an account\'s credit ledger
72
72
  */
73
- getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserCreditTransactions200Response>>;
73
+ getUserCreditTransactionsRaw(requestParameters: GetUserCreditTransactions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPartnerCreditTransactions200Response>>;
74
74
  /**
75
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. A partner\'s wallet is a separate ledger, read with `getPartnerCreditTransactions`. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
75
+ * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
76
76
  * List an account\'s credit ledger
77
77
  */
78
- getUserCreditTransactions(requestParameters: GetUserCreditTransactions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserCreditTransactions200Response>;
78
+ getUserCreditTransactions(requestParameters: GetUserCreditTransactions0Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPartnerCreditTransactions200Response>;
79
79
  /**
80
80
  * Subtracts credits from a user\'s balance. Admin only. A `referenceId` in the body names the deduction event; when it is omitted the request\'s `Idempotency-Key` header is used instead, and the request is refused with 400 when neither is present, so a retried deduction cannot be applied twice.
81
81
  * Subtract credits from user balance
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { AccountCreditBalanceFromJSON, GetUserCreditTransactions200ResponseFromJSON, } from '../models/index.js';
24
+ import { AccountCreditBalanceFromJSON, GetPartnerCreditTransactions200ResponseFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -109,7 +109,7 @@ export class CreditsApi extends runtime.BaseAPI {
109
109
  });
110
110
  }
111
111
  /**
112
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0.
112
+ * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
113
113
  * Get an account\'s credit balance
114
114
  */
115
115
  getUserCreditBalanceRaw(requestParameters, initOverrides) {
@@ -136,7 +136,7 @@ export class CreditsApi extends runtime.BaseAPI {
136
136
  });
137
137
  }
138
138
  /**
139
- * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0.
139
+ * Returns the credits an account holds: the balance, and how much of it is reserved by operations that are still running. An account reads its own balance; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. An account that has never held credits reads a balance of 0. `getPartnerCreditBalance` reads this same balance by partner id.
140
140
  * Get an account\'s credit balance
141
141
  */
142
142
  getUserCreditBalance(requestParameters, initOverrides) {
@@ -146,7 +146,7 @@ export class CreditsApi extends runtime.BaseAPI {
146
146
  });
147
147
  }
148
148
  /**
149
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. A partner\'s wallet is a separate ledger, read with `getPartnerCreditTransactions`. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
149
+ * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
150
150
  * List an account\'s credit ledger
151
151
  */
152
152
  getUserCreditTransactionsRaw(requestParameters, initOverrides) {
@@ -178,11 +178,11 @@ export class CreditsApi extends runtime.BaseAPI {
178
178
  headers: headerParameters,
179
179
  query: queryParameters,
180
180
  }, initOverrides);
181
- return new runtime.JSONApiResponse(response, (jsonValue) => GetUserCreditTransactions200ResponseFromJSON(jsonValue));
181
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPartnerCreditTransactions200ResponseFromJSON(jsonValue));
182
182
  });
183
183
  }
184
184
  /**
185
- * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. A partner\'s wallet is a separate ledger, read with `getPartnerCreditTransactions`. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
185
+ * Lists the entries of an account\'s credit ledger, newest first. This is also how an account\'s usage is read: every operation that spends credits is a `debit` entry, so summing the `debit` entries over a period gives the credits consumed in it, and the other types give what was added. An account reads its own ledger; with a partner\'s API key, that is the account of the person who administers the partner. Widgetic administrators can read any account\'s. `getPartnerCreditTransactions` reads this same ledger by partner id. The page is always bounded: `limit` defaults to 100 and is capped at 500, `offset` defaults to 0.
186
186
  * List an account\'s credit ledger
187
187
  */
188
188
  getUserCreditTransactions(requestParameters, initOverrides) {
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Widgetic API Gateway
3
+ * API documentation for the Widgetic API Gateway
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { EnterpriseCustomization, ListEnterpriseCustomizations200Response, UpdateEnterpriseCustomizationRequest } from '../models/index';
14
+ export interface CreateEnterpriseCustomizationRequest {
15
+ partnerId: string;
16
+ updateEnterpriseCustomizationRequest: UpdateEnterpriseCustomizationRequest;
17
+ }
18
+ export interface DeleteEnterpriseCustomizationRequest {
19
+ partnerId: string;
20
+ }
21
+ export interface GetEnterpriseCustomizationRequest {
22
+ partnerId: string;
23
+ }
24
+ export interface ListEnterpriseCustomizationsRequest {
25
+ includeInactive?: boolean;
26
+ limit?: number;
27
+ offset?: number;
28
+ }
29
+ export interface UpdateEnterpriseCustomizationOperationRequest {
30
+ partnerId: string;
31
+ updateEnterpriseCustomizationRequest: UpdateEnterpriseCustomizationRequest;
32
+ }
33
+ /**
34
+ *
35
+ */
36
+ export declare class EnterpriseCustomizationsApi extends runtime.BaseAPI {
37
+ /**
38
+ * Creates a new enterprise customization for a partner. Billing admin only.
39
+ * Create enterprise customization
40
+ */
41
+ createEnterpriseCustomizationRaw(requestParameters: CreateEnterpriseCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnterpriseCustomization>>;
42
+ /**
43
+ * Creates a new enterprise customization for a partner. Billing admin only.
44
+ * Create enterprise customization
45
+ */
46
+ createEnterpriseCustomization(requestParameters: CreateEnterpriseCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnterpriseCustomization>;
47
+ /**
48
+ * Deletes an enterprise customization for a partner. Billing admin only.
49
+ * Delete enterprise customization
50
+ */
51
+ deleteEnterpriseCustomizationRaw(requestParameters: DeleteEnterpriseCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
52
+ /**
53
+ * Deletes an enterprise customization for a partner. Billing admin only.
54
+ * Delete enterprise customization
55
+ */
56
+ deleteEnterpriseCustomization(requestParameters: DeleteEnterpriseCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
57
+ /**
58
+ * Retrieves enterprise customization for a specific partner. Billing admin or partner admin only.
59
+ * Get enterprise customization by partner ID
60
+ */
61
+ getEnterpriseCustomizationRaw(requestParameters: GetEnterpriseCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnterpriseCustomization>>;
62
+ /**
63
+ * Retrieves enterprise customization for a specific partner. Billing admin or partner admin only.
64
+ * Get enterprise customization by partner ID
65
+ */
66
+ getEnterpriseCustomization(requestParameters: GetEnterpriseCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnterpriseCustomization>;
67
+ /**
68
+ * Retrieves all enterprise customizations with pagination. Billing admin only.
69
+ * List all enterprise customizations
70
+ */
71
+ listEnterpriseCustomizationsRaw(requestParameters: ListEnterpriseCustomizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListEnterpriseCustomizations200Response>>;
72
+ /**
73
+ * Retrieves all enterprise customizations with pagination. Billing admin only.
74
+ * List all enterprise customizations
75
+ */
76
+ listEnterpriseCustomizations(requestParameters?: ListEnterpriseCustomizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListEnterpriseCustomizations200Response>;
77
+ /**
78
+ * Updates an existing enterprise customization for a partner. Billing admin only.
79
+ * Update enterprise customization
80
+ */
81
+ updateEnterpriseCustomizationRaw(requestParameters: UpdateEnterpriseCustomizationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<EnterpriseCustomization>>;
82
+ /**
83
+ * Updates an existing enterprise customization for a partner. Billing admin only.
84
+ * Update enterprise customization
85
+ */
86
+ updateEnterpriseCustomization(requestParameters: UpdateEnterpriseCustomizationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<EnterpriseCustomization>;
87
+ }
@@ -0,0 +1,229 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Widgetic API Gateway
5
+ * API documentation for the Widgetic API Gateway
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime.js';
24
+ import { EnterpriseCustomizationFromJSON, ListEnterpriseCustomizations200ResponseFromJSON, UpdateEnterpriseCustomizationRequestToJSON, } from '../models/index.js';
25
+ /**
26
+ *
27
+ */
28
+ export class EnterpriseCustomizationsApi extends runtime.BaseAPI {
29
+ /**
30
+ * Creates a new enterprise customization for a partner. Billing admin only.
31
+ * Create enterprise customization
32
+ */
33
+ createEnterpriseCustomizationRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['partnerId'] == null) {
36
+ throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling createEnterpriseCustomization().');
37
+ }
38
+ if (requestParameters['updateEnterpriseCustomizationRequest'] == null) {
39
+ throw new runtime.RequiredError('updateEnterpriseCustomizationRequest', 'Required parameter "updateEnterpriseCustomizationRequest" was null or undefined when calling createEnterpriseCustomization().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ headerParameters['Content-Type'] = 'application/json';
44
+ if (this.configuration && this.configuration.accessToken) {
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = yield token("apiKeyAuth", []);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
50
+ }
51
+ const response = yield this.request({
52
+ path: `/enterprise-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
53
+ method: 'POST',
54
+ headers: headerParameters,
55
+ query: queryParameters,
56
+ body: UpdateEnterpriseCustomizationRequestToJSON(requestParameters['updateEnterpriseCustomizationRequest']),
57
+ }, initOverrides);
58
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnterpriseCustomizationFromJSON(jsonValue));
59
+ });
60
+ }
61
+ /**
62
+ * Creates a new enterprise customization for a partner. Billing admin only.
63
+ * Create enterprise customization
64
+ */
65
+ createEnterpriseCustomization(requestParameters, initOverrides) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ const response = yield this.createEnterpriseCustomizationRaw(requestParameters, initOverrides);
68
+ return yield response.value();
69
+ });
70
+ }
71
+ /**
72
+ * Deletes an enterprise customization for a partner. Billing admin only.
73
+ * Delete enterprise customization
74
+ */
75
+ deleteEnterpriseCustomizationRaw(requestParameters, initOverrides) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ if (requestParameters['partnerId'] == null) {
78
+ throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling deleteEnterpriseCustomization().');
79
+ }
80
+ const queryParameters = {};
81
+ const headerParameters = {};
82
+ if (this.configuration && this.configuration.accessToken) {
83
+ const token = this.configuration.accessToken;
84
+ const tokenString = yield token("apiKeyAuth", []);
85
+ if (tokenString) {
86
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
87
+ }
88
+ }
89
+ const response = yield this.request({
90
+ path: `/enterprise-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
91
+ method: 'DELETE',
92
+ headers: headerParameters,
93
+ query: queryParameters,
94
+ }, initOverrides);
95
+ return new runtime.VoidApiResponse(response);
96
+ });
97
+ }
98
+ /**
99
+ * Deletes an enterprise customization for a partner. Billing admin only.
100
+ * Delete enterprise customization
101
+ */
102
+ deleteEnterpriseCustomization(requestParameters, initOverrides) {
103
+ return __awaiter(this, void 0, void 0, function* () {
104
+ yield this.deleteEnterpriseCustomizationRaw(requestParameters, initOverrides);
105
+ });
106
+ }
107
+ /**
108
+ * Retrieves enterprise customization for a specific partner. Billing admin or partner admin only.
109
+ * Get enterprise customization by partner ID
110
+ */
111
+ getEnterpriseCustomizationRaw(requestParameters, initOverrides) {
112
+ return __awaiter(this, void 0, void 0, function* () {
113
+ if (requestParameters['partnerId'] == null) {
114
+ throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling getEnterpriseCustomization().');
115
+ }
116
+ const queryParameters = {};
117
+ const headerParameters = {};
118
+ if (this.configuration && this.configuration.accessToken) {
119
+ const token = this.configuration.accessToken;
120
+ const tokenString = yield token("apiKeyAuth", []);
121
+ if (tokenString) {
122
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
123
+ }
124
+ }
125
+ const response = yield this.request({
126
+ path: `/enterprise-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
127
+ method: 'GET',
128
+ headers: headerParameters,
129
+ query: queryParameters,
130
+ }, initOverrides);
131
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnterpriseCustomizationFromJSON(jsonValue));
132
+ });
133
+ }
134
+ /**
135
+ * Retrieves enterprise customization for a specific partner. Billing admin or partner admin only.
136
+ * Get enterprise customization by partner ID
137
+ */
138
+ getEnterpriseCustomization(requestParameters, initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const response = yield this.getEnterpriseCustomizationRaw(requestParameters, initOverrides);
141
+ return yield response.value();
142
+ });
143
+ }
144
+ /**
145
+ * Retrieves all enterprise customizations with pagination. Billing admin only.
146
+ * List all enterprise customizations
147
+ */
148
+ listEnterpriseCustomizationsRaw(requestParameters, initOverrides) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const queryParameters = {};
151
+ if (requestParameters['includeInactive'] != null) {
152
+ queryParameters['include_inactive'] = requestParameters['includeInactive'];
153
+ }
154
+ if (requestParameters['limit'] != null) {
155
+ queryParameters['limit'] = requestParameters['limit'];
156
+ }
157
+ if (requestParameters['offset'] != null) {
158
+ queryParameters['offset'] = requestParameters['offset'];
159
+ }
160
+ const headerParameters = {};
161
+ if (this.configuration && this.configuration.accessToken) {
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = yield token("apiKeyAuth", []);
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
167
+ }
168
+ const response = yield this.request({
169
+ path: `/enterprise-customizations`,
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ }, initOverrides);
174
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListEnterpriseCustomizations200ResponseFromJSON(jsonValue));
175
+ });
176
+ }
177
+ /**
178
+ * Retrieves all enterprise customizations with pagination. Billing admin only.
179
+ * List all enterprise customizations
180
+ */
181
+ listEnterpriseCustomizations() {
182
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
183
+ const response = yield this.listEnterpriseCustomizationsRaw(requestParameters, initOverrides);
184
+ return yield response.value();
185
+ });
186
+ }
187
+ /**
188
+ * Updates an existing enterprise customization for a partner. Billing admin only.
189
+ * Update enterprise customization
190
+ */
191
+ updateEnterpriseCustomizationRaw(requestParameters, initOverrides) {
192
+ return __awaiter(this, void 0, void 0, function* () {
193
+ if (requestParameters['partnerId'] == null) {
194
+ throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling updateEnterpriseCustomization().');
195
+ }
196
+ if (requestParameters['updateEnterpriseCustomizationRequest'] == null) {
197
+ throw new runtime.RequiredError('updateEnterpriseCustomizationRequest', 'Required parameter "updateEnterpriseCustomizationRequest" was null or undefined when calling updateEnterpriseCustomization().');
198
+ }
199
+ const queryParameters = {};
200
+ const headerParameters = {};
201
+ headerParameters['Content-Type'] = 'application/json';
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ const token = this.configuration.accessToken;
204
+ const tokenString = yield token("apiKeyAuth", []);
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
207
+ }
208
+ }
209
+ const response = yield this.request({
210
+ path: `/enterprise-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
211
+ method: 'PUT',
212
+ headers: headerParameters,
213
+ query: queryParameters,
214
+ body: UpdateEnterpriseCustomizationRequestToJSON(requestParameters['updateEnterpriseCustomizationRequest']),
215
+ }, initOverrides);
216
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnterpriseCustomizationFromJSON(jsonValue));
217
+ });
218
+ }
219
+ /**
220
+ * Updates an existing enterprise customization for a partner. Billing admin only.
221
+ * Update enterprise customization
222
+ */
223
+ updateEnterpriseCustomization(requestParameters, initOverrides) {
224
+ return __awaiter(this, void 0, void 0, function* () {
225
+ const response = yield this.updateEnterpriseCustomizationRaw(requestParameters, initOverrides);
226
+ return yield response.value();
227
+ });
228
+ }
229
+ }