@polar-sh/sdk 0.34.2 → 0.34.4

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 (427) hide show
  1. package/README.md +22 -37
  2. package/bin/mcp-server.js +25 -7
  3. package/bin/mcp-server.js.map +10 -10
  4. package/dist/commonjs/funcs/{customerPortalCustomersGetPaymentMethods.d.ts → customerPortalCustomersListPaymentMethods.d.ts} +4 -4
  5. package/dist/commonjs/funcs/customerPortalCustomersListPaymentMethods.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/{customerPortalCustomersGetPaymentMethods.js → customerPortalCustomersListPaymentMethods.js} +9 -9
  7. package/dist/commonjs/funcs/customerPortalCustomersListPaymentMethods.js.map +1 -0
  8. package/dist/commonjs/funcs/metricsGet.js +1 -0
  9. package/dist/commonjs/funcs/metricsGet.js.map +1 -1
  10. package/dist/commonjs/funcs/subscriptionsList.js +1 -0
  11. package/dist/commonjs/funcs/subscriptionsList.js.map +1 -1
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  15. package/dist/commonjs/mcp-server/server.js +1 -1
  16. package/dist/commonjs/models/components/benefitdiscordcreateproperties.d.ts +5 -0
  17. package/dist/commonjs/models/components/benefitdiscordcreateproperties.d.ts.map +1 -1
  18. package/dist/commonjs/models/components/benefitdiscordcreateproperties.js +4 -0
  19. package/dist/commonjs/models/components/benefitdiscordcreateproperties.js.map +1 -1
  20. package/dist/commonjs/models/components/benefitdiscordproperties.d.ts +5 -0
  21. package/dist/commonjs/models/components/benefitdiscordproperties.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/benefitdiscordproperties.js +4 -0
  23. package/dist/commonjs/models/components/benefitdiscordproperties.js.map +1 -1
  24. package/dist/commonjs/models/components/billingaddressfieldmode.d.ts +31 -0
  25. package/dist/commonjs/models/components/billingaddressfieldmode.d.ts.map +1 -0
  26. package/dist/commonjs/models/components/billingaddressfieldmode.js +51 -0
  27. package/dist/commonjs/models/components/billingaddressfieldmode.js.map +1 -0
  28. package/dist/commonjs/models/components/checkout.d.ts +3 -3
  29. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/checkout.js +5 -5
  31. package/dist/commonjs/models/components/checkout.js.map +1 -1
  32. package/dist/commonjs/models/components/checkoutbillingaddressfields.d.ts +40 -0
  33. package/dist/commonjs/models/components/checkoutbillingaddressfields.d.ts.map +1 -0
  34. package/dist/commonjs/models/components/checkoutbillingaddressfields.js +79 -0
  35. package/dist/commonjs/models/components/checkoutbillingaddressfields.js.map +1 -0
  36. package/dist/commonjs/models/components/checkoutpublic.d.ts +3 -3
  37. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/checkoutpublic.js +5 -5
  39. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  40. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +3 -3
  41. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  42. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +5 -5
  43. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  44. package/dist/commonjs/models/components/customerportalcustomer.d.ts +2 -0
  45. package/dist/commonjs/models/components/customerportalcustomer.d.ts.map +1 -1
  46. package/dist/commonjs/models/components/customerportalcustomer.js +4 -0
  47. package/dist/commonjs/models/components/customerportalcustomer.js.map +1 -1
  48. package/dist/commonjs/models/components/organization.d.ts +3 -0
  49. package/dist/commonjs/models/components/organization.d.ts.map +1 -1
  50. package/dist/commonjs/models/components/organization.js +5 -0
  51. package/dist/commonjs/models/components/organization.js.map +1 -1
  52. package/dist/commonjs/models/components/organizationcreate.d.ts +3 -0
  53. package/dist/commonjs/models/components/organizationcreate.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/organizationcreate.js +5 -0
  55. package/dist/commonjs/models/components/organizationcreate.js.map +1 -1
  56. package/dist/commonjs/models/components/organizationfeaturesettings.d.ts +0 -5
  57. package/dist/commonjs/models/components/organizationfeaturesettings.d.ts.map +1 -1
  58. package/dist/commonjs/models/components/organizationfeaturesettings.js +0 -4
  59. package/dist/commonjs/models/components/organizationfeaturesettings.js.map +1 -1
  60. package/dist/commonjs/models/components/organizationnotificationsettings.d.ts +31 -0
  61. package/dist/commonjs/models/components/organizationnotificationsettings.d.ts.map +1 -0
  62. package/dist/commonjs/models/components/organizationnotificationsettings.js +72 -0
  63. package/dist/commonjs/models/components/organizationnotificationsettings.js.map +1 -0
  64. package/dist/commonjs/models/components/organizationupdate.d.ts +3 -0
  65. package/dist/commonjs/models/components/organizationupdate.d.ts.map +1 -1
  66. package/dist/commonjs/models/components/organizationupdate.js +5 -0
  67. package/dist/commonjs/models/components/organizationupdate.js.map +1 -1
  68. package/dist/commonjs/models/components/paymentmethodcard.d.ts +21 -7
  69. package/dist/commonjs/models/components/paymentmethodcard.d.ts.map +1 -1
  70. package/dist/commonjs/models/components/paymentmethodcard.js +18 -7
  71. package/dist/commonjs/models/components/paymentmethodcard.js.map +1 -1
  72. package/dist/commonjs/models/components/paymentmethodcardmetadata.d.ts +37 -0
  73. package/dist/commonjs/models/components/paymentmethodcardmetadata.d.ts.map +1 -0
  74. package/dist/commonjs/models/components/{paymentmethodcarddata.js → paymentmethodcardmetadata.js} +17 -17
  75. package/dist/commonjs/models/components/paymentmethodcardmetadata.js.map +1 -0
  76. package/dist/commonjs/models/components/paymentmethodgeneric.d.ts +18 -4
  77. package/dist/commonjs/models/components/paymentmethodgeneric.d.ts.map +1 -1
  78. package/dist/commonjs/models/components/paymentmethodgeneric.js +13 -4
  79. package/dist/commonjs/models/components/paymentmethodgeneric.js.map +1 -1
  80. package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.d.ts +88 -0
  81. package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.d.ts.map +1 -0
  82. package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.js +133 -0
  83. package/dist/commonjs/models/operations/customerportalcustomerslistpaymentmethods.js.map +1 -0
  84. package/dist/commonjs/models/operations/eventslist.d.ts +13 -13
  85. package/dist/commonjs/models/operations/eventslist.d.ts.map +1 -1
  86. package/dist/commonjs/models/operations/eventslist.js +16 -16
  87. package/dist/commonjs/models/operations/eventslist.js.map +1 -1
  88. package/dist/commonjs/models/operations/eventslistnames.d.ts +13 -13
  89. package/dist/commonjs/models/operations/eventslistnames.d.ts.map +1 -1
  90. package/dist/commonjs/models/operations/eventslistnames.js +16 -16
  91. package/dist/commonjs/models/operations/eventslistnames.js.map +1 -1
  92. package/dist/commonjs/models/operations/metricsget.d.ts +5 -0
  93. package/dist/commonjs/models/operations/metricsget.d.ts.map +1 -1
  94. package/dist/commonjs/models/operations/metricsget.js +2 -0
  95. package/dist/commonjs/models/operations/metricsget.js.map +1 -1
  96. package/dist/commonjs/models/operations/subscriptionslist.d.ts +29 -0
  97. package/dist/commonjs/models/operations/subscriptionslist.d.ts.map +1 -1
  98. package/dist/commonjs/models/operations/subscriptionslist.js +30 -1
  99. package/dist/commonjs/models/operations/subscriptionslist.js.map +1 -1
  100. package/dist/commonjs/sdk/downloadables.d.ts +0 -5
  101. package/dist/commonjs/sdk/downloadables.d.ts.map +1 -1
  102. package/dist/commonjs/sdk/downloadables.js +0 -8
  103. package/dist/commonjs/sdk/downloadables.js.map +1 -1
  104. package/dist/commonjs/sdk/oauth2.d.ts +0 -3
  105. package/dist/commonjs/sdk/oauth2.d.ts.map +1 -1
  106. package/dist/commonjs/sdk/oauth2.js +0 -4
  107. package/dist/commonjs/sdk/oauth2.js.map +1 -1
  108. package/dist/commonjs/sdk/polarcustomers.d.ts +3 -3
  109. package/dist/commonjs/sdk/polarcustomers.d.ts.map +1 -1
  110. package/dist/commonjs/sdk/polarcustomers.js +4 -4
  111. package/dist/commonjs/sdk/polarcustomers.js.map +1 -1
  112. package/dist/esm/funcs/{customerPortalCustomersGetPaymentMethods.d.ts → customerPortalCustomersListPaymentMethods.d.ts} +4 -4
  113. package/dist/esm/funcs/customerPortalCustomersListPaymentMethods.d.ts.map +1 -0
  114. package/dist/esm/funcs/{customerPortalCustomersGetPaymentMethods.js → customerPortalCustomersListPaymentMethods.js} +8 -8
  115. package/dist/esm/funcs/customerPortalCustomersListPaymentMethods.js.map +1 -0
  116. package/dist/esm/funcs/metricsGet.js +1 -0
  117. package/dist/esm/funcs/metricsGet.js.map +1 -1
  118. package/dist/esm/funcs/subscriptionsList.js +1 -0
  119. package/dist/esm/funcs/subscriptionsList.js.map +1 -1
  120. package/dist/esm/lib/config.d.ts +2 -2
  121. package/dist/esm/lib/config.js +2 -2
  122. package/dist/esm/mcp-server/mcp-server.js +1 -1
  123. package/dist/esm/mcp-server/server.js +1 -1
  124. package/dist/esm/models/components/benefitdiscordcreateproperties.d.ts +5 -0
  125. package/dist/esm/models/components/benefitdiscordcreateproperties.d.ts.map +1 -1
  126. package/dist/esm/models/components/benefitdiscordcreateproperties.js +4 -0
  127. package/dist/esm/models/components/benefitdiscordcreateproperties.js.map +1 -1
  128. package/dist/esm/models/components/benefitdiscordproperties.d.ts +5 -0
  129. package/dist/esm/models/components/benefitdiscordproperties.d.ts.map +1 -1
  130. package/dist/esm/models/components/benefitdiscordproperties.js +4 -0
  131. package/dist/esm/models/components/benefitdiscordproperties.js.map +1 -1
  132. package/dist/esm/models/components/billingaddressfieldmode.d.ts +31 -0
  133. package/dist/esm/models/components/billingaddressfieldmode.d.ts.map +1 -0
  134. package/dist/esm/models/components/billingaddressfieldmode.js +25 -0
  135. package/dist/esm/models/components/billingaddressfieldmode.js.map +1 -0
  136. package/dist/esm/models/components/checkout.d.ts +3 -3
  137. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  138. package/dist/esm/models/components/checkout.js +5 -5
  139. package/dist/esm/models/components/checkout.js.map +1 -1
  140. package/dist/esm/models/components/checkoutbillingaddressfields.d.ts +40 -0
  141. package/dist/esm/models/components/checkoutbillingaddressfields.d.ts.map +1 -0
  142. package/dist/esm/models/components/checkoutbillingaddressfields.js +51 -0
  143. package/dist/esm/models/components/checkoutbillingaddressfields.js.map +1 -0
  144. package/dist/esm/models/components/checkoutpublic.d.ts +3 -3
  145. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  146. package/dist/esm/models/components/checkoutpublic.js +5 -5
  147. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  148. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +3 -3
  149. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  150. package/dist/esm/models/components/checkoutpublicconfirmed.js +5 -5
  151. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  152. package/dist/esm/models/components/customerportalcustomer.d.ts +2 -0
  153. package/dist/esm/models/components/customerportalcustomer.d.ts.map +1 -1
  154. package/dist/esm/models/components/customerportalcustomer.js +4 -0
  155. package/dist/esm/models/components/customerportalcustomer.js.map +1 -1
  156. package/dist/esm/models/components/organization.d.ts +3 -0
  157. package/dist/esm/models/components/organization.d.ts.map +1 -1
  158. package/dist/esm/models/components/organization.js +5 -0
  159. package/dist/esm/models/components/organization.js.map +1 -1
  160. package/dist/esm/models/components/organizationcreate.d.ts +3 -0
  161. package/dist/esm/models/components/organizationcreate.d.ts.map +1 -1
  162. package/dist/esm/models/components/organizationcreate.js +5 -0
  163. package/dist/esm/models/components/organizationcreate.js.map +1 -1
  164. package/dist/esm/models/components/organizationfeaturesettings.d.ts +0 -5
  165. package/dist/esm/models/components/organizationfeaturesettings.d.ts.map +1 -1
  166. package/dist/esm/models/components/organizationfeaturesettings.js +0 -4
  167. package/dist/esm/models/components/organizationfeaturesettings.js.map +1 -1
  168. package/dist/esm/models/components/organizationnotificationsettings.d.ts +31 -0
  169. package/dist/esm/models/components/organizationnotificationsettings.d.ts.map +1 -0
  170. package/dist/esm/models/components/organizationnotificationsettings.js +44 -0
  171. package/dist/esm/models/components/organizationnotificationsettings.js.map +1 -0
  172. package/dist/esm/models/components/organizationupdate.d.ts +3 -0
  173. package/dist/esm/models/components/organizationupdate.d.ts.map +1 -1
  174. package/dist/esm/models/components/organizationupdate.js +5 -0
  175. package/dist/esm/models/components/organizationupdate.js.map +1 -1
  176. package/dist/esm/models/components/paymentmethodcard.d.ts +21 -7
  177. package/dist/esm/models/components/paymentmethodcard.d.ts.map +1 -1
  178. package/dist/esm/models/components/paymentmethodcard.js +18 -7
  179. package/dist/esm/models/components/paymentmethodcard.js.map +1 -1
  180. package/dist/esm/models/components/paymentmethodcardmetadata.d.ts +37 -0
  181. package/dist/esm/models/components/paymentmethodcardmetadata.d.ts.map +1 -0
  182. package/dist/esm/models/components/paymentmethodcardmetadata.js +50 -0
  183. package/dist/esm/models/components/paymentmethodcardmetadata.js.map +1 -0
  184. package/dist/esm/models/components/paymentmethodgeneric.d.ts +18 -4
  185. package/dist/esm/models/components/paymentmethodgeneric.d.ts.map +1 -1
  186. package/dist/esm/models/components/paymentmethodgeneric.js +13 -4
  187. package/dist/esm/models/components/paymentmethodgeneric.js.map +1 -1
  188. package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.d.ts +88 -0
  189. package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.d.ts.map +1 -0
  190. package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.js +101 -0
  191. package/dist/esm/models/operations/customerportalcustomerslistpaymentmethods.js.map +1 -0
  192. package/dist/esm/models/operations/eventslist.d.ts +13 -13
  193. package/dist/esm/models/operations/eventslist.d.ts.map +1 -1
  194. package/dist/esm/models/operations/eventslist.js +13 -13
  195. package/dist/esm/models/operations/eventslist.js.map +1 -1
  196. package/dist/esm/models/operations/eventslistnames.d.ts +13 -13
  197. package/dist/esm/models/operations/eventslistnames.d.ts.map +1 -1
  198. package/dist/esm/models/operations/eventslistnames.js +13 -13
  199. package/dist/esm/models/operations/eventslistnames.js.map +1 -1
  200. package/dist/esm/models/operations/metricsget.d.ts +5 -0
  201. package/dist/esm/models/operations/metricsget.d.ts.map +1 -1
  202. package/dist/esm/models/operations/metricsget.js +2 -0
  203. package/dist/esm/models/operations/metricsget.js.map +1 -1
  204. package/dist/esm/models/operations/subscriptionslist.d.ts +29 -0
  205. package/dist/esm/models/operations/subscriptionslist.d.ts.map +1 -1
  206. package/dist/esm/models/operations/subscriptionslist.js +27 -0
  207. package/dist/esm/models/operations/subscriptionslist.js.map +1 -1
  208. package/dist/esm/sdk/downloadables.d.ts +0 -5
  209. package/dist/esm/sdk/downloadables.d.ts.map +1 -1
  210. package/dist/esm/sdk/downloadables.js +0 -8
  211. package/dist/esm/sdk/downloadables.js.map +1 -1
  212. package/dist/esm/sdk/oauth2.d.ts +0 -3
  213. package/dist/esm/sdk/oauth2.d.ts.map +1 -1
  214. package/dist/esm/sdk/oauth2.js +0 -4
  215. package/dist/esm/sdk/oauth2.js.map +1 -1
  216. package/dist/esm/sdk/polarcustomers.d.ts +3 -3
  217. package/dist/esm/sdk/polarcustomers.d.ts.map +1 -1
  218. package/dist/esm/sdk/polarcustomers.js +4 -4
  219. package/dist/esm/sdk/polarcustomers.js.map +1 -1
  220. package/docs/sdks/downloadables/README.md +0 -70
  221. package/docs/sdks/polarcustomers/README.md +9 -9
  222. package/jsr.json +1 -1
  223. package/package.json +1 -1
  224. package/src/funcs/{customerPortalCustomersGetPaymentMethods.ts → customerPortalCustomersListPaymentMethods.ts} +20 -20
  225. package/src/funcs/metricsGet.ts +1 -0
  226. package/src/funcs/subscriptionsList.ts +1 -0
  227. package/src/lib/config.ts +2 -2
  228. package/src/mcp-server/mcp-server.ts +1 -1
  229. package/src/mcp-server/server.ts +1 -1
  230. package/src/models/components/benefitdiscordcreateproperties.ts +9 -0
  231. package/src/models/components/benefitdiscordproperties.ts +9 -0
  232. package/src/models/components/billingaddressfieldmode.ts +36 -0
  233. package/src/models/components/checkout.ts +11 -14
  234. package/src/models/components/checkoutbillingaddressfields.ts +102 -0
  235. package/src/models/components/checkoutpublic.ts +11 -14
  236. package/src/models/components/checkoutpublicconfirmed.ts +11 -14
  237. package/src/models/components/customerportalcustomer.ts +6 -0
  238. package/src/models/components/organization.ts +12 -0
  239. package/src/models/components/organizationcreate.ts +19 -0
  240. package/src/models/components/organizationfeaturesettings.ts +0 -9
  241. package/src/models/components/organizationnotificationsettings.ts +83 -0
  242. package/src/models/components/organizationupdate.ts +19 -0
  243. package/src/models/components/paymentmethodcard.ts +47 -17
  244. package/src/models/components/{paymentmethodcarddata.ts → paymentmethodcardmetadata.ts} +21 -21
  245. package/src/models/components/paymentmethodgeneric.ts +36 -8
  246. package/src/models/operations/customerportalcustomerslistpaymentmethods.ts +259 -0
  247. package/src/models/operations/eventslist.ts +27 -21
  248. package/src/models/operations/eventslistnames.ts +39 -27
  249. package/src/models/operations/metricsget.ts +7 -0
  250. package/src/models/operations/subscriptionslist.ts +64 -0
  251. package/src/sdk/downloadables.ts +0 -17
  252. package/src/sdk/oauth2.ts +0 -6
  253. package/src/sdk/polarcustomers.ts +11 -11
  254. package/dist/commonjs/funcs/customerPortalCustomersGetPaymentMethods.d.ts.map +0 -1
  255. package/dist/commonjs/funcs/customerPortalCustomersGetPaymentMethods.js.map +0 -1
  256. package/dist/commonjs/funcs/customerPortalDownloadablesGet.d.ts +0 -15
  257. package/dist/commonjs/funcs/customerPortalDownloadablesGet.d.ts.map +0 -1
  258. package/dist/commonjs/funcs/customerPortalDownloadablesGet.js +0 -107
  259. package/dist/commonjs/funcs/customerPortalDownloadablesGet.js.map +0 -1
  260. package/dist/commonjs/funcs/oauth2ClientsCreate.d.ts +0 -18
  261. package/dist/commonjs/funcs/oauth2ClientsCreate.d.ts.map +0 -1
  262. package/dist/commonjs/funcs/oauth2ClientsCreate.js +0 -109
  263. package/dist/commonjs/funcs/oauth2ClientsCreate.js.map +0 -1
  264. package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts +0 -18
  265. package/dist/commonjs/funcs/oauth2ClientsDelete.d.ts.map +0 -1
  266. package/dist/commonjs/funcs/oauth2ClientsDelete.js +0 -114
  267. package/dist/commonjs/funcs/oauth2ClientsDelete.js.map +0 -1
  268. package/dist/commonjs/funcs/oauth2ClientsGet.d.ts +0 -18
  269. package/dist/commonjs/funcs/oauth2ClientsGet.d.ts.map +0 -1
  270. package/dist/commonjs/funcs/oauth2ClientsGet.js +0 -114
  271. package/dist/commonjs/funcs/oauth2ClientsGet.js.map +0 -1
  272. package/dist/commonjs/funcs/oauth2ClientsList.d.ts +0 -21
  273. package/dist/commonjs/funcs/oauth2ClientsList.d.ts.map +0 -1
  274. package/dist/commonjs/funcs/oauth2ClientsList.js +0 -147
  275. package/dist/commonjs/funcs/oauth2ClientsList.js.map +0 -1
  276. package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts +0 -18
  277. package/dist/commonjs/funcs/oauth2ClientsUpdate.d.ts.map +0 -1
  278. package/dist/commonjs/funcs/oauth2ClientsUpdate.js +0 -117
  279. package/dist/commonjs/funcs/oauth2ClientsUpdate.js.map +0 -1
  280. package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.d.ts +0 -39
  281. package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.d.ts.map +0 -1
  282. package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.js +0 -78
  283. package/dist/commonjs/models/components/checkoutcustomerbillingaddressfields.js.map +0 -1
  284. package/dist/commonjs/models/components/listresourceoauth2client.d.ts +0 -33
  285. package/dist/commonjs/models/components/listresourceoauth2client.d.ts.map +0 -1
  286. package/dist/commonjs/models/components/listresourceoauth2client.js +0 -63
  287. package/dist/commonjs/models/components/listresourceoauth2client.js.map +0 -1
  288. package/dist/commonjs/models/components/oauth2client.d.ts +0 -119
  289. package/dist/commonjs/models/components/oauth2client.d.ts.map +0 -1
  290. package/dist/commonjs/models/components/oauth2client.js +0 -166
  291. package/dist/commonjs/models/components/oauth2client.js.map +0 -1
  292. package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts +0 -101
  293. package/dist/commonjs/models/components/oauth2clientconfiguration.d.ts.map +0 -1
  294. package/dist/commonjs/models/components/oauth2clientconfiguration.js +0 -144
  295. package/dist/commonjs/models/components/oauth2clientconfiguration.js.map +0 -1
  296. package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts +0 -103
  297. package/dist/commonjs/models/components/oauth2clientconfigurationupdate.d.ts.map +0 -1
  298. package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js +0 -150
  299. package/dist/commonjs/models/components/oauth2clientconfigurationupdate.js.map +0 -1
  300. package/dist/commonjs/models/components/paymentmethodcarddata.d.ts +0 -37
  301. package/dist/commonjs/models/components/paymentmethodcarddata.d.ts.map +0 -1
  302. package/dist/commonjs/models/components/paymentmethodcarddata.js.map +0 -1
  303. package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.d.ts +0 -88
  304. package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.d.ts.map +0 -1
  305. package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.js +0 -133
  306. package/dist/commonjs/models/operations/customerportalcustomersgetpaymentmethods.js.map +0 -1
  307. package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts +0 -29
  308. package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts.map +0 -1
  309. package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js +0 -61
  310. package/dist/commonjs/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js.map +0 -1
  311. package/dist/commonjs/models/operations/oauth2clientslist.d.ts +0 -63
  312. package/dist/commonjs/models/operations/oauth2clientslist.d.ts.map +0 -1
  313. package/dist/commonjs/models/operations/oauth2clientslist.js +0 -98
  314. package/dist/commonjs/models/operations/oauth2clientslist.js.map +0 -1
  315. package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts +0 -29
  316. package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +0 -1
  317. package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js +0 -68
  318. package/dist/commonjs/models/operations/oauth2clientsoauth2deleteclient.js.map +0 -1
  319. package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts +0 -29
  320. package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.d.ts.map +0 -1
  321. package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js +0 -68
  322. package/dist/commonjs/models/operations/oauth2clientsoauth2getclient.js.map +0 -1
  323. package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts +0 -32
  324. package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.d.ts.map +0 -1
  325. package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js +0 -73
  326. package/dist/commonjs/models/operations/oauth2clientsoauth2updateclient.js.map +0 -1
  327. package/dist/commonjs/sdk/clients.d.ts +0 -47
  328. package/dist/commonjs/sdk/clients.d.ts.map +0 -1
  329. package/dist/commonjs/sdk/clients.js +0 -63
  330. package/dist/commonjs/sdk/clients.js.map +0 -1
  331. package/dist/esm/funcs/customerPortalCustomersGetPaymentMethods.d.ts.map +0 -1
  332. package/dist/esm/funcs/customerPortalCustomersGetPaymentMethods.js.map +0 -1
  333. package/dist/esm/funcs/customerPortalDownloadablesGet.d.ts +0 -15
  334. package/dist/esm/funcs/customerPortalDownloadablesGet.d.ts.map +0 -1
  335. package/dist/esm/funcs/customerPortalDownloadablesGet.js +0 -81
  336. package/dist/esm/funcs/customerPortalDownloadablesGet.js.map +0 -1
  337. package/dist/esm/funcs/oauth2ClientsCreate.d.ts +0 -18
  338. package/dist/esm/funcs/oauth2ClientsCreate.d.ts.map +0 -1
  339. package/dist/esm/funcs/oauth2ClientsCreate.js +0 -83
  340. package/dist/esm/funcs/oauth2ClientsCreate.js.map +0 -1
  341. package/dist/esm/funcs/oauth2ClientsDelete.d.ts +0 -18
  342. package/dist/esm/funcs/oauth2ClientsDelete.d.ts.map +0 -1
  343. package/dist/esm/funcs/oauth2ClientsDelete.js +0 -88
  344. package/dist/esm/funcs/oauth2ClientsDelete.js.map +0 -1
  345. package/dist/esm/funcs/oauth2ClientsGet.d.ts +0 -18
  346. package/dist/esm/funcs/oauth2ClientsGet.d.ts.map +0 -1
  347. package/dist/esm/funcs/oauth2ClientsGet.js +0 -88
  348. package/dist/esm/funcs/oauth2ClientsGet.js.map +0 -1
  349. package/dist/esm/funcs/oauth2ClientsList.d.ts +0 -21
  350. package/dist/esm/funcs/oauth2ClientsList.d.ts.map +0 -1
  351. package/dist/esm/funcs/oauth2ClientsList.js +0 -121
  352. package/dist/esm/funcs/oauth2ClientsList.js.map +0 -1
  353. package/dist/esm/funcs/oauth2ClientsUpdate.d.ts +0 -18
  354. package/dist/esm/funcs/oauth2ClientsUpdate.d.ts.map +0 -1
  355. package/dist/esm/funcs/oauth2ClientsUpdate.js +0 -91
  356. package/dist/esm/funcs/oauth2ClientsUpdate.js.map +0 -1
  357. package/dist/esm/models/components/checkoutcustomerbillingaddressfields.d.ts +0 -39
  358. package/dist/esm/models/components/checkoutcustomerbillingaddressfields.d.ts.map +0 -1
  359. package/dist/esm/models/components/checkoutcustomerbillingaddressfields.js +0 -50
  360. package/dist/esm/models/components/checkoutcustomerbillingaddressfields.js.map +0 -1
  361. package/dist/esm/models/components/listresourceoauth2client.d.ts +0 -33
  362. package/dist/esm/models/components/listresourceoauth2client.d.ts.map +0 -1
  363. package/dist/esm/models/components/listresourceoauth2client.js +0 -35
  364. package/dist/esm/models/components/listresourceoauth2client.js.map +0 -1
  365. package/dist/esm/models/components/oauth2client.d.ts +0 -119
  366. package/dist/esm/models/components/oauth2client.d.ts.map +0 -1
  367. package/dist/esm/models/components/oauth2client.js +0 -138
  368. package/dist/esm/models/components/oauth2client.js.map +0 -1
  369. package/dist/esm/models/components/oauth2clientconfiguration.d.ts +0 -101
  370. package/dist/esm/models/components/oauth2clientconfiguration.d.ts.map +0 -1
  371. package/dist/esm/models/components/oauth2clientconfiguration.js +0 -116
  372. package/dist/esm/models/components/oauth2clientconfiguration.js.map +0 -1
  373. package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts +0 -103
  374. package/dist/esm/models/components/oauth2clientconfigurationupdate.d.ts.map +0 -1
  375. package/dist/esm/models/components/oauth2clientconfigurationupdate.js +0 -122
  376. package/dist/esm/models/components/oauth2clientconfigurationupdate.js.map +0 -1
  377. package/dist/esm/models/components/paymentmethodcarddata.d.ts +0 -37
  378. package/dist/esm/models/components/paymentmethodcarddata.d.ts.map +0 -1
  379. package/dist/esm/models/components/paymentmethodcarddata.js +0 -50
  380. package/dist/esm/models/components/paymentmethodcarddata.js.map +0 -1
  381. package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.d.ts +0 -88
  382. package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.d.ts.map +0 -1
  383. package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.js +0 -101
  384. package/dist/esm/models/operations/customerportalcustomersgetpaymentmethods.js.map +0 -1
  385. package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts +0 -29
  386. package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.d.ts.map +0 -1
  387. package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js +0 -33
  388. package/dist/esm/models/operations/customerportaldownloadablescustomerportaldownloadablesget.js.map +0 -1
  389. package/dist/esm/models/operations/oauth2clientslist.d.ts +0 -63
  390. package/dist/esm/models/operations/oauth2clientslist.d.ts.map +0 -1
  391. package/dist/esm/models/operations/oauth2clientslist.js +0 -68
  392. package/dist/esm/models/operations/oauth2clientslist.js.map +0 -1
  393. package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts +0 -29
  394. package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.d.ts.map +0 -1
  395. package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js +0 -40
  396. package/dist/esm/models/operations/oauth2clientsoauth2deleteclient.js.map +0 -1
  397. package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts +0 -29
  398. package/dist/esm/models/operations/oauth2clientsoauth2getclient.d.ts.map +0 -1
  399. package/dist/esm/models/operations/oauth2clientsoauth2getclient.js +0 -40
  400. package/dist/esm/models/operations/oauth2clientsoauth2getclient.js.map +0 -1
  401. package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts +0 -32
  402. package/dist/esm/models/operations/oauth2clientsoauth2updateclient.d.ts.map +0 -1
  403. package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js +0 -45
  404. package/dist/esm/models/operations/oauth2clientsoauth2updateclient.js.map +0 -1
  405. package/dist/esm/sdk/clients.d.ts +0 -47
  406. package/dist/esm/sdk/clients.d.ts.map +0 -1
  407. package/dist/esm/sdk/clients.js +0 -59
  408. package/dist/esm/sdk/clients.js.map +0 -1
  409. package/docs/sdks/clients/README.md +0 -401
  410. package/src/funcs/customerPortalDownloadablesGet.ts +0 -179
  411. package/src/funcs/oauth2ClientsCreate.ts +0 -176
  412. package/src/funcs/oauth2ClientsDelete.ts +0 -183
  413. package/src/funcs/oauth2ClientsGet.ts +0 -182
  414. package/src/funcs/oauth2ClientsList.ts +0 -255
  415. package/src/funcs/oauth2ClientsUpdate.ts +0 -186
  416. package/src/models/components/checkoutcustomerbillingaddressfields.ts +0 -100
  417. package/src/models/components/listresourceoauth2client.ts +0 -82
  418. package/src/models/components/oauth2client.ts +0 -231
  419. package/src/models/components/oauth2clientconfiguration.ts +0 -205
  420. package/src/models/components/oauth2clientconfigurationupdate.ts +0 -213
  421. package/src/models/operations/customerportalcustomersgetpaymentmethods.ts +0 -259
  422. package/src/models/operations/customerportaldownloadablescustomerportaldownloadablesget.ts +0 -79
  423. package/src/models/operations/oauth2clientslist.ts +0 -149
  424. package/src/models/operations/oauth2clientsoauth2deleteclient.ts +0 -81
  425. package/src/models/operations/oauth2clientsoauth2getclient.ts +0 -80
  426. package/src/models/operations/oauth2clientsoauth2updateclient.ts +0 -95
  427. package/src/sdk/clients.ts +0 -107
