@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
@@ -1,231 +0,0 @@
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 { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export const TokenEndpointAuthMethod = {
13
- ClientSecretBasic: "client_secret_basic",
14
- ClientSecretPost: "client_secret_post",
15
- None: "none",
16
- } as const;
17
- export type TokenEndpointAuthMethod = ClosedEnum<
18
- typeof TokenEndpointAuthMethod
19
- >;
20
-
21
- export const GrantTypes = {
22
- AuthorizationCode: "authorization_code",
23
- RefreshToken: "refresh_token",
24
- } as const;
25
- export type GrantTypes = ClosedEnum<typeof GrantTypes>;
26
-
27
- export type OAuth2Client = {
28
- redirectUris: Array<string>;
29
- tokenEndpointAuthMethod?: TokenEndpointAuthMethod | undefined;
30
- grantTypes?: Array<GrantTypes> | undefined;
31
- responseTypes?: Array<string> | undefined;
32
- scope?: string | undefined;
33
- clientName: string;
34
- clientUri?: string | null | undefined;
35
- logoUri?: string | null | undefined;
36
- tosUri?: string | null | undefined;
37
- policyUri?: string | null | undefined;
38
- /**
39
- * Creation timestamp of the object.
40
- */
41
- createdAt: Date;
42
- /**
43
- * Last modification timestamp of the object.
44
- */
45
- modifiedAt: Date | null;
46
- clientId: string;
47
- clientSecret: string;
48
- clientIdIssuedAt: number;
49
- clientSecretExpiresAt: number;
50
- };
51
-
52
- /** @internal */
53
- export const TokenEndpointAuthMethod$inboundSchema: z.ZodNativeEnum<
54
- typeof TokenEndpointAuthMethod
55
- > = z.nativeEnum(TokenEndpointAuthMethod);
56
-
57
- /** @internal */
58
- export const TokenEndpointAuthMethod$outboundSchema: z.ZodNativeEnum<
59
- typeof TokenEndpointAuthMethod
60
- > = TokenEndpointAuthMethod$inboundSchema;
61
-
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- export namespace TokenEndpointAuthMethod$ {
67
- /** @deprecated use `TokenEndpointAuthMethod$inboundSchema` instead. */
68
- export const inboundSchema = TokenEndpointAuthMethod$inboundSchema;
69
- /** @deprecated use `TokenEndpointAuthMethod$outboundSchema` instead. */
70
- export const outboundSchema = TokenEndpointAuthMethod$outboundSchema;
71
- }
72
-
73
- /** @internal */
74
- export const GrantTypes$inboundSchema: z.ZodNativeEnum<typeof GrantTypes> = z
75
- .nativeEnum(GrantTypes);
76
-
77
- /** @internal */
78
- export const GrantTypes$outboundSchema: z.ZodNativeEnum<typeof GrantTypes> =
79
- GrantTypes$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 GrantTypes$ {
86
- /** @deprecated use `GrantTypes$inboundSchema` instead. */
87
- export const inboundSchema = GrantTypes$inboundSchema;
88
- /** @deprecated use `GrantTypes$outboundSchema` instead. */
89
- export const outboundSchema = GrantTypes$outboundSchema;
90
- }
91
-
92
- /** @internal */
93
- export const OAuth2Client$inboundSchema: z.ZodType<
94
- OAuth2Client,
95
- z.ZodTypeDef,
96
- unknown
97
- > = z.object({
98
- redirect_uris: z.array(z.string()),
99
- token_endpoint_auth_method: TokenEndpointAuthMethod$inboundSchema.default(
100
- "client_secret_post",
101
- ),
102
- grant_types: z.array(GrantTypes$inboundSchema).optional(),
103
- response_types: z.array(z.string()).optional(),
104
- scope: z.string().default(
105
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
106
- ),
107
- client_name: z.string(),
108
- client_uri: z.nullable(z.string()).optional(),
109
- logo_uri: z.nullable(z.string()).optional(),
110
- tos_uri: z.nullable(z.string()).optional(),
111
- policy_uri: z.nullable(z.string()).optional(),
112
- created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
113
- modified_at: z.nullable(
114
- z.string().datetime({ offset: true }).transform(v => new Date(v)),
115
- ),
116
- client_id: z.string(),
117
- client_secret: z.string(),
118
- client_id_issued_at: z.number().int(),
119
- client_secret_expires_at: z.number().int(),
120
- }).transform((v) => {
121
- return remap$(v, {
122
- "redirect_uris": "redirectUris",
123
- "token_endpoint_auth_method": "tokenEndpointAuthMethod",
124
- "grant_types": "grantTypes",
125
- "response_types": "responseTypes",
126
- "client_name": "clientName",
127
- "client_uri": "clientUri",
128
- "logo_uri": "logoUri",
129
- "tos_uri": "tosUri",
130
- "policy_uri": "policyUri",
131
- "created_at": "createdAt",
132
- "modified_at": "modifiedAt",
133
- "client_id": "clientId",
134
- "client_secret": "clientSecret",
135
- "client_id_issued_at": "clientIdIssuedAt",
136
- "client_secret_expires_at": "clientSecretExpiresAt",
137
- });
138
- });
139
-
140
- /** @internal */
141
- export type OAuth2Client$Outbound = {
142
- redirect_uris: Array<string>;
143
- token_endpoint_auth_method: string;
144
- grant_types?: Array<string> | undefined;
145
- response_types?: Array<string> | undefined;
146
- scope: string;
147
- client_name: string;
148
- client_uri?: string | null | undefined;
149
- logo_uri?: string | null | undefined;
150
- tos_uri?: string | null | undefined;
151
- policy_uri?: string | null | undefined;
152
- created_at: string;
153
- modified_at: string | null;
154
- client_id: string;
155
- client_secret: string;
156
- client_id_issued_at: number;
157
- client_secret_expires_at: number;
158
- };
159
-
160
- /** @internal */
161
- export const OAuth2Client$outboundSchema: z.ZodType<
162
- OAuth2Client$Outbound,
163
- z.ZodTypeDef,
164
- OAuth2Client
165
- > = z.object({
166
- redirectUris: z.array(z.string()),
167
- tokenEndpointAuthMethod: TokenEndpointAuthMethod$outboundSchema.default(
168
- "client_secret_post",
169
- ),
170
- grantTypes: z.array(GrantTypes$outboundSchema).optional(),
171
- responseTypes: z.array(z.string()).optional(),
172
- scope: z.string().default(
173
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
174
- ),
175
- clientName: z.string(),
176
- clientUri: z.nullable(z.string()).optional(),
177
- logoUri: z.nullable(z.string()).optional(),
178
- tosUri: z.nullable(z.string()).optional(),
179
- policyUri: z.nullable(z.string()).optional(),
180
- createdAt: z.date().transform(v => v.toISOString()),
181
- modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
182
- clientId: z.string(),
183
- clientSecret: z.string(),
184
- clientIdIssuedAt: z.number().int(),
185
- clientSecretExpiresAt: z.number().int(),
186
- }).transform((v) => {
187
- return remap$(v, {
188
- redirectUris: "redirect_uris",
189
- tokenEndpointAuthMethod: "token_endpoint_auth_method",
190
- grantTypes: "grant_types",
191
- responseTypes: "response_types",
192
- clientName: "client_name",
193
- clientUri: "client_uri",
194
- logoUri: "logo_uri",
195
- tosUri: "tos_uri",
196
- policyUri: "policy_uri",
197
- createdAt: "created_at",
198
- modifiedAt: "modified_at",
199
- clientId: "client_id",
200
- clientSecret: "client_secret",
201
- clientIdIssuedAt: "client_id_issued_at",
202
- clientSecretExpiresAt: "client_secret_expires_at",
203
- });
204
- });
205
-
206
- /**
207
- * @internal
208
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
209
- */
210
- export namespace OAuth2Client$ {
211
- /** @deprecated use `OAuth2Client$inboundSchema` instead. */
212
- export const inboundSchema = OAuth2Client$inboundSchema;
213
- /** @deprecated use `OAuth2Client$outboundSchema` instead. */
214
- export const outboundSchema = OAuth2Client$outboundSchema;
215
- /** @deprecated use `OAuth2Client$Outbound` instead. */
216
- export type Outbound = OAuth2Client$Outbound;
217
- }
218
-
219
- export function oAuth2ClientToJSON(oAuth2Client: OAuth2Client): string {
220
- return JSON.stringify(OAuth2Client$outboundSchema.parse(oAuth2Client));
221
- }
222
-
223
- export function oAuth2ClientFromJSON(
224
- jsonString: string,
225
- ): SafeParseResult<OAuth2Client, SDKValidationError> {
226
- return safeParse(
227
- jsonString,
228
- (x) => OAuth2Client$inboundSchema.parse(JSON.parse(x)),
229
- `Failed to parse 'OAuth2Client' from JSON`,
230
- );
231
- }
@@ -1,205 +0,0 @@
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 { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export const OAuth2ClientConfigurationTokenEndpointAuthMethod = {
13
- ClientSecretBasic: "client_secret_basic",
14
- ClientSecretPost: "client_secret_post",
15
- None: "none",
16
- } as const;
17
- export type OAuth2ClientConfigurationTokenEndpointAuthMethod = ClosedEnum<
18
- typeof OAuth2ClientConfigurationTokenEndpointAuthMethod
19
- >;
20
-
21
- export const OAuth2ClientConfigurationGrantTypes = {
22
- AuthorizationCode: "authorization_code",
23
- RefreshToken: "refresh_token",
24
- } as const;
25
- export type OAuth2ClientConfigurationGrantTypes = ClosedEnum<
26
- typeof OAuth2ClientConfigurationGrantTypes
27
- >;
28
-
29
- export type OAuth2ClientConfiguration = {
30
- redirectUris: Array<string>;
31
- tokenEndpointAuthMethod?:
32
- | OAuth2ClientConfigurationTokenEndpointAuthMethod
33
- | undefined;
34
- grantTypes?: Array<OAuth2ClientConfigurationGrantTypes> | undefined;
35
- responseTypes?: Array<string> | undefined;
36
- scope?: string | undefined;
37
- clientName: string;
38
- clientUri?: string | null | undefined;
39
- logoUri?: string | null | undefined;
40
- tosUri?: string | null | undefined;
41
- policyUri?: string | null | undefined;
42
- };
43
-
44
- /** @internal */
45
- export const OAuth2ClientConfigurationTokenEndpointAuthMethod$inboundSchema:
46
- z.ZodNativeEnum<typeof OAuth2ClientConfigurationTokenEndpointAuthMethod> = z
47
- .nativeEnum(OAuth2ClientConfigurationTokenEndpointAuthMethod);
48
-
49
- /** @internal */
50
- export const OAuth2ClientConfigurationTokenEndpointAuthMethod$outboundSchema:
51
- z.ZodNativeEnum<typeof OAuth2ClientConfigurationTokenEndpointAuthMethod> =
52
- OAuth2ClientConfigurationTokenEndpointAuthMethod$inboundSchema;
53
-
54
- /**
55
- * @internal
56
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
- */
58
- export namespace OAuth2ClientConfigurationTokenEndpointAuthMethod$ {
59
- /** @deprecated use `OAuth2ClientConfigurationTokenEndpointAuthMethod$inboundSchema` instead. */
60
- export const inboundSchema =
61
- OAuth2ClientConfigurationTokenEndpointAuthMethod$inboundSchema;
62
- /** @deprecated use `OAuth2ClientConfigurationTokenEndpointAuthMethod$outboundSchema` instead. */
63
- export const outboundSchema =
64
- OAuth2ClientConfigurationTokenEndpointAuthMethod$outboundSchema;
65
- }
66
-
67
- /** @internal */
68
- export const OAuth2ClientConfigurationGrantTypes$inboundSchema: z.ZodNativeEnum<
69
- typeof OAuth2ClientConfigurationGrantTypes
70
- > = z.nativeEnum(OAuth2ClientConfigurationGrantTypes);
71
-
72
- /** @internal */
73
- export const OAuth2ClientConfigurationGrantTypes$outboundSchema:
74
- z.ZodNativeEnum<typeof OAuth2ClientConfigurationGrantTypes> =
75
- OAuth2ClientConfigurationGrantTypes$inboundSchema;
76
-
77
- /**
78
- * @internal
79
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
- */
81
- export namespace OAuth2ClientConfigurationGrantTypes$ {
82
- /** @deprecated use `OAuth2ClientConfigurationGrantTypes$inboundSchema` instead. */
83
- export const inboundSchema =
84
- OAuth2ClientConfigurationGrantTypes$inboundSchema;
85
- /** @deprecated use `OAuth2ClientConfigurationGrantTypes$outboundSchema` instead. */
86
- export const outboundSchema =
87
- OAuth2ClientConfigurationGrantTypes$outboundSchema;
88
- }
89
-
90
- /** @internal */
91
- export const OAuth2ClientConfiguration$inboundSchema: z.ZodType<
92
- OAuth2ClientConfiguration,
93
- z.ZodTypeDef,
94
- unknown
95
- > = z.object({
96
- redirect_uris: z.array(z.string()),
97
- token_endpoint_auth_method:
98
- OAuth2ClientConfigurationTokenEndpointAuthMethod$inboundSchema.default(
99
- "client_secret_post",
100
- ),
101
- grant_types: z.array(OAuth2ClientConfigurationGrantTypes$inboundSchema)
102
- .optional(),
103
- response_types: z.array(z.string()).optional(),
104
- scope: z.string().default(
105
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
106
- ),
107
- client_name: z.string(),
108
- client_uri: z.nullable(z.string()).optional(),
109
- logo_uri: z.nullable(z.string()).optional(),
110
- tos_uri: z.nullable(z.string()).optional(),
111
- policy_uri: z.nullable(z.string()).optional(),
112
- }).transform((v) => {
113
- return remap$(v, {
114
- "redirect_uris": "redirectUris",
115
- "token_endpoint_auth_method": "tokenEndpointAuthMethod",
116
- "grant_types": "grantTypes",
117
- "response_types": "responseTypes",
118
- "client_name": "clientName",
119
- "client_uri": "clientUri",
120
- "logo_uri": "logoUri",
121
- "tos_uri": "tosUri",
122
- "policy_uri": "policyUri",
123
- });
124
- });
125
-
126
- /** @internal */
127
- export type OAuth2ClientConfiguration$Outbound = {
128
- redirect_uris: Array<string>;
129
- token_endpoint_auth_method: string;
130
- grant_types?: Array<string> | undefined;
131
- response_types?: Array<string> | undefined;
132
- scope: string;
133
- client_name: string;
134
- client_uri?: string | null | undefined;
135
- logo_uri?: string | null | undefined;
136
- tos_uri?: string | null | undefined;
137
- policy_uri?: string | null | undefined;
138
- };
139
-
140
- /** @internal */
141
- export const OAuth2ClientConfiguration$outboundSchema: z.ZodType<
142
- OAuth2ClientConfiguration$Outbound,
143
- z.ZodTypeDef,
144
- OAuth2ClientConfiguration
145
- > = z.object({
146
- redirectUris: z.array(z.string()),
147
- tokenEndpointAuthMethod:
148
- OAuth2ClientConfigurationTokenEndpointAuthMethod$outboundSchema.default(
149
- "client_secret_post",
150
- ),
151
- grantTypes: z.array(OAuth2ClientConfigurationGrantTypes$outboundSchema)
152
- .optional(),
153
- responseTypes: z.array(z.string()).optional(),
154
- scope: z.string().default(
155
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
156
- ),
157
- clientName: z.string(),
158
- clientUri: z.nullable(z.string()).optional(),
159
- logoUri: z.nullable(z.string()).optional(),
160
- tosUri: z.nullable(z.string()).optional(),
161
- policyUri: z.nullable(z.string()).optional(),
162
- }).transform((v) => {
163
- return remap$(v, {
164
- redirectUris: "redirect_uris",
165
- tokenEndpointAuthMethod: "token_endpoint_auth_method",
166
- grantTypes: "grant_types",
167
- responseTypes: "response_types",
168
- clientName: "client_name",
169
- clientUri: "client_uri",
170
- logoUri: "logo_uri",
171
- tosUri: "tos_uri",
172
- policyUri: "policy_uri",
173
- });
174
- });
175
-
176
- /**
177
- * @internal
178
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
- */
180
- export namespace OAuth2ClientConfiguration$ {
181
- /** @deprecated use `OAuth2ClientConfiguration$inboundSchema` instead. */
182
- export const inboundSchema = OAuth2ClientConfiguration$inboundSchema;
183
- /** @deprecated use `OAuth2ClientConfiguration$outboundSchema` instead. */
184
- export const outboundSchema = OAuth2ClientConfiguration$outboundSchema;
185
- /** @deprecated use `OAuth2ClientConfiguration$Outbound` instead. */
186
- export type Outbound = OAuth2ClientConfiguration$Outbound;
187
- }
188
-
189
- export function oAuth2ClientConfigurationToJSON(
190
- oAuth2ClientConfiguration: OAuth2ClientConfiguration,
191
- ): string {
192
- return JSON.stringify(
193
- OAuth2ClientConfiguration$outboundSchema.parse(oAuth2ClientConfiguration),
194
- );
195
- }
196
-
197
- export function oAuth2ClientConfigurationFromJSON(
198
- jsonString: string,
199
- ): SafeParseResult<OAuth2ClientConfiguration, SDKValidationError> {
200
- return safeParse(
201
- jsonString,
202
- (x) => OAuth2ClientConfiguration$inboundSchema.parse(JSON.parse(x)),
203
- `Failed to parse 'OAuth2ClientConfiguration' from JSON`,
204
- );
205
- }
@@ -1,213 +0,0 @@
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 { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export const OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod = {
13
- ClientSecretBasic: "client_secret_basic",
14
- ClientSecretPost: "client_secret_post",
15
- None: "none",
16
- } as const;
17
- export type OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod = ClosedEnum<
18
- typeof OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
19
- >;
20
-
21
- export const OAuth2ClientConfigurationUpdateGrantTypes = {
22
- AuthorizationCode: "authorization_code",
23
- RefreshToken: "refresh_token",
24
- } as const;
25
- export type OAuth2ClientConfigurationUpdateGrantTypes = ClosedEnum<
26
- typeof OAuth2ClientConfigurationUpdateGrantTypes
27
- >;
28
-
29
- export type OAuth2ClientConfigurationUpdate = {
30
- redirectUris: Array<string>;
31
- tokenEndpointAuthMethod?:
32
- | OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
33
- | undefined;
34
- grantTypes?: Array<OAuth2ClientConfigurationUpdateGrantTypes> | undefined;
35
- responseTypes?: Array<string> | undefined;
36
- scope?: string | undefined;
37
- clientName: string;
38
- clientUri?: string | null | undefined;
39
- logoUri?: string | null | undefined;
40
- tosUri?: string | null | undefined;
41
- policyUri?: string | null | undefined;
42
- clientId: string;
43
- };
44
-
45
- /** @internal */
46
- export const OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema:
47
- z.ZodNativeEnum<
48
- typeof OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
49
- > = z.nativeEnum(OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod);
50
-
51
- /** @internal */
52
- export const OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema:
53
- z.ZodNativeEnum<
54
- typeof OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod
55
- > = OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema;
56
-
57
- /**
58
- * @internal
59
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
- */
61
- export namespace OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$ {
62
- /** @deprecated use `OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema` instead. */
63
- export const inboundSchema =
64
- OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema;
65
- /** @deprecated use `OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema` instead. */
66
- export const outboundSchema =
67
- OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema;
68
- }
69
-
70
- /** @internal */
71
- export const OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema:
72
- z.ZodNativeEnum<typeof OAuth2ClientConfigurationUpdateGrantTypes> = z
73
- .nativeEnum(OAuth2ClientConfigurationUpdateGrantTypes);
74
-
75
- /** @internal */
76
- export const OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema:
77
- z.ZodNativeEnum<typeof OAuth2ClientConfigurationUpdateGrantTypes> =
78
- OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema;
79
-
80
- /**
81
- * @internal
82
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
83
- */
84
- export namespace OAuth2ClientConfigurationUpdateGrantTypes$ {
85
- /** @deprecated use `OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema` instead. */
86
- export const inboundSchema =
87
- OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema;
88
- /** @deprecated use `OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema` instead. */
89
- export const outboundSchema =
90
- OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema;
91
- }
92
-
93
- /** @internal */
94
- export const OAuth2ClientConfigurationUpdate$inboundSchema: z.ZodType<
95
- OAuth2ClientConfigurationUpdate,
96
- z.ZodTypeDef,
97
- unknown
98
- > = z.object({
99
- redirect_uris: z.array(z.string()),
100
- token_endpoint_auth_method:
101
- OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$inboundSchema
102
- .default("client_secret_post"),
103
- grant_types: z.array(OAuth2ClientConfigurationUpdateGrantTypes$inboundSchema)
104
- .optional(),
105
- response_types: z.array(z.string()).optional(),
106
- scope: z.string().default(
107
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
108
- ),
109
- client_name: z.string(),
110
- client_uri: z.nullable(z.string()).optional(),
111
- logo_uri: z.nullable(z.string()).optional(),
112
- tos_uri: z.nullable(z.string()).optional(),
113
- policy_uri: z.nullable(z.string()).optional(),
114
- client_id: z.string(),
115
- }).transform((v) => {
116
- return remap$(v, {
117
- "redirect_uris": "redirectUris",
118
- "token_endpoint_auth_method": "tokenEndpointAuthMethod",
119
- "grant_types": "grantTypes",
120
- "response_types": "responseTypes",
121
- "client_name": "clientName",
122
- "client_uri": "clientUri",
123
- "logo_uri": "logoUri",
124
- "tos_uri": "tosUri",
125
- "policy_uri": "policyUri",
126
- "client_id": "clientId",
127
- });
128
- });
129
-
130
- /** @internal */
131
- export type OAuth2ClientConfigurationUpdate$Outbound = {
132
- redirect_uris: Array<string>;
133
- token_endpoint_auth_method: string;
134
- grant_types?: Array<string> | undefined;
135
- response_types?: Array<string> | undefined;
136
- scope: string;
137
- client_name: string;
138
- client_uri?: string | null | undefined;
139
- logo_uri?: string | null | undefined;
140
- tos_uri?: string | null | undefined;
141
- policy_uri?: string | null | undefined;
142
- client_id: string;
143
- };
144
-
145
- /** @internal */
146
- export const OAuth2ClientConfigurationUpdate$outboundSchema: z.ZodType<
147
- OAuth2ClientConfigurationUpdate$Outbound,
148
- z.ZodTypeDef,
149
- OAuth2ClientConfigurationUpdate
150
- > = z.object({
151
- redirectUris: z.array(z.string()),
152
- tokenEndpointAuthMethod:
153
- OAuth2ClientConfigurationUpdateTokenEndpointAuthMethod$outboundSchema
154
- .default("client_secret_post"),
155
- grantTypes: z.array(OAuth2ClientConfigurationUpdateGrantTypes$outboundSchema)
156
- .optional(),
157
- responseTypes: z.array(z.string()).optional(),
158
- scope: z.string().default(
159
- "openid profile email user:read organizations:read organizations:write custom_fields:read custom_fields:write discounts:read discounts:write checkout_links:read checkout_links:write checkouts:read checkouts:write transactions:read transactions:write payouts:read payouts:write products:read products:write benefits:read benefits:write events:read events:write meters:read meters:write files:read files:write subscriptions:read subscriptions:write customers:read customers:write customer_meters:read customer_sessions:write orders:read orders:write refunds:read refunds:write payments:read metrics:read webhooks:read webhooks:write external_organizations:read license_keys:read license_keys:write repositories:read repositories:write issues:read issues:write customer_portal:read customer_portal:write notifications:read notifications:write notification_recipients:read notification_recipients:write",
160
- ),
161
- clientName: z.string(),
162
- clientUri: z.nullable(z.string()).optional(),
163
- logoUri: z.nullable(z.string()).optional(),
164
- tosUri: z.nullable(z.string()).optional(),
165
- policyUri: z.nullable(z.string()).optional(),
166
- clientId: z.string(),
167
- }).transform((v) => {
168
- return remap$(v, {
169
- redirectUris: "redirect_uris",
170
- tokenEndpointAuthMethod: "token_endpoint_auth_method",
171
- grantTypes: "grant_types",
172
- responseTypes: "response_types",
173
- clientName: "client_name",
174
- clientUri: "client_uri",
175
- logoUri: "logo_uri",
176
- tosUri: "tos_uri",
177
- policyUri: "policy_uri",
178
- clientId: "client_id",
179
- });
180
- });
181
-
182
- /**
183
- * @internal
184
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
185
- */
186
- export namespace OAuth2ClientConfigurationUpdate$ {
187
- /** @deprecated use `OAuth2ClientConfigurationUpdate$inboundSchema` instead. */
188
- export const inboundSchema = OAuth2ClientConfigurationUpdate$inboundSchema;
189
- /** @deprecated use `OAuth2ClientConfigurationUpdate$outboundSchema` instead. */
190
- export const outboundSchema = OAuth2ClientConfigurationUpdate$outboundSchema;
191
- /** @deprecated use `OAuth2ClientConfigurationUpdate$Outbound` instead. */
192
- export type Outbound = OAuth2ClientConfigurationUpdate$Outbound;
193
- }
194
-
195
- export function oAuth2ClientConfigurationUpdateToJSON(
196
- oAuth2ClientConfigurationUpdate: OAuth2ClientConfigurationUpdate,
197
- ): string {
198
- return JSON.stringify(
199
- OAuth2ClientConfigurationUpdate$outboundSchema.parse(
200
- oAuth2ClientConfigurationUpdate,
201
- ),
202
- );
203
- }
204
-
205
- export function oAuth2ClientConfigurationUpdateFromJSON(
206
- jsonString: string,
207
- ): SafeParseResult<OAuth2ClientConfigurationUpdate, SDKValidationError> {
208
- return safeParse(
209
- jsonString,
210
- (x) => OAuth2ClientConfigurationUpdate$inboundSchema.parse(JSON.parse(x)),
211
- `Failed to parse 'OAuth2ClientConfigurationUpdate' from JSON`,
212
- );
213
- }