@polar-sh/sdk 0.33.2 → 0.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/README.md +9 -8
  2. package/bin/mcp-server.js +104 -94
  3. package/bin/mcp-server.js.map +17 -17
  4. package/dist/commonjs/lib/config.d.ts +3 -3
  5. package/dist/commonjs/lib/config.js +3 -3
  6. package/dist/commonjs/lib/security.d.ts +2 -2
  7. package/dist/commonjs/lib/security.d.ts.map +1 -1
  8. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  9. package/dist/commonjs/mcp-server/server.js +1 -1
  10. package/dist/commonjs/models/components/benefitgrant.d.ts +4 -4
  11. package/dist/commonjs/models/components/benefitgrant.d.ts.map +1 -1
  12. package/dist/commonjs/models/components/benefitgrant.js +12 -12
  13. package/dist/commonjs/models/components/benefitgrant.js.map +1 -1
  14. package/dist/commonjs/models/components/benefitgrantwebhook.d.ts +8 -8
  15. package/dist/commonjs/models/components/benefitgrantwebhook.d.ts.map +1 -1
  16. package/dist/commonjs/models/components/benefitgrantwebhook.js +24 -24
  17. package/dist/commonjs/models/components/benefitgrantwebhook.js.map +1 -1
  18. package/dist/commonjs/models/components/checkout.d.ts +11 -6
  19. package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
  20. package/dist/commonjs/models/components/checkout.js +16 -12
  21. package/dist/commonjs/models/components/checkout.js.map +1 -1
  22. package/dist/commonjs/models/components/checkoutcreate.d.ts +2 -2
  23. package/dist/commonjs/models/components/checkoutcreate.js +4 -4
  24. package/dist/commonjs/models/components/checkoutlink.d.ts +4 -4
  25. package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
  26. package/dist/commonjs/models/components/checkoutlink.js +8 -8
  27. package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
  28. package/dist/commonjs/models/components/checkoutpublic.d.ts +6 -6
  29. package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
  30. package/dist/commonjs/models/components/checkoutpublic.js +12 -12
  31. package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
  32. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +6 -6
  33. package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  34. package/dist/commonjs/models/components/checkoutpublicconfirmed.js +12 -12
  35. package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
  36. package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts +10 -10
  37. package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
  38. package/dist/commonjs/models/components/customerbenefitgrantupdate.js +8 -8
  39. package/dist/commonjs/models/components/customerbenefitgrantupdate.js.map +1 -1
  40. package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
  41. package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.js +4 -4
  42. package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts +34 -4
  43. package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/customerstatebenefitgrant.js +40 -13
  45. package/dist/commonjs/models/components/customerstatebenefitgrant.js.map +1 -1
  46. package/dist/commonjs/models/components/discount.d.ts +2 -2
  47. package/dist/commonjs/models/components/discount.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/discount.js +4 -4
  49. package/dist/commonjs/models/components/discount.js.map +1 -1
  50. package/dist/commonjs/models/components/discountcreate.d.ts +2 -2
  51. package/dist/commonjs/models/components/discountcreate.d.ts.map +1 -1
  52. package/dist/commonjs/models/components/discountcreate.js +6 -6
  53. package/dist/commonjs/models/components/discountcreate.js.map +1 -1
  54. package/dist/commonjs/models/components/filter.d.ts +4 -4
  55. package/dist/commonjs/models/components/filter.d.ts.map +1 -1
  56. package/dist/commonjs/models/components/filter.js +4 -4
  57. package/dist/commonjs/models/components/filter.js.map +1 -1
  58. package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts +8 -8
  59. package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts.map +1 -1
  60. package/dist/commonjs/models/components/legacyrecurringproductprice.js +4 -4
  61. package/dist/commonjs/models/components/legacyrecurringproductprice.js.map +1 -1
  62. package/dist/commonjs/models/components/listresourcefileread.d.ts +12 -12
  63. package/dist/commonjs/models/components/listresourcefileread.d.ts.map +1 -1
  64. package/dist/commonjs/models/components/listresourcefileread.js +12 -12
  65. package/dist/commonjs/models/components/listresourcefileread.js.map +1 -1
  66. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
  67. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
  69. package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
  70. package/dist/commonjs/models/components/meter.d.ts +24 -24
  71. package/dist/commonjs/models/components/meter.d.ts.map +1 -1
  72. package/dist/commonjs/models/components/meter.js +16 -16
  73. package/dist/commonjs/models/components/meter.js.map +1 -1
  74. package/dist/commonjs/models/components/metercreate.d.ts +24 -24
  75. package/dist/commonjs/models/components/metercreate.d.ts.map +1 -1
  76. package/dist/commonjs/models/components/metercreate.js +16 -16
  77. package/dist/commonjs/models/components/metercreate.js.map +1 -1
  78. package/dist/commonjs/models/components/meterupdate.d.ts +24 -24
  79. package/dist/commonjs/models/components/meterupdate.d.ts.map +1 -1
  80. package/dist/commonjs/models/components/meterupdate.js +16 -16
  81. package/dist/commonjs/models/components/meterupdate.js.map +1 -1
  82. package/dist/commonjs/models/components/order.d.ts +4 -4
  83. package/dist/commonjs/models/components/order.d.ts.map +1 -1
  84. package/dist/commonjs/models/components/order.js +8 -8
  85. package/dist/commonjs/models/components/order.js.map +1 -1
  86. package/dist/commonjs/models/components/payment.d.ts +2 -2
  87. package/dist/commonjs/models/components/payment.d.ts.map +1 -1
  88. package/dist/commonjs/models/components/payment.js +2 -2
  89. package/dist/commonjs/models/components/payment.js.map +1 -1
  90. package/dist/commonjs/models/components/productcreate.d.ts +4 -4
  91. package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
  92. package/dist/commonjs/models/components/productcreate.js +8 -8
  93. package/dist/commonjs/models/components/productcreate.js.map +1 -1
  94. package/dist/commonjs/models/components/productprice.d.ts +12 -12
  95. package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
  96. package/dist/commonjs/models/components/productprice.js +8 -8
  97. package/dist/commonjs/models/components/productprice.js.map +1 -1
  98. package/dist/commonjs/models/components/productupdate.d.ts +4 -4
  99. package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
  100. package/dist/commonjs/models/components/productupdate.js +12 -12
  101. package/dist/commonjs/models/components/productupdate.js.map +1 -1
  102. package/dist/commonjs/models/components/subscription.d.ts +4 -4
  103. package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
  104. package/dist/commonjs/models/components/subscription.js +8 -8
  105. package/dist/commonjs/models/components/subscription.js.map +1 -1
  106. package/dist/commonjs/models/components/subscriptionupdate.d.ts +2 -2
  107. package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
  108. package/dist/commonjs/models/components/subscriptionupdate.js +2 -2
  109. package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
  110. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
  111. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
  112. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
  113. package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
  114. package/dist/commonjs/models/operations/filesupdate.d.ts +6 -6
  115. package/dist/commonjs/models/operations/filesupdate.d.ts.map +1 -1
  116. package/dist/commonjs/models/operations/filesupdate.js +6 -6
  117. package/dist/commonjs/models/operations/filesupdate.js.map +1 -1
  118. package/dist/commonjs/models/operations/filesuploaded.d.ts +6 -6
  119. package/dist/commonjs/models/operations/filesuploaded.d.ts.map +1 -1
  120. package/dist/commonjs/models/operations/filesuploaded.js +6 -6
  121. package/dist/commonjs/models/operations/filesuploaded.js.map +1 -1
  122. package/dist/commonjs/models/operations/oauth2authorize.d.ts +6 -6
  123. package/dist/commonjs/models/operations/oauth2authorize.d.ts.map +1 -1
  124. package/dist/commonjs/models/operations/oauth2authorize.js +4 -4
  125. package/dist/commonjs/models/operations/oauth2authorize.js.map +1 -1
  126. package/dist/commonjs/models/operations/oauth2requesttoken.d.ts +2 -2
  127. package/dist/commonjs/models/operations/oauth2requesttoken.d.ts.map +1 -1
  128. package/dist/commonjs/models/operations/oauth2requesttoken.js +2 -2
  129. package/dist/commonjs/models/operations/oauth2requesttoken.js.map +1 -1
  130. package/dist/commonjs/models/operations/oauth2userinfo.d.ts +2 -2
  131. package/dist/commonjs/models/operations/oauth2userinfo.d.ts.map +1 -1
  132. package/dist/commonjs/models/operations/oauth2userinfo.js +2 -2
  133. package/dist/commonjs/models/operations/oauth2userinfo.js.map +1 -1
  134. package/dist/esm/lib/config.d.ts +3 -3
  135. package/dist/esm/lib/config.js +3 -3
  136. package/dist/esm/lib/security.d.ts +2 -2
  137. package/dist/esm/lib/security.d.ts.map +1 -1
  138. package/dist/esm/mcp-server/mcp-server.js +1 -1
  139. package/dist/esm/mcp-server/server.js +1 -1
  140. package/dist/esm/models/components/benefitgrant.d.ts +4 -4
  141. package/dist/esm/models/components/benefitgrant.d.ts.map +1 -1
  142. package/dist/esm/models/components/benefitgrant.js +12 -12
  143. package/dist/esm/models/components/benefitgrant.js.map +1 -1
  144. package/dist/esm/models/components/benefitgrantwebhook.d.ts +8 -8
  145. package/dist/esm/models/components/benefitgrantwebhook.d.ts.map +1 -1
  146. package/dist/esm/models/components/benefitgrantwebhook.js +24 -24
  147. package/dist/esm/models/components/benefitgrantwebhook.js.map +1 -1
  148. package/dist/esm/models/components/checkout.d.ts +11 -6
  149. package/dist/esm/models/components/checkout.d.ts.map +1 -1
  150. package/dist/esm/models/components/checkout.js +16 -12
  151. package/dist/esm/models/components/checkout.js.map +1 -1
  152. package/dist/esm/models/components/checkoutcreate.d.ts +2 -2
  153. package/dist/esm/models/components/checkoutcreate.js +4 -4
  154. package/dist/esm/models/components/checkoutlink.d.ts +4 -4
  155. package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
  156. package/dist/esm/models/components/checkoutlink.js +8 -8
  157. package/dist/esm/models/components/checkoutlink.js.map +1 -1
  158. package/dist/esm/models/components/checkoutpublic.d.ts +6 -6
  159. package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
  160. package/dist/esm/models/components/checkoutpublic.js +12 -12
  161. package/dist/esm/models/components/checkoutpublic.js.map +1 -1
  162. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +6 -6
  163. package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
  164. package/dist/esm/models/components/checkoutpublicconfirmed.js +12 -12
  165. package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
  166. package/dist/esm/models/components/customerbenefitgrantupdate.d.ts +10 -10
  167. package/dist/esm/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
  168. package/dist/esm/models/components/customerbenefitgrantupdate.js +8 -8
  169. package/dist/esm/models/components/customerbenefitgrantupdate.js.map +1 -1
  170. package/dist/esm/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
  171. package/dist/esm/models/components/customersessioncustomerexternalidcreate.js +4 -4
  172. package/dist/esm/models/components/customerstatebenefitgrant.d.ts +34 -4
  173. package/dist/esm/models/components/customerstatebenefitgrant.d.ts.map +1 -1
  174. package/dist/esm/models/components/customerstatebenefitgrant.js +37 -12
  175. package/dist/esm/models/components/customerstatebenefitgrant.js.map +1 -1
  176. package/dist/esm/models/components/discount.d.ts +2 -2
  177. package/dist/esm/models/components/discount.d.ts.map +1 -1
  178. package/dist/esm/models/components/discount.js +4 -4
  179. package/dist/esm/models/components/discount.js.map +1 -1
  180. package/dist/esm/models/components/discountcreate.d.ts +2 -2
  181. package/dist/esm/models/components/discountcreate.d.ts.map +1 -1
  182. package/dist/esm/models/components/discountcreate.js +6 -6
  183. package/dist/esm/models/components/discountcreate.js.map +1 -1
  184. package/dist/esm/models/components/filter.d.ts +4 -4
  185. package/dist/esm/models/components/filter.d.ts.map +1 -1
  186. package/dist/esm/models/components/filter.js +4 -4
  187. package/dist/esm/models/components/filter.js.map +1 -1
  188. package/dist/esm/models/components/legacyrecurringproductprice.d.ts +8 -8
  189. package/dist/esm/models/components/legacyrecurringproductprice.d.ts.map +1 -1
  190. package/dist/esm/models/components/legacyrecurringproductprice.js +4 -4
  191. package/dist/esm/models/components/legacyrecurringproductprice.js.map +1 -1
  192. package/dist/esm/models/components/listresourcefileread.d.ts +12 -12
  193. package/dist/esm/models/components/listresourcefileread.d.ts.map +1 -1
  194. package/dist/esm/models/components/listresourcefileread.js +12 -12
  195. package/dist/esm/models/components/listresourcefileread.js.map +1 -1
  196. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
  197. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
  198. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
  199. package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
  200. package/dist/esm/models/components/meter.d.ts +24 -24
  201. package/dist/esm/models/components/meter.d.ts.map +1 -1
  202. package/dist/esm/models/components/meter.js +16 -16
  203. package/dist/esm/models/components/meter.js.map +1 -1
  204. package/dist/esm/models/components/metercreate.d.ts +24 -24
  205. package/dist/esm/models/components/metercreate.d.ts.map +1 -1
  206. package/dist/esm/models/components/metercreate.js +16 -16
  207. package/dist/esm/models/components/metercreate.js.map +1 -1
  208. package/dist/esm/models/components/meterupdate.d.ts +24 -24
  209. package/dist/esm/models/components/meterupdate.d.ts.map +1 -1
  210. package/dist/esm/models/components/meterupdate.js +16 -16
  211. package/dist/esm/models/components/meterupdate.js.map +1 -1
  212. package/dist/esm/models/components/order.d.ts +4 -4
  213. package/dist/esm/models/components/order.d.ts.map +1 -1
  214. package/dist/esm/models/components/order.js +8 -8
  215. package/dist/esm/models/components/order.js.map +1 -1
  216. package/dist/esm/models/components/payment.d.ts +2 -2
  217. package/dist/esm/models/components/payment.d.ts.map +1 -1
  218. package/dist/esm/models/components/payment.js +2 -2
  219. package/dist/esm/models/components/payment.js.map +1 -1
  220. package/dist/esm/models/components/productcreate.d.ts +4 -4
  221. package/dist/esm/models/components/productcreate.d.ts.map +1 -1
  222. package/dist/esm/models/components/productcreate.js +8 -8
  223. package/dist/esm/models/components/productcreate.js.map +1 -1
  224. package/dist/esm/models/components/productprice.d.ts +12 -12
  225. package/dist/esm/models/components/productprice.d.ts.map +1 -1
  226. package/dist/esm/models/components/productprice.js +8 -8
  227. package/dist/esm/models/components/productprice.js.map +1 -1
  228. package/dist/esm/models/components/productupdate.d.ts +4 -4
  229. package/dist/esm/models/components/productupdate.d.ts.map +1 -1
  230. package/dist/esm/models/components/productupdate.js +12 -12
  231. package/dist/esm/models/components/productupdate.js.map +1 -1
  232. package/dist/esm/models/components/subscription.d.ts +4 -4
  233. package/dist/esm/models/components/subscription.d.ts.map +1 -1
  234. package/dist/esm/models/components/subscription.js +8 -8
  235. package/dist/esm/models/components/subscription.js.map +1 -1
  236. package/dist/esm/models/components/subscriptionupdate.d.ts +2 -2
  237. package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
  238. package/dist/esm/models/components/subscriptionupdate.js +2 -2
  239. package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
  240. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
  241. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
  242. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
  243. package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
  244. package/dist/esm/models/operations/filesupdate.d.ts +6 -6
  245. package/dist/esm/models/operations/filesupdate.d.ts.map +1 -1
  246. package/dist/esm/models/operations/filesupdate.js +6 -6
  247. package/dist/esm/models/operations/filesupdate.js.map +1 -1
  248. package/dist/esm/models/operations/filesuploaded.d.ts +6 -6
  249. package/dist/esm/models/operations/filesuploaded.d.ts.map +1 -1
  250. package/dist/esm/models/operations/filesuploaded.js +6 -6
  251. package/dist/esm/models/operations/filesuploaded.js.map +1 -1
  252. package/dist/esm/models/operations/oauth2authorize.d.ts +6 -6
  253. package/dist/esm/models/operations/oauth2authorize.d.ts.map +1 -1
  254. package/dist/esm/models/operations/oauth2authorize.js +4 -4
  255. package/dist/esm/models/operations/oauth2authorize.js.map +1 -1
  256. package/dist/esm/models/operations/oauth2requesttoken.d.ts +2 -2
  257. package/dist/esm/models/operations/oauth2requesttoken.d.ts.map +1 -1
  258. package/dist/esm/models/operations/oauth2requesttoken.js +2 -2
  259. package/dist/esm/models/operations/oauth2requesttoken.js.map +1 -1
  260. package/dist/esm/models/operations/oauth2userinfo.d.ts +2 -2
  261. package/dist/esm/models/operations/oauth2userinfo.d.ts.map +1 -1
  262. package/dist/esm/models/operations/oauth2userinfo.js +2 -2
  263. package/dist/esm/models/operations/oauth2userinfo.js.map +1 -1
  264. package/docs/sdks/customersessions/README.md +2 -2
  265. package/jsr.json +1 -1
  266. package/package.json +1 -1
  267. package/src/lib/config.ts +3 -3
  268. package/src/lib/security.ts +2 -2
  269. package/src/mcp-server/mcp-server.ts +1 -1
  270. package/src/mcp-server/server.ts +1 -1
  271. package/src/models/components/benefitgrant.ts +24 -24
  272. package/src/models/components/benefitgrantwebhook.ts +48 -48
  273. package/src/models/components/checkout.ts +34 -25
  274. package/src/models/components/checkoutcreate.ts +6 -6
  275. package/src/models/components/checkoutlink.ts +16 -16
  276. package/src/models/components/checkoutpublic.ts +25 -25
  277. package/src/models/components/checkoutpublicconfirmed.ts +25 -25
  278. package/src/models/components/customerbenefitgrantupdate.ts +29 -29
  279. package/src/models/components/customersessioncustomerexternalidcreate.ts +6 -6
  280. package/src/models/components/customerstatebenefitgrant.ts +85 -24
  281. package/src/models/components/discount.ts +8 -8
  282. package/src/models/components/discountcreate.ts +12 -12
  283. package/src/models/components/filter.ts +8 -8
  284. package/src/models/components/legacyrecurringproductprice.ts +12 -12
  285. package/src/models/components/listresourcefileread.ts +26 -26
  286. package/src/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.ts +9 -9
  287. package/src/models/components/meter.ts +42 -42
  288. package/src/models/components/metercreate.ts +44 -44
  289. package/src/models/components/meterupdate.ts +40 -40
  290. package/src/models/components/order.ts +16 -16
  291. package/src/models/components/payment.ts +4 -4
  292. package/src/models/components/productcreate.ts +16 -16
  293. package/src/models/components/productprice.ts +22 -22
  294. package/src/models/components/productupdate.ts +24 -24
  295. package/src/models/components/subscription.ts +16 -16
  296. package/src/models/components/subscriptionupdate.ts +4 -4
  297. package/src/models/operations/customerportalcustomersaddpaymentmethod.ts +6 -6
  298. package/src/models/operations/filesupdate.ts +14 -14
  299. package/src/models/operations/filesuploaded.ts +14 -14
  300. package/src/models/operations/oauth2authorize.ts +12 -12
  301. package/src/models/operations/oauth2requesttoken.ts +6 -6
  302. package/src/models/operations/oauth2userinfo.ts +6 -6