@@ -0,0 +1,102 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+ import {
11
+ BillingAddressFieldMode,
12
+ BillingAddressFieldMode$inboundSchema,
13
+ BillingAddressFieldMode$outboundSchema,
14
+ } from "./billingaddressfieldmode.js";
15
+
16
+ export type CheckoutBillingAddressFields = {
17
+ country: BillingAddressFieldMode;
18
+ state: BillingAddressFieldMode;
19
+ city: BillingAddressFieldMode;
20
+ postalCode: BillingAddressFieldMode;
21
+ line1: BillingAddressFieldMode;
22
+ line2: BillingAddressFieldMode;
23
+ };
24
+
25
+ /** @internal */
26
+ export const CheckoutBillingAddressFields$inboundSchema: z.ZodType<
27
+ CheckoutBillingAddressFields,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ country: BillingAddressFieldMode$inboundSchema,
32
+ state: BillingAddressFieldMode$inboundSchema,
33
+ city: BillingAddressFieldMode$inboundSchema,
34
+ postal_code: BillingAddressFieldMode$inboundSchema,
35
+ line1: BillingAddressFieldMode$inboundSchema,
36
+ line2: BillingAddressFieldMode$inboundSchema,
37
+ }).transform((v) => {
38
+ return remap$(v, {
39
+ "postal_code": "postalCode",
40
+ });
41
+ });
42
+
43
+ /** @internal */
44
+ export type CheckoutBillingAddressFields$Outbound = {
45
+ country: string;
46
+ state: string;
47
+ city: string;
48
+ postal_code: string;
49
+ line1: string;
50
+ line2: string;
51
+ };
52
+
53
+ /** @internal */
54
+ export const CheckoutBillingAddressFields$outboundSchema: z.ZodType<
55
+ CheckoutBillingAddressFields$Outbound,
56
+ z.ZodTypeDef,
57
+ CheckoutBillingAddressFields
58
+ > = z.object({
59
+ country: BillingAddressFieldMode$outboundSchema,
60
+ state: BillingAddressFieldMode$outboundSchema,
61
+ city: BillingAddressFieldMode$outboundSchema,
62
+ postalCode: BillingAddressFieldMode$outboundSchema,
63
+ line1: BillingAddressFieldMode$outboundSchema,
64
+ line2: BillingAddressFieldMode$outboundSchema,
65
+ }).transform((v) => {
66
+ return remap$(v, {
67
+ postalCode: "postal_code",
68
+ });
69
+ });
70
+
71
+ /**
72
+ * @internal
73
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
+ */
75
+ export namespace CheckoutBillingAddressFields$ {
76
+ /** @deprecated use `CheckoutBillingAddressFields$inboundSchema` instead. */
77
+ export const inboundSchema = CheckoutBillingAddressFields$inboundSchema;
78
+ /** @deprecated use `CheckoutBillingAddressFields$outboundSchema` instead. */
79
+ export const outboundSchema = CheckoutBillingAddressFields$outboundSchema;
80
+ /** @deprecated use `CheckoutBillingAddressFields$Outbound` instead. */
81
+ export type Outbound = CheckoutBillingAddressFields$Outbound;
82
+ }
83
+
84
+ export function checkoutBillingAddressFieldsToJSON(
85
+ checkoutBillingAddressFields: CheckoutBillingAddressFields,
86
+ ): string {
87
+ return JSON.stringify(
88
+ CheckoutBillingAddressFields$outboundSchema.parse(
89
+ checkoutBillingAddressFields,
90
+ ),
91
+ );
92
+ }
93
+
94
+ export function checkoutBillingAddressFieldsFromJSON(
95
+ jsonString: string,
96
+ ): SafeParseResult<CheckoutBillingAddressFields, SDKValidationError> {
97
+ return safeParse(
98
+ jsonString,
99
+ (x) => CheckoutBillingAddressFields$inboundSchema.parse(JSON.parse(x)),
100
+ `Failed to parse 'CheckoutBillingAddressFields' from JSON`,
101
+ );
102
+ }
@@ -20,11 +20,11 @@ import {
20
20
  AttachedCustomField$outboundSchema,
21
21
  } from "./attachedcustomfield.js";
