@widgetic/api-sdk 1.0.31 → 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 (308) 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/BillingApi.d.ts +44 -1
  7. package/dist/apis/BillingApi.js +127 -0
  8. package/dist/apis/CompositionsApi.d.ts +19 -15
  9. package/dist/apis/CompositionsApi.js +21 -14
  10. package/dist/apis/CreditsApi.d.ts +7 -7
  11. package/dist/apis/CreditsApi.js +5 -5
  12. package/dist/apis/OrganizationsApi.d.ts +35 -7
  13. package/dist/apis/OrganizationsApi.js +86 -6
  14. package/dist/apis/PartnerApi.d.ts +141 -36
  15. package/dist/apis/PartnerApi.js +333 -31
  16. package/dist/apis/PartnerCustomizationsApi.d.ts +4 -4
  17. package/dist/apis/PartnerCustomizationsApi.js +4 -4
  18. package/dist/apis/PartnersApi.d.ts +85 -67
  19. package/dist/apis/PartnersApi.js +198 -119
  20. package/dist/apis/PublicEmbedApi.d.ts +42 -3
  21. package/dist/apis/PublicEmbedApi.js +99 -2
  22. package/dist/apis/SubscriptionsApi.d.ts +2 -2
  23. package/dist/apis/SubscriptionsApi.js +2 -2
  24. package/dist/apis/UploadsApi.d.ts +4 -4
  25. package/dist/apis/UploadsApi.js +4 -4
  26. package/dist/apis/UsersApi.d.ts +4 -4
  27. package/dist/apis/UsersApi.js +4 -4
  28. package/dist/apis/index.d.ts +0 -4
  29. package/dist/apis/index.js +0 -4
  30. package/dist/esm/apis/AdminApi.d.ts +30 -46
  31. package/dist/esm/apis/AdminApi.js +54 -103
  32. package/dist/esm/apis/AdminBillingApi.d.ts +2 -2
  33. package/dist/esm/apis/AdminBillingApi.js +2 -2
  34. package/dist/esm/apis/BillingApi.d.ts +44 -1
  35. package/dist/esm/apis/BillingApi.js +128 -1
  36. package/dist/esm/apis/CompositionsApi.d.ts +19 -15
  37. package/dist/esm/apis/CompositionsApi.js +22 -15
  38. package/dist/esm/apis/CreditsApi.d.ts +7 -7
  39. package/dist/esm/apis/CreditsApi.js +6 -6
  40. package/dist/esm/apis/OrganizationsApi.d.ts +35 -7
  41. package/dist/esm/apis/OrganizationsApi.js +87 -7
  42. package/dist/esm/apis/PartnerApi.d.ts +141 -36
  43. package/dist/esm/apis/PartnerApi.js +334 -32
  44. package/dist/esm/apis/PartnerCustomizationsApi.d.ts +4 -4
  45. package/dist/esm/apis/PartnerCustomizationsApi.js +4 -4
  46. package/dist/esm/apis/PartnersApi.d.ts +85 -67
  47. package/dist/esm/apis/PartnersApi.js +198 -119
  48. package/dist/esm/apis/PublicEmbedApi.d.ts +42 -3
  49. package/dist/esm/apis/PublicEmbedApi.js +100 -3
  50. package/dist/esm/apis/SubscriptionsApi.d.ts +2 -2
  51. package/dist/esm/apis/SubscriptionsApi.js +2 -2
  52. package/dist/esm/apis/UploadsApi.d.ts +4 -4
  53. package/dist/esm/apis/UploadsApi.js +4 -4
  54. package/dist/esm/apis/UsersApi.d.ts +4 -4
  55. package/dist/esm/apis/UsersApi.js +4 -4
  56. package/dist/esm/apis/index.d.ts +0 -4
  57. package/dist/esm/apis/index.js +0 -4
  58. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  59. package/dist/esm/models/BillingUsersUserIdStorageCancelPackPostRequest.js +43 -0
  60. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  61. package/dist/esm/models/BillingUsersUserIdStorageGet200Response.js +44 -0
  62. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  63. package/dist/esm/models/BillingUsersUserIdStorageGet200ResponseData.js +42 -0
  64. package/dist/esm/models/Composition.d.ts +12 -0
  65. package/dist/esm/models/Composition.js +2 -0
  66. package/dist/esm/models/CompositionDataSource.d.ts +41 -0
  67. package/dist/esm/models/CompositionDataSource.js +47 -0
  68. package/dist/esm/models/CompositionEntriesReading.d.ts +20 -4
  69. package/dist/esm/models/CompositionEntriesReading.js +3 -0
  70. package/dist/esm/models/CompositionEntryAggregateTally.d.ts +15 -8
  71. package/dist/esm/models/CompositionEntryAggregatesBlock.d.ts +10 -0
  72. package/dist/esm/models/CompositionEntryItem.d.ts +4 -1
  73. package/dist/esm/models/CompositionEntryItemsMeta.d.ts +8 -0
  74. package/dist/esm/models/ConvertSoloToTeams200Response.d.ts +39 -0
  75. package/dist/esm/models/ConvertSoloToTeams200Response.js +44 -0
  76. package/dist/esm/models/CreatePartnerRequest.d.ts +7 -0
  77. package/dist/esm/models/CreatePartnerRequest.js +2 -0
  78. package/dist/esm/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  79. package/dist/esm/models/DeleteCompositionDataSource200Response.js +43 -0
  80. package/dist/esm/models/GetCompositionContentSchema200Response.d.ts +2 -2
  81. package/dist/esm/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  82. package/dist/esm/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  83. package/dist/esm/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  84. package/dist/esm/models/GetPartnerCreditTransactions200Response.js +44 -0
  85. package/dist/esm/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  86. package/dist/esm/models/GetPublicCompositionEmbed200Response.js +67 -0
  87. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  88. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDataSource.js +43 -0
  89. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  90. package/dist/esm/models/GetPublicCompositionEmbed200ResponseDirect.js +45 -0
  91. package/dist/esm/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  92. package/dist/esm/models/GetPublicCompositionEmbed403Response.js +48 -0
  93. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  94. package/dist/esm/models/GetPublicCompositionEmbed403ResponseDetails.js +50 -0
  95. package/dist/esm/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  96. package/dist/esm/models/GetPublicCompositionEmbed404Response.js +51 -0
  97. package/dist/esm/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  98. package/dist/esm/models/GetPublicCompositionEmbed429Response.js +43 -0
  99. package/dist/esm/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  100. package/dist/esm/models/IssuePartnerInvoiceRequest.js +2 -0
  101. package/dist/esm/models/IssuedPartnerInvoice.d.ts +6 -0
  102. package/dist/esm/models/IssuedPartnerInvoice.js +4 -0
  103. package/dist/esm/models/ManagedUserEntryItem.d.ts +4 -1
  104. package/dist/esm/models/MyPartner.d.ts +7 -0
  105. package/dist/esm/models/MyPartner.js +4 -0
  106. package/dist/esm/models/MyPartners.d.ts +9 -1
  107. package/dist/esm/models/MyPartners.js +6 -1
  108. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  109. package/dist/esm/models/OrganizationsOrgIdBillingGet200ResponseData.js +9 -0
  110. package/dist/esm/models/Partner.d.ts +7 -0
  111. package/dist/esm/models/Partner.js +2 -0
  112. package/dist/esm/models/PartnerActivation.d.ts +1 -1
  113. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  114. package/dist/esm/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  115. package/dist/esm/models/PartnerBillingProfile.d.ts +1 -1
  116. package/dist/esm/models/PartnerContract.d.ts +15 -3
  117. package/dist/esm/models/PartnerContract.js +6 -2
  118. package/dist/esm/models/PartnerCustomization.d.ts +15 -3
  119. package/dist/esm/models/PartnerCustomization.js +6 -2
  120. package/dist/esm/models/PartnerDetails.d.ts +7 -0
  121. package/dist/esm/models/PartnerDetails.js +2 -0
  122. package/dist/esm/models/PartnerEntryContextSecret.d.ts +39 -0
  123. package/dist/esm/models/PartnerEntryContextSecret.js +48 -0
  124. package/dist/esm/models/PartnerEntryContextSigning.d.ts +62 -0
  125. package/dist/esm/models/PartnerEntryContextSigning.js +63 -0
  126. package/dist/esm/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  127. package/dist/esm/models/PartnerExtraCreditsInvoice.js +87 -0
  128. package/dist/esm/models/PartnerInvoiceSchedule.d.ts +66 -0
  129. package/dist/esm/models/PartnerInvoiceSchedule.js +67 -0
  130. package/dist/esm/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  131. package/dist/esm/models/PartnerInvoiceScheduleContract.js +67 -0
  132. package/dist/esm/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  133. package/dist/esm/models/PartnerInvoiceScheduleNext.js +91 -0
  134. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  135. package/dist/esm/models/PartnerInvoiceScheduleNextPeriod.js +47 -0
  136. package/dist/esm/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  137. package/dist/esm/models/PartnerInvoiceScheduleOverdue.js +47 -0
  138. package/dist/esm/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  139. package/dist/esm/models/PartnerInvoiceSchedulePeriod.js +91 -0
  140. package/dist/esm/models/PartnerNotification.d.ts +1 -1
  141. package/dist/esm/models/PartnerNotificationEventType.d.ts +2 -0
  142. package/dist/esm/models/PartnerNotificationEventType.js +2 -0
  143. package/dist/esm/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  144. package/dist/esm/models/PartnerNotificationTestEventRequest.js +44 -0
  145. package/dist/esm/models/PartnerNotificationTestEventResult.d.ts +50 -0
  146. package/dist/esm/models/PartnerNotificationTestEventResult.js +53 -0
  147. package/dist/esm/models/PartnerUpdateResult.d.ts +8 -16
  148. package/dist/esm/models/PartnerUpdateResult.js +2 -5
  149. package/dist/esm/models/PartnerWithWarnings.d.ts +7 -0
  150. package/dist/esm/models/PartnerWithWarnings.js +2 -0
  151. package/dist/esm/models/PersonalExtraStorage.d.ts +92 -0
  152. package/dist/esm/models/PersonalExtraStorage.js +83 -0
  153. package/dist/esm/models/PersonalExtraStorageBlock.d.ts +56 -0
  154. package/dist/esm/models/PersonalExtraStorageBlock.js +57 -0
  155. package/dist/esm/models/PersonalStorage.d.ts +80 -0
  156. package/dist/esm/models/PersonalStorage.js +73 -0
  157. package/dist/esm/models/PersonalStoragePack.d.ts +100 -0
  158. package/dist/esm/models/PersonalStoragePack.js +84 -0
  159. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  160. package/dist/esm/models/PostPublicCompositionEmbedStatus200Response.js +44 -0
  161. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  162. package/dist/esm/models/PostPublicCompositionEmbedStatus200ResponseData.js +51 -0
  163. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  164. package/dist/esm/models/PostPublicCompositionEmbedStatus429Response.js +41 -0
  165. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  166. package/dist/esm/models/PostPublicCompositionEmbedStatusRequest.js +43 -0
  167. package/dist/esm/models/PublicCompositionEntryRequest.d.ts +1 -1
  168. package/dist/esm/models/RequestExtraCredits.d.ts +33 -0
  169. package/dist/esm/models/RequestExtraCredits.js +43 -0
  170. package/dist/esm/models/StorageChange.d.ts +4 -3
  171. package/dist/esm/models/SurfaceConversionResult.d.ts +85 -0
  172. package/dist/esm/models/SurfaceConversionResult.js +76 -0
  173. package/dist/esm/models/SurfaceConversionResultSubscription.d.ts +82 -0
  174. package/dist/esm/models/SurfaceConversionResultSubscription.js +62 -0
  175. package/dist/esm/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  176. package/dist/esm/models/UpdatePartnerCustomizationRequest.js +2 -2
  177. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  178. package/dist/esm/models/UpdatePartnerEntryContextSigningRequest.js +43 -0
  179. package/dist/esm/models/UpdatePartnerRequest.d.ts +7 -24
  180. package/dist/esm/models/UpdatePartnerRequest.js +2 -8
  181. package/dist/esm/models/index.d.ts +37 -86
  182. package/dist/esm/models/index.js +37 -86
  183. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.d.ts +40 -0
  184. package/dist/models/BillingUsersUserIdStorageCancelPackPostRequest.js +50 -0
  185. package/dist/models/BillingUsersUserIdStorageGet200Response.d.ts +39 -0
  186. package/dist/models/BillingUsersUserIdStorageGet200Response.js +51 -0
  187. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.d.ts +33 -0
  188. package/dist/models/BillingUsersUserIdStorageGet200ResponseData.js +49 -0
  189. package/dist/models/Composition.d.ts +12 -0
  190. package/dist/models/Composition.js +2 -0
  191. package/dist/models/CompositionDataSource.d.ts +41 -0
  192. package/dist/models/CompositionDataSource.js +54 -0
  193. package/dist/models/CompositionEntriesReading.d.ts +20 -4
  194. package/dist/models/CompositionEntriesReading.js +3 -0
  195. package/dist/models/CompositionEntryAggregateTally.d.ts +15 -8
  196. package/dist/models/CompositionEntryAggregatesBlock.d.ts +10 -0
  197. package/dist/models/CompositionEntryItem.d.ts +4 -1
  198. package/dist/models/CompositionEntryItemsMeta.d.ts +8 -0
  199. package/dist/models/ConvertSoloToTeams200Response.d.ts +39 -0
  200. package/dist/models/ConvertSoloToTeams200Response.js +51 -0
  201. package/dist/models/CreatePartnerRequest.d.ts +7 -0
  202. package/dist/models/CreatePartnerRequest.js +2 -0
  203. package/dist/models/DeleteCompositionDataSource200Response.d.ts +32 -0
  204. package/dist/models/DeleteCompositionDataSource200Response.js +50 -0
  205. package/dist/models/GetCompositionContentSchema200Response.d.ts +2 -2
  206. package/dist/models/GetOrganizationPricing200ResponseDataStorage.d.ts +3 -2
  207. package/dist/models/GetOrganizationStorageUsage200ResponseDataStorageUsage.d.ts +5 -5
  208. package/dist/models/GetPartnerCreditTransactions200Response.d.ts +39 -0
  209. package/dist/models/GetPartnerCreditTransactions200Response.js +51 -0
  210. package/dist/models/GetPublicCompositionEmbed200Response.d.ts +106 -0
  211. package/dist/models/GetPublicCompositionEmbed200Response.js +74 -0
  212. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.d.ts +38 -0
  213. package/dist/models/GetPublicCompositionEmbed200ResponseDataSource.js +50 -0
  214. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.d.ts +44 -0
  215. package/dist/models/GetPublicCompositionEmbed200ResponseDirect.js +52 -0
  216. package/dist/models/GetPublicCompositionEmbed403Response.d.ts +51 -0
  217. package/dist/models/GetPublicCompositionEmbed403Response.js +55 -0
  218. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.d.ts +46 -0
  219. package/dist/models/GetPublicCompositionEmbed403ResponseDetails.js +58 -0
  220. package/dist/models/GetPublicCompositionEmbed404Response.d.ts +47 -0
  221. package/dist/models/GetPublicCompositionEmbed404Response.js +59 -0
  222. package/dist/models/GetPublicCompositionEmbed429Response.d.ts +38 -0
  223. package/dist/models/GetPublicCompositionEmbed429Response.js +50 -0
  224. package/dist/models/IssuePartnerInvoiceRequest.d.ts +14 -1
  225. package/dist/models/IssuePartnerInvoiceRequest.js +2 -0
  226. package/dist/models/IssuedPartnerInvoice.d.ts +6 -0
  227. package/dist/models/IssuedPartnerInvoice.js +4 -0
  228. package/dist/models/ManagedUserEntryItem.d.ts +4 -1
  229. package/dist/models/MyPartner.d.ts +7 -0
  230. package/dist/models/MyPartner.js +4 -0
  231. package/dist/models/MyPartners.d.ts +9 -1
  232. package/dist/models/MyPartners.js +6 -1
  233. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.d.ts +25 -5
  234. package/dist/models/OrganizationsOrgIdBillingGet200ResponseData.js +10 -0
  235. package/dist/models/Partner.d.ts +7 -0
  236. package/dist/models/Partner.js +2 -0
  237. package/dist/models/PartnerActivation.d.ts +1 -1
  238. package/dist/models/PartnerBillingOverviewOperationalCredits.d.ts +0 -14
  239. package/dist/models/PartnerBillingOverviewOperationalCredits.js +0 -4
  240. package/dist/models/PartnerBillingProfile.d.ts +1 -1
  241. package/dist/models/PartnerContract.d.ts +15 -3
  242. package/dist/models/PartnerContract.js +6 -2
  243. package/dist/models/PartnerCustomization.d.ts +15 -3
  244. package/dist/models/PartnerCustomization.js +6 -2
  245. package/dist/models/PartnerDetails.d.ts +7 -0
  246. package/dist/models/PartnerDetails.js +2 -0
  247. package/dist/models/PartnerEntryContextSecret.d.ts +39 -0
  248. package/dist/models/PartnerEntryContextSecret.js +55 -0
  249. package/dist/models/PartnerEntryContextSigning.d.ts +62 -0
  250. package/dist/models/PartnerEntryContextSigning.js +70 -0
  251. package/dist/models/PartnerExtraCreditsInvoice.d.ts +98 -0
  252. package/dist/models/PartnerExtraCreditsInvoice.js +94 -0
  253. package/dist/models/PartnerInvoiceSchedule.d.ts +66 -0
  254. package/dist/models/PartnerInvoiceSchedule.js +74 -0
  255. package/dist/models/PartnerInvoiceScheduleContract.d.ts +68 -0
  256. package/dist/models/PartnerInvoiceScheduleContract.js +74 -0
  257. package/dist/models/PartnerInvoiceScheduleNext.d.ts +94 -0
  258. package/dist/models/PartnerInvoiceScheduleNext.js +99 -0
  259. package/dist/models/PartnerInvoiceScheduleNextPeriod.d.ts +38 -0
  260. package/dist/models/PartnerInvoiceScheduleNextPeriod.js +54 -0
  261. package/dist/models/PartnerInvoiceScheduleOverdue.d.ts +38 -0
  262. package/dist/models/PartnerInvoiceScheduleOverdue.js +54 -0
  263. package/dist/models/PartnerInvoiceSchedulePeriod.d.ts +101 -0
  264. package/dist/models/PartnerInvoiceSchedulePeriod.js +99 -0
  265. package/dist/models/PartnerNotification.d.ts +1 -1
  266. package/dist/models/PartnerNotificationEventType.d.ts +2 -0
  267. package/dist/models/PartnerNotificationEventType.js +2 -0
  268. package/dist/models/PartnerNotificationTestEventRequest.d.ts +33 -0
  269. package/dist/models/PartnerNotificationTestEventRequest.js +51 -0
  270. package/dist/models/PartnerNotificationTestEventResult.d.ts +50 -0
  271. package/dist/models/PartnerNotificationTestEventResult.js +60 -0
  272. package/dist/models/PartnerUpdateResult.d.ts +8 -16
  273. package/dist/models/PartnerUpdateResult.js +2 -5
  274. package/dist/models/PartnerWithWarnings.d.ts +7 -0
  275. package/dist/models/PartnerWithWarnings.js +2 -0
  276. package/dist/models/PersonalExtraStorage.d.ts +92 -0
  277. package/dist/models/PersonalExtraStorage.js +91 -0
  278. package/dist/models/PersonalExtraStorageBlock.d.ts +56 -0
  279. package/dist/models/PersonalExtraStorageBlock.js +65 -0
  280. package/dist/models/PersonalStorage.d.ts +80 -0
  281. package/dist/models/PersonalStorage.js +80 -0
  282. package/dist/models/PersonalStoragePack.d.ts +100 -0
  283. package/dist/models/PersonalStoragePack.js +92 -0
  284. package/dist/models/PostPublicCompositionEmbedStatus200Response.d.ts +39 -0
  285. package/dist/models/PostPublicCompositionEmbedStatus200Response.js +51 -0
  286. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.d.ts +45 -0
  287. package/dist/models/PostPublicCompositionEmbedStatus200ResponseData.js +59 -0
  288. package/dist/models/PostPublicCompositionEmbedStatus429Response.d.ts +32 -0
  289. package/dist/models/PostPublicCompositionEmbedStatus429Response.js +48 -0
  290. package/dist/models/PostPublicCompositionEmbedStatusRequest.d.ts +32 -0
  291. package/dist/models/PostPublicCompositionEmbedStatusRequest.js +50 -0
  292. package/dist/models/PublicCompositionEntryRequest.d.ts +1 -1
  293. package/dist/models/RequestExtraCredits.d.ts +33 -0
  294. package/dist/models/RequestExtraCredits.js +50 -0
  295. package/dist/models/StorageChange.d.ts +4 -3
  296. package/dist/models/SurfaceConversionResult.d.ts +85 -0
  297. package/dist/models/SurfaceConversionResult.js +84 -0
  298. package/dist/models/SurfaceConversionResultSubscription.d.ts +82 -0
  299. package/dist/models/SurfaceConversionResultSubscription.js +70 -0
  300. package/dist/models/UpdatePartnerCustomizationRequest.d.ts +3 -3
  301. package/dist/models/UpdatePartnerCustomizationRequest.js +2 -2
  302. package/dist/models/UpdatePartnerEntryContextSigningRequest.d.ts +32 -0
  303. package/dist/models/UpdatePartnerEntryContextSigningRequest.js +50 -0
  304. package/dist/models/UpdatePartnerRequest.d.ts +7 -24
  305. package/dist/models/UpdatePartnerRequest.js +2 -8
  306. package/dist/models/index.d.ts +37 -86
  307. package/dist/models/index.js +37 -86
  308. package/package.json +3 -2
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AcceptOrganizationInvitation200Response, AddDomainRequest, AddOrganizationDomain201Response, ApiKey, CancelStoragePackRequest, CleanupOrphanedInvitations200Response, CleanupOrphanedInvitationsRequest, CreateOrganization201Response, CreateOrganizationApiKeyRequest, CreateOrganizationRequest, CreateOrganizationTranslation201Response, CreateOrganizationTranslationRequest, DeleteOrganizationDomain200Response, GetBillingImpactReport200Response, GetComprehensiveReport200Response, GetCurrentWorkspaceContext200Response, GetMemberStatusReport200Response, GetMemberTrendReport200Response, GetOrganizationApiKeyUsageLogs200Response, GetOrganizationCompositions200Response, GetOrganizationConfig200Response, GetOrganizationMembers200Response, GetOrganizationPricing200Response, GetOrganizationStorageUsage200Response, GetOrganizationWidgets200Response, GetStoragePacks200Response, GetUserOrganization200Response, GetUserOrganizations200Response, InviteOrganizationMember201Response, InviteOrganizationMemberRequest, ListOrganizationTranslations200Response, OrganizationDomain, OrganizationsOrgIdBillingCancelPostRequest, OrganizationsOrgIdBillingGet200Response, OrganizationsOrgIdBillingInvoicePreviewGet200Response, OrganizationsOrgIdBillingMembersUpdatePostRequest, OrganizationsOrgIdBillingPaymentMethodsGet200Response, OrganizationsOrgIdBillingPaymentMethodsPost200Response, OrganizationsOrgIdBillingPaymentMethodsPostRequest, OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response, OrganizationsOrgIdBillingPortalPost200Response, OrganizationsOrgIdBillingPortalPostRequest, OrganizationsOrgIdBillingUpgradePost200Response, OrganizationsOrgIdBillingUpgradePostRequest, OrganizationsOrgIdBillingYearlyMembersAddPostRequest, OrganizationsOrgIdBillingYearlyMembersRemovePostRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, OrganizationsOrgIdBillingYearlySubscriptionPostRequest, PurchaseStoragePack200Response, PurchaseStoragePackRequest, ReactivateMemberRequest, SuspendMemberRequest, SwitchToOrganizationWorkspace200Response, SwitchToOrganizationWorkspaceRequest, SwitchToPersonalWorkspace200Response, TestEmailConfigurationRequest, TransferOrganizationOwnershipRequest, Translation, UpdateDomainRequest, UpdateMemberAccessRequest, UpdateMemberRole200Response, UpdateMemberRoleRequest, UpdateOrganizationApiKeyRequest, UpdateOrganizationRequest, UpdateOrganizationTranslationStatusRequest, UsersSendFeedbackPost200Response, ValidateOrganization200Response, ValidateOrganizationRequest } from '../models/index';
13
+ import type { AcceptOrganizationInvitation200Response, AddDomainRequest, AddOrganizationDomain201Response, ApiKey, CancelStoragePackRequest, CleanupOrphanedInvitations200Response, CleanupOrphanedInvitationsRequest, ConvertSoloToTeams200Response, CreateOrganization201Response, CreateOrganizationApiKeyRequest, CreateOrganizationRequest, CreateOrganizationTranslation201Response, CreateOrganizationTranslationRequest, DeleteOrganizationDomain200Response, GetBillingImpactReport200Response, GetComprehensiveReport200Response, GetCurrentWorkspaceContext200Response, GetMemberStatusReport200Response, GetMemberTrendReport200Response, GetOrganizationApiKeyUsageLogs200Response, GetOrganizationCompositions200Response, GetOrganizationConfig200Response, GetOrganizationMembers200Response, GetOrganizationPricing200Response, GetOrganizationStorageUsage200Response, GetOrganizationWidgets200Response, GetStoragePacks200Response, GetUserOrganization200Response, GetUserOrganizations200Response, InviteOrganizationMember201Response, InviteOrganizationMemberRequest, ListOrganizationTranslations200Response, OrganizationDomain, OrganizationsOrgIdBillingCancelPostRequest, OrganizationsOrgIdBillingGet200Response, OrganizationsOrgIdBillingInvoicePreviewGet200Response, OrganizationsOrgIdBillingMembersUpdatePostRequest, OrganizationsOrgIdBillingPaymentMethodsGet200Response, OrganizationsOrgIdBillingPaymentMethodsPost200Response, OrganizationsOrgIdBillingPaymentMethodsPostRequest, OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response, OrganizationsOrgIdBillingPortalPost200Response, OrganizationsOrgIdBillingPortalPostRequest, OrganizationsOrgIdBillingUpgradePost200Response, OrganizationsOrgIdBillingUpgradePostRequest, OrganizationsOrgIdBillingYearlyMembersAddPostRequest, OrganizationsOrgIdBillingYearlyMembersRemovePostRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, OrganizationsOrgIdBillingYearlySubscriptionPostRequest, PurchaseStoragePack200Response, PurchaseStoragePackRequest, ReactivateMemberRequest, SuspendMemberRequest, SwitchToOrganizationWorkspace200Response, SwitchToOrganizationWorkspaceRequest, SwitchToPersonalWorkspace200Response, TestEmailConfigurationRequest, TransferOrganizationOwnershipRequest, Translation, UpdateDomainRequest, UpdateMemberAccessRequest, UpdateMemberRole200Response, UpdateMemberRoleRequest, UpdateOrganizationApiKeyRequest, UpdateOrganizationRequest, UpdateOrganizationTranslationStatusRequest, UsersSendFeedbackPost200Response, ValidateOrganization200Response, ValidateOrganizationRequest } from '../models/index';
14
14
  export interface AcceptOrganizationInvitationRequest {
15
15
  orgId: string;
16
16
  invitationId: string;
@@ -31,6 +31,14 @@ export interface CancelStoragePackOperationRequest {
31
31
  export interface CleanupOrphanedInvitationsOperationRequest {
32
32
  cleanupOrphanedInvitationsRequest?: CleanupOrphanedInvitationsRequest;
33
33
  }
34
+ export interface ConvertSoloToTeamsRequest {
35
+ orgId: string;
36
+ idempotencyKey?: string;
37
+ }
38
+ export interface ConvertTeamsToSoloRequest {
39
+ orgId: string;
40
+ idempotencyKey?: string;
41
+ }
34
42
  export interface CreateOrganizationOperationRequest {
35
43
  createOrganizationRequest: CreateOrganizationRequest;
36
44
  idempotencyKey?: string;
@@ -324,6 +332,26 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
324
332
  * Cleanup Orphaned Invitations
325
333
  */
326
334
  cleanupOrphanedInvitations(requestParameters?: CleanupOrphanedInvitationsOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CleanupOrphanedInvitations200Response>;
335
+ /**
336
+ * Moves the subscription you already pay for (Solo) onto this organization as its Teams subscription, instead of subscribing to Teams as a second plan. It is the same Stripe subscription, repriced from Solo to Teams for as many seats as the organization has members (at least one), so there is no overlap of two plans and nothing is paid twice. **Extra storage comes with it.** The storage packs billed on the Solo subscription keep billing at the same price, as one more line on the Teams subscription, and become part of the organization\'s shared storage pool. Files do not move: the files you stored in your personal workspace stay there, and the limit of your personal workspace becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **It is charged now.** What the Teams price comes to for the rest of the current period, less what is left of the Solo price you had already paid, is invoiced and collected on the subscription\'s payment method before anything changes. If the payment is not completed (for example a declined card) nothing is charged and nothing changes: the request is refused with 402 `PAYMENT_FAILED`. From the next period the subscription bills the Teams seats and the storage you already pay for. The Solo allowance of credits is retired and the Teams allowance of each member is granted, as when a subscription is moved by an administrator. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. A refused payment gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`). The subscription to convert has to be an `active` Solo subscription that Stripe bills, that is not set to end with the current period, and the organization must have no plan of its own. A Solo plan that is still in its free trial has nothing paid to carry over: subscribe to Teams directly with `POST /organizations/{orgId}/billing/upgrade`, which starts a new Teams subscription and ends the Solo one at the close of its period (storage packs bought on the Solo plan do not carry over that way). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
337
+ * Convert your Solo subscription into this organization\'s Teams subscription
338
+ */
339
+ convertSoloToTeamsRaw(requestParameters: ConvertSoloToTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConvertSoloToTeams200Response>>;
340
+ /**
341
+ * Moves the subscription you already pay for (Solo) onto this organization as its Teams subscription, instead of subscribing to Teams as a second plan. It is the same Stripe subscription, repriced from Solo to Teams for as many seats as the organization has members (at least one), so there is no overlap of two plans and nothing is paid twice. **Extra storage comes with it.** The storage packs billed on the Solo subscription keep billing at the same price, as one more line on the Teams subscription, and become part of the organization\'s shared storage pool. Files do not move: the files you stored in your personal workspace stay there, and the limit of your personal workspace becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **It is charged now.** What the Teams price comes to for the rest of the current period, less what is left of the Solo price you had already paid, is invoiced and collected on the subscription\'s payment method before anything changes. If the payment is not completed (for example a declined card) nothing is charged and nothing changes: the request is refused with 402 `PAYMENT_FAILED`. From the next period the subscription bills the Teams seats and the storage you already pay for. The Solo allowance of credits is retired and the Teams allowance of each member is granted, as when a subscription is moved by an administrator. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. A refused payment gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`). The subscription to convert has to be an `active` Solo subscription that Stripe bills, that is not set to end with the current period, and the organization must have no plan of its own. A Solo plan that is still in its free trial has nothing paid to carry over: subscribe to Teams directly with `POST /organizations/{orgId}/billing/upgrade`, which starts a new Teams subscription and ends the Solo one at the close of its period (storage packs bought on the Solo plan do not carry over that way). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
342
+ * Convert your Solo subscription into this organization\'s Teams subscription
343
+ */
344
+ convertSoloToTeams(requestParameters: ConvertSoloToTeamsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConvertSoloToTeams200Response>;
345
+ /**
346
+ * The way back from `POST /organizations/{orgId}/billing/convert-from-personal`: moves the Teams subscription of an organization that has only its owner in it onto the owner\'s personal account as a Solo subscription. It is the same Stripe subscription, repriced from Teams to Solo, so nothing is cancelled and re-bought. **Extra storage comes with it.** The storage packs billed on the Teams subscription keep billing at the same price, as one more line on the Solo subscription, and become part of your personal storage. Files do not move: what the organization holds stays in the organization, and the organization\'s storage becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **Nothing is charged or refunded now.** The part of the Teams price already paid for the rest of the current period, less the Solo price for it, is credited on the next invoice, as when a seat is removed. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`), and only when they are the account that pays for the subscription. The subscription has to be `active`, billed by Stripe and not set to end with the current period; the organization must have no member but its owner (409 `TEAM_HAS_OTHER_MEMBERS`: a Solo subscription is for one person, so remove the others first); and the owner must have no Solo subscription of their own (409 `TARGET_ALREADY_SUBSCRIBED`). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
347
+ * Convert this one-person organization\'s Teams subscription into your Solo subscription
348
+ */
349
+ convertTeamsToSoloRaw(requestParameters: ConvertTeamsToSoloRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConvertSoloToTeams200Response>>;
350
+ /**
351
+ * The way back from `POST /organizations/{orgId}/billing/convert-from-personal`: moves the Teams subscription of an organization that has only its owner in it onto the owner\'s personal account as a Solo subscription. It is the same Stripe subscription, repriced from Teams to Solo, so nothing is cancelled and re-bought. **Extra storage comes with it.** The storage packs billed on the Teams subscription keep billing at the same price, as one more line on the Solo subscription, and become part of your personal storage. Files do not move: what the organization holds stays in the organization, and the organization\'s storage becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **Nothing is charged or refunded now.** The part of the Teams price already paid for the rest of the current period, less the Solo price for it, is credited on the next invoice, as when a seat is removed. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`), and only when they are the account that pays for the subscription. The subscription has to be `active`, billed by Stripe and not set to end with the current period; the organization must have no member but its owner (409 `TEAM_HAS_OTHER_MEMBERS`: a Solo subscription is for one person, so remove the others first); and the owner must have no Solo subscription of their own (409 `TARGET_ALREADY_SUBSCRIBED`). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
352
+ * Convert this one-person organization\'s Teams subscription into your Solo subscription
353
+ */
354
+ convertTeamsToSolo(requestParameters: ConvertTeamsToSoloRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConvertSoloToTeams200Response>;
327
355
  /**
328
356
  * Creates a new organization for team collaboration. The authenticated user becomes the organization owner.
329
357
  * Create Organization
@@ -545,12 +573,12 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
545
573
  */
546
574
  getOrganizationProjectWidgets(requestParameters: GetOrganizationProjectWidgetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetOrganizationWidgets200Response>;
547
575
  /**
548
- * Retrieves the organization\'s shared storage pool and how much of it its members have used. The pool is the storage the Teams plan grants plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). An organization without a Teams subscription has no pool: its figures describe only the extra storage it has. All organization members can view storage usage.
576
+ * Retrieves the organization\'s shared storage space and how much of it its members have used. The space is the storage the plan grants (500 GB for an active Teams subscription, and never less than the 10 GB Free minimum) plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). Only files stored while working inside the organization count against it: what a member keeps in their own personal workspace is counted against their own allowance, and the two never add up. All organization members can view storage usage.
549
577
  * Get Organization Storage Usage
550
578
  */
551
579
  getOrganizationStorageUsageRaw(requestParameters: GetOrganizationStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetOrganizationStorageUsage200Response>>;
552
580
  /**
553
- * Retrieves the organization\'s shared storage pool and how much of it its members have used. The pool is the storage the Teams plan grants plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). An organization without a Teams subscription has no pool: its figures describe only the extra storage it has. All organization members can view storage usage.
581
+ * Retrieves the organization\'s shared storage space and how much of it its members have used. The space is the storage the plan grants (500 GB for an active Teams subscription, and never less than the 10 GB Free minimum) plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). Only files stored while working inside the organization count against it: what a member keeps in their own personal workspace is counted against their own allowance, and the two never add up. All organization members can view storage usage.
554
582
  * Get Organization Storage Usage
555
583
  */
556
584
  getOrganizationStorageUsage(requestParameters: GetOrganizationStorageUsageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetOrganizationStorageUsage200Response>;
@@ -737,12 +765,12 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
737
765
  */
738
766
  organizationsOrgIdBillingYearlyCreditsGet(requestParameters: OrganizationsOrgIdBillingYearlyCreditsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
739
767
  /**
740
- * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits.
768
+ * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits. The year\'s total (`totalAnnualPrice`) is the seats plus the extra storage billed on the contract (`storagePacksGb`, at the yearly price in `annualStoragePrice`), because both are items on the same yearly subscription.
741
769
  * Get yearly billing details
742
770
  */
743
771
  organizationsOrgIdBillingYearlyDetailsGetRaw(requestParameters: OrganizationsOrgIdBillingYearlyDetailsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>>;
744
772
  /**
745
- * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits.
773
+ * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits. The year\'s total (`totalAnnualPrice`) is the seats plus the extra storage billed on the contract (`storagePacksGb`, at the yearly price in `annualStoragePrice`), because both are items on the same yearly subscription.
746
774
  * Get yearly billing details
747
775
  */
748
776
  organizationsOrgIdBillingYearlyDetailsGet(requestParameters: OrganizationsOrgIdBillingYearlyDetailsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
@@ -787,12 +815,12 @@ export declare class OrganizationsApi extends runtime.BaseAPI {
787
815
  */
788
816
  organizationsOrgIdBillingYearlySubscriptionPost(requestParameters: OrganizationsOrgIdBillingYearlySubscriptionPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object>;
789
817
  /**
790
- * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`.
818
+ * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. A refused request gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`. Extra storage is not sold to an account that administers a partner (403 `PARTNER_STORAGE_NOT_SOLD`): the files of a partner account are kept in the partner\'s own storage destination and never use Widgetic storage, so there would be nothing for the storage to add to. Another admin of the team can buy it for the team.
791
819
  * Add Extra Storage
792
820
  */
793
821
  purchaseStoragePackRaw(requestParameters: PurchaseStoragePackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PurchaseStoragePack200Response>>;
794
822
  /**
795
- * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`.
823
+ * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. A refused request gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`. Extra storage is not sold to an account that administers a partner (403 `PARTNER_STORAGE_NOT_SOLD`): the files of a partner account are kept in the partner\'s own storage destination and never use Widgetic storage, so there would be nothing for the storage to add to. Another admin of the team can buy it for the team.
796
824
  * Add Extra Storage
797
825
  */
798
826
  purchaseStoragePack(requestParameters: PurchaseStoragePackOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PurchaseStoragePack200Response>;
@@ -232,6 +232,86 @@ class OrganizationsApi extends runtime.BaseAPI {
232
232
  return yield response.value();
233
233
  });
234
234
  }
235
+ /**
236
+ * Moves the subscription you already pay for (Solo) onto this organization as its Teams subscription, instead of subscribing to Teams as a second plan. It is the same Stripe subscription, repriced from Solo to Teams for as many seats as the organization has members (at least one), so there is no overlap of two plans and nothing is paid twice. **Extra storage comes with it.** The storage packs billed on the Solo subscription keep billing at the same price, as one more line on the Teams subscription, and become part of the organization\'s shared storage pool. Files do not move: the files you stored in your personal workspace stay there, and the limit of your personal workspace becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **It is charged now.** What the Teams price comes to for the rest of the current period, less what is left of the Solo price you had already paid, is invoiced and collected on the subscription\'s payment method before anything changes. If the payment is not completed (for example a declined card) nothing is charged and nothing changes: the request is refused with 402 `PAYMENT_FAILED`. From the next period the subscription bills the Teams seats and the storage you already pay for. The Solo allowance of credits is retired and the Teams allowance of each member is granted, as when a subscription is moved by an administrator. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. A refused payment gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`). The subscription to convert has to be an `active` Solo subscription that Stripe bills, that is not set to end with the current period, and the organization must have no plan of its own. A Solo plan that is still in its free trial has nothing paid to carry over: subscribe to Teams directly with `POST /organizations/{orgId}/billing/upgrade`, which starts a new Teams subscription and ends the Solo one at the close of its period (storage packs bought on the Solo plan do not carry over that way). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
237
+ * Convert your Solo subscription into this organization\'s Teams subscription
238
+ */
239
+ convertSoloToTeamsRaw(requestParameters, initOverrides) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ if (requestParameters['orgId'] == null) {
242
+ throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling convertSoloToTeams().');
243
+ }
244
+ const queryParameters = {};
245
+ const headerParameters = {};
246
+ if (requestParameters['idempotencyKey'] != null) {
247
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
248
+ }
249
+ if (this.configuration && this.configuration.accessToken) {
250
+ const token = this.configuration.accessToken;
251
+ const tokenString = yield token("apiKeyAuth", []);
252
+ if (tokenString) {
253
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
254
+ }
255
+ }
256
+ const response = yield this.request({
257
+ path: `/organizations/{orgId}/billing/convert-from-personal`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
258
+ method: 'POST',
259
+ headers: headerParameters,
260
+ query: queryParameters,
261
+ }, initOverrides);
262
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConvertSoloToTeams200ResponseFromJSON)(jsonValue));
263
+ });
264
+ }
265
+ /**
266
+ * Moves the subscription you already pay for (Solo) onto this organization as its Teams subscription, instead of subscribing to Teams as a second plan. It is the same Stripe subscription, repriced from Solo to Teams for as many seats as the organization has members (at least one), so there is no overlap of two plans and nothing is paid twice. **Extra storage comes with it.** The storage packs billed on the Solo subscription keep billing at the same price, as one more line on the Teams subscription, and become part of the organization\'s shared storage pool. Files do not move: the files you stored in your personal workspace stay there, and the limit of your personal workspace becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **It is charged now.** What the Teams price comes to for the rest of the current period, less what is left of the Solo price you had already paid, is invoiced and collected on the subscription\'s payment method before anything changes. If the payment is not completed (for example a declined card) nothing is charged and nothing changes: the request is refused with 402 `PAYMENT_FAILED`. From the next period the subscription bills the Teams seats and the storage you already pay for. The Solo allowance of credits is retired and the Teams allowance of each member is granted, as when a subscription is moved by an administrator. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. A refused payment gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`). The subscription to convert has to be an `active` Solo subscription that Stripe bills, that is not set to end with the current period, and the organization must have no plan of its own. A Solo plan that is still in its free trial has nothing paid to carry over: subscribe to Teams directly with `POST /organizations/{orgId}/billing/upgrade`, which starts a new Teams subscription and ends the Solo one at the close of its period (storage packs bought on the Solo plan do not carry over that way). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
267
+ * Convert your Solo subscription into this organization\'s Teams subscription
268
+ */
269
+ convertSoloToTeams(requestParameters, initOverrides) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ const response = yield this.convertSoloToTeamsRaw(requestParameters, initOverrides);
272
+ return yield response.value();
273
+ });
274
+ }
275
+ /**
276
+ * The way back from `POST /organizations/{orgId}/billing/convert-from-personal`: moves the Teams subscription of an organization that has only its owner in it onto the owner\'s personal account as a Solo subscription. It is the same Stripe subscription, repriced from Teams to Solo, so nothing is cancelled and re-bought. **Extra storage comes with it.** The storage packs billed on the Teams subscription keep billing at the same price, as one more line on the Solo subscription, and become part of your personal storage. Files do not move: what the organization holds stays in the organization, and the organization\'s storage becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **Nothing is charged or refunded now.** The part of the Teams price already paid for the rest of the current period, less the Solo price for it, is credited on the next invoice, as when a seat is removed. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`), and only when they are the account that pays for the subscription. The subscription has to be `active`, billed by Stripe and not set to end with the current period; the organization must have no member but its owner (409 `TEAM_HAS_OTHER_MEMBERS`: a Solo subscription is for one person, so remove the others first); and the owner must have no Solo subscription of their own (409 `TARGET_ALREADY_SUBSCRIBED`). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
277
+ * Convert this one-person organization\'s Teams subscription into your Solo subscription
278
+ */
279
+ convertTeamsToSoloRaw(requestParameters, initOverrides) {
280
+ return __awaiter(this, void 0, void 0, function* () {
281
+ if (requestParameters['orgId'] == null) {
282
+ throw new runtime.RequiredError('orgId', 'Required parameter "orgId" was null or undefined when calling convertTeamsToSolo().');
283
+ }
284
+ const queryParameters = {};
285
+ const headerParameters = {};
286
+ if (requestParameters['idempotencyKey'] != null) {
287
+ headerParameters['Idempotency-Key'] = String(requestParameters['idempotencyKey']);
288
+ }
289
+ if (this.configuration && this.configuration.accessToken) {
290
+ const token = this.configuration.accessToken;
291
+ const tokenString = yield token("apiKeyAuth", []);
292
+ if (tokenString) {
293
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
294
+ }
295
+ }
296
+ const response = yield this.request({
297
+ path: `/organizations/{orgId}/billing/convert-to-personal`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
298
+ method: 'POST',
299
+ headers: headerParameters,
300
+ query: queryParameters,
301
+ }, initOverrides);
302
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ConvertSoloToTeams200ResponseFromJSON)(jsonValue));
303
+ });
304
+ }
305
+ /**
306
+ * The way back from `POST /organizations/{orgId}/billing/convert-from-personal`: moves the Teams subscription of an organization that has only its owner in it onto the owner\'s personal account as a Solo subscription. It is the same Stripe subscription, repriced from Teams to Solo, so nothing is cancelled and re-bought. **Extra storage comes with it.** The storage packs billed on the Teams subscription keep billing at the same price, as one more line on the Solo subscription, and become part of your personal storage. Files do not move: what the organization holds stays in the organization, and the organization\'s storage becomes the free one. A workspace that ends up over its limit keeps its files and can read and delete them, but cannot take new ones until there is room again. **Nothing is charged or refunded now.** The part of the Teams price already paid for the rest of the current period, less the Solo price for it, is credited on the next invoice, as when a seat is removed. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of converting twice. Only the OWNER of the organization can convert (403 `NOT_ORGANIZATION_OWNER`), and only when they are the account that pays for the subscription. The subscription has to be `active`, billed by Stripe and not set to end with the current period; the organization must have no member but its owner (409 `TEAM_HAS_OTHER_MEMBERS`: a Solo subscription is for one person, so remove the others first); and the owner must have no Solo subscription of their own (409 `TARGET_ALREADY_SUBSCRIBED`). A Shopify store\'s plan is billed by Shopify and cannot be converted here (409 `BILLED_THROUGH_SHOPIFY`).
307
+ * Convert this one-person organization\'s Teams subscription into your Solo subscription
308
+ */
309
+ convertTeamsToSolo(requestParameters, initOverrides) {
310
+ return __awaiter(this, void 0, void 0, function* () {
311
+ const response = yield this.convertTeamsToSoloRaw(requestParameters, initOverrides);
312
+ return yield response.value();
313
+ });
314
+ }
235
315
  /**
236
316
  * Creates a new organization for team collaboration. The authenticated user becomes the organization owner.
237
317
  * Create Organization
@@ -1128,7 +1208,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1128
1208
  });
1129
1209
  }
1130
1210
  /**
1131
- * Retrieves the organization\'s shared storage pool and how much of it its members have used. The pool is the storage the Teams plan grants plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). An organization without a Teams subscription has no pool: its figures describe only the extra storage it has. All organization members can view storage usage.
1211
+ * Retrieves the organization\'s shared storage space and how much of it its members have used. The space is the storage the plan grants (500 GB for an active Teams subscription, and never less than the 10 GB Free minimum) plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). Only files stored while working inside the organization count against it: what a member keeps in their own personal workspace is counted against their own allowance, and the two never add up. All organization members can view storage usage.
1132
1212
  * Get Organization Storage Usage
1133
1213
  */
1134
1214
  getOrganizationStorageUsageRaw(requestParameters, initOverrides) {
@@ -1155,7 +1235,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1155
1235
  });
1156
1236
  }
1157
1237
  /**
1158
- * Retrieves the organization\'s shared storage pool and how much of it its members have used. The pool is the storage the Teams plan grants plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). An organization without a Teams subscription has no pool: its figures describe only the extra storage it has. All organization members can view storage usage.
1238
+ * Retrieves the organization\'s shared storage space and how much of it its members have used. The space is the storage the plan grants (500 GB for an active Teams subscription, and never less than the 10 GB Free minimum) plus the extra storage the organization has added (a recurring add-on, billed with the subscription for as long as it is on it). Only files stored while working inside the organization count against it: what a member keeps in their own personal workspace is counted against their own allowance, and the two never add up. All organization members can view storage usage.
1159
1239
  * Get Organization Storage Usage
1160
1240
  */
1161
1241
  getOrganizationStorageUsage(requestParameters, initOverrides) {
@@ -1933,7 +2013,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1933
2013
  });
1934
2014
  }
1935
2015
  /**
1936
- * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits.
2016
+ * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits. The year\'s total (`totalAnnualPrice`) is the seats plus the extra storage billed on the contract (`storagePacksGb`, at the yearly price in `annualStoragePrice`), because both are items on the same yearly subscription.
1937
2017
  * Get yearly billing details
1938
2018
  */
1939
2019
  organizationsOrgIdBillingYearlyDetailsGetRaw(requestParameters, initOverrides) {
@@ -1960,7 +2040,7 @@ class OrganizationsApi extends runtime.BaseAPI {
1960
2040
  });
1961
2041
  }
1962
2042
  /**
1963
- * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits.
2043
+ * Get comprehensive yearly billing details including contract period, pricing, and accumulated credits. The year\'s total (`totalAnnualPrice`) is the seats plus the extra storage billed on the contract (`storagePacksGb`, at the yearly price in `annualStoragePrice`), because both are items on the same yearly subscription.
1964
2044
  * Get yearly billing details
1965
2045
  */
1966
2046
  organizationsOrgIdBillingYearlyDetailsGet(requestParameters, initOverrides) {
@@ -2142,7 +2222,7 @@ class OrganizationsApi extends runtime.BaseAPI {
2142
2222
  });
2143
2223
  }