package/README.md CHANGED
@@ -218,9 +218,18 @@ async function run() {
218
218
  },
219
219
  customerTaxId: "<id>",
220
220
  paymentProcessorMetadata: {},
221
+ customerBillingAddressFields: {
222
+ country: false,
223
+ state: true,
224
+ city: false,
225
+ postalCode: true,
226
+ line1: true,
227
+ line2: false,
228
+ },
221
229
  metadata: {
222
230
  "key": "<value>",
223
231
  },
232
+ externalCustomerId: null,
224
233
  customerExternalId: "<id>",
225
234
  products: [],
226
235
  product: {
@@ -360,14 +369,6 @@ async function run() {
360
369
  "key1": false,
361
370
  "key2": 851435,
362
371
  },
363
- customerBillingAddressFields: {
364
- country: false,
365
- state: true,
366
- city: false,
367
- postalCode: true,
368
- line1: true,
369
- line2: false,
370
- },
371
372
  },
372
373
  });
373
374
 
package/bin/mcp-server.js CHANGED
@@ -4041,9 +4041,9 @@ var init_config = __esm(() => {
4041
4041
  SDK_METADATA = {
4042
4042
  language: "typescript",
4043
4043
  openapiDocVersion: "0.1.0",
4044
- sdkVersion: "0.33.2",
4045
- genVersion: "2.630.6",
4046
- userAgent: "speakeasy-sdk/typescript 0.33.2 2.630.6 0.1.0 @polar-sh/sdk"
4044
+ sdkVersion: "0.34.1",
4045
+ genVersion: "2.628.0",
4046
+ userAgent: "speakeasy-sdk/typescript 0.34.1 2.628.0 0.1.0 @polar-sh/sdk"
4047
4047
  };
4048
4048
  });