22
22
  import {
23
- CheckoutCustomerBillingAddressFields,
24
- CheckoutCustomerBillingAddressFields$inboundSchema,
25
- CheckoutCustomerBillingAddressFields$Outbound,
26
- CheckoutCustomerBillingAddressFields$outboundSchema,
27
- } from "./checkoutcustomerbillingaddressfields.js";
23
+ CheckoutBillingAddressFields,
24
+ CheckoutBillingAddressFields$inboundSchema,
25
+ CheckoutBillingAddressFields$Outbound,
26
+ CheckoutBillingAddressFields$outboundSchema,
27
+ } from "./checkoutbillingaddressfields.js";
28
28
  import {
29
29
  CheckoutDiscountFixedOnceForeverDuration,
30
30
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
@@ -225,7 +225,7 @@ export type CheckoutPublic = {
225
225
  customerBillingAddress: Address | null;
226
226
  customerTaxId: string | null;
227
227
  paymentProcessorMetadata: { [k: string]: string };
228
- customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
228
+ billingAddressFields: CheckoutBillingAddressFields;
229
229
  /**
230
230
  * List of products available to select.
231
231
  */
@@ -483,8 +483,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
483
483
  customer_billing_address: z.nullable(Address$inboundSchema),
484
484
  customer_tax_id: z.nullable(z.string()),
485
485
  payment_processor_metadata: z.record(z.string()),
486
- customer_billing_address_fields:
487
- CheckoutCustomerBillingAddressFields$inboundSchema,
486
+ billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
488
487
  products: z.array(CheckoutProduct$inboundSchema),
489
488
  product: CheckoutProduct$inboundSchema,
490
489
  product_price: z.union([
@@ -534,7 +533,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
534
533
  "customer_billing_address": "customerBillingAddress",
535
534
  "customer_tax_id": "customerTaxId",
536
535
  "payment_processor_metadata": "paymentProcessorMetadata",
537
- "customer_billing_address_fields": "customerBillingAddressFields",
536
+ "billing_address_fields": "billingAddressFields",
538
537
  "product_price": "productPrice",
539
538
  "attached_custom_fields": "attachedCustomFields",
540
539
  });
@@ -580,8 +579,7 @@ export type CheckoutPublic$Outbound = {
580
579
  customer_billing_address: Address$Outbound | null;
581
580
  customer_tax_id: string | null;
582
581
  payment_processor_metadata: { [k: string]: string };
583
- customer_billing_address_fields:
584
- CheckoutCustomerBillingAddressFields$Outbound;
582
+ billing_address_fields: CheckoutBillingAddressFields$Outbound;
585
583
  products: Array<CheckoutProduct$Outbound>;
586
584
  product: CheckoutProduct$Outbound;
587
585
  product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
@@ -646,8 +644,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
646
644
  customerBillingAddress: z.nullable(Address$outboundSchema),
647
645
  customerTaxId: z.nullable(z.string()),
648
646
  paymentProcessorMetadata: z.record(z.string()),
649
- customerBillingAddressFields:
650
- CheckoutCustomerBillingAddressFields$outboundSchema,
647
+ billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
651
648
  products: z.array(CheckoutProduct$outboundSchema),
652
649
  product: CheckoutProduct$outboundSchema,
653
650
  productPrice: z.union([
@@ -697,7 +694,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
697
694
  customerBillingAddress: "customer_billing_address",
698
695
  customerTaxId: "customer_tax_id",
699
696
  paymentProcessorMetadata: "payment_processor_metadata",
700
- customerBillingAddressFields: "customer_billing_address_fields",
697
+ billingAddressFields: "billing_address_fields",
701
698
  productPrice: "product_price",
702
699
  attachedCustomFields: "attached_custom_fields",
703
700
  });
@@ -20,11 +20,11 @@ import {
20
20
  AttachedCustomField$outboundSchema,
21
21
  } from "./attachedcustomfield.js";
22
22
  import {
23
- CheckoutCustomerBillingAddressFields,
24
- CheckoutCustomerBillingAddressFields$inboundSchema,
25
- CheckoutCustomerBillingAddressFields$Outbound,
26
- CheckoutCustomerBillingAddressFields$outboundSchema,
27
- } from "./checkoutcustomerbillingaddressfields.js";
23
+ CheckoutBillingAddressFields,
24
+ CheckoutBillingAddressFields$inboundSchema,
25
+ CheckoutBillingAddressFields$Outbound,
26
+ CheckoutBillingAddressFields$outboundSchema,
27
+ } from "./checkoutbillingaddressfields.js";
28
28
  import {
29
29
  CheckoutDiscountFixedOnceForeverDuration,
30
30
  CheckoutDiscountFixedOnceForeverDuration$inboundSchema,
@@ -229,7 +229,7 @@ export type CheckoutPublicConfirmed = {
229
229
  customerBillingAddress: Address | null;
230
230
  customerTaxId: string | null;
231
231
  paymentProcessorMetadata: { [k: string]: string };
232
- customerBillingAddressFields: CheckoutCustomerBillingAddressFields;
232
+ billingAddressFields: CheckoutBillingAddressFields;
233
233
  /**
234
234
  * List of products available to select.
235
235
  */
@@ -499,8 +499,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
499
499
  customer_billing_address: z.nullable(Address$inboundSchema),
500
500
  customer_tax_id: z.nullable(z.string()),
501
501
  payment_processor_metadata: z.record(z.string()),
502
- customer_billing_address_fields:
503
- CheckoutCustomerBillingAddressFields$inboundSchema,
502
+ billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
504
503
  products: z.array(CheckoutProduct$inboundSchema),
505
504
  product: CheckoutProduct$inboundSchema,
506
505
  product_price: z.union([
@@ -551,7 +550,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
551
550
  "customer_billing_address": "customerBillingAddress",
552
551
  "customer_tax_id": "customerTaxId",
553
552
  "payment_processor_metadata": "paymentProcessorMetadata",
554
- "customer_billing_address_fields": "customerBillingAddressFields",
553
+ "billing_address_fields": "billingAddressFields",
555
554
  "product_price": "productPrice",
556
555
  "attached_custom_fields": "attachedCustomFields",
557
556
  "customer_session_token": "customerSessionToken",
@@ -598,8 +597,7 @@ export type CheckoutPublicConfirmed$Outbound = {
598
597
  customer_billing_address: Address$Outbound | null;
599
598
  customer_tax_id: string | null;
600
599
  payment_processor_metadata: { [k: string]: string };
601
- customer_billing_address_fields:
602
- CheckoutCustomerBillingAddressFields$Outbound;
600
+ billing_address_fields: CheckoutBillingAddressFields$Outbound;
603
601
  products: Array<CheckoutProduct$Outbound>;
604
602
  product: CheckoutProduct$Outbound;
605
603
  product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
@@ -665,8 +663,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
665
663
  customerBillingAddress: z.nullable(Address$outboundSchema),
666
664
  customerTaxId: z.nullable(z.string()),
667
665
  paymentProcessorMetadata: z.record(z.string()),
668
- customerBillingAddressFields:
669
- CheckoutCustomerBillingAddressFields$outboundSchema,
666
+ billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
670
667
  products: z.array(CheckoutProduct$outboundSchema),
671
668
  product: CheckoutProduct$outboundSchema,
672
669
  productPrice: z.union([
@@ -717,7 +714,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
717
714
  customerBillingAddress: "customer_billing_address",
718
715
  customerTaxId: "customer_tax_id",
719
716
  paymentProcessorMetadata: "payment_processor_metadata",
720
- customerBillingAddressFields: "customer_billing_address_fields",
717
+ billingAddressFields: "billing_address_fields",
721
718
  productPrice: "product_price",
722
719
  attachedCustomFields: "attached_custom_fields",
723
720
  customerSessionToken: "customer_session_token",
@@ -46,6 +46,7 @@ export type CustomerPortalCustomer = {
46
46
  billingAddress: Address | null;
47
47
  taxId: Array<string | TaxIDFormat | null> | null;
48
48
  oauthAccounts: { [k: string]: CustomerPortalOAuthAccount };
49
+ defaultPaymentMethodId?: string | null | undefined;
49
50
  };
50
51
 
51
52
  /** @internal */
@@ -117,6 +118,7 @@ export const CustomerPortalCustomer$inboundSchema: z.ZodType<
117
118
  z.array(z.nullable(z.union([z.string(), TaxIDFormat$inboundSchema]))),
118
119
  ),
119
120
  oauth_accounts: z.record(CustomerPortalOAuthAccount$inboundSchema),
121
+ default_payment_method_id: z.nullable(z.string()).optional(),
120
122
  }).transform((v) => {
121
123
  return remap$(v, {
122
124
  "created_at": "createdAt",
@@ -125,6 +127,7 @@ export const CustomerPortalCustomer$inboundSchema: z.ZodType<
125
127
  "billing_address": "billingAddress",
126
128
  "tax_id": "taxId",
127
129
  "oauth_accounts": "oauthAccounts",
130
+ "default_payment_method_id": "defaultPaymentMethodId",
128
131
  });
129
132
  });
130
133
 
@@ -139,6 +142,7 @@ export type CustomerPortalCustomer$Outbound = {
139
142
  billing_address: Address$Outbound | null;
140
143
  tax_id: Array<string | string | null> | null;
141
144
  oauth_accounts: { [k: string]: CustomerPortalOAuthAccount$Outbound };
145
+ default_payment_method_id?: string | null | undefined;
142
146
  };
143
147
 
144
148
  /** @internal */
@@ -158,6 +162,7 @@ export const CustomerPortalCustomer$outboundSchema: z.ZodType<
158
162
  z.array(z.nullable(z.union([z.string(), TaxIDFormat$outboundSchema]))),
159
163
  ),
160
164
  oauthAccounts: z.record(CustomerPortalOAuthAccount$outboundSchema),
165
+ defaultPaymentMethodId: z.nullable(z.string()).optional(),
161
166
  }).transform((v) => {
162
167
  return remap$(v, {
163
168
  createdAt: "created_at",
@@ -166,6 +171,7 @@ export const CustomerPortalCustomer$outboundSchema: z.ZodType<
166
171
  billingAddress: "billing_address",
167
172
  taxId: "tax_id",
168
173
  oauthAccounts: "oauth_accounts",
174
+ defaultPaymentMethodId: "default_payment_method_id",
169
175
  });
170
176
  });
171
177
 
@@ -13,6 +13,12 @@ import {
13
13
  OrganizationFeatureSettings$Outbound,
14
14
  OrganizationFeatureSettings$outboundSchema,
15
15
  } from "./organizationfeaturesettings.js";
16
+ import {
17
+ OrganizationNotificationSettings,
18
+ OrganizationNotificationSettings$inboundSchema,
19
+ OrganizationNotificationSettings$Outbound,
20
+ OrganizationNotificationSettings$outboundSchema,
21
+ } from "./organizationnotificationsettings.js";
16
22
  import {
17
23
  OrganizationSocialLink,
18
24
  OrganizationSocialLink$inboundSchema,
@@ -72,6 +78,7 @@ export type Organization = {
72
78
  */
73
79
  featureSettings: OrganizationFeatureSettings | null;
74
80
  subscriptionSettings: OrganizationSubscriptionSettings;
81
+ notificationSettings: OrganizationNotificationSettings;
75
82
  };
76
83
 
77
84
  /** @internal */
@@ -96,6 +103,7 @@ export const Organization$inboundSchema: z.ZodType<
96
103
  ),
97
104
  feature_settings: z.nullable(OrganizationFeatureSettings$inboundSchema),
98
105
  subscription_settings: OrganizationSubscriptionSettings$inboundSchema,
106
+ notification_settings: OrganizationNotificationSettings$inboundSchema,
99
107
  }).transform((v) => {
100
108
  return remap$(v, {
101
109
  "created_at": "createdAt",
@@ -104,6 +112,7 @@ export const Organization$inboundSchema: z.ZodType<
104
112
  "details_submitted_at": "detailsSubmittedAt",
105
113
  "feature_settings": "featureSettings",
106
114
  "subscription_settings": "subscriptionSettings",
115
+ "notification_settings": "notificationSettings",
107
116
  });
108
117
  });
109
118
 
@@ -121,6 +130,7 @@ export type Organization$Outbound = {
121
130
  details_submitted_at: string | null;
122
131
  feature_settings: OrganizationFeatureSettings$Outbound | null;
123
132
  subscription_settings: OrganizationSubscriptionSettings$Outbound;
133
+ notification_settings: OrganizationNotificationSettings$Outbound;
124
134
  };
125
135
 
126
136
  /** @internal */
@@ -141,6 +151,7 @@ export const Organization$outboundSchema: z.ZodType<
141
151
  detailsSubmittedAt: z.nullable(z.date().transform(v => v.toISOString())),
142
152
  featureSettings: z.nullable(OrganizationFeatureSettings$outboundSchema),
143
153
  subscriptionSettings: OrganizationSubscriptionSettings$outboundSchema,
154
+ notificationSettings: OrganizationNotificationSettings$outboundSchema,
144
155
  }).transform((v) => {
145
156
  return remap$(v, {
146
157
  createdAt: "created_at",
@@ -149,6 +160,7 @@ export const Organization$outboundSchema: z.ZodType<
149
160
  detailsSubmittedAt: "details_submitted_at",
150
161
  featureSettings: "feature_settings",
151
162
  subscriptionSettings: "subscription_settings",
163
+ notificationSettings: "notification_settings",
152
164
  });
153
165
  });
