@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,13 +21,13 @@ 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, AddDomainRequestToJSON, CompositionDataSourceFromJSON, CompositionEntriesDescriptionFromJSON, CompositionEntriesReadingFromJSON, CompositionEntryDeleteSuccessFromJSON, CompositionEntryItemsPageSuccessFromJSON, CopyPartnerPresetRequestToJSON, CreateCompositionContentItemRequestToJSON, CreateCompositionFromPresetRequestToJSON, CreateCompositionFromWidget201ResponseFromJSON, CreateCompositionFromWidgetRequestToJSON, CreateUserApiKeyRequestToJSON, CreateWidget201ResponseFromJSON, CreatedUserApiKeyFromJSON, DeleteCompositionContentItem200ResponseFromJSON, DeleteCompositionDataSource200ResponseFromJSON, DeletePersonalWorkspaceDomain200ResponseFromJSON, DeleteUserApiKey200ResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAllCompositions200ResponseFromJSON, GetAllManagedUsers200ResponseFromJSON, GetCompositionContentSchema200ResponseFromJSON, GetCompositionDesignSchema200ResponseFromJSON, GetCompositionEmbedSchema200ResponseFromJSON, GetInvoicesByPartnerId200ResponseFromJSON, GetManagedUserLimits200ResponseFromJSON, GetManagedUserStorageUsage200ResponseFromJSON, GetManagedUsersByManagerId200ResponseFromJSON, GetPartnerDesignDefaults200ResponseFromJSON, GetPersonalWorkspaceDomains200ResponseFromJSON, GetUserApiKeyUsageLogs200ResponseFromJSON, GetUserApiKeys200ResponseFromJSON, GetUserCreditTransactions200ResponseFromJSON, GetWidgets200ResponseFromJSON, ListPartnerPresets200ResponseFromJSON, ManagedUserFromJSON, ManagedUserEntriesPageSuccessFromJSON, NewCompositionToJSON, NewManagedUserToJSON, NewWidgetToJSON, OperationsIdGet200ResponseFromJSON, PartnerContractFromJSON, PartnerEntryContextSecretFromJSON, PartnerEntryContextSigningFromJSON, PartnerNotificationDeliveryFromJSON, PartnerNotificationDeliveryLogFromJSON, PartnerNotificationPageFromJSON, PartnerNotificationSettingsFromJSON, PartnerNotificationSettingsChangeFromJSON, PartnerNotificationTestEventRequestToJSON, PartnerNotificationTestEventResultFromJSON, PartnerPresetFromJSON, PartnerPresetCopyFromJSON, PartnerPresetRemovalFromJSON, PartnerStorageDestinationFromJSON, PartnerStorageRemovalFromJSON, PersonalWorkspaceDomainResultFromJSON, SetCompositionDataSourceRequestToJSON, SetDynamicContent200ResponseFromJSON, SetDynamicContentRequestToJSON, SetManagedUserLimitsRequestToJSON, SetPartnerDesignDefaultsRequestToJSON, SetPartnerPresetRequestToJSON, SetPartnerStorageDestinationRequestToJSON, UpdateCompositionToJSON, UpdateDomainRequestToJSON, UpdateManagedUserToJSON, UpdatePartnerEntryContextSigningRequestToJSON, UpdatePartnerNotificationSettingsRequestToJSON, UpdateUserApiKeyRequestToJSON, UploadFromJSON, UploadLimitsFromJSON, UploadsGet200ResponseFromJSON, UploadsIdDelete200ResponseFromJSON, UserApiKeyFromJSON, ValidateToken200ResponseFromJSON, } from '../models/index.js';
24
+ import { AccountCreditBalanceFromJSON, AddDomainRequestToJSON, CompositionDataSourceFromJSON, CompositionEntriesDescriptionFromJSON, CompositionEntriesReadingFromJSON, CompositionEntryDeleteSuccessFromJSON, CompositionEntryItemsPageSuccessFromJSON, CopyPartnerPresetRequestToJSON, CreateCompositionContentItemRequestToJSON, CreateCompositionFromPresetRequestToJSON, CreateCompositionFromWidget201ResponseFromJSON, CreateCompositionFromWidgetRequestToJSON, CreateUserApiKeyRequestToJSON, CreateWidget201ResponseFromJSON, CreatedUserApiKeyFromJSON, DeleteCompositionContentItem200ResponseFromJSON, DeleteCompositionDataSource200ResponseFromJSON, DeletePersonalWorkspaceDomain200ResponseFromJSON, DeleteUserApiKey200ResponseFromJSON, DuplicateComposition202ResponseFromJSON, DuplicateCompositionRequestToJSON, GetAllCompositions200ResponseFromJSON, GetAllManagedUsers200ResponseFromJSON, GetCompositionContentSchema200ResponseFromJSON, GetCompositionDesignSchema200ResponseFromJSON, GetCompositionEmbedSchema200ResponseFromJSON, GetInvoicesByPartnerId200ResponseFromJSON, GetManagedUserLimits200ResponseFromJSON, GetManagedUserStorageUsage200ResponseFromJSON, GetManagedUsersByManagerId200ResponseFromJSON, GetPartnerCreditTransactions200ResponseFromJSON, GetPartnerDesignDefaults200ResponseFromJSON, GetPersonalWorkspaceDomains200ResponseFromJSON, GetUserApiKeyUsageLogs200ResponseFromJSON, GetUserApiKeys200ResponseFromJSON, GetWidgets200ResponseFromJSON, ListPartnerPresets200ResponseFromJSON, ManagedUserFromJSON, ManagedUserEntriesPageSuccessFromJSON, NewCompositionToJSON, NewManagedUserToJSON, NewWidgetToJSON, OperationsIdGet200ResponseFromJSON, PartnerContractFromJSON, PartnerEntryContextSecretFromJSON, PartnerEntryContextSigningFromJSON, PartnerExtraCreditsInvoiceFromJSON, PartnerNotificationDeliveryFromJSON, PartnerNotificationDeliveryLogFromJSON, PartnerNotificationPageFromJSON, PartnerNotificationSettingsFromJSON, PartnerNotificationSettingsChangeFromJSON, PartnerNotificationTestEventRequestToJSON, PartnerNotificationTestEventResultFromJSON, PartnerPresetFromJSON, PartnerPresetCopyFromJSON, PartnerPresetRemovalFromJSON, PartnerStorageDestinationFromJSON, PartnerStorageRemovalFromJSON, PersonalWorkspaceDomainResultFromJSON, RequestExtraCreditsToJSON, SetCompositionDataSourceRequestToJSON, SetDynamicContent200ResponseFromJSON, SetDynamicContentRequestToJSON, SetManagedUserLimitsRequestToJSON, SetPartnerDesignDefaultsRequestToJSON, SetPartnerPresetRequestToJSON, SetPartnerStorageDestinationRequestToJSON, UpdateCompositionToJSON, UpdateDomainRequestToJSON, UpdateManagedUserToJSON, UpdatePartnerEntryContextSigningRequestToJSON, UpdatePartnerNotificationSettingsRequestToJSON, UpdateUserApiKeyRequestToJSON, UploadFromJSON, UploadLimitsFromJSON, UploadsGet200ResponseFromJSON, UploadsIdDelete200ResponseFromJSON, UserApiKeyFromJSON, ValidateToken200ResponseFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class PartnerApi extends runtime.BaseAPI {
29
29
  /**
30
- * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. An account can list at most 50 websites. Use `*.example.com` for a website and all of its subdomains instead of listing each one.
30
+ * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. An account can list at most 50 websites. Use `*.example.com` for a website and all of its subdomains instead of listing each one.
31
31
  * Allow a website to show your widgets
32
32
  */
33
33
  addPersonalWorkspaceDomainRaw(requestParameters, initOverrides) {
@@ -59,7 +59,7 @@ export class PartnerApi extends runtime.BaseAPI {
59
59
  });
60
60
  }
61
61
  /**
62
- * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. An account can list at most 50 websites. Use `*.example.com` for a website and all of its subdomains instead of listing each one.
62
+ * Adds a website to an account\'s own list. Give a website name such as `example.com`, or `*.example.com` for a website and all of its subdomains. A scheme, a port, a path, capital letters and a leading `www.` are dropped, so `https://www.Example.com/shop` is kept as `example.com`, and `example.com` covers `www.example.com` too. Something that is not a website name is refused, not stored. Until the first website is added nothing is restricted, and a widget can be shown anywhere. Once the list has one, a widget of the account is shown on the listed websites (and on Widgetic\'s own) and nowhere else. A page on your own machine (`localhost`, `127.0.0.1` or `[::1]`, on any port) is always allowed, so there is nothing to add to test locally. So is the website where a partner your account administers integrates Widgetic, with every subdomain of it (`platformDomain` in the answer of `GET /partners/mine`), so there is nothing to add for it either and a list can never lock it out. A change can take about 15 seconds to reach every server. The list is a safeguard against other websites showing your widgets in a visitor\'s browser. It is not access control: anyone who knows a widget\'s id can still fetch its published content with a plain request that names no website. An account can list at most 50 websites. Use `*.example.com` for a website and all of its subdomains instead of listing each one.
63
63
  * Allow a website to show your widgets
64
64
  */
65
65
  addPersonalWorkspaceDomain(requestParameters, initOverrides) {
@@ -341,7 +341,52 @@ export class PartnerApi extends runtime.BaseAPI {
341
341
  });
342
342
  }