4049
4049
 
@@ -35961,19 +35961,19 @@ var init_filter = __esm(() => {
35961
35961
  init_esm();
35962
35962
  init_filterclause();
35963
35963
  init_filterconjunction();
35964
- Clauses$inboundSchema = unionType([FilterClause$inboundSchema, lazyType(() => Filter$inboundSchema)]);
35965
- Clauses$outboundSchema = unionType([FilterClause$outboundSchema, lazyType(() => Filter$outboundSchema)]);
35964
+ Clauses$inboundSchema = unionType([lazyType(() => Filter$inboundSchema), FilterClause$inboundSchema]);
35965
+ Clauses$outboundSchema = unionType([lazyType(() => Filter$outboundSchema), FilterClause$outboundSchema]);
35966
35966
  ((Clauses$) => {
35967
35967
  Clauses$.inboundSchema = Clauses$inboundSchema;
35968
35968
  Clauses$.outboundSchema = Clauses$outboundSchema;
35969
35969
  })(Clauses$ ||= {});
35970
35970
  Filter$inboundSchema = objectType({
35971
35971
  conjunction: FilterConjunction$inboundSchema,
35972
- clauses: arrayType(unionType([FilterClause$inboundSchema, lazyType(() => Filter$inboundSchema)]))
35972
+ clauses: arrayType(unionType([lazyType(() => Filter$inboundSchema), FilterClause$inboundSchema]))
35973
35973
  });
35974
35974
  Filter$outboundSchema = objectType({
35975
35975
  conjunction: FilterConjunction$outboundSchema,
35976
- clauses: arrayType(unionType([FilterClause$outboundSchema, lazyType(() => Filter$outboundSchema)]))
35976
+ clauses: arrayType(unionType([lazyType(() => Filter$outboundSchema), FilterClause$outboundSchema]))
35977
35977
  });
35978
35978
  ((Filter$) => {
35979
35979
  Filter$.inboundSchema = Filter$inboundSchema;
@@ -36026,18 +36026,18 @@ var init_meter = __esm(() => {
36026
36026
  MeterMetadata$.outboundSchema = MeterMetadata$outboundSchema;
36027
36027
  })(MeterMetadata$ ||= {});
36028
36028
  MeterAggregation$inboundSchema = unionType([
36029
+ CountAggregation$inboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func }))),
36029
36030
  PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36030
- PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36031
- PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36032
- PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36033
- CountAggregation$inboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func })))
36031
+ PropertyAggregation$inboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({ func: v2.func }))),
36032
+ PropertyAggregation$inboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({ func: v2.func }))),
36033
+ PropertyAggregation$inboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({ func: v2.func })))
36034
36034
  ]);