154
166
 
@@ -19,6 +19,12 @@ import {
19
19
  OrganizationFeatureSettings$Outbound,
20
20
  OrganizationFeatureSettings$outboundSchema,
21
21
  } from "./organizationfeaturesettings.js";
22
+ import {
23
+ OrganizationNotificationSettings,
24
+ OrganizationNotificationSettings$inboundSchema,
25
+ OrganizationNotificationSettings$Outbound,
26
+ OrganizationNotificationSettings$outboundSchema,
27
+ } from "./organizationnotificationsettings.js";
22
28
  import {
23
29
  OrganizationSocialLink,
24
30
  OrganizationSocialLink$inboundSchema,
@@ -54,6 +60,7 @@ export type OrganizationCreate = {
54
60
  details?: OrganizationDetails | null | undefined;
55
61
  featureSettings?: OrganizationFeatureSettings | null | undefined;
56
62
  subscriptionSettings?: OrganizationSubscriptionSettings | null | undefined;
63
+ notificationSettings?: OrganizationNotificationSettings | null | undefined;
57
64
  };
58
65
 
59
66
  /** @internal */
@@ -74,11 +81,15 @@ export const OrganizationCreate$inboundSchema: z.ZodType<
74
81
  subscription_settings: z.nullable(
75
82
  OrganizationSubscriptionSettings$inboundSchema,
76
83
  ).optional(),
84
+ notification_settings: z.nullable(
85
+ OrganizationNotificationSettings$inboundSchema,
86
+ ).optional(),
77
87
  }).transform((v) => {
78
88
  return remap$(v, {
79
89
  "avatar_url": "avatarUrl",
80
90
  "feature_settings": "featureSettings",
81
91
  "subscription_settings": "subscriptionSettings",
92
+ "notification_settings": "notificationSettings",
82
93
  });
83
94
  });