343
343
  /**
344
- * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. An account can hold at most 25 keys. An account on a plan without API access cannot make one.
344
+ * Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (`getPartnerCreditBalance` shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (`payment_arrears`). Allowed whatever the partner\'s standing: a partner that has run out of credits, or is stopped for an unpaid contract invoice, can still buy. No contract is needed. An `Idempotency-Key` is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs `billing:write`.
345
+ * Buy extra credits for a partner
346
+ */
347
+ createPartnerExtraCreditsInvoiceRaw(requestParameters, initOverrides) {
348
+ return __awaiter(this, void 0, void 0, function* () {
349
+ if (requestParameters['partnerId'] == null) {
350
+ throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling createPartnerExtraCreditsInvoice().');
351
+ }
352
+ if (requestParameters['requestExtraCredits'] == null) {
353
+ throw new runtime.RequiredError('requestExtraCredits', 'Required parameter "requestExtraCredits" was null or undefined when calling createPartnerExtraCreditsInvoice().');
354
+ }
355
+ const queryParameters = {};
356
+ const headerParameters = {};
357
+ headerParameters['Content-Type'] = 'application/json';
358
+ if (requestParameters['idempotencyKey'] != null) {
359
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
360
+ }
361
+ if (this.configuration && this.configuration.accessToken) {
362
+ const token = this.configuration.accessToken;
363
+ const tokenString = yield token("apiKeyAuth", []);
364
+ if (tokenString) {
365
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
366
+ }
367
+ }
368
+ const response = yield this.request({
369
+ path: `/partners/{partnerId}/credits/extra-invoice`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
370
+ method: 'POST',
371
+ headers: headerParameters,
372
+ query: queryParameters,
373
+ body: RequestExtraCreditsToJSON(requestParameters['requestExtraCredits']),
374
+ }, initOverrides);
375
+ return new runtime.JSONApiResponse(response, (jsonValue) => PartnerExtraCreditsInvoiceFromJSON(jsonValue));
376
+ });
377
+ }
378
+ /**
379
+ * Asks Widgetic for an invoice for extra credits, on top of the credits of the contract. Name the dollars; the invoice is for the most whole credits they buy at the **list price** of a credit (the price a contract may lower belongs to the contract), so it is never for more than you asked: 12.34 buys 123 credits and the invoice says 12.30. The smallest purchase is 10 dollars and one request buys at most 100000 (ask Widgetic for an invoice for more). Pay the invoice with the link in the answer. When it is paid the credits are added **once, for good**, to the account of the person who administers the partner, which is the account everything the partner builds is charged to (`getPartnerCreditBalance` shows it). Extra credits **do not expire**, unlike the credits of a contract period, which end with it. Nothing is added before the invoice is paid, and an unpaid invoice for extra credits never stops the partner: only an unpaid invoice of the contract does (`payment_arrears`). Allowed whatever the partner\'s standing: a partner that has run out of credits, or is stopped for an unpaid contract invoice, can still buy. No contract is needed. An `Idempotency-Key` is required, and it is what makes a retry safe: the same key with the same body returns the invoice already issued, the same key with a different body is refused with 422, and a duplicate that arrives while the first is still running is refused with 409. Use one key per purchase you mean to make, and a new key for the next one. At most 10 requests an hour. Who may ask: the person who administers the partner, or a Widgetic administrator. A key limited to scopes needs `billing:write`.
380
+ * Buy extra credits for a partner
381
+ */
382
+ createPartnerExtraCreditsInvoice(requestParameters, initOverrides) {
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ const response = yield this.createPartnerExtraCreditsInvoiceRaw(requestParameters, initOverrides);
385
+ return yield response.value();
386
+ });
387
+ }
388
+ /**
389
+ * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. An account can hold at most 25 keys, except a partner account, which has no limit: what a partner\'s keys do is paid for from its own credits, however many integrations it runs. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
345
390
  * Create an API key
346
391
  */