36035
36035
  MeterAggregation$outboundSchema = unionType([
36036
+ CountAggregation$outboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func }))),
36036
36037
  PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36037
- PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36038
- PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36039
- PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36040
- CountAggregation$outboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func })))
36038
+ PropertyAggregation$outboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({ func: v2.func }))),
36039
+ PropertyAggregation$outboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({ func: v2.func }))),
36040
+ PropertyAggregation$outboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({ func: v2.func })))
36041
36041
  ]);
36042
36042
  ((MeterAggregation$) => {
36043
36043
  MeterAggregation$.inboundSchema = MeterAggregation$inboundSchema;
@@ -36051,19 +36051,19 @@ var init_meter = __esm(() => {
36051
36051
  name: stringType(),
36052
36052
  filter: Filter$inboundSchema,
36053
36053
  aggregation: unionType([
36054
- PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({
36054
+ CountAggregation$inboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({
36055
36055
  func: v2.func
36056
36056
  }))),
36057
36057
  PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({
36058
36058
  func: v2.func
36059
36059
  }))),
36060
- PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({
36060
+ PropertyAggregation$inboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({
36061
36061
  func: v2.func
36062
36062
  }))),
36063
- PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({
36063
+ PropertyAggregation$inboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({
36064
36064
  func: v2.func
36065
36065
  }))),
36066
- CountAggregation$inboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({
36066
+ PropertyAggregation$inboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({
36067
36067
  func: v2.func
36068
36068
  })))
36069
36069
  ]),
@@ -36083,13 +36083,13 @@ var init_meter = __esm(() => {
36083
36083
  name: stringType(),
36084
36084
  filter: Filter$outboundSchema,
36085
36085
  aggregation: unionType([
36086
- PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36087
- PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36088
- PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36089
- PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36090
36086
  CountAggregation$outboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({
36091
36087
  func: v2.func
36092
- })))
36088
+ }))),
36089
+ PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
36090
+ PropertyAggregation$outboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({ func: v2.func }))),
36091
+ PropertyAggregation$outboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({ func: v2.func }))),
36092
+ PropertyAggregation$outboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({ func: v2.func })))
36093
36093
  ]),
36094
36094
  organizationId: stringType()