84
95
 
@@ -96,6 +107,10 @@ export type OrganizationCreate$Outbound = {
96
107
  | OrganizationSubscriptionSettings$Outbound
97
108
  | null
98
109
  | undefined;
110
+ notification_settings?:
111
+ | OrganizationNotificationSettings$Outbound
112
+ | null
113
+ | undefined;
99
114
  };
100
115
 
101
116
  /** @internal */
@@ -117,11 +132,15 @@ export const OrganizationCreate$outboundSchema: z.ZodType<
117
132
  subscriptionSettings: z.nullable(
118
133
  OrganizationSubscriptionSettings$outboundSchema,
119
134
  ).optional(),
135
+ notificationSettings: z.nullable(
136
+ OrganizationNotificationSettings$outboundSchema,
137
+ ).optional(),
120
138
  }).transform((v) => {
121
139
  return remap$(v, {
122
140
  avatarUrl: "avatar_url",
123
141
  featureSettings: "feature_settings",
124
142
  subscriptionSettings: "subscription_settings",
143
+ notificationSettings: "notification_settings",
125
144
  });
126
145
  });
127
146
 
@@ -13,10 +13,6 @@ export type OrganizationFeatureSettings = {
13
13
  * If this organization has issue funding enabled
14
14
  */
15
15
  issueFundingEnabled?: boolean | undefined;
16
- /**
17
- * If this organization has usage-based billing enabled
18
- */
19
- usageBasedBillingEnabled?: boolean | undefined;
20
16
  };