347
392
  createUserApiKeyRaw(requestParameters, initOverrides) {
@@ -376,7 +421,7 @@ export class PartnerApi extends runtime.BaseAPI {
376
421
  });
377
422
  }
378
423
  /**
379
- * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. An account can hold at most 25 keys. An account on a plan without API access cannot make one.
424
+ * Makes a new API key for an account and returns its secret in `key`. That is the only time the secret is shown: Widgetic keeps a hash, so a key that was not stored cannot be recovered, only replaced. To rotate a key, make the new one, switch the integration over to it, then delete the old one. Only a person signed in on widgetic.com can make a key: a request made with an API key, or with an SDK token, is refused with 403. That way a leaked key cannot be used to make a second one that survives its revocation. Make keys from the dashboard; a key can still list, rename, switch off and delete keys. An `Idempotency-Key` header is required (8 to 50 characters: letters, digits, `-` and `_`). A retry with the same header and the same body returns the same answer instead of making a second key, and the same header with a different body is refused with 422. Make keys one at a time: two requests for the same account that run at the same moment can overwrite each other. A key can be limited to what it needs. Send a `preset` (`read_only`, `content` or `full_access`) or a list of `scopes`, never both. Send neither for a key that can do everything its owner can, as every key made before scopes existed. A limited key is refused with 403 and the code `API_KEY_SCOPE_MISSING` on anything outside its scopes, so a key held by a build server or by a partner\'s backend can be given only the part of the API it uses. The scopes of a key are fixed when it is made: to widen one, make a new key and delete the old one. A limited key cannot make, change or delete keys, exchange tokens or reach the administration routes. The list of scopes is in the `ApiKeyScope` schema. An account can hold at most 25 keys, except a partner account, which has no limit: what a partner\'s keys do is paid for from its own credits, however many integrations it runs. An account on a plan without API access cannot make one (a partner account is not asked about a plan).
380
425
  * Create an API key
381
426
  */
382
427
  createUserApiKey(requestParameters, initOverrides) {
@@ -1495,7 +1540,7 @@ export class PartnerApi extends runtime.BaseAPI {
1495
1540
  });
1496
1541
  }
1497
1542
  /**
1498
- * Retrieves operational credits, the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it.
1543
+ * Retrieves the older partner wallet\'s figures (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is **not** what the partner spends: that is the balance of its administrator\'s account, read with `getPartnerCreditBalance` (and its ledger with `getPartnerCreditTransactions`). The wallet it shows was kept before credits followed the account, and nothing adds to it any more.
1499
1544
  * Get comprehensive partner billing overview
1500
1545
  */
1501
1546
  getPartnerBillingOverviewRaw(requestParameters, initOverrides) {
@@ -1522,7 +1567,7 @@ export class PartnerApi extends runtime.BaseAPI {
1522
1567
  });
1523
1568
  }
