@polar-sh/sdk 0.19.2 → 0.20.1

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 (921) hide show
  1. package/README.md +15 -10
  2. package/RUNTIMES.md +27 -1
  3. package/docs/sdks/polarsubscriptions/README.md +6 -5
  4. package/docs/sdks/subscriptions/README.md +165 -1
  5. package/funcs/advertisementsGet.js +4 -4
  6. package/funcs/advertisementsGet.js.map +1 -1
  7. package/funcs/advertisementsList.js +6 -6
  8. package/funcs/advertisementsList.js.map +1 -1
  9. package/funcs/benefitsCreate.js +4 -4
  10. package/funcs/benefitsCreate.js.map +1 -1
  11. package/funcs/benefitsDelete.js +4 -4
  12. package/funcs/benefitsDelete.js.map +1 -1
  13. package/funcs/benefitsGet.js +4 -4
  14. package/funcs/benefitsGet.js.map +1 -1
  15. package/funcs/benefitsGrants.js +6 -6
  16. package/funcs/benefitsGrants.js.map +1 -1
  17. package/funcs/benefitsList.js +6 -6
  18. package/funcs/benefitsList.js.map +1 -1
  19. package/funcs/benefitsUpdate.js +4 -4
  20. package/funcs/benefitsUpdate.js.map +1 -1
  21. package/funcs/checkoutLinksCreate.js +4 -4
  22. package/funcs/checkoutLinksCreate.js.map +1 -1
  23. package/funcs/checkoutLinksDelete.js +4 -4
  24. package/funcs/checkoutLinksDelete.js.map +1 -1
  25. package/funcs/checkoutLinksGet.js +4 -4
  26. package/funcs/checkoutLinksGet.js.map +1 -1
  27. package/funcs/checkoutLinksList.js +6 -6
  28. package/funcs/checkoutLinksList.js.map +1 -1
  29. package/funcs/checkoutLinksUpdate.js +4 -4
  30. package/funcs/checkoutLinksUpdate.js.map +1 -1
  31. package/funcs/checkoutsCreate.js +4 -4
  32. package/funcs/checkoutsCreate.js.map +1 -1
  33. package/funcs/checkoutsCustomClientConfirm.js +4 -4
  34. package/funcs/checkoutsCustomClientConfirm.js.map +1 -1
  35. package/funcs/checkoutsCustomClientGet.js +4 -4
  36. package/funcs/checkoutsCustomClientGet.js.map +1 -1
  37. package/funcs/checkoutsCustomClientUpdate.js +4 -4
  38. package/funcs/checkoutsCustomClientUpdate.js.map +1 -1
  39. package/funcs/checkoutsCustomCreate.js +4 -4
  40. package/funcs/checkoutsCustomCreate.js.map +1 -1
  41. package/funcs/checkoutsCustomGet.js +4 -4
  42. package/funcs/checkoutsCustomGet.js.map +1 -1
  43. package/funcs/checkoutsCustomList.js +6 -6
  44. package/funcs/checkoutsCustomList.js.map +1 -1
  45. package/funcs/checkoutsCustomUpdate.js +4 -4
  46. package/funcs/checkoutsCustomUpdate.js.map +1 -1
  47. package/funcs/checkoutsGet.js +4 -4
  48. package/funcs/checkoutsGet.js.map +1 -1
  49. package/funcs/customFieldsCreate.js +4 -4
  50. package/funcs/customFieldsCreate.js.map +1 -1
  51. package/funcs/customFieldsDelete.js +4 -4
  52. package/funcs/customFieldsDelete.js.map +1 -1
  53. package/funcs/customFieldsGet.js +4 -4
  54. package/funcs/customFieldsGet.js.map +1 -1
  55. package/funcs/customFieldsList.js +6 -6
  56. package/funcs/customFieldsList.js.map +1 -1
  57. package/funcs/customFieldsUpdate.js +4 -4
  58. package/funcs/customFieldsUpdate.js.map +1 -1
  59. package/funcs/customerPortalBenefitGrantsGet.js +4 -4
  60. package/funcs/customerPortalBenefitGrantsGet.js.map +1 -1
  61. package/funcs/customerPortalBenefitGrantsList.js +6 -6
  62. package/funcs/customerPortalBenefitGrantsList.js.map +1 -1
  63. package/funcs/customerPortalBenefitGrantsUpdate.js +4 -4
  64. package/funcs/customerPortalBenefitGrantsUpdate.js.map +1 -1
  65. package/funcs/customerPortalCustomersGet.js +4 -4
  66. package/funcs/customerPortalCustomersGet.js.map +1 -1
  67. package/funcs/customerPortalDownloadablesGet.js +4 -4
  68. package/funcs/customerPortalDownloadablesGet.js.map +1 -1
  69. package/funcs/customerPortalDownloadablesList.js +6 -6
  70. package/funcs/customerPortalDownloadablesList.js.map +1 -1
  71. package/funcs/customerPortalLicenseKeysActivate.js +4 -4
  72. package/funcs/customerPortalLicenseKeysActivate.js.map +1 -1
  73. package/funcs/customerPortalLicenseKeysDeactivate.js +4 -4
  74. package/funcs/customerPortalLicenseKeysDeactivate.js.map +1 -1
  75. package/funcs/customerPortalLicenseKeysGet.js +4 -4
  76. package/funcs/customerPortalLicenseKeysGet.js.map +1 -1
  77. package/funcs/customerPortalLicenseKeysList.js +6 -6
  78. package/funcs/customerPortalLicenseKeysList.js.map +1 -1
  79. package/funcs/customerPortalLicenseKeysValidate.js +4 -4
  80. package/funcs/customerPortalLicenseKeysValidate.js.map +1 -1
  81. package/funcs/customerPortalOrdersGet.js +4 -4
  82. package/funcs/customerPortalOrdersGet.js.map +1 -1
  83. package/funcs/customerPortalOrdersInvoice.js +4 -4
  84. package/funcs/customerPortalOrdersInvoice.js.map +1 -1
  85. package/funcs/customerPortalOrdersList.js +6 -6
  86. package/funcs/customerPortalOrdersList.js.map +1 -1
  87. package/funcs/customerPortalOrganizationsGet.js +4 -4
  88. package/funcs/customerPortalOrganizationsGet.js.map +1 -1
  89. package/funcs/customerPortalSubscriptionsCancel.js +4 -4
  90. package/funcs/customerPortalSubscriptionsCancel.js.map +1 -1
  91. package/funcs/customerPortalSubscriptionsGet.js +4 -4
  92. package/funcs/customerPortalSubscriptionsGet.js.map +1 -1
  93. package/funcs/customerPortalSubscriptionsList.js +6 -6
  94. package/funcs/customerPortalSubscriptionsList.js.map +1 -1
  95. package/funcs/customerPortalSubscriptionsUpdate.d.ts +1 -1
  96. package/funcs/customerPortalSubscriptionsUpdate.d.ts.map +1 -1
  97. package/funcs/customerPortalSubscriptionsUpdate.js +6 -6
  98. package/funcs/customerPortalSubscriptionsUpdate.js.map +1 -1
  99. package/funcs/customerSessionsCreate.js +4 -4
  100. package/funcs/customerSessionsCreate.js.map +1 -1
  101. package/funcs/customersCreate.js +4 -4
  102. package/funcs/customersCreate.js.map +1 -1
  103. package/funcs/customersDelete.js +4 -4
  104. package/funcs/customersDelete.js.map +1 -1
  105. package/funcs/customersGet.js +4 -4
  106. package/funcs/customersGet.js.map +1 -1
  107. package/funcs/customersList.js +6 -6
  108. package/funcs/customersList.js.map +1 -1
  109. package/funcs/customersUpdate.js +4 -4
  110. package/funcs/customersUpdate.js.map +1 -1
  111. package/funcs/discountsCreate.js +4 -4
  112. package/funcs/discountsCreate.js.map +1 -1
  113. package/funcs/discountsDelete.js +4 -4
  114. package/funcs/discountsDelete.js.map +1 -1
  115. package/funcs/discountsGet.js +4 -4
  116. package/funcs/discountsGet.js.map +1 -1
  117. package/funcs/discountsList.js +6 -6
  118. package/funcs/discountsList.js.map +1 -1
  119. package/funcs/discountsUpdate.js +4 -4
  120. package/funcs/discountsUpdate.js.map +1 -1
  121. package/funcs/externalOrganizationsList.js +6 -6
  122. package/funcs/externalOrganizationsList.js.map +1 -1
  123. package/funcs/filesCreate.js +4 -4
  124. package/funcs/filesCreate.js.map +1 -1
  125. package/funcs/filesDelete.js +4 -4
  126. package/funcs/filesDelete.js.map +1 -1
  127. package/funcs/filesList.js +6 -6
  128. package/funcs/filesList.js.map +1 -1
  129. package/funcs/filesUpdate.js +4 -4
  130. package/funcs/filesUpdate.js.map +1 -1
  131. package/funcs/filesUploaded.js +4 -4
  132. package/funcs/filesUploaded.js.map +1 -1
  133. package/funcs/licenseKeysGet.js +4 -4
  134. package/funcs/licenseKeysGet.js.map +1 -1
  135. package/funcs/licenseKeysGetActivation.js +4 -4
  136. package/funcs/licenseKeysGetActivation.js.map +1 -1
  137. package/funcs/licenseKeysList.js +6 -6
  138. package/funcs/licenseKeysList.js.map +1 -1
  139. package/funcs/licenseKeysUpdate.js +4 -4
  140. package/funcs/licenseKeysUpdate.js.map +1 -1
  141. package/funcs/metricsGet.js +4 -4
  142. package/funcs/metricsGet.js.map +1 -1
  143. package/funcs/metricsLimits.js +4 -4
  144. package/funcs/metricsLimits.js.map +1 -1
  145. package/funcs/oauth2Authorize.js +4 -4
  146. package/funcs/oauth2Authorize.js.map +1 -1
  147. package/funcs/oauth2ClientsCreate.js +4 -4
  148. package/funcs/oauth2ClientsCreate.js.map +1 -1
  149. package/funcs/oauth2ClientsDelete.js +4 -4
  150. package/funcs/oauth2ClientsDelete.js.map +1 -1
  151. package/funcs/oauth2ClientsGet.js +4 -4
  152. package/funcs/oauth2ClientsGet.js.map +1 -1
  153. package/funcs/oauth2ClientsList.js +6 -6
  154. package/funcs/oauth2ClientsList.js.map +1 -1
  155. package/funcs/oauth2ClientsUpdate.js +4 -4
  156. package/funcs/oauth2ClientsUpdate.js.map +1 -1
  157. package/funcs/oauth2Introspect.js +4 -4
  158. package/funcs/oauth2Introspect.js.map +1 -1
  159. package/funcs/oauth2Revoke.js +4 -4
  160. package/funcs/oauth2Revoke.js.map +1 -1
  161. package/funcs/oauth2Token.js +4 -4
  162. package/funcs/oauth2Token.js.map +1 -1
  163. package/funcs/oauth2Userinfo.js +4 -4
  164. package/funcs/oauth2Userinfo.js.map +1 -1
  165. package/funcs/ordersGet.js +4 -4
  166. package/funcs/ordersGet.js.map +1 -1
  167. package/funcs/ordersInvoice.js +4 -4
  168. package/funcs/ordersInvoice.js.map +1 -1
  169. package/funcs/ordersList.js +6 -6
  170. package/funcs/ordersList.js.map +1 -1
  171. package/funcs/organizationsCreate.js +4 -4
  172. package/funcs/organizationsCreate.js.map +1 -1
  173. package/funcs/organizationsGet.js +4 -4
  174. package/funcs/organizationsGet.js.map +1 -1
  175. package/funcs/organizationsList.js +6 -6
  176. package/funcs/organizationsList.js.map +1 -1
  177. package/funcs/organizationsUpdate.js +4 -4
  178. package/funcs/organizationsUpdate.js.map +1 -1
  179. package/funcs/productsCreate.js +4 -4
  180. package/funcs/productsCreate.js.map +1 -1
  181. package/funcs/productsGet.js +4 -4
  182. package/funcs/productsGet.js.map +1 -1
  183. package/funcs/productsList.js +6 -6
  184. package/funcs/productsList.js.map +1 -1
  185. package/funcs/productsUpdate.js +4 -4
  186. package/funcs/productsUpdate.js.map +1 -1
  187. package/funcs/productsUpdateBenefits.js +4 -4
  188. package/funcs/productsUpdateBenefits.js.map +1 -1
  189. package/funcs/repositoriesGet.js +4 -4
  190. package/funcs/repositoriesGet.js.map +1 -1
  191. package/funcs/repositoriesList.js +6 -6
  192. package/funcs/repositoriesList.js.map +1 -1
  193. package/funcs/repositoriesUpdate.js +4 -4
  194. package/funcs/repositoriesUpdate.js.map +1 -1
  195. package/funcs/subscriptionsExport.js +4 -4
  196. package/funcs/subscriptionsExport.js.map +1 -1
  197. package/funcs/subscriptionsList.js +6 -6
  198. package/funcs/subscriptionsList.js.map +1 -1
  199. package/funcs/subscriptionsRevoke.d.ts +17 -0
  200. package/funcs/subscriptionsRevoke.d.ts.map +1 -0
  201. package/funcs/subscriptionsRevoke.js +106 -0
  202. package/funcs/subscriptionsRevoke.js.map +1 -0
  203. package/funcs/subscriptionsUpdate.d.ts +17 -0
  204. package/funcs/subscriptionsUpdate.d.ts.map +1 -0
  205. package/funcs/subscriptionsUpdate.js +109 -0
  206. package/funcs/subscriptionsUpdate.js.map +1 -0
  207. package/lib/config.d.ts +3 -3
  208. package/lib/config.js +4 -5
  209. package/lib/config.js.map +1 -1
  210. package/lib/encodings.js +18 -19
  211. package/lib/encodings.js.map +1 -1
  212. package/lib/env.js +1 -2
  213. package/lib/env.js.map +1 -1
  214. package/lib/http.js +1 -2
  215. package/lib/http.js.map +1 -1
  216. package/lib/matchers.js +5 -6
  217. package/lib/matchers.js.map +1 -1
  218. package/lib/primitives.js +1 -1
  219. package/lib/primitives.js.map +1 -1
  220. package/lib/retries.js +3 -4
  221. package/lib/retries.js.map +1 -1
  222. package/lib/sdks.js +15 -16
  223. package/lib/sdks.js.map +1 -1
  224. package/lib/security.js +2 -3
  225. package/lib/security.js.map +1 -1
  226. package/lib/url.js +1 -1
  227. package/lib/url.js.map +1 -1
  228. package/models/components/authorizeresponseorganization.d.ts +0 -23
  229. package/models/components/authorizeresponseorganization.d.ts.map +1 -1
  230. package/models/components/authorizeresponseorganization.js +1 -19
  231. package/models/components/authorizeresponseorganization.js.map +1 -1
  232. package/models/components/authorizeresponseuser.d.ts +0 -23
  233. package/models/components/authorizeresponseuser.d.ts.map +1 -1
  234. package/models/components/authorizeresponseuser.js +1 -19
  235. package/models/components/authorizeresponseuser.js.map +1 -1
  236. package/models/components/benefitads.d.ts +0 -23
  237. package/models/components/benefitads.d.ts.map +1 -1
  238. package/models/components/benefitads.js +1 -19
  239. package/models/components/benefitads.js.map +1 -1
  240. package/models/components/benefitadscreate.d.ts +0 -23
  241. package/models/components/benefitadscreate.d.ts.map +1 -1
  242. package/models/components/benefitadscreate.js +1 -19
  243. package/models/components/benefitadscreate.js.map +1 -1
  244. package/models/components/benefitadssubscriber.d.ts +0 -23
  245. package/models/components/benefitadssubscriber.d.ts.map +1 -1
  246. package/models/components/benefitadssubscriber.js +1 -19
  247. package/models/components/benefitadssubscriber.js.map +1 -1
  248. package/models/components/benefitadsupdate.d.ts +0 -23
  249. package/models/components/benefitadsupdate.d.ts.map +1 -1
  250. package/models/components/benefitadsupdate.js +1 -19
  251. package/models/components/benefitadsupdate.js.map +1 -1
  252. package/models/components/benefitcustom.d.ts +0 -23
  253. package/models/components/benefitcustom.d.ts.map +1 -1
  254. package/models/components/benefitcustom.js +1 -19
  255. package/models/components/benefitcustom.js.map +1 -1
  256. package/models/components/benefitcustomcreate.d.ts +0 -23
  257. package/models/components/benefitcustomcreate.d.ts.map +1 -1
  258. package/models/components/benefitcustomcreate.js +1 -19
  259. package/models/components/benefitcustomcreate.js.map +1 -1
  260. package/models/components/benefitcustomsubscriber.d.ts +0 -23
  261. package/models/components/benefitcustomsubscriber.d.ts.map +1 -1
  262. package/models/components/benefitcustomsubscriber.js +1 -19
  263. package/models/components/benefitcustomsubscriber.js.map +1 -1
  264. package/models/components/benefitcustomupdate.d.ts +0 -23
  265. package/models/components/benefitcustomupdate.d.ts.map +1 -1
  266. package/models/components/benefitcustomupdate.js +1 -19
  267. package/models/components/benefitcustomupdate.js.map +1 -1
  268. package/models/components/benefitdiscord.d.ts +0 -23
  269. package/models/components/benefitdiscord.d.ts.map +1 -1
  270. package/models/components/benefitdiscord.js +1 -19
  271. package/models/components/benefitdiscord.js.map +1 -1
  272. package/models/components/benefitdiscordcreate.d.ts +0 -23
  273. package/models/components/benefitdiscordcreate.d.ts.map +1 -1
  274. package/models/components/benefitdiscordcreate.js +1 -19
  275. package/models/components/benefitdiscordcreate.js.map +1 -1
  276. package/models/components/benefitdiscordsubscriber.d.ts +0 -23
  277. package/models/components/benefitdiscordsubscriber.d.ts.map +1 -1
  278. package/models/components/benefitdiscordsubscriber.js +1 -19
  279. package/models/components/benefitdiscordsubscriber.js.map +1 -1
  280. package/models/components/benefitdiscordupdate.d.ts +0 -23
  281. package/models/components/benefitdiscordupdate.d.ts.map +1 -1
  282. package/models/components/benefitdiscordupdate.js +1 -19
  283. package/models/components/benefitdiscordupdate.js.map +1 -1
  284. package/models/components/benefitdownloadables.d.ts +0 -23
  285. package/models/components/benefitdownloadables.d.ts.map +1 -1
  286. package/models/components/benefitdownloadables.js +1 -19
  287. package/models/components/benefitdownloadables.js.map +1 -1
  288. package/models/components/benefitdownloadablescreate.d.ts +0 -23
  289. package/models/components/benefitdownloadablescreate.d.ts.map +1 -1
  290. package/models/components/benefitdownloadablescreate.js +1 -19
  291. package/models/components/benefitdownloadablescreate.js.map +1 -1
  292. package/models/components/benefitdownloadablessubscriber.d.ts +0 -23
  293. package/models/components/benefitdownloadablessubscriber.d.ts.map +1 -1
  294. package/models/components/benefitdownloadablessubscriber.js +1 -19
  295. package/models/components/benefitdownloadablessubscriber.js.map +1 -1
  296. package/models/components/benefitdownloadablesupdate.d.ts +0 -23
  297. package/models/components/benefitdownloadablesupdate.d.ts.map +1 -1
  298. package/models/components/benefitdownloadablesupdate.js +1 -19
  299. package/models/components/benefitdownloadablesupdate.js.map +1 -1
  300. package/models/components/benefitgithubrepository.d.ts +0 -23
  301. package/models/components/benefitgithubrepository.d.ts.map +1 -1
  302. package/models/components/benefitgithubrepository.js +1 -19
  303. package/models/components/benefitgithubrepository.js.map +1 -1
  304. package/models/components/benefitgithubrepositorycreate.d.ts +0 -23
  305. package/models/components/benefitgithubrepositorycreate.d.ts.map +1 -1
  306. package/models/components/benefitgithubrepositorycreate.js +1 -19
  307. package/models/components/benefitgithubrepositorycreate.js.map +1 -1
  308. package/models/components/benefitgithubrepositorysubscriber.d.ts +0 -23
  309. package/models/components/benefitgithubrepositorysubscriber.d.ts.map +1 -1
  310. package/models/components/benefitgithubrepositorysubscriber.js +1 -19
  311. package/models/components/benefitgithubrepositorysubscriber.js.map +1 -1
  312. package/models/components/benefitgithubrepositoryupdate.d.ts +0 -23
  313. package/models/components/benefitgithubrepositoryupdate.d.ts.map +1 -1
  314. package/models/components/benefitgithubrepositoryupdate.js +1 -19
  315. package/models/components/benefitgithubrepositoryupdate.js.map +1 -1
  316. package/models/components/benefitgrant.d.ts +6 -0
  317. package/models/components/benefitgrant.d.ts.map +1 -1
  318. package/models/components/benefitgrant.js +3 -0
  319. package/models/components/benefitgrant.js.map +1 -1
  320. package/models/components/benefitgrantwebhook.d.ts +6 -0
  321. package/models/components/benefitgrantwebhook.d.ts.map +1 -1
  322. package/models/components/benefitgrantwebhook.js +3 -0
  323. package/models/components/benefitgrantwebhook.js.map +1 -1
  324. package/models/components/benefitlicensekeys.d.ts +0 -23
  325. package/models/components/benefitlicensekeys.d.ts.map +1 -1
  326. package/models/components/benefitlicensekeys.js +1 -19
  327. package/models/components/benefitlicensekeys.js.map +1 -1
  328. package/models/components/benefitlicensekeyscreate.d.ts +0 -23
  329. package/models/components/benefitlicensekeyscreate.d.ts.map +1 -1
  330. package/models/components/benefitlicensekeyscreate.js +1 -19
  331. package/models/components/benefitlicensekeyscreate.js.map +1 -1
  332. package/models/components/benefitlicensekeyssubscriber.d.ts +0 -23
  333. package/models/components/benefitlicensekeyssubscriber.d.ts.map +1 -1
  334. package/models/components/benefitlicensekeyssubscriber.js +1 -19
  335. package/models/components/benefitlicensekeyssubscriber.js.map +1 -1
  336. package/models/components/benefitlicensekeysupdate.d.ts +0 -23
  337. package/models/components/benefitlicensekeysupdate.d.ts.map +1 -1
  338. package/models/components/benefitlicensekeysupdate.js +1 -19
  339. package/models/components/benefitlicensekeysupdate.js.map +1 -1
  340. package/models/components/checkout.d.ts +3 -2
  341. package/models/components/checkout.d.ts.map +1 -1
  342. package/models/components/checkout.js +3 -2
  343. package/models/components/checkout.js.map +1 -1
  344. package/models/components/checkoutlink.d.ts +3 -2
  345. package/models/components/checkoutlink.d.ts.map +1 -1
  346. package/models/components/checkoutlink.js +3 -2
  347. package/models/components/checkoutlink.js.map +1 -1
  348. package/models/components/checkoutlinkpricecreate.d.ts +0 -29
  349. package/models/components/checkoutlinkpricecreate.d.ts.map +1 -1
  350. package/models/components/checkoutlinkpricecreate.js +1 -23
  351. package/models/components/checkoutlinkpricecreate.js.map +1 -1
  352. package/models/components/checkoutlinkproductcreate.d.ts +0 -29
  353. package/models/components/checkoutlinkproductcreate.d.ts.map +1 -1
  354. package/models/components/checkoutlinkproductcreate.js +1 -23
  355. package/models/components/checkoutlinkproductcreate.js.map +1 -1
  356. package/models/components/checkoutpricecreate.d.ts +0 -34
  357. package/models/components/checkoutpricecreate.d.ts.map +1 -1
  358. package/models/components/checkoutpricecreate.js +1 -26
  359. package/models/components/checkoutpricecreate.js.map +1 -1
  360. package/models/components/checkoutproductcreate.d.ts +0 -34
  361. package/models/components/checkoutproductcreate.d.ts.map +1 -1
  362. package/models/components/checkoutproductcreate.js +1 -26
  363. package/models/components/checkoutproductcreate.js.map +1 -1
  364. package/models/components/checkoutpublic.d.ts +3 -2
  365. package/models/components/checkoutpublic.d.ts.map +1 -1
  366. package/models/components/checkoutpublic.js +3 -2
  367. package/models/components/checkoutpublic.js.map +1 -1
  368. package/models/components/checkoutpublicconfirmed.d.ts +3 -25
  369. package/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  370. package/models/components/checkoutpublicconfirmed.js +4 -22
  371. package/models/components/checkoutpublicconfirmed.js.map +1 -1
  372. package/models/components/customerbenefitgrantads.d.ts +3 -0
  373. package/models/components/customerbenefitgrantads.d.ts.map +1 -1
  374. package/models/components/customerbenefitgrantads.js +3 -0
  375. package/models/components/customerbenefitgrantads.js.map +1 -1
  376. package/models/components/customerbenefitgrantadsupdate.d.ts +0 -23
  377. package/models/components/customerbenefitgrantadsupdate.d.ts.map +1 -1
  378. package/models/components/customerbenefitgrantadsupdate.js +1 -20
  379. package/models/components/customerbenefitgrantadsupdate.js.map +1 -1
  380. package/models/components/customerbenefitgrantcustom.d.ts +3 -0
  381. package/models/components/customerbenefitgrantcustom.d.ts.map +1 -1
  382. package/models/components/customerbenefitgrantcustom.js +3 -0
  383. package/models/components/customerbenefitgrantcustom.js.map +1 -1
  384. package/models/components/customerbenefitgrantcustomupdate.d.ts +0 -23
  385. package/models/components/customerbenefitgrantcustomupdate.d.ts.map +1 -1
  386. package/models/components/customerbenefitgrantcustomupdate.js +1 -20
  387. package/models/components/customerbenefitgrantcustomupdate.js.map +1 -1
  388. package/models/components/customerbenefitgrantdiscord.d.ts +3 -0
  389. package/models/components/customerbenefitgrantdiscord.d.ts.map +1 -1
  390. package/models/components/customerbenefitgrantdiscord.js +3 -0
  391. package/models/components/customerbenefitgrantdiscord.js.map +1 -1
  392. package/models/components/customerbenefitgrantdiscordupdate.d.ts +0 -23
  393. package/models/components/customerbenefitgrantdiscordupdate.d.ts.map +1 -1
  394. package/models/components/customerbenefitgrantdiscordupdate.js +1 -20
  395. package/models/components/customerbenefitgrantdiscordupdate.js.map +1 -1
  396. package/models/components/customerbenefitgrantdownloadables.d.ts +3 -0
  397. package/models/components/customerbenefitgrantdownloadables.d.ts.map +1 -1
  398. package/models/components/customerbenefitgrantdownloadables.js +3 -0
  399. package/models/components/customerbenefitgrantdownloadables.js.map +1 -1
  400. package/models/components/customerbenefitgrantdownloadablesupdate.d.ts +0 -23
  401. package/models/components/customerbenefitgrantdownloadablesupdate.d.ts.map +1 -1
  402. package/models/components/customerbenefitgrantdownloadablesupdate.js +1 -20
  403. package/models/components/customerbenefitgrantdownloadablesupdate.js.map +1 -1
  404. package/models/components/customerbenefitgrantgithubrepository.d.ts +3 -0
  405. package/models/components/customerbenefitgrantgithubrepository.d.ts.map +1 -1
  406. package/models/components/customerbenefitgrantgithubrepository.js +3 -0
  407. package/models/components/customerbenefitgrantgithubrepository.js.map +1 -1
  408. package/models/components/customerbenefitgrantgithubrepositoryupdate.d.ts +0 -23
  409. package/models/components/customerbenefitgrantgithubrepositoryupdate.d.ts.map +1 -1
  410. package/models/components/customerbenefitgrantgithubrepositoryupdate.js +1 -19
  411. package/models/components/customerbenefitgrantgithubrepositoryupdate.js.map +1 -1
  412. package/models/components/customerbenefitgrantlicensekeys.d.ts +3 -0
  413. package/models/components/customerbenefitgrantlicensekeys.d.ts.map +1 -1
  414. package/models/components/customerbenefitgrantlicensekeys.js +3 -0
  415. package/models/components/customerbenefitgrantlicensekeys.js.map +1 -1
  416. package/models/components/customerbenefitgrantlicensekeysupdate.d.ts +0 -23
  417. package/models/components/customerbenefitgrantlicensekeysupdate.d.ts.map +1 -1
  418. package/models/components/customerbenefitgrantlicensekeysupdate.js +1 -20
  419. package/models/components/customerbenefitgrantlicensekeysupdate.js.map +1 -1
  420. package/models/components/customercancellationreason.d.ts +46 -0
  421. package/models/components/customercancellationreason.d.ts.map +1 -0
  422. package/models/components/customercancellationreason.js +56 -0
  423. package/models/components/customercancellationreason.js.map +1 -0
  424. package/models/components/customerordersubscription.d.ts +9 -0
  425. package/models/components/customerordersubscription.d.ts.map +1 -1
  426. package/models/components/customerordersubscription.js +17 -0
  427. package/models/components/customerordersubscription.js.map +1 -1
  428. package/models/components/customersession.d.ts +2 -0
  429. package/models/components/customersession.d.ts.map +1 -1
  430. package/models/components/customersession.js +4 -0
  431. package/models/components/customersession.js.map +1 -1
  432. package/models/components/customersubscription.d.ts +9 -0
  433. package/models/components/customersubscription.d.ts.map +1 -1
  434. package/models/components/customersubscription.js +17 -0
  435. package/models/components/customersubscription.js.map +1 -1
  436. package/models/components/customersubscriptioncancel.d.ts +58 -0
  437. package/models/components/customersubscriptioncancel.d.ts.map +1 -0
  438. package/models/components/customersubscriptioncancel.js +79 -0
  439. package/models/components/customersubscriptioncancel.js.map +1 -0
  440. package/models/components/customersubscriptionupdate.d.ts +4 -6
  441. package/models/components/customersubscriptionupdate.d.ts.map +1 -1
  442. package/models/components/customersubscriptionupdate.js +10 -15
  443. package/models/components/customersubscriptionupdate.js.map +1 -1
  444. package/models/components/customersubscriptionupdateprice.d.ts +32 -0
  445. package/models/components/customersubscriptionupdateprice.d.ts.map +1 -0
  446. package/models/components/customersubscriptionupdateprice.js +68 -0
  447. package/models/components/customersubscriptionupdateprice.js.map +1 -0
  448. package/models/components/customfieldcheckbox.d.ts +0 -23
  449. package/models/components/customfieldcheckbox.d.ts.map +1 -1
  450. package/models/components/customfieldcheckbox.js +1 -19
  451. package/models/components/customfieldcheckbox.js.map +1 -1
  452. package/models/components/customfieldcreatecheckbox.d.ts +0 -23
  453. package/models/components/customfieldcreatecheckbox.d.ts.map +1 -1
  454. package/models/components/customfieldcreatecheckbox.js +1 -19
  455. package/models/components/customfieldcreatecheckbox.js.map +1 -1
  456. package/models/components/customfieldcreatedate.d.ts +0 -23
  457. package/models/components/customfieldcreatedate.d.ts.map +1 -1
  458. package/models/components/customfieldcreatedate.js +1 -19
  459. package/models/components/customfieldcreatedate.js.map +1 -1
  460. package/models/components/customfieldcreatenumber.d.ts +0 -23
  461. package/models/components/customfieldcreatenumber.d.ts.map +1 -1
  462. package/models/components/customfieldcreatenumber.js +1 -19
  463. package/models/components/customfieldcreatenumber.js.map +1 -1
  464. package/models/components/customfieldcreateselect.d.ts +0 -23
  465. package/models/components/customfieldcreateselect.d.ts.map +1 -1
  466. package/models/components/customfieldcreateselect.js +1 -19
  467. package/models/components/customfieldcreateselect.js.map +1 -1
  468. package/models/components/customfieldcreatetext.d.ts +0 -23
  469. package/models/components/customfieldcreatetext.d.ts.map +1 -1
  470. package/models/components/customfieldcreatetext.js +1 -19
  471. package/models/components/customfieldcreatetext.js.map +1 -1
  472. package/models/components/customfielddate.d.ts +0 -23
  473. package/models/components/customfielddate.d.ts.map +1 -1
  474. package/models/components/customfielddate.js +1 -19
  475. package/models/components/customfielddate.js.map +1 -1
  476. package/models/components/customfieldnumber.d.ts +0 -23
  477. package/models/components/customfieldnumber.d.ts.map +1 -1
  478. package/models/components/customfieldnumber.js +1 -19
  479. package/models/components/customfieldnumber.js.map +1 -1
  480. package/models/components/customfieldselect.d.ts +0 -23
  481. package/models/components/customfieldselect.d.ts.map +1 -1
  482. package/models/components/customfieldselect.js +1 -19
  483. package/models/components/customfieldselect.js.map +1 -1
  484. package/models/components/customfieldtext.d.ts +0 -23
  485. package/models/components/customfieldtext.d.ts.map +1 -1
  486. package/models/components/customfieldtext.js +1 -19
  487. package/models/components/customfieldtext.js.map +1 -1
  488. package/models/components/customfieldupdatecheckbox.d.ts +0 -23
  489. package/models/components/customfieldupdatecheckbox.d.ts.map +1 -1
  490. package/models/components/customfieldupdatecheckbox.js +1 -19
  491. package/models/components/customfieldupdatecheckbox.js.map +1 -1
  492. package/models/components/customfieldupdatedate.d.ts +0 -23
  493. package/models/components/customfieldupdatedate.d.ts.map +1 -1
  494. package/models/components/customfieldupdatedate.js +1 -19
  495. package/models/components/customfieldupdatedate.js.map +1 -1
  496. package/models/components/customfieldupdatenumber.d.ts +0 -23
  497. package/models/components/customfieldupdatenumber.d.ts.map +1 -1
  498. package/models/components/customfieldupdatenumber.js +1 -19
  499. package/models/components/customfieldupdatenumber.js.map +1 -1
  500. package/models/components/customfieldupdateselect.d.ts +0 -23
  501. package/models/components/customfieldupdateselect.d.ts.map +1 -1
  502. package/models/components/customfieldupdateselect.js +1 -19
  503. package/models/components/customfieldupdateselect.js.map +1 -1
  504. package/models/components/customfieldupdatetext.d.ts +0 -23
  505. package/models/components/customfieldupdatetext.d.ts.map +1 -1
  506. package/models/components/customfieldupdatetext.js +1 -19
  507. package/models/components/customfieldupdatetext.js.map +1 -1
  508. package/models/components/downloadablefilecreate.d.ts +0 -23
  509. package/models/components/downloadablefilecreate.d.ts.map +1 -1
  510. package/models/components/downloadablefilecreate.js +1 -19
  511. package/models/components/downloadablefilecreate.js.map +1 -1
  512. package/models/components/downloadablefileread.d.ts +0 -23
  513. package/models/components/downloadablefileread.d.ts.map +1 -1
  514. package/models/components/downloadablefileread.js +1 -19
  515. package/models/components/downloadablefileread.js.map +1 -1
  516. package/models/components/externalorganization.d.ts +3 -2
  517. package/models/components/externalorganization.d.ts.map +1 -1
  518. package/models/components/externalorganization.js +3 -2
  519. package/models/components/externalorganization.js.map +1 -1
  520. package/models/components/index.d.ts +7 -0
  521. package/models/components/index.d.ts.map +1 -1
  522. package/models/components/index.js +7 -0
  523. package/models/components/index.js.map +1 -1
  524. package/models/components/introspecttokenresponse.d.ts +8 -8
  525. package/models/components/introspecttokenresponse.d.ts.map +1 -1
  526. package/models/components/introspecttokenresponse.js +14 -13
  527. package/models/components/introspecttokenresponse.js.map +1 -1
  528. package/models/components/issue.d.ts +3 -2
  529. package/models/components/issue.d.ts.map +1 -1
  530. package/models/components/issue.js +3 -2
  531. package/models/components/issue.js.map +1 -1
  532. package/models/components/oauth2client.d.ts +1 -23
  533. package/models/components/oauth2client.d.ts.map +1 -1
  534. package/models/components/oauth2client.js +3 -21
  535. package/models/components/oauth2client.js.map +1 -1
  536. package/models/components/oauth2clientconfiguration.d.ts +1 -23
  537. package/models/components/oauth2clientconfiguration.d.ts.map +1 -1
  538. package/models/components/oauth2clientconfiguration.js +3 -23
  539. package/models/components/oauth2clientconfiguration.js.map +1 -1
  540. package/models/components/oauth2clientconfigurationupdate.d.ts +1 -23
  541. package/models/components/oauth2clientconfigurationupdate.d.ts.map +1 -1
  542. package/models/components/oauth2clientconfigurationupdate.js +3 -22
  543. package/models/components/oauth2clientconfigurationupdate.js.map +1 -1
  544. package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.d.ts +0 -23
  545. package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.d.ts.map +1 -1
  546. package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.js +1 -20
  547. package/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.js.map +1 -1
  548. package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.d.ts +0 -23
  549. package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.d.ts.map +1 -1
  550. package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.js +1 -19
  551. package/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.js.map +1 -1
  552. package/models/components/ordersubscription.d.ts +9 -0
  553. package/models/components/ordersubscription.d.ts.map +1 -1
  554. package/models/components/ordersubscription.js +17 -0
  555. package/models/components/ordersubscription.js.map +1 -1
  556. package/models/components/organizationavatarfilecreate.d.ts +0 -23
  557. package/models/components/organizationavatarfilecreate.d.ts.map +1 -1
  558. package/models/components/organizationavatarfilecreate.js +1 -19
  559. package/models/components/organizationavatarfilecreate.js.map +1 -1
  560. package/models/components/organizationavatarfileread.d.ts +0 -23
  561. package/models/components/organizationavatarfileread.d.ts.map +1 -1
  562. package/models/components/organizationavatarfileread.js +1 -19
  563. package/models/components/organizationavatarfileread.js.map +1 -1
  564. package/models/components/productmediafilecreate.d.ts +0 -23
  565. package/models/components/productmediafilecreate.d.ts.map +1 -1
  566. package/models/components/productmediafilecreate.js +1 -19
  567. package/models/components/productmediafilecreate.js.map +1 -1
  568. package/models/components/productmediafileread.d.ts +0 -23
  569. package/models/components/productmediafileread.d.ts.map +1 -1
  570. package/models/components/productmediafileread.js +1 -20
  571. package/models/components/productmediafileread.js.map +1 -1
  572. package/models/components/productpriceonetimecustom.d.ts +0 -51
  573. package/models/components/productpriceonetimecustom.d.ts.map +1 -1
  574. package/models/components/productpriceonetimecustom.js +1 -40
  575. package/models/components/productpriceonetimecustom.js.map +1 -1
  576. package/models/components/productpriceonetimecustomcreate.d.ts +0 -45
  577. package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -1
  578. package/models/components/productpriceonetimecustomcreate.js +1 -38
  579. package/models/components/productpriceonetimecustomcreate.js.map +1 -1
  580. package/models/components/productpriceonetimefixed.d.ts +0 -51
  581. package/models/components/productpriceonetimefixed.d.ts.map +1 -1
  582. package/models/components/productpriceonetimefixed.js +1 -40
  583. package/models/components/productpriceonetimefixed.js.map +1 -1
  584. package/models/components/productpriceonetimefixedcreate.d.ts +0 -45
  585. package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -1
  586. package/models/components/productpriceonetimefixedcreate.js +1 -38
  587. package/models/components/productpriceonetimefixedcreate.js.map +1 -1
  588. package/models/components/productpriceonetimefree.d.ts +0 -51
  589. package/models/components/productpriceonetimefree.d.ts.map +1 -1
  590. package/models/components/productpriceonetimefree.js +1 -40
  591. package/models/components/productpriceonetimefree.js.map +1 -1
  592. package/models/components/productpriceonetimefreecreate.d.ts +0 -45
  593. package/models/components/productpriceonetimefreecreate.d.ts.map +1 -1
  594. package/models/components/productpriceonetimefreecreate.js +1 -38
  595. package/models/components/productpriceonetimefreecreate.js.map +1 -1
  596. package/models/components/productpricerecurringcustom.d.ts +0 -51
  597. package/models/components/productpricerecurringcustom.d.ts.map +1 -1
  598. package/models/components/productpricerecurringcustom.js +1 -40
  599. package/models/components/productpricerecurringcustom.js.map +1 -1
  600. package/models/components/productpricerecurringfixed.d.ts +0 -51
  601. package/models/components/productpricerecurringfixed.d.ts.map +1 -1
  602. package/models/components/productpricerecurringfixed.js +1 -41
  603. package/models/components/productpricerecurringfixed.js.map +1 -1
  604. package/models/components/productpricerecurringfixedcreate.d.ts +0 -45
  605. package/models/components/productpricerecurringfixedcreate.d.ts.map +1 -1
  606. package/models/components/productpricerecurringfixedcreate.js +1 -38
  607. package/models/components/productpricerecurringfixedcreate.js.map +1 -1
  608. package/models/components/productpricerecurringfree.d.ts +0 -51
  609. package/models/components/productpricerecurringfree.d.ts.map +1 -1
  610. package/models/components/productpricerecurringfree.js +1 -40
  611. package/models/components/productpricerecurringfree.js.map +1 -1
  612. package/models/components/productpricerecurringfreecreate.d.ts +0 -45
  613. package/models/components/productpricerecurringfreecreate.d.ts.map +1 -1
  614. package/models/components/productpricerecurringfreecreate.js +1 -38
  615. package/models/components/productpricerecurringfreecreate.js.map +1 -1
  616. package/models/components/repository.d.ts +3 -2
  617. package/models/components/repository.d.ts.map +1 -1
  618. package/models/components/repository.js +3 -2
  619. package/models/components/repository.js.map +1 -1
  620. package/models/components/subscription.d.ts +9 -0
  621. package/models/components/subscription.d.ts.map +1 -1
  622. package/models/components/subscription.js +17 -0
  623. package/models/components/subscription.js.map +1 -1
  624. package/models/components/subscriptioncancel.d.ts +80 -0
  625. package/models/components/subscriptioncancel.d.ts.map +1 -0
  626. package/models/components/subscriptioncancel.js +79 -0
  627. package/models/components/subscriptioncancel.js.map +1 -0
  628. package/models/components/subscriptionupdate.d.ts +27 -0
  629. package/models/components/subscriptionupdate.d.ts.map +1 -0
  630. package/models/components/subscriptionupdate.js +63 -0
  631. package/models/components/subscriptionupdate.js.map +1 -0
  632. package/models/components/subscriptionupdateprice.d.ts +32 -0
  633. package/models/components/subscriptionupdateprice.d.ts.map +1 -0
  634. package/models/components/subscriptionupdateprice.js +68 -0
  635. package/models/components/subscriptionupdateprice.js.map +1 -0
  636. package/models/components/tokenresponse.d.ts +0 -23
  637. package/models/components/tokenresponse.d.ts.map +1 -1
  638. package/models/components/tokenresponse.js +1 -20
  639. package/models/components/tokenresponse.js.map +1 -1
  640. package/models/components/webhookbenefitcreatedpayload.d.ts +0 -23
  641. package/models/components/webhookbenefitcreatedpayload.d.ts.map +1 -1
  642. package/models/components/webhookbenefitcreatedpayload.js +1 -19
  643. package/models/components/webhookbenefitcreatedpayload.js.map +1 -1
  644. package/models/components/webhookbenefitgrantcreatedpayload.d.ts +0 -23
  645. package/models/components/webhookbenefitgrantcreatedpayload.d.ts.map +1 -1
  646. package/models/components/webhookbenefitgrantcreatedpayload.js +1 -19
  647. package/models/components/webhookbenefitgrantcreatedpayload.js.map +1 -1
  648. package/models/components/webhookbenefitgrantrevokedpayload.d.ts +0 -23
  649. package/models/components/webhookbenefitgrantrevokedpayload.d.ts.map +1 -1
  650. package/models/components/webhookbenefitgrantrevokedpayload.js +1 -19
  651. package/models/components/webhookbenefitgrantrevokedpayload.js.map +1 -1
  652. package/models/components/webhookbenefitgrantupdatedpayload.d.ts +0 -23
  653. package/models/components/webhookbenefitgrantupdatedpayload.d.ts.map +1 -1
  654. package/models/components/webhookbenefitgrantupdatedpayload.js +1 -19
  655. package/models/components/webhookbenefitgrantupdatedpayload.js.map +1 -1
  656. package/models/components/webhookbenefitupdatedpayload.d.ts +0 -23
  657. package/models/components/webhookbenefitupdatedpayload.d.ts.map +1 -1
  658. package/models/components/webhookbenefitupdatedpayload.js +1 -19
  659. package/models/components/webhookbenefitupdatedpayload.js.map +1 -1
  660. package/models/components/webhookcheckoutcreatedpayload.d.ts +0 -23
  661. package/models/components/webhookcheckoutcreatedpayload.d.ts.map +1 -1
  662. package/models/components/webhookcheckoutcreatedpayload.js +1 -19
  663. package/models/components/webhookcheckoutcreatedpayload.js.map +1 -1
  664. package/models/components/webhookcheckoutupdatedpayload.d.ts +0 -23
  665. package/models/components/webhookcheckoutupdatedpayload.d.ts.map +1 -1
  666. package/models/components/webhookcheckoutupdatedpayload.js +1 -19
  667. package/models/components/webhookcheckoutupdatedpayload.js.map +1 -1
  668. package/models/components/webhookordercreatedpayload.d.ts +0 -23
  669. package/models/components/webhookordercreatedpayload.d.ts.map +1 -1
  670. package/models/components/webhookordercreatedpayload.js +1 -19
  671. package/models/components/webhookordercreatedpayload.js.map +1 -1
  672. package/models/components/webhookorganizationupdatedpayload.d.ts +0 -23
  673. package/models/components/webhookorganizationupdatedpayload.d.ts.map +1 -1
  674. package/models/components/webhookorganizationupdatedpayload.js +1 -19
  675. package/models/components/webhookorganizationupdatedpayload.js.map +1 -1
  676. package/models/components/webhookpledgecreatedpayload.d.ts +0 -23
  677. package/models/components/webhookpledgecreatedpayload.d.ts.map +1 -1
  678. package/models/components/webhookpledgecreatedpayload.js +1 -19
  679. package/models/components/webhookpledgecreatedpayload.js.map +1 -1
  680. package/models/components/webhookpledgeupdatedpayload.d.ts +0 -23
  681. package/models/components/webhookpledgeupdatedpayload.d.ts.map +1 -1
  682. package/models/components/webhookpledgeupdatedpayload.js +1 -19
  683. package/models/components/webhookpledgeupdatedpayload.js.map +1 -1
  684. package/models/components/webhookproductcreatedpayload.d.ts +0 -23
  685. package/models/components/webhookproductcreatedpayload.d.ts.map +1 -1
  686. package/models/components/webhookproductcreatedpayload.js +1 -19
  687. package/models/components/webhookproductcreatedpayload.js.map +1 -1
  688. package/models/components/webhookproductupdatedpayload.d.ts +0 -23
  689. package/models/components/webhookproductupdatedpayload.d.ts.map +1 -1
  690. package/models/components/webhookproductupdatedpayload.js +1 -19
  691. package/models/components/webhookproductupdatedpayload.js.map +1 -1
  692. package/models/components/webhooksubscriptionactivepayload.d.ts +0 -23
  693. package/models/components/webhooksubscriptionactivepayload.d.ts.map +1 -1
  694. package/models/components/webhooksubscriptionactivepayload.js +1 -19
  695. package/models/components/webhooksubscriptionactivepayload.js.map +1 -1
  696. package/models/components/webhooksubscriptioncanceledpayload.d.ts +2 -25
  697. package/models/components/webhooksubscriptioncanceledpayload.d.ts.map +1 -1
  698. package/models/components/webhooksubscriptioncanceledpayload.js +1 -19
  699. package/models/components/webhooksubscriptioncanceledpayload.js.map +1 -1
  700. package/models/components/webhooksubscriptioncreatedpayload.d.ts +0 -23
  701. package/models/components/webhooksubscriptioncreatedpayload.d.ts.map +1 -1
  702. package/models/components/webhooksubscriptioncreatedpayload.js +1 -19
  703. package/models/components/webhooksubscriptioncreatedpayload.js.map +1 -1
  704. package/models/components/webhooksubscriptionrevokedpayload.d.ts +0 -23
  705. package/models/components/webhooksubscriptionrevokedpayload.d.ts.map +1 -1
  706. package/models/components/webhooksubscriptionrevokedpayload.js +1 -19
  707. package/models/components/webhooksubscriptionrevokedpayload.js.map +1 -1
  708. package/models/components/webhooksubscriptionuncanceledpayload.d.ts +39 -0
  709. package/models/components/webhooksubscriptionuncanceledpayload.d.ts.map +1 -0
  710. package/models/components/webhooksubscriptionuncanceledpayload.js +62 -0
  711. package/models/components/webhooksubscriptionuncanceledpayload.js.map +1 -0
  712. package/models/components/webhooksubscriptionupdatedpayload.d.ts +0 -23
  713. package/models/components/webhooksubscriptionupdatedpayload.d.ts.map +1 -1
  714. package/models/components/webhooksubscriptionupdatedpayload.js +1 -19
  715. package/models/components/webhooksubscriptionupdatedpayload.js.map +1 -1
  716. package/models/errors/alreadycanceledsubscription.d.ts +0 -23
  717. package/models/errors/alreadycanceledsubscription.d.ts.map +1 -1
  718. package/models/errors/alreadycanceledsubscription.js +1 -19
  719. package/models/errors/alreadycanceledsubscription.js.map +1 -1
  720. package/models/errors/httpclienterrors.js +2 -2
  721. package/models/errors/httpclienterrors.js.map +1 -1
  722. package/models/errors/notpermitted.d.ts +0 -23
  723. package/models/errors/notpermitted.d.ts.map +1 -1
  724. package/models/errors/notpermitted.js +1 -19
  725. package/models/errors/notpermitted.js.map +1 -1
  726. package/models/errors/resourcenotfound.d.ts +0 -23
  727. package/models/errors/resourcenotfound.d.ts.map +1 -1
  728. package/models/errors/resourcenotfound.js +1 -20
  729. package/models/errors/resourcenotfound.js.map +1 -1
  730. package/models/errors/unauthorized.d.ts +0 -23
  731. package/models/errors/unauthorized.d.ts.map +1 -1
  732. package/models/errors/unauthorized.js +1 -19
  733. package/models/errors/unauthorized.js.map +1 -1
  734. package/models/operations/customerportalsubscriptionscancel.d.ts +1 -1
  735. package/models/operations/customerportalsubscriptionsget.d.ts +1 -1
  736. package/models/operations/customerportalsubscriptionsupdate.d.ts +1 -1
  737. package/models/operations/index.d.ts +2 -0
  738. package/models/operations/index.d.ts.map +1 -1
  739. package/models/operations/index.js +2 -0
  740. package/models/operations/index.js.map +1 -1
  741. package/models/operations/subscriptionsrevoke.d.ts +32 -0
  742. package/models/operations/subscriptionsrevoke.d.ts.map +1 -0
  743. package/models/operations/subscriptionsrevoke.js +59 -0
  744. package/models/operations/subscriptionsrevoke.js.map +1 -0
  745. package/models/operations/subscriptionsupdate.d.ts +35 -0
  746. package/models/operations/subscriptionsupdate.d.ts.map +1 -0
  747. package/models/operations/subscriptionsupdate.js +71 -0
  748. package/models/operations/subscriptionsupdate.js.map +1 -0
  749. package/package.json +1 -1
  750. package/sdk/checkouts.js +1 -2
  751. package/sdk/checkouts.js.map +1 -1
  752. package/sdk/customerportal.js +7 -14
  753. package/sdk/customerportal.js.map +1 -1
  754. package/sdk/oauth2.js +1 -2
  755. package/sdk/oauth2.js.map +1 -1
  756. package/sdk/sdk.js +19 -38
  757. package/sdk/sdk.js.map +1 -1
  758. package/sdk/subscriptions.d.ts +15 -0
  759. package/sdk/subscriptions.d.ts.map +1 -1
  760. package/sdk/subscriptions.js +20 -0
  761. package/sdk/subscriptions.js.map +1 -1
  762. package/src/funcs/advertisementsList.ts +2 -2
  763. package/src/funcs/benefitsGrants.ts +2 -2
  764. package/src/funcs/benefitsList.ts +2 -2
  765. package/src/funcs/checkoutLinksList.ts +2 -2
  766. package/src/funcs/checkoutsCustomList.ts +2 -2
  767. package/src/funcs/customFieldsList.ts +2 -2
  768. package/src/funcs/customerPortalBenefitGrantsList.ts +2 -2
  769. package/src/funcs/customerPortalDownloadablesList.ts +2 -2
  770. package/src/funcs/customerPortalLicenseKeysList.ts +2 -2
  771. package/src/funcs/customerPortalOrdersList.ts +2 -2
  772. package/src/funcs/customerPortalSubscriptionsList.ts +2 -2
  773. package/src/funcs/customerPortalSubscriptionsUpdate.ts +4 -1
  774. package/src/funcs/customersList.ts +2 -2
  775. package/src/funcs/discountsList.ts +2 -2
  776. package/src/funcs/externalOrganizationsList.ts +2 -2
  777. package/src/funcs/filesList.ts +2 -2
  778. package/src/funcs/licenseKeysList.ts +2 -2
  779. package/src/funcs/oauth2ClientsList.ts +2 -2
  780. package/src/funcs/ordersList.ts +2 -2
  781. package/src/funcs/organizationsList.ts +2 -2
  782. package/src/funcs/productsList.ts +2 -2
  783. package/src/funcs/repositoriesList.ts +2 -2
  784. package/src/funcs/subscriptionsList.ts +2 -2
  785. package/src/funcs/subscriptionsRevoke.ts +146 -0
  786. package/src/funcs/subscriptionsUpdate.ts +149 -0
  787. package/src/lib/config.ts +3 -3
  788. package/src/lib/security.ts +1 -1
  789. package/src/models/components/authorizeresponseorganization.ts +1 -33
  790. package/src/models/components/authorizeresponseuser.ts +1 -30
  791. package/src/models/components/benefitads.ts +1 -28
  792. package/src/models/components/benefitadscreate.ts +1 -28
  793. package/src/models/components/benefitadssubscriber.ts +1 -30
  794. package/src/models/components/benefitadsupdate.ts +1 -28
  795. package/src/models/components/benefitcustom.ts +1 -28
  796. package/src/models/components/benefitcustomcreate.ts +1 -30
  797. package/src/models/components/benefitcustomsubscriber.ts +1 -30
  798. package/src/models/components/benefitcustomupdate.ts +1 -30
  799. package/src/models/components/benefitdiscord.ts +1 -28
  800. package/src/models/components/benefitdiscordcreate.ts +1 -30
  801. package/src/models/components/benefitdiscordsubscriber.ts +1 -30
  802. package/src/models/components/benefitdiscordupdate.ts +1 -30
  803. package/src/models/components/benefitdownloadables.ts +1 -30
  804. package/src/models/components/benefitdownloadablescreate.ts +1 -30
  805. package/src/models/components/benefitdownloadablessubscriber.ts +1 -31
  806. package/src/models/components/benefitdownloadablesupdate.ts +1 -30
  807. package/src/models/components/benefitgithubrepository.ts +1 -30
  808. package/src/models/components/benefitgithubrepositorycreate.ts +1 -31
  809. package/src/models/components/benefitgithubrepositorysubscriber.ts +1 -33
  810. package/src/models/components/benefitgithubrepositoryupdate.ts +1 -31
  811. package/src/models/components/benefitgrant.ts +13 -0
  812. package/src/models/components/benefitgrantwebhook.ts +13 -0
  813. package/src/models/components/benefitlicensekeys.ts +1 -28
  814. package/src/models/components/benefitlicensekeyscreate.ts +1 -30
  815. package/src/models/components/benefitlicensekeyssubscriber.ts +1 -30
  816. package/src/models/components/benefitlicensekeysupdate.ts +1 -30
  817. package/src/models/components/checkout.ts +9 -4
  818. package/src/models/components/checkoutlink.ts +9 -4
  819. package/src/models/components/checkoutlinkpricecreate.ts +1 -38
  820. package/src/models/components/checkoutlinkproductcreate.ts +1 -38
  821. package/src/models/components/checkoutpricecreate.ts +0 -46
  822. package/src/models/components/checkoutproductcreate.ts +0 -47
  823. package/src/models/components/checkoutpublic.ts +9 -4
  824. package/src/models/components/checkoutpublicconfirmed.ts +10 -30
  825. package/src/models/components/customerbenefitgrantads.ts +10 -0
  826. package/src/models/components/customerbenefitgrantadsupdate.ts +1 -32
  827. package/src/models/components/customerbenefitgrantcustom.ts +10 -0
  828. package/src/models/components/customerbenefitgrantcustomupdate.ts +1 -32
  829. package/src/models/components/customerbenefitgrantdiscord.ts +10 -0
  830. package/src/models/components/customerbenefitgrantdiscordupdate.ts +1 -32
  831. package/src/models/components/customerbenefitgrantdownloadables.ts +10 -0
  832. package/src/models/components/customerbenefitgrantdownloadablesupdate.ts +1 -32
  833. package/src/models/components/customerbenefitgrantgithubrepository.ts +10 -0
  834. package/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts +3 -34
  835. package/src/models/components/customerbenefitgrantlicensekeys.ts +10 -0
  836. package/src/models/components/customerbenefitgrantlicensekeysupdate.ts +1 -32
  837. package/src/models/components/customercancellationreason.ts +41 -0
  838. package/src/models/components/customerordersubscription.ts +37 -0
  839. package/src/models/components/customersession.ts +6 -0
  840. package/src/models/components/customersubscription.ts +37 -0
  841. package/src/models/components/customersubscriptioncancel.ts +118 -0
  842. package/src/models/components/customersubscriptionupdate.ts +26 -21
  843. package/src/models/components/customersubscriptionupdateprice.ts +80 -0
  844. package/src/models/components/customfieldcheckbox.ts +1 -30
  845. package/src/models/components/customfieldcreatecheckbox.ts +1 -30
  846. package/src/models/components/customfieldcreatedate.ts +1 -30
  847. package/src/models/components/customfieldcreatenumber.ts +1 -30
  848. package/src/models/components/customfieldcreateselect.ts +1 -30
  849. package/src/models/components/customfieldcreatetext.ts +1 -30
  850. package/src/models/components/customfielddate.ts +1 -28
  851. package/src/models/components/customfieldnumber.ts +1 -28
  852. package/src/models/components/customfieldselect.ts +1 -28
  853. package/src/models/components/customfieldtext.ts +1 -28
  854. package/src/models/components/customfieldupdatecheckbox.ts +1 -30
  855. package/src/models/components/customfieldupdatedate.ts +1 -30
  856. package/src/models/components/customfieldupdatenumber.ts +1 -30
  857. package/src/models/components/customfieldupdateselect.ts +1 -30
  858. package/src/models/components/customfieldupdatetext.ts +1 -30
  859. package/src/models/components/downloadablefilecreate.ts +1 -30
  860. package/src/models/components/downloadablefileread.ts +1 -30
  861. package/src/models/components/externalorganization.ts +9 -4
  862. package/src/models/components/index.ts +7 -0
  863. package/src/models/components/introspecttokenresponse.ts +14 -18
  864. package/src/models/components/issue.ts +9 -4
  865. package/src/models/components/oauth2client.ts +3 -29
  866. package/src/models/components/oauth2clientconfiguration.ts +3 -36
  867. package/src/models/components/oauth2clientconfigurationupdate.ts +3 -39
  868. package/src/models/components/onev11oauth21tokenpostxcomponentsauthorizationcodetokenrequest.ts +3 -26
  869. package/src/models/components/onev11oauth21tokenpostxcomponentsrefreshtokenrequest.ts +1 -38
  870. package/src/models/components/ordersubscription.ts +37 -0
  871. package/src/models/components/organizationavatarfilecreate.ts +3 -32
  872. package/src/models/components/organizationavatarfileread.ts +3 -31
  873. package/src/models/components/productmediafilecreate.ts +1 -30
  874. package/src/models/components/productmediafileread.ts +1 -26
  875. package/src/models/components/productpriceonetimecustom.ts +2 -67
  876. package/src/models/components/productpriceonetimecustomcreate.ts +2 -63
  877. package/src/models/components/productpriceonetimefixed.ts +2 -66
  878. package/src/models/components/productpriceonetimefixedcreate.ts +2 -62
  879. package/src/models/components/productpriceonetimefree.ts +2 -66
  880. package/src/models/components/productpriceonetimefreecreate.ts +2 -62
  881. package/src/models/components/productpricerecurringcustom.ts +2 -68
  882. package/src/models/components/productpricerecurringfixed.ts +2 -58
  883. package/src/models/components/productpricerecurringfixedcreate.ts +2 -64
  884. package/src/models/components/productpricerecurringfree.ts +2 -67
  885. package/src/models/components/productpricerecurringfreecreate.ts +2 -63
  886. package/src/models/components/repository.ts +9 -4
  887. package/src/models/components/subscription.ts +37 -0
  888. package/src/models/components/subscriptioncancel.ts +144 -0
  889. package/src/models/components/subscriptionupdate.ts +78 -0
  890. package/src/models/components/subscriptionupdateprice.ts +78 -0
  891. package/src/models/components/tokenresponse.ts +1 -26
  892. package/src/models/components/webhookbenefitcreatedpayload.ts +1 -30
  893. package/src/models/components/webhookbenefitgrantcreatedpayload.ts +3 -33
  894. package/src/models/components/webhookbenefitgrantrevokedpayload.ts +3 -33
  895. package/src/models/components/webhookbenefitgrantupdatedpayload.ts +3 -33
  896. package/src/models/components/webhookbenefitupdatedpayload.ts +1 -30
  897. package/src/models/components/webhookcheckoutcreatedpayload.ts +1 -31
  898. package/src/models/components/webhookcheckoutupdatedpayload.ts +1 -31
  899. package/src/models/components/webhookordercreatedpayload.ts +1 -30
  900. package/src/models/components/webhookorganizationupdatedpayload.ts +3 -33
  901. package/src/models/components/webhookpledgecreatedpayload.ts +1 -30
  902. package/src/models/components/webhookpledgeupdatedpayload.ts +1 -30
  903. package/src/models/components/webhookproductcreatedpayload.ts +1 -30
  904. package/src/models/components/webhookproductupdatedpayload.ts +1 -30
  905. package/src/models/components/webhooksubscriptionactivepayload.ts +3 -33
  906. package/src/models/components/webhooksubscriptioncanceledpayload.ts +5 -35
  907. package/src/models/components/webhooksubscriptioncreatedpayload.ts +3 -33
  908. package/src/models/components/webhooksubscriptionrevokedpayload.ts +3 -33
  909. package/src/models/components/webhooksubscriptionuncanceledpayload.ts +90 -0
  910. package/src/models/components/webhooksubscriptionupdatedpayload.ts +3 -33
  911. package/src/models/errors/alreadycanceledsubscription.ts +1 -30
  912. package/src/models/errors/notpermitted.ts +1 -28
  913. package/src/models/errors/resourcenotfound.ts +1 -26
  914. package/src/models/errors/unauthorized.ts +1 -28
  915. package/src/models/operations/customerportalsubscriptionscancel.ts +1 -1
  916. package/src/models/operations/customerportalsubscriptionsget.ts +1 -1
  917. package/src/models/operations/customerportalsubscriptionsupdate.ts +1 -1
  918. package/src/models/operations/index.ts +2 -0
  919. package/src/models/operations/subscriptionsrevoke.ts +69 -0
  920. package/src/models/operations/subscriptionsupdate.ts +83 -0
  921. package/src/sdk/subscriptions.ts +37 -0
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
  import {
@@ -14,26 +13,6 @@ import {
14
13
  SubscriptionRecurringInterval$outboundSchema,
15
14
  } from "./subscriptionrecurringinterval.js";
16
15
 
17
- export const ProductPriceRecurringCustomAmountType = {
18
- Custom: "custom",
19
- } as const;
20
- export type ProductPriceRecurringCustomAmountType = ClosedEnum<
21
- typeof ProductPriceRecurringCustomAmountType
22
- >;
23
-
24
- /**
25
- * The type of the price.
26
- */
27
- export const ProductPriceRecurringCustomType = {
28
- Recurring: "recurring",
29
- } as const;
30
- /**
31
- * The type of the price.
32
- */
33
- export type ProductPriceRecurringCustomType = ClosedEnum<
34
- typeof ProductPriceRecurringCustomType
35
- >;
36
-
37
16
  /**
38
17
  * A pay-what-you-want recurring price for a product, i.e. a subscription.
39
18
  */
@@ -82,51 +61,6 @@ export type ProductPriceRecurringCustom = {
82
61
  recurringInterval: SubscriptionRecurringInterval;
83
62
  };
84
63
 
85
- /** @internal */
86
- export const ProductPriceRecurringCustomAmountType$inboundSchema:
87
- z.ZodNativeEnum<typeof ProductPriceRecurringCustomAmountType> = z.nativeEnum(
88
- ProductPriceRecurringCustomAmountType,
89
- );
90
-
91
- /** @internal */
92
- export const ProductPriceRecurringCustomAmountType$outboundSchema:
93
- z.ZodNativeEnum<typeof ProductPriceRecurringCustomAmountType> =
94
- ProductPriceRecurringCustomAmountType$inboundSchema;
95
-
96
- /**
97
- * @internal
98
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
99
- */
100
- export namespace ProductPriceRecurringCustomAmountType$ {
101
- /** @deprecated use `ProductPriceRecurringCustomAmountType$inboundSchema` instead. */
102
- export const inboundSchema =
103
- ProductPriceRecurringCustomAmountType$inboundSchema;
104
- /** @deprecated use `ProductPriceRecurringCustomAmountType$outboundSchema` instead. */
105
- export const outboundSchema =
106
- ProductPriceRecurringCustomAmountType$outboundSchema;
107
- }
108
-
109
- /** @internal */
110
- export const ProductPriceRecurringCustomType$inboundSchema: z.ZodNativeEnum<
111
- typeof ProductPriceRecurringCustomType
112
- > = z.nativeEnum(ProductPriceRecurringCustomType);
113
-
114
- /** @internal */
115
- export const ProductPriceRecurringCustomType$outboundSchema: z.ZodNativeEnum<
116
- typeof ProductPriceRecurringCustomType
117
- > = ProductPriceRecurringCustomType$inboundSchema;
118
-
119
- /**
120
- * @internal
121
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
122
- */
123
- export namespace ProductPriceRecurringCustomType$ {
124
- /** @deprecated use `ProductPriceRecurringCustomType$inboundSchema` instead. */
125
- export const inboundSchema = ProductPriceRecurringCustomType$inboundSchema;
126
- /** @deprecated use `ProductPriceRecurringCustomType$outboundSchema` instead. */
127
- export const outboundSchema = ProductPriceRecurringCustomType$outboundSchema;
128
- }
129
-
130
64
  /** @internal */
131
65
  export const ProductPriceRecurringCustom$inboundSchema: z.ZodType<
132
66
  ProductPriceRecurringCustom,
@@ -187,14 +121,14 @@ export const ProductPriceRecurringCustom$outboundSchema: z.ZodType<
187
121
  createdAt: z.date().transform(v => v.toISOString()),
188
122
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
189
123
  id: z.string(),
190
- amountType: z.literal("custom").default("custom"),
124
+ amountType: z.literal("custom").default("custom" as const),
191
125
  isArchived: z.boolean(),
192
126
  productId: z.string(),
193
127
  priceCurrency: z.string(),
194
128
  minimumAmount: z.nullable(z.number().int()),
195
129
  maximumAmount: z.nullable(z.number().int()),
196
130
  presetAmount: z.nullable(z.number().int()),
197
- type: z.literal("recurring").default("recurring"),
131
+ type: z.literal("recurring").default("recurring" as const),
198
132
  recurringInterval: SubscriptionRecurringInterval$outboundSchema,
199
133
  }).transform((v) => {
200
134
  return remap$(v, {
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
  import {
@@ -14,22 +13,6 @@ import {
14
13
  SubscriptionRecurringInterval$outboundSchema,
15
14
  } from "./subscriptionrecurringinterval.js";
16
15
 
17
- export const AmountType = {
18
- Fixed: "fixed",
19
- } as const;
20
- export type AmountType = ClosedEnum<typeof AmountType>;
21
-
22
- /**
23
- * The type of the price.
24
- */
25
- export const Type = {
26
- Recurring: "recurring",
27
- } as const;
28
- /**
29
- * The type of the price.
30
- */
31
- export type Type = ClosedEnum<typeof Type>;
32
-
33
16
  /**
34
17
  * A recurring price for a product, i.e. a subscription.
35
18
  */
@@ -70,45 +53,6 @@ export type ProductPriceRecurringFixed = {
70
53
  recurringInterval: SubscriptionRecurringInterval;
71
54
  };
72
55
 
73
- /** @internal */
74
- export const AmountType$inboundSchema: z.ZodNativeEnum<typeof AmountType> = z
75
- .nativeEnum(AmountType);
76
-
77
- /** @internal */
78
- export const AmountType$outboundSchema: z.ZodNativeEnum<typeof AmountType> =
79
- AmountType$inboundSchema;
80
-
81
- /**
82
- * @internal
83
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
- */
85
- export namespace AmountType$ {
86
- /** @deprecated use `AmountType$inboundSchema` instead. */
87
- export const inboundSchema = AmountType$inboundSchema;
88
- /** @deprecated use `AmountType$outboundSchema` instead. */
89
- export const outboundSchema = AmountType$outboundSchema;
90
- }
91
-
92
- /** @internal */
93
- export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
94
- Type,
95
- );
96
-
97
- /** @internal */
98
- export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
99
- Type$inboundSchema;
100
-
101
- /**
102
- * @internal
103
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
104
- */
105
- export namespace Type$ {
106
- /** @deprecated use `Type$inboundSchema` instead. */
107
- export const inboundSchema = Type$inboundSchema;
108
- /** @deprecated use `Type$outboundSchema` instead. */
109
- export const outboundSchema = Type$outboundSchema;
110
- }
111
-
112
56
  /** @internal */
113
57
  export const ProductPriceRecurringFixed$inboundSchema: z.ZodType<
114
58
  ProductPriceRecurringFixed,
@@ -163,12 +107,12 @@ export const ProductPriceRecurringFixed$outboundSchema: z.ZodType<
163
107
  createdAt: z.date().transform(v => v.toISOString()),
164
108
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
165
109
  id: z.string(),
166
- amountType: z.literal("fixed").default("fixed"),
110
+ amountType: z.literal("fixed").default("fixed" as const),
167
111
  isArchived: z.boolean(),
168
112
  productId: z.string(),
169
113
  priceCurrency: z.string(),
170
114
  priceAmount: z.number().int(),
171
- type: z.literal("recurring").default("recurring"),
115
+ type: z.literal("recurring").default("recurring" as const),
172
116
  recurringInterval: SubscriptionRecurringInterval$outboundSchema,
173
117
  }).transform((v) => {
174
118
  return remap$(v, {
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
  import {
@@ -14,20 +13,6 @@ import {
14
13
  SubscriptionRecurringInterval$outboundSchema,
15
14
  } from "./subscriptionrecurringinterval.js";
16
15
 
17
- export const ProductPriceRecurringFixedCreateType = {
18
- Recurring: "recurring",
19
- } as const;
20
- export type ProductPriceRecurringFixedCreateType = ClosedEnum<
21
- typeof ProductPriceRecurringFixedCreateType
22
- >;
23
-
24
- export const ProductPriceRecurringFixedCreateAmountType = {
25
- Fixed: "fixed",
26
- } as const;
27
- export type ProductPriceRecurringFixedCreateAmountType = ClosedEnum<
28
- typeof ProductPriceRecurringFixedCreateAmountType
29
- >;
30
-
31
16
  /**
32
17
  * Schema to create a recurring product price, i.e. a subscription.
33
18
  */
@@ -45,53 +30,6 @@ export type ProductPriceRecurringFixedCreate = {
45
30
  recurringInterval: SubscriptionRecurringInterval;
46
31
  };
47
32
 
48
- /** @internal */
49
- export const ProductPriceRecurringFixedCreateType$inboundSchema:
50
- z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateType> = z.nativeEnum(
51
- ProductPriceRecurringFixedCreateType,
52
- );
53
-
54
- /** @internal */
55
- export const ProductPriceRecurringFixedCreateType$outboundSchema:
56
- z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateType> =
57
- ProductPriceRecurringFixedCreateType$inboundSchema;
58
-
59
- /**
60
- * @internal
61
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
- */
63
- export namespace ProductPriceRecurringFixedCreateType$ {
64
- /** @deprecated use `ProductPriceRecurringFixedCreateType$inboundSchema` instead. */
65
- export const inboundSchema =
66
- ProductPriceRecurringFixedCreateType$inboundSchema;
67
- /** @deprecated use `ProductPriceRecurringFixedCreateType$outboundSchema` instead. */
68
- export const outboundSchema =
69
- ProductPriceRecurringFixedCreateType$outboundSchema;
70
- }
71
-
72
- /** @internal */
73
- export const ProductPriceRecurringFixedCreateAmountType$inboundSchema:
74
- z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateAmountType> = z
75
- .nativeEnum(ProductPriceRecurringFixedCreateAmountType);
76
-
77
- /** @internal */
78
- export const ProductPriceRecurringFixedCreateAmountType$outboundSchema:
79
- z.ZodNativeEnum<typeof ProductPriceRecurringFixedCreateAmountType> =
80
- ProductPriceRecurringFixedCreateAmountType$inboundSchema;
81
-
82
- /**
83
- * @internal
84
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
- */
86
- export namespace ProductPriceRecurringFixedCreateAmountType$ {
87
- /** @deprecated use `ProductPriceRecurringFixedCreateAmountType$inboundSchema` instead. */
88
- export const inboundSchema =
89
- ProductPriceRecurringFixedCreateAmountType$inboundSchema;
90
- /** @deprecated use `ProductPriceRecurringFixedCreateAmountType$outboundSchema` instead. */
91
- export const outboundSchema =
92
- ProductPriceRecurringFixedCreateAmountType$outboundSchema;
93
- }
94
-
95
33
  /** @internal */
96
34
  export const ProductPriceRecurringFixedCreate$inboundSchema: z.ZodType<
97
35
  ProductPriceRecurringFixedCreate,
@@ -127,8 +65,8 @@ export const ProductPriceRecurringFixedCreate$outboundSchema: z.ZodType<
127
65
  z.ZodTypeDef,
128
66
  ProductPriceRecurringFixedCreate
129
67
  > = z.object({
130
- type: z.literal("recurring").default("recurring"),
131
- amountType: z.literal("fixed").default("fixed"),
68
+ type: z.literal("recurring").default("recurring" as const),
69
+ amountType: z.literal("fixed").default("fixed" as const),
132
70
  priceAmount: z.number().int(),
133
71
  priceCurrency: z.string().default("usd"),
134
72
  recurringInterval: SubscriptionRecurringInterval$outboundSchema,
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
  import {
@@ -14,26 +13,6 @@ import {
14
13
  SubscriptionRecurringInterval$outboundSchema,
15
14
  } from "./subscriptionrecurringinterval.js";
16
15
 
17
- export const ProductPriceRecurringFreeAmountType = {
18
- Free: "free",
19
- } as const;
20
- export type ProductPriceRecurringFreeAmountType = ClosedEnum<
21
- typeof ProductPriceRecurringFreeAmountType
22
- >;
23
-
24
- /**
25
- * The type of the price.
26
- */
27
- export const ProductPriceRecurringFreeType = {
28
- Recurring: "recurring",
29
- } as const;
30
- /**
31
- * The type of the price.
32
- */
33
- export type ProductPriceRecurringFreeType = ClosedEnum<
34
- typeof ProductPriceRecurringFreeType
35
- >;
36
-
37
16
  /**
38
17
  * A free recurring price for a product, i.e. a subscription.
39
18
  */
@@ -66,50 +45,6 @@ export type ProductPriceRecurringFree = {
66
45
  recurringInterval: SubscriptionRecurringInterval;
67
46
  };
68
47
 
69
- /** @internal */
70
- export const ProductPriceRecurringFreeAmountType$inboundSchema: z.ZodNativeEnum<
71
- typeof ProductPriceRecurringFreeAmountType
72
- > = z.nativeEnum(ProductPriceRecurringFreeAmountType);
73
-
74
- /** @internal */
75
- export const ProductPriceRecurringFreeAmountType$outboundSchema:
76
- z.ZodNativeEnum<typeof ProductPriceRecurringFreeAmountType> =
77
- ProductPriceRecurringFreeAmountType$inboundSchema;
78
-
79
- /**
80
- * @internal
81
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
- */
83
- export namespace ProductPriceRecurringFreeAmountType$ {
84
- /** @deprecated use `ProductPriceRecurringFreeAmountType$inboundSchema` instead. */
85
- export const inboundSchema =
86
- ProductPriceRecurringFreeAmountType$inboundSchema;
87
- /** @deprecated use `ProductPriceRecurringFreeAmountType$outboundSchema` instead. */
88
- export const outboundSchema =
89
- ProductPriceRecurringFreeAmountType$outboundSchema;
90
- }
91
-
92
- /** @internal */
93
- export const ProductPriceRecurringFreeType$inboundSchema: z.ZodNativeEnum<
94
- typeof ProductPriceRecurringFreeType
95
- > = z.nativeEnum(ProductPriceRecurringFreeType);
96
-
97
- /** @internal */
98
- export const ProductPriceRecurringFreeType$outboundSchema: z.ZodNativeEnum<
99
- typeof ProductPriceRecurringFreeType
100
- > = ProductPriceRecurringFreeType$inboundSchema;
101
-
102
- /**
103
- * @internal
104
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
- */
106
- export namespace ProductPriceRecurringFreeType$ {
107
- /** @deprecated use `ProductPriceRecurringFreeType$inboundSchema` instead. */
108
- export const inboundSchema = ProductPriceRecurringFreeType$inboundSchema;
109
- /** @deprecated use `ProductPriceRecurringFreeType$outboundSchema` instead. */
110
- export const outboundSchema = ProductPriceRecurringFreeType$outboundSchema;
111
- }
112
-
113
48
  /** @internal */
114
49
  export const ProductPriceRecurringFree$inboundSchema: z.ZodType<
115
50
  ProductPriceRecurringFree,
@@ -158,10 +93,10 @@ export const ProductPriceRecurringFree$outboundSchema: z.ZodType<
158
93
  createdAt: z.date().transform(v => v.toISOString()),
159
94
  modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
160
95
  id: z.string(),
161
- amountType: z.literal("free").default("free"),
96
+ amountType: z.literal("free").default("free" as const),
162
97
  isArchived: z.boolean(),
163
98
  productId: z.string(),
164
- type: z.literal("recurring").default("recurring"),
99
+ type: z.literal("recurring").default("recurring" as const),
165
100
  recurringInterval: SubscriptionRecurringInterval$outboundSchema,
166
101
  }).transform((v) => {
167
102
  return remap$(v, {
@@ -5,7 +5,6 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
10
  import {
@@ -14,20 +13,6 @@ import {
14
13
  SubscriptionRecurringInterval$outboundSchema,
15
14
  } from "./subscriptionrecurringinterval.js";
16
15
 
17
- export const ProductPriceRecurringFreeCreateType = {
18
- Recurring: "recurring",
19
- } as const;
20
- export type ProductPriceRecurringFreeCreateType = ClosedEnum<
21
- typeof ProductPriceRecurringFreeCreateType
22
- >;
23
-
24
- export const ProductPriceRecurringFreeCreateAmountType = {
25
- Free: "free",
26
- } as const;
27
- export type ProductPriceRecurringFreeCreateAmountType = ClosedEnum<
28
- typeof ProductPriceRecurringFreeCreateAmountType
29
- >;
30
-
31
16
  /**
32
17
  * Schema to create a free recurring product price, i.e. a subscription.
33
18
  */
@@ -37,52 +22,6 @@ export type ProductPriceRecurringFreeCreate = {
37
22
  recurringInterval: SubscriptionRecurringInterval;
38
23
  };
39
24
 
40
- /** @internal */
41
- export const ProductPriceRecurringFreeCreateType$inboundSchema: z.ZodNativeEnum<
42
- typeof ProductPriceRecurringFreeCreateType
43
- > = z.nativeEnum(ProductPriceRecurringFreeCreateType);
44
-
45
- /** @internal */
46
- export const ProductPriceRecurringFreeCreateType$outboundSchema:
47
- z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateType> =
48
- ProductPriceRecurringFreeCreateType$inboundSchema;
49
-
50
- /**
51
- * @internal
52
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
- */
54
- export namespace ProductPriceRecurringFreeCreateType$ {
55
- /** @deprecated use `ProductPriceRecurringFreeCreateType$inboundSchema` instead. */
56
- export const inboundSchema =
57
- ProductPriceRecurringFreeCreateType$inboundSchema;
58
- /** @deprecated use `ProductPriceRecurringFreeCreateType$outboundSchema` instead. */
59
- export const outboundSchema =
60
- ProductPriceRecurringFreeCreateType$outboundSchema;
61
- }
62
-
63
- /** @internal */
64
- export const ProductPriceRecurringFreeCreateAmountType$inboundSchema:
65
- z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType> = z
66
- .nativeEnum(ProductPriceRecurringFreeCreateAmountType);
67
-
68
- /** @internal */
69
- export const ProductPriceRecurringFreeCreateAmountType$outboundSchema:
70
- z.ZodNativeEnum<typeof ProductPriceRecurringFreeCreateAmountType> =
71
- ProductPriceRecurringFreeCreateAmountType$inboundSchema;
72
-
73
- /**
74
- * @internal
75
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
- */
77
- export namespace ProductPriceRecurringFreeCreateAmountType$ {
78
- /** @deprecated use `ProductPriceRecurringFreeCreateAmountType$inboundSchema` instead. */
79
- export const inboundSchema =
80
- ProductPriceRecurringFreeCreateAmountType$inboundSchema;
81
- /** @deprecated use `ProductPriceRecurringFreeCreateAmountType$outboundSchema` instead. */
82
- export const outboundSchema =
83
- ProductPriceRecurringFreeCreateAmountType$outboundSchema;
84
- }
85
-
86
25
  /** @internal */
87
26
  export const ProductPriceRecurringFreeCreate$inboundSchema: z.ZodType<
88
27
  ProductPriceRecurringFreeCreate,
@@ -112,8 +51,8 @@ export const ProductPriceRecurringFreeCreate$outboundSchema: z.ZodType<
112
51
  z.ZodTypeDef,
113
52
  ProductPriceRecurringFreeCreate
114
53
  > = z.object({
115
- type: z.literal("recurring").default("recurring"),
116
- amountType: z.literal("free").default("free"),
54
+ type: z.literal("recurring").default("recurring" as const),
55
+ amountType: z.literal("free").default("free" as const),
117
56
  recurringInterval: SubscriptionRecurringInterval$outboundSchema,
118
57
  }).transform((v) => {
119
58
  return remap$(v, {
@@ -19,6 +19,11 @@ import {
19
19
  Organization$Outbound,
20
20
  Organization$outboundSchema,
21
21
  } from "./organization.js";
22
+ import {
23
+ Platforms,
24
+ Platforms$inboundSchema,
25
+ Platforms$outboundSchema,
26
+ } from "./platforms.js";
22
27
  import {
23
28
  RepositoryProfileSettings,
24
29
  RepositoryProfileSettings$inboundSchema,
@@ -28,7 +33,7 @@ import {
28
33
 
29
34
  export type Repository = {
30
35
  id: string;
31
- platform?: "github" | undefined;
36
+ platform: Platforms;
32
37
  isPrivate: boolean;
33
38
  name: string;
34
39
  description: string | null;
@@ -50,7 +55,7 @@ export const Repository$inboundSchema: z.ZodType<
50
55
  unknown
51
56
  > = z.object({
52
57
  id: z.string(),
53
- platform: z.literal("github").optional(),
58
+ platform: Platforms$inboundSchema,
54
59
  is_private: z.boolean(),
55
60
  name: z.string(),
56
61
  description: z.nullable(z.string()),
@@ -71,7 +76,7 @@ export const Repository$inboundSchema: z.ZodType<
71
76
  /** @internal */
72
77
  export type Repository$Outbound = {
73
78
  id: string;
74
- platform: "github";
79
+ platform: string;
75
80
  is_private: boolean;
76
81
  name: string;
77
82
  description: string | null;
@@ -90,7 +95,7 @@ export const Repository$outboundSchema: z.ZodType<
90
95
  Repository
91
96
  > = z.object({
92
97
  id: z.string(),
93
- platform: z.literal("github").default("github"),
98
+ platform: Platforms$outboundSchema,
94
99
  isPrivate: z.boolean(),
95
100
  name: z.string(),
96
101
  description: z.nullable(z.string()),
@@ -7,6 +7,11 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ CustomerCancellationReason,
12
+ CustomerCancellationReason$inboundSchema,
13
+ CustomerCancellationReason$outboundSchema,
14
+ } from "./customercancellationreason.js";
10
15
  import {
11
16
  DiscountFixedOnceForeverDurationBase,
12
17
  DiscountFixedOnceForeverDurationBase$inboundSchema,
@@ -99,13 +104,17 @@ export type Subscription = {
99
104
  currentPeriodStart: Date;
100
105
  currentPeriodEnd: Date | null;
101
106
  cancelAtPeriodEnd: boolean;
107
+ canceledAt: Date | null;
102
108
  startedAt: Date | null;
109
+ endsAt: Date | null;
103
110
  endedAt: Date | null;
104
111
  customerId: string;
105
112
  productId: string;
106
113
  priceId: string;
107
114
  discountId: string | null;
108
115
  checkoutId: string | null;
116
+ customerCancellationReason: CustomerCancellationReason | null;
117
+ customerCancellationComment: string | null;
109
118
  metadata: { [k: string]: string | number | boolean };
110
119
  /**
111
120
  * Key-value object storing custom field values.
@@ -308,9 +317,15 @@ export const Subscription$inboundSchema: z.ZodType<
308
317
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
309
318
  ),
310
319
  cancel_at_period_end: z.boolean(),
320
+ canceled_at: z.nullable(
321
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
322
+ ),
311
323
  started_at: z.nullable(
312
324
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
313
325
  ),
326
+ ends_at: z.nullable(
327
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
328
+ ),
314
329
  ended_at: z.nullable(
315
330
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
316
331
  ),
@@ -319,6 +334,10 @@ export const Subscription$inboundSchema: z.ZodType<
319
334
  price_id: z.string(),
320
335
  discount_id: z.nullable(z.string()),
321
336
  checkout_id: z.nullable(z.string()),
337
+ customer_cancellation_reason: z.nullable(
338
+ CustomerCancellationReason$inboundSchema,
339
+ ),
340
+ customer_cancellation_comment: z.nullable(z.string()),
322
341
  metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()])),
323
342
  custom_field_data: z.lazy(() => SubscriptionCustomFieldData$inboundSchema)
324
343
  .optional(),
@@ -343,13 +362,17 @@ export const Subscription$inboundSchema: z.ZodType<
343
362
  "current_period_start": "currentPeriodStart",
344
363
  "current_period_end": "currentPeriodEnd",
345
364
  "cancel_at_period_end": "cancelAtPeriodEnd",
365
+ "canceled_at": "canceledAt",
346
366
  "started_at": "startedAt",
367
+ "ends_at": "endsAt",
347
368
  "ended_at": "endedAt",
348
369
  "customer_id": "customerId",
349
370
  "product_id": "productId",
350
371
  "price_id": "priceId",
351
372
  "discount_id": "discountId",
352
373
  "checkout_id": "checkoutId",
374
+ "customer_cancellation_reason": "customerCancellationReason",
375
+ "customer_cancellation_comment": "customerCancellationComment",
353
376
  "custom_field_data": "customFieldData",
354
377
  "user_id": "userId",
355
378
  });
@@ -367,13 +390,17 @@ export type Subscription$Outbound = {
367
390
  current_period_start: string;
368
391
  current_period_end: string | null;
369
392
  cancel_at_period_end: boolean;
393
+ canceled_at: string | null;
370
394
  started_at: string | null;
395
+ ends_at: string | null;
371
396
  ended_at: string | null;
372
397
  customer_id: string;
373
398
  product_id: string;
374
399
  price_id: string;
375
400
  discount_id: string | null;
376
401
  checkout_id: string | null;
402
+ customer_cancellation_reason: string | null;
403
+ customer_cancellation_comment: string | null;
377
404
  metadata: { [k: string]: string | number | boolean };
378
405
  custom_field_data?: SubscriptionCustomFieldData$Outbound | undefined;
379
406
  customer: SubscriptionCustomer$Outbound;
@@ -405,13 +432,19 @@ export const Subscription$outboundSchema: z.ZodType<
405
432
  currentPeriodStart: z.date().transform(v => v.toISOString()),
406
433
  currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
407
434
  cancelAtPeriodEnd: z.boolean(),
435
+ canceledAt: z.nullable(z.date().transform(v => v.toISOString())),
408
436
  startedAt: z.nullable(z.date().transform(v => v.toISOString())),
437
+ endsAt: z.nullable(z.date().transform(v => v.toISOString())),
409
438
  endedAt: z.nullable(z.date().transform(v => v.toISOString())),
410
439
  customerId: z.string(),
411
440
  productId: z.string(),
412
441
  priceId: z.string(),
413
442
  discountId: z.nullable(z.string()),
414
443
  checkoutId: z.nullable(z.string()),
444
+ customerCancellationReason: z.nullable(
445
+ CustomerCancellationReason$outboundSchema,
446
+ ),
447
+ customerCancellationComment: z.nullable(z.string()),
415
448
  metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()])),
416
449
  customFieldData: z.lazy(() => SubscriptionCustomFieldData$outboundSchema)
417
450
  .optional(),
@@ -436,13 +469,17 @@ export const Subscription$outboundSchema: z.ZodType<
436
469
  currentPeriodStart: "current_period_start",
437
470
  currentPeriodEnd: "current_period_end",
438
471
  cancelAtPeriodEnd: "cancel_at_period_end",
472
+ canceledAt: "canceled_at",
439
473
  startedAt: "started_at",
474
+ endsAt: "ends_at",
440
475
  endedAt: "ended_at",
441
476
  customerId: "customer_id",
442
477
  productId: "product_id",
443
478
  priceId: "price_id",
444
479
  discountId: "discount_id",
445
480
  checkoutId: "checkout_id",
481
+ customerCancellationReason: "customer_cancellation_reason",
482
+ customerCancellationComment: "customer_cancellation_comment",
446
483
  customFieldData: "custom_field_data",
447
484
  userId: "user_id",
448
485
  });