36095
36095
  }).transform((v2) => {
@@ -37639,7 +37639,7 @@ var init_benefittype = __esm(() => {
37639
37639
  });
37640
37640
 
37641
37641
  // src/models/components/customerstatebenefitgrant.ts
37642
- var CustomerStateBenefitGrantProperties$inboundSchema, CustomerStateBenefitGrantProperties$outboundSchema, CustomerStateBenefitGrantProperties$, CustomerStateBenefitGrant$inboundSchema, CustomerStateBenefitGrant$outboundSchema, CustomerStateBenefitGrant$;
37642
+ var BenefitMetadata$inboundSchema, BenefitMetadata$outboundSchema, BenefitMetadata$, CustomerStateBenefitGrantProperties$inboundSchema, CustomerStateBenefitGrantProperties$outboundSchema, CustomerStateBenefitGrantProperties$, CustomerStateBenefitGrant$inboundSchema, CustomerStateBenefitGrant$outboundSchema, CustomerStateBenefitGrant$;
37643
37643
  var init_customerstatebenefitgrant = __esm(() => {
37644
37644
  init_esm();
37645
37645
  init_primitives();
@@ -37649,19 +37649,25 @@ var init_customerstatebenefitgrant = __esm(() => {
37649
37649
  init_benefitgrantgithubrepositoryproperties();
37650
37650
  init_benefitgrantlicensekeysproperties();
37651
37651
  init_benefittype();
37652
+ BenefitMetadata$inboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
37653
+ BenefitMetadata$outboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
37654
+ ((BenefitMetadata$) => {
37655
+ BenefitMetadata$.inboundSchema = BenefitMetadata$inboundSchema;
37656
+ BenefitMetadata$.outboundSchema = BenefitMetadata$outboundSchema;
37657
+ })(BenefitMetadata$ ||= {});
37652
37658
  CustomerStateBenefitGrantProperties$inboundSchema = unionType([
37653
- BenefitGrantDiscordProperties$inboundSchema,
37654
- BenefitGrantGitHubRepositoryProperties$inboundSchema,
37659
+ BenefitGrantCustomProperties$inboundSchema,
37655
37660
  BenefitGrantDownloadablesProperties$inboundSchema,
37656
37661
  BenefitGrantLicenseKeysProperties$inboundSchema,
37657
- BenefitGrantCustomProperties$inboundSchema
37662
+ BenefitGrantDiscordProperties$inboundSchema,
37663
+ BenefitGrantGitHubRepositoryProperties$inboundSchema
37658
37664
  ]);
37659
37665
  CustomerStateBenefitGrantProperties$outboundSchema = unionType([
37660
- BenefitGrantDiscordProperties$outboundSchema,
37661
- BenefitGrantGitHubRepositoryProperties$outboundSchema,
37666
+ BenefitGrantCustomProperties$outboundSchema,
37662
37667
  BenefitGrantDownloadablesProperties$outboundSchema,
37663
37668
  BenefitGrantLicenseKeysProperties$outboundSchema,
37664
- BenefitGrantCustomProperties$outboundSchema
37669
+ BenefitGrantDiscordProperties$outboundSchema,
37670
+ BenefitGrantGitHubRepositoryProperties$outboundSchema
37665
37671
  ]);
37666
37672
  ((CustomerStateBenefitGrantProperties$) => {
37667
37673
  CustomerStateBenefitGrantProperties$.inboundSchema = CustomerStateBenefitGrantProperties$inboundSchema;
@@ -37674,12 +37680,13 @@ var init_customerstatebenefitgrant = __esm(() => {
37674
37680
  granted_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
37675
37681
  benefit_id: stringType(),
37676
37682
  benefit_type: BenefitType$inboundSchema,
37683
+ benefit_metadata: recordType(unionType([stringType(), numberType().int(), numberType(), booleanType()])),
37677
37684
  properties: unionType([
37678
- BenefitGrantDiscordProperties$inboundSchema,
37679
- BenefitGrantGitHubRepositoryProperties$inboundSchema,
37685
+ BenefitGrantCustomProperties$inboundSchema,
37680
37686
  BenefitGrantDownloadablesProperties$inboundSchema,
37681
37687
  BenefitGrantLicenseKeysProperties$inboundSchema,
37682
- BenefitGrantCustomProperties$inboundSchema
37688
+ BenefitGrantDiscordProperties$inboundSchema,
37689
+ BenefitGrantGitHubRepositoryProperties$inboundSchema
37683
37690
  ])
37684
37691
  }).transform((v2) => {
37685
37692
  return remap(v2, {
@@ -37687,7 +37694,8 @@ var init_customerstatebenefitgrant = __esm(() => {
37687
37694
  modified_at: "modifiedAt",
37688
37695
  granted_at: "grantedAt",
37689
37696
  benefit_id: "benefitId",
37690
- benefit_type: "benefitType"
37697
+ benefit_type: "benefitType",
37698
+ benefit_metadata: "benefitMetadata"
37691
37699
  });
37692
37700
  });
37693
37701
  CustomerStateBenefitGrant$outboundSchema = objectType({
@@ -37697,12 +37705,13 @@ var init_customerstatebenefitgrant = __esm(() => {
37697
37705
  grantedAt: dateType().transform((v2) => v2.toISOString()),
37698
37706
  benefitId: stringType(),
37699
37707
  benefitType: BenefitType$outboundSchema,
37708
+ benefitMetadata: recordType(unionType([stringType(), numberType().int(), numberType(), booleanType()])),
37700
37709
  properties: unionType([
37701
- BenefitGrantDiscordProperties$outboundSchema,
37702
- BenefitGrantGitHubRepositoryProperties$outboundSchema,
37710
+ BenefitGrantCustomProperties$outboundSchema,
37703
37711
  BenefitGrantDownloadablesProperties$outboundSchema,
37704
37712
  BenefitGrantLicenseKeysProperties$outboundSchema,
37705
- BenefitGrantCustomProperties$outboundSchema
37713
+ BenefitGrantDiscordProperties$outboundSchema,
37714
+ BenefitGrantGitHubRepositoryProperties$outboundSchema
37706
37715
  ])
37707
37716
  }).transform((v2) => {
37708
37717
  return remap(v2, {
@@ -37710,7 +37719,8 @@ var init_customerstatebenefitgrant = __esm(() => {
37710
37719
  modifiedAt: "modified_at",
37711
37720
  grantedAt: "granted_at",
37712
37721
  benefitId: "benefit_id",
37713
- benefitType: "benefit_type"
37722
+ benefitType: "benefit_type",
37723
+ benefitMetadata: "benefit_metadata"
37714
37724
  });
37715
37725
  });
37716
37726
  ((CustomerStateBenefitGrant$) => {
@@ -40908,16 +40918,16 @@ var init_order = __esm(() => {
40908
40918
  OrderCustomFieldData$.outboundSchema = OrderCustomFieldData$outboundSchema;
40909
40919
  })(OrderCustomFieldData$ ||= {});
40910
40920
  OrderDiscount$inboundSchema = unionType([
40911
- DiscountFixedRepeatDurationBase$inboundSchema,
40921
+ DiscountPercentageOnceForeverDurationBase$inboundSchema,
40912
40922
  DiscountFixedOnceForeverDurationBase$inboundSchema,
40913
40923
  DiscountPercentageRepeatDurationBase$inboundSchema,
40914
- DiscountPercentageOnceForeverDurationBase$inboundSchema
40924
+ DiscountFixedRepeatDurationBase$inboundSchema
40915
40925
  ]);
40916
40926
  OrderDiscount$outboundSchema = unionType([
40917
- DiscountFixedRepeatDurationBase$outboundSchema,
40927
+ DiscountPercentageOnceForeverDurationBase$outboundSchema,
40918
40928
  DiscountFixedOnceForeverDurationBase$outboundSchema,
40919
40929
  DiscountPercentageRepeatDurationBase$outboundSchema,
40920
- DiscountPercentageOnceForeverDurationBase$outboundSchema
40930
+ DiscountFixedRepeatDurationBase$outboundSchema
40921
40931
  ]);
40922
40932
  ((OrderDiscount$) => {
40923
40933
  OrderDiscount$.inboundSchema = OrderDiscount$inboundSchema;
@@ -40958,10 +40968,10 @@ var init_order = __esm(() => {
40958
40968
  user_id: stringType(),
40959
40969
  product: OrderProduct$inboundSchema,
40960
40970
  discount: nullableType(unionType([
40961
- DiscountFixedRepeatDurationBase$inboundSchema,
40971
+ DiscountPercentageOnceForeverDurationBase$inboundSchema,
40962
40972
  DiscountFixedOnceForeverDurationBase$inboundSchema,
40963
40973
  DiscountPercentageRepeatDurationBase$inboundSchema,
40964
- DiscountPercentageOnceForeverDurationBase$inboundSchema
40974
+ DiscountFixedRepeatDurationBase$inboundSchema
40965
40975
  ])),
40966
40976
  subscription: nullableType(OrderSubscription$inboundSchema),
40967
40977
  items: arrayType(OrderItemSchema$inboundSchema)
@@ -41024,10 +41034,10 @@ var init_order = __esm(() => {
41024
41034
  userId: stringType(),
41025
41035
  product: OrderProduct$outboundSchema,
41026
41036
  discount: nullableType(unionType([
41027
- DiscountFixedRepeatDurationBase$outboundSchema,
41037
+ DiscountPercentageOnceForeverDurationBase$outboundSchema,
41028
41038
  DiscountFixedOnceForeverDurationBase$outboundSchema,
41029
41039
  DiscountPercentageRepeatDurationBase$outboundSchema,
41030
- DiscountPercentageOnceForeverDurationBase$outboundSchema
41040
+ DiscountFixedRepeatDurationBase$outboundSchema
41031
41041
  ])),
41032
41042
  subscription: nullableType(OrderSubscription$outboundSchema),
41033
41043
  items: arrayType(OrderItemSchema$outboundSchema)
@@ -42018,8 +42028,8 @@ var init_payment = __esm(() => {
42018
42028
  init_esm();
42019
42029
  init_cardpayment();
42020
42030
  init_genericpayment();
42021
- Payment$inboundSchema = unionType([CardPayment$inboundSchema, GenericPayment$inboundSchema]);
42022
- Payment$outboundSchema = unionType([CardPayment$outboundSchema, GenericPayment$outboundSchema]);
42031
+ Payment$inboundSchema = unionType([GenericPayment$inboundSchema, CardPayment$inboundSchema]);
42032
+ Payment$outboundSchema = unionType([GenericPayment$outboundSchema, CardPayment$outboundSchema]);
42023
42033
  ((Payment$) => {
42024
42034
  Payment$.inboundSchema = Payment$inboundSchema;
42025
42035
  Payment$.outboundSchema = Payment$outboundSchema;
@@ -43776,24 +43786,24 @@ var init_legacyrecurringproductprice = __esm(() => {
43776
43786
  init_legacyrecurringproductpricefixed();
43777
43787
  init_legacyrecurringproductpricefree();
43778
43788
  LegacyRecurringProductPrice$inboundSchema = unionType([
43779
- LegacyRecurringProductPriceCustom$inboundSchema.and(objectType({ amount_type: literalType("custom") }).transform((v2) => ({
43789
+ LegacyRecurringProductPriceFree$inboundSchema.and(objectType({ amount_type: literalType("free") }).transform((v2) => ({
43780
43790
  amountType: v2.amount_type
43781
43791
  }))),
43782
43792
  LegacyRecurringProductPriceFixed$inboundSchema.and(objectType({ amount_type: literalType("fixed") }).transform((v2) => ({
43783
43793
  amountType: v2.amount_type
43784
43794
  }))),
43785
- LegacyRecurringProductPriceFree$inboundSchema.and(objectType({ amount_type: literalType("free") }).transform((v2) => ({
43795
+ LegacyRecurringProductPriceCustom$inboundSchema.and(objectType({ amount_type: literalType("custom") }).transform((v2) => ({
43786
43796
  amountType: v2.amount_type
43787
43797
  })))
43788
43798
  ]);
43789
43799
  LegacyRecurringProductPrice$outboundSchema = unionType([
43790
- LegacyRecurringProductPriceCustom$outboundSchema.and(objectType({ amountType: literalType("custom") }).transform((v2) => ({
43800
+ LegacyRecurringProductPriceFree$outboundSchema.and(objectType({ amountType: literalType("free") }).transform((v2) => ({
43791
43801
  amount_type: v2.amountType
43792
43802
  }))),
43793
43803
  LegacyRecurringProductPriceFixed$outboundSchema.and(objectType({ amountType: literalType("fixed") }).transform((v2) => ({
43794
43804
  amount_type: v2.amountType
43795
43805
  }))),
43796
- LegacyRecurringProductPriceFree$outboundSchema.and(objectType({ amountType: literalType("free") }).transform((v2) => ({
43806
+ LegacyRecurringProductPriceCustom$outboundSchema.and(objectType({ amountType: literalType("custom") }).transform((v2) => ({
43797
43807
  amount_type: v2.amountType
43798
43808
  })))
43799
43809
  ]);
@@ -44170,30 +44180,30 @@ var init_productprice = __esm(() => {
44170
44180
  init_productpricefree();
44171
44181
  init_productpricemeteredunit();
44172
44182
  ProductPrice$inboundSchema = unionType([
44173
- ProductPriceMeteredUnit$inboundSchema.and(objectType({ amount_type: literalType("metered_unit") }).transform((v2) => ({
44183
+ ProductPriceFree$inboundSchema.and(objectType({ amount_type: literalType("free") }).transform((v2) => ({
44174
44184
  amountType: v2.amount_type
44175
44185
  }))),
44176
- ProductPriceCustom$inboundSchema.and(objectType({ amount_type: literalType("custom") }).transform((v2) => ({
44186
+ ProductPriceFixed$inboundSchema.and(objectType({ amount_type: literalType("fixed") }).transform((v2) => ({
44177
44187
  amountType: v2.amount_type
44178
44188
  }))),
44179
- ProductPriceFixed$inboundSchema.and(objectType({ amount_type: literalType("fixed") }).transform((v2) => ({
44189
+ ProductPriceCustom$inboundSchema.and(objectType({ amount_type: literalType("custom") }).transform((v2) => ({
44180
44190
  amountType: v2.amount_type
44181
44191
  }))),
44182
- ProductPriceFree$inboundSchema.and(objectType({ amount_type: literalType("free") }).transform((v2) => ({
44192
+ ProductPriceMeteredUnit$inboundSchema.and(objectType({ amount_type: literalType("metered_unit") }).transform((v2) => ({
44183
44193
  amountType: v2.amount_type
44184
44194
  })))
44185
44195
  ]);
44186
44196
  ProductPrice$outboundSchema = unionType([
44187
- ProductPriceMeteredUnit$outboundSchema.and(objectType({ amountType: literalType("metered_unit") }).transform((v2) => ({
44197
+ ProductPriceFree$outboundSchema.and(objectType({ amountType: literalType("free") }).transform((v2) => ({
44188
44198
  amount_type: v2.amountType
44189
44199
  }))),
44190
- ProductPriceCustom$outboundSchema.and(objectType({ amountType: literalType("custom") }).transform((v2) => ({
44200
+ ProductPriceFixed$outboundSchema.and(objectType({ amountType: literalType("fixed") }).transform((v2) => ({
44191
44201
  amount_type: v2.amountType
44192
44202
  }))),
44193
- ProductPriceFixed$outboundSchema.and(objectType({ amountType: literalType("fixed") }).transform((v2) => ({
44203
+ ProductPriceCustom$outboundSchema.and(objectType({ amountType: literalType("custom") }).transform((v2) => ({
44194
44204
  amount_type: v2.amountType
44195
44205
  }))),
44196
- ProductPriceFree$outboundSchema.and(objectType({ amountType: literalType("free") }).transform((v2) => ({
44206
+ ProductPriceMeteredUnit$outboundSchema.and(objectType({ amountType: literalType("metered_unit") }).transform((v2) => ({
44197
44207
  amount_type: v2.amountType
44198
44208
  })))
44199
44209
  ]);
@@ -44487,16 +44497,16 @@ var init_productcreate = __esm(() => {
44487
44497
  ProductCreateMetadata$.outboundSchema = ProductCreateMetadata$outboundSchema;
44488
44498
  })(ProductCreateMetadata$ ||= {});
44489
44499
  ProductCreatePrices$inboundSchema = unionType([
44490
- ProductPriceMeteredUnitCreate$inboundSchema,
44500
+ ProductPriceFreeCreate$inboundSchema,
44491
44501
  ProductPriceFixedCreate$inboundSchema,
44492
44502
  ProductPriceCustomCreate$inboundSchema,
44493
- ProductPriceFreeCreate$inboundSchema
44503
+ ProductPriceMeteredUnitCreate$inboundSchema
44494
44504
  ]);
44495
44505
  ProductCreatePrices$outboundSchema = unionType([
44496
- ProductPriceMeteredUnitCreate$outboundSchema,
44506
+ ProductPriceFreeCreate$outboundSchema,
44497
44507
  ProductPriceFixedCreate$outboundSchema,
44498
44508
  ProductPriceCustomCreate$outboundSchema,
44499
- ProductPriceFreeCreate$outboundSchema
44509
+ ProductPriceMeteredUnitCreate$outboundSchema
44500
44510
  ]);
44501
44511
  ((ProductCreatePrices$) => {
44502
44512
  ProductCreatePrices$.inboundSchema = ProductCreatePrices$inboundSchema;
@@ -44508,10 +44518,10 @@ var init_productcreate = __esm(() => {
44508
44518
  description: nullableType(stringType()).optional(),
44509
44519
  recurring_interval: nullableType(SubscriptionRecurringInterval$inboundSchema),
44510
44520
  prices: arrayType(unionType([
44511
- ProductPriceMeteredUnitCreate$inboundSchema,
44521
+ ProductPriceFreeCreate$inboundSchema,
44512
44522
  ProductPriceFixedCreate$inboundSchema,
44513
44523
  ProductPriceCustomCreate$inboundSchema,
44514
- ProductPriceFreeCreate$inboundSchema
44524
+ ProductPriceMeteredUnitCreate$inboundSchema
44515
44525
  ])),
44516
44526
  medias: nullableType(arrayType(stringType())).optional(),
44517
44527
  attached_custom_fields: arrayType(AttachedCustomFieldCreate$inboundSchema).optional(),
@@ -44529,10 +44539,10 @@ var init_productcreate = __esm(() => {
44529
44539
  description: nullableType(stringType()).optional(),
44530
44540
  recurringInterval: nullableType(SubscriptionRecurringInterval$outboundSchema),
44531
44541
  prices: arrayType(unionType([
44532
- ProductPriceMeteredUnitCreate$outboundSchema,
44542
+ ProductPriceFreeCreate$outboundSchema,
44533
44543
  ProductPriceFixedCreate$outboundSchema,
44534
44544
  ProductPriceCustomCreate$outboundSchema,
44535
- ProductPriceFreeCreate$outboundSchema
44545
+ ProductPriceMeteredUnitCreate$outboundSchema
44536
44546
  ])),
44537
44547
  medias: nullableType(arrayType(stringType())).optional(),
44538
44548
  attachedCustomFields: arrayType(AttachedCustomFieldCreate$outboundSchema).optional(),
@@ -45140,18 +45150,18 @@ var init_productupdate = __esm(() => {
45140
45150
  ProductUpdateMetadata$.outboundSchema = ProductUpdateMetadata$outboundSchema;
45141
45151
  })(ProductUpdateMetadata$ ||= {});
45142
45152
  ProductUpdatePrices$inboundSchema = unionType([
45143
- ProductPriceMeteredUnitCreate$inboundSchema,
45144
- ProductPriceFixedCreate$inboundSchema,
45145
45153
  ExistingProductPrice$inboundSchema,
45154
+ ProductPriceFreeCreate$inboundSchema,
45155
+ ProductPriceFixedCreate$inboundSchema,
45146
45156
  ProductPriceCustomCreate$inboundSchema,
45147
- ProductPriceFreeCreate$inboundSchema
45157
+ ProductPriceMeteredUnitCreate$inboundSchema
45148
45158
  ]);
45149
45159
  ProductUpdatePrices$outboundSchema = unionType([
45150
- ProductPriceMeteredUnitCreate$outboundSchema,
45151
- ProductPriceFixedCreate$outboundSchema,
45152
45160
  ExistingProductPrice$outboundSchema,
45161
+ ProductPriceFreeCreate$outboundSchema,
45162
+ ProductPriceFixedCreate$outboundSchema,
45153
45163
  ProductPriceCustomCreate$outboundSchema,
45154
- ProductPriceFreeCreate$outboundSchema
45164
+ ProductPriceMeteredUnitCreate$outboundSchema
45155
45165
  ]);
45156
45166
  ((ProductUpdatePrices$) => {
45157
45167
  ProductUpdatePrices$.inboundSchema = ProductUpdatePrices$inboundSchema;
@@ -45164,11 +45174,11 @@ var init_productupdate = __esm(() => {
45164
45174
  recurring_interval: nullableType(SubscriptionRecurringInterval$inboundSchema).optional(),
45165
45175
  is_archived: nullableType(booleanType()).optional(),
45166
45176
  prices: nullableType(arrayType(unionType([
45167
- ProductPriceMeteredUnitCreate$inboundSchema,
45168
- ProductPriceFixedCreate$inboundSchema,
45169
45177
  ExistingProductPrice$inboundSchema,
45178
+ ProductPriceFreeCreate$inboundSchema,
45179
+ ProductPriceFixedCreate$inboundSchema,
45170
45180
  ProductPriceCustomCreate$inboundSchema,
45171
- ProductPriceFreeCreate$inboundSchema
45181
+ ProductPriceMeteredUnitCreate$inboundSchema
45172
45182
  ]))).optional(),
45173
45183
  medias: nullableType(arrayType(stringType())).optional(),
45174
45184
  attached_custom_fields: nullableType(arrayType(AttachedCustomFieldCreate$inboundSchema)).optional()
@@ -45186,11 +45196,11 @@ var init_productupdate = __esm(() => {
45186
45196
  recurringInterval: nullableType(SubscriptionRecurringInterval$outboundSchema).optional(),
45187
45197
  isArchived: nullableType(booleanType()).optional(),
45188
45198
  prices: nullableType(arrayType(unionType([
45189
- ProductPriceMeteredUnitCreate$outboundSchema,
45190
- ProductPriceFixedCreate$outboundSchema,
45191
45199
  ExistingProductPrice$outboundSchema,
45200
+ ProductPriceFreeCreate$outboundSchema,
45201
+ ProductPriceFixedCreate$outboundSchema,
45192
45202
  ProductPriceCustomCreate$outboundSchema,
45193
- ProductPriceFreeCreate$outboundSchema
45203
+ ProductPriceMeteredUnitCreate$outboundSchema
45194
45204
  ]))).optional(),
45195
45205
  medias: nullableType(arrayType(stringType())).optional(),
45196
45206
  attachedCustomFields: nullableType(arrayType(AttachedCustomFieldCreate$outboundSchema)).optional()
@@ -45819,16 +45829,16 @@ var init_subscription = __esm(() => {
45819
45829
  CustomFieldData$.outboundSchema = CustomFieldData$outboundSchema;
45820
45830
  })(CustomFieldData$ ||= {});
45821
45831
  SubscriptionDiscount$inboundSchema = unionType([
45822
- DiscountFixedRepeatDurationBase$inboundSchema,
45832
+ DiscountPercentageOnceForeverDurationBase$inboundSchema,
45823
45833
  DiscountFixedOnceForeverDurationBase$inboundSchema,
45824
45834
  DiscountPercentageRepeatDurationBase$inboundSchema,
45825
- DiscountPercentageOnceForeverDurationBase$inboundSchema
45835
+ DiscountFixedRepeatDurationBase$inboundSchema
45826
45836
  ]);
45827
45837
  SubscriptionDiscount$outboundSchema = unionType([
45828
- DiscountFixedRepeatDurationBase$outboundSchema,
45838
+ DiscountPercentageOnceForeverDurationBase$outboundSchema,
45829
45839
  DiscountFixedOnceForeverDurationBase$outboundSchema,
45830
45840
  DiscountPercentageRepeatDurationBase$outboundSchema,
45831
- DiscountPercentageOnceForeverDurationBase$outboundSchema
45841
+ DiscountFixedRepeatDurationBase$outboundSchema
45832
45842
  ]);
45833
45843
  ((SubscriptionDiscount$) => {
45834
45844
  SubscriptionDiscount$.inboundSchema = SubscriptionDiscount$inboundSchema;
@@ -45877,10 +45887,10 @@ var init_subscription = __esm(() => {
45877
45887
  customer: SubscriptionCustomer$inboundSchema,
45878
45888
  product: Product$inboundSchema,
45879
45889
  discount: nullableType(unionType([
45880
- DiscountFixedRepeatDurationBase$inboundSchema,
45890
+ DiscountPercentageOnceForeverDurationBase$inboundSchema,
45881
45891
  DiscountFixedOnceForeverDurationBase$inboundSchema,
45882
45892
  DiscountPercentageRepeatDurationBase$inboundSchema,
45883
- DiscountPercentageOnceForeverDurationBase$inboundSchema
45893
+ DiscountFixedRepeatDurationBase$inboundSchema
45884
45894
  ])),
45885
45895
  prices: arrayType(unionType([
45886
45896
  LegacyRecurringProductPrice$inboundSchema,
@@ -45939,10 +45949,10 @@ var init_subscription = __esm(() => {
45939
45949
  customer: SubscriptionCustomer$outboundSchema,
45940
45950
  product: Product$outboundSchema,
45941
45951
  discount: nullableType(unionType([
45942
- DiscountFixedRepeatDurationBase$outboundSchema,
45952
+ DiscountPercentageOnceForeverDurationBase$outboundSchema,
45943
45953
  DiscountFixedOnceForeverDurationBase$outboundSchema,
45944
45954
  DiscountPercentageRepeatDurationBase$outboundSchema,
45945
- DiscountPercentageOnceForeverDurationBase$outboundSchema
45955
+ DiscountFixedRepeatDurationBase$outboundSchema
45946
45956
  ])),
45947
45957
  prices: arrayType(unionType([
45948
45958
  LegacyRecurringProductPrice$outboundSchema,
@@ -46714,14 +46724,14 @@ var init_subscriptionupdate = __esm(() => {
46714
46724
  init_subscriptionupdatediscount();
46715
46725
  init_subscriptionupdateproduct();
46716
46726
  SubscriptionUpdate$inboundSchema = unionType([
46717
- SubscriptionUpdateProduct$inboundSchema,
46718
46727
  SubscriptionUpdateDiscount$inboundSchema,
46728
+ SubscriptionUpdateProduct$inboundSchema,
46719
46729
  SubscriptionCancel$inboundSchema,
46720
46730
  SubscriptionRevoke$inboundSchema
46721
46731
  ]);
46722
46732
  SubscriptionUpdate$outboundSchema = unionType([
46723
- SubscriptionUpdateProduct$outboundSchema,
46724
46733
  SubscriptionUpdateDiscount$outboundSchema,
46734
+ SubscriptionUpdateProduct$outboundSchema,
46725
46735
  SubscriptionCancel$outboundSchema,
46726
46736
  SubscriptionRevoke$outboundSchema
46727
46737
  ]);
@@ -46880,7 +46890,7 @@ Update a subscription.
46880
46890
  function createMCPServer(deps) {
46881
46891
  const server = new McpServer({
46882
46892
  name: "Polar",
46883
- version: "0.33.2"
46893
+ version: "0.34.1"
46884
46894
  });
46885
46895
  const client = new PolarCore({
46886
46896
  accessToken: deps.accessToken,
@@ -48167,7 +48177,7 @@ var routes = rn({
48167
48177
  var app = Ve(routes, {
48168
48178
  name: "mcp",
48169
48179
  versionInfo: {
48170
- currentVersion: "0.33.2"
48180
+ currentVersion: "0.34.1"
48171
48181
  }
48172
48182
  });
48173
48183
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -48175,5 +48185,5 @@ export {
48175
48185
  app
48176
48186
  };
48177
48187
 
48178
- //# debugId=110CAAC1882C78A064756E2164756E21
48188
+ //# debugId=E2A42F9EBC4C356D64756E2164756E21
48179
48189
  //# sourceMappingURL=mcp-server.js.map