1524
1569
  /**
1525
- * Retrieves operational credits, the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it.
1570
+ * Retrieves the older partner wallet\'s figures (`operationalCredits`), the partner\'s contract terms (`partnerCustomization`, the same fields as `getPartnerContract`) and billing integration status. Internal negotiation notes are not part of it. `operationalCredits` is **not** what the partner spends: that is the balance of its administrator\'s account, read with `getPartnerCreditBalance` (and its ledger with `getPartnerCreditTransactions`). The wallet it shows was kept before credits followed the account, and nothing adds to it any more.
1526
1571
  * Get comprehensive partner billing overview
1527
1572
  */
1528
1573
  getPartnerBillingOverview(requestParameters, initOverrides) {
@@ -1567,6 +1612,89 @@ export class PartnerApi extends runtime.BaseAPI {
1567
1612
  return yield response.value();
1568
1613
  });
1569
1614
  }
1615
+ /**
1616
+ * Returns the credits the partner has: the balance of the account of the person who administers it, and how much of that is reserved by operations that are still running. That is the account its customers\' editor sessions and its own API calls spend from, and the one a paid invoice that carries credits adds to, so it is the same balance `getUserCreditBalance` reads for that person. The partner wallet that was kept before credits followed the account is not read here: nothing adds to it or spends from it any more. A partner with no administrator reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
1617
+ * Get partner credit balance
1618
+ */
1619
+ getPartnerCreditBalanceRaw(requestParameters, initOverrides) {
1620
+ return __awaiter(this, void 0, void 0, function* () {
1621
+ if (requestParameters['partnerId'] == null) {
1622
+ throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling getPartnerCreditBalance().');
1623
+ }
1624
+ const queryParameters = {};
1625
+ const headerParameters = {};
1626
+ if (this.configuration && this.configuration.accessToken) {
1627
+ const token = this.configuration.accessToken;
1628
+ const tokenString = yield token("apiKeyAuth", []);
1629
+ if (tokenString) {
1630
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1631
+ }
1632
+ }
1633
+ const response = yield this.request({
1634
+ path: `/partners/{partnerId}/credits/balance`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
1635
+ method: 'GET',
1636
+ headers: headerParameters,
1637
+ query: queryParameters,
1638
+ }, initOverrides);
1639
+ return new runtime.JSONApiResponse(response, (jsonValue) => AccountCreditBalanceFromJSON(jsonValue));
1640
+ });
1641
+ }
1642
+ /**
1643
+ * Returns the credits the partner has: the balance of the account of the person who administers it, and how much of that is reserved by operations that are still running. That is the account its customers\' editor sessions and its own API calls spend from, and the one a paid invoice that carries credits adds to, so it is the same balance `getUserCreditBalance` reads for that person. The partner wallet that was kept before credits followed the account is not read here: nothing adds to it or spends from it any more. A partner with no administrator reads a balance of 0. Access: the person who administers the partner, or a Widgetic administrator.
1644
+ * Get partner credit balance
1645
+ */
1646
+ getPartnerCreditBalance(requestParameters, initOverrides) {
1647
+ return __awaiter(this, void 0, void 0, function* () {
1648
+ const response = yield this.getPartnerCreditBalanceRaw(requestParameters, initOverrides);
1649
+ return yield response.value();
1650
+ });
1651
+ }
1652
+ /**
1653
+ * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it. Every operation that spends credits is a `debit` entry, and the credits an invoice carried arrive as `credit` entries when the invoice is paid, so this is also how the partner\'s usage is read. It is the same ledger `getUserCreditTransactions` reads for that person. The partner wallet that was kept before credits followed the account is not read here. A partner with no administrator has an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
1654
+ * Get partner credit transaction history
1655
+ */
1656
+ getPartnerCreditTransactionsRaw(requestParameters, initOverrides) {
1657
+ return __awaiter(this, void 0, void 0, function* () {
1658
+ if (requestParameters['partnerId'] == null) {
1659
+ throw new runtime.RequiredError('partnerId', 'Required parameter "partnerId" was null or undefined when calling getPartnerCreditTransactions().');
1660
+ }
1661
+ const queryParameters = {};
1662
+ if (requestParameters['limit'] != null) {
1663
+ queryParameters['limit'] = requestParameters['limit'];
1664
+ }
1665
+ if (requestParameters['offset'] != null) {
1666
+ queryParameters['offset'] = requestParameters['offset'];
1667
+ }
1668
+ if (requestParameters['type'] != null) {
1669
+ queryParameters['type'] = requestParameters['type'];
1670
+ }
1671
+ const headerParameters = {};
1672
+ if (this.configuration && this.configuration.accessToken) {
1673
+ const token = this.configuration.accessToken;
1674
+ const tokenString = yield token("apiKeyAuth", []);
1675
+ if (tokenString) {
1676
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1677
+ }
1678
+ }
1679
+ const response = yield this.request({
1680
+ path: `/partners/{partnerId}/credits/transactions`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
1681
+ method: 'GET',
1682
+ headers: headerParameters,
1683
+ query: queryParameters,
1684
+ }, initOverrides);
1685
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPartnerCreditTransactions200ResponseFromJSON(jsonValue));
1686
+ });
1687
+ }
1688
+ /**
1689
+ * Lists what happened to the partner\'s credits, newest first: the entries of the credit ledger of the account of the person who administers it. Every operation that spends credits is a `debit` entry, and the credits an invoice carried arrive as `credit` entries when the invoice is paid, so this is also how the partner\'s usage is read. It is the same ledger `getUserCreditTransactions` reads for that person. The partner wallet that was kept before credits followed the account is not read here. A partner with no administrator has an empty ledger. The page is always bounded: `limit` defaults to 20 and is capped at 100, `offset` defaults to 0. Access: the person who administers the partner, or a Widgetic administrator.
1690
+ * Get partner credit transaction history
1691
+ */
1692
+ getPartnerCreditTransactions(requestParameters, initOverrides) {
1693
+ return __awaiter(this, void 0, void 0, function* () {
1694
+ const response = yield this.getPartnerCreditTransactionsRaw(requestParameters, initOverrides);
1695
+ return yield response.value();
1696
+ });
1697
+ }
1570
1698
  /**
1571
1699
  * Read partner-wide design defaults
1572
1700
  */