2144
2224
  /**
2145
- * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`.
2225
+ * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. A refused request gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`. Extra storage is not sold to an account that administers a partner (403 `PARTNER_STORAGE_NOT_SOLD`): the files of a partner account are kept in the partner\'s own storage destination and never use Widgetic storage, so there would be nothing for the storage to add to. Another admin of the team can buy it for the team.
2146
2226
  * Add Extra Storage
2147
2227
  */
2148
2228
  purchaseStoragePackRaw(requestParameters, initOverrides) {
@@ -2177,7 +2257,7 @@ class OrganizationsApi extends runtime.BaseAPI {
2177
2257
  });
2178
2258
  }
2179
2259
  /**
2180
- * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`.
2260
+ * Adds extra storage to the organization\'s Teams subscription. Extra storage is a RECURRING add-on, not a one-time purchase: it is one more item on the same subscription as the seats, billed every period (per GB per month on a monthly subscription, per GB per year on a yearly one) until it is removed or the subscription ends. The GB are charged now, prorated for the rest of the current period, to the subscription\'s payment method, and join the organization\'s shared storage pool as soon as the charge succeeds. If the charge fails (for example a declined card) nothing is added and the request is refused with 402 `PAYMENT_FAILED`. Storage is sold in packs (the pricing payload\'s `storage.defaultPackSizeGb`, 50 GB). Ask for as many packs as you need in one request by sending a multiple of the pack size: `pack_size_gb: 50` is one pack, `100` is two, `500` is ten. `pack_size_gb` is added to what the organization already has, so buying again adds more. Remove storage with `POST /organizations/{orgId}/storage/cancel-pack`. The `Idempotency-Key` header is required and names this change: a retry with the same key replays the first result instead of adding the storage twice. A refused request gives the key back: after a declined card (402 `PAYMENT_FAILED`), fix the payment method and send the request again with the same key. It is charged as a new attempt and is not answered with the old decline. Only organization admins and owners can change the storage, and only an organization on a Teams subscription that Stripe bills can have any: an organization without one is refused with a plan restriction pointing at Teams, and a Shopify store (whose plan Shopify bills) is refused with 409 `BILLED_THROUGH_SHOPIFY`. Extra storage is not sold to an account that administers a partner (403 `PARTNER_STORAGE_NOT_SOLD`): the files of a partner account are kept in the partner\'s own storage destination and never use Widgetic storage, so there would be nothing for the storage to add to. Another admin of the team can buy it for the team.
2181
2261
  * Add Extra Storage
2182
2262
  */
2183
2263
  purchaseStoragePack(requestParameters, initOverrides) {