21
17
 
22
18
  /** @internal */
@@ -26,18 +22,15 @@ export const OrganizationFeatureSettings$inboundSchema: z.ZodType<
26
22
  unknown
27
23
  > = z.object({
28
24
  issue_funding_enabled: z.boolean().default(false),
29
- usage_based_billing_enabled: z.boolean().default(false),
30
25
  }).transform((v) => {
31
26
  return remap$(v, {
32
27
  "issue_funding_enabled": "issueFundingEnabled",
33
- "usage_based_billing_enabled": "usageBasedBillingEnabled",
34
28
  });
35
29
  });
36
30
 
37
31
  /** @internal */
38
32
  export type OrganizationFeatureSettings$Outbound = {
39
33
  issue_funding_enabled: boolean;
40
- usage_based_billing_enabled: boolean;
41
34
  };
42
35
 
43
36
  /** @internal */
@@ -47,11 +40,9 @@ export const OrganizationFeatureSettings$outboundSchema: z.ZodType<
47
40
  OrganizationFeatureSettings
48
41
  > = z.object({
49
42
  issueFundingEnabled: z.boolean().default(false),
50
- usageBasedBillingEnabled: z.boolean().default(false),
51
43
  }).transform((v) => {
52
44
  return remap$(v, {
53
45
  issueFundingEnabled: "issue_funding_enabled",
54
- usageBasedBillingEnabled: "usage_based_billing_enabled",
55
46
  });
56
47
  });