@@ -1831,7 +1959,7 @@ export class PartnerApi extends runtime.BaseAPI {
1831
1959
  });
1832
1960
  }
1833
1961
  /**
1834
- * 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.
1962
+ * 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.
1835
1963
  * Get an account\'s credit balance
1836
1964
  */
1837
1965
  getUserCreditBalanceRaw(requestParameters, initOverrides) {
@@ -1858,7 +1986,7 @@ export class PartnerApi extends runtime.BaseAPI {
1858
1986
  });
1859
1987
  }
1860
1988
  /**
1861
- * 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.
1989
+ * 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.
1862
1990
  * Get an account\'s credit balance
1863
1991
  */
1864
1992
  getUserCreditBalance(requestParameters, initOverrides) {
@@ -1868,7 +1996,7 @@ export class PartnerApi extends runtime.BaseAPI {
1868
1996
  });
1869
1997
  }
1870
1998
  /**
1871
- * 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.
1999
+ * 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.
1872
2000
  * List an account\'s credit ledger
1873
2001
  */
1874
2002
  getUserCreditTransactionsRaw(requestParameters, initOverrides) {
@@ -1900,11 +2028,11 @@ export class PartnerApi extends runtime.BaseAPI {
1900
2028
  headers: headerParameters,
1901
2029
  query: queryParameters,
1902
2030
  }, initOverrides);
1903
- return new runtime.JSONApiResponse(response, (jsonValue) => GetUserCreditTransactions200ResponseFromJSON(jsonValue));
2031
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPartnerCreditTransactions200ResponseFromJSON(jsonValue));
1904
2032
  });
1905
2033
  }
1906
2034
  /**
1907
- * 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.
2035
+ * 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.
1908
2036
  * List an account\'s credit ledger
1909
2037
  */
1910
2038
  getUserCreditTransactions(requestParameters, initOverrides) {
@@ -2024,7 +2152,7 @@ export class PartnerApi extends runtime.BaseAPI {
2024
2152
  });
2025
2153
  }
2026
2154
  /**
2027
- * Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 120 requests per minute.
2155
+ * Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
2028
2156
  * List entries across a managed user\'s compositions
2029
2157
  */
2030
2158
  listManagedUserEntriesRaw(requestParameters, initOverrides) {
@@ -2078,7 +2206,7 @@ export class PartnerApi extends runtime.BaseAPI {
2078
2206
  });
2079
2207
  }
2080
2208
  /**
2081
- * Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 120 requests per minute.
2209
+ * Merges eligible tables (time and id columns) across the managed user\'s compositions in global time order, then compositionId, table, and id (byte order). Only tables with both a time and an id column take part. Rate limit 30 requests per minute.
2082
2210
  * List entries across a managed user\'s compositions
2083
2211
  */
2084
2212
  listManagedUserEntries(requestParameters, initOverrides) {
@@ -2400,7 +2528,7 @@ export class PartnerApi extends runtime.BaseAPI {
2400
2528
  });
2401
2529
  }
2402
2530
  /**
2403
- * Removes the partner\'s storage destination. Partner storage is not optional, so after this the account\'s own uploads with its API key and the uploads of your customers\' editor sessions are refused (409 `PARTNER_STORAGE_REQUIRED`) until a destination is set again, and no editor session can be made. Files already in the partner\'s bucket are not touched and are not moved: they stay where they are, at the addresses they were given. Removing a destination the partner does not have is not an error: the answer is `removed: false`. The caller must be the person who administers the partner, or a Widgetic administrator.
2531
+ * Removes the partner\'s storage destination. Partner storage is not optional, so after this every upload of the account, on any route, and the uploads of your customers\' editor sessions are refused (409 `PARTNER_STORAGE_REQUIRED`) until a destination is set again, and no editor session can be made. Files already in the partner\'s bucket are not touched and are not moved: they stay where they are, at the addresses they were given. Removing a destination the partner does not have is not an error: the answer is `removed: false`. The caller must be the person who administers the partner, or a Widgetic administrator.
2404
2532
  * Stop storing a partner\'s uploaded files in its own bucket
2405
2533
  */
2406
2534
  removePartnerStorageDestinationRaw(requestParameters, initOverrides) {
@@ -2427,7 +2555,7 @@ export class PartnerApi extends runtime.BaseAPI {
2427
2555
  });
2428
2556
  }
2429
2557
  /**
2430
- * Removes the partner\'s storage destination. Partner storage is not optional, so after this the account\'s own uploads with its API key and the uploads of your customers\' editor sessions are refused (409 `PARTNER_STORAGE_REQUIRED`) until a destination is set again, and no editor session can be made. Files already in the partner\'s bucket are not touched and are not moved: they stay where they are, at the addresses they were given. Removing a destination the partner does not have is not an error: the answer is `removed: false`. The caller must be the person who administers the partner, or a Widgetic administrator.
2558
+ * Removes the partner\'s storage destination. Partner storage is not optional, so after this every upload of the account, on any route, and the uploads of your customers\' editor sessions are refused (409 `PARTNER_STORAGE_REQUIRED`) until a destination is set again, and no editor session can be made. Files already in the partner\'s bucket are not touched and are not moved: they stay where they are, at the addresses they were given. Removing a destination the partner does not have is not an error: the answer is `removed: false`. The caller must be the person who administers the partner, or a Widgetic administrator.
2431
2559
  * Stop storing a partner\'s uploaded files in its own bucket
2432
2560
  */
2433
2561
  removePartnerStorageDestination(requestParameters, initOverrides) {
@@ -2866,7 +2994,7 @@ export class PartnerApi extends runtime.BaseAPI {
2866
2994
  });
2867
2995
  }
2868
2996
  /**
2869
- * Points the partner at a bucket of its own on an S3-compatible service (Amazon S3, Backblaze B2, Cloudflare R2, Wasabi, MinIO and the like). From then on, a file uploaded with `uploadsPost` by the account that administers the partner is stored in that bucket instead of with Widgetic. It takes none of the account\'s storage allowance, and its `url` is served from `public_base_url`. Only uploads sent with an API key, an SDK token or an editor session use the destination. Uploads from the Widgetic website, resumable uploads and the media library keep using Widgetic\'s storage. A destination is required. Partner storage is not optional: your customers\' files, and your own uploads with your API key, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<key_prefix>widgetic-check/`, reads it back from `<public_base_url>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `public_base_url`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner\'s.
2997
+ * Points the partner at a bucket of its own on an S3-compatible service (Amazon S3, Backblaze B2, Cloudflare R2, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadsPost` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account\'s storage allowance, and its `url` is served from `public_base_url`. The chunks of a resumable upload wait in Widgetic\'s temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers\' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<key_prefix>widgetic-check/`, reads it back from `<public_base_url>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `public_base_url`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner\'s.
2870
2998
  * Set where a partner\'s uploaded files are stored
2871
2999
  */
2872
3000
  setPartnerStorageDestinationRaw(requestParameters, initOverrides) {
@@ -2898,7 +3026,7 @@ export class PartnerApi extends runtime.BaseAPI {
2898
3026
  });
2899
3027
  }
2900
3028
  /**
2901
- * Points the partner at a bucket of its own on an S3-compatible service (Amazon S3, Backblaze B2, Cloudflare R2, Wasabi, MinIO and the like). From then on, a file uploaded with `uploadsPost` by the account that administers the partner is stored in that bucket instead of with Widgetic. It takes none of the account\'s storage allowance, and its `url` is served from `public_base_url`. Only uploads sent with an API key, an SDK token or an editor session use the destination. Uploads from the Widgetic website, resumable uploads and the media library keep using Widgetic\'s storage. A destination is required. Partner storage is not optional: your customers\' files, and your own uploads with your API key, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<key_prefix>widgetic-check/`, reads it back from `<public_base_url>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `public_base_url`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner\'s.
3029
+ * Points the partner at a bucket of its own on an S3-compatible service (Amazon S3, Backblaze B2, Cloudflare R2, Wasabi, MinIO and the like). From then on, every file the account that administers the partner stores is kept in that bucket instead of with Widgetic, whichever way it arrives: a file sent with `uploadsPost` (with an API key, an SDK token, an editor session or from the Widgetic website), a resumable upload, the media library, and the files the agent tools and the MCP server save. It takes none of the account\'s storage allowance, and its `url` is served from `public_base_url`. The chunks of a resumable upload wait in Widgetic\'s temporary staging area until it is completed and are removed then: the finished file is stored in your bucket and nowhere else. A destination is required. Partner storage is not optional: your customers\' files, and your own however they arrive, are kept in this destination and nowhere else. An editor session (`createManagedUserEditorSession`) of any surface cannot be made until a destination is set (409 `PARTNER_STORAGE_REQUIRED`), a destination removed later stops the uploads of the sessions already made (the same 409), and your own upload with no destination (on any route, including a resumable upload, which is refused when it is started) is refused in the same way instead of being stored with Widgetic. A partner cannot be activated until it has a destination that works. The destination is checked before it is saved. Widgetic writes a small test file under `<key_prefix>widgetic-check/`, reads it back from `<public_base_url>/<its key>`, and deletes it. If any step fails nothing is saved and the answer is 422 `STORAGE_DESTINATION_UNVERIFIED`: `details.step` says where (`endpoint`, `write` or `public_read`), `details.reason` says why, and `param` names the field most likely to be wrong. What the bucket needs: - an access key that may put objects into it (it may also delete objects, which lets the test file be cleaned up, but that is not required); - its files publicly readable at `public_base_url`, either because the bucket is public or through a CDN. The secret access key is stored encrypted and is never returned or logged; a response shows only the last four characters of the access key id (`accessKeyHint`). Saving replaces the whole destination, so send every field again, including the secret. Files already stored stay where they are, and keep working for as long as that bucket stays publicly readable. Once a destination is set, an upload is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 `STORAGE_DESTINATION_UNAVAILABLE`, and when the bucket rejects the file with 502 `STORAGE_DESTINATION_WRITE_FAILED`. The caller must be the person who administers the partner (an API key of that account works); anyone else is refused with 403 whether or not the partner exists. Widgetic administrators can set any partner\'s.
2902
3030
  * Set where a partner\'s uploaded files are stored
2903
3031
  */