57
48
 
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type OrganizationNotificationSettings = {
12
+ newOrder: boolean;
13
+ newSubscription: boolean;
14
+ };
15
+
16
+ /** @internal */
17
+ export const OrganizationNotificationSettings$inboundSchema: z.ZodType<
18
+ OrganizationNotificationSettings,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ new_order: z.boolean(),
23
+ new_subscription: z.boolean(),
24
+ }).transform((v) => {
25
+ return remap$(v, {
26
+ "new_order": "newOrder",
27
+ "new_subscription": "newSubscription",
28
+ });
29
+ });
30
+
31
+ /** @internal */
32
+ export type OrganizationNotificationSettings$Outbound = {
33
+ new_order: boolean;
34
+ new_subscription: boolean;
35
+ };
36
+
37
+ /** @internal */
38
+ export const OrganizationNotificationSettings$outboundSchema: z.ZodType<
39
+ OrganizationNotificationSettings$Outbound,
40
+ z.ZodTypeDef,
41
+ OrganizationNotificationSettings
42
+ > = z.object({
43
+ newOrder: z.boolean(),
44
+ newSubscription: z.boolean(),
45
+ }).transform((v) => {
46
+ return remap$(v, {
47
+ newOrder: "new_order",
48
+ newSubscription: "new_subscription",
49
+ });
50
+ });
51
+
52
+ /**
53
+ * @internal
54
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
+ */
56
+ export namespace OrganizationNotificationSettings$ {
57
+ /** @deprecated use `OrganizationNotificationSettings$inboundSchema` instead. */
58
+ export const inboundSchema = OrganizationNotificationSettings$inboundSchema;
59
+ /** @deprecated use `OrganizationNotificationSettings$outboundSchema` instead. */
60
+ export const outboundSchema = OrganizationNotificationSettings$outboundSchema;
61
+ /** @deprecated use `OrganizationNotificationSettings$Outbound` instead. */
62
+ export type Outbound = OrganizationNotificationSettings$Outbound;
63
+ }
64
+
65
+ export function organizationNotificationSettingsToJSON(
66
+ organizationNotificationSettings: OrganizationNotificationSettings,
67
+ ): string {
68
+ return JSON.stringify(
69
+ OrganizationNotificationSettings$outboundSchema.parse(
70
+ organizationNotificationSettings,
71
+ ),
72
+ );
73
+ }
74
+
75
+ export function organizationNotificationSettingsFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<OrganizationNotificationSettings, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => OrganizationNotificationSettings$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'OrganizationNotificationSettings' from JSON`,
82
+ );
83
+ }
@@ -19,6 +19,12 @@ import {
19
19
  OrganizationFeatureSettings$Outbound,
20
20
  OrganizationFeatureSettings$outboundSchema,
21
21
  } from "./organizationfeaturesettings.js";
22
+ import {
23
+ OrganizationNotificationSettings,
24
+ OrganizationNotificationSettings$inboundSchema,
25
+ OrganizationNotificationSettings$Outbound,
26
+ OrganizationNotificationSettings$outboundSchema,
27
+ } from "./organizationnotificationsettings.js";
22
28
  import {
23
29
  OrganizationSocialLink,
24
30
  OrganizationSocialLink$inboundSchema,
@@ -53,6 +59,7 @@ export type OrganizationUpdate = {
53
59
  details?: OrganizationDetails | null | undefined;
54
60
  featureSettings?: OrganizationFeatureSettings | null | undefined;
55
61
  subscriptionSettings?: OrganizationSubscriptionSettings | null | undefined;
62
+ notificationSettings?: OrganizationNotificationSettings | null | undefined;
56
63
  };
57
64
 
58
65
  /** @internal */
@@ -72,11 +79,15 @@ export const OrganizationUpdate$inboundSchema: z.ZodType<
72
79
  subscription_settings: z.nullable(
73
80
  OrganizationSubscriptionSettings$inboundSchema,
74
81
  ).optional(),
82
+ notification_settings: z.nullable(
83
+ OrganizationNotificationSettings$inboundSchema,
84
+ ).optional(),
75
85
  }).transform((v) => {
76
86
  return remap$(v, {
77
87
  "avatar_url": "avatarUrl",
78
88
  "feature_settings": "featureSettings",
79
89
  "subscription_settings": "subscriptionSettings",
90
+ "notification_settings": "notificationSettings",
80
91
  });
81
92
  });
82
93
 
@@ -93,6 +104,10 @@ export type OrganizationUpdate$Outbound = {
93
104
  | OrganizationSubscriptionSettings$Outbound
94
105
  | null
95
106
  | undefined;
107
+ notification_settings?:
108
+ | OrganizationNotificationSettings$Outbound
109
+ | null
110
+ | undefined;
96
111
  };
97
112
 
98
113
  /** @internal */
@@ -113,11 +128,15 @@ export const OrganizationUpdate$outboundSchema: z.ZodType<
113
128
  subscriptionSettings: z.nullable(
114
129
  OrganizationSubscriptionSettings$outboundSchema,
115
130
  ).optional(),
131
+ notificationSettings: z.nullable(
132
+ OrganizationNotificationSettings$outboundSchema,
133
+ ).optional(),
116
134
  }).transform((v) => {
117
135
  return remap$(v, {
118
136
  avatarUrl: "avatar_url",
119
137
  featureSettings: "feature_settings",
120
138
  subscriptionSettings: "subscription_settings",
139
+ notificationSettings: "notification_settings",
121
140
  });
122
141
  });
123
142