2904
3032
  setPartnerStorageDestination(requestParameters, initOverrides) {
@@ -3329,7 +3457,7 @@ export class PartnerApi extends runtime.BaseAPI {
3329
3457
  });
3330
3458
  }
3331
3459
  /**
3332
- * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the account\'s storage allowance, and a full allowance is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. To upload the file for one of your managed users, send `managed_user_id` (Widgetic\'s id for the user) or `managed_user_external_id` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `context_type`, `source`, `widget_id` and `conversation_id` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional. A partner\'s own uploads (with its API key) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
3460
+ * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the storage of the workspace it is uploaded in, and a full workspace is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. For a person signed in on widgetic.com that is the workspace they are currently working in: inside a team, the team\'s shared storage; inside their own workspace, their own allowance. An organization API key, and a Shopify store\'s session, always work in that team\'s shared storage. A personal API key or an SDK token always uses the account\'s own allowance. The two never add up and one never lends room to the other. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. When the full storage is a Shopify store\'s team\'s, extra storage cannot be added through Shopify yet, so the message ends by saying so and what to do instead: delete files, or contact support. On a Solo plan it names the Teams plan (which holds more) and `error.details.planPageUrl` is the address of the plan page on Shopify. `error.suggestedAction` says the same in a few words, instead of the usual \"upgrade your storage plan\". Any other team, and a person\'s own workspace, get the shorter message. To upload the file for one of your managed users, send `managed_user_id` (Widgetic\'s id for the user) or `managed_user_external_id` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `context_type`, `source`, `widget_id` and `conversation_id` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional, and it does not depend on how the file arrives. A partner\'s own uploads (with its API key, an SDK token, or from the Widgetic website, the resumable route and the media library alike) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
3333
3461
  * Upload a file
3334
3462
  */
3335
3463
  uploadsPostRaw(requestParameters, initOverrides) {
@@ -3387,7 +3515,7 @@ export class PartnerApi extends runtime.BaseAPI {
3387
3515
  });
3388
3516
  }
3389
3517
  /**
3390
- * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the account\'s storage allowance, and a full allowance is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. To upload the file for one of your managed users, send `managed_user_id` (Widgetic\'s id for the user) or `managed_user_external_id` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `context_type`, `source`, `widget_id` and `conversation_id` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional. A partner\'s own uploads (with its API key) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
3518
+ * Stores one file for the account and returns its public address. This is how a user\'s own images, video and PDFs reach a widget\'s content. Send a `multipart/form-data` request with the file in the field named `file`. The file counts against the storage of the workspace it is uploaded in, and a full workspace is refused with 413 and `QUOTA_STORAGE_EXCEEDED`. For a person signed in on widgetic.com that is the workspace they are currently working in: inside a team, the team\'s shared storage; inside their own workspace, their own allowance. An organization API key, and a Shopify store\'s session, always work in that team\'s shared storage. A personal API key or an SDK token always uses the account\'s own allowance. The two never add up and one never lends room to the other. A file over the size limit is refused with 413 and `UPLOAD_TOO_LARGE`, and a type that is not accepted with 415 and `UPLOAD_UNSUPPORTED_TYPE`; `uploadsLimitsGet` lists the size limit and the accepted types. When the full storage is a Shopify store\'s team\'s, extra storage cannot be added through Shopify yet, so the message ends by saying so and what to do instead: delete files, or contact support. On a Solo plan it names the Teams plan (which holds more) and `error.details.planPageUrl` is the address of the plan page on Shopify. `error.suggestedAction` says the same in a few words, instead of the usual \"upgrade your storage plan\". Any other team, and a person\'s own workspace, get the shorter message. To upload the file for one of your managed users, send `managed_user_id` (Widgetic\'s id for the user) or `managed_user_external_id` (your own identifier for the user), not both. The file stays in your account and counts against its allowance; the tag lets you list one user\'s files with `uploadsGet`. The managed user must be yours and active: one that is not yours, or does not exist, is refused with 404 and `MANAGED_USER_NOT_FOUND`, and one that is switched off with 409 and `MANAGED_USER_INACTIVE`, before the file is stored. The tag is set here and does not change afterwards. Called with an editor session (`createManagedUserEditorSession`), the file is always filed for the session\'s own managed user and is always media for widget content: naming another managed user is refused with 403 and `MANAGED_USER_SESSION_MISMATCH`, and `context_type`, `source`, `widget_id` and `conversation_id` are ignored. A full storage allowance is refused with the same 413 and `QUOTA_STORAGE_EXCEEDED`, but the message only says that it is not available right now (not how much is stored: that is the partner\'s business) and `error.details.limit` is `storage`. An account that administers a partner with a storage destination (`setPartnerStorageDestination`) has its files stored in the partner\'s own bucket instead. Such a file takes none of the allowance, its `url` is served from the partner\'s public address, and its `storage_key` is the key in the partner\'s bucket. The file is never stored with Widgetic instead: when the destination cannot be used the upload is refused with 503 and `STORAGE_DESTINATION_UNAVAILABLE`, and when the partner\'s storage rejects the file with 502 and `STORAGE_DESTINATION_WRITE_FAILED`. Partner storage is not optional, and it does not depend on how the file arrives. A partner\'s own uploads (with its API key, an SDK token, or from the Widgetic website, the resumable route and the media library alike) and the uploads of its customers\' editor sessions are kept in the partner\'s own storage or not at all, so a partner with no destination (or one that removed it after the session was made) has them refused with 409 and `PARTNER_STORAGE_REQUIRED`; they are never stored with Widgetic. An editor session\'s browser is only told that the feature is not available right now.
3391
3519
  * Upload a file
3392
3520
  */
3393
3521
  uploadsPost(requestParameters, initOverrides) {
@@ -35,12 +35,12 @@ export interface UpdatePartnerCustomizationOperationRequest {
35
35
  */
36
36
  export declare class PartnerCustomizationsApi extends runtime.BaseAPI {
37
37
  /**
38
- * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the three overrides (custom_price, custom_credits, custom_storage_gb) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. A partner that already has a contract gets a 409.
38
+ * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the overrides (custom_price, custom_credits, credit_price_usd) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. `custom_storage_gb` is one of them since it was retired: a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage. A partner that already has a contract gets a 409.
39
39
  * Create partner customization
40
40
  */
41
41
  createPartnerCustomizationRaw(requestParameters: CreatePartnerCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerCustomization>>;
42
42
  /**
43
- * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the three overrides (custom_price, custom_credits, custom_storage_gb) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. A partner that already has a contract gets a 409.
43
+ * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the overrides (custom_price, custom_credits, credit_price_usd) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. `custom_storage_gb` is one of them since it was retired: a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage. A partner that already has a contract gets a 409.
44
44
  * Create partner customization
45
45
  */
46
46
  createPartnerCustomization(requestParameters: CreatePartnerCustomizationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerCustomization>;
@@ -75,12 +75,12 @@ export declare class PartnerCustomizationsApi extends runtime.BaseAPI {
75
75
  */
76
76
  listPartnerCustomizations(requestParameters?: ListPartnerCustomizationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListPartnerCustomizations200Response>;
77
77
  /**
78
- * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused. At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
78
+ * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused, and so is the retired `custom_storage_gb` (a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage). At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
79
79
  * Update partner customization
80
80
  */
81
81
  updatePartnerCustomizationRaw(requestParameters: UpdatePartnerCustomizationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PartnerCustomization>>;
82
82
  /**
83
- * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused. At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
83
+ * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused, and so is the retired `custom_storage_gb` (a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage). At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
84
84
  * Update partner customization
85
85
  */
86
86
  updatePartnerCustomization(requestParameters: UpdatePartnerCustomizationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PartnerCustomization>;
@@ -27,7 +27,7 @@ import { ListPartnerCustomizations200ResponseFromJSON, PartnerCustomizationFromJ
27
27
  */
28
28
  export class PartnerCustomizationsApi extends runtime.BaseAPI {
29
29
  /**
30
- * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the three overrides (custom_price, custom_credits, custom_storage_gb) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. A partner that already has a contract gets a 409.
30
+ * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the overrides (custom_price, custom_credits, credit_price_usd) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. `custom_storage_gb` is one of them since it was retired: a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage. A partner that already has a contract gets a 409.
31
31
  * Create partner customization
32
32
  */
33
33
  createPartnerCustomizationRaw(requestParameters, initOverrides) {
@@ -59,7 +59,7 @@ export class PartnerCustomizationsApi extends runtime.BaseAPI {
59
59
  });
60
60
  }
61
61
  /**
62
- * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the three overrides (custom_price, custom_credits, custom_storage_gb) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. A partner that already has a contract gets a 409.
62
+ * Creates a new partner customization for a partner. Billing admin only. Send the terms in snake_case. Terms the body leaves out start at the defaults (monthly billing, a 12-month minimum commitment, a 99.9% support SLA) and the overrides (custom_price, custom_credits, credit_price_usd) stay unset, which means the standard plan\'s values apply. A key this endpoint does not know is refused. `custom_storage_gb` is one of them since it was retired: a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage. A partner that already has a contract gets a 409.
63
63
  * Create partner customization
64
64
  */
65
65
  createPartnerCustomization(requestParameters, initOverrides) {
@@ -185,7 +185,7 @@ export class PartnerCustomizationsApi extends runtime.BaseAPI {
185
185
  });
186
186
  }
187
187
  /**
188
- * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused. At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
188
+ * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused, and so is the retired `custom_storage_gb` (a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage). At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
189
189
  * Update partner customization
190
190
  */
191
191
  updatePartnerCustomizationRaw(requestParameters, initOverrides) {
@@ -217,7 +217,7 @@ export class PartnerCustomizationsApi extends runtime.BaseAPI {
217
217
  });
218
218
  }
219
219
  /**
220
- * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused. At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
220
+ * Updates an existing partner customization for a partner. Billing admin only. Send the terms to change in snake_case; a term the body leaves out keeps the value the contract already has (a term cannot be cleared through this endpoint). A key this endpoint does not know is refused, and so is the retired `custom_storage_gb` (a partner keeps its files in its own storage destination, so a contract includes no Widgetic storage). At least one term is required. Creating a contract is the POST\'s job: a partner without one gets a 404 here.
221
221
  * Update partner customization
222
222
  */
223
223
  updatePartnerCustomization(requestParameters, initOverrides) {