chargefy-js 1.0.0

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 (2861) hide show
  1. package/.claude/EXAMPLE_SESSION.md +647 -0
  2. package/.claude/INDEX.md +404 -0
  3. package/.claude/MULTI_AGENT_WORKFLOW.md +557 -0
  4. package/.claude/QUICK_REFERENCE.md +399 -0
  5. package/.claude/README.md +342 -0
  6. package/.claude/agents/backend-engineer.md +230 -0
  7. package/.claude/agents/product-manager.md +462 -0
  8. package/.claude/agents/qa-engineer.md +430 -0
  9. package/.claude/prompts/api-compliance-check.md +372 -0
  10. package/.claude/prompts/sdk-architecture-review.md +233 -0
  11. package/.claude/settings.local.json +20 -0
  12. package/.tsbuildinfo +1 -0
  13. package/.tshy/build.json +8 -0
  14. package/.tshy/commonjs.json +16 -0
  15. package/.tshy/esm.json +15 -0
  16. package/AGENT_SYSTEM_SUMMARY.md +406 -0
  17. package/CONTRIBUTING.md +26 -0
  18. package/FUNCTIONS.md +89 -0
  19. package/README.md +968 -0
  20. package/RELEASES.md +1121 -0
  21. package/RUNTIMES.md +48 -0
  22. package/USAGE.md +20 -0
  23. package/codeSamples.yaml +1115 -0
  24. package/docs/lib/utils/retryconfig.md +24 -0
  25. package/docs/models/components/activesubscriptions.md +17 -0
  26. package/docs/models/components/activeuserbyevent.md +17 -0
  27. package/docs/models/components/address.md +22 -0
  28. package/docs/models/components/addressdict.md +22 -0
  29. package/docs/models/components/addressinput.md +22 -0
  30. package/docs/models/components/aggregation.md +55 -0
  31. package/docs/models/components/aggregationfunction.md +15 -0
  32. package/docs/models/components/amount.md +19 -0
  33. package/docs/models/components/attachedcustomfield.md +37 -0
  34. package/docs/models/components/attachedcustomfieldcreate.md +21 -0
  35. package/docs/models/components/authorizationcodetokenrequest.md +25 -0
  36. package/docs/models/components/authorizeorganization.md +21 -0
  37. package/docs/models/components/authorizeresponseorganization.md +38 -0
  38. package/docs/models/components/authorizeresponseuser.md +36 -0
  39. package/docs/models/components/authorizeuser.md +21 -0
  40. package/docs/models/components/averageordervalue.md +17 -0
  41. package/docs/models/components/averagerevenueperuser.md +17 -0
  42. package/docs/models/components/benefit.md +149 -0
  43. package/docs/models/components/benefitcreate.md +91 -0
  44. package/docs/models/components/benefitcustom.md +43 -0
  45. package/docs/models/components/benefitcustomcreate.md +26 -0
  46. package/docs/models/components/benefitcustomcreatemetadata.md +29 -0
  47. package/docs/models/components/benefitcustomcreateproperties.md +17 -0
  48. package/docs/models/components/benefitcustommetadata.md +29 -0
  49. package/docs/models/components/benefitcustomproperties.md +19 -0
  50. package/docs/models/components/benefitcustomsubscriber.md +73 -0
  51. package/docs/models/components/benefitcustomsubscribermetadata.md +29 -0
  52. package/docs/models/components/benefitcustomsubscriberproperties.md +19 -0
  53. package/docs/models/components/benefitcustomupdate.md +20 -0
  54. package/docs/models/components/benefitcustomupdatemetadata.md +29 -0
  55. package/docs/models/components/benefitcycledevent.md +60 -0
  56. package/docs/models/components/benefitdiscord.md +46 -0
  57. package/docs/models/components/benefitdiscordcreate.md +28 -0
  58. package/docs/models/components/benefitdiscordcreatemetadata.md +29 -0
  59. package/docs/models/components/benefitdiscordcreateproperties.md +23 -0
  60. package/docs/models/components/benefitdiscordmetadata.md +29 -0
  61. package/docs/models/components/benefitdiscordproperties.md +25 -0
  62. package/docs/models/components/benefitdiscordsubscriber.md +74 -0
  63. package/docs/models/components/benefitdiscordsubscribermetadata.md +29 -0
  64. package/docs/models/components/benefitdiscordsubscriberproperties.md +19 -0
  65. package/docs/models/components/benefitdiscordupdate.md +20 -0
  66. package/docs/models/components/benefitdiscordupdatemetadata.md +29 -0
  67. package/docs/models/components/benefitdownloadables.md +45 -0
  68. package/docs/models/components/benefitdownloadablescreate.md +29 -0
  69. package/docs/models/components/benefitdownloadablescreatemetadata.md +29 -0
  70. package/docs/models/components/benefitdownloadablescreateproperties.md +21 -0
  71. package/docs/models/components/benefitdownloadablesmetadata.md +29 -0
  72. package/docs/models/components/benefitdownloadablesproperties.md +19 -0
  73. package/docs/models/components/benefitdownloadablessubscriber.md +76 -0
  74. package/docs/models/components/benefitdownloadablessubscribermetadata.md +29 -0
  75. package/docs/models/components/benefitdownloadablessubscriberproperties.md +20 -0
  76. package/docs/models/components/benefitdownloadablesupdate.md +20 -0
  77. package/docs/models/components/benefitdownloadablesupdatemetadata.md +29 -0
  78. package/docs/models/components/benefitgithubrepository.md +45 -0
  79. package/docs/models/components/benefitgithubrepositorycreate.md +29 -0
  80. package/docs/models/components/benefitgithubrepositorycreatemetadata.md +29 -0
  81. package/docs/models/components/benefitgithubrepositorycreateproperties.md +23 -0
  82. package/docs/models/components/benefitgithubrepositorycreatepropertiespermission.md +17 -0
  83. package/docs/models/components/benefitgithubrepositorymetadata.md +29 -0
  84. package/docs/models/components/benefitgithubrepositoryproperties.md +23 -0
  85. package/docs/models/components/benefitgithubrepositorysubscriber.md +73 -0
  86. package/docs/models/components/benefitgithubrepositorysubscribermetadata.md +29 -0
  87. package/docs/models/components/benefitgithubrepositorysubscriberproperties.md +21 -0
  88. package/docs/models/components/benefitgithubrepositoryupdate.md +25 -0
  89. package/docs/models/components/benefitgithubrepositoryupdatemetadata.md +29 -0
  90. package/docs/models/components/benefitgrant.md +78 -0
  91. package/docs/models/components/benefitgrantcustomproperties.md +14 -0
  92. package/docs/models/components/benefitgrantcustomwebhook.md +77 -0
  93. package/docs/models/components/benefitgrantdiscordproperties.md +18 -0
  94. package/docs/models/components/benefitgrantdiscordwebhook.md +82 -0
  95. package/docs/models/components/benefitgrantdownloadablesproperties.md +15 -0
  96. package/docs/models/components/benefitgrantdownloadableswebhook.md +85 -0
  97. package/docs/models/components/benefitgrantedevent.md +60 -0
  98. package/docs/models/components/benefitgranterror.md +21 -0
  99. package/docs/models/components/benefitgrantgithubrepositoryproperties.md +19 -0
  100. package/docs/models/components/benefitgrantgithubrepositorypropertiespermission.md +15 -0
  101. package/docs/models/components/benefitgrantgithubrepositorywebhook.md +81 -0
  102. package/docs/models/components/benefitgrantlicensekeysproperties.md +16 -0
  103. package/docs/models/components/benefitgrantlicensekeyswebhook.md +86 -0
  104. package/docs/models/components/benefitgrantmetadata.md +21 -0
  105. package/docs/models/components/benefitgrantmetercreditproperties.md +17 -0
  106. package/docs/models/components/benefitgrantmetercreditwebhook.md +80 -0
  107. package/docs/models/components/benefitgrantsortproperty.md +15 -0
  108. package/docs/models/components/benefitgrantwebhook.md +352 -0
  109. package/docs/models/components/benefitlicensekeyactivationcreateproperties.md +19 -0
  110. package/docs/models/components/benefitlicensekeyactivationproperties.md +19 -0
  111. package/docs/models/components/benefitlicensekeyexpirationproperties.md +19 -0
  112. package/docs/models/components/benefitlicensekeys.md +46 -0
  113. package/docs/models/components/benefitlicensekeyscreate.md +25 -0
  114. package/docs/models/components/benefitlicensekeyscreatemetadata.md +29 -0
  115. package/docs/models/components/benefitlicensekeyscreateproperties.md +18 -0
  116. package/docs/models/components/benefitlicensekeysmetadata.md +29 -0
  117. package/docs/models/components/benefitlicensekeysproperties.md +29 -0
  118. package/docs/models/components/benefitlicensekeyssubscriber.md +83 -0
  119. package/docs/models/components/benefitlicensekeyssubscribermetadata.md +29 -0
  120. package/docs/models/components/benefitlicensekeyssubscriberproperties.md +29 -0
  121. package/docs/models/components/benefitlicensekeysupdate.md +20 -0
  122. package/docs/models/components/benefitlicensekeysupdatemetadata.md +29 -0
  123. package/docs/models/components/benefitmetadata.md +29 -0
  124. package/docs/models/components/benefitmetercredit.md +43 -0
  125. package/docs/models/components/benefitmetercreditcreate.md +31 -0
  126. package/docs/models/components/benefitmetercreditcreatemetadata.md +29 -0
  127. package/docs/models/components/benefitmetercreditcreateproperties.md +23 -0
  128. package/docs/models/components/benefitmetercreditmetadata.md +29 -0
  129. package/docs/models/components/benefitmetercreditproperties.md +23 -0
  130. package/docs/models/components/benefitmetercreditsubscriber.md +76 -0
  131. package/docs/models/components/benefitmetercreditsubscribermetadata.md +29 -0
  132. package/docs/models/components/benefitmetercreditsubscriberproperties.md +23 -0
  133. package/docs/models/components/benefitmetercreditupdate.md +20 -0
  134. package/docs/models/components/benefitmetercreditupdatemetadata.md +29 -0
  135. package/docs/models/components/benefitpublic.md +32 -0
  136. package/docs/models/components/benefitrevokedevent.md +60 -0
  137. package/docs/models/components/benefitsortproperty.md +15 -0
  138. package/docs/models/components/benefittype.md +15 -0
  139. package/docs/models/components/benefitupdatedevent.md +60 -0
  140. package/docs/models/components/billingaddressfieldmode.md +15 -0
  141. package/docs/models/components/canceledsubscriptions.md +17 -0
  142. package/docs/models/components/canceledsubscriptionscustomerservice.md +17 -0
  143. package/docs/models/components/canceledsubscriptionslowquality.md +17 -0
  144. package/docs/models/components/canceledsubscriptionsmissingfeatures.md +17 -0
  145. package/docs/models/components/canceledsubscriptionsother.md +17 -0
  146. package/docs/models/components/canceledsubscriptionsswitchedservice.md +17 -0
  147. package/docs/models/components/canceledsubscriptionstoocomplex.md +17 -0
  148. package/docs/models/components/canceledsubscriptionstooexpensive.md +17 -0
  149. package/docs/models/components/canceledsubscriptionsunused.md +17 -0
  150. package/docs/models/components/cardpayment.md +49 -0
  151. package/docs/models/components/cardpaymentmetadata.md +21 -0
  152. package/docs/models/components/cashflow.md +17 -0
  153. package/docs/models/components/checkout.md +222 -0
  154. package/docs/models/components/checkoutbillingaddressfields.md +27 -0
  155. package/docs/models/components/checkoutconfirmstripe.md +33 -0
  156. package/docs/models/components/checkoutconfirmstripecustomfielddata.md +29 -0
  157. package/docs/models/components/checkoutcreate.md +49 -0
  158. package/docs/models/components/checkoutcreatecustomermetadata.md +29 -0
  159. package/docs/models/components/checkoutcreatecustomfielddata.md +29 -0
  160. package/docs/models/components/checkoutcreatemetadata.md +29 -0
  161. package/docs/models/components/checkoutcustomfielddata.md +29 -0
  162. package/docs/models/components/checkoutdiscount.md +61 -0
  163. package/docs/models/components/checkoutdiscountfixedonceforeverduration.md +31 -0
  164. package/docs/models/components/checkoutdiscountfixedrepeatduration.md +34 -0
  165. package/docs/models/components/checkoutdiscountpercentageonceforeverduration.md +29 -0
  166. package/docs/models/components/checkoutdiscountpercentagerepeatduration.md +32 -0
  167. package/docs/models/components/checkoutlink.md +104 -0
  168. package/docs/models/components/checkoutlinkcreate.md +36 -0
  169. package/docs/models/components/checkoutlinkcreateproduct.md +31 -0
  170. package/docs/models/components/checkoutlinkcreateproductmetadata.md +29 -0
  171. package/docs/models/components/checkoutlinkcreateproductprice.md +31 -0
  172. package/docs/models/components/checkoutlinkcreateproductpricemetadata.md +29 -0
  173. package/docs/models/components/checkoutlinkcreateproducts.md +33 -0
  174. package/docs/models/components/checkoutlinkcreateproductsmetadata.md +29 -0
  175. package/docs/models/components/checkoutlinkdiscount.md +101 -0
  176. package/docs/models/components/checkoutlinkmetadata.md +29 -0
  177. package/docs/models/components/checkoutlinkproduct.md +100 -0
  178. package/docs/models/components/checkoutlinkproductmetadata.md +29 -0
  179. package/docs/models/components/checkoutlinkproductprices.md +48 -0
  180. package/docs/models/components/checkoutlinksortproperty.md +15 -0
  181. package/docs/models/components/checkoutlinkupdate.md +25 -0
  182. package/docs/models/components/checkoutlinkupdatemetadata.md +29 -0
  183. package/docs/models/components/checkoutmetadata.md +29 -0
  184. package/docs/models/components/checkoutproduct.md +48 -0
  185. package/docs/models/components/checkoutproductprice.md +48 -0
  186. package/docs/models/components/checkoutproductprices.md +48 -0
  187. package/docs/models/components/checkoutpublic.md +313 -0
  188. package/docs/models/components/checkoutpublicconfirmed.md +318 -0
  189. package/docs/models/components/checkoutpublicconfirmedcustomfielddata.md +29 -0
  190. package/docs/models/components/checkoutpublicconfirmeddiscount.md +61 -0
  191. package/docs/models/components/checkoutpublicconfirmedproductprice.md +48 -0
  192. package/docs/models/components/checkoutpubliccustomfielddata.md +29 -0
  193. package/docs/models/components/checkoutpublicdiscount.md +61 -0
  194. package/docs/models/components/checkoutpublicproductprice.md +48 -0
  195. package/docs/models/components/checkouts.md +17 -0
  196. package/docs/models/components/checkoutsconversion.md +17 -0
  197. package/docs/models/components/checkoutsortproperty.md +15 -0
  198. package/docs/models/components/checkoutstatus.md +15 -0
  199. package/docs/models/components/checkoutupdate.md +42 -0
  200. package/docs/models/components/checkoutupdatecustomermetadata.md +29 -0
  201. package/docs/models/components/checkoutupdatecustomfielddata.md +29 -0
  202. package/docs/models/components/checkoutupdatemetadata.md +29 -0
  203. package/docs/models/components/checkoutupdatepublic.md +32 -0
  204. package/docs/models/components/checkoutupdatepubliccustomfielddata.md +29 -0
  205. package/docs/models/components/churnrate.md +17 -0
  206. package/docs/models/components/clauses.md +24 -0
  207. package/docs/models/components/committedmonthlyrecurringrevenue.md +17 -0
  208. package/docs/models/components/conditions.md +29 -0
  209. package/docs/models/components/costmetadatainput.md +19 -0
  210. package/docs/models/components/costmetadataoutput.md +19 -0
  211. package/docs/models/components/costperuser.md +17 -0
  212. package/docs/models/components/costs.md +17 -0
  213. package/docs/models/components/countaggregation.md +15 -0
  214. package/docs/models/components/countryalpha2.md +15 -0
  215. package/docs/models/components/countryalpha2input.md +15 -0
  216. package/docs/models/components/cumulativecosts.md +17 -0
  217. package/docs/models/components/cumulativerevenue.md +17 -0
  218. package/docs/models/components/customer.md +50 -0
  219. package/docs/models/components/customerbalance.md +21 -0
  220. package/docs/models/components/customerbenefitgrant.md +536 -0
  221. package/docs/models/components/customerbenefitgrantcustom.md +109 -0
  222. package/docs/models/components/customerbenefitgrantcustomupdate.md +17 -0
  223. package/docs/models/components/customerbenefitgrantdiscord.md +109 -0
  224. package/docs/models/components/customerbenefitgrantdiscordpropertiesupdate.md +17 -0
  225. package/docs/models/components/customerbenefitgrantdiscordupdate.md +21 -0
  226. package/docs/models/components/customerbenefitgrantdownloadables.md +110 -0
  227. package/docs/models/components/customerbenefitgrantdownloadablesupdate.md +17 -0
  228. package/docs/models/components/customerbenefitgrantgithubrepository.md +109 -0
  229. package/docs/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.md +17 -0
  230. package/docs/models/components/customerbenefitgrantgithubrepositoryupdate.md +21 -0
  231. package/docs/models/components/customerbenefitgrantlicensekeys.md +117 -0
  232. package/docs/models/components/customerbenefitgrantlicensekeysupdate.md +17 -0
  233. package/docs/models/components/customerbenefitgrantmetercredit.md +109 -0
  234. package/docs/models/components/customerbenefitgrantmetercreditupdate.md +17 -0
  235. package/docs/models/components/customerbenefitgrantsortproperty.md +15 -0
  236. package/docs/models/components/customerbenefitgrantupdate.md +59 -0
  237. package/docs/models/components/customercancellationreason.md +15 -0
  238. package/docs/models/components/customercreate.md +33 -0
  239. package/docs/models/components/customercreatedevent.md +61 -0
  240. package/docs/models/components/customercreatedmetadata.md +23 -0
  241. package/docs/models/components/customercreatemetadata.md +29 -0
  242. package/docs/models/components/customercreatetaxid.md +17 -0
  243. package/docs/models/components/customercustomermeter.md +38 -0
  244. package/docs/models/components/customercustomermetermeter.md +23 -0
  245. package/docs/models/components/customercustomermetersortproperty.md +15 -0
  246. package/docs/models/components/customercustomersession.md +19 -0
  247. package/docs/models/components/customerdeletedevent.md +61 -0
  248. package/docs/models/components/customerdeletedmetadata.md +23 -0
  249. package/docs/models/components/customermetadata.md +23 -0
  250. package/docs/models/components/customermetadata1.md +29 -0
  251. package/docs/models/components/customermeter.md +75 -0
  252. package/docs/models/components/customermetersortproperty.md +15 -0
  253. package/docs/models/components/customerorder.md +165 -0
  254. package/docs/models/components/customerorderconfirmpayment.md +19 -0
  255. package/docs/models/components/customerorderinvoice.md +19 -0
  256. package/docs/models/components/customerorderpaymentconfirmation.md +21 -0
  257. package/docs/models/components/customerorderpaymentstatus.md +20 -0
  258. package/docs/models/components/customerorderproduct.md +96 -0
  259. package/docs/models/components/customerorderproductprices.md +48 -0
  260. package/docs/models/components/customerordersortproperty.md +15 -0
  261. package/docs/models/components/customerordersubscription.md +62 -0
  262. package/docs/models/components/customerorderupdate.md +23 -0
  263. package/docs/models/components/customerorganization.md +84 -0
  264. package/docs/models/components/customerpaymentmethod.md +37 -0
  265. package/docs/models/components/customerpaymentmethodconfirm.md +19 -0
  266. package/docs/models/components/customerpaymentmethodcreate.md +21 -0
  267. package/docs/models/components/customerpaymentmethodcreaterequiresactionresponse.md +19 -0
  268. package/docs/models/components/customerpaymentmethodcreateresponse.md +36 -0
  269. package/docs/models/components/customerpaymentmethodcreatesucceededresponse.md +32 -0
  270. package/docs/models/components/customerportalcustomer.md +44 -0
  271. package/docs/models/components/customerportalcustomertaxid.md +17 -0
  272. package/docs/models/components/customerportalcustomerupdate.md +21 -0
  273. package/docs/models/components/customerportaloauthaccount.md +19 -0
  274. package/docs/models/components/customerproduct.md +58 -0
  275. package/docs/models/components/customerproductprices.md +48 -0
  276. package/docs/models/components/customerseat.md +31 -0
  277. package/docs/models/components/customerseatclaimresponse.md +26 -0
  278. package/docs/models/components/customersession.md +56 -0
  279. package/docs/models/components/customersessioncustomerexternalidcreate.md +21 -0
  280. package/docs/models/components/customersessioncustomeridcreate.md +21 -0
  281. package/docs/models/components/customersortproperty.md +15 -0
  282. package/docs/models/components/customerstate.md +111 -0
  283. package/docs/models/components/customerstatebenefitgrant.md +35 -0
  284. package/docs/models/components/customerstatebenefitgrantproperties.md +35 -0
  285. package/docs/models/components/customerstatemetadata.md +29 -0
  286. package/docs/models/components/customerstatemeter.md +31 -0
  287. package/docs/models/components/customerstatesubscription.md +68 -0
  288. package/docs/models/components/customerstatesubscriptioncustomfielddata.md +29 -0
  289. package/docs/models/components/customerstatesubscriptionmetadata.md +29 -0
  290. package/docs/models/components/customerstatesubscriptionmeter.md +31 -0
  291. package/docs/models/components/customerstatetaxid.md +17 -0
  292. package/docs/models/components/customersubscription.md +152 -0
  293. package/docs/models/components/customersubscriptioncancel.md +17 -0
  294. package/docs/models/components/customersubscriptionmeter.md +36 -0
  295. package/docs/models/components/customersubscriptionmetermeter.md +23 -0
  296. package/docs/models/components/customersubscriptionprices.md +48 -0
  297. package/docs/models/components/customersubscriptionproduct.md +91 -0
  298. package/docs/models/components/customersubscriptionproductprices.md +48 -0
  299. package/docs/models/components/customersubscriptionsortproperty.md +15 -0
  300. package/docs/models/components/customersubscriptionupdate.md +27 -0
  301. package/docs/models/components/customersubscriptionupdateproduct.md +17 -0
  302. package/docs/models/components/customersubscriptionupdateseats.md +18 -0
  303. package/docs/models/components/customertaxid.md +17 -0
  304. package/docs/models/components/customerupdate.md +31 -0
  305. package/docs/models/components/customerupdatedevent.md +62 -0
  306. package/docs/models/components/customerupdatedfields.md +19 -0
  307. package/docs/models/components/customerupdatedfieldsmetadata.md +23 -0
  308. package/docs/models/components/customerupdatedmetadata.md +25 -0
  309. package/docs/models/components/customerupdateexternalid.md +29 -0
  310. package/docs/models/components/customerupdateexternalidmetadata.md +29 -0
  311. package/docs/models/components/customerupdateexternalidtaxid.md +17 -0
  312. package/docs/models/components/customerupdatemetadata.md +29 -0
  313. package/docs/models/components/customerupdatetaxid.md +17 -0
  314. package/docs/models/components/customerwallet.md +31 -0
  315. package/docs/models/components/customerwalletsortproperty.md +15 -0
  316. package/docs/models/components/customfield.md +102 -0
  317. package/docs/models/components/customfieldcheckbox.md +37 -0
  318. package/docs/models/components/customfieldcheckboxmetadata.md +29 -0
  319. package/docs/models/components/customfieldcheckboxproperties.md +17 -0
  320. package/docs/models/components/customfieldcreate.md +72 -0
  321. package/docs/models/components/customfieldcreatecheckbox.md +28 -0
  322. package/docs/models/components/customfieldcreatecheckboxmetadata.md +29 -0
  323. package/docs/models/components/customfieldcreatedate.md +28 -0
  324. package/docs/models/components/customfieldcreatedatemetadata.md +29 -0
  325. package/docs/models/components/customfieldcreatenumber.md +28 -0
  326. package/docs/models/components/customfieldcreatenumbermetadata.md +29 -0
  327. package/docs/models/components/customfieldcreateselect.md +35 -0
  328. package/docs/models/components/customfieldcreateselectmetadata.md +29 -0
  329. package/docs/models/components/customfieldcreatetext.md +28 -0
  330. package/docs/models/components/customfieldcreatetextmetadata.md +29 -0
  331. package/docs/models/components/customfielddata.md +29 -0
  332. package/docs/models/components/customfielddate.md +37 -0
  333. package/docs/models/components/customfielddatemetadata.md +29 -0
  334. package/docs/models/components/customfielddateproperties.md +19 -0
  335. package/docs/models/components/customfieldnumber.md +37 -0
  336. package/docs/models/components/customfieldnumbermetadata.md +29 -0
  337. package/docs/models/components/customfieldnumberproperties.md +19 -0
  338. package/docs/models/components/customfieldselect.md +44 -0
  339. package/docs/models/components/customfieldselectmetadata.md +29 -0
  340. package/docs/models/components/customfieldselectoption.md +19 -0
  341. package/docs/models/components/customfieldselectproperties.md +25 -0
  342. package/docs/models/components/customfieldsortproperty.md +15 -0
  343. package/docs/models/components/customfieldtext.md +37 -0
  344. package/docs/models/components/customfieldtextmetadata.md +29 -0
  345. package/docs/models/components/customfieldtextproperties.md +20 -0
  346. package/docs/models/components/customfieldtype.md +15 -0
  347. package/docs/models/components/customfieldupdate.md +45 -0
  348. package/docs/models/components/customfieldupdatecheckbox.md +23 -0
  349. package/docs/models/components/customfieldupdatecheckboxmetadata.md +29 -0
  350. package/docs/models/components/customfieldupdatedate.md +23 -0
  351. package/docs/models/components/customfieldupdatedatemetadata.md +29 -0
  352. package/docs/models/components/customfieldupdatenumber.md +23 -0
  353. package/docs/models/components/customfieldupdatenumbermetadata.md +29 -0
  354. package/docs/models/components/customfieldupdateselect.md +23 -0
  355. package/docs/models/components/customfieldupdateselectmetadata.md +29 -0
  356. package/docs/models/components/customfieldupdatetext.md +23 -0
  357. package/docs/models/components/customfieldupdatetextmetadata.md +29 -0
  358. package/docs/models/components/discount.md +122 -0
  359. package/docs/models/components/discountcreate.md +55 -0
  360. package/docs/models/components/discountduration.md +15 -0
  361. package/docs/models/components/discountfixedonceforeverduration.md +51 -0
  362. package/docs/models/components/discountfixedonceforeverdurationbase.md +47 -0
  363. package/docs/models/components/discountfixedonceforeverdurationbasemetadata.md +29 -0
  364. package/docs/models/components/discountfixedonceforeverdurationcreate.md +34 -0
  365. package/docs/models/components/discountfixedonceforeverdurationcreatemetadata.md +29 -0
  366. package/docs/models/components/discountfixedonceforeverdurationmetadata.md +29 -0
  367. package/docs/models/components/discountfixedrepeatduration.md +54 -0
  368. package/docs/models/components/discountfixedrepeatdurationbase.md +49 -0
  369. package/docs/models/components/discountfixedrepeatdurationbasemetadata.md +29 -0
  370. package/docs/models/components/discountfixedrepeatdurationcreate.md +37 -0
  371. package/docs/models/components/discountfixedrepeatdurationcreatemetadata.md +29 -0
  372. package/docs/models/components/discountfixedrepeatdurationmetadata.md +29 -0
  373. package/docs/models/components/discountpercentageonceforeverduration.md +68 -0
  374. package/docs/models/components/discountpercentageonceforeverdurationbase.md +45 -0
  375. package/docs/models/components/discountpercentageonceforeverdurationbasemetadata.md +29 -0
  376. package/docs/models/components/discountpercentageonceforeverdurationcreate.md +33 -0
  377. package/docs/models/components/discountpercentageonceforeverdurationcreatemetadata.md +29 -0
  378. package/docs/models/components/discountpercentageonceforeverdurationmetadata.md +29 -0
  379. package/docs/models/components/discountpercentagerepeatduration.md +50 -0
  380. package/docs/models/components/discountpercentagerepeatdurationbase.md +47 -0
  381. package/docs/models/components/discountpercentagerepeatdurationbasemetadata.md +29 -0
  382. package/docs/models/components/discountpercentagerepeatdurationcreate.md +36 -0
  383. package/docs/models/components/discountpercentagerepeatdurationcreatemetadata.md +29 -0
  384. package/docs/models/components/discountpercentagerepeatdurationmetadata.md +29 -0
  385. package/docs/models/components/discountproduct.md +46 -0
  386. package/docs/models/components/discountproductmetadata.md +29 -0
  387. package/docs/models/components/discountsortproperty.md +15 -0
  388. package/docs/models/components/discounttype.md +15 -0
  389. package/docs/models/components/discountupdate.md +29 -0
  390. package/docs/models/components/discountupdatemetadata.md +29 -0
  391. package/docs/models/components/downloadablefilecreate.md +39 -0
  392. package/docs/models/components/downloadablefileread.md +49 -0
  393. package/docs/models/components/downloadableread.md +41 -0
  394. package/docs/models/components/event.md +83 -0
  395. package/docs/models/components/eventcreatecustomer.md +23 -0
  396. package/docs/models/components/eventcreateexternalcustomer.md +23 -0
  397. package/docs/models/components/eventmetadatainput.md +50 -0
  398. package/docs/models/components/eventmetadataoutput.md +50 -0
  399. package/docs/models/components/eventname.md +25 -0
  400. package/docs/models/components/eventnamessortproperty.md +15 -0
  401. package/docs/models/components/events.md +25 -0
  402. package/docs/models/components/eventsingest.md +17 -0
  403. package/docs/models/components/eventsingestresponse.md +17 -0
  404. package/docs/models/components/eventsortproperty.md +15 -0
  405. package/docs/models/components/eventsource.md +15 -0
  406. package/docs/models/components/existingproductprice.md +21 -0
  407. package/docs/models/components/filecreate.md +68 -0
  408. package/docs/models/components/filedownload.md +50 -0
  409. package/docs/models/components/filepatch.md +16 -0
  410. package/docs/models/components/fileread.md +76 -0
  411. package/docs/models/components/fileservicetypes.md +15 -0
  412. package/docs/models/components/fileupload.md +58 -0
  413. package/docs/models/components/fileuploadcompleted.md +21 -0
  414. package/docs/models/components/filter.md +19 -0
  415. package/docs/models/components/filterclause.md +21 -0
  416. package/docs/models/components/filterconjunction.md +15 -0
  417. package/docs/models/components/filteroperator.md +15 -0
  418. package/docs/models/components/func.md +15 -0
  419. package/docs/models/components/genericpayment.md +44 -0
  420. package/docs/models/components/granttypes.md +15 -0
  421. package/docs/models/components/grossmargin.md +17 -0
  422. package/docs/models/components/grossmarginpercentage.md +17 -0
  423. package/docs/models/components/introspecttokenrequest.md +22 -0
  424. package/docs/models/components/introspecttokenrequesttokentypehint.md +15 -0
  425. package/docs/models/components/introspecttokenresponse.md +35 -0
  426. package/docs/models/components/legacyrecurringproductprice.md +59 -0
  427. package/docs/models/components/legacyrecurringproductpricecustom.md +45 -0
  428. package/docs/models/components/legacyrecurringproductpricefixed.md +41 -0
  429. package/docs/models/components/legacyrecurringproductpricefree.md +37 -0
  430. package/docs/models/components/licensekeyactivate.md +23 -0
  431. package/docs/models/components/licensekeyactivateconditions.md +29 -0
  432. package/docs/models/components/licensekeyactivatemeta.md +29 -0
  433. package/docs/models/components/licensekeyactivationbase.md +27 -0
  434. package/docs/models/components/licensekeyactivationread.md +67 -0
  435. package/docs/models/components/licensekeyactivationreadmeta.md +29 -0
  436. package/docs/models/components/licensekeycustomer.md +48 -0
  437. package/docs/models/components/licensekeycustomermetadata.md +29 -0
  438. package/docs/models/components/licensekeycustomertaxid.md +17 -0
  439. package/docs/models/components/licensekeydeactivate.md +21 -0
  440. package/docs/models/components/licensekeyread.md +68 -0
  441. package/docs/models/components/licensekeystatus.md +15 -0
  442. package/docs/models/components/licensekeyupdate.md +19 -0
  443. package/docs/models/components/licensekeyvalidate.md +24 -0
  444. package/docs/models/components/licensekeywithactivations.md +70 -0
  445. package/docs/models/components/listresource.md +22 -0
  446. package/docs/models/components/listresourcebenefit.md +40 -0
  447. package/docs/models/components/listresourcebenefitgrant.md +22 -0
  448. package/docs/models/components/listresourcecheckout.md +22 -0
  449. package/docs/models/components/listresourcecheckoutlink.md +95 -0
  450. package/docs/models/components/listresourcecustomer.md +41 -0
  451. package/docs/models/components/listresourcecustomerbenefitgrant.md +113 -0
  452. package/docs/models/components/listresourcecustomercustomermeter.md +39 -0
  453. package/docs/models/components/listresourcecustomermeter.md +22 -0
  454. package/docs/models/components/listresourcecustomerorder.md +132 -0
  455. package/docs/models/components/listresourcecustomerpaymentmethod.md +22 -0
  456. package/docs/models/components/listresourcecustomersubscription.md +22 -0
  457. package/docs/models/components/listresourcecustomerwallet.md +22 -0
  458. package/docs/models/components/listresourcecustomfield.md +43 -0
  459. package/docs/models/components/listresourcediscount.md +22 -0
  460. package/docs/models/components/listresourcedownloadableread.md +22 -0
  461. package/docs/models/components/listresourceevent.md +22 -0
  462. package/docs/models/components/listresourceeventname.md +30 -0
  463. package/docs/models/components/listresourcefileread.md +22 -0
  464. package/docs/models/components/listresourcelicensekeyread.md +62 -0
  465. package/docs/models/components/listresourcemeter.md +44 -0
  466. package/docs/models/components/listresourceorder.md +22 -0
  467. package/docs/models/components/listresourceorganization.md +57 -0
  468. package/docs/models/components/listresourceproduct.md +22 -0
  469. package/docs/models/components/listresourcerefund.md +22 -0
  470. package/docs/models/components/listresourcesubscription.md +154 -0
  471. package/docs/models/components/listresourcewallet.md +22 -0
  472. package/docs/models/components/listresourcewebhookdelivery.md +39 -0
  473. package/docs/models/components/listresourcewebhookendpoint.md +22 -0
  474. package/docs/models/components/llmmetadata.md +28 -0
  475. package/docs/models/components/loc.md +17 -0
  476. package/docs/models/components/meta.md +29 -0
  477. package/docs/models/components/metadata.md +29 -0
  478. package/docs/models/components/metadataquery.md +50 -0
  479. package/docs/models/components/meter.md +40 -0
  480. package/docs/models/components/meteraggregation.md +57 -0
  481. package/docs/models/components/metercreate.md +35 -0
  482. package/docs/models/components/metercreateaggregation.md +57 -0
  483. package/docs/models/components/metercreatemetadata.md +29 -0
  484. package/docs/models/components/metercreditedmetadata.md +21 -0
  485. package/docs/models/components/metercreditevent.md +60 -0
  486. package/docs/models/components/metermetadata.md +29 -0
  487. package/docs/models/components/meterquantities.md +19 -0
  488. package/docs/models/components/meterquantity.md +19 -0
  489. package/docs/models/components/meterresetevent.md +58 -0
  490. package/docs/models/components/meterresetmetadata.md +17 -0
  491. package/docs/models/components/metersortproperty.md +15 -0
  492. package/docs/models/components/meterupdate.md +19 -0
  493. package/docs/models/components/meterupdatemetadata.md +29 -0
  494. package/docs/models/components/metric.md +23 -0
  495. package/docs/models/components/metricperiod.md +97 -0
  496. package/docs/models/components/metrics.md +255 -0
  497. package/docs/models/components/metricsintervallimit.md +19 -0
  498. package/docs/models/components/metricsintervalslimits.md +37 -0
  499. package/docs/models/components/metricslimits.md +38 -0
  500. package/docs/models/components/metricsresponse.md +265 -0
  501. package/docs/models/components/metricstotals.md +95 -0
  502. package/docs/models/components/metricstotalsactivesubscriptions.md +17 -0
  503. package/docs/models/components/metricstotalsactiveuserbyevent.md +17 -0
  504. package/docs/models/components/metricstotalsaverageordervalue.md +17 -0
  505. package/docs/models/components/metricstotalsaveragerevenueperuser.md +17 -0
  506. package/docs/models/components/metricstotalscanceledsubscriptions.md +17 -0
  507. package/docs/models/components/metricstotalscanceledsubscriptionscustomerservice.md +17 -0
  508. package/docs/models/components/metricstotalscanceledsubscriptionslowquality.md +17 -0
  509. package/docs/models/components/metricstotalscanceledsubscriptionsmissingfeatures.md +17 -0
  510. package/docs/models/components/metricstotalscanceledsubscriptionsother.md +17 -0
  511. package/docs/models/components/metricstotalscanceledsubscriptionsswitchedservice.md +17 -0
  512. package/docs/models/components/metricstotalscanceledsubscriptionstoocomplex.md +17 -0
  513. package/docs/models/components/metricstotalscanceledsubscriptionstooexpensive.md +17 -0
  514. package/docs/models/components/metricstotalscanceledsubscriptionsunused.md +17 -0
  515. package/docs/models/components/metricstotalscashflow.md +17 -0
  516. package/docs/models/components/metricstotalscheckouts.md +17 -0
  517. package/docs/models/components/metricstotalscheckoutsconversion.md +17 -0
  518. package/docs/models/components/metricstotalschurnrate.md +17 -0
  519. package/docs/models/components/metricstotalscommittedmonthlyrecurringrevenue.md +17 -0
  520. package/docs/models/components/metricstotalscostperuser.md +17 -0
  521. package/docs/models/components/metricstotalscosts.md +17 -0
  522. package/docs/models/components/metricstotalscumulativecosts.md +17 -0
  523. package/docs/models/components/metricstotalscumulativerevenue.md +17 -0
  524. package/docs/models/components/metricstotalsgrossmargin.md +17 -0
  525. package/docs/models/components/metricstotalsgrossmarginpercentage.md +17 -0
  526. package/docs/models/components/metricstotalsmonthlyrecurringrevenue.md +17 -0
  527. package/docs/models/components/metricstotalsnetaverageordervalue.md +17 -0
  528. package/docs/models/components/metricstotalsnetcumulativerevenue.md +17 -0
  529. package/docs/models/components/metricstotalsnetrevenue.md +17 -0
  530. package/docs/models/components/metricstotalsnewsubscriptions.md +17 -0
  531. package/docs/models/components/metricstotalsnewsubscriptionsnetrevenue.md +17 -0
  532. package/docs/models/components/metricstotalsnewsubscriptionsrevenue.md +17 -0
  533. package/docs/models/components/metricstotalsonetimeproducts.md +17 -0
  534. package/docs/models/components/metricstotalsonetimeproductsnetrevenue.md +17 -0
  535. package/docs/models/components/metricstotalsonetimeproductsrevenue.md +17 -0
  536. package/docs/models/components/metricstotalsorders.md +17 -0
  537. package/docs/models/components/metricstotalsrenewedsubscriptions.md +17 -0
  538. package/docs/models/components/metricstotalsrenewedsubscriptionsnetrevenue.md +17 -0
  539. package/docs/models/components/metricstotalsrenewedsubscriptionsrevenue.md +17 -0
  540. package/docs/models/components/metricstotalsrevenue.md +17 -0
  541. package/docs/models/components/metricstotalssucceededcheckouts.md +17 -0
  542. package/docs/models/components/metrictype.md +15 -0
  543. package/docs/models/components/monthlyrecurringrevenue.md +17 -0
  544. package/docs/models/components/netaverageordervalue.md +17 -0
  545. package/docs/models/components/netcumulativerevenue.md +17 -0
  546. package/docs/models/components/netrevenue.md +17 -0
  547. package/docs/models/components/newsubscriptions.md +17 -0
  548. package/docs/models/components/newsubscriptionsnetrevenue.md +17 -0
  549. package/docs/models/components/newsubscriptionsrevenue.md +17 -0
  550. package/docs/models/components/oauth2clientconfiguration.md +31 -0
  551. package/docs/models/components/oauth2clientconfigurationupdate.md +33 -0
  552. package/docs/models/components/oauth2clientconfigurationupdategranttypes.md +15 -0
  553. package/docs/models/components/oauth2clientconfigurationupdatetokenendpointauthmethod.md +16 -0
  554. package/docs/models/components/oauth2clientpublic.md +31 -0
  555. package/docs/models/components/onetimeproducts.md +17 -0
  556. package/docs/models/components/onetimeproductsnetrevenue.md +17 -0
  557. package/docs/models/components/onetimeproductsrevenue.md +17 -0
  558. package/docs/models/components/order.md +181 -0
  559. package/docs/models/components/orderbillingreason.md +15 -0
  560. package/docs/models/components/ordercustomer.md +48 -0
  561. package/docs/models/components/ordercustomermetadata.md +29 -0
  562. package/docs/models/components/ordercustomertaxid.md +17 -0
  563. package/docs/models/components/ordercustomfielddata.md +29 -0
  564. package/docs/models/components/orderdiscount.md +101 -0
  565. package/docs/models/components/orderinvoice.md +19 -0
  566. package/docs/models/components/orderitemschema.md +33 -0
  567. package/docs/models/components/ordermetadata.md +29 -0
  568. package/docs/models/components/orderpaidevent.md +39 -0
  569. package/docs/models/components/orderpaidmetadata.md +22 -0
  570. package/docs/models/components/orderproduct.md +41 -0
  571. package/docs/models/components/orderproductmetadata.md +29 -0
  572. package/docs/models/components/orderrefundedevent.md +39 -0
  573. package/docs/models/components/orderrefundedmetadata.md +22 -0
  574. package/docs/models/components/orders.md +17 -0
  575. package/docs/models/components/ordersortproperty.md +15 -0
  576. package/docs/models/components/orderstatus.md +15 -0
  577. package/docs/models/components/ordersubscription.md +66 -0
  578. package/docs/models/components/ordersubscriptionmetadata.md +29 -0
  579. package/docs/models/components/orderupdate.md +23 -0
  580. package/docs/models/components/organization.md +67 -0
  581. package/docs/models/components/organizationavatarfilecreate.md +39 -0
  582. package/docs/models/components/organizationavatarfileread.md +51 -0
  583. package/docs/models/components/organizationcreate.md +28 -0
  584. package/docs/models/components/organizationcustomeremailsettings.md +31 -0
  585. package/docs/models/components/organizationdetails.md +30 -0
  586. package/docs/models/components/organizationfeaturesettings.md +18 -0
  587. package/docs/models/components/organizationnotificationsettings.md +19 -0
  588. package/docs/models/components/organizationsociallink.md +19 -0
  589. package/docs/models/components/organizationsocialplatforms.md +15 -0
  590. package/docs/models/components/organizationsortproperty.md +15 -0
  591. package/docs/models/components/organizationstatus.md +15 -0
  592. package/docs/models/components/organizationsubscriptionsettings.md +23 -0
  593. package/docs/models/components/organizationupdate.md +24 -0
  594. package/docs/models/components/pagination.md +19 -0
  595. package/docs/models/components/payment.md +49 -0
  596. package/docs/models/components/paymentmethodcard.md +34 -0
  597. package/docs/models/components/paymentmethodcardmetadata.md +24 -0
  598. package/docs/models/components/paymentmethodgeneric.md +27 -0
  599. package/docs/models/components/paymentprocessor.md +15 -0
  600. package/docs/models/components/paymentsortproperty.md +15 -0
  601. package/docs/models/components/paymentstatus.md +15 -0
  602. package/docs/models/components/permission.md +17 -0
  603. package/docs/models/components/prices.md +48 -0
  604. package/docs/models/components/product.md +117 -0
  605. package/docs/models/components/productbenefitsupdate.md +22 -0
  606. package/docs/models/components/productbillingtype.md +15 -0
  607. package/docs/models/components/productcreate.md +38 -0
  608. package/docs/models/components/productcreateonetime.md +32 -0
  609. package/docs/models/components/productcreateonetimemetadata.md +29 -0
  610. package/docs/models/components/productcreateonetimeprices.md +56 -0
  611. package/docs/models/components/productcreaterecurring.md +37 -0
  612. package/docs/models/components/productcreaterecurringmetadata.md +29 -0
  613. package/docs/models/components/productcreaterecurringprices.md +56 -0
  614. package/docs/models/components/productmediafilecreate.md +39 -0
  615. package/docs/models/components/productmediafileread.md +51 -0
  616. package/docs/models/components/productmetadata.md +29 -0
  617. package/docs/models/components/productprice.md +103 -0
  618. package/docs/models/components/productpricecustom.md +41 -0
  619. package/docs/models/components/productpricecustomcreate.md +23 -0
  620. package/docs/models/components/productpricefixed.md +37 -0
  621. package/docs/models/components/productpricefixedcreate.md +22 -0
  622. package/docs/models/components/productpricefree.md +33 -0
  623. package/docs/models/components/productpricefreecreate.md +19 -0
  624. package/docs/models/components/productpricemeter.md +21 -0
  625. package/docs/models/components/productpricemeteredunit.md +46 -0
  626. package/docs/models/components/productpricemeteredunitcreate.md +25 -0
  627. package/docs/models/components/productpriceseatbased.md +44 -0
  628. package/docs/models/components/productpriceseatbasedcreate.md +29 -0
  629. package/docs/models/components/productpriceseattier.md +22 -0
  630. package/docs/models/components/productpriceseattiers.md +19 -0
  631. package/docs/models/components/productpricetype.md +15 -0
  632. package/docs/models/components/productsortproperty.md +15 -0
  633. package/docs/models/components/productupdate.md +27 -0
  634. package/docs/models/components/productupdatemetadata.md +29 -0
  635. package/docs/models/components/productupdateprices.md +23 -0
  636. package/docs/models/components/properties.md +35 -0
  637. package/docs/models/components/propertyaggregation.md +19 -0
  638. package/docs/models/components/refreshtokenrequest.md +23 -0
  639. package/docs/models/components/refund.md +43 -0
  640. package/docs/models/components/refundcreate.md +24 -0
  641. package/docs/models/components/refundcreatemetadata.md +29 -0
  642. package/docs/models/components/refundmetadata.md +29 -0
  643. package/docs/models/components/refundreason.md +15 -0
  644. package/docs/models/components/refundsortproperty.md +15 -0
  645. package/docs/models/components/refundstatus.md +15 -0
  646. package/docs/models/components/renewedsubscriptions.md +17 -0
  647. package/docs/models/components/renewedsubscriptionsnetrevenue.md +17 -0
  648. package/docs/models/components/renewedsubscriptionsrevenue.md +17 -0
  649. package/docs/models/components/revenue.md +17 -0
  650. package/docs/models/components/revoketokenrequest.md +22 -0
  651. package/docs/models/components/revoketokenresponse.md +14 -0
  652. package/docs/models/components/s3downloadurl.md +20 -0
  653. package/docs/models/components/s3filecreatemultipart.md +17 -0
  654. package/docs/models/components/s3filecreatepart.md +22 -0
  655. package/docs/models/components/s3fileuploadcompletedpart.md +21 -0
  656. package/docs/models/components/s3fileuploadmultipart.md +21 -0
  657. package/docs/models/components/s3fileuploadpart.md +27 -0
  658. package/docs/models/components/scope.md +15 -0
  659. package/docs/models/components/seatassign.md +22 -0
  660. package/docs/models/components/seatclaim.md +17 -0
  661. package/docs/models/components/seatclaiminfo.md +30 -0
  662. package/docs/models/components/seatslist.md +28 -0
  663. package/docs/models/components/seatstatus.md +15 -0
  664. package/docs/models/components/security.md +15 -0
  665. package/docs/models/components/status.md +15 -0
  666. package/docs/models/components/subscription.md +170 -0
  667. package/docs/models/components/subscriptioncancel.md +19 -0
  668. package/docs/models/components/subscriptioncreatecustomer.md +22 -0
  669. package/docs/models/components/subscriptioncreatecustomermetadata.md +29 -0
  670. package/docs/models/components/subscriptioncreateexternalcustomer.md +22 -0
  671. package/docs/models/components/subscriptioncreateexternalcustomermetadata.md +29 -0
  672. package/docs/models/components/subscriptioncustomer.md +48 -0
  673. package/docs/models/components/subscriptioncustomermetadata.md +29 -0
  674. package/docs/models/components/subscriptioncycledevent.md +58 -0
  675. package/docs/models/components/subscriptioncycledmetadata.md +17 -0
  676. package/docs/models/components/subscriptiondiscount.md +101 -0
  677. package/docs/models/components/subscriptionmeter.md +50 -0
  678. package/docs/models/components/subscriptionprices.md +48 -0
  679. package/docs/models/components/subscriptionproductupdatedevent.md +60 -0
  680. package/docs/models/components/subscriptionproductupdatedmetadata.md +21 -0
  681. package/docs/models/components/subscriptionprorationbehavior.md +15 -0
  682. package/docs/models/components/subscriptionrecurringinterval.md +15 -0
  683. package/docs/models/components/subscriptionrevoke.md +19 -0
  684. package/docs/models/components/subscriptionrevokedevent.md +58 -0
  685. package/docs/models/components/subscriptionrevokedmetadata.md +17 -0
  686. package/docs/models/components/subscriptionsortproperty.md +15 -0
  687. package/docs/models/components/subscriptionstatus.md +15 -0
  688. package/docs/models/components/subscriptionupdate.md +53 -0
  689. package/docs/models/components/subscriptionupdatediscount.md +17 -0
  690. package/docs/models/components/subscriptionupdateproduct.md +18 -0
  691. package/docs/models/components/subscriptionupdateseats.md +18 -0
  692. package/docs/models/components/subscriptionupdatetrial.md +17 -0
  693. package/docs/models/components/subtype.md +15 -0
  694. package/docs/models/components/succeededcheckouts.md +17 -0
  695. package/docs/models/components/switchingfrom.md +15 -0
  696. package/docs/models/components/systemevent.md +535 -0
  697. package/docs/models/components/taxid.md +17 -0
  698. package/docs/models/components/taxidformat.md +19 -0
  699. package/docs/models/components/timeframe.md +15 -0
  700. package/docs/models/components/timeinterval.md +15 -0
  701. package/docs/models/components/tokenendpointauthmethod.md +15 -0
  702. package/docs/models/components/tokenresponse.md +27 -0
  703. package/docs/models/components/tokentype.md +15 -0
  704. package/docs/models/components/tokentypehint.md +15 -0
  705. package/docs/models/components/trialinterval.md +15 -0
  706. package/docs/models/components/two.md +56 -0
  707. package/docs/models/components/uniqueaggregation.md +18 -0
  708. package/docs/models/components/unitamount.md +19 -0
  709. package/docs/models/components/userevent.md +56 -0
  710. package/docs/models/components/userinfoorganization.md +18 -0
  711. package/docs/models/components/userinfouser.md +20 -0
  712. package/docs/models/components/validatedlicensekey.md +69 -0
  713. package/docs/models/components/validationerror.md +23 -0
  714. package/docs/models/components/value.md +23 -0
  715. package/docs/models/components/wallet.md +31 -0
  716. package/docs/models/components/walletsortproperty.md +15 -0
  717. package/docs/models/components/wallettopupcreate.md +21 -0
  718. package/docs/models/components/webhookbenefitcreatedpayload.md +48 -0
  719. package/docs/models/components/webhookbenefitgrantcreatedpayload.md +81 -0
  720. package/docs/models/components/webhookbenefitgrantcycledpayload.md +77 -0
  721. package/docs/models/components/webhookbenefitgrantrevokedpayload.md +81 -0
  722. package/docs/models/components/webhookbenefitgrantupdatedpayload.md +72 -0
  723. package/docs/models/components/webhookbenefitupdatedpayload.md +42 -0
  724. package/docs/models/components/webhookcheckoutcreatedpayload.md +195 -0
  725. package/docs/models/components/webhookcheckoutupdatedpayload.md +195 -0
  726. package/docs/models/components/webhookcustomercreatedpayload.md +51 -0
  727. package/docs/models/components/webhookcustomerdeletedpayload.md +46 -0
  728. package/docs/models/components/webhookcustomerseatassignedpayload.md +31 -0
  729. package/docs/models/components/webhookcustomerseatclaimedpayload.md +30 -0
  730. package/docs/models/components/webhookcustomerseatrevokedpayload.md +30 -0
  731. package/docs/models/components/webhookcustomerstatechangedpayload.md +76 -0
  732. package/docs/models/components/webhookcustomerupdatedpayload.md +50 -0
  733. package/docs/models/components/webhookdelivery.md +38 -0
  734. package/docs/models/components/webhookendpoint.md +37 -0
  735. package/docs/models/components/webhookendpointcreate.md +28 -0
  736. package/docs/models/components/webhookendpointupdate.md +23 -0
  737. package/docs/models/components/webhookevent.md +37 -0
  738. package/docs/models/components/webhookeventtype.md +15 -0
  739. package/docs/models/components/webhookformat.md +15 -0
  740. package/docs/models/components/webhookordercreatedpayload.md +153 -0
  741. package/docs/models/components/webhookorderpaidpayload.md +146 -0
  742. package/docs/models/components/webhookorderrefundedpayload.md +144 -0
  743. package/docs/models/components/webhookorderupdatedpayload.md +149 -0
  744. package/docs/models/components/webhookorganizationupdatedpayload.md +63 -0
  745. package/docs/models/components/webhookproductcreatedpayload.md +112 -0
  746. package/docs/models/components/webhookproductupdatedpayload.md +112 -0
  747. package/docs/models/components/webhookrefundcreatedpayload.md +40 -0
  748. package/docs/models/components/webhookrefundupdatedpayload.md +40 -0
  749. package/docs/models/components/webhooksubscriptionactivepayload.md +155 -0
  750. package/docs/models/components/webhooksubscriptioncanceledpayload.md +155 -0
  751. package/docs/models/components/webhooksubscriptioncreatedpayload.md +156 -0
  752. package/docs/models/components/webhooksubscriptionrevokedpayload.md +155 -0
  753. package/docs/models/components/webhooksubscriptionuncanceledpayload.md +154 -0
  754. package/docs/models/components/webhooksubscriptionupdatedpayload.md +158 -0
  755. package/docs/models/components/webtokenrequest.md +26 -0
  756. package/docs/models/components/webtokenrequestsubtype.md +15 -0
  757. package/docs/models/errors/alreadyactivesubscriptionerror.md +16 -0
  758. package/docs/models/errors/alreadycanceledsubscription.md +16 -0
  759. package/docs/models/errors/checkoutforbiddenerror.md +32 -0
  760. package/docs/models/errors/customernotready.md +16 -0
  761. package/docs/models/errors/customerportalordersgenerateinvoiceresponse422customerportalordersgenerateinvoice.md +25 -0
  762. package/docs/models/errors/expiredcheckouterror.md +16 -0
  763. package/docs/models/errors/httpvalidationerror.md +15 -0
  764. package/docs/models/errors/missinginvoicebillingdetails.md +16 -0
  765. package/docs/models/errors/missingpaymentmethoderror.md +16 -0
  766. package/docs/models/errors/notopencheckout.md +16 -0
  767. package/docs/models/errors/notpaidorder.md +16 -0
  768. package/docs/models/errors/notpermitted.md +16 -0
  769. package/docs/models/errors/ordernoteligibleforretry.md +16 -0
  770. package/docs/models/errors/ordersgenerateinvoiceresponse422ordersgenerateinvoice.md +25 -0
  771. package/docs/models/errors/paymentalreadyinprogress.md +16 -0
  772. package/docs/models/errors/paymenterror.md +16 -0
  773. package/docs/models/errors/paymentintentfailederror.md +16 -0
  774. package/docs/models/errors/paymentmethodinusebyactivesubscription.md +16 -0
  775. package/docs/models/errors/paymentnotready.md +16 -0
  776. package/docs/models/errors/refundamounttoohigh.md +16 -0
  777. package/docs/models/errors/refundedalready.md +16 -0
  778. package/docs/models/errors/resourcenotfound.md +16 -0
  779. package/docs/models/errors/subscriptionlocked.md +16 -0
  780. package/docs/models/errors/unauthorized.md +16 -0
  781. package/docs/models/operations/benefitgrantslistqueryparamcustomeridfilter.md +22 -0
  782. package/docs/models/operations/benefitgrantslistqueryparamorganizationidfilter.md +21 -0
  783. package/docs/models/operations/benefitgrantslistrequest.md +22 -0
  784. package/docs/models/operations/benefitgrantslistresponse.md +23 -0
  785. package/docs/models/operations/benefitidfilter.md +22 -0
  786. package/docs/models/operations/benefitsdeleterequest.md +17 -0
  787. package/docs/models/operations/benefitsgetrequest.md +17 -0
  788. package/docs/models/operations/benefitsgrantsrequest.md +21 -0
  789. package/docs/models/operations/benefitsgrantsresponse.md +23 -0
  790. package/docs/models/operations/benefitslistrequest.md +23 -0
  791. package/docs/models/operations/benefitslistresponse.md +23 -0
  792. package/docs/models/operations/benefitsupdatebenefitupdate.md +58 -0
  793. package/docs/models/operations/benefitsupdaterequest.md +21 -0
  794. package/docs/models/operations/benefittypefilter.md +19 -0
  795. package/docs/models/operations/checkoutidfilter.md +22 -0
  796. package/docs/models/operations/checkoutlinksdeleterequest.md +17 -0
  797. package/docs/models/operations/checkoutlinksgetrequest.md +17 -0
  798. package/docs/models/operations/checkoutlinkslistqueryparamorganizationidfilter.md +21 -0
  799. package/docs/models/operations/checkoutlinkslistqueryparamproductidfilter.md +22 -0
  800. package/docs/models/operations/checkoutlinkslistrequest.md +21 -0
  801. package/docs/models/operations/checkoutlinkslistresponse.md +23 -0
  802. package/docs/models/operations/checkoutlinksupdaterequest.md +19 -0
  803. package/docs/models/operations/checkoutsclientconfirmrequest.md +23 -0
  804. package/docs/models/operations/checkoutsclientgetrequest.md +17 -0
  805. package/docs/models/operations/checkoutsclientupdaterequest.md +23 -0
  806. package/docs/models/operations/checkoutsgetrequest.md +17 -0
  807. package/docs/models/operations/checkoutslistqueryparamcustomeridfilter.md +22 -0
  808. package/docs/models/operations/checkoutslistqueryparamorganizationidfilter.md +21 -0
  809. package/docs/models/operations/checkoutslistqueryparamproductidfilter.md +22 -0
  810. package/docs/models/operations/checkoutslistrequest.md +24 -0
  811. package/docs/models/operations/checkoutslistresponse.md +23 -0
  812. package/docs/models/operations/checkoutsupdaterequest.md +23 -0
  813. package/docs/models/operations/customeremailfilter.md +22 -0
  814. package/docs/models/operations/customeridfilter.md +22 -0
  815. package/docs/models/operations/customermetersgetrequest.md +17 -0
  816. package/docs/models/operations/customermeterslistqueryparamcustomeridfilter.md +22 -0
  817. package/docs/models/operations/customermeterslistqueryparamexternalcustomeridfilter.md +22 -0
  818. package/docs/models/operations/customermeterslistqueryparamorganizationidfilter.md +21 -0
  819. package/docs/models/operations/customermeterslistrequest.md +23 -0
  820. package/docs/models/operations/customermeterslistresponse.md +74 -0
  821. package/docs/models/operations/customerportalbenefitgrantsgetrequest.md +17 -0
  822. package/docs/models/operations/customerportalbenefitgrantsgetsecurity.md +17 -0
  823. package/docs/models/operations/customerportalbenefitgrantslistqueryparambenefitidfilter.md +22 -0
  824. package/docs/models/operations/customerportalbenefitgrantslistrequest.md +22 -0
  825. package/docs/models/operations/customerportalbenefitgrantslistresponse.md +106 -0
  826. package/docs/models/operations/customerportalbenefitgrantslistsecurity.md +17 -0
  827. package/docs/models/operations/customerportalbenefitgrantsupdaterequest.md +21 -0
  828. package/docs/models/operations/customerportalbenefitgrantsupdatesecurity.md +17 -0
  829. package/docs/models/operations/customerportalcustomermetersgetrequest.md +17 -0
  830. package/docs/models/operations/customerportalcustomermetersgetsecurity.md +17 -0
  831. package/docs/models/operations/customerportalcustomermeterslistrequest.md +19 -0
  832. package/docs/models/operations/customerportalcustomermeterslistresponse.md +40 -0
  833. package/docs/models/operations/customerportalcustomermeterslistsecurity.md +17 -0
  834. package/docs/models/operations/customerportalcustomersaddpaymentmethodsecurity.md +17 -0
  835. package/docs/models/operations/customerportalcustomersconfirmpaymentmethodsecurity.md +17 -0
  836. package/docs/models/operations/customerportalcustomersdeletepaymentmethodrequest.md +17 -0
  837. package/docs/models/operations/customerportalcustomersdeletepaymentmethodsecurity.md +17 -0
  838. package/docs/models/operations/customerportalcustomersessionintrospectsecurity.md +17 -0
  839. package/docs/models/operations/customerportalcustomersgetsecurity.md +17 -0
  840. package/docs/models/operations/customerportalcustomerslistpaymentmethodsrequest.md +16 -0
  841. package/docs/models/operations/customerportalcustomerslistpaymentmethodsresponse.md +23 -0
  842. package/docs/models/operations/customerportalcustomerslistpaymentmethodssecurity.md +17 -0
  843. package/docs/models/operations/customerportalcustomersupdatesecurity.md +17 -0
  844. package/docs/models/operations/customerportaldownloadableslistqueryparambenefitidfilter.md +22 -0
  845. package/docs/models/operations/customerportaldownloadableslistrequest.md +17 -0
  846. package/docs/models/operations/customerportaldownloadableslistresponse.md +23 -0
  847. package/docs/models/operations/customerportaldownloadableslistsecurity.md +17 -0
  848. package/docs/models/operations/customerportallicensekeysgetrequest.md +17 -0
  849. package/docs/models/operations/customerportallicensekeysgetsecurity.md +17 -0
  850. package/docs/models/operations/customerportallicensekeyslistrequest.md +17 -0
  851. package/docs/models/operations/customerportallicensekeyslistresponse.md +23 -0
  852. package/docs/models/operations/customerportallicensekeyslistsecurity.md +17 -0
  853. package/docs/models/operations/customerportalordersconfirmretrypaymentrequest.md +19 -0
  854. package/docs/models/operations/customerportalordersconfirmretrypaymentsecurity.md +17 -0
  855. package/docs/models/operations/customerportalordersgenerateinvoicerequest.md +17 -0
  856. package/docs/models/operations/customerportalordersgenerateinvoicesecurity.md +17 -0
  857. package/docs/models/operations/customerportalordersgetpaymentstatusrequest.md +17 -0
  858. package/docs/models/operations/customerportalordersgetpaymentstatussecurity.md +17 -0
  859. package/docs/models/operations/customerportalordersgetrequest.md +17 -0
  860. package/docs/models/operations/customerportalordersgetsecurity.md +17 -0
  861. package/docs/models/operations/customerportalordersinvoicerequest.md +17 -0
  862. package/docs/models/operations/customerportalordersinvoicesecurity.md +17 -0
  863. package/docs/models/operations/customerportalorderslistqueryparamproductbillingtypefilter.md +19 -0
  864. package/docs/models/operations/customerportalorderslistqueryparamproductidfilter.md +22 -0
  865. package/docs/models/operations/customerportalorderslistqueryparamsubscriptionidfilter.md +22 -0
  866. package/docs/models/operations/customerportalorderslistrequest.md +21 -0
  867. package/docs/models/operations/customerportalorderslistresponse.md +23 -0
  868. package/docs/models/operations/customerportalorderslistsecurity.md +17 -0
  869. package/docs/models/operations/customerportalordersupdaterequest.md +24 -0
  870. package/docs/models/operations/customerportalordersupdatesecurity.md +17 -0
  871. package/docs/models/operations/customerportalorganizationsgetrequest.md +17 -0
  872. package/docs/models/operations/customerportalseatsassignseatsecurity.md +17 -0
  873. package/docs/models/operations/customerportalseatslistclaimedsubscriptionssecurity.md +17 -0
  874. package/docs/models/operations/customerportalseatslistseatsrequest.md +16 -0
  875. package/docs/models/operations/customerportalseatslistseatssecurity.md +17 -0
  876. package/docs/models/operations/customerportalseatsresendinvitationrequest.md +17 -0
  877. package/docs/models/operations/customerportalseatsresendinvitationsecurity.md +17 -0
  878. package/docs/models/operations/customerportalseatsrevokeseatrequest.md +17 -0
  879. package/docs/models/operations/customerportalseatsrevokeseatsecurity.md +17 -0
  880. package/docs/models/operations/customerportalsubscriptionscancelrequest.md +17 -0
  881. package/docs/models/operations/customerportalsubscriptionscancelsecurity.md +17 -0
  882. package/docs/models/operations/customerportalsubscriptionsgetrequest.md +17 -0
  883. package/docs/models/operations/customerportalsubscriptionsgetsecurity.md +17 -0
  884. package/docs/models/operations/customerportalsubscriptionslistqueryparamproductidfilter.md +22 -0
  885. package/docs/models/operations/customerportalsubscriptionslistrequest.md +20 -0
  886. package/docs/models/operations/customerportalsubscriptionslistresponse.md +115 -0
  887. package/docs/models/operations/customerportalsubscriptionslistsecurity.md +17 -0
  888. package/docs/models/operations/customerportalsubscriptionsupdaterequest.md +21 -0
  889. package/docs/models/operations/customerportalsubscriptionsupdatesecurity.md +17 -0
  890. package/docs/models/operations/customerportalwalletsgetrequest.md +17 -0
  891. package/docs/models/operations/customerportalwalletsgetsecurity.md +17 -0
  892. package/docs/models/operations/customerportalwalletslistrequest.md +17 -0
  893. package/docs/models/operations/customerportalwalletslistresponse.md +32 -0
  894. package/docs/models/operations/customerportalwalletslistsecurity.md +17 -0
  895. package/docs/models/operations/customersdeleteexternalrequest.md +17 -0
  896. package/docs/models/operations/customersdeleterequest.md +17 -0
  897. package/docs/models/operations/customerseatsgetclaiminforequest.md +17 -0
  898. package/docs/models/operations/customerseatslistseatsrequest.md +16 -0
  899. package/docs/models/operations/customerseatsresendinvitationrequest.md +17 -0
  900. package/docs/models/operations/customerseatsrevokeseatrequest.md +17 -0
  901. package/docs/models/operations/customersessionscreatecustomersessioncreate.md +23 -0
  902. package/docs/models/operations/customersexportqueryparamorganizationid.md +21 -0
  903. package/docs/models/operations/customersexportrequest.md +17 -0
  904. package/docs/models/operations/customersgetbalancerequest.md +17 -0
  905. package/docs/models/operations/customersgetexternalrequest.md +17 -0
  906. package/docs/models/operations/customersgetrequest.md +17 -0
  907. package/docs/models/operations/customersgetstateexternalrequest.md +17 -0
  908. package/docs/models/operations/customersgetstaterequest.md +17 -0
  909. package/docs/models/operations/customerslistqueryparamorganizationidfilter.md +21 -0
  910. package/docs/models/operations/customerslistrequest.md +23 -0
  911. package/docs/models/operations/customerslistresponse.md +23 -0
  912. package/docs/models/operations/customersupdateexternalrequest.md +29 -0
  913. package/docs/models/operations/customersupdaterequest.md +30 -0
  914. package/docs/models/operations/customfieldsdeleterequest.md +17 -0
  915. package/docs/models/operations/customfieldsgetrequest.md +17 -0
  916. package/docs/models/operations/customfieldslistqueryparamorganizationidfilter.md +21 -0
  917. package/docs/models/operations/customfieldslistrequest.md +22 -0
  918. package/docs/models/operations/customfieldslistresponse.md +37 -0
  919. package/docs/models/operations/customfieldsupdaterequest.md +21 -0
  920. package/docs/models/operations/customfieldtypefilter.md +21 -0
  921. package/docs/models/operations/discountidfilter.md +22 -0
  922. package/docs/models/operations/discountsdeleterequest.md +17 -0
  923. package/docs/models/operations/discountsgetrequest.md +17 -0
  924. package/docs/models/operations/discountslistqueryparamorganizationidfilter.md +21 -0
  925. package/docs/models/operations/discountslistrequest.md +21 -0
  926. package/docs/models/operations/discountslistresponse.md +23 -0
  927. package/docs/models/operations/discountsupdaterequest.md +19 -0
  928. package/docs/models/operations/endpointid.md +22 -0
  929. package/docs/models/operations/eventsgetrequest.md +17 -0
  930. package/docs/models/operations/eventslistnamesqueryparamcustomeridfilter.md +22 -0
  931. package/docs/models/operations/eventslistnamesqueryparamexternalcustomeridfilter.md +22 -0
  932. package/docs/models/operations/eventslistnamesqueryparamorganizationidfilter.md +21 -0
  933. package/docs/models/operations/eventslistnamesrequest.md +24 -0
  934. package/docs/models/operations/eventslistnamesresponse.md +23 -0
  935. package/docs/models/operations/eventslistqueryparamcustomeridfilter.md +22 -0
  936. package/docs/models/operations/eventslistqueryparamorganizationidfilter.md +21 -0
  937. package/docs/models/operations/eventslistrequest.md +30 -0
  938. package/docs/models/operations/eventslistresponse.md +56 -0
  939. package/docs/models/operations/externalcustomeridfilter.md +22 -0
  940. package/docs/models/operations/fileidfilter.md +22 -0
  941. package/docs/models/operations/filesdeleterequest.md +17 -0
  942. package/docs/models/operations/fileslistqueryparamorganizationidfilter.md +21 -0
  943. package/docs/models/operations/fileslistrequest.md +20 -0
  944. package/docs/models/operations/fileslistresponse.md +23 -0
  945. package/docs/models/operations/filesupdaterequest.md +19 -0
  946. package/docs/models/operations/filesupdateresponsefilesupdate.md +78 -0
  947. package/docs/models/operations/filesuploadedrequest.md +23 -0
  948. package/docs/models/operations/filesuploadedresponsefilesuploaded.md +78 -0
  949. package/docs/models/operations/licensekeysgetactivationrequest.md +19 -0
  950. package/docs/models/operations/licensekeysgetrequest.md +17 -0
  951. package/docs/models/operations/licensekeyslistqueryparamorganizationidfilter.md +21 -0
  952. package/docs/models/operations/licensekeyslistrequest.md +20 -0
  953. package/docs/models/operations/licensekeyslistresponse.md +23 -0
  954. package/docs/models/operations/licensekeysupdaterequest.md +19 -0
  955. package/docs/models/operations/meteridfilter.md +22 -0
  956. package/docs/models/operations/metersgetrequest.md +17 -0
  957. package/docs/models/operations/meterslistqueryparamorganizationidfilter.md +21 -0
  958. package/docs/models/operations/meterslistrequest.md +23 -0
  959. package/docs/models/operations/meterslistresponse.md +23 -0
  960. package/docs/models/operations/metersquantitiesqueryparamcustomeridfilter.md +22 -0
  961. package/docs/models/operations/metersquantitiesqueryparamexternalcustomeridfilter.md +22 -0
  962. package/docs/models/operations/metersquantitiesrequest.md +27 -0
  963. package/docs/models/operations/metersupdaterequest.md +19 -0
  964. package/docs/models/operations/methodfilter.md +22 -0
  965. package/docs/models/operations/metricsgetqueryparamcustomeridfilter.md +22 -0
  966. package/docs/models/operations/metricsgetqueryparamorganizationidfilter.md +21 -0
  967. package/docs/models/operations/metricsgetqueryparamproductidfilter.md +22 -0
  968. package/docs/models/operations/metricsgetrequest.md +28 -0
  969. package/docs/models/operations/namefilter.md +22 -0
  970. package/docs/models/operations/oauth2authorizeresponseoauth2authorize.md +56 -0
  971. package/docs/models/operations/oauth2clientsoauth2deleteclientrequest.md +17 -0
  972. package/docs/models/operations/oauth2clientsoauth2getclientrequest.md +17 -0
  973. package/docs/models/operations/oauth2clientsoauth2updateclientrequest.md +26 -0
  974. package/docs/models/operations/oauth2requesttokenrequestbody.md +39 -0
  975. package/docs/models/operations/oauth2userinforesponseoauth2userinfo.md +23 -0
  976. package/docs/models/operations/orderidfilter.md +22 -0
  977. package/docs/models/operations/ordersexportqueryparamorganizationidfilter.md +21 -0
  978. package/docs/models/operations/ordersexportqueryparamproductidfilter.md +22 -0
  979. package/docs/models/operations/ordersexportrequest.md +18 -0
  980. package/docs/models/operations/ordersgenerateinvoicerequest.md +17 -0
  981. package/docs/models/operations/ordersgetrequest.md +17 -0
  982. package/docs/models/operations/ordersinvoicerequest.md +17 -0
  983. package/docs/models/operations/orderslistqueryparamcustomeridfilter.md +22 -0
  984. package/docs/models/operations/orderslistqueryparamorganizationidfilter.md +21 -0
  985. package/docs/models/operations/orderslistqueryparamproductidfilter.md +22 -0
  986. package/docs/models/operations/orderslistrequest.md +26 -0
  987. package/docs/models/operations/orderslistresponse.md +142 -0
  988. package/docs/models/operations/ordersupdaterequest.md +24 -0
  989. package/docs/models/operations/organizationid.md +21 -0
  990. package/docs/models/operations/organizationidfilter.md +21 -0
  991. package/docs/models/operations/organizationsgetrequest.md +17 -0
  992. package/docs/models/operations/organizationslistrequest.md +18 -0
  993. package/docs/models/operations/organizationslistresponse.md +23 -0
  994. package/docs/models/operations/organizationsupdaterequest.md +19 -0
  995. package/docs/models/operations/paymentsgetrequest.md +17 -0
  996. package/docs/models/operations/paymentslistqueryparamcheckoutidfilter.md +22 -0
  997. package/docs/models/operations/paymentslistqueryparamorderidfilter.md +22 -0
  998. package/docs/models/operations/paymentslistqueryparamorganizationidfilter.md +21 -0
  999. package/docs/models/operations/paymentslistrequest.md +25 -0
  1000. package/docs/models/operations/paymentslistresponse.md +39 -0
  1001. package/docs/models/operations/productbillingtypefilter.md +19 -0
  1002. package/docs/models/operations/productidfilter.md +22 -0
  1003. package/docs/models/operations/productsgetrequest.md +17 -0
  1004. package/docs/models/operations/productslistqueryparamorganizationidfilter.md +21 -0
  1005. package/docs/models/operations/productslistrequest.md +26 -0
  1006. package/docs/models/operations/productslistresponse.md +79 -0
  1007. package/docs/models/operations/productsupdatebenefitsrequest.md +23 -0
  1008. package/docs/models/operations/productsupdaterequest.md +19 -0
  1009. package/docs/models/operations/queryparambenefitidfilter.md +22 -0
  1010. package/docs/models/operations/queryparambenefittypefilter.md +19 -0
  1011. package/docs/models/operations/queryparamcheckoutidfilter.md +22 -0
  1012. package/docs/models/operations/queryparamcustomeridfilter.md +22 -0
  1013. package/docs/models/operations/queryparamdiscountidfilter.md +22 -0
  1014. package/docs/models/operations/queryparamexternalcustomeridfilter.md +22 -0
  1015. package/docs/models/operations/queryparammeteridfilter.md +22 -0
  1016. package/docs/models/operations/queryparamorderidfilter.md +22 -0
  1017. package/docs/models/operations/queryparamorganizationid.md +21 -0
  1018. package/docs/models/operations/queryparamorganizationidfilter.md +21 -0
  1019. package/docs/models/operations/queryparamproductbillingtypefilter.md +19 -0
  1020. package/docs/models/operations/queryparamproductidfilter.md +22 -0
  1021. package/docs/models/operations/queryparamsourcefilter.md +19 -0
  1022. package/docs/models/operations/queryparamstatusfilter.md +21 -0
  1023. package/docs/models/operations/queryparamsubscriptionidfilter.md +22 -0
  1024. package/docs/models/operations/refundidfilter.md +22 -0
  1025. package/docs/models/operations/refundslistqueryparamcustomeridfilter.md +22 -0
  1026. package/docs/models/operations/refundslistqueryparamorganizationidfilter.md +21 -0
  1027. package/docs/models/operations/refundslistrequest.md +25 -0
  1028. package/docs/models/operations/refundslistresponse.md +42 -0
  1029. package/docs/models/operations/sourcefilter.md +19 -0
  1030. package/docs/models/operations/statusfilter.md +21 -0
  1031. package/docs/models/operations/subscriptionidfilter.md +22 -0
  1032. package/docs/models/operations/subscriptionscreatesubscriptioncreate.md +23 -0
  1033. package/docs/models/operations/subscriptionsexportrequest.md +17 -0
  1034. package/docs/models/operations/subscriptionsgetrequest.md +17 -0
  1035. package/docs/models/operations/subscriptionslistrequest.md +26 -0
  1036. package/docs/models/operations/subscriptionslistresponse.md +23 -0
  1037. package/docs/models/operations/subscriptionsrevokerequest.md +17 -0
  1038. package/docs/models/operations/subscriptionsupdaterequest.md +21 -0
  1039. package/docs/models/operations/walletsgetrequest.md +17 -0
  1040. package/docs/models/operations/walletslistqueryparamcustomeridfilter.md +22 -0
  1041. package/docs/models/operations/walletslistqueryparamorganizationidfilter.md +21 -0
  1042. package/docs/models/operations/walletslistrequest.md +21 -0
  1043. package/docs/models/operations/walletslistresponse.md +23 -0
  1044. package/docs/models/operations/walletstopuprequest.md +22 -0
  1045. package/docs/models/operations/webhooksdeletewebhookendpointrequest.md +17 -0
  1046. package/docs/models/operations/webhooksgetwebhookendpointrequest.md +17 -0
  1047. package/docs/models/operations/webhookslistwebhookdeliveriesrequest.md +19 -0
  1048. package/docs/models/operations/webhookslistwebhookdeliveriesresponse.md +23 -0
  1049. package/docs/models/operations/webhookslistwebhookendpointsrequest.md +19 -0
  1050. package/docs/models/operations/webhookslistwebhookendpointsresponse.md +35 -0
  1051. package/docs/models/operations/webhooksredeliverwebhookeventrequest.md +17 -0
  1052. package/docs/models/operations/webhooksresetwebhookendpointsecretrequest.md +17 -0
  1053. package/docs/models/operations/webhooksupdatewebhookendpointrequest.md +21 -0
  1054. package/docs/sdks/benefitgrants/README.md +88 -0
  1055. package/docs/sdks/benefits/README.md +500 -0
  1056. package/docs/sdks/checkoutlinks/README.md +407 -0
  1057. package/docs/sdks/checkouts/README.md +600 -0
  1058. package/docs/sdks/clients/README.md +331 -0
  1059. package/docs/sdks/customermeters/README.md +166 -0
  1060. package/docs/sdks/customers/README.md +1036 -0
  1061. package/docs/sdks/customerseats/README.md +441 -0
  1062. package/docs/sdks/customersession/README.md +79 -0
  1063. package/docs/sdks/customersessions/README.md +84 -0
  1064. package/docs/sdks/customfields/README.md +417 -0
  1065. package/docs/sdks/discounts/README.md +409 -0
  1066. package/docs/sdks/downloadables/README.md +83 -0
  1067. package/docs/sdks/events/README.md +324 -0
  1068. package/docs/sdks/files/README.md +460 -0
  1069. package/docs/sdks/licensekeys/README.md +576 -0
  1070. package/docs/sdks/meters/README.md +437 -0
  1071. package/docs/sdks/metrics/README.md +165 -0
  1072. package/docs/sdks/oauth2/README.md +371 -0
  1073. package/docs/sdks/orders/README.md +489 -0
  1074. package/docs/sdks/organizations/README.md +322 -0
  1075. package/docs/sdks/payments/README.md +166 -0
  1076. package/docs/sdks/polarbenefitgrants/README.md +250 -0
  1077. package/docs/sdks/polarcustomermeters/README.md +164 -0
  1078. package/docs/sdks/polarcustomers/README.md +482 -0
  1079. package/docs/sdks/polarlicensekeys/README.md +406 -0
  1080. package/docs/sdks/polarorders/README.md +574 -0
  1081. package/docs/sdks/polarorganizations/README.md +79 -0
  1082. package/docs/sdks/polarsubscriptions/README.md +326 -0
  1083. package/docs/sdks/polarwallets/README.md +164 -0
  1084. package/docs/sdks/products/README.md +441 -0
  1085. package/docs/sdks/refunds/README.md +171 -0
  1086. package/docs/sdks/seats/README.md +379 -0
  1087. package/docs/sdks/subscriptions/README.md +493 -0
  1088. package/docs/sdks/wallets/README.md +256 -0
  1089. package/docs/sdks/webhooks/README.md +650 -0
  1090. package/docs/types/rfcdate.md +11 -0
  1091. package/eslint.config.mjs +22 -0
  1092. package/examples/.env.template +14 -0
  1093. package/examples/README.md +31 -0
  1094. package/examples/core copy.ts +13 -0
  1095. package/examples/core.ts +13 -0
  1096. package/examples/funcs/benefitGrantsList.ts +261 -0
  1097. package/examples/funcs/benefitsCreate.ts +181 -0
  1098. package/examples/funcs/benefitsDelete.ts +204 -0
  1099. package/examples/funcs/benefitsGet.ts +195 -0
  1100. package/examples/funcs/benefitsGrants.ts +277 -0
  1101. package/examples/funcs/benefitsList.ts +270 -0
  1102. package/examples/funcs/benefitsUpdate.ts +196 -0
  1103. package/examples/funcs/checkoutLinksCreate.ts +181 -0
  1104. package/examples/funcs/checkoutLinksDelete.ts +192 -0
  1105. package/examples/funcs/checkoutLinksGet.ts +195 -0
  1106. package/examples/funcs/checkoutLinksList.ts +260 -0
  1107. package/examples/funcs/checkoutLinksUpdate.ts +198 -0
  1108. package/examples/funcs/checkoutsClientConfirm.ts +224 -0
  1109. package/examples/funcs/checkoutsClientGet.ts +195 -0
  1110. package/examples/funcs/checkoutsClientUpdate.ts +206 -0
  1111. package/examples/funcs/checkoutsCreate.ts +181 -0
  1112. package/examples/funcs/checkoutsGet.ts +195 -0
  1113. package/examples/funcs/checkoutsList.ts +263 -0
  1114. package/examples/funcs/checkoutsUpdate.ts +204 -0
  1115. package/examples/funcs/customFieldsCreate.ts +181 -0
  1116. package/examples/funcs/customFieldsDelete.ts +192 -0
  1117. package/examples/funcs/customFieldsGet.ts +195 -0
  1118. package/examples/funcs/customFieldsList.ts +261 -0
  1119. package/examples/funcs/customFieldsUpdate.ts +196 -0
  1120. package/examples/funcs/customerMetersGet.ts +195 -0
  1121. package/examples/funcs/customerMetersList.ts +262 -0
  1122. package/examples/funcs/customerPortalBenefitGrantsGet.ts +208 -0
  1123. package/examples/funcs/customerPortalBenefitGrantsList.ts +277 -0
  1124. package/examples/funcs/customerPortalBenefitGrantsUpdate.ts +219 -0
  1125. package/examples/funcs/customerPortalCustomerMetersGet.ts +206 -0
  1126. package/examples/funcs/customerPortalCustomerMetersList.ts +274 -0
  1127. package/examples/funcs/customerPortalCustomerSessionIntrospect.ts +157 -0
  1128. package/examples/funcs/customerPortalCustomersAddPaymentMethod.ts +191 -0
  1129. package/examples/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
  1130. package/examples/funcs/customerPortalCustomersDeletePaymentMethod.ts +215 -0
  1131. package/examples/funcs/customerPortalCustomersGet.ts +157 -0
  1132. package/examples/funcs/customerPortalCustomersListPaymentMethods.ts +275 -0
  1133. package/examples/funcs/customerPortalCustomersUpdate.ts +191 -0
  1134. package/examples/funcs/customerPortalDownloadablesList.ts +270 -0
  1135. package/examples/funcs/customerPortalLicenseKeysActivate.ts +194 -0
  1136. package/examples/funcs/customerPortalLicenseKeysDeactivate.ts +183 -0
  1137. package/examples/funcs/customerPortalLicenseKeysGet.ts +205 -0
  1138. package/examples/funcs/customerPortalLicenseKeysList.ts +287 -0
  1139. package/examples/funcs/customerPortalLicenseKeysValidate.ts +186 -0
  1140. package/examples/funcs/customerPortalOrdersConfirmRetryPayment.ts +221 -0
  1141. package/examples/funcs/customerPortalOrdersGenerateInvoice.ts +200 -0
  1142. package/examples/funcs/customerPortalOrdersGet.ts +205 -0
  1143. package/examples/funcs/customerPortalOrdersGetPaymentStatus.ts +208 -0
  1144. package/examples/funcs/customerPortalOrdersInvoice.ts +207 -0
  1145. package/examples/funcs/customerPortalOrdersList.ts +275 -0
  1146. package/examples/funcs/customerPortalOrdersUpdate.ts +208 -0
  1147. package/examples/funcs/customerPortalOrganizationsGet.ts +190 -0
  1148. package/examples/funcs/customerPortalSeatsAssignSeat.ts +189 -0
  1149. package/examples/funcs/customerPortalSeatsListClaimedSubscriptions.ts +158 -0
  1150. package/examples/funcs/customerPortalSeatsListSeats.ts +194 -0
  1151. package/examples/funcs/customerPortalSeatsResendInvitation.ts +198 -0
  1152. package/examples/funcs/customerPortalSeatsRevokeSeat.ts +195 -0
  1153. package/examples/funcs/customerPortalSubscriptionsCancel.ts +214 -0
  1154. package/examples/funcs/customerPortalSubscriptionsGet.ts +206 -0
  1155. package/examples/funcs/customerPortalSubscriptionsList.ts +275 -0
  1156. package/examples/funcs/customerPortalSubscriptionsUpdate.ts +217 -0
  1157. package/examples/funcs/customerPortalWalletsGet.ts +205 -0
  1158. package/examples/funcs/customerPortalWalletsList.ts +271 -0
  1159. package/examples/funcs/customerSeatsAssignSeat.ts +179 -0
  1160. package/examples/funcs/customerSeatsClaimSeat.ts +170 -0
  1161. package/examples/funcs/customerSeatsGetClaimInfo.ts +179 -0
  1162. package/examples/funcs/customerSeatsListSeats.ts +184 -0
  1163. package/examples/funcs/customerSeatsResendInvitation.ts +185 -0
  1164. package/examples/funcs/customerSeatsRevokeSeat.ts +185 -0
  1165. package/examples/funcs/customerSessionsCreate.ts +182 -0
  1166. package/examples/funcs/customersCreate.ts +181 -0
  1167. package/examples/funcs/customersDelete.ts +204 -0
  1168. package/examples/funcs/customersDeleteExternal.ts +194 -0
  1169. package/examples/funcs/customersExport.ts +182 -0
  1170. package/examples/funcs/customersGet.ts +195 -0
  1171. package/examples/funcs/customersGetBalance.ts +195 -0
  1172. package/examples/funcs/customersGetExternal.ts +195 -0
  1173. package/examples/funcs/customersGetState.ts +201 -0
  1174. package/examples/funcs/customersGetStateExternal.ts +203 -0
  1175. package/examples/funcs/customersList.ts +270 -0
  1176. package/examples/funcs/customersUpdate.ts +196 -0
  1177. package/examples/funcs/customersUpdateExternal.ts +198 -0
  1178. package/examples/funcs/discountsCreate.ts +181 -0
  1179. package/examples/funcs/discountsDelete.ts +192 -0
  1180. package/examples/funcs/discountsGet.ts +195 -0
  1181. package/examples/funcs/discountsList.ts +260 -0
  1182. package/examples/funcs/discountsUpdate.ts +196 -0
  1183. package/examples/funcs/eventsGet.ts +192 -0
  1184. package/examples/funcs/eventsIngest.ts +181 -0
  1185. package/examples/funcs/eventsList.ts +277 -0
  1186. package/examples/funcs/eventsListNames.ts +263 -0
  1187. package/examples/funcs/filesCreate.ts +181 -0
  1188. package/examples/funcs/filesDelete.ts +200 -0
  1189. package/examples/funcs/filesList.ts +259 -0
  1190. package/examples/funcs/filesUpdate.ts +202 -0
  1191. package/examples/funcs/filesUploaded.ts +204 -0
  1192. package/examples/funcs/licenseKeysActivate.ts +197 -0
  1193. package/examples/funcs/licenseKeysDeactivate.ts +186 -0
  1194. package/examples/funcs/licenseKeysGet.ts +203 -0
  1195. package/examples/funcs/licenseKeysGetActivation.ts +209 -0
  1196. package/examples/funcs/licenseKeysList.ts +277 -0
  1197. package/examples/funcs/licenseKeysUpdate.ts +204 -0
  1198. package/examples/funcs/licenseKeysValidate.ts +189 -0
  1199. package/examples/funcs/metersCreate.ts +178 -0
  1200. package/examples/funcs/metersGet.ts +192 -0
  1201. package/examples/funcs/metersList.ts +270 -0
  1202. package/examples/funcs/metersQuantities.ts +215 -0
  1203. package/examples/funcs/metersUpdate.ts +193 -0
  1204. package/examples/funcs/metricsGet.ts +194 -0
  1205. package/examples/funcs/metricsLimits.ts +147 -0
  1206. package/examples/funcs/oauth2Authorize.ts +142 -0
  1207. package/examples/funcs/oauth2ClientsCreate.ts +176 -0
  1208. package/examples/funcs/oauth2ClientsDelete.ts +183 -0
  1209. package/examples/funcs/oauth2ClientsGet.ts +182 -0
  1210. package/examples/funcs/oauth2ClientsUpdate.ts +186 -0
  1211. package/examples/funcs/oauth2Introspect.ts +164 -0
  1212. package/examples/funcs/oauth2Revoke.ts +164 -0
  1213. package/examples/funcs/oauth2Token.ts +164 -0
  1214. package/examples/funcs/oauth2Userinfo.ts +145 -0
  1215. package/examples/funcs/ordersExport.ts +183 -0
  1216. package/examples/funcs/ordersGenerateInvoice.ts +187 -0
  1217. package/examples/funcs/ordersGet.ts +192 -0
  1218. package/examples/funcs/ordersInvoice.ts +195 -0
  1219. package/examples/funcs/ordersList.ts +273 -0
  1220. package/examples/funcs/ordersUpdate.ts +193 -0
  1221. package/examples/funcs/organizationsCreate.ts +181 -0
  1222. package/examples/funcs/organizationsGet.ts +195 -0
  1223. package/examples/funcs/organizationsList.ts +259 -0
  1224. package/examples/funcs/organizationsUpdate.ts +206 -0
  1225. package/examples/funcs/paymentsGet.ts +195 -0
  1226. package/examples/funcs/paymentsList.ts +264 -0
  1227. package/examples/funcs/productsCreate.ts +181 -0
  1228. package/examples/funcs/productsGet.ts +195 -0
  1229. package/examples/funcs/productsList.ts +273 -0
  1230. package/examples/funcs/productsUpdate.ts +204 -0
  1231. package/examples/funcs/productsUpdateBenefits.ts +206 -0
  1232. package/examples/funcs/refundsCreate.ts +195 -0
  1233. package/examples/funcs/refundsList.ts +264 -0
  1234. package/examples/funcs/subscriptionsCreate.ts +187 -0
  1235. package/examples/funcs/subscriptionsExport.ts +182 -0
  1236. package/examples/funcs/subscriptionsGet.ts +195 -0
  1237. package/examples/funcs/subscriptionsList.ts +273 -0
  1238. package/examples/funcs/subscriptionsRevoke.ts +211 -0
  1239. package/examples/funcs/subscriptionsUpdate.ts +214 -0
  1240. package/examples/funcs/walletsGet.ts +192 -0
  1241. package/examples/funcs/walletsList.ts +260 -0
  1242. package/examples/funcs/walletsTopUp.ts +212 -0
  1243. package/examples/funcs/webhooksCreateWebhookEndpoint.ts +181 -0
  1244. package/examples/funcs/webhooksDeleteWebhookEndpoint.ts +192 -0
  1245. package/examples/funcs/webhooksGetWebhookEndpoint.ts +195 -0
  1246. package/examples/funcs/webhooksListWebhookDeliveries.ts +264 -0
  1247. package/examples/funcs/webhooksListWebhookEndpoints.ts +260 -0
  1248. package/examples/funcs/webhooksRedeliverWebhookEvent.ts +192 -0
  1249. package/examples/funcs/webhooksResetWebhookEndpointSecret.ts +196 -0
  1250. package/examples/funcs/webhooksUpdateWebhookEndpoint.ts +198 -0
  1251. package/examples/hooks/hooks.ts +132 -0
  1252. package/examples/hooks/registration.ts +14 -0
  1253. package/examples/hooks/types.ts +114 -0
  1254. package/examples/lib/base64.ts +37 -0
  1255. package/examples/lib/config.ts +70 -0
  1256. package/examples/lib/dlv.ts +53 -0
  1257. package/examples/lib/encodings.ts +483 -0
  1258. package/examples/lib/env.ts +57 -0
  1259. package/examples/lib/files.ts +82 -0
  1260. package/examples/lib/http.ts +323 -0
  1261. package/examples/lib/is-plain-object.ts +43 -0
  1262. package/examples/lib/logger.ts +9 -0
  1263. package/examples/lib/matchers.ts +345 -0
  1264. package/examples/lib/primitives.ts +150 -0
  1265. package/examples/lib/retries.ts +218 -0
  1266. package/examples/lib/schemas.ts +91 -0
  1267. package/examples/lib/sdks.ts +407 -0
  1268. package/examples/lib/security.ts +264 -0
  1269. package/examples/lib/url.ts +33 -0
  1270. package/examples/models/components/address.ts +363 -0
  1271. package/examples/models/components/addressdict.ts +91 -0
  1272. package/examples/models/components/addressinput.ts +361 -0
  1273. package/examples/models/components/aggregationfunction.ts +37 -0
  1274. package/examples/models/components/attachedcustomfield.ts +107 -0
  1275. package/examples/models/components/attachedcustomfieldcreate.ts +88 -0
  1276. package/examples/models/components/authorizationcodetokenrequest.ts +99 -0
  1277. package/examples/models/components/authorizeorganization.ts +83 -0
  1278. package/examples/models/components/authorizeresponseorganization.ts +106 -0
  1279. package/examples/models/components/authorizeresponseuser.ts +100 -0
  1280. package/examples/models/components/authorizeuser.ts +79 -0
  1281. package/examples/models/components/benefit.ts +113 -0
  1282. package/examples/models/components/benefitcreate.ts +164 -0
  1283. package/examples/models/components/benefitcustom.ts +204 -0
  1284. package/examples/models/components/benefitcustomcreate.ts +184 -0
  1285. package/examples/models/components/benefitcustomcreateproperties.ts +71 -0
  1286. package/examples/models/components/benefitcustomproperties.ts +69 -0
  1287. package/examples/models/components/benefitcustomsubscriber.ts +221 -0
  1288. package/examples/models/components/benefitcustomsubscriberproperties.ts +72 -0
  1289. package/examples/models/components/benefitcustomupdate.ts +162 -0
  1290. package/examples/models/components/benefitcycledevent.ts +150 -0
  1291. package/examples/models/components/benefitdiscord.ts +208 -0
  1292. package/examples/models/components/benefitdiscordcreate.ts +181 -0
  1293. package/examples/models/components/benefitdiscordcreateproperties.ts +98 -0
  1294. package/examples/models/components/benefitdiscordproperties.ts +105 -0
  1295. package/examples/models/components/benefitdiscordsubscriber.ts +221 -0
  1296. package/examples/models/components/benefitdiscordsubscriberproperties.ts +85 -0
  1297. package/examples/models/components/benefitdiscordupdate.ts +164 -0
  1298. package/examples/models/components/benefitdownloadables.ts +204 -0
  1299. package/examples/models/components/benefitdownloadablescreate.ts +184 -0
  1300. package/examples/models/components/benefitdownloadablescreateproperties.ts +75 -0
  1301. package/examples/models/components/benefitdownloadablesproperties.ts +72 -0
  1302. package/examples/models/components/benefitdownloadablessubscriber.ts +224 -0
  1303. package/examples/models/components/benefitdownloadablessubscriberproperties.ts +86 -0
  1304. package/examples/models/components/benefitdownloadablesupdate.ts +170 -0
  1305. package/examples/models/components/benefitgithubrepository.ts +218 -0
  1306. package/examples/models/components/benefitgithubrepositorycreate.ts +190 -0
  1307. package/examples/models/components/benefitgithubrepositorycreateproperties.ts +149 -0
  1308. package/examples/models/components/benefitgithubrepositoryproperties.ts +135 -0
  1309. package/examples/models/components/benefitgithubrepositorysubscriber.ts +234 -0
  1310. package/examples/models/components/benefitgithubrepositorysubscriberproperties.ts +103 -0
  1311. package/examples/models/components/benefitgithubrepositoryupdate.ts +176 -0
  1312. package/examples/models/components/benefitgrant.ts +328 -0
  1313. package/examples/models/components/benefitgrantcustomproperties.ts +60 -0
  1314. package/examples/models/components/benefitgrantcustomwebhook.ts +236 -0
  1315. package/examples/models/components/benefitgrantdiscordproperties.ts +95 -0
  1316. package/examples/models/components/benefitgrantdiscordwebhook.ts +236 -0
  1317. package/examples/models/components/benefitgrantdownloadablesproperties.ts +71 -0
  1318. package/examples/models/components/benefitgrantdownloadableswebhook.ts +233 -0
  1319. package/examples/models/components/benefitgrantedevent.ts +150 -0
  1320. package/examples/models/components/benefitgranterror.ts +74 -0
  1321. package/examples/models/components/benefitgrantgithubrepositoryproperties.ts +140 -0
  1322. package/examples/models/components/benefitgrantgithubrepositorywebhook.ts +246 -0
  1323. package/examples/models/components/benefitgrantlicensekeysproperties.ts +84 -0
  1324. package/examples/models/components/benefitgrantlicensekeyswebhook.ts +233 -0
  1325. package/examples/models/components/benefitgrantmetadata.ts +92 -0
  1326. package/examples/models/components/benefitgrantmetercreditproperties.ts +90 -0
  1327. package/examples/models/components/benefitgrantmetercreditwebhook.ts +240 -0
  1328. package/examples/models/components/benefitgrantsortproperty.ts +39 -0
  1329. package/examples/models/components/benefitgrantwebhook.ts +120 -0
  1330. package/examples/models/components/benefitlicensekeyactivationcreateproperties.ts +92 -0
  1331. package/examples/models/components/benefitlicensekeyactivationproperties.ts +84 -0
  1332. package/examples/models/components/benefitlicensekeyexpirationproperties.ts +102 -0
  1333. package/examples/models/components/benefitlicensekeys.ts +202 -0
  1334. package/examples/models/components/benefitlicensekeyscreate.ts +182 -0
  1335. package/examples/models/components/benefitlicensekeyscreateproperties.ts +112 -0
  1336. package/examples/models/components/benefitlicensekeysproperties.ts +101 -0
  1337. package/examples/models/components/benefitlicensekeyssubscriber.ts +223 -0
  1338. package/examples/models/components/benefitlicensekeyssubscriberproperties.ts +105 -0
  1339. package/examples/models/components/benefitlicensekeysupdate.ts +168 -0
  1340. package/examples/models/components/benefitmetercredit.ts +212 -0
  1341. package/examples/models/components/benefitmetercreditcreate.ts +188 -0
  1342. package/examples/models/components/benefitmetercreditcreateproperties.ts +90 -0
  1343. package/examples/models/components/benefitmetercreditproperties.ts +88 -0
  1344. package/examples/models/components/benefitmetercreditsubscriber.ts +226 -0
  1345. package/examples/models/components/benefitmetercreditsubscriberproperties.ts +92 -0
  1346. package/examples/models/components/benefitmetercreditupdate.ts +168 -0
  1347. package/examples/models/components/benefitpublic.ts +131 -0
  1348. package/examples/models/components/benefitrevokedevent.ts +150 -0
  1349. package/examples/models/components/benefitsortproperty.ts +37 -0
  1350. package/examples/models/components/benefittype.ts +35 -0
  1351. package/examples/models/components/benefitupdatedevent.ts +150 -0
  1352. package/examples/models/components/billingaddressfieldmode.ts +36 -0
  1353. package/examples/models/components/cardpayment.ts +203 -0
  1354. package/examples/models/components/cardpaymentmetadata.ts +79 -0
  1355. package/examples/models/components/checkout.ts +948 -0
  1356. package/examples/models/components/checkoutbillingaddressfields.ts +102 -0
  1357. package/examples/models/components/checkoutconfirmstripe.ts +267 -0
  1358. package/examples/models/components/checkoutcreate.ts +506 -0
  1359. package/examples/models/components/checkoutdiscountfixedonceforeverduration.ts +117 -0
  1360. package/examples/models/components/checkoutdiscountfixedrepeatduration.ts +127 -0
  1361. package/examples/models/components/checkoutdiscountpercentageonceforeverduration.ts +127 -0
  1362. package/examples/models/components/checkoutdiscountpercentagerepeatduration.ts +134 -0
  1363. package/examples/models/components/checkoutlink.ts +382 -0
  1364. package/examples/models/components/checkoutlinkcreate.ts +90 -0
  1365. package/examples/models/components/checkoutlinkcreateproduct.ts +241 -0
  1366. package/examples/models/components/checkoutlinkcreateproductprice.ts +246 -0
  1367. package/examples/models/components/checkoutlinkcreateproducts.ts +239 -0
  1368. package/examples/models/components/checkoutlinkproduct.ts +365 -0
  1369. package/examples/models/components/checkoutlinksortproperty.ts +41 -0
  1370. package/examples/models/components/checkoutlinkupdate.ts +219 -0
  1371. package/examples/models/components/checkoutproduct.ts +297 -0
  1372. package/examples/models/components/checkoutpublic.ts +802 -0
  1373. package/examples/models/components/checkoutpublicconfirmed.ts +827 -0
  1374. package/examples/models/components/checkoutsortproperty.ts +37 -0
  1375. package/examples/models/components/checkoutstatus.ts +36 -0
  1376. package/examples/models/components/checkoutupdate.ts +485 -0
  1377. package/examples/models/components/checkoutupdatepublic.ts +258 -0
  1378. package/examples/models/components/costmetadatainput.ts +122 -0
  1379. package/examples/models/components/costmetadataoutput.ts +76 -0
  1380. package/examples/models/components/countaggregation.ts +66 -0
  1381. package/examples/models/components/customer.ts +284 -0
  1382. package/examples/models/components/customerbalance.ts +77 -0
  1383. package/examples/models/components/customerbenefitgrant.ts +120 -0
  1384. package/examples/models/components/customerbenefitgrantcustom.ts +178 -0
  1385. package/examples/models/components/customerbenefitgrantcustomupdate.ts +77 -0
  1386. package/examples/models/components/customerbenefitgrantdiscord.ts +180 -0
  1387. package/examples/models/components/customerbenefitgrantdiscordpropertiesupdate.ts +88 -0
  1388. package/examples/models/components/customerbenefitgrantdiscordupdate.ts +88 -0
  1389. package/examples/models/components/customerbenefitgrantdownloadables.ts +181 -0
  1390. package/examples/models/components/customerbenefitgrantdownloadablesupdate.ts +86 -0
  1391. package/examples/models/components/customerbenefitgrantgithubrepository.ts +183 -0
  1392. package/examples/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts +89 -0
  1393. package/examples/models/components/customerbenefitgrantgithubrepositoryupdate.ts +97 -0
  1394. package/examples/models/components/customerbenefitgrantlicensekeys.ts +180 -0
  1395. package/examples/models/components/customerbenefitgrantlicensekeysupdate.ts +80 -0
  1396. package/examples/models/components/customerbenefitgrantmetercredit.ts +180 -0
  1397. package/examples/models/components/customerbenefitgrantmetercreditupdate.ts +80 -0
  1398. package/examples/models/components/customerbenefitgrantsortproperty.ts +39 -0
  1399. package/examples/models/components/customerbenefitgrantupdate.ts +178 -0
  1400. package/examples/models/components/customercancellationreason.ts +41 -0
  1401. package/examples/models/components/customercreate.ts +251 -0
  1402. package/examples/models/components/customercreatedevent.ts +150 -0
  1403. package/examples/models/components/customercreatedmetadata.ts +93 -0
  1404. package/examples/models/components/customercustomermeter.ts +149 -0
  1405. package/examples/models/components/customercustomermetermeter.ts +103 -0
  1406. package/examples/models/components/customercustomermetersortproperty.ts +48 -0
  1407. package/examples/models/components/customercustomersession.ts +81 -0
  1408. package/examples/models/components/customerdeletedevent.ts +150 -0
  1409. package/examples/models/components/customerdeletedmetadata.ts +93 -0
  1410. package/examples/models/components/customermeter.ts +161 -0
  1411. package/examples/models/components/customermetersortproperty.ts +51 -0
  1412. package/examples/models/components/customerorder.ts +341 -0
  1413. package/examples/models/components/customerorderconfirmpayment.ts +103 -0
  1414. package/examples/models/components/customerorderinvoice.ts +72 -0
  1415. package/examples/models/components/customerorderpaymentconfirmation.ts +97 -0
  1416. package/examples/models/components/customerorderpaymentstatus.ts +79 -0
  1417. package/examples/models/components/customerorderproduct.ts +308 -0
  1418. package/examples/models/components/customerordersortproperty.ts +43 -0
  1419. package/examples/models/components/customerordersubscription.ts +297 -0
  1420. package/examples/models/components/customerorderupdate.ts +96 -0
  1421. package/examples/models/components/customerorganization.ts +85 -0
  1422. package/examples/models/components/customerpaymentmethod.ts +78 -0
  1423. package/examples/models/components/customerpaymentmethodconfirm.ts +83 -0
  1424. package/examples/models/components/customerpaymentmethodcreate.ts +89 -0
  1425. package/examples/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
  1426. package/examples/models/components/customerpaymentmethodcreateresponse.ts +107 -0
  1427. package/examples/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
  1428. package/examples/models/components/customerportalcustomer.ts +213 -0
  1429. package/examples/models/components/customerportalcustomerupdate.ts +95 -0
  1430. package/examples/models/components/customerportaloauthaccount.ts +81 -0
  1431. package/examples/models/components/customerproduct.ts +297 -0
  1432. package/examples/models/components/customerseat.ts +180 -0
  1433. package/examples/models/components/customerseatclaimresponse.ts +91 -0
  1434. package/examples/models/components/customersession.ts +138 -0
  1435. package/examples/models/components/customersessioncustomerexternalidcreate.ts +101 -0
  1436. package/examples/models/components/customersessioncustomeridcreate.ts +92 -0
  1437. package/examples/models/components/customersortproperty.ts +37 -0
  1438. package/examples/models/components/customerstate.ts +339 -0
  1439. package/examples/models/components/customerstatebenefitgrant.ts +322 -0
  1440. package/examples/models/components/customerstatemeter.ts +133 -0
  1441. package/examples/models/components/customerstatesubscription.ts +450 -0
  1442. package/examples/models/components/customerstatesubscriptionmeter.ts +135 -0
  1443. package/examples/models/components/customersubscription.ts +418 -0
  1444. package/examples/models/components/customersubscriptioncancel.ts +118 -0
  1445. package/examples/models/components/customersubscriptionmeter.ts +140 -0
  1446. package/examples/models/components/customersubscriptionmetermeter.ts +105 -0
  1447. package/examples/models/components/customersubscriptionproduct.ts +313 -0
  1448. package/examples/models/components/customersubscriptionsortproperty.ts +43 -0
  1449. package/examples/models/components/customersubscriptionupdate.ts +90 -0
  1450. package/examples/models/components/customersubscriptionupdateproduct.ts +81 -0
  1451. package/examples/models/components/customersubscriptionupdateseats.ts +94 -0
  1452. package/examples/models/components/customerupdate.ts +242 -0
  1453. package/examples/models/components/customerupdatedevent.ts +150 -0
  1454. package/examples/models/components/customerupdatedfields.ts +155 -0
  1455. package/examples/models/components/customerupdatedmetadata.ts +105 -0
  1456. package/examples/models/components/customerupdateexternalid.ts +245 -0
  1457. package/examples/models/components/customerwallet.ts +122 -0
  1458. package/examples/models/components/customerwalletsortproperty.ts +37 -0
  1459. package/examples/models/components/customfield.ts +138 -0
  1460. package/examples/models/components/customfieldcheckbox.ts +200 -0
  1461. package/examples/models/components/customfieldcheckboxproperties.ts +89 -0
  1462. package/examples/models/components/customfieldcreate.ts +142 -0
  1463. package/examples/models/components/customfieldcreatecheckbox.ts +193 -0
  1464. package/examples/models/components/customfieldcreatedate.ts +188 -0
  1465. package/examples/models/components/customfieldcreatenumber.ts +192 -0
  1466. package/examples/models/components/customfieldcreateselect.ts +192 -0
  1467. package/examples/models/components/customfieldcreatetext.ts +188 -0
  1468. package/examples/models/components/customfielddate.ts +196 -0
  1469. package/examples/models/components/customfielddateproperties.ts +95 -0
  1470. package/examples/models/components/customfieldnumber.ts +198 -0
  1471. package/examples/models/components/customfieldnumberproperties.ts +97 -0
  1472. package/examples/models/components/customfieldselect.ts +198 -0
  1473. package/examples/models/components/customfieldselectoption.ts +70 -0
  1474. package/examples/models/components/customfieldselectproperties.ts +99 -0
  1475. package/examples/models/components/customfieldsortproperty.ts +41 -0
  1476. package/examples/models/components/customfieldtext.ts +196 -0
  1477. package/examples/models/components/customfieldtextproperties.ts +103 -0
  1478. package/examples/models/components/customfieldtype.ts +36 -0
  1479. package/examples/models/components/customfieldupdate.ts +142 -0
  1480. package/examples/models/components/customfieldupdatecheckbox.ts +173 -0
  1481. package/examples/models/components/customfieldupdatedate.ts +166 -0
  1482. package/examples/models/components/customfieldupdatenumber.ts +170 -0
  1483. package/examples/models/components/customfieldupdateselect.ts +170 -0
  1484. package/examples/models/components/customfieldupdatetext.ts +166 -0
  1485. package/examples/models/components/discount.ts +96 -0
  1486. package/examples/models/components/discountcreate.ts +96 -0
  1487. package/examples/models/components/discountduration.ts +34 -0
  1488. package/examples/models/components/discountfixedonceforeverduration.ts +277 -0
  1489. package/examples/models/components/discountfixedonceforeverdurationbase.ts +269 -0
  1490. package/examples/models/components/discountfixedonceforeverdurationcreate.ts +263 -0
  1491. package/examples/models/components/discountfixedrepeatduration.ts +280 -0
  1492. package/examples/models/components/discountfixedrepeatdurationbase.ts +270 -0
  1493. package/examples/models/components/discountfixedrepeatdurationcreate.ts +275 -0
  1494. package/examples/models/components/discountpercentageonceforeverduration.ts +283 -0
  1495. package/examples/models/components/discountpercentageonceforeverdurationbase.ts +278 -0
  1496. package/examples/models/components/discountpercentageonceforeverdurationcreate.ts +270 -0
  1497. package/examples/models/components/discountpercentagerepeatduration.ts +287 -0
  1498. package/examples/models/components/discountpercentagerepeatdurationbase.ts +276 -0
  1499. package/examples/models/components/discountpercentagerepeatdurationcreate.ts +280 -0
  1500. package/examples/models/components/discountproduct.ts +246 -0
  1501. package/examples/models/components/discountsortproperty.ts +39 -0
  1502. package/examples/models/components/discounttype.ts +31 -0
  1503. package/examples/models/components/discountupdate.ts +229 -0
  1504. package/examples/models/components/downloadablefilecreate.ts +116 -0
  1505. package/examples/models/components/downloadablefileread.ts +161 -0
  1506. package/examples/models/components/downloadableread.ts +89 -0
  1507. package/examples/models/components/event.ts +63 -0
  1508. package/examples/models/components/eventcreatecustomer.ts +112 -0
  1509. package/examples/models/components/eventcreateexternalcustomer.ts +114 -0
  1510. package/examples/models/components/eventmetadatainput.ts +96 -0
  1511. package/examples/models/components/eventmetadataoutput.ts +96 -0
  1512. package/examples/models/components/eventname.ts +106 -0
  1513. package/examples/models/components/eventnamessortproperty.ts +39 -0
  1514. package/examples/models/components/eventsingest.ts +140 -0
  1515. package/examples/models/components/eventsingestresponse.ts +69 -0
  1516. package/examples/models/components/eventsortproperty.ts +33 -0
  1517. package/examples/models/components/eventsource.ts +31 -0
  1518. package/examples/models/components/existingproductprice.ts +73 -0
  1519. package/examples/models/components/filecreate.ts +110 -0
  1520. package/examples/models/components/filedownload.ts +163 -0
  1521. package/examples/models/components/filepatch.ts +66 -0
  1522. package/examples/models/components/fileservicetypes.ts +34 -0
  1523. package/examples/models/components/fileupload.ts +163 -0
  1524. package/examples/models/components/fileuploadcompleted.ts +80 -0
  1525. package/examples/models/components/filter.ts +121 -0
  1526. package/examples/models/components/filterclause.ts +118 -0
  1527. package/examples/models/components/filterconjunction.ts +33 -0
  1528. package/examples/models/components/filteroperator.ts +39 -0
  1529. package/examples/models/components/genericpayment.ts +188 -0
  1530. package/examples/models/components/introspecttokenrequest.ts +125 -0
  1531. package/examples/models/components/introspecttokenresponse.ts +146 -0
  1532. package/examples/models/components/legacyrecurringproductprice.ts +116 -0
  1533. package/examples/models/components/legacyrecurringproductpricecustom.ts +188 -0
  1534. package/examples/models/components/legacyrecurringproductpricefixed.ts +169 -0
  1535. package/examples/models/components/legacyrecurringproductpricefree.ts +151 -0
  1536. package/examples/models/components/licensekeyactivate.ts +239 -0
  1537. package/examples/models/components/licensekeyactivationbase.ts +145 -0
  1538. package/examples/models/components/licensekeyactivationread.ts +173 -0
  1539. package/examples/models/components/licensekeycustomer.ts +293 -0
  1540. package/examples/models/components/licensekeydeactivate.ts +85 -0
  1541. package/examples/models/components/licensekeyread.ts +178 -0
  1542. package/examples/models/components/licensekeystatus.ts +34 -0
  1543. package/examples/models/components/licensekeyupdate.ts +102 -0
  1544. package/examples/models/components/licensekeyvalidate.ts +172 -0
  1545. package/examples/models/components/licensekeywithactivations.ts +192 -0
  1546. package/examples/models/components/listresource.ts +78 -0
  1547. package/examples/models/components/listresourcebenefit.ts +82 -0
  1548. package/examples/models/components/listresourcebenefitgrant.ts +82 -0
  1549. package/examples/models/components/listresourcecheckout.ts +82 -0
  1550. package/examples/models/components/listresourcecheckoutlink.ts +82 -0
  1551. package/examples/models/components/listresourcecustomer.ts +82 -0
  1552. package/examples/models/components/listresourcecustomerbenefitgrant.ts +84 -0
  1553. package/examples/models/components/listresourcecustomercustomermeter.ts +85 -0
  1554. package/examples/models/components/listresourcecustomermeter.ts +82 -0
  1555. package/examples/models/components/listresourcecustomerorder.ts +82 -0
  1556. package/examples/models/components/listresourcecustomerpaymentmethod.ts +85 -0
  1557. package/examples/models/components/listresourcecustomersubscription.ts +84 -0
  1558. package/examples/models/components/listresourcecustomerwallet.ts +82 -0
  1559. package/examples/models/components/listresourcecustomfield.ts +82 -0
  1560. package/examples/models/components/listresourcediscount.ts +82 -0
  1561. package/examples/models/components/listresourcedownloadableread.ts +84 -0
  1562. package/examples/models/components/listresourceevent.ts +82 -0
  1563. package/examples/models/components/listresourceeventname.ts +82 -0
  1564. package/examples/models/components/listresourcefileread.ts +222 -0
  1565. package/examples/models/components/listresourcelicensekeyread.ts +82 -0
  1566. package/examples/models/components/listresourcemeter.ts +82 -0
  1567. package/examples/models/components/listresourceorder.ts +82 -0
  1568. package/examples/models/components/listresourceorganization.ts +82 -0
  1569. package/examples/models/components/listresourceproduct.ts +82 -0
  1570. package/examples/models/components/listresourcerefund.ts +82 -0
  1571. package/examples/models/components/listresourcesubscription.ts +82 -0
  1572. package/examples/models/components/listresourcewallet.ts +82 -0
  1573. package/examples/models/components/listresourcewebhookdelivery.ts +84 -0
  1574. package/examples/models/components/listresourcewebhookendpoint.ts +84 -0
  1575. package/examples/models/components/llmmetadata.ts +129 -0
  1576. package/examples/models/components/meter.ts +380 -0
  1577. package/examples/models/components/metercreate.ts +354 -0
  1578. package/examples/models/components/metercreditedmetadata.ts +83 -0
  1579. package/examples/models/components/metercreditevent.ts +150 -0
  1580. package/examples/models/components/meterquantities.ts +77 -0
  1581. package/examples/models/components/meterquantity.ts +72 -0
  1582. package/examples/models/components/meterresetevent.ts +148 -0
  1583. package/examples/models/components/meterresetmetadata.ts +75 -0
  1584. package/examples/models/components/metersortproperty.ts +35 -0
  1585. package/examples/models/components/meterupdate.ts +374 -0
  1586. package/examples/models/components/metric.ts +90 -0
  1587. package/examples/models/components/metricperiod.ts +2298 -0
  1588. package/examples/models/components/metrics.ts +425 -0
  1589. package/examples/models/components/metricsintervallimit.ts +81 -0
  1590. package/examples/models/components/metricsintervalslimits.ts +106 -0
  1591. package/examples/models/components/metricslimits.ts +91 -0
  1592. package/examples/models/components/metricsresponse.ts +96 -0
  1593. package/examples/models/components/metricstotals.ts +2538 -0
  1594. package/examples/models/components/metrictype.ts +33 -0
  1595. package/examples/models/components/oauth2clientconfiguration.ts +202 -0
  1596. package/examples/models/components/oauth2clientconfigurationupdate.ts +224 -0
  1597. package/examples/models/components/oauth2clientpublic.ts +125 -0
  1598. package/examples/models/components/order.ts +608 -0
  1599. package/examples/models/components/orderbillingreason.ts +35 -0
  1600. package/examples/models/components/ordercustomer.ts +285 -0
  1601. package/examples/models/components/orderinvoice.ts +68 -0
  1602. package/examples/models/components/orderitemschema.ts +136 -0
  1603. package/examples/models/components/orderpaidevent.ts +146 -0
  1604. package/examples/models/components/orderpaidmetadata.ts +87 -0
  1605. package/examples/models/components/orderproduct.ts +237 -0
  1606. package/examples/models/components/orderrefundedevent.ts +150 -0
  1607. package/examples/models/components/orderrefundedmetadata.ts +89 -0
  1608. package/examples/models/components/ordersortproperty.ts +49 -0
  1609. package/examples/models/components/orderstatus.ts +33 -0
  1610. package/examples/models/components/ordersubscription.ts +359 -0
  1611. package/examples/models/components/orderupdate.ts +92 -0
  1612. package/examples/models/components/organization.ts +213 -0
  1613. package/examples/models/components/organizationavatarfilecreate.ts +124 -0
  1614. package/examples/models/components/organizationavatarfileread.ts +167 -0
  1615. package/examples/models/components/organizationcreate.ts +195 -0
  1616. package/examples/models/components/organizationcustomeremailsettings.ts +120 -0
  1617. package/examples/models/components/organizationdetails.ts +168 -0
  1618. package/examples/models/components/organizationfeaturesettings.ts +107 -0
  1619. package/examples/models/components/organizationnotificationsettings.ts +83 -0
  1620. package/examples/models/components/organizationsociallink.ts +78 -0
  1621. package/examples/models/components/organizationsocialplatforms.ts +41 -0
  1622. package/examples/models/components/organizationsortproperty.ts +43 -0
  1623. package/examples/models/components/organizationstatus.ts +36 -0
  1624. package/examples/models/components/organizationsubscriptionsettings.ts +100 -0
  1625. package/examples/models/components/organizationupdate.ts +191 -0
  1626. package/examples/models/components/pagination.ts +77 -0
  1627. package/examples/models/components/payment.ts +63 -0
  1628. package/examples/models/components/paymentmethodcard.ts +127 -0
  1629. package/examples/models/components/paymentmethodcardmetadata.ts +93 -0
  1630. package/examples/models/components/paymentmethodgeneric.ts +115 -0
  1631. package/examples/models/components/paymentprocessor.ts +32 -0
  1632. package/examples/models/components/paymentsortproperty.ts +39 -0
  1633. package/examples/models/components/paymentstatus.ts +34 -0
  1634. package/examples/models/components/product.ts +358 -0
  1635. package/examples/models/components/productbenefitsupdate.ts +72 -0
  1636. package/examples/models/components/productbillingtype.ts +33 -0
  1637. package/examples/models/components/productcreate.ts +74 -0
  1638. package/examples/models/components/productcreateonetime.ts +432 -0
  1639. package/examples/models/components/productcreaterecurring.ts +459 -0
  1640. package/examples/models/components/productmediafilecreate.ts +122 -0
  1641. package/examples/models/components/productmediafileread.ts +167 -0
  1642. package/examples/models/components/productprice.ts +146 -0
  1643. package/examples/models/components/productpricecustom.ts +182 -0
  1644. package/examples/models/components/productpricecustomcreate.ts +114 -0
  1645. package/examples/models/components/productpricefixed.ts +164 -0
  1646. package/examples/models/components/productpricefixedcreate.ts +96 -0
  1647. package/examples/models/components/productpricefree.ts +146 -0
  1648. package/examples/models/components/productpricefreecreate.ts +78 -0
  1649. package/examples/models/components/productpricemeter.ts +79 -0
  1650. package/examples/models/components/productpricemeteredunit.ts +195 -0
  1651. package/examples/models/components/productpricemeteredunitcreate.ts +165 -0
  1652. package/examples/models/components/productpriceseatbased.ts +170 -0
  1653. package/examples/models/components/productpriceseatbasedcreate.ts +104 -0
  1654. package/examples/models/components/productpriceseattier.ts +99 -0
  1655. package/examples/models/components/productpriceseattiers.ts +78 -0
  1656. package/examples/models/components/productpricetype.ts +33 -0
  1657. package/examples/models/components/productsortproperty.ts +39 -0
  1658. package/examples/models/components/productupdate.ts +589 -0
  1659. package/examples/models/components/propertyaggregation.ts +99 -0
  1660. package/examples/models/components/refreshtokenrequest.ts +93 -0
  1661. package/examples/models/components/refund.ts +207 -0
  1662. package/examples/models/components/refundcreate.ts +183 -0
  1663. package/examples/models/components/refundreason.ts +35 -0
  1664. package/examples/models/components/refundsortproperty.ts +35 -0
  1665. package/examples/models/components/refundstatus.ts +33 -0
  1666. package/examples/models/components/revoketokenrequest.ts +119 -0
  1667. package/examples/models/components/revoketokenresponse.ts +58 -0
  1668. package/examples/models/components/s3downloadurl.ts +79 -0
  1669. package/examples/models/components/s3filecreatemultipart.ts +72 -0
  1670. package/examples/models/components/s3filecreatepart.ts +91 -0
  1671. package/examples/models/components/s3fileuploadcompletedpart.ts +85 -0
  1672. package/examples/models/components/s3fileuploadmultipart.ts +80 -0
  1673. package/examples/models/components/s3fileuploadpart.ts +105 -0
  1674. package/examples/models/components/scope.ts +91 -0
  1675. package/examples/models/components/seatassign.ts +133 -0
  1676. package/examples/models/components/seatclaim.ts +74 -0
  1677. package/examples/models/components/seatclaiminfo.ts +125 -0
  1678. package/examples/models/components/seatslist.ts +96 -0
  1679. package/examples/models/components/seatstatus.ts +32 -0
  1680. package/examples/models/components/security.ts +71 -0
  1681. package/examples/models/components/subscription.ts +679 -0
  1682. package/examples/models/components/subscriptioncancel.ts +137 -0
  1683. package/examples/models/components/subscriptioncreatecustomer.ts +175 -0
  1684. package/examples/models/components/subscriptioncreateexternalcustomer.ts +185 -0
  1685. package/examples/models/components/subscriptioncustomer.ts +288 -0
  1686. package/examples/models/components/subscriptioncycledevent.ts +150 -0
  1687. package/examples/models/components/subscriptioncycledmetadata.ts +75 -0
  1688. package/examples/models/components/subscriptionmeter.ts +143 -0
  1689. package/examples/models/components/subscriptionproductupdatedevent.ts +152 -0
  1690. package/examples/models/components/subscriptionproductupdatedmetadata.ts +91 -0
  1691. package/examples/models/components/subscriptionprorationbehavior.ts +35 -0
  1692. package/examples/models/components/subscriptionrecurringinterval.ts +37 -0
  1693. package/examples/models/components/subscriptionrevoke.ts +131 -0
  1694. package/examples/models/components/subscriptionrevokedevent.ts +150 -0
  1695. package/examples/models/components/subscriptionrevokedmetadata.ts +77 -0
  1696. package/examples/models/components/subscriptionslist.ts +80 -0
  1697. package/examples/models/components/subscriptionsortproperty.ts +47 -0
  1698. package/examples/models/components/subscriptionstatus.ts +38 -0
  1699. package/examples/models/components/subscriptionupdate.ts +120 -0
  1700. package/examples/models/components/subscriptionupdatediscount.ts +78 -0
  1701. package/examples/models/components/subscriptionupdateproduct.ts +94 -0
  1702. package/examples/models/components/subscriptionupdateseats.ts +92 -0
  1703. package/examples/models/components/subscriptionupdatetrial.ts +78 -0
  1704. package/examples/models/components/subtype.ts +31 -0
  1705. package/examples/models/components/systemevent.ts +310 -0
  1706. package/examples/models/components/taxidformat.ts +117 -0
  1707. package/examples/models/components/timeinterval.ts +34 -0
  1708. package/examples/models/components/tokenresponse.ts +99 -0
  1709. package/examples/models/components/trialinterval.ts +35 -0
  1710. package/examples/models/components/uniqueaggregation.ts +70 -0
  1711. package/examples/models/components/userevent.ts +146 -0
  1712. package/examples/models/components/userinfoorganization.ts +70 -0
  1713. package/examples/models/components/userinfouser.ts +83 -0
  1714. package/examples/models/components/validatedlicensekey.ts +192 -0
  1715. package/examples/models/components/validationerror.ts +113 -0
  1716. package/examples/models/components/wallet.ts +121 -0
  1717. package/examples/models/components/walletsortproperty.ts +35 -0
  1718. package/examples/models/components/wallettopupcreate.ts +79 -0
  1719. package/examples/models/components/webhookbenefitcreatedpayload.ts +89 -0
  1720. package/examples/models/components/webhookbenefitgrantcreatedpayload.ts +90 -0
  1721. package/examples/models/components/webhookbenefitgrantcycledpayload.ts +90 -0
  1722. package/examples/models/components/webhookbenefitgrantrevokedpayload.ts +90 -0
  1723. package/examples/models/components/webhookbenefitgrantupdatedpayload.ts +90 -0
  1724. package/examples/models/components/webhookbenefitupdatedpayload.ts +89 -0
  1725. package/examples/models/components/webhookcheckoutcreatedpayload.ts +92 -0
  1726. package/examples/models/components/webhookcheckoutupdatedpayload.ts +92 -0
  1727. package/examples/models/components/webhookcustomercreatedpayload.ts +97 -0
  1728. package/examples/models/components/webhookcustomerdeletedpayload.ts +92 -0
  1729. package/examples/models/components/webhookcustomerseatassignedpayload.ts +92 -0
  1730. package/examples/models/components/webhookcustomerseatclaimedpayload.ts +90 -0
  1731. package/examples/models/components/webhookcustomerseatrevokedpayload.ts +90 -0
  1732. package/examples/models/components/webhookcustomerstatechangedpayload.ts +106 -0
  1733. package/examples/models/components/webhookcustomerupdatedpayload.ts +96 -0
  1734. package/examples/models/components/webhookdelivery.ts +143 -0
  1735. package/examples/models/components/webhookendpoint.ts +148 -0
  1736. package/examples/models/components/webhookendpointcreate.ts +116 -0
  1737. package/examples/models/components/webhookendpointupdate.ts +101 -0
  1738. package/examples/models/components/webhookevent.ts +144 -0
  1739. package/examples/models/components/webhookeventtype.ts +61 -0
  1740. package/examples/models/components/webhookformat.ts +34 -0
  1741. package/examples/models/components/webhookordercreatedpayload.ts +96 -0
  1742. package/examples/models/components/webhookorderpaidpayload.ts +89 -0
  1743. package/examples/models/components/webhookorderrefundedpayload.ts +89 -0
  1744. package/examples/models/components/webhookorderupdatedpayload.ts +92 -0
  1745. package/examples/models/components/webhookorganizationupdatedpayload.ts +90 -0
  1746. package/examples/models/components/webhookproductcreatedpayload.ts +92 -0
  1747. package/examples/models/components/webhookproductupdatedpayload.ts +92 -0
  1748. package/examples/models/components/webhookrefundcreatedpayload.ts +89 -0
  1749. package/examples/models/components/webhookrefundupdatedpayload.ts +89 -0
  1750. package/examples/models/components/webhooksubscriptionactivepayload.ts +90 -0
  1751. package/examples/models/components/webhooksubscriptioncanceledpayload.ts +92 -0
  1752. package/examples/models/components/webhooksubscriptioncreatedpayload.ts +92 -0
  1753. package/examples/models/components/webhooksubscriptionrevokedpayload.ts +91 -0
  1754. package/examples/models/components/webhooksubscriptionuncanceledpayload.ts +92 -0
  1755. package/examples/models/components/webhooksubscriptionupdatedpayload.ts +94 -0
  1756. package/examples/models/components/webtokenrequest.ts +133 -0
  1757. package/examples/models/errors/alreadyactivesubscriptionerror.ts +85 -0
  1758. package/examples/models/errors/alreadycanceledsubscription.ts +85 -0
  1759. package/examples/models/errors/chargefyerror.ts +35 -0
  1760. package/examples/models/errors/checkoutforbiddenerror.ts +90 -0
  1761. package/examples/models/errors/customernotready.ts +85 -0
  1762. package/examples/models/errors/customerportalordersgenerateinvoice.ts +97 -0
  1763. package/examples/models/errors/expiredcheckouterror.ts +85 -0
  1764. package/examples/models/errors/httpclienterrors.ts +62 -0
  1765. package/examples/models/errors/httpvalidationerror.ts +85 -0
  1766. package/examples/models/errors/missinginvoicebillingdetails.ts +85 -0
  1767. package/examples/models/errors/missingpaymentmethoderror.ts +85 -0
  1768. package/examples/models/errors/notopencheckout.ts +85 -0
  1769. package/examples/models/errors/notpaidorder.ts +85 -0
  1770. package/examples/models/errors/notpermitted.ts +85 -0
  1771. package/examples/models/errors/ordernoteligibleforretry.ts +85 -0
  1772. package/examples/models/errors/ordersgenerateinvoice.ts +97 -0
  1773. package/examples/models/errors/paymentalreadyinprogress.ts +85 -0
  1774. package/examples/models/errors/paymenterror.ts +85 -0
  1775. package/examples/models/errors/paymentintentfailederror.ts +85 -0
  1776. package/examples/models/errors/paymentmethodinusebyactivesubscription.ts +87 -0
  1777. package/examples/models/errors/paymentnotready.ts +85 -0
  1778. package/examples/models/errors/refundamounttoohigh.ts +85 -0
  1779. package/examples/models/errors/refundedalready.ts +85 -0
  1780. package/examples/models/errors/resourcenotfound.ts +85 -0
  1781. package/examples/models/errors/responsevalidationerror.ts +50 -0
  1782. package/examples/models/errors/sdkerror.ts +40 -0
  1783. package/examples/models/errors/sdkvalidationerror.ts +109 -0
  1784. package/examples/models/errors/subscriptionlocked.ts +85 -0
  1785. package/examples/models/errors/unauthorized.ts +85 -0
  1786. package/examples/models/operations/benefitgrantslist.ts +340 -0
  1787. package/examples/models/operations/benefitsdelete.ts +66 -0
  1788. package/examples/models/operations/benefitsget.ts +66 -0
  1789. package/examples/models/operations/benefitsgrants.ts +231 -0
  1790. package/examples/models/operations/benefitslist.ts +324 -0
  1791. package/examples/models/operations/benefitsupdate.ts +219 -0
  1792. package/examples/models/operations/checkoutlinksdelete.ts +69 -0
  1793. package/examples/models/operations/checkoutlinksget.ts +69 -0
  1794. package/examples/models/operations/checkoutlinkslist.ts +325 -0
  1795. package/examples/models/operations/checkoutlinksupdate.ts +88 -0
  1796. package/examples/models/operations/checkoutsclientconfirm.ts +92 -0
  1797. package/examples/models/operations/checkoutsclientget.ts +78 -0
  1798. package/examples/models/operations/checkoutsclientupdate.ts +92 -0
  1799. package/examples/models/operations/checkoutsget.ts +69 -0
  1800. package/examples/models/operations/checkoutslist.ts +478 -0
  1801. package/examples/models/operations/checkoutsupdate.ts +88 -0
  1802. package/examples/models/operations/customermetersget.ts +69 -0
  1803. package/examples/models/operations/customermeterslist.ts +475 -0
  1804. package/examples/models/operations/customerportalbenefitgrantsget.ts +147 -0
  1805. package/examples/models/operations/customerportalbenefitgrantslist.ts +605 -0
  1806. package/examples/models/operations/customerportalbenefitgrantsupdate.ts +177 -0
  1807. package/examples/models/operations/customerportalcustomermetersget.ts +153 -0
  1808. package/examples/models/operations/customerportalcustomermeterslist.ts +333 -0
  1809. package/examples/models/operations/customerportalcustomersaddpaymentmethod.ts +89 -0
  1810. package/examples/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
  1811. package/examples/models/operations/customerportalcustomersdeletepaymentmethod.ts +161 -0
  1812. package/examples/models/operations/customerportalcustomersessionintrospect.ts +89 -0
  1813. package/examples/models/operations/customerportalcustomersget.ts +79 -0
  1814. package/examples/models/operations/customerportalcustomerslistpaymentmethods.ts +257 -0
  1815. package/examples/models/operations/customerportalcustomersupdate.ts +80 -0
  1816. package/examples/models/operations/customerportaldownloadableslist.ts +327 -0
  1817. package/examples/models/operations/customerportallicensekeysget.ts +143 -0
  1818. package/examples/models/operations/customerportallicensekeyslist.ts +245 -0
  1819. package/examples/models/operations/customerportalordersconfirmretrypayment.ts +182 -0
  1820. package/examples/models/operations/customerportalordersgenerateinvoice.ts +159 -0
  1821. package/examples/models/operations/customerportalordersget.ts +140 -0
  1822. package/examples/models/operations/customerportalordersgetpaymentstatus.ts +162 -0
  1823. package/examples/models/operations/customerportalordersinvoice.ts +145 -0
  1824. package/examples/models/operations/customerportalorderslist.ts +512 -0
  1825. package/examples/models/operations/customerportalordersupdate.ts +161 -0
  1826. package/examples/models/operations/customerportalorganizationsget.ts +74 -0
  1827. package/examples/models/operations/customerportalseatsassignseat.ts +80 -0
  1828. package/examples/models/operations/customerportalseatslistclaimedsubscriptions.ts +89 -0
  1829. package/examples/models/operations/customerportalseatslistseats.ts +163 -0
  1830. package/examples/models/operations/customerportalseatsresendinvitation.ts +164 -0
  1831. package/examples/models/operations/customerportalseatsrevokeseat.ts +151 -0
  1832. package/examples/models/operations/customerportalsubscriptionscancel.ts +159 -0
  1833. package/examples/models/operations/customerportalsubscriptionsget.ts +147 -0
  1834. package/examples/models/operations/customerportalsubscriptionslist.ts +355 -0
  1835. package/examples/models/operations/customerportalsubscriptionsupdate.ts +177 -0
  1836. package/examples/models/operations/customerportalwalletsget.ts +140 -0
  1837. package/examples/models/operations/customerportalwalletslist.ts +237 -0
  1838. package/examples/models/operations/customersdelete.ts +69 -0
  1839. package/examples/models/operations/customersdeleteexternal.ts +80 -0
  1840. package/examples/models/operations/customerseatsgetclaiminfo.ts +77 -0
  1841. package/examples/models/operations/customerseatslistseats.ts +83 -0
  1842. package/examples/models/operations/customerseatsresendinvitation.ts +80 -0
  1843. package/examples/models/operations/customerseatsrevokeseat.ts +77 -0
  1844. package/examples/models/operations/customersessionscreate.ts +93 -0
  1845. package/examples/models/operations/customersexport.ts +146 -0
  1846. package/examples/models/operations/customersget.ts +69 -0
  1847. package/examples/models/operations/customersgetbalance.ts +69 -0
  1848. package/examples/models/operations/customersgetexternal.ts +80 -0
  1849. package/examples/models/operations/customersgetstate.ts +69 -0
  1850. package/examples/models/operations/customersgetstateexternal.ts +80 -0
  1851. package/examples/models/operations/customerslist.ts +275 -0
  1852. package/examples/models/operations/customersupdate.ts +88 -0
  1853. package/examples/models/operations/customersupdateexternal.ts +92 -0
  1854. package/examples/models/operations/customfieldsdelete.ts +69 -0
  1855. package/examples/models/operations/customfieldsget.ts +69 -0
  1856. package/examples/models/operations/customfieldslist.ts +341 -0
  1857. package/examples/models/operations/customfieldsupdate.ts +88 -0
  1858. package/examples/models/operations/discountsdelete.ts +69 -0
  1859. package/examples/models/operations/discountsget.ts +69 -0
  1860. package/examples/models/operations/discountslist.ts +255 -0
  1861. package/examples/models/operations/discountsupdate.ts +88 -0
  1862. package/examples/models/operations/eventsget.ts +69 -0
  1863. package/examples/models/operations/eventslist.ts +564 -0
  1864. package/examples/models/operations/eventslistnames.ts +484 -0
  1865. package/examples/models/operations/filesdelete.ts +66 -0
  1866. package/examples/models/operations/fileslist.ts +288 -0
  1867. package/examples/models/operations/filesupdate.ts +199 -0
  1868. package/examples/models/operations/filesuploaded.ts +201 -0
  1869. package/examples/models/operations/licensekeysget.ts +66 -0
  1870. package/examples/models/operations/licensekeysgetactivation.ts +81 -0
  1871. package/examples/models/operations/licensekeyslist.ts +298 -0
  1872. package/examples/models/operations/licensekeysupdate.ts +85 -0
  1873. package/examples/models/operations/metersget.ts +69 -0
  1874. package/examples/models/operations/meterslist.ts +273 -0
  1875. package/examples/models/operations/metersquantities.ts +296 -0
  1876. package/examples/models/operations/metersupdate.ts +88 -0
  1877. package/examples/models/operations/metricsget.ts +418 -0
  1878. package/examples/models/operations/oauth2authorize.ts +105 -0
  1879. package/examples/models/operations/oauth2clientsoauth2deleteclient.ts +81 -0
  1880. package/examples/models/operations/oauth2clientsoauth2getclient.ts +80 -0
  1881. package/examples/models/operations/oauth2clientsoauth2updateclient.ts +95 -0
  1882. package/examples/models/operations/oauth2requesttoken.ts +92 -0
  1883. package/examples/models/operations/oauth2userinfo.ts +82 -0
  1884. package/examples/models/operations/ordersexport.ts +214 -0
  1885. package/examples/models/operations/ordersgenerateinvoice.ts +71 -0
  1886. package/examples/models/operations/ordersget.ts +69 -0
  1887. package/examples/models/operations/ordersinvoice.ts +69 -0
  1888. package/examples/models/operations/orderslist.ts +611 -0
  1889. package/examples/models/operations/ordersupdate.ts +88 -0
  1890. package/examples/models/operations/organizationsget.ts +66 -0
  1891. package/examples/models/operations/organizationslist.ts +170 -0
  1892. package/examples/models/operations/organizationsupdate.ts +85 -0
  1893. package/examples/models/operations/paymentsget.ts +69 -0
  1894. package/examples/models/operations/paymentslist.ts +584 -0
  1895. package/examples/models/operations/productsget.ts +66 -0
  1896. package/examples/models/operations/productslist.ts +401 -0
  1897. package/examples/models/operations/productsupdate.ts +85 -0
  1898. package/examples/models/operations/productsupdatebenefits.ts +87 -0
  1899. package/examples/models/operations/refundslist.ts +500 -0
  1900. package/examples/models/operations/subscriptionscreate.ts +85 -0
  1901. package/examples/models/operations/subscriptionsexport.ts +129 -0
  1902. package/examples/models/operations/subscriptionsget.ts +69 -0
  1903. package/examples/models/operations/subscriptionslist.ts +505 -0
  1904. package/examples/models/operations/subscriptionsrevoke.ts +69 -0
  1905. package/examples/models/operations/subscriptionsupdate.ts +88 -0
  1906. package/examples/models/operations/walletsget.ts +69 -0
  1907. package/examples/models/operations/walletslist.ts +315 -0
  1908. package/examples/models/operations/walletstopup.ts +88 -0
  1909. package/examples/models/operations/webhooksdeletewebhookendpoint.ts +74 -0
  1910. package/examples/models/operations/webhooksgetwebhookendpoint.ts +72 -0
  1911. package/examples/models/operations/webhookslistwebhookdeliveries.ts +247 -0
  1912. package/examples/models/operations/webhookslistwebhookendpoints.ts +229 -0
  1913. package/examples/models/operations/webhooksredeliverwebhookevent.ts +74 -0
  1914. package/examples/models/operations/webhooksresetwebhookendpointsecret.ts +81 -0
  1915. package/examples/models/operations/webhooksupdatewebhookendpoint.ts +93 -0
  1916. package/examples/organizationsList.example.ts +28 -0
  1917. package/examples/package-lock.json +616 -0
  1918. package/examples/package.json +18 -0
  1919. package/examples/sdk/benefitgrants.ts +32 -0
  1920. package/examples/sdk/benefits.ts +148 -0
  1921. package/examples/sdk/chargefybenefitgrants.ts +91 -0
  1922. package/examples/sdk/chargefycustomermeters.ts +65 -0
  1923. package/examples/sdk/chargefycustomers.ts +162 -0
  1924. package/examples/sdk/chargefylicensekeys.ts +137 -0
  1925. package/examples/sdk/chargefyorders.ts +196 -0
  1926. package/examples/sdk/chargefyorganizations.ts +28 -0
  1927. package/examples/sdk/chargefysubscriptions.ts +117 -0
  1928. package/examples/sdk/chargefywallets.ts +65 -0
  1929. package/examples/sdk/checkoutlinks.ts +118 -0
  1930. package/examples/sdk/checkouts.ts +158 -0
  1931. package/examples/sdk/clients.ts +84 -0
  1932. package/examples/sdk/customermeters.ts +55 -0
  1933. package/examples/sdk/customerportal.ts +73 -0
  1934. package/examples/sdk/customers.ts +293 -0
  1935. package/examples/sdk/customerseats.ts +120 -0
  1936. package/examples/sdk/customersession.ts +30 -0
  1937. package/examples/sdk/customersessions.ts +30 -0
  1938. package/examples/sdk/customfields.ts +118 -0
  1939. package/examples/sdk/discounts.ts +118 -0
  1940. package/examples/sdk/downloadables.ts +35 -0
  1941. package/examples/sdk/events.ts +101 -0
  1942. package/examples/sdk/files.ts +124 -0
  1943. package/examples/sdk/licensekeys.ts +163 -0
  1944. package/examples/sdk/meters.ts +119 -0
  1945. package/examples/sdk/metrics.ts +51 -0
  1946. package/examples/sdk/oauth2.ts +105 -0
  1947. package/examples/sdk/orders.ts +140 -0
  1948. package/examples/sdk/organizations.ts +97 -0
  1949. package/examples/sdk/payments.ts +55 -0
  1950. package/examples/sdk/products.ts +118 -0
  1951. package/examples/sdk/refunds.ts +55 -0
  1952. package/examples/sdk/sdk.ts +157 -0
  1953. package/examples/sdk/seats.ts +126 -0
  1954. package/examples/sdk/subscriptions.ts +144 -0
  1955. package/examples/sdk/wallets.ts +78 -0
  1956. package/examples/sdk/webhooks.ts +190 -0
  1957. package/examples/test copy.ts +0 -0
  1958. package/examples/test.ts +0 -0
  1959. package/examples/types/async.ts +68 -0
  1960. package/examples/types/blobs.ts +32 -0
  1961. package/examples/types/constdatetime.ts +15 -0
  1962. package/examples/types/enums.ts +16 -0
  1963. package/examples/types/fp.ts +50 -0
  1964. package/examples/types/operations.ts +105 -0
  1965. package/examples/types/rfcdate.ts +54 -0
  1966. package/examples/types/streams.ts +21 -0
  1967. package/examples/types/webhooks.ts +7 -0
  1968. package/examples/webhooks copy.ts +138 -0
  1969. package/examples/webhooks.test copy.ts +116 -0
  1970. package/examples/webhooks.test.ts +116 -0
  1971. package/examples/webhooks.ts +138 -0
  1972. package/jest.config.cjs +5 -0
  1973. package/jsr.json +27 -0
  1974. package/package.json +93 -0
  1975. package/polar-js-main/.devcontainer/devcontainer.json +45 -0
  1976. package/polar-js-main/FUNCTIONS.md +89 -0
  1977. package/polar-js-main/RUNTIMES.md +48 -0
  1978. package/polar-js-main/examples/organizationsList.example.ts +28 -0
  1979. package/polar-js-main/examples/package-lock.json +616 -0
  1980. package/polar-js-main/examples/package.json +18 -0
  1981. package/polar-js-main/jsr.json +27 -0
  1982. package/polar-js-main/package-lock.json +5768 -0
  1983. package/polar-js-main/package.json +83 -0
  1984. package/polar-js-main/src/core.ts +13 -0
  1985. package/polar-js-main/src/funcs/benefitGrantsList.ts +261 -0
  1986. package/polar-js-main/src/funcs/benefitsCreate.ts +181 -0
  1987. package/polar-js-main/src/funcs/benefitsDelete.ts +204 -0
  1988. package/polar-js-main/src/funcs/benefitsGet.ts +195 -0
  1989. package/polar-js-main/src/funcs/benefitsGrants.ts +277 -0
  1990. package/polar-js-main/src/funcs/benefitsList.ts +270 -0
  1991. package/polar-js-main/src/funcs/benefitsUpdate.ts +196 -0
  1992. package/polar-js-main/src/funcs/checkoutLinksCreate.ts +181 -0
  1993. package/polar-js-main/src/funcs/checkoutLinksDelete.ts +192 -0
  1994. package/polar-js-main/src/funcs/checkoutLinksGet.ts +195 -0
  1995. package/polar-js-main/src/funcs/checkoutLinksList.ts +260 -0
  1996. package/polar-js-main/src/funcs/checkoutLinksUpdate.ts +198 -0
  1997. package/polar-js-main/src/funcs/checkoutsClientConfirm.ts +224 -0
  1998. package/polar-js-main/src/funcs/checkoutsClientGet.ts +195 -0
  1999. package/polar-js-main/src/funcs/checkoutsClientUpdate.ts +206 -0
  2000. package/polar-js-main/src/funcs/checkoutsCreate.ts +181 -0
  2001. package/polar-js-main/src/funcs/checkoutsGet.ts +195 -0
  2002. package/polar-js-main/src/funcs/checkoutsList.ts +263 -0
  2003. package/polar-js-main/src/funcs/checkoutsUpdate.ts +204 -0
  2004. package/polar-js-main/src/funcs/customFieldsCreate.ts +181 -0
  2005. package/polar-js-main/src/funcs/customFieldsDelete.ts +192 -0
  2006. package/polar-js-main/src/funcs/customFieldsGet.ts +195 -0
  2007. package/polar-js-main/src/funcs/customFieldsList.ts +261 -0
  2008. package/polar-js-main/src/funcs/customFieldsUpdate.ts +196 -0
  2009. package/polar-js-main/src/funcs/customerMetersGet.ts +195 -0
  2010. package/polar-js-main/src/funcs/customerMetersList.ts +262 -0
  2011. package/polar-js-main/src/funcs/customerPortalBenefitGrantsGet.ts +208 -0
  2012. package/polar-js-main/src/funcs/customerPortalBenefitGrantsList.ts +277 -0
  2013. package/polar-js-main/src/funcs/customerPortalBenefitGrantsUpdate.ts +219 -0
  2014. package/polar-js-main/src/funcs/customerPortalCustomerMetersGet.ts +206 -0
  2015. package/polar-js-main/src/funcs/customerPortalCustomerMetersList.ts +274 -0
  2016. package/polar-js-main/src/funcs/customerPortalCustomerSessionIntrospect.ts +157 -0
  2017. package/polar-js-main/src/funcs/customerPortalCustomersAddPaymentMethod.ts +191 -0
  2018. package/polar-js-main/src/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
  2019. package/polar-js-main/src/funcs/customerPortalCustomersDeletePaymentMethod.ts +215 -0
  2020. package/polar-js-main/src/funcs/customerPortalCustomersGet.ts +157 -0
  2021. package/polar-js-main/src/funcs/customerPortalCustomersListPaymentMethods.ts +275 -0
  2022. package/polar-js-main/src/funcs/customerPortalCustomersUpdate.ts +191 -0
  2023. package/polar-js-main/src/funcs/customerPortalDownloadablesList.ts +270 -0
  2024. package/polar-js-main/src/funcs/customerPortalLicenseKeysActivate.ts +194 -0
  2025. package/polar-js-main/src/funcs/customerPortalLicenseKeysDeactivate.ts +183 -0
  2026. package/polar-js-main/src/funcs/customerPortalLicenseKeysGet.ts +205 -0
  2027. package/polar-js-main/src/funcs/customerPortalLicenseKeysList.ts +287 -0
  2028. package/polar-js-main/src/funcs/customerPortalLicenseKeysValidate.ts +186 -0
  2029. package/polar-js-main/src/funcs/customerPortalOrdersConfirmRetryPayment.ts +221 -0
  2030. package/polar-js-main/src/funcs/customerPortalOrdersGenerateInvoice.ts +200 -0
  2031. package/polar-js-main/src/funcs/customerPortalOrdersGet.ts +205 -0
  2032. package/polar-js-main/src/funcs/customerPortalOrdersGetPaymentStatus.ts +208 -0
  2033. package/polar-js-main/src/funcs/customerPortalOrdersInvoice.ts +207 -0
  2034. package/polar-js-main/src/funcs/customerPortalOrdersList.ts +275 -0
  2035. package/polar-js-main/src/funcs/customerPortalOrdersUpdate.ts +208 -0
  2036. package/polar-js-main/src/funcs/customerPortalOrganizationsGet.ts +190 -0
  2037. package/polar-js-main/src/funcs/customerPortalSeatsAssignSeat.ts +189 -0
  2038. package/polar-js-main/src/funcs/customerPortalSeatsListClaimedSubscriptions.ts +158 -0
  2039. package/polar-js-main/src/funcs/customerPortalSeatsListSeats.ts +194 -0
  2040. package/polar-js-main/src/funcs/customerPortalSeatsResendInvitation.ts +198 -0
  2041. package/polar-js-main/src/funcs/customerPortalSeatsRevokeSeat.ts +195 -0
  2042. package/polar-js-main/src/funcs/customerPortalSubscriptionsCancel.ts +214 -0
  2043. package/polar-js-main/src/funcs/customerPortalSubscriptionsGet.ts +206 -0
  2044. package/polar-js-main/src/funcs/customerPortalSubscriptionsList.ts +275 -0
  2045. package/polar-js-main/src/funcs/customerPortalSubscriptionsUpdate.ts +217 -0
  2046. package/polar-js-main/src/funcs/customerPortalWalletsGet.ts +205 -0
  2047. package/polar-js-main/src/funcs/customerPortalWalletsList.ts +271 -0
  2048. package/polar-js-main/src/funcs/customerSeatsAssignSeat.ts +179 -0
  2049. package/polar-js-main/src/funcs/customerSeatsClaimSeat.ts +170 -0
  2050. package/polar-js-main/src/funcs/customerSeatsGetClaimInfo.ts +179 -0
  2051. package/polar-js-main/src/funcs/customerSeatsListSeats.ts +184 -0
  2052. package/polar-js-main/src/funcs/customerSeatsResendInvitation.ts +185 -0
  2053. package/polar-js-main/src/funcs/customerSeatsRevokeSeat.ts +185 -0
  2054. package/polar-js-main/src/funcs/customerSessionsCreate.ts +182 -0
  2055. package/polar-js-main/src/funcs/customersCreate.ts +181 -0
  2056. package/polar-js-main/src/funcs/customersDelete.ts +204 -0
  2057. package/polar-js-main/src/funcs/customersDeleteExternal.ts +194 -0
  2058. package/polar-js-main/src/funcs/customersExport.ts +182 -0
  2059. package/polar-js-main/src/funcs/customersGet.ts +195 -0
  2060. package/polar-js-main/src/funcs/customersGetBalance.ts +195 -0
  2061. package/polar-js-main/src/funcs/customersGetExternal.ts +195 -0
  2062. package/polar-js-main/src/funcs/customersGetState.ts +201 -0
  2063. package/polar-js-main/src/funcs/customersGetStateExternal.ts +203 -0
  2064. package/polar-js-main/src/funcs/customersList.ts +270 -0
  2065. package/polar-js-main/src/funcs/customersUpdate.ts +196 -0
  2066. package/polar-js-main/src/funcs/customersUpdateExternal.ts +198 -0
  2067. package/polar-js-main/src/funcs/discountsCreate.ts +181 -0
  2068. package/polar-js-main/src/funcs/discountsDelete.ts +192 -0
  2069. package/polar-js-main/src/funcs/discountsGet.ts +195 -0
  2070. package/polar-js-main/src/funcs/discountsList.ts +260 -0
  2071. package/polar-js-main/src/funcs/discountsUpdate.ts +196 -0
  2072. package/polar-js-main/src/funcs/eventsGet.ts +192 -0
  2073. package/polar-js-main/src/funcs/eventsIngest.ts +181 -0
  2074. package/polar-js-main/src/funcs/eventsList.ts +279 -0
  2075. package/polar-js-main/src/funcs/eventsListNames.ts +263 -0
  2076. package/polar-js-main/src/funcs/filesCreate.ts +181 -0
  2077. package/polar-js-main/src/funcs/filesDelete.ts +200 -0
  2078. package/polar-js-main/src/funcs/filesList.ts +259 -0
  2079. package/polar-js-main/src/funcs/filesUpdate.ts +202 -0
  2080. package/polar-js-main/src/funcs/filesUploaded.ts +204 -0
  2081. package/polar-js-main/src/funcs/licenseKeysActivate.ts +197 -0
  2082. package/polar-js-main/src/funcs/licenseKeysDeactivate.ts +186 -0
  2083. package/polar-js-main/src/funcs/licenseKeysGet.ts +203 -0
  2084. package/polar-js-main/src/funcs/licenseKeysGetActivation.ts +209 -0
  2085. package/polar-js-main/src/funcs/licenseKeysList.ts +277 -0
  2086. package/polar-js-main/src/funcs/licenseKeysUpdate.ts +204 -0
  2087. package/polar-js-main/src/funcs/licenseKeysValidate.ts +189 -0
  2088. package/polar-js-main/src/funcs/metersCreate.ts +178 -0
  2089. package/polar-js-main/src/funcs/metersGet.ts +192 -0
  2090. package/polar-js-main/src/funcs/metersList.ts +270 -0
  2091. package/polar-js-main/src/funcs/metersQuantities.ts +215 -0
  2092. package/polar-js-main/src/funcs/metersUpdate.ts +193 -0
  2093. package/polar-js-main/src/funcs/metricsGet.ts +194 -0
  2094. package/polar-js-main/src/funcs/metricsLimits.ts +147 -0
  2095. package/polar-js-main/src/funcs/oauth2Authorize.ts +142 -0
  2096. package/polar-js-main/src/funcs/oauth2ClientsCreate.ts +176 -0
  2097. package/polar-js-main/src/funcs/oauth2ClientsDelete.ts +183 -0
  2098. package/polar-js-main/src/funcs/oauth2ClientsGet.ts +182 -0
  2099. package/polar-js-main/src/funcs/oauth2ClientsUpdate.ts +186 -0
  2100. package/polar-js-main/src/funcs/oauth2Introspect.ts +164 -0
  2101. package/polar-js-main/src/funcs/oauth2Revoke.ts +164 -0
  2102. package/polar-js-main/src/funcs/oauth2Token.ts +164 -0
  2103. package/polar-js-main/src/funcs/oauth2Userinfo.ts +145 -0
  2104. package/polar-js-main/src/funcs/ordersExport.ts +183 -0
  2105. package/polar-js-main/src/funcs/ordersGenerateInvoice.ts +187 -0
  2106. package/polar-js-main/src/funcs/ordersGet.ts +192 -0
  2107. package/polar-js-main/src/funcs/ordersInvoice.ts +195 -0
  2108. package/polar-js-main/src/funcs/ordersList.ts +273 -0
  2109. package/polar-js-main/src/funcs/ordersUpdate.ts +193 -0
  2110. package/polar-js-main/src/funcs/organizationsCreate.ts +181 -0
  2111. package/polar-js-main/src/funcs/organizationsGet.ts +195 -0
  2112. package/polar-js-main/src/funcs/organizationsList.ts +259 -0
  2113. package/polar-js-main/src/funcs/organizationsUpdate.ts +206 -0
  2114. package/polar-js-main/src/funcs/paymentsGet.ts +195 -0
  2115. package/polar-js-main/src/funcs/paymentsList.ts +264 -0
  2116. package/polar-js-main/src/funcs/productsCreate.ts +181 -0
  2117. package/polar-js-main/src/funcs/productsGet.ts +195 -0
  2118. package/polar-js-main/src/funcs/productsList.ts +273 -0
  2119. package/polar-js-main/src/funcs/productsUpdate.ts +204 -0
  2120. package/polar-js-main/src/funcs/productsUpdateBenefits.ts +206 -0
  2121. package/polar-js-main/src/funcs/refundsCreate.ts +195 -0
  2122. package/polar-js-main/src/funcs/refundsList.ts +264 -0
  2123. package/polar-js-main/src/funcs/subscriptionsCreate.ts +187 -0
  2124. package/polar-js-main/src/funcs/subscriptionsExport.ts +182 -0
  2125. package/polar-js-main/src/funcs/subscriptionsGet.ts +195 -0
  2126. package/polar-js-main/src/funcs/subscriptionsList.ts +273 -0
  2127. package/polar-js-main/src/funcs/subscriptionsRevoke.ts +211 -0
  2128. package/polar-js-main/src/funcs/subscriptionsUpdate.ts +214 -0
  2129. package/polar-js-main/src/funcs/walletsGet.ts +192 -0
  2130. package/polar-js-main/src/funcs/walletsList.ts +260 -0
  2131. package/polar-js-main/src/funcs/walletsTopUp.ts +212 -0
  2132. package/polar-js-main/src/funcs/webhooksCreateWebhookEndpoint.ts +181 -0
  2133. package/polar-js-main/src/funcs/webhooksDeleteWebhookEndpoint.ts +192 -0
  2134. package/polar-js-main/src/funcs/webhooksGetWebhookEndpoint.ts +195 -0
  2135. package/polar-js-main/src/funcs/webhooksListWebhookDeliveries.ts +264 -0
  2136. package/polar-js-main/src/funcs/webhooksListWebhookEndpoints.ts +260 -0
  2137. package/polar-js-main/src/funcs/webhooksRedeliverWebhookEvent.ts +192 -0
  2138. package/polar-js-main/src/funcs/webhooksResetWebhookEndpointSecret.ts +196 -0
  2139. package/polar-js-main/src/funcs/webhooksUpdateWebhookEndpoint.ts +198 -0
  2140. package/polar-js-main/src/hooks/hooks.ts +132 -0
  2141. package/polar-js-main/src/hooks/registration.ts +14 -0
  2142. package/polar-js-main/src/hooks/types.ts +114 -0
  2143. package/polar-js-main/src/index.ts +9 -0
  2144. package/polar-js-main/src/lib/base64.ts +37 -0
  2145. package/polar-js-main/src/lib/config.ts +70 -0
  2146. package/polar-js-main/src/lib/dlv.ts +53 -0
  2147. package/polar-js-main/src/lib/encodings.ts +483 -0
  2148. package/polar-js-main/src/lib/env.ts +57 -0
  2149. package/polar-js-main/src/lib/files.ts +82 -0
  2150. package/polar-js-main/src/lib/http.ts +323 -0
  2151. package/polar-js-main/src/lib/is-plain-object.ts +43 -0
  2152. package/polar-js-main/src/lib/logger.ts +9 -0
  2153. package/polar-js-main/src/lib/matchers.ts +345 -0
  2154. package/polar-js-main/src/lib/primitives.ts +150 -0
  2155. package/polar-js-main/src/lib/retries.ts +218 -0
  2156. package/polar-js-main/src/lib/schemas.ts +91 -0
  2157. package/polar-js-main/src/lib/sdks.ts +407 -0
  2158. package/polar-js-main/src/lib/security.ts +264 -0
  2159. package/polar-js-main/src/lib/url.ts +33 -0
  2160. package/polar-js-main/src/models/components/address.ts +363 -0
  2161. package/polar-js-main/src/models/components/addressdict.ts +91 -0
  2162. package/polar-js-main/src/models/components/addressinput.ts +361 -0
  2163. package/polar-js-main/src/models/components/aggregationfunction.ts +37 -0
  2164. package/polar-js-main/src/models/components/attachedcustomfield.ts +107 -0
  2165. package/polar-js-main/src/models/components/attachedcustomfieldcreate.ts +88 -0
  2166. package/polar-js-main/src/models/components/authorizationcodetokenrequest.ts +99 -0
  2167. package/polar-js-main/src/models/components/authorizeorganization.ts +83 -0
  2168. package/polar-js-main/src/models/components/authorizeresponseorganization.ts +106 -0
  2169. package/polar-js-main/src/models/components/authorizeresponseuser.ts +100 -0
  2170. package/polar-js-main/src/models/components/authorizeuser.ts +79 -0
  2171. package/polar-js-main/src/models/components/benefit.ts +113 -0
  2172. package/polar-js-main/src/models/components/benefitcreate.ts +164 -0
  2173. package/polar-js-main/src/models/components/benefitcustom.ts +204 -0
  2174. package/polar-js-main/src/models/components/benefitcustomcreate.ts +184 -0
  2175. package/polar-js-main/src/models/components/benefitcustomcreateproperties.ts +71 -0
  2176. package/polar-js-main/src/models/components/benefitcustomproperties.ts +69 -0
  2177. package/polar-js-main/src/models/components/benefitcustomsubscriber.ts +221 -0
  2178. package/polar-js-main/src/models/components/benefitcustomsubscriberproperties.ts +72 -0
  2179. package/polar-js-main/src/models/components/benefitcustomupdate.ts +162 -0
  2180. package/polar-js-main/src/models/components/benefitcycledevent.ts +168 -0
  2181. package/polar-js-main/src/models/components/benefitdiscord.ts +208 -0
  2182. package/polar-js-main/src/models/components/benefitdiscordcreate.ts +181 -0
  2183. package/polar-js-main/src/models/components/benefitdiscordcreateproperties.ts +98 -0
  2184. package/polar-js-main/src/models/components/benefitdiscordproperties.ts +105 -0
  2185. package/polar-js-main/src/models/components/benefitdiscordsubscriber.ts +221 -0
  2186. package/polar-js-main/src/models/components/benefitdiscordsubscriberproperties.ts +85 -0
  2187. package/polar-js-main/src/models/components/benefitdiscordupdate.ts +164 -0
  2188. package/polar-js-main/src/models/components/benefitdownloadables.ts +204 -0
  2189. package/polar-js-main/src/models/components/benefitdownloadablescreate.ts +184 -0
  2190. package/polar-js-main/src/models/components/benefitdownloadablescreateproperties.ts +75 -0
  2191. package/polar-js-main/src/models/components/benefitdownloadablesproperties.ts +72 -0
  2192. package/polar-js-main/src/models/components/benefitdownloadablessubscriber.ts +224 -0
  2193. package/polar-js-main/src/models/components/benefitdownloadablessubscriberproperties.ts +86 -0
  2194. package/polar-js-main/src/models/components/benefitdownloadablesupdate.ts +170 -0
  2195. package/polar-js-main/src/models/components/benefitgithubrepository.ts +218 -0
  2196. package/polar-js-main/src/models/components/benefitgithubrepositorycreate.ts +190 -0
  2197. package/polar-js-main/src/models/components/benefitgithubrepositorycreateproperties.ts +149 -0
  2198. package/polar-js-main/src/models/components/benefitgithubrepositoryproperties.ts +135 -0
  2199. package/polar-js-main/src/models/components/benefitgithubrepositorysubscriber.ts +234 -0
  2200. package/polar-js-main/src/models/components/benefitgithubrepositorysubscriberproperties.ts +103 -0
  2201. package/polar-js-main/src/models/components/benefitgithubrepositoryupdate.ts +176 -0
  2202. package/polar-js-main/src/models/components/benefitgrant.ts +328 -0
  2203. package/polar-js-main/src/models/components/benefitgrantcustomproperties.ts +60 -0
  2204. package/polar-js-main/src/models/components/benefitgrantcustomwebhook.ts +236 -0
  2205. package/polar-js-main/src/models/components/benefitgrantdiscordproperties.ts +95 -0
  2206. package/polar-js-main/src/models/components/benefitgrantdiscordwebhook.ts +236 -0
  2207. package/polar-js-main/src/models/components/benefitgrantdownloadablesproperties.ts +71 -0
  2208. package/polar-js-main/src/models/components/benefitgrantdownloadableswebhook.ts +233 -0
  2209. package/polar-js-main/src/models/components/benefitgrantedevent.ts +168 -0
  2210. package/polar-js-main/src/models/components/benefitgranterror.ts +74 -0
  2211. package/polar-js-main/src/models/components/benefitgrantgithubrepositoryproperties.ts +140 -0
  2212. package/polar-js-main/src/models/components/benefitgrantgithubrepositorywebhook.ts +246 -0
  2213. package/polar-js-main/src/models/components/benefitgrantlicensekeysproperties.ts +84 -0
  2214. package/polar-js-main/src/models/components/benefitgrantlicensekeyswebhook.ts +233 -0
  2215. package/polar-js-main/src/models/components/benefitgrantmetadata.ts +92 -0
  2216. package/polar-js-main/src/models/components/benefitgrantmetercreditproperties.ts +90 -0
  2217. package/polar-js-main/src/models/components/benefitgrantmetercreditwebhook.ts +240 -0
  2218. package/polar-js-main/src/models/components/benefitgrantsortproperty.ts +39 -0
  2219. package/polar-js-main/src/models/components/benefitgrantwebhook.ts +120 -0
  2220. package/polar-js-main/src/models/components/benefitlicensekeyactivationcreateproperties.ts +92 -0
  2221. package/polar-js-main/src/models/components/benefitlicensekeyactivationproperties.ts +84 -0
  2222. package/polar-js-main/src/models/components/benefitlicensekeyexpirationproperties.ts +102 -0
  2223. package/polar-js-main/src/models/components/benefitlicensekeys.ts +202 -0
  2224. package/polar-js-main/src/models/components/benefitlicensekeyscreate.ts +182 -0
  2225. package/polar-js-main/src/models/components/benefitlicensekeyscreateproperties.ts +112 -0
  2226. package/polar-js-main/src/models/components/benefitlicensekeysproperties.ts +101 -0
  2227. package/polar-js-main/src/models/components/benefitlicensekeyssubscriber.ts +223 -0
  2228. package/polar-js-main/src/models/components/benefitlicensekeyssubscriberproperties.ts +105 -0
  2229. package/polar-js-main/src/models/components/benefitlicensekeysupdate.ts +168 -0
  2230. package/polar-js-main/src/models/components/benefitmetercredit.ts +212 -0
  2231. package/polar-js-main/src/models/components/benefitmetercreditcreate.ts +188 -0
  2232. package/polar-js-main/src/models/components/benefitmetercreditcreateproperties.ts +90 -0
  2233. package/polar-js-main/src/models/components/benefitmetercreditproperties.ts +88 -0
  2234. package/polar-js-main/src/models/components/benefitmetercreditsubscriber.ts +226 -0
  2235. package/polar-js-main/src/models/components/benefitmetercreditsubscriberproperties.ts +92 -0
  2236. package/polar-js-main/src/models/components/benefitmetercreditupdate.ts +168 -0
  2237. package/polar-js-main/src/models/components/benefitpublic.ts +131 -0
  2238. package/polar-js-main/src/models/components/benefitrevokedevent.ts +168 -0
  2239. package/polar-js-main/src/models/components/benefitsortproperty.ts +37 -0
  2240. package/polar-js-main/src/models/components/benefitsubscriberorganization.ts +141 -0
  2241. package/polar-js-main/src/models/components/benefittype.ts +35 -0
  2242. package/polar-js-main/src/models/components/benefitupdatedevent.ts +168 -0
  2243. package/polar-js-main/src/models/components/billingaddressfieldmode.ts +36 -0
  2244. package/polar-js-main/src/models/components/cardpayment.ts +203 -0
  2245. package/polar-js-main/src/models/components/cardpaymentmetadata.ts +79 -0
  2246. package/polar-js-main/src/models/components/checkout.ts +948 -0
  2247. package/polar-js-main/src/models/components/checkoutbillingaddressfields.ts +102 -0
  2248. package/polar-js-main/src/models/components/checkoutconfirmstripe.ts +267 -0
  2249. package/polar-js-main/src/models/components/checkoutcreate.ts +506 -0
  2250. package/polar-js-main/src/models/components/checkoutdiscountfixedonceforeverduration.ts +117 -0
  2251. package/polar-js-main/src/models/components/checkoutdiscountfixedrepeatduration.ts +127 -0
  2252. package/polar-js-main/src/models/components/checkoutdiscountpercentageonceforeverduration.ts +127 -0
  2253. package/polar-js-main/src/models/components/checkoutdiscountpercentagerepeatduration.ts +134 -0
  2254. package/polar-js-main/src/models/components/checkoutlink.ts +382 -0
  2255. package/polar-js-main/src/models/components/checkoutlinkcreate.ts +90 -0
  2256. package/polar-js-main/src/models/components/checkoutlinkcreateproduct.ts +241 -0
  2257. package/polar-js-main/src/models/components/checkoutlinkcreateproductprice.ts +246 -0
  2258. package/polar-js-main/src/models/components/checkoutlinkcreateproducts.ts +239 -0
  2259. package/polar-js-main/src/models/components/checkoutlinkproduct.ts +365 -0
  2260. package/polar-js-main/src/models/components/checkoutlinksortproperty.ts +41 -0
  2261. package/polar-js-main/src/models/components/checkoutlinkupdate.ts +219 -0
  2262. package/polar-js-main/src/models/components/checkoutorganization.ts +139 -0
  2263. package/polar-js-main/src/models/components/checkoutproduct.ts +297 -0
  2264. package/polar-js-main/src/models/components/checkoutpublic.ts +802 -0
  2265. package/polar-js-main/src/models/components/checkoutpublicconfirmed.ts +827 -0
  2266. package/polar-js-main/src/models/components/checkoutsortproperty.ts +37 -0
  2267. package/polar-js-main/src/models/components/checkoutstatus.ts +36 -0
  2268. package/polar-js-main/src/models/components/checkoutupdate.ts +485 -0
  2269. package/polar-js-main/src/models/components/checkoutupdatepublic.ts +258 -0
  2270. package/polar-js-main/src/models/components/costmetadatainput.ts +122 -0
  2271. package/polar-js-main/src/models/components/costmetadataoutput.ts +76 -0
  2272. package/polar-js-main/src/models/components/countaggregation.ts +66 -0
  2273. package/polar-js-main/src/models/components/customer.ts +284 -0
  2274. package/polar-js-main/src/models/components/customerbalance.ts +77 -0
  2275. package/polar-js-main/src/models/components/customerbenefitgrant.ts +120 -0
  2276. package/polar-js-main/src/models/components/customerbenefitgrantcustom.ts +178 -0
  2277. package/polar-js-main/src/models/components/customerbenefitgrantcustomupdate.ts +77 -0
  2278. package/polar-js-main/src/models/components/customerbenefitgrantdiscord.ts +180 -0
  2279. package/polar-js-main/src/models/components/customerbenefitgrantdiscordpropertiesupdate.ts +88 -0
  2280. package/polar-js-main/src/models/components/customerbenefitgrantdiscordupdate.ts +88 -0
  2281. package/polar-js-main/src/models/components/customerbenefitgrantdownloadables.ts +181 -0
  2282. package/polar-js-main/src/models/components/customerbenefitgrantdownloadablesupdate.ts +86 -0
  2283. package/polar-js-main/src/models/components/customerbenefitgrantgithubrepository.ts +183 -0
  2284. package/polar-js-main/src/models/components/customerbenefitgrantgithubrepositorypropertiesupdate.ts +89 -0
  2285. package/polar-js-main/src/models/components/customerbenefitgrantgithubrepositoryupdate.ts +97 -0
  2286. package/polar-js-main/src/models/components/customerbenefitgrantlicensekeys.ts +180 -0
  2287. package/polar-js-main/src/models/components/customerbenefitgrantlicensekeysupdate.ts +80 -0
  2288. package/polar-js-main/src/models/components/customerbenefitgrantmetercredit.ts +180 -0
  2289. package/polar-js-main/src/models/components/customerbenefitgrantmetercreditupdate.ts +80 -0
  2290. package/polar-js-main/src/models/components/customerbenefitgrantsortproperty.ts +39 -0
  2291. package/polar-js-main/src/models/components/customerbenefitgrantupdate.ts +178 -0
  2292. package/polar-js-main/src/models/components/customercancellationreason.ts +41 -0
  2293. package/polar-js-main/src/models/components/customercreate.ts +248 -0
  2294. package/polar-js-main/src/models/components/customercreatedevent.ts +168 -0
  2295. package/polar-js-main/src/models/components/customercreatedmetadata.ts +93 -0
  2296. package/polar-js-main/src/models/components/customercustomermeter.ts +149 -0
  2297. package/polar-js-main/src/models/components/customercustomermetermeter.ts +103 -0
  2298. package/polar-js-main/src/models/components/customercustomermetersortproperty.ts +48 -0
  2299. package/polar-js-main/src/models/components/customercustomersession.ts +81 -0
  2300. package/polar-js-main/src/models/components/customerdeletedevent.ts +168 -0
  2301. package/polar-js-main/src/models/components/customerdeletedmetadata.ts +93 -0
  2302. package/polar-js-main/src/models/components/customermeter.ts +161 -0
  2303. package/polar-js-main/src/models/components/customermetersortproperty.ts +51 -0
  2304. package/polar-js-main/src/models/components/customerorder.ts +341 -0
  2305. package/polar-js-main/src/models/components/customerorderconfirmpayment.ts +103 -0
  2306. package/polar-js-main/src/models/components/customerorderinvoice.ts +72 -0
  2307. package/polar-js-main/src/models/components/customerorderpaymentconfirmation.ts +97 -0
  2308. package/polar-js-main/src/models/components/customerorderpaymentstatus.ts +79 -0
  2309. package/polar-js-main/src/models/components/customerorderproduct.ts +308 -0
  2310. package/polar-js-main/src/models/components/customerordersortproperty.ts +43 -0
  2311. package/polar-js-main/src/models/components/customerordersubscription.ts +297 -0
  2312. package/polar-js-main/src/models/components/customerorderupdate.ts +96 -0
  2313. package/polar-js-main/src/models/components/customerorganization.ts +139 -0
  2314. package/polar-js-main/src/models/components/customerorganizationdata.ts +85 -0
  2315. package/polar-js-main/src/models/components/customerpaymentmethod.ts +78 -0
  2316. package/polar-js-main/src/models/components/customerpaymentmethodconfirm.ts +83 -0
  2317. package/polar-js-main/src/models/components/customerpaymentmethodcreate.ts +89 -0
  2318. package/polar-js-main/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
  2319. package/polar-js-main/src/models/components/customerpaymentmethodcreateresponse.ts +107 -0
  2320. package/polar-js-main/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
  2321. package/polar-js-main/src/models/components/customerportalcustomer.ts +213 -0
  2322. package/polar-js-main/src/models/components/customerportalcustomerupdate.ts +95 -0
  2323. package/polar-js-main/src/models/components/customerportaloauthaccount.ts +81 -0
  2324. package/polar-js-main/src/models/components/customerproduct.ts +297 -0
  2325. package/polar-js-main/src/models/components/customerseat.ts +180 -0
  2326. package/polar-js-main/src/models/components/customerseatclaimresponse.ts +91 -0
  2327. package/polar-js-main/src/models/components/customersession.ts +138 -0
  2328. package/polar-js-main/src/models/components/customersessioncustomerexternalidcreate.ts +101 -0
  2329. package/polar-js-main/src/models/components/customersessioncustomeridcreate.ts +92 -0
  2330. package/polar-js-main/src/models/components/customersortproperty.ts +37 -0
  2331. package/polar-js-main/src/models/components/customerstate.ts +339 -0
  2332. package/polar-js-main/src/models/components/customerstatebenefitgrant.ts +322 -0
  2333. package/polar-js-main/src/models/components/customerstatemeter.ts +133 -0
  2334. package/polar-js-main/src/models/components/customerstatesubscription.ts +450 -0
  2335. package/polar-js-main/src/models/components/customerstatesubscriptionmeter.ts +135 -0
  2336. package/polar-js-main/src/models/components/customersubscription.ts +418 -0
  2337. package/polar-js-main/src/models/components/customersubscriptioncancel.ts +118 -0
  2338. package/polar-js-main/src/models/components/customersubscriptionmeter.ts +140 -0
  2339. package/polar-js-main/src/models/components/customersubscriptionmetermeter.ts +105 -0
  2340. package/polar-js-main/src/models/components/customersubscriptionproduct.ts +313 -0
  2341. package/polar-js-main/src/models/components/customersubscriptionsortproperty.ts +43 -0
  2342. package/polar-js-main/src/models/components/customersubscriptionupdate.ts +90 -0
  2343. package/polar-js-main/src/models/components/customersubscriptionupdateproduct.ts +81 -0
  2344. package/polar-js-main/src/models/components/customersubscriptionupdateseats.ts +94 -0
  2345. package/polar-js-main/src/models/components/customerupdate.ts +239 -0
  2346. package/polar-js-main/src/models/components/customerupdatedevent.ts +168 -0
  2347. package/polar-js-main/src/models/components/customerupdatedfields.ts +155 -0
  2348. package/polar-js-main/src/models/components/customerupdatedmetadata.ts +105 -0
  2349. package/polar-js-main/src/models/components/customerupdateexternalid.ts +242 -0
  2350. package/polar-js-main/src/models/components/customerwallet.ts +122 -0
  2351. package/polar-js-main/src/models/components/customerwalletsortproperty.ts +37 -0
  2352. package/polar-js-main/src/models/components/customfield.ts +138 -0
  2353. package/polar-js-main/src/models/components/customfieldcheckbox.ts +200 -0
  2354. package/polar-js-main/src/models/components/customfieldcheckboxproperties.ts +89 -0
  2355. package/polar-js-main/src/models/components/customfieldcreate.ts +142 -0
  2356. package/polar-js-main/src/models/components/customfieldcreatecheckbox.ts +193 -0
  2357. package/polar-js-main/src/models/components/customfieldcreatedate.ts +188 -0
  2358. package/polar-js-main/src/models/components/customfieldcreatenumber.ts +192 -0
  2359. package/polar-js-main/src/models/components/customfieldcreateselect.ts +192 -0
  2360. package/polar-js-main/src/models/components/customfieldcreatetext.ts +188 -0
  2361. package/polar-js-main/src/models/components/customfielddate.ts +196 -0
  2362. package/polar-js-main/src/models/components/customfielddateproperties.ts +95 -0
  2363. package/polar-js-main/src/models/components/customfieldnumber.ts +198 -0
  2364. package/polar-js-main/src/models/components/customfieldnumberproperties.ts +97 -0
  2365. package/polar-js-main/src/models/components/customfieldselect.ts +198 -0
  2366. package/polar-js-main/src/models/components/customfieldselectoption.ts +70 -0
  2367. package/polar-js-main/src/models/components/customfieldselectproperties.ts +99 -0
  2368. package/polar-js-main/src/models/components/customfieldsortproperty.ts +41 -0
  2369. package/polar-js-main/src/models/components/customfieldtext.ts +196 -0
  2370. package/polar-js-main/src/models/components/customfieldtextproperties.ts +103 -0
  2371. package/polar-js-main/src/models/components/customfieldtype.ts +36 -0
  2372. package/polar-js-main/src/models/components/customfieldupdate.ts +142 -0
  2373. package/polar-js-main/src/models/components/customfieldupdatecheckbox.ts +173 -0
  2374. package/polar-js-main/src/models/components/customfieldupdatedate.ts +166 -0
  2375. package/polar-js-main/src/models/components/customfieldupdatenumber.ts +170 -0
  2376. package/polar-js-main/src/models/components/customfieldupdateselect.ts +170 -0
  2377. package/polar-js-main/src/models/components/customfieldupdatetext.ts +166 -0
  2378. package/polar-js-main/src/models/components/discount.ts +96 -0
  2379. package/polar-js-main/src/models/components/discountcreate.ts +96 -0
  2380. package/polar-js-main/src/models/components/discountduration.ts +34 -0
  2381. package/polar-js-main/src/models/components/discountfixedonceforeverduration.ts +277 -0
  2382. package/polar-js-main/src/models/components/discountfixedonceforeverdurationbase.ts +269 -0
  2383. package/polar-js-main/src/models/components/discountfixedonceforeverdurationcreate.ts +263 -0
  2384. package/polar-js-main/src/models/components/discountfixedrepeatduration.ts +280 -0
  2385. package/polar-js-main/src/models/components/discountfixedrepeatdurationbase.ts +270 -0
  2386. package/polar-js-main/src/models/components/discountfixedrepeatdurationcreate.ts +275 -0
  2387. package/polar-js-main/src/models/components/discountpercentageonceforeverduration.ts +283 -0
  2388. package/polar-js-main/src/models/components/discountpercentageonceforeverdurationbase.ts +278 -0
  2389. package/polar-js-main/src/models/components/discountpercentageonceforeverdurationcreate.ts +270 -0
  2390. package/polar-js-main/src/models/components/discountpercentagerepeatduration.ts +287 -0
  2391. package/polar-js-main/src/models/components/discountpercentagerepeatdurationbase.ts +276 -0
  2392. package/polar-js-main/src/models/components/discountpercentagerepeatdurationcreate.ts +280 -0
  2393. package/polar-js-main/src/models/components/discountproduct.ts +246 -0
  2394. package/polar-js-main/src/models/components/discountsortproperty.ts +39 -0
  2395. package/polar-js-main/src/models/components/discounttype.ts +31 -0
  2396. package/polar-js-main/src/models/components/discountupdate.ts +229 -0
  2397. package/polar-js-main/src/models/components/downloadablefilecreate.ts +116 -0
  2398. package/polar-js-main/src/models/components/downloadablefileread.ts +161 -0
  2399. package/polar-js-main/src/models/components/downloadableread.ts +89 -0
  2400. package/polar-js-main/src/models/components/event.ts +63 -0
  2401. package/polar-js-main/src/models/components/eventcreatecustomer.ts +130 -0
  2402. package/polar-js-main/src/models/components/eventcreateexternalcustomer.ts +132 -0
  2403. package/polar-js-main/src/models/components/eventmetadatainput.ts +96 -0
  2404. package/polar-js-main/src/models/components/eventmetadataoutput.ts +96 -0
  2405. package/polar-js-main/src/models/components/eventname.ts +106 -0
  2406. package/polar-js-main/src/models/components/eventnamessortproperty.ts +39 -0
  2407. package/polar-js-main/src/models/components/eventsingest.ts +140 -0
  2408. package/polar-js-main/src/models/components/eventsingestresponse.ts +76 -0
  2409. package/polar-js-main/src/models/components/eventsortproperty.ts +33 -0
  2410. package/polar-js-main/src/models/components/eventsource.ts +31 -0
  2411. package/polar-js-main/src/models/components/existingproductprice.ts +73 -0
  2412. package/polar-js-main/src/models/components/filecreate.ts +110 -0
  2413. package/polar-js-main/src/models/components/filedownload.ts +163 -0
  2414. package/polar-js-main/src/models/components/filepatch.ts +66 -0
  2415. package/polar-js-main/src/models/components/fileservicetypes.ts +34 -0
  2416. package/polar-js-main/src/models/components/fileupload.ts +163 -0
  2417. package/polar-js-main/src/models/components/fileuploadcompleted.ts +80 -0
  2418. package/polar-js-main/src/models/components/filter.ts +121 -0
  2419. package/polar-js-main/src/models/components/filterclause.ts +118 -0
  2420. package/polar-js-main/src/models/components/filterconjunction.ts +33 -0
  2421. package/polar-js-main/src/models/components/filteroperator.ts +39 -0
  2422. package/polar-js-main/src/models/components/genericpayment.ts +188 -0
  2423. package/polar-js-main/src/models/components/introspecttokenrequest.ts +125 -0
  2424. package/polar-js-main/src/models/components/introspecttokenresponse.ts +146 -0
  2425. package/polar-js-main/src/models/components/legacyrecurringproductprice.ts +116 -0
  2426. package/polar-js-main/src/models/components/legacyrecurringproductpricecustom.ts +188 -0
  2427. package/polar-js-main/src/models/components/legacyrecurringproductpricefixed.ts +169 -0
  2428. package/polar-js-main/src/models/components/legacyrecurringproductpricefree.ts +151 -0
  2429. package/polar-js-main/src/models/components/licensekeyactivate.ts +239 -0
  2430. package/polar-js-main/src/models/components/licensekeyactivationbase.ts +145 -0
  2431. package/polar-js-main/src/models/components/licensekeyactivationread.ts +173 -0
  2432. package/polar-js-main/src/models/components/licensekeycustomer.ts +293 -0
  2433. package/polar-js-main/src/models/components/licensekeydeactivate.ts +85 -0
  2434. package/polar-js-main/src/models/components/licensekeyread.ts +178 -0
  2435. package/polar-js-main/src/models/components/licensekeystatus.ts +34 -0
  2436. package/polar-js-main/src/models/components/licensekeyupdate.ts +102 -0
  2437. package/polar-js-main/src/models/components/licensekeyvalidate.ts +172 -0
  2438. package/polar-js-main/src/models/components/licensekeywithactivations.ts +192 -0
  2439. package/polar-js-main/src/models/components/listresource.ts +78 -0
  2440. package/polar-js-main/src/models/components/listresourcebenefit.ts +82 -0
  2441. package/polar-js-main/src/models/components/listresourcebenefitgrant.ts +82 -0
  2442. package/polar-js-main/src/models/components/listresourcecheckout.ts +82 -0
  2443. package/polar-js-main/src/models/components/listresourcecheckoutlink.ts +82 -0
  2444. package/polar-js-main/src/models/components/listresourcecustomer.ts +82 -0
  2445. package/polar-js-main/src/models/components/listresourcecustomerbenefitgrant.ts +84 -0
  2446. package/polar-js-main/src/models/components/listresourcecustomercustomermeter.ts +85 -0
  2447. package/polar-js-main/src/models/components/listresourcecustomermeter.ts +82 -0
  2448. package/polar-js-main/src/models/components/listresourcecustomerorder.ts +82 -0
  2449. package/polar-js-main/src/models/components/listresourcecustomerpaymentmethod.ts +85 -0
  2450. package/polar-js-main/src/models/components/listresourcecustomersubscription.ts +84 -0
  2451. package/polar-js-main/src/models/components/listresourcecustomerwallet.ts +82 -0
  2452. package/polar-js-main/src/models/components/listresourcecustomfield.ts +82 -0
  2453. package/polar-js-main/src/models/components/listresourcediscount.ts +82 -0
  2454. package/polar-js-main/src/models/components/listresourcedownloadableread.ts +84 -0
  2455. package/polar-js-main/src/models/components/listresourceevent.ts +82 -0
  2456. package/polar-js-main/src/models/components/listresourceeventname.ts +82 -0
  2457. package/polar-js-main/src/models/components/listresourcefileread.ts +222 -0
  2458. package/polar-js-main/src/models/components/listresourcelicensekeyread.ts +82 -0
  2459. package/polar-js-main/src/models/components/listresourcemeter.ts +82 -0
  2460. package/polar-js-main/src/models/components/listresourceorder.ts +82 -0
  2461. package/polar-js-main/src/models/components/listresourceorganization.ts +82 -0
  2462. package/polar-js-main/src/models/components/listresourceproduct.ts +82 -0
  2463. package/polar-js-main/src/models/components/listresourcerefund.ts +82 -0
  2464. package/polar-js-main/src/models/components/listresourcesubscription.ts +82 -0
  2465. package/polar-js-main/src/models/components/listresourcewallet.ts +82 -0
  2466. package/polar-js-main/src/models/components/listresourcewebhookdelivery.ts +84 -0
  2467. package/polar-js-main/src/models/components/listresourcewebhookendpoint.ts +84 -0
  2468. package/polar-js-main/src/models/components/llmmetadata.ts +129 -0
  2469. package/polar-js-main/src/models/components/meter.ts +380 -0
  2470. package/polar-js-main/src/models/components/metercreate.ts +354 -0
  2471. package/polar-js-main/src/models/components/metercreditedmetadata.ts +83 -0
  2472. package/polar-js-main/src/models/components/metercreditevent.ts +168 -0
  2473. package/polar-js-main/src/models/components/meterquantities.ts +77 -0
  2474. package/polar-js-main/src/models/components/meterquantity.ts +72 -0
  2475. package/polar-js-main/src/models/components/meterresetevent.ts +166 -0
  2476. package/polar-js-main/src/models/components/meterresetmetadata.ts +75 -0
  2477. package/polar-js-main/src/models/components/metersortproperty.ts +35 -0
  2478. package/polar-js-main/src/models/components/meterupdate.ts +374 -0
  2479. package/polar-js-main/src/models/components/metric.ts +90 -0
  2480. package/polar-js-main/src/models/components/metricperiod.ts +2298 -0
  2481. package/polar-js-main/src/models/components/metrics.ts +425 -0
  2482. package/polar-js-main/src/models/components/metricsintervallimit.ts +81 -0
  2483. package/polar-js-main/src/models/components/metricsintervalslimits.ts +106 -0
  2484. package/polar-js-main/src/models/components/metricslimits.ts +91 -0
  2485. package/polar-js-main/src/models/components/metricsresponse.ts +96 -0
  2486. package/polar-js-main/src/models/components/metricstotals.ts +2538 -0
  2487. package/polar-js-main/src/models/components/metrictype.ts +33 -0
  2488. package/polar-js-main/src/models/components/oauth2clientconfiguration.ts +202 -0
  2489. package/polar-js-main/src/models/components/oauth2clientconfigurationupdate.ts +224 -0
  2490. package/polar-js-main/src/models/components/oauth2clientpublic.ts +125 -0
  2491. package/polar-js-main/src/models/components/order.ts +608 -0
  2492. package/polar-js-main/src/models/components/orderbillingreason.ts +35 -0
  2493. package/polar-js-main/src/models/components/ordercustomer.ts +285 -0
  2494. package/polar-js-main/src/models/components/orderinvoice.ts +68 -0
  2495. package/polar-js-main/src/models/components/orderitemschema.ts +136 -0
  2496. package/polar-js-main/src/models/components/orderpaidevent.ts +164 -0
  2497. package/polar-js-main/src/models/components/orderpaidmetadata.ts +87 -0
  2498. package/polar-js-main/src/models/components/orderproduct.ts +237 -0
  2499. package/polar-js-main/src/models/components/orderrefundedevent.ts +168 -0
  2500. package/polar-js-main/src/models/components/orderrefundedmetadata.ts +89 -0
  2501. package/polar-js-main/src/models/components/ordersortproperty.ts +49 -0
  2502. package/polar-js-main/src/models/components/orderstatus.ts +33 -0
  2503. package/polar-js-main/src/models/components/ordersubscription.ts +359 -0
  2504. package/polar-js-main/src/models/components/orderupdate.ts +92 -0
  2505. package/polar-js-main/src/models/components/organization.ts +233 -0
  2506. package/polar-js-main/src/models/components/organizationavatarfilecreate.ts +124 -0
  2507. package/polar-js-main/src/models/components/organizationavatarfileread.ts +167 -0
  2508. package/polar-js-main/src/models/components/organizationcreate.ts +195 -0
  2509. package/polar-js-main/src/models/components/organizationcustomeremailsettings.ts +120 -0
  2510. package/polar-js-main/src/models/components/organizationdetails.ts +168 -0
  2511. package/polar-js-main/src/models/components/organizationfeaturesettings.ts +107 -0
  2512. package/polar-js-main/src/models/components/organizationnotificationsettings.ts +83 -0
  2513. package/polar-js-main/src/models/components/organizationsociallink.ts +78 -0
  2514. package/polar-js-main/src/models/components/organizationsocialplatforms.ts +41 -0
  2515. package/polar-js-main/src/models/components/organizationsortproperty.ts +43 -0
  2516. package/polar-js-main/src/models/components/organizationstatus.ts +37 -0
  2517. package/polar-js-main/src/models/components/organizationsubscriptionsettings.ts +100 -0
  2518. package/polar-js-main/src/models/components/organizationupdate.ts +191 -0
  2519. package/polar-js-main/src/models/components/pagination.ts +77 -0
  2520. package/polar-js-main/src/models/components/payment.ts +63 -0
  2521. package/polar-js-main/src/models/components/paymentmethodcard.ts +127 -0
  2522. package/polar-js-main/src/models/components/paymentmethodcardmetadata.ts +93 -0
  2523. package/polar-js-main/src/models/components/paymentmethodgeneric.ts +115 -0
  2524. package/polar-js-main/src/models/components/paymentprocessor.ts +32 -0
  2525. package/polar-js-main/src/models/components/paymentsortproperty.ts +39 -0
  2526. package/polar-js-main/src/models/components/paymentstatus.ts +34 -0
  2527. package/polar-js-main/src/models/components/product.ts +358 -0
  2528. package/polar-js-main/src/models/components/productbenefitsupdate.ts +72 -0
  2529. package/polar-js-main/src/models/components/productbillingtype.ts +33 -0
  2530. package/polar-js-main/src/models/components/productcreate.ts +74 -0
  2531. package/polar-js-main/src/models/components/productcreateonetime.ts +432 -0
  2532. package/polar-js-main/src/models/components/productcreaterecurring.ts +459 -0
  2533. package/polar-js-main/src/models/components/productmediafilecreate.ts +122 -0
  2534. package/polar-js-main/src/models/components/productmediafileread.ts +167 -0
  2535. package/polar-js-main/src/models/components/productprice.ts +146 -0
  2536. package/polar-js-main/src/models/components/productpricecustom.ts +182 -0
  2537. package/polar-js-main/src/models/components/productpricecustomcreate.ts +114 -0
  2538. package/polar-js-main/src/models/components/productpricefixed.ts +164 -0
  2539. package/polar-js-main/src/models/components/productpricefixedcreate.ts +96 -0
  2540. package/polar-js-main/src/models/components/productpricefree.ts +146 -0
  2541. package/polar-js-main/src/models/components/productpricefreecreate.ts +78 -0
  2542. package/polar-js-main/src/models/components/productpricemeter.ts +79 -0
  2543. package/polar-js-main/src/models/components/productpricemeteredunit.ts +195 -0
  2544. package/polar-js-main/src/models/components/productpricemeteredunitcreate.ts +165 -0
  2545. package/polar-js-main/src/models/components/productpriceseatbased.ts +170 -0
  2546. package/polar-js-main/src/models/components/productpriceseatbasedcreate.ts +104 -0
  2547. package/polar-js-main/src/models/components/productpriceseattier.ts +99 -0
  2548. package/polar-js-main/src/models/components/productpriceseattiers.ts +78 -0
  2549. package/polar-js-main/src/models/components/productpricetype.ts +33 -0
  2550. package/polar-js-main/src/models/components/productsortproperty.ts +39 -0
  2551. package/polar-js-main/src/models/components/productupdate.ts +589 -0
  2552. package/polar-js-main/src/models/components/propertyaggregation.ts +99 -0
  2553. package/polar-js-main/src/models/components/refreshtokenrequest.ts +93 -0
  2554. package/polar-js-main/src/models/components/refund.ts +207 -0
  2555. package/polar-js-main/src/models/components/refundcreate.ts +183 -0
  2556. package/polar-js-main/src/models/components/refundreason.ts +35 -0
  2557. package/polar-js-main/src/models/components/refundsortproperty.ts +35 -0
  2558. package/polar-js-main/src/models/components/refundstatus.ts +33 -0
  2559. package/polar-js-main/src/models/components/revoketokenrequest.ts +119 -0
  2560. package/polar-js-main/src/models/components/revoketokenresponse.ts +58 -0
  2561. package/polar-js-main/src/models/components/s3downloadurl.ts +79 -0
  2562. package/polar-js-main/src/models/components/s3filecreatemultipart.ts +72 -0
  2563. package/polar-js-main/src/models/components/s3filecreatepart.ts +91 -0
  2564. package/polar-js-main/src/models/components/s3fileuploadcompletedpart.ts +85 -0
  2565. package/polar-js-main/src/models/components/s3fileuploadmultipart.ts +80 -0
  2566. package/polar-js-main/src/models/components/s3fileuploadpart.ts +105 -0
  2567. package/polar-js-main/src/models/components/scope.ts +91 -0
  2568. package/polar-js-main/src/models/components/seatassign.ts +133 -0
  2569. package/polar-js-main/src/models/components/seatclaim.ts +74 -0
  2570. package/polar-js-main/src/models/components/seatclaiminfo.ts +125 -0
  2571. package/polar-js-main/src/models/components/seatslist.ts +96 -0
  2572. package/polar-js-main/src/models/components/seatstatus.ts +32 -0
  2573. package/polar-js-main/src/models/components/security.ts +71 -0
  2574. package/polar-js-main/src/models/components/subscription.ts +679 -0
  2575. package/polar-js-main/src/models/components/subscriptioncancel.ts +137 -0
  2576. package/polar-js-main/src/models/components/subscriptioncreatecustomer.ts +175 -0
  2577. package/polar-js-main/src/models/components/subscriptioncreateexternalcustomer.ts +185 -0
  2578. package/polar-js-main/src/models/components/subscriptioncustomer.ts +288 -0
  2579. package/polar-js-main/src/models/components/subscriptioncycledevent.ts +168 -0
  2580. package/polar-js-main/src/models/components/subscriptioncycledmetadata.ts +75 -0
  2581. package/polar-js-main/src/models/components/subscriptionmeter.ts +143 -0
  2582. package/polar-js-main/src/models/components/subscriptionproductupdatedevent.ts +170 -0
  2583. package/polar-js-main/src/models/components/subscriptionproductupdatedmetadata.ts +91 -0
  2584. package/polar-js-main/src/models/components/subscriptionprorationbehavior.ts +35 -0
  2585. package/polar-js-main/src/models/components/subscriptionrecurringinterval.ts +37 -0
  2586. package/polar-js-main/src/models/components/subscriptionrevoke.ts +131 -0
  2587. package/polar-js-main/src/models/components/subscriptionrevokedevent.ts +168 -0
  2588. package/polar-js-main/src/models/components/subscriptionrevokedmetadata.ts +77 -0
  2589. package/polar-js-main/src/models/components/subscriptionslist.ts +80 -0
  2590. package/polar-js-main/src/models/components/subscriptionsortproperty.ts +47 -0
  2591. package/polar-js-main/src/models/components/subscriptionstatus.ts +38 -0
  2592. package/polar-js-main/src/models/components/subscriptionupdate.ts +120 -0
  2593. package/polar-js-main/src/models/components/subscriptionupdatediscount.ts +78 -0
  2594. package/polar-js-main/src/models/components/subscriptionupdateproduct.ts +94 -0
  2595. package/polar-js-main/src/models/components/subscriptionupdateseats.ts +92 -0
  2596. package/polar-js-main/src/models/components/subscriptionupdatetrial.ts +78 -0
  2597. package/polar-js-main/src/models/components/subtype.ts +31 -0
  2598. package/polar-js-main/src/models/components/systemevent.ts +310 -0
  2599. package/polar-js-main/src/models/components/taxidformat.ts +117 -0
  2600. package/polar-js-main/src/models/components/timeinterval.ts +34 -0
  2601. package/polar-js-main/src/models/components/tokenresponse.ts +99 -0
  2602. package/polar-js-main/src/models/components/trialinterval.ts +35 -0
  2603. package/polar-js-main/src/models/components/uniqueaggregation.ts +70 -0
  2604. package/polar-js-main/src/models/components/userevent.ts +164 -0
  2605. package/polar-js-main/src/models/components/userinfoorganization.ts +70 -0
  2606. package/polar-js-main/src/models/components/userinfouser.ts +83 -0
  2607. package/polar-js-main/src/models/components/validatedlicensekey.ts +192 -0
  2608. package/polar-js-main/src/models/components/validationerror.ts +113 -0
  2609. package/polar-js-main/src/models/components/wallet.ts +121 -0
  2610. package/polar-js-main/src/models/components/walletsortproperty.ts +35 -0
  2611. package/polar-js-main/src/models/components/wallettopupcreate.ts +79 -0
  2612. package/polar-js-main/src/models/components/webhookbenefitcreatedpayload.ts +89 -0
  2613. package/polar-js-main/src/models/components/webhookbenefitgrantcreatedpayload.ts +90 -0
  2614. package/polar-js-main/src/models/components/webhookbenefitgrantcycledpayload.ts +90 -0
  2615. package/polar-js-main/src/models/components/webhookbenefitgrantrevokedpayload.ts +90 -0
  2616. package/polar-js-main/src/models/components/webhookbenefitgrantupdatedpayload.ts +90 -0
  2617. package/polar-js-main/src/models/components/webhookbenefitupdatedpayload.ts +89 -0
  2618. package/polar-js-main/src/models/components/webhookcheckoutcreatedpayload.ts +92 -0
  2619. package/polar-js-main/src/models/components/webhookcheckoutupdatedpayload.ts +92 -0
  2620. package/polar-js-main/src/models/components/webhookcustomercreatedpayload.ts +97 -0
  2621. package/polar-js-main/src/models/components/webhookcustomerdeletedpayload.ts +92 -0
  2622. package/polar-js-main/src/models/components/webhookcustomerseatassignedpayload.ts +92 -0
  2623. package/polar-js-main/src/models/components/webhookcustomerseatclaimedpayload.ts +90 -0
  2624. package/polar-js-main/src/models/components/webhookcustomerseatrevokedpayload.ts +90 -0
  2625. package/polar-js-main/src/models/components/webhookcustomerstatechangedpayload.ts +106 -0
  2626. package/polar-js-main/src/models/components/webhookcustomerupdatedpayload.ts +96 -0
  2627. package/polar-js-main/src/models/components/webhookdelivery.ts +143 -0
  2628. package/polar-js-main/src/models/components/webhookendpoint.ts +148 -0
  2629. package/polar-js-main/src/models/components/webhookendpointcreate.ts +116 -0
  2630. package/polar-js-main/src/models/components/webhookendpointupdate.ts +101 -0
  2631. package/polar-js-main/src/models/components/webhookevent.ts +144 -0
  2632. package/polar-js-main/src/models/components/webhookeventtype.ts +61 -0
  2633. package/polar-js-main/src/models/components/webhookformat.ts +34 -0
  2634. package/polar-js-main/src/models/components/webhookordercreatedpayload.ts +96 -0
  2635. package/polar-js-main/src/models/components/webhookorderpaidpayload.ts +89 -0
  2636. package/polar-js-main/src/models/components/webhookorderrefundedpayload.ts +89 -0
  2637. package/polar-js-main/src/models/components/webhookorderupdatedpayload.ts +92 -0
  2638. package/polar-js-main/src/models/components/webhookorganizationupdatedpayload.ts +90 -0
  2639. package/polar-js-main/src/models/components/webhookproductcreatedpayload.ts +92 -0
  2640. package/polar-js-main/src/models/components/webhookproductupdatedpayload.ts +92 -0
  2641. package/polar-js-main/src/models/components/webhookrefundcreatedpayload.ts +89 -0
  2642. package/polar-js-main/src/models/components/webhookrefundupdatedpayload.ts +89 -0
  2643. package/polar-js-main/src/models/components/webhooksubscriptionactivepayload.ts +90 -0
  2644. package/polar-js-main/src/models/components/webhooksubscriptioncanceledpayload.ts +92 -0
  2645. package/polar-js-main/src/models/components/webhooksubscriptioncreatedpayload.ts +92 -0
  2646. package/polar-js-main/src/models/components/webhooksubscriptionrevokedpayload.ts +91 -0
  2647. package/polar-js-main/src/models/components/webhooksubscriptionuncanceledpayload.ts +92 -0
  2648. package/polar-js-main/src/models/components/webhooksubscriptionupdatedpayload.ts +94 -0
  2649. package/polar-js-main/src/models/components/webtokenrequest.ts +133 -0
  2650. package/polar-js-main/src/models/errors/alreadyactivesubscriptionerror.ts +85 -0
  2651. package/polar-js-main/src/models/errors/alreadycanceledsubscription.ts +85 -0
  2652. package/polar-js-main/src/models/errors/checkoutforbiddenerror.ts +90 -0
  2653. package/polar-js-main/src/models/errors/customernotready.ts +85 -0
  2654. package/polar-js-main/src/models/errors/customerportalordersgenerateinvoice.ts +97 -0
  2655. package/polar-js-main/src/models/errors/expiredcheckouterror.ts +85 -0
  2656. package/polar-js-main/src/models/errors/httpclienterrors.ts +62 -0
  2657. package/polar-js-main/src/models/errors/httpvalidationerror.ts +85 -0
  2658. package/polar-js-main/src/models/errors/missinginvoicebillingdetails.ts +85 -0
  2659. package/polar-js-main/src/models/errors/missingpaymentmethoderror.ts +85 -0
  2660. package/polar-js-main/src/models/errors/notopencheckout.ts +85 -0
  2661. package/polar-js-main/src/models/errors/notpaidorder.ts +85 -0
  2662. package/polar-js-main/src/models/errors/notpermitted.ts +85 -0
  2663. package/polar-js-main/src/models/errors/ordernoteligibleforretry.ts +85 -0
  2664. package/polar-js-main/src/models/errors/ordersgenerateinvoice.ts +97 -0
  2665. package/polar-js-main/src/models/errors/paymentalreadyinprogress.ts +85 -0
  2666. package/polar-js-main/src/models/errors/paymenterror.ts +85 -0
  2667. package/polar-js-main/src/models/errors/paymentintentfailederror.ts +85 -0
  2668. package/polar-js-main/src/models/errors/paymentmethodinusebyactivesubscription.ts +87 -0
  2669. package/polar-js-main/src/models/errors/paymentnotready.ts +85 -0
  2670. package/polar-js-main/src/models/errors/polarerror.ts +35 -0
  2671. package/polar-js-main/src/models/errors/refundamounttoohigh.ts +85 -0
  2672. package/polar-js-main/src/models/errors/refundedalready.ts +85 -0
  2673. package/polar-js-main/src/models/errors/resourcenotfound.ts +85 -0
  2674. package/polar-js-main/src/models/errors/responsevalidationerror.ts +50 -0
  2675. package/polar-js-main/src/models/errors/sdkerror.ts +40 -0
  2676. package/polar-js-main/src/models/errors/sdkvalidationerror.ts +109 -0
  2677. package/polar-js-main/src/models/errors/subscriptionlocked.ts +85 -0
  2678. package/polar-js-main/src/models/errors/unauthorized.ts +85 -0
  2679. package/polar-js-main/src/models/operations/benefitgrantslist.ts +340 -0
  2680. package/polar-js-main/src/models/operations/benefitsdelete.ts +66 -0
  2681. package/polar-js-main/src/models/operations/benefitsget.ts +66 -0
  2682. package/polar-js-main/src/models/operations/benefitsgrants.ts +231 -0
  2683. package/polar-js-main/src/models/operations/benefitslist.ts +324 -0
  2684. package/polar-js-main/src/models/operations/benefitsupdate.ts +219 -0
  2685. package/polar-js-main/src/models/operations/checkoutlinksdelete.ts +69 -0
  2686. package/polar-js-main/src/models/operations/checkoutlinksget.ts +69 -0
  2687. package/polar-js-main/src/models/operations/checkoutlinkslist.ts +325 -0
  2688. package/polar-js-main/src/models/operations/checkoutlinksupdate.ts +88 -0
  2689. package/polar-js-main/src/models/operations/checkoutsclientconfirm.ts +92 -0
  2690. package/polar-js-main/src/models/operations/checkoutsclientget.ts +78 -0
  2691. package/polar-js-main/src/models/operations/checkoutsclientupdate.ts +92 -0
  2692. package/polar-js-main/src/models/operations/checkoutsget.ts +69 -0
  2693. package/polar-js-main/src/models/operations/checkoutslist.ts +478 -0
  2694. package/polar-js-main/src/models/operations/checkoutsupdate.ts +88 -0
  2695. package/polar-js-main/src/models/operations/customermetersget.ts +69 -0
  2696. package/polar-js-main/src/models/operations/customermeterslist.ts +475 -0
  2697. package/polar-js-main/src/models/operations/customerportalbenefitgrantsget.ts +147 -0
  2698. package/polar-js-main/src/models/operations/customerportalbenefitgrantslist.ts +605 -0
  2699. package/polar-js-main/src/models/operations/customerportalbenefitgrantsupdate.ts +177 -0
  2700. package/polar-js-main/src/models/operations/customerportalcustomermetersget.ts +153 -0
  2701. package/polar-js-main/src/models/operations/customerportalcustomermeterslist.ts +333 -0
  2702. package/polar-js-main/src/models/operations/customerportalcustomersaddpaymentmethod.ts +89 -0
  2703. package/polar-js-main/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
  2704. package/polar-js-main/src/models/operations/customerportalcustomersdeletepaymentmethod.ts +161 -0
  2705. package/polar-js-main/src/models/operations/customerportalcustomersessionintrospect.ts +89 -0
  2706. package/polar-js-main/src/models/operations/customerportalcustomersget.ts +79 -0
  2707. package/polar-js-main/src/models/operations/customerportalcustomerslistpaymentmethods.ts +257 -0
  2708. package/polar-js-main/src/models/operations/customerportalcustomersupdate.ts +80 -0
  2709. package/polar-js-main/src/models/operations/customerportaldownloadableslist.ts +327 -0
  2710. package/polar-js-main/src/models/operations/customerportallicensekeysget.ts +143 -0
  2711. package/polar-js-main/src/models/operations/customerportallicensekeyslist.ts +245 -0
  2712. package/polar-js-main/src/models/operations/customerportalordersconfirmretrypayment.ts +182 -0
  2713. package/polar-js-main/src/models/operations/customerportalordersgenerateinvoice.ts +159 -0
  2714. package/polar-js-main/src/models/operations/customerportalordersget.ts +140 -0
  2715. package/polar-js-main/src/models/operations/customerportalordersgetpaymentstatus.ts +162 -0
  2716. package/polar-js-main/src/models/operations/customerportalordersinvoice.ts +145 -0
  2717. package/polar-js-main/src/models/operations/customerportalorderslist.ts +512 -0
  2718. package/polar-js-main/src/models/operations/customerportalordersupdate.ts +161 -0
  2719. package/polar-js-main/src/models/operations/customerportalorganizationsget.ts +74 -0
  2720. package/polar-js-main/src/models/operations/customerportalseatsassignseat.ts +80 -0
  2721. package/polar-js-main/src/models/operations/customerportalseatslistclaimedsubscriptions.ts +89 -0
  2722. package/polar-js-main/src/models/operations/customerportalseatslistseats.ts +163 -0
  2723. package/polar-js-main/src/models/operations/customerportalseatsresendinvitation.ts +164 -0
  2724. package/polar-js-main/src/models/operations/customerportalseatsrevokeseat.ts +151 -0
  2725. package/polar-js-main/src/models/operations/customerportalsubscriptionscancel.ts +159 -0
  2726. package/polar-js-main/src/models/operations/customerportalsubscriptionsget.ts +147 -0
  2727. package/polar-js-main/src/models/operations/customerportalsubscriptionslist.ts +355 -0
  2728. package/polar-js-main/src/models/operations/customerportalsubscriptionsupdate.ts +177 -0
  2729. package/polar-js-main/src/models/operations/customerportalwalletsget.ts +140 -0
  2730. package/polar-js-main/src/models/operations/customerportalwalletslist.ts +237 -0
  2731. package/polar-js-main/src/models/operations/customersdelete.ts +69 -0
  2732. package/polar-js-main/src/models/operations/customersdeleteexternal.ts +80 -0
  2733. package/polar-js-main/src/models/operations/customerseatsgetclaiminfo.ts +77 -0
  2734. package/polar-js-main/src/models/operations/customerseatslistseats.ts +83 -0
  2735. package/polar-js-main/src/models/operations/customerseatsresendinvitation.ts +80 -0
  2736. package/polar-js-main/src/models/operations/customerseatsrevokeseat.ts +77 -0
  2737. package/polar-js-main/src/models/operations/customersessionscreate.ts +93 -0
  2738. package/polar-js-main/src/models/operations/customersexport.ts +146 -0
  2739. package/polar-js-main/src/models/operations/customersget.ts +69 -0
  2740. package/polar-js-main/src/models/operations/customersgetbalance.ts +69 -0
  2741. package/polar-js-main/src/models/operations/customersgetexternal.ts +80 -0
  2742. package/polar-js-main/src/models/operations/customersgetstate.ts +69 -0
  2743. package/polar-js-main/src/models/operations/customersgetstateexternal.ts +80 -0
  2744. package/polar-js-main/src/models/operations/customerslist.ts +275 -0
  2745. package/polar-js-main/src/models/operations/customersupdate.ts +88 -0
  2746. package/polar-js-main/src/models/operations/customersupdateexternal.ts +92 -0
  2747. package/polar-js-main/src/models/operations/customfieldsdelete.ts +69 -0
  2748. package/polar-js-main/src/models/operations/customfieldsget.ts +69 -0
  2749. package/polar-js-main/src/models/operations/customfieldslist.ts +341 -0
  2750. package/polar-js-main/src/models/operations/customfieldsupdate.ts +88 -0
  2751. package/polar-js-main/src/models/operations/discountsdelete.ts +69 -0
  2752. package/polar-js-main/src/models/operations/discountsget.ts +69 -0
  2753. package/polar-js-main/src/models/operations/discountslist.ts +255 -0
  2754. package/polar-js-main/src/models/operations/discountsupdate.ts +88 -0
  2755. package/polar-js-main/src/models/operations/eventsget.ts +69 -0
  2756. package/polar-js-main/src/models/operations/eventslist.ts +580 -0
  2757. package/polar-js-main/src/models/operations/eventslistnames.ts +484 -0
  2758. package/polar-js-main/src/models/operations/filesdelete.ts +66 -0
  2759. package/polar-js-main/src/models/operations/fileslist.ts +288 -0
  2760. package/polar-js-main/src/models/operations/filesupdate.ts +199 -0
  2761. package/polar-js-main/src/models/operations/filesuploaded.ts +201 -0
  2762. package/polar-js-main/src/models/operations/licensekeysget.ts +66 -0
  2763. package/polar-js-main/src/models/operations/licensekeysgetactivation.ts +81 -0
  2764. package/polar-js-main/src/models/operations/licensekeyslist.ts +298 -0
  2765. package/polar-js-main/src/models/operations/licensekeysupdate.ts +85 -0
  2766. package/polar-js-main/src/models/operations/metersget.ts +69 -0
  2767. package/polar-js-main/src/models/operations/meterslist.ts +273 -0
  2768. package/polar-js-main/src/models/operations/metersquantities.ts +296 -0
  2769. package/polar-js-main/src/models/operations/metersupdate.ts +88 -0
  2770. package/polar-js-main/src/models/operations/metricsget.ts +418 -0
  2771. package/polar-js-main/src/models/operations/oauth2authorize.ts +105 -0
  2772. package/polar-js-main/src/models/operations/oauth2clientsoauth2deleteclient.ts +81 -0
  2773. package/polar-js-main/src/models/operations/oauth2clientsoauth2getclient.ts +80 -0
  2774. package/polar-js-main/src/models/operations/oauth2clientsoauth2updateclient.ts +95 -0
  2775. package/polar-js-main/src/models/operations/oauth2requesttoken.ts +92 -0
  2776. package/polar-js-main/src/models/operations/oauth2userinfo.ts +82 -0
  2777. package/polar-js-main/src/models/operations/ordersexport.ts +214 -0
  2778. package/polar-js-main/src/models/operations/ordersgenerateinvoice.ts +71 -0
  2779. package/polar-js-main/src/models/operations/ordersget.ts +69 -0
  2780. package/polar-js-main/src/models/operations/ordersinvoice.ts +69 -0
  2781. package/polar-js-main/src/models/operations/orderslist.ts +611 -0
  2782. package/polar-js-main/src/models/operations/ordersupdate.ts +88 -0
  2783. package/polar-js-main/src/models/operations/organizationsget.ts +66 -0
  2784. package/polar-js-main/src/models/operations/organizationslist.ts +170 -0
  2785. package/polar-js-main/src/models/operations/organizationsupdate.ts +85 -0
  2786. package/polar-js-main/src/models/operations/paymentsget.ts +69 -0
  2787. package/polar-js-main/src/models/operations/paymentslist.ts +584 -0
  2788. package/polar-js-main/src/models/operations/productsget.ts +66 -0
  2789. package/polar-js-main/src/models/operations/productslist.ts +401 -0
  2790. package/polar-js-main/src/models/operations/productsupdate.ts +85 -0
  2791. package/polar-js-main/src/models/operations/productsupdatebenefits.ts +87 -0
  2792. package/polar-js-main/src/models/operations/refundslist.ts +500 -0
  2793. package/polar-js-main/src/models/operations/subscriptionscreate.ts +85 -0
  2794. package/polar-js-main/src/models/operations/subscriptionsexport.ts +129 -0
  2795. package/polar-js-main/src/models/operations/subscriptionsget.ts +69 -0
  2796. package/polar-js-main/src/models/operations/subscriptionslist.ts +505 -0
  2797. package/polar-js-main/src/models/operations/subscriptionsrevoke.ts +69 -0
  2798. package/polar-js-main/src/models/operations/subscriptionsupdate.ts +88 -0
  2799. package/polar-js-main/src/models/operations/walletsget.ts +69 -0
  2800. package/polar-js-main/src/models/operations/walletslist.ts +315 -0
  2801. package/polar-js-main/src/models/operations/walletstopup.ts +88 -0
  2802. package/polar-js-main/src/models/operations/webhooksdeletewebhookendpoint.ts +74 -0
  2803. package/polar-js-main/src/models/operations/webhooksgetwebhookendpoint.ts +72 -0
  2804. package/polar-js-main/src/models/operations/webhookslistwebhookdeliveries.ts +247 -0
  2805. package/polar-js-main/src/models/operations/webhookslistwebhookendpoints.ts +229 -0
  2806. package/polar-js-main/src/models/operations/webhooksredeliverwebhookevent.ts +74 -0
  2807. package/polar-js-main/src/models/operations/webhooksresetwebhookendpointsecret.ts +81 -0
  2808. package/polar-js-main/src/models/operations/webhooksupdatewebhookendpoint.ts +93 -0
  2809. package/polar-js-main/src/sdk/benefitgrants.ts +32 -0
  2810. package/polar-js-main/src/sdk/benefits.ts +148 -0
  2811. package/polar-js-main/src/sdk/checkoutlinks.ts +118 -0
  2812. package/polar-js-main/src/sdk/checkouts.ts +158 -0
  2813. package/polar-js-main/src/sdk/clients.ts +84 -0
  2814. package/polar-js-main/src/sdk/customermeters.ts +55 -0
  2815. package/polar-js-main/src/sdk/customerportal.ts +73 -0
  2816. package/polar-js-main/src/sdk/customers.ts +293 -0
  2817. package/polar-js-main/src/sdk/customerseats.ts +120 -0
  2818. package/polar-js-main/src/sdk/customersession.ts +30 -0
  2819. package/polar-js-main/src/sdk/customersessions.ts +30 -0
  2820. package/polar-js-main/src/sdk/customfields.ts +118 -0
  2821. package/polar-js-main/src/sdk/discounts.ts +118 -0
  2822. package/polar-js-main/src/sdk/downloadables.ts +35 -0
  2823. package/polar-js-main/src/sdk/events.ts +101 -0
  2824. package/polar-js-main/src/sdk/files.ts +124 -0
  2825. package/polar-js-main/src/sdk/licensekeys.ts +163 -0
  2826. package/polar-js-main/src/sdk/meters.ts +119 -0
  2827. package/polar-js-main/src/sdk/metrics.ts +51 -0
  2828. package/polar-js-main/src/sdk/oauth2.ts +105 -0
  2829. package/polar-js-main/src/sdk/orders.ts +140 -0
  2830. package/polar-js-main/src/sdk/organizations.ts +97 -0
  2831. package/polar-js-main/src/sdk/payments.ts +55 -0
  2832. package/polar-js-main/src/sdk/polarbenefitgrants.ts +91 -0
  2833. package/polar-js-main/src/sdk/polarcustomermeters.ts +65 -0
  2834. package/polar-js-main/src/sdk/polarcustomers.ts +162 -0
  2835. package/polar-js-main/src/sdk/polarlicensekeys.ts +137 -0
  2836. package/polar-js-main/src/sdk/polarorders.ts +196 -0
  2837. package/polar-js-main/src/sdk/polarorganizations.ts +28 -0
  2838. package/polar-js-main/src/sdk/polarsubscriptions.ts +117 -0
  2839. package/polar-js-main/src/sdk/polarwallets.ts +65 -0
  2840. package/polar-js-main/src/sdk/products.ts +118 -0
  2841. package/polar-js-main/src/sdk/refunds.ts +55 -0
  2842. package/polar-js-main/src/sdk/sdk.ts +157 -0
  2843. package/polar-js-main/src/sdk/seats.ts +126 -0
  2844. package/polar-js-main/src/sdk/subscriptions.ts +144 -0
  2845. package/polar-js-main/src/sdk/wallets.ts +78 -0
  2846. package/polar-js-main/src/sdk/webhooks.ts +190 -0
  2847. package/polar-js-main/src/test.ts +0 -0
  2848. package/polar-js-main/src/types/async.ts +68 -0
  2849. package/polar-js-main/src/types/blobs.ts +32 -0
  2850. package/polar-js-main/src/types/constdatetime.ts +15 -0
  2851. package/polar-js-main/src/types/enums.ts +16 -0
  2852. package/polar-js-main/src/types/fp.ts +50 -0
  2853. package/polar-js-main/src/types/operations.ts +105 -0
  2854. package/polar-js-main/src/types/rfcdate.ts +54 -0
  2855. package/polar-js-main/src/types/streams.ts +21 -0
  2856. package/polar-js-main/src/types/webhooks.ts +7 -0
  2857. package/polar-js-main/src/webhooks.test.ts +116 -0
  2858. package/polar-js-main/src/webhooks.ts +138 -0
  2859. package/polar-js-main/tsconfig.json +41 -0
  2860. package/src/index.ts +9 -0
  2861. package/tsconfig.json +41 -0
@@ -0,0 +1,1115 @@
1
+ overlay: 1.0.0
2
+ info:
3
+ title: CodeSamples overlay for typescript target
4
+ version: 0.0.0
5
+ actions:
6
+ - target: $["paths"]["/v1/benefit-grants/"]["get"]
7
+ update:
8
+ "x-codeSamples":
9
+ - "lang": "typescript"
10
+ "label": "Typescript (SDK)"
11
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefitGrants.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
12
+ - target: $["paths"]["/v1/benefits/"]["get"]
13
+ update:
14
+ "x-codeSamples":
15
+ - "lang": "typescript"
16
+ "label": "Typescript (SDK)"
17
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
18
+ - target: $["paths"]["/v1/benefits/"]["post"]
19
+ update:
20
+ "x-codeSamples":
21
+ - "lang": "typescript"
22
+ "label": "Typescript (SDK)"
23
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.create({\n type: \"license_keys\",\n description: \"mature emergent at outside arrogantly gadzooks zealous equatorial notwithstanding\",\n properties: {},\n });\n\n console.log(result);\n}\n\nrun();"
24
+ - target: $["paths"]["/v1/benefits/{id}"]["delete"]
25
+ update:
26
+ "x-codeSamples":
27
+ - "lang": "typescript"
28
+ "label": "Typescript (SDK)"
29
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.benefits.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
30
+ - target: $["paths"]["/v1/benefits/{id}"]["get"]
31
+ update:
32
+ "x-codeSamples":
33
+ - "lang": "typescript"
34
+ "label": "Typescript (SDK)"
35
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
36
+ - target: $["paths"]["/v1/benefits/{id}"]["patch"]
37
+ update:
38
+ "x-codeSamples":
39
+ - "lang": "typescript"
40
+ "label": "Typescript (SDK)"
41
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.update({\n id: \"<value>\",\n requestBody: {\n type: \"meter_credit\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
42
+ - target: $["paths"]["/v1/benefits/{id}/grants"]["get"]
43
+ update:
44
+ "x-codeSamples":
45
+ - "lang": "typescript"
46
+ "label": "Typescript (SDK)"
47
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.benefits.grants({\n id: \"<value>\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
48
+ - target: $["paths"]["/v1/checkout-links/"]["get"]
49
+ update:
50
+ "x-codeSamples":
51
+ - "lang": "typescript"
52
+ "label": "Typescript (SDK)"
53
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
54
+ - target: $["paths"]["/v1/checkout-links/"]["post"]
55
+ update:
56
+ "x-codeSamples":
57
+ - "lang": "typescript"
58
+ "label": "Typescript (SDK)"
59
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.create({\n paymentProcessor: \"stripe\",\n allowDiscountCodes: true,\n requireBillingAddress: false,\n productPriceId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
60
+ - target: $["paths"]["/v1/checkout-links/{id}"]["delete"]
61
+ update:
62
+ "x-codeSamples":
63
+ - "lang": "typescript"
64
+ "label": "Typescript (SDK)"
65
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.checkoutLinks.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
66
+ - target: $["paths"]["/v1/checkout-links/{id}"]["get"]
67
+ update:
68
+ "x-codeSamples":
69
+ - "lang": "typescript"
70
+ "label": "Typescript (SDK)"
71
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
72
+ - target: $["paths"]["/v1/checkout-links/{id}"]["patch"]
73
+ update:
74
+ "x-codeSamples":
75
+ - "lang": "typescript"
76
+ "label": "Typescript (SDK)"
77
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkoutLinks.update({\n id: \"<value>\",\n checkoutLinkUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
78
+ - target: $["paths"]["/v1/checkouts/"]["get"]
79
+ update:
80
+ "x-codeSamples":
81
+ - "lang": "typescript"
82
+ "label": "Typescript (SDK)"
83
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
84
+ - target: $["paths"]["/v1/checkouts/"]["post"]
85
+ update:
86
+ "x-codeSamples":
87
+ - "lang": "typescript"
88
+ "label": "Typescript (SDK)"
89
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.create({\n customerBillingAddress: {\n country: \"US\",\n },\n products: [\n \"<value 1>\",\n \"<value 2>\",\n \"<value 3>\",\n ],\n });\n\n console.log(result);\n}\n\nrun();"
90
+ - target: $["paths"]["/v1/checkouts/client/{client_secret}"]["get"]
91
+ update:
92
+ "x-codeSamples":
93
+ - "lang": "typescript"
94
+ "label": "Typescript (SDK)"
95
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.checkouts.clientGet({\n clientSecret: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
96
+ - target: $["paths"]["/v1/checkouts/client/{client_secret}"]["patch"]
97
+ update:
98
+ "x-codeSamples":
99
+ - "lang": "typescript"
100
+ "label": "Typescript (SDK)"
101
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.checkouts.clientUpdate({\n clientSecret: \"<value>\",\n checkoutUpdatePublic: {\n customerBillingAddress: null,\n },\n });\n\n console.log(result);\n}\n\nrun();"
102
+ - target: $["paths"]["/v1/checkouts/client/{client_secret}/confirm"]["post"]
103
+ update:
104
+ "x-codeSamples":
105
+ - "lang": "typescript"
106
+ "label": "Typescript (SDK)"
107
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.clientConfirm({\n clientSecret: \"<value>\",\n checkoutConfirmStripe: {\n customerBillingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
108
+ - target: $["paths"]["/v1/checkouts/{id}"]["get"]
109
+ update:
110
+ "x-codeSamples":
111
+ - "lang": "typescript"
112
+ "label": "Typescript (SDK)"
113
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
114
+ - target: $["paths"]["/v1/checkouts/{id}"]["patch"]
115
+ update:
116
+ "x-codeSamples":
117
+ - "lang": "typescript"
118
+ "label": "Typescript (SDK)"
119
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.checkouts.update({\n id: \"<value>\",\n checkoutUpdate: {\n customerBillingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
120
+ - target: $["paths"]["/v1/custom-fields/"]["get"]
121
+ update:
122
+ "x-codeSamples":
123
+ - "lang": "typescript"
124
+ "label": "Typescript (SDK)"
125
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
126
+ - target: $["paths"]["/v1/custom-fields/"]["post"]
127
+ update:
128
+ "x-codeSamples":
129
+ - "lang": "typescript"
130
+ "label": "Typescript (SDK)"
131
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.create({\n type: \"select\",\n slug: \"<value>\",\n name: \"<value>\",\n properties: {\n options: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
132
+ - target: $["paths"]["/v1/custom-fields/{id}"]["delete"]
133
+ update:
134
+ "x-codeSamples":
135
+ - "lang": "typescript"
136
+ "label": "Typescript (SDK)"
137
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.customFields.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
138
+ - target: $["paths"]["/v1/custom-fields/{id}"]["get"]
139
+ update:
140
+ "x-codeSamples":
141
+ - "lang": "typescript"
142
+ "label": "Typescript (SDK)"
143
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
144
+ - target: $["paths"]["/v1/custom-fields/{id}"]["patch"]
145
+ update:
146
+ "x-codeSamples":
147
+ - "lang": "typescript"
148
+ "label": "Typescript (SDK)"
149
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customFields.update({\n id: \"<value>\",\n customFieldUpdate: {\n type: \"date\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
150
+ - target: $["paths"]["/v1/customer-meters/"]["get"]
151
+ update:
152
+ "x-codeSamples":
153
+ - "lang": "typescript"
154
+ "label": "Typescript (SDK)"
155
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerMeters.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
156
+ - target: $["paths"]["/v1/customer-meters/{id}"]["get"]
157
+ update:
158
+ "x-codeSamples":
159
+ - "lang": "typescript"
160
+ "label": "Typescript (SDK)"
161
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerMeters.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
162
+ - target: $["paths"]["/v1/customer-portal/benefit-grants/"]["get"]
163
+ update:
164
+ "x-codeSamples":
165
+ - "lang": "typescript"
166
+ "label": "Typescript (SDK)"
167
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.benefitGrants.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
168
+ - target: $["paths"]["/v1/customer-portal/benefit-grants/{id}"]["get"]
169
+ update:
170
+ "x-codeSamples":
171
+ - "lang": "typescript"
172
+ "label": "Typescript (SDK)"
173
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.benefitGrants.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
174
+ - target: $["paths"]["/v1/customer-portal/benefit-grants/{id}"]["patch"]
175
+ update:
176
+ "x-codeSamples":
177
+ - "lang": "typescript"
178
+ "label": "Typescript (SDK)"
179
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.benefitGrants.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerBenefitGrantUpdate: {\n benefitType: \"license_keys\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
180
+ - target: $["paths"]["/v1/customer-portal/customer-session/introspect"]["get"]
181
+ update:
182
+ "x-codeSamples":
183
+ - "lang": "typescript"
184
+ "label": "Typescript (SDK)"
185
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customerSession.introspect({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n });\n\n console.log(result);\n}\n\nrun();"
186
+ - target: $["paths"]["/v1/customer-portal/customers/me"]["get"]
187
+ update:
188
+ "x-codeSamples":
189
+ - "lang": "typescript"
190
+ "label": "Typescript (SDK)"
191
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n });\n\n console.log(result);\n}\n\nrun();"
192
+ - target: $["paths"]["/v1/customer-portal/customers/me"]["patch"]
193
+ update:
194
+ "x-codeSamples":
195
+ - "lang": "typescript"
196
+ "label": "Typescript (SDK)"
197
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n billingAddress: {\n country: \"US\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
198
+ - target: $["paths"]["/v1/customer-portal/customers/me/payment-methods"]["get"]
199
+ update:
200
+ "x-codeSamples":
201
+ - "lang": "typescript"
202
+ "label": "Typescript (SDK)"
203
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.listPaymentMethods({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
204
+ - target: $["paths"]["/v1/customer-portal/customers/me/payment-methods"]["post"]
205
+ update:
206
+ "x-codeSamples":
207
+ - "lang": "typescript"
208
+ "label": "Typescript (SDK)"
209
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.addPaymentMethod({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n confirmationTokenId: \"<id>\",\n setDefault: false,\n returnUrl: \"https://yearly-custom.net/\",\n });\n\n console.log(result);\n}\n\nrun();"
210
+ - target: $["paths"]["/v1/customer-portal/customers/me/payment-methods/confirm"]["post"]
211
+ update:
212
+ "x-codeSamples":
213
+ - "lang": "typescript"
214
+ "label": "Typescript (SDK)"
215
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customers.confirmPaymentMethod({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n setupIntentId: \"<id>\",\n setDefault: true,\n });\n\n console.log(result);\n}\n\nrun();"
216
+ - target: $["paths"]["/v1/customer-portal/customers/me/payment-methods/{id}"]["delete"]
217
+ update:
218
+ "x-codeSamples":
219
+ - "lang": "typescript"
220
+ "label": "Typescript (SDK)"
221
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n await polar.customerPortal.customers.deletePaymentMethod({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
222
+ - target: $["paths"]["/v1/customer-portal/downloadables/"]["get"]
223
+ update:
224
+ "x-codeSamples":
225
+ - "lang": "typescript"
226
+ "label": "Typescript (SDK)"
227
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.downloadables.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
228
+ - target: $["paths"]["/v1/customer-portal/license-keys/"]["get"]
229
+ update:
230
+ "x-codeSamples":
231
+ - "lang": "typescript"
232
+ "label": "Typescript (SDK)"
233
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
234
+ - target: $["paths"]["/v1/customer-portal/license-keys/activate"]["post"]
235
+ update:
236
+ "x-codeSamples":
237
+ - "lang": "typescript"
238
+ "label": "Typescript (SDK)"
239
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.activate({\n key: \"<key>\",\n organizationId: \"<value>\",\n label: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
240
+ - target: $["paths"]["/v1/customer-portal/license-keys/deactivate"]["post"]
241
+ update:
242
+ "x-codeSamples":
243
+ - "lang": "typescript"
244
+ "label": "Typescript (SDK)"
245
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n await polar.customerPortal.licenseKeys.deactivate({\n key: \"<key>\",\n organizationId: \"<value>\",\n activationId: \"<value>\",\n });\n\n\n}\n\nrun();"
246
+ - target: $["paths"]["/v1/customer-portal/license-keys/validate"]["post"]
247
+ update:
248
+ "x-codeSamples":
249
+ - "lang": "typescript"
250
+ "label": "Typescript (SDK)"
251
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.validate({\n key: \"<key>\",\n organizationId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
252
+ - target: $["paths"]["/v1/customer-portal/license-keys/{id}"]["get"]
253
+ update:
254
+ "x-codeSamples":
255
+ - "lang": "typescript"
256
+ "label": "Typescript (SDK)"
257
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.licenseKeys.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
258
+ - target: $["paths"]["/v1/customer-portal/meters/"]["get"]
259
+ update:
260
+ "x-codeSamples":
261
+ - "lang": "typescript"
262
+ "label": "Typescript (SDK)"
263
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customerMeters.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
264
+ - target: $["paths"]["/v1/customer-portal/meters/{id}"]["get"]
265
+ update:
266
+ "x-codeSamples":
267
+ - "lang": "typescript"
268
+ "label": "Typescript (SDK)"
269
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.customerMeters.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
270
+ - target: $["paths"]["/v1/customer-portal/orders/"]["get"]
271
+ update:
272
+ "x-codeSamples":
273
+ - "lang": "typescript"
274
+ "label": "Typescript (SDK)"
275
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
276
+ - target: $["paths"]["/v1/customer-portal/orders/{id}"]["get"]
277
+ update:
278
+ "x-codeSamples":
279
+ - "lang": "typescript"
280
+ "label": "Typescript (SDK)"
281
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
282
+ - target: $["paths"]["/v1/customer-portal/orders/{id}"]["patch"]
283
+ update:
284
+ "x-codeSamples":
285
+ - "lang": "typescript"
286
+ "label": "Typescript (SDK)"
287
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerOrderUpdate: {\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
288
+ - target: $["paths"]["/v1/customer-portal/orders/{id}/confirm-payment"]["post"]
289
+ update:
290
+ "x-codeSamples":
291
+ - "lang": "typescript"
292
+ "label": "Typescript (SDK)"
293
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.confirmRetryPayment({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerOrderConfirmPayment: {},\n });\n\n console.log(result);\n}\n\nrun();"
294
+ - target: $["paths"]["/v1/customer-portal/orders/{id}/invoice"]["get"]
295
+ update:
296
+ "x-codeSamples":
297
+ - "lang": "typescript"
298
+ "label": "Typescript (SDK)"
299
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.invoice({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
300
+ - target: $["paths"]["/v1/customer-portal/orders/{id}/invoice"]["post"]
301
+ update:
302
+ "x-codeSamples":
303
+ - "lang": "typescript"
304
+ "label": "Typescript (SDK)"
305
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.generateInvoice({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
306
+ - target: $["paths"]["/v1/customer-portal/orders/{id}/payment-status"]["get"]
307
+ update:
308
+ "x-codeSamples":
309
+ - "lang": "typescript"
310
+ "label": "Typescript (SDK)"
311
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.orders.getPaymentStatus({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
312
+ - target: $["paths"]["/v1/customer-portal/organizations/{slug}"]["get"]
313
+ update:
314
+ "x-codeSamples":
315
+ - "lang": "typescript"
316
+ "label": "Typescript (SDK)"
317
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.organizations.get({\n slug: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
318
+ - target: $["paths"]["/v1/customer-portal/seats"]["get"]
319
+ update:
320
+ "x-codeSamples":
321
+ - "lang": "typescript"
322
+ "label": "Typescript (SDK)"
323
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listSeats({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n console.log(result);\n}\n\nrun();"
324
+ - target: $["paths"]["/v1/customer-portal/seats"]["post"]
325
+ update:
326
+ "x-codeSamples":
327
+ - "lang": "typescript"
328
+ "label": "Typescript (SDK)"
329
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.assignSeat({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n console.log(result);\n}\n\nrun();"
330
+ - target: $["paths"]["/v1/customer-portal/seats/subscriptions"]["get"]
331
+ update:
332
+ "x-codeSamples":
333
+ - "lang": "typescript"
334
+ "label": "Typescript (SDK)"
335
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.listClaimedSubscriptions({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n });\n\n console.log(result);\n}\n\nrun();"
336
+ - target: $["paths"]["/v1/customer-portal/seats/{seat_id}"]["delete"]
337
+ update:
338
+ "x-codeSamples":
339
+ - "lang": "typescript"
340
+ "label": "Typescript (SDK)"
341
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.revokeSeat({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
342
+ - target: $["paths"]["/v1/customer-portal/seats/{seat_id}/resend"]["post"]
343
+ update:
344
+ "x-codeSamples":
345
+ - "lang": "typescript"
346
+ "label": "Typescript (SDK)"
347
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.seats.resendInvitation({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
348
+ - target: $["paths"]["/v1/customer-portal/subscriptions/"]["get"]
349
+ update:
350
+ "x-codeSamples":
351
+ - "lang": "typescript"
352
+ "label": "Typescript (SDK)"
353
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
354
+ - target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["delete"]
355
+ update:
356
+ "x-codeSamples":
357
+ - "lang": "typescript"
358
+ "label": "Typescript (SDK)"
359
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.cancel({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
360
+ - target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["get"]
361
+ update:
362
+ "x-codeSamples":
363
+ - "lang": "typescript"
364
+ "label": "Typescript (SDK)"
365
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
366
+ - target: $["paths"]["/v1/customer-portal/subscriptions/{id}"]["patch"]
367
+ update:
368
+ "x-codeSamples":
369
+ - "lang": "typescript"
370
+ "label": "Typescript (SDK)"
371
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.subscriptions.update({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n customerSubscriptionUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
372
+ - target: $["paths"]["/v1/customer-portal/wallets/"]["get"]
373
+ update:
374
+ "x-codeSamples":
375
+ - "lang": "typescript"
376
+ "label": "Typescript (SDK)"
377
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.wallets.list({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
378
+ - target: $["paths"]["/v1/customer-portal/wallets/{id}"]["get"]
379
+ update:
380
+ "x-codeSamples":
381
+ - "lang": "typescript"
382
+ "label": "Typescript (SDK)"
383
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerPortal.wallets.get({\n customerSession: process.env[\"POLAR_CUSTOMER_SESSION\"] ?? \"\",\n }, {\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
384
+ - target: $["paths"]["/v1/customer-seats"]["get"]
385
+ update:
386
+ "x-codeSamples":
387
+ - "lang": "typescript"
388
+ "label": "Typescript (SDK)"
389
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.listSeats({});\n\n console.log(result);\n}\n\nrun();"
390
+ - target: $["paths"]["/v1/customer-seats"]["post"]
391
+ update:
392
+ "x-codeSamples":
393
+ - "lang": "typescript"
394
+ "label": "Typescript (SDK)"
395
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.assignSeat({});\n\n console.log(result);\n}\n\nrun();"
396
+ - target: $["paths"]["/v1/customer-seats/claim"]["post"]
397
+ update:
398
+ "x-codeSamples":
399
+ - "lang": "typescript"
400
+ "label": "Typescript (SDK)"
401
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerSeats.claimSeat({\n invitationToken: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
402
+ - target: $["paths"]["/v1/customer-seats/claim/{invitation_token}"]["get"]
403
+ update:
404
+ "x-codeSamples":
405
+ - "lang": "typescript"
406
+ "label": "Typescript (SDK)"
407
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.customerSeats.getClaimInfo({\n invitationToken: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
408
+ - target: $["paths"]["/v1/customer-seats/{seat_id}"]["delete"]
409
+ update:
410
+ "x-codeSamples":
411
+ - "lang": "typescript"
412
+ "label": "Typescript (SDK)"
413
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.revokeSeat({\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
414
+ - target: $["paths"]["/v1/customer-seats/{seat_id}/resend"]["post"]
415
+ update:
416
+ "x-codeSamples":
417
+ - "lang": "typescript"
418
+ "label": "Typescript (SDK)"
419
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSeats.resendInvitation({\n seatId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
420
+ - target: $["paths"]["/v1/customer-sessions/"]["post"]
421
+ update:
422
+ "x-codeSamples":
423
+ - "lang": "typescript"
424
+ "label": "Typescript (SDK)"
425
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customerSessions.create({\n returnUrl: \"https://example.com/account\",\n externalCustomerId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
426
+ - target: $["paths"]["/v1/customers/"]["get"]
427
+ update:
428
+ "x-codeSamples":
429
+ - "lang": "typescript"
430
+ "label": "Typescript (SDK)"
431
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
432
+ - target: $["paths"]["/v1/customers/"]["post"]
433
+ update:
434
+ "x-codeSamples":
435
+ - "lang": "typescript"
436
+ "label": "Typescript (SDK)"
437
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.create({\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
438
+ - target: $["paths"]["/v1/customers/export"]["get"]
439
+ update:
440
+ "x-codeSamples":
441
+ - "lang": "typescript"
442
+ "label": "Typescript (SDK)"
443
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.export({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
444
+ - target: $["paths"]["/v1/customers/external/{external_id}"]["delete"]
445
+ update:
446
+ "x-codeSamples":
447
+ - "lang": "typescript"
448
+ "label": "Typescript (SDK)"
449
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.customers.deleteExternal({\n externalId: \"<id>\",\n });\n\n\n}\n\nrun();"
450
+ - target: $["paths"]["/v1/customers/external/{external_id}"]["get"]
451
+ update:
452
+ "x-codeSamples":
453
+ - "lang": "typescript"
454
+ "label": "Typescript (SDK)"
455
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getExternal({\n externalId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
456
+ - target: $["paths"]["/v1/customers/external/{external_id}"]["patch"]
457
+ update:
458
+ "x-codeSamples":
459
+ - "lang": "typescript"
460
+ "label": "Typescript (SDK)"
461
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.updateExternal({\n externalId: \"<id>\",\n customerUpdateExternalID: {\n email: \"customer@example.com\",\n name: \"John Doe\",\n billingAddress: null,\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
462
+ - target: $["paths"]["/v1/customers/external/{external_id}/state"]["get"]
463
+ update:
464
+ "x-codeSamples":
465
+ - "lang": "typescript"
466
+ "label": "Typescript (SDK)"
467
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getStateExternal({\n externalId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
468
+ - target: $["paths"]["/v1/customers/{id}"]["delete"]
469
+ update:
470
+ "x-codeSamples":
471
+ - "lang": "typescript"
472
+ "label": "Typescript (SDK)"
473
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.customers.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
474
+ - target: $["paths"]["/v1/customers/{id}"]["get"]
475
+ update:
476
+ "x-codeSamples":
477
+ - "lang": "typescript"
478
+ "label": "Typescript (SDK)"
479
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
480
+ - target: $["paths"]["/v1/customers/{id}"]["patch"]
481
+ update:
482
+ "x-codeSamples":
483
+ - "lang": "typescript"
484
+ "label": "Typescript (SDK)"
485
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.update({\n id: \"<value>\",\n customerUpdate: {\n email: \"customer@example.com\",\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n externalId: \"usr_1337\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
486
+ - target: $["paths"]["/v1/customers/{id}/balance"]["get"]
487
+ update:
488
+ "x-codeSamples":
489
+ - "lang": "typescript"
490
+ "label": "Typescript (SDK)"
491
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getBalance({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
492
+ - target: $["paths"]["/v1/customers/{id}/state"]["get"]
493
+ update:
494
+ "x-codeSamples":
495
+ - "lang": "typescript"
496
+ "label": "Typescript (SDK)"
497
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.customers.getState({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
498
+ - target: $["paths"]["/v1/discounts/"]["get"]
499
+ update:
500
+ "x-codeSamples":
501
+ - "lang": "typescript"
502
+ "label": "Typescript (SDK)"
503
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
504
+ - target: $["paths"]["/v1/discounts/"]["post"]
505
+ update:
506
+ "x-codeSamples":
507
+ - "lang": "typescript"
508
+ "label": "Typescript (SDK)"
509
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.create({\n duration: \"once\",\n type: \"fixed\",\n basisPoints: 449604,\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
510
+ - target: $["paths"]["/v1/discounts/{id}"]["delete"]
511
+ update:
512
+ "x-codeSamples":
513
+ - "lang": "typescript"
514
+ "label": "Typescript (SDK)"
515
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.discounts.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
516
+ - target: $["paths"]["/v1/discounts/{id}"]["get"]
517
+ update:
518
+ "x-codeSamples":
519
+ - "lang": "typescript"
520
+ "label": "Typescript (SDK)"
521
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
522
+ - target: $["paths"]["/v1/discounts/{id}"]["patch"]
523
+ update:
524
+ "x-codeSamples":
525
+ - "lang": "typescript"
526
+ "label": "Typescript (SDK)"
527
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.discounts.update({\n id: \"<value>\",\n discountUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
528
+ - target: $["paths"]["/v1/events/"]["get"]
529
+ update:
530
+ "x-codeSamples":
531
+ - "lang": "typescript"
532
+ "label": "Typescript (SDK)"
533
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
534
+ - target: $["paths"]["/v1/events/ingest"]["post"]
535
+ update:
536
+ "x-codeSamples":
537
+ - "lang": "typescript"
538
+ "label": "Typescript (SDK)"
539
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.ingest({\n events: [],\n });\n\n console.log(result);\n}\n\nrun();"
540
+ - target: $["paths"]["/v1/events/names"]["get"]
541
+ update:
542
+ "x-codeSamples":
543
+ - "lang": "typescript"
544
+ "label": "Typescript (SDK)"
545
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.listNames({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
546
+ - target: $["paths"]["/v1/events/{id}"]["get"]
547
+ update:
548
+ "x-codeSamples":
549
+ - "lang": "typescript"
550
+ "label": "Typescript (SDK)"
551
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.events.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
552
+ - target: $["paths"]["/v1/files/"]["get"]
553
+ update:
554
+ "x-codeSamples":
555
+ - "lang": "typescript"
556
+ "label": "Typescript (SDK)"
557
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
558
+ - target: $["paths"]["/v1/files/"]["post"]
559
+ update:
560
+ "x-codeSamples":
561
+ - "lang": "typescript"
562
+ "label": "Typescript (SDK)"
563
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.create({\n name: \"<value>\",\n mimeType: \"<value>\",\n size: 612128,\n upload: {\n parts: [],\n },\n service: \"downloadable\",\n });\n\n console.log(result);\n}\n\nrun();"
564
+ - target: $["paths"]["/v1/files/{id}"]["delete"]
565
+ update:
566
+ "x-codeSamples":
567
+ - "lang": "typescript"
568
+ "label": "Typescript (SDK)"
569
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.files.delete({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
570
+ - target: $["paths"]["/v1/files/{id}"]["patch"]
571
+ update:
572
+ "x-codeSamples":
573
+ - "lang": "typescript"
574
+ "label": "Typescript (SDK)"
575
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.update({\n id: \"<value>\",\n filePatch: {},\n });\n\n console.log(result);\n}\n\nrun();"
576
+ - target: $["paths"]["/v1/files/{id}/uploaded"]["post"]
577
+ update:
578
+ "x-codeSamples":
579
+ - "lang": "typescript"
580
+ "label": "Typescript (SDK)"
581
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.files.uploaded({\n id: \"<value>\",\n fileUploadCompleted: {\n id: \"<id>\",\n path: \"/boot\",\n parts: [\n {\n number: 979613,\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
582
+ - target: $["paths"]["/v1/license-keys/"]["get"]
583
+ update:
584
+ "x-codeSamples":
585
+ - "lang": "typescript"
586
+ "label": "Typescript (SDK)"
587
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
588
+ - target: $["paths"]["/v1/license-keys/activate"]["post"]
589
+ update:
590
+ "x-codeSamples":
591
+ - "lang": "typescript"
592
+ "label": "Typescript (SDK)"
593
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.activate({\n key: \"<key>\",\n organizationId: \"<value>\",\n label: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
594
+ - target: $["paths"]["/v1/license-keys/deactivate"]["post"]
595
+ update:
596
+ "x-codeSamples":
597
+ - "lang": "typescript"
598
+ "label": "Typescript (SDK)"
599
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.licenseKeys.deactivate({\n key: \"<key>\",\n organizationId: \"<value>\",\n activationId: \"<value>\",\n });\n\n\n}\n\nrun();"
600
+ - target: $["paths"]["/v1/license-keys/validate"]["post"]
601
+ update:
602
+ "x-codeSamples":
603
+ - "lang": "typescript"
604
+ "label": "Typescript (SDK)"
605
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.validate({\n key: \"<key>\",\n organizationId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
606
+ - target: $["paths"]["/v1/license-keys/{id}"]["get"]
607
+ update:
608
+ "x-codeSamples":
609
+ - "lang": "typescript"
610
+ "label": "Typescript (SDK)"
611
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
612
+ - target: $["paths"]["/v1/license-keys/{id}"]["patch"]
613
+ update:
614
+ "x-codeSamples":
615
+ - "lang": "typescript"
616
+ "label": "Typescript (SDK)"
617
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.update({\n id: \"<value>\",\n licenseKeyUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
618
+ - target: $["paths"]["/v1/license-keys/{id}/activations/{activation_id}"]["get"]
619
+ update:
620
+ "x-codeSamples":
621
+ - "lang": "typescript"
622
+ "label": "Typescript (SDK)"
623
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.licenseKeys.getActivation({\n id: \"<value>\",\n activationId: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
624
+ - target: $["paths"]["/v1/meters/"]["get"]
625
+ update:
626
+ "x-codeSamples":
627
+ - "lang": "typescript"
628
+ "label": "Typescript (SDK)"
629
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
630
+ - target: $["paths"]["/v1/meters/"]["post"]
631
+ update:
632
+ "x-codeSamples":
633
+ - "lang": "typescript"
634
+ "label": "Typescript (SDK)"
635
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.create({\n name: \"<value>\",\n filter: {\n conjunction: \"or\",\n clauses: [],\n },\n aggregation: {\n func: \"count\",\n },\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
636
+ - target: $["paths"]["/v1/meters/{id}"]["get"]
637
+ update:
638
+ "x-codeSamples":
639
+ - "lang": "typescript"
640
+ "label": "Typescript (SDK)"
641
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
642
+ - target: $["paths"]["/v1/meters/{id}"]["patch"]
643
+ update:
644
+ "x-codeSamples":
645
+ - "lang": "typescript"
646
+ "label": "Typescript (SDK)"
647
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.update({\n id: \"<value>\",\n meterUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
648
+ - target: $["paths"]["/v1/meters/{id}/quantities"]["get"]
649
+ update:
650
+ "x-codeSamples":
651
+ - "lang": "typescript"
652
+ "label": "Typescript (SDK)"
653
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.meters.quantities({\n id: \"<value>\",\n startTimestamp: new Date(\"2025-11-25T04:37:16.823Z\"),\n endTimestamp: new Date(\"2025-11-26T17:06:00.727Z\"),\n interval: \"day\",\n });\n\n console.log(result);\n}\n\nrun();"
654
+ - target: $["paths"]["/v1/metrics/"]["get"]
655
+ update:
656
+ "x-codeSamples":
657
+ - "lang": "typescript"
658
+ "label": "Typescript (SDK)"
659
+ "source": "import { Polar } from \"@polar-sh/sdk\";\nimport { RFCDate } from \"@polar-sh/sdk/types/rfcdate.js\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.metrics.get({\n startDate: new RFCDate(\"2025-03-14\"),\n endDate: new RFCDate(\"2025-03-18\"),\n interval: \"hour\",\n organizationId: null,\n });\n\n console.log(result);\n}\n\nrun();"
660
+ - target: $["paths"]["/v1/metrics/limits"]["get"]
661
+ update:
662
+ "x-codeSamples":
663
+ - "lang": "typescript"
664
+ "label": "Typescript (SDK)"
665
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.metrics.limits();\n\n console.log(result);\n}\n\nrun();"
666
+ - target: $["paths"]["/v1/oauth2/authorize"]["get"]
667
+ update:
668
+ "x-codeSamples":
669
+ - "lang": "typescript"
670
+ "label": "Typescript (SDK)"
671
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.authorize();\n\n console.log(result);\n}\n\nrun();"
672
+ - target: $["paths"]["/v1/oauth2/introspect"]["post"]
673
+ update:
674
+ "x-codeSamples":
675
+ - "lang": "typescript"
676
+ "label": "Typescript (SDK)"
677
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.oauth2.introspect({\n token: \"<value>\",\n clientId: \"<id>\",\n clientSecret: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
678
+ - target: $["paths"]["/v1/oauth2/register"]["post"]
679
+ update:
680
+ "x-codeSamples":
681
+ - "lang": "typescript"
682
+ "label": "Typescript (SDK)"
683
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.create({\n redirectUris: [\n \"https://impolite-hippodrome.com/\",\n \"https://acidic-tomography.net/\",\n ],\n clientName: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
684
+ - target: $["paths"]["/v1/oauth2/register/{client_id}"]["delete"]
685
+ update:
686
+ "x-codeSamples":
687
+ - "lang": "typescript"
688
+ "label": "Typescript (SDK)"
689
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.delete({\n clientId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
690
+ - target: $["paths"]["/v1/oauth2/register/{client_id}"]["get"]
691
+ update:
692
+ "x-codeSamples":
693
+ - "lang": "typescript"
694
+ "label": "Typescript (SDK)"
695
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.get({\n clientId: \"<id>\",\n });\n\n console.log(result);\n}\n\nrun();"
696
+ - target: $["paths"]["/v1/oauth2/register/{client_id}"]["put"]
697
+ update:
698
+ "x-codeSamples":
699
+ - "lang": "typescript"
700
+ "label": "Typescript (SDK)"
701
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.clients.update({\n clientId: \"<id>\",\n oAuth2ClientConfigurationUpdate: {\n redirectUris: [\n \"https://classic-cantaloupe.org\",\n \"https://corrupt-status.biz/\",\n ],\n clientName: \"<value>\",\n clientId: \"<id>\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
702
+ - target: $["paths"]["/v1/oauth2/revoke"]["post"]
703
+ update:
704
+ "x-codeSamples":
705
+ - "lang": "typescript"
706
+ "label": "Typescript (SDK)"
707
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.oauth2.revoke({\n token: \"<value>\",\n clientId: \"<id>\",\n clientSecret: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
708
+ - target: $["paths"]["/v1/oauth2/token"]["post"]
709
+ update:
710
+ "x-codeSamples":
711
+ - "lang": "typescript"
712
+ "label": "Typescript (SDK)"
713
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.oauth2.token({\n grantType: \"authorization_code\",\n clientId: \"<id>\",\n clientSecret: \"<value>\",\n code: \"<value>\",\n redirectUri: \"https://memorable-season.name\",\n });\n\n console.log(result);\n}\n\nrun();"
714
+ - target: $["paths"]["/v1/oauth2/userinfo"]["get"]
715
+ update:
716
+ "x-codeSamples":
717
+ - "lang": "typescript"
718
+ "label": "Typescript (SDK)"
719
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.oauth2.userinfo();\n\n console.log(result);\n}\n\nrun();"
720
+ - target: $["paths"]["/v1/orders/"]["get"]
721
+ update:
722
+ "x-codeSamples":
723
+ - "lang": "typescript"
724
+ "label": "Typescript (SDK)"
725
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
726
+ - target: $["paths"]["/v1/orders/export"]["get"]
727
+ update:
728
+ "x-codeSamples":
729
+ - "lang": "typescript"
730
+ "label": "Typescript (SDK)"
731
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.export({\n organizationId: null,\n });\n\n console.log(result);\n}\n\nrun();"
732
+ - target: $["paths"]["/v1/orders/{id}"]["get"]
733
+ update:
734
+ "x-codeSamples":
735
+ - "lang": "typescript"
736
+ "label": "Typescript (SDK)"
737
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
738
+ - target: $["paths"]["/v1/orders/{id}"]["patch"]
739
+ update:
740
+ "x-codeSamples":
741
+ - "lang": "typescript"
742
+ "label": "Typescript (SDK)"
743
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.update({\n id: \"<value>\",\n orderUpdate: {\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
744
+ - target: $["paths"]["/v1/orders/{id}/invoice"]["get"]
745
+ update:
746
+ "x-codeSamples":
747
+ - "lang": "typescript"
748
+ "label": "Typescript (SDK)"
749
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.invoice({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
750
+ - target: $["paths"]["/v1/orders/{id}/invoice"]["post"]
751
+ update:
752
+ "x-codeSamples":
753
+ - "lang": "typescript"
754
+ "label": "Typescript (SDK)"
755
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.orders.generateInvoice({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
756
+ - target: $["paths"]["/v1/organizations/"]["get"]
757
+ update:
758
+ "x-codeSamples":
759
+ - "lang": "typescript"
760
+ "label": "Typescript (SDK)"
761
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.list({});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
762
+ - target: $["paths"]["/v1/organizations/"]["post"]
763
+ update:
764
+ "x-codeSamples":
765
+ - "lang": "typescript"
766
+ "label": "Typescript (SDK)"
767
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.create({\n name: \"<value>\",\n slug: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
768
+ - target: $["paths"]["/v1/organizations/{id}"]["get"]
769
+ update:
770
+ "x-codeSamples":
771
+ - "lang": "typescript"
772
+ "label": "Typescript (SDK)"
773
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.get({\n id: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
774
+ - target: $["paths"]["/v1/organizations/{id}"]["patch"]
775
+ update:
776
+ "x-codeSamples":
777
+ - "lang": "typescript"
778
+ "label": "Typescript (SDK)"
779
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.organizations.update({\n id: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n organizationUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
780
+ - target: $["paths"]["/v1/payments/"]["get"]
781
+ update:
782
+ "x-codeSamples":
783
+ - "lang": "typescript"
784
+ "label": "Typescript (SDK)"
785
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.payments.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
786
+ - target: $["paths"]["/v1/payments/{id}"]["get"]
787
+ update:
788
+ "x-codeSamples":
789
+ - "lang": "typescript"
790
+ "label": "Typescript (SDK)"
791
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.payments.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
792
+ - target: $["paths"]["/v1/products/"]["get"]
793
+ update:
794
+ "x-codeSamples":
795
+ - "lang": "typescript"
796
+ "label": "Typescript (SDK)"
797
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.list({\n organizationId: null,\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
798
+ - target: $["paths"]["/v1/products/"]["post"]
799
+ update:
800
+ "x-codeSamples":
801
+ - "lang": "typescript"
802
+ "label": "Typescript (SDK)"
803
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.create({\n name: \"<value>\",\n prices: [\n {\n amountType: \"custom\",\n priceCurrency: \"usd\",\n },\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
804
+ - target: $["paths"]["/v1/products/{id}"]["get"]
805
+ update:
806
+ "x-codeSamples":
807
+ - "lang": "typescript"
808
+ "label": "Typescript (SDK)"
809
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
810
+ - target: $["paths"]["/v1/products/{id}"]["patch"]
811
+ update:
812
+ "x-codeSamples":
813
+ - "lang": "typescript"
814
+ "label": "Typescript (SDK)"
815
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.update({\n id: \"<value>\",\n productUpdate: {},\n });\n\n console.log(result);\n}\n\nrun();"
816
+ - target: $["paths"]["/v1/products/{id}/benefits"]["post"]
817
+ update:
818
+ "x-codeSamples":
819
+ - "lang": "typescript"
820
+ "label": "Typescript (SDK)"
821
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.products.updateBenefits({\n id: \"<value>\",\n productBenefitsUpdate: {\n benefits: [\n \"<value 1>\",\n \"<value 2>\",\n \"<value 3>\",\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
822
+ - target: $["paths"]["/v1/refunds/"]["get"]
823
+ update:
824
+ "x-codeSamples":
825
+ - "lang": "typescript"
826
+ "label": "Typescript (SDK)"
827
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.refunds.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
828
+ - target: $["paths"]["/v1/refunds/"]["post"]
829
+ update:
830
+ "x-codeSamples":
831
+ - "lang": "typescript"
832
+ "label": "Typescript (SDK)"
833
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.refunds.create({\n orderId: \"<value>\",\n reason: \"customer_request\",\n amount: 90,\n });\n\n console.log(result);\n}\n\nrun();"
834
+ - target: $["paths"]["/v1/subscriptions/"]["get"]
835
+ update:
836
+ "x-codeSamples":
837
+ - "lang": "typescript"
838
+ "label": "Typescript (SDK)"
839
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
840
+ - target: $["paths"]["/v1/subscriptions/"]["post"]
841
+ update:
842
+ "x-codeSamples":
843
+ - "lang": "typescript"
844
+ "label": "Typescript (SDK)"
845
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.create({\n productId: \"d8dd2de1-21b7-4a41-8bc3-ce909c0cfe23\",\n customerId: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n });\n\n console.log(result);\n}\n\nrun();"
846
+ - target: $["paths"]["/v1/subscriptions/export"]["get"]
847
+ update:
848
+ "x-codeSamples":
849
+ - "lang": "typescript"
850
+ "label": "Typescript (SDK)"
851
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.export({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
852
+ - target: $["paths"]["/v1/subscriptions/{id}"]["delete"]
853
+ update:
854
+ "x-codeSamples":
855
+ - "lang": "typescript"
856
+ "label": "Typescript (SDK)"
857
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.revoke({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
858
+ - target: $["paths"]["/v1/subscriptions/{id}"]["get"]
859
+ update:
860
+ "x-codeSamples":
861
+ - "lang": "typescript"
862
+ "label": "Typescript (SDK)"
863
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
864
+ - target: $["paths"]["/v1/subscriptions/{id}"]["patch"]
865
+ update:
866
+ "x-codeSamples":
867
+ - "lang": "typescript"
868
+ "label": "Typescript (SDK)"
869
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.subscriptions.update({\n id: \"<value>\",\n subscriptionUpdate: {\n discountId: \"<value>\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
870
+ - target: $["paths"]["/v1/wallets/"]["get"]
871
+ update:
872
+ "x-codeSamples":
873
+ - "lang": "typescript"
874
+ "label": "Typescript (SDK)"
875
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.wallets.list({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
876
+ - target: $["paths"]["/v1/wallets/{id}"]["get"]
877
+ update:
878
+ "x-codeSamples":
879
+ - "lang": "typescript"
880
+ "label": "Typescript (SDK)"
881
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.wallets.get({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
882
+ - target: $["paths"]["/v1/wallets/{id}/top-up"]["post"]
883
+ update:
884
+ "x-codeSamples":
885
+ - "lang": "typescript"
886
+ "label": "Typescript (SDK)"
887
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.wallets.topUp({\n id: \"<value>\",\n walletTopUpCreate: {\n amount: 2000,\n currency: \"Venezuelan bolívar\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
888
+ - target: $["paths"]["/v1/webhooks/deliveries"]["get"]
889
+ update:
890
+ "x-codeSamples":
891
+ - "lang": "typescript"
892
+ "label": "Typescript (SDK)"
893
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.listWebhookDeliveries({});\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
894
+ - target: $["paths"]["/v1/webhooks/endpoints"]["get"]
895
+ update:
896
+ "x-codeSamples":
897
+ - "lang": "typescript"
898
+ "label": "Typescript (SDK)"
899
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.listWebhookEndpoints({\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n for await (const page of result) {\n console.log(page);\n }\n}\n\nrun();"
900
+ - target: $["paths"]["/v1/webhooks/endpoints"]["post"]
901
+ update:
902
+ "x-codeSamples":
903
+ - "lang": "typescript"
904
+ "label": "Typescript (SDK)"
905
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.createWebhookEndpoint({\n url: \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n format: \"slack\",\n events: [\n \"subscription.canceled\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n });\n\n console.log(result);\n}\n\nrun();"
906
+ - target: $["paths"]["/v1/webhooks/endpoints/{id}"]["delete"]
907
+ update:
908
+ "x-codeSamples":
909
+ - "lang": "typescript"
910
+ "label": "Typescript (SDK)"
911
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n await polar.webhooks.deleteWebhookEndpoint({\n id: \"<value>\",\n });\n\n\n}\n\nrun();"
912
+ - target: $["paths"]["/v1/webhooks/endpoints/{id}"]["get"]
913
+ update:
914
+ "x-codeSamples":
915
+ - "lang": "typescript"
916
+ "label": "Typescript (SDK)"
917
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.getWebhookEndpoint({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
918
+ - target: $["paths"]["/v1/webhooks/endpoints/{id}"]["patch"]
919
+ update:
920
+ "x-codeSamples":
921
+ - "lang": "typescript"
922
+ "label": "Typescript (SDK)"
923
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.updateWebhookEndpoint({\n id: \"<value>\",\n webhookEndpointUpdate: {\n url: \"https://webhook.site/cb791d80-f26e-4f8c-be88-6e56054192b0\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
924
+ - target: $["paths"]["/v1/webhooks/endpoints/{id}/secret"]["patch"]
925
+ update:
926
+ "x-codeSamples":
927
+ - "lang": "typescript"
928
+ "label": "Typescript (SDK)"
929
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.resetWebhookEndpointSecret({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
930
+ - target: $["paths"]["/v1/webhooks/events/{id}/redeliver"]["post"]
931
+ update:
932
+ "x-codeSamples":
933
+ - "lang": "typescript"
934
+ "label": "Typescript (SDK)"
935
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar({\n accessToken: process.env[\"POLAR_ACCESS_TOKEN\"] ?? \"\",\n});\n\nasync function run() {\n const result = await polar.webhooks.redeliverWebhookEvent({\n id: \"<value>\",\n });\n\n console.log(result);\n}\n\nrun();"
936
+ - target: $["paths"]["benefit.created"]["post"]
937
+ update:
938
+ "x-codeSamples":
939
+ - "lang": "typescript"
940
+ "label": "Typescript (SDK)"
941
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitCreatedPost({\n type: \"benefit.created\",\n timestamp: new Date(\"2025-10-17T23:42:52.571Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-05-24T21:27:59.843Z\"),\n modifiedAt: new Date(\"2024-07-01T06:29:09.775Z\"),\n type: \"github_repository\",\n description: \"beneath terrorise but about uh-huh\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n repositoryOwner: \"polarsource\",\n repositoryName: \"private_repo\",\n permission: \"push\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
942
+ - target: $["paths"]["benefit.updated"]["post"]
943
+ update:
944
+ "x-codeSamples":
945
+ - "lang": "typescript"
946
+ "label": "Typescript (SDK)"
947
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitUpdatedPost({\n type: \"benefit.updated\",\n timestamp: new Date(\"2024-09-24T20:33:20.375Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-12-28T13:48:13.081Z\"),\n modifiedAt: new Date(\"2023-10-27T10:32:06.844Z\"),\n type: \"custom\",\n description: \"fooey save simple an prime fast modulo nor randomize worth\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n note: \"<value>\",\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
948
+ - target: $["paths"]["benefit_grant.created"]["post"]
949
+ update:
950
+ "x-codeSamples":
951
+ - "lang": "typescript"
952
+ "label": "Typescript (SDK)"
953
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantCreatedPost({\n type: \"benefit_grant.created\",\n timestamp: new Date(\"2025-07-29T09:12:26.895Z\"),\n data: {\n createdAt: new Date(\"2025-07-26T11:51:14.320Z\"),\n modifiedAt: new Date(\"2023-06-26T18:19:56.152Z\"),\n id: \"<value>\",\n isGranted: false,\n isRevoked: true,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-05-12T01:27:02.379Z\"),\n modifiedAt: new Date(\"2023-11-17T04:22:37.821Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-02-21T01:01:33.050Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2023-07-27T17:46:55.663Z\"),\n modifiedAt: new Date(\"2024-02-04T07:22:26.555Z\"),\n type: \"custom\",\n description: \"blah even spirit reprove gee instead that longingly\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n note: null,\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
954
+ - target: $["paths"]["benefit_grant.cycled"]["post"]
955
+ update:
956
+ "x-codeSamples":
957
+ - "lang": "typescript"
958
+ "label": "Typescript (SDK)"
959
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantCycledPost({\n type: \"benefit_grant.cycled\",\n timestamp: new Date(\"2023-11-21T13:26:50.948Z\"),\n data: {\n createdAt: new Date(\"2023-07-19T03:56:32.649Z\"),\n modifiedAt: new Date(\"2025-06-08T22:06:37.934Z\"),\n id: \"<value>\",\n isGranted: false,\n isRevoked: false,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-18T10:06:52.830Z\"),\n modifiedAt: new Date(\"2024-06-29T04:36:34.181Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-09-22T10:01:13.690Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2024-08-15T00:34:14.846Z\"),\n modifiedAt: new Date(\"2025-10-24T15:26:44.314Z\"),\n type: \"discord\",\n description: \"unimportant ah prickly past\",\n selectable: true,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: true,\n guildToken: \"<value>\",\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
960
+ - target: $["paths"]["benefit_grant.revoked"]["post"]
961
+ update:
962
+ "x-codeSamples":
963
+ - "lang": "typescript"
964
+ "label": "Typescript (SDK)"
965
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantRevokedPost({\n type: \"benefit_grant.revoked\",\n timestamp: new Date(\"2025-10-11T18:40:00.865Z\"),\n data: {\n createdAt: new Date(\"2023-04-30T09:48:15.700Z\"),\n modifiedAt: new Date(\"2024-12-06T00:35:53.453Z\"),\n id: \"<value>\",\n isGranted: true,\n isRevoked: true,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-05T05:52:04.552Z\"),\n modifiedAt: new Date(\"2024-09-18T14:08:44.723Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: null,\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-11-04T03:19:52.925Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2024-03-12T16:39:36.178Z\"),\n modifiedAt: new Date(\"2024-07-08T07:08:59.377Z\"),\n type: \"discord\",\n description: \"grandiose royal surface before ouch silently authentic more override reassuringly\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: false,\n guildToken: \"<value>\",\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
966
+ - target: $["paths"]["benefit_grant.updated"]["post"]
967
+ update:
968
+ "x-codeSamples":
969
+ - "lang": "typescript"
970
+ "label": "Typescript (SDK)"
971
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointbenefitGrantUpdatedPost({\n type: \"benefit_grant.updated\",\n timestamp: new Date(\"2023-06-15T00:42:20.858Z\"),\n data: {\n createdAt: new Date(\"2023-09-09T02:35:13.085Z\"),\n modifiedAt: new Date(\"2024-04-28T04:44:42.040Z\"),\n id: \"<value>\",\n isGranted: true,\n isRevoked: false,\n subscriptionId: \"<value>\",\n orderId: \"<value>\",\n customerId: \"<value>\",\n benefitId: \"<value>\",\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-22T06:57:35.281Z\"),\n modifiedAt: new Date(\"2025-06-14T15:07:20.731Z\"),\n metadata: {\n \"key\": 322224,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-09-29T05:46:04.457Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n benefit: {\n id: \"<value>\",\n createdAt: new Date(\"2025-09-22T18:19:02.554Z\"),\n modifiedAt: new Date(\"2023-12-23T22:21:47.780Z\"),\n type: \"downloadables\",\n description: \"diligently phony super boo veg crafty\",\n selectable: false,\n deletable: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n archived: {\n \"key\": false,\n \"key1\": false,\n \"key2\": true,\n },\n files: [],\n },\n },\n properties: {},\n },\n });\n\n console.log(result);\n}\n\nrun();"
972
+ - target: $["paths"]["checkout.created"]["post"]
973
+ update:
974
+ "x-codeSamples":
975
+ - "lang": "typescript"
976
+ "label": "Typescript (SDK)"
977
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutCreatedPost({\n type: \"checkout.created\",\n timestamp: new Date(\"2023-02-15T15:44:21.478Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-09-12T19:48:15.814Z\"),\n modifiedAt: new Date(\"2023-09-14T02:01:27.394Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"<value>\",\n url: \"https://agreeable-reboot.biz\",\n expiresAt: new Date(\"2024-05-02T18:25:33.974Z\"),\n successUrl: \"https://rural-outrun.org\",\n returnUrl: \"https://clean-humidity.com/\",\n embedOrigin: \"<value>\",\n amount: 275553,\n discountAmount: 9980,\n netAmount: 266632,\n taxAmount: 348968,\n totalAmount: 203013,\n currency: \"Australian Dollar\",\n activeTrialInterval: \"day\",\n activeTrialIntervalCount: 746373,\n trialEnd: new Date(\"2023-02-22T08:13:16.795Z\"),\n organizationId: \"<value>\",\n productId: null,\n productPriceId: \"<value>\",\n discountId: \"<value>\",\n allowDiscountCodes: false,\n requireBillingAddress: false,\n isDiscountApplicable: false,\n isFreeProductPrice: false,\n isPaymentRequired: false,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: false,\n customerId: \"<value>\",\n isBusinessCustomer: true,\n customerName: \"<value>\",\n customerEmail: \"<value>\",\n customerIpAddress: \"<value>\",\n customerBillingName: \"<value>\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"<id>\",\n paymentProcessorMetadata: {\n \"key\": \"<value>\",\n \"key1\": \"<value>\",\n \"key2\": \"<value>\",\n },\n billingAddressFields: {\n country: \"required\",\n state: \"optional\",\n city: \"disabled\",\n postalCode: \"optional\",\n line1: \"required\",\n line2: \"disabled\",\n },\n trialInterval: null,\n trialIntervalCount: 675830,\n metadata: {\n \"key\": true,\n },\n externalCustomerId: \"<id>\",\n customerExternalId: \"<id>\",\n products: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-01-06T18:09:03.676Z\"),\n modifiedAt: new Date(\"2024-05-28T21:42:41.690Z\"),\n trialInterval: \"month\",\n trialIntervalCount: 590205,\n name: \"<value>\",\n description: \"structure tenderly dirty colon though\",\n recurringInterval: null,\n recurringIntervalCount: 996088,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n prices: [],\n benefits: [],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/var/yp\",\n mimeType: \"<value>\",\n size: 1211,\n storageVersion: \"<value>\",\n checksumEtag: null,\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2023-08-11T21:05:07.943Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-09-05T01:36:20.132Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://next-peninsula.net\",\n },\n ],\n },\n ],\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2025-07-24T22:06:51.276Z\"),\n modifiedAt: new Date(\"2025-04-12T19:47:40.853Z\"),\n trialInterval: null,\n trialIntervalCount: null,\n name: \"<value>\",\n description: \"below presell cleave silky marimba\",\n recurringInterval: \"month\",\n recurringIntervalCount: 174683,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n prices: [],\n benefits: [],\n medias: [],\n },\n productPrice: {\n createdAt: new Date(\"2025-09-14T04:08:29.152Z\"),\n modifiedAt: new Date(\"2025-10-07T17:41:46.324Z\"),\n id: \"<value>\",\n amountType: \"fixed\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n priceAmount: 538327,\n legacy: true,\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 509971,\n type: \"percentage\",\n basisPoints: 1000,\n id: \"<value>\",\n name: \"<value>\",\n code: null,\n },\n subscriptionId: \"<value>\",\n attachedCustomFields: [],\n customerMetadata: {\n\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
978
+ - target: $["paths"]["checkout.updated"]["post"]
979
+ update:
980
+ "x-codeSamples":
981
+ - "lang": "typescript"
982
+ "label": "Typescript (SDK)"
983
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcheckoutUpdatedPost({\n type: \"checkout.updated\",\n timestamp: new Date(\"2023-03-19T05:40:46.816Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2024-09-17T13:52:37.257Z\"),\n modifiedAt: new Date(\"2024-11-07T08:23:01.152Z\"),\n paymentProcessor: \"stripe\",\n status: \"expired\",\n clientSecret: \"<value>\",\n url: \"https://male-punctuation.name\",\n expiresAt: new Date(\"2025-03-26T06:13:51.386Z\"),\n successUrl: \"https://monumental-mathematics.info\",\n returnUrl: \"https://scary-valley.com/\",\n embedOrigin: \"<value>\",\n amount: 867510,\n discountAmount: 469340,\n netAmount: 139232,\n taxAmount: 373760,\n totalAmount: 41301,\n currency: \"Azerbaijanian Manat\",\n activeTrialInterval: \"week\",\n activeTrialIntervalCount: null,\n trialEnd: new Date(\"2025-01-03T13:19:57.814Z\"),\n organizationId: \"<value>\",\n productId: \"<value>\",\n productPriceId: \"<value>\",\n discountId: \"<value>\",\n allowDiscountCodes: true,\n requireBillingAddress: false,\n isDiscountApplicable: true,\n isFreeProductPrice: false,\n isPaymentRequired: false,\n isPaymentSetupRequired: false,\n isPaymentFormRequired: true,\n customerId: \"<value>\",\n isBusinessCustomer: true,\n customerName: \"<value>\",\n customerEmail: \"<value>\",\n customerIpAddress: \"<value>\",\n customerBillingName: \"<value>\",\n customerBillingAddress: {\n country: \"US\",\n },\n customerTaxId: \"<id>\",\n paymentProcessorMetadata: {\n \"key\": \"<value>\",\n },\n billingAddressFields: {\n country: \"disabled\",\n state: \"disabled\",\n city: \"disabled\",\n postalCode: \"optional\",\n line1: \"optional\",\n line2: \"required\",\n },\n trialInterval: \"month\",\n trialIntervalCount: 971558,\n metadata: {\n \"key\": 4652.47,\n },\n externalCustomerId: \"<id>\",\n customerExternalId: \"<id>\",\n products: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-06-21T05:48:31.398Z\"),\n modifiedAt: new Date(\"2024-09-06T09:34:57.464Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 868555,\n name: \"<value>\",\n description: \"tempting by or hippodrome mountain strict militate soupy partially simple\",\n recurringInterval: \"year\",\n recurringIntervalCount: 787637,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n prices: [],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2024-03-20T21:54:02.026Z\"),\n modifiedAt: new Date(\"2025-11-22T22:06:43.546Z\"),\n type: \"github_repository\",\n description: \"boring mysterious psst though lest\",\n selectable: false,\n deletable: false,\n organizationId: \"<value>\",\n },\n ],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/var/yp\",\n mimeType: \"<value>\",\n size: 742109,\n storageVersion: \"<value>\",\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2024-01-05T08:21:09.966Z\"),\n version: null,\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-07-12T04:50:26.552Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://common-makeover.biz/\",\n },\n ],\n },\n ],\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2024-06-19T06:14:05.114Z\"),\n modifiedAt: new Date(\"2023-03-11T18:17:16.587Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 392090,\n name: \"<value>\",\n description: \"whereas steeple brr regularly make huzzah cheerfully ignite sense\",\n recurringInterval: \"week\",\n recurringIntervalCount: 439686,\n isRecurring: false,\n isArchived: false,\n organizationId: \"<value>\",\n prices: [\n {\n createdAt: new Date(\"2025-06-19T15:55:16.121Z\"),\n modifiedAt: new Date(\"2025-11-24T07:57:40.732Z\"),\n id: \"<value>\",\n amountType: \"fixed\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"year\",\n priceCurrency: \"<value>\",\n priceAmount: 41520,\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n },\n productPrice: {\n createdAt: new Date(\"2023-10-22T04:58:53.063Z\"),\n modifiedAt: new Date(\"2024-01-03T01:38:04.965Z\"),\n id: \"<value>\",\n amountType: \"seat_based\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"month\",\n priceCurrency: \"<value>\",\n seatTiers: {\n tiers: [],\n },\n },\n discount: {\n duration: \"once\",\n durationInMonths: 327405,\n type: \"fixed\",\n amount: 1000,\n currency: \"usd\",\n id: \"<value>\",\n name: \"<value>\",\n code: \"<value>\",\n },\n subscriptionId: \"<value>\",\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2024-05-09T18:59:08.115Z\"),\n modifiedAt: new Date(\"2024-09-29T03:43:11.374Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": 916655,\n },\n type: \"date\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 596151,\n required: false,\n },\n ],\n customerMetadata: {\n \"key\": false,\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
984
+ - target: $["paths"]["customer.created"]["post"]
985
+ update:
986
+ "x-codeSamples":
987
+ - "lang": "typescript"
988
+ "label": "Typescript (SDK)"
989
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerCreatedPost({\n type: \"customer.created\",\n timestamp: new Date(\"2025-10-24T17:37:29.711Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-03-08T02:57:16.205Z\"),\n modifiedAt: new Date(\"2024-10-31T06:26:45.555Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-03-24T20:28:46.681Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
990
+ - target: $["paths"]["customer.deleted"]["post"]
991
+ update:
992
+ "x-codeSamples":
993
+ - "lang": "typescript"
994
+ "label": "Typescript (SDK)"
995
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerDeletedPost({\n type: \"customer.deleted\",\n timestamp: new Date(\"2023-07-12T21:40:34.752Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-12-23T11:32:42.100Z\"),\n modifiedAt: new Date(\"2023-07-09T17:16:24.833Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-09-30T09:04:17.770Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
996
+ - target: $["paths"]["customer.state_changed"]["post"]
997
+ update:
998
+ "x-codeSamples":
999
+ - "lang": "typescript"
1000
+ "label": "Typescript (SDK)"
1001
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerStateChangedPost({\n type: \"customer.state_changed\",\n timestamp: new Date(\"2025-05-22T16:03:32.369Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2023-07-25T20:57:42.542Z\"),\n modifiedAt: null,\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-09-08T18:19:10.187Z\"),\n activeSubscriptions: [],\n grantedBenefits: [\n {\n id: \"d322132c-a9d0-4e0d-b8d3-d81ad021a3a9\",\n createdAt: new Date(\"2025-09-01T02:21:29.525Z\"),\n modifiedAt: new Date(\"2023-11-12T17:51:37.646Z\"),\n grantedAt: new Date(\"2025-01-03T13:37:00Z\"),\n benefitId: \"397a17aa-15cf-4cb4-9333-18040203cf98\",\n benefitType: \"meter_credit\",\n benefitMetadata: {\n \"key\": \"value\",\n },\n properties: {},\n },\n ],\n activeMeters: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-08-10T12:57:32.427Z\"),\n modifiedAt: new Date(\"2024-11-09T02:09:01.550Z\"),\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n consumedUnits: 25,\n creditedUnits: 100,\n balance: 75,\n },\n ],\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1002
+ - target: $["paths"]["customer.updated"]["post"]
1003
+ update:
1004
+ "x-codeSamples":
1005
+ - "lang": "typescript"
1006
+ "label": "Typescript (SDK)"
1007
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerUpdatedPost({\n type: \"customer.updated\",\n timestamp: new Date(\"2023-07-09T20:22:33.716Z\"),\n data: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-07-18T23:25:12.977Z\"),\n modifiedAt: new Date(\"2023-04-07T04:58:11.725Z\"),\n metadata: {\n \"key\": 983601,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-01-11T12:43:11.694Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1008
+ - target: $["paths"]["customer_seat.assigned"]["post"]
1009
+ update:
1010
+ "x-codeSamples":
1011
+ - "lang": "typescript"
1012
+ "label": "Typescript (SDK)"
1013
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerSeatAssignedPost({\n type: \"customer_seat.assigned\",\n timestamp: new Date(\"2023-01-24T21:46:22.729Z\"),\n data: {\n createdAt: new Date(\"2024-04-02T01:55:00.575Z\"),\n modifiedAt: new Date(\"2025-03-27T17:16:29.966Z\"),\n id: \"ded032fb-362e-4ae1-83b9-4f4bcab6f430\",\n status: \"revoked\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1014
+ - target: $["paths"]["customer_seat.claimed"]["post"]
1015
+ update:
1016
+ "x-codeSamples":
1017
+ - "lang": "typescript"
1018
+ "label": "Typescript (SDK)"
1019
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerSeatClaimedPost({\n type: \"customer_seat.claimed\",\n timestamp: new Date(\"2023-08-22T13:16:39.616Z\"),\n data: {\n createdAt: new Date(\"2023-05-10T18:50:40.033Z\"),\n modifiedAt: new Date(\"2023-07-12T19:06:41.896Z\"),\n id: \"35ac8c8c-dc4e-44ea-9684-2a2c2b600002\",\n status: \"pending\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1020
+ - target: $["paths"]["customer_seat.revoked"]["post"]
1021
+ update:
1022
+ "x-codeSamples":
1023
+ - "lang": "typescript"
1024
+ "label": "Typescript (SDK)"
1025
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointcustomerSeatRevokedPost({\n type: \"customer_seat.revoked\",\n timestamp: new Date(\"2023-11-12T11:49:39.839Z\"),\n data: {\n createdAt: new Date(\"2024-08-05T10:54:13.336Z\"),\n modifiedAt: new Date(\"2023-12-02T21:24:11.844Z\"),\n id: \"518899df-02c0-4220-abaf-0f2f32e97539\",\n status: \"pending\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1026
+ - target: $["paths"]["order.created"]["post"]
1027
+ update:
1028
+ "x-codeSamples":
1029
+ - "lang": "typescript"
1030
+ "label": "Typescript (SDK)"
1031
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderCreatedPost({\n type: \"order.created\",\n timestamp: new Date(\"2024-08-21T06:55:49.348Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2023-01-02T23:31:01.991Z\"),\n modifiedAt: new Date(\"2025-11-09T23:45:36.352Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"purchase\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: false,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-08-09T17:02:40.706Z\"),\n modifiedAt: new Date(\"2025-10-06T19:34:47.732Z\"),\n metadata: {\n \"key\": 701529,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: null,\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: {\n metadata: {\n\n },\n id: \"<value>\",\n createdAt: new Date(\"2025-06-03T19:46:15.179Z\"),\n modifiedAt: new Date(\"2023-10-21T21:28:56.316Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 271259,\n name: \"<value>\",\n description: \"gadzooks trek amid misspend ravioli supposing bare pfft\",\n recurringInterval: \"week\",\n recurringIntervalCount: 168138,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n },\n discount: {\n duration: \"once\",\n durationInMonths: 260667,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-04-11T00:21:08.353Z\"),\n modifiedAt: new Date(\"2025-05-03T15:56:59.028Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: null,\n startsAt: new Date(\"2023-03-06T18:58:41.541Z\"),\n endsAt: new Date(\"2024-02-07T05:20:48.151Z\"),\n maxRedemptions: 200286,\n redemptionsCount: 148325,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-01-04T15:31:18.185Z\"),\n modifiedAt: new Date(\"2023-12-10T13:26:22.287Z\"),\n id: \"<value>\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"<value>\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1032
+ - target: $["paths"]["order.paid"]["post"]
1033
+ update:
1034
+ "x-codeSamples":
1035
+ - "lang": "typescript"
1036
+ "label": "Typescript (SDK)"
1037
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderPaidPost({\n type: \"order.paid\",\n timestamp: new Date(\"2025-12-05T07:44:21.172Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-07-27T09:45:49.517Z\"),\n modifiedAt: new Date(\"2024-12-13T20:55:19.644Z\"),\n status: \"partially_refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_update\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: true,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-08-31T00:54:53.749Z\"),\n modifiedAt: new Date(\"2025-07-24T12:09:26.716Z\"),\n metadata: {\n \"key\": \"<value>\",\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-04-20T14:41:24.727Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: {\n metadata: {\n\n },\n id: \"<value>\",\n createdAt: new Date(\"2023-06-18T22:24:34.935Z\"),\n modifiedAt: new Date(\"2025-08-01T03:33:20.782Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 125374,\n name: \"<value>\",\n description: \"easily carouse plus quietly reservation bright injunction plastic gah\",\n recurringInterval: \"year\",\n recurringIntervalCount: 458129,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n },\n discount: {\n duration: \"forever\",\n durationInMonths: 375708,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-05-24T21:01:40.292Z\"),\n modifiedAt: new Date(\"2024-05-25T21:22:06.978Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-09-14T19:23:38.365Z\"),\n endsAt: new Date(\"2024-10-02T13:51:42.523Z\"),\n maxRedemptions: 231748,\n redemptionsCount: 846855,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: {\n metadata: {\n \"key\": 5251.57,\n },\n createdAt: new Date(\"2025-02-12T23:41:13.290Z\"),\n modifiedAt: new Date(\"2023-02-24T15:15:22.018Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n recurringIntervalCount: 310795,\n status: \"canceled\",\n currentPeriodStart: new Date(\"2023-11-20T10:20:23.628Z\"),\n currentPeriodEnd: new Date(\"2025-08-05T06:11:40.745Z\"),\n trialStart: new Date(\"2023-12-05T06:32:48.307Z\"),\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-08-08T23:25:37.197Z\"),\n startedAt: new Date(\"2024-10-04T00:59:57.339Z\"),\n endsAt: new Date(\"2025-02-01T22:39:43.609Z\"),\n endedAt: new Date(\"2023-08-04T10:17:52.706Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: null,\n customerCancellationComment: \"<value>\",\n },\n items: [],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1038
+ - target: $["paths"]["order.refunded"]["post"]
1039
+ update:
1040
+ "x-codeSamples":
1041
+ - "lang": "typescript"
1042
+ "label": "Typescript (SDK)"
1043
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderRefundedPost({\n type: \"order.refunded\",\n timestamp: new Date(\"2024-07-23T18:00:11.615Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-03-19T11:53:59.744Z\"),\n modifiedAt: new Date(\"2024-12-01T04:03:14.906Z\"),\n status: \"refunded\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: false,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-21T22:00:59.902Z\"),\n modifiedAt: new Date(\"2024-08-24T07:48:58.778Z\"),\n metadata: {\n \"key\": 647689,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-08-19T02:54:30.835Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: null,\n discount: {\n duration: \"once\",\n durationInMonths: 310259,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2023-01-26T21:26:48.872Z\"),\n modifiedAt: new Date(\"2023-01-16T07:26:04.196Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": 4016.73,\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2025-09-14T03:05:33.012Z\"),\n endsAt: null,\n maxRedemptions: 211875,\n redemptionsCount: 188354,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-12-08T10:40:25.472Z\"),\n modifiedAt: new Date(\"2023-12-20T17:19:16.701Z\"),\n id: \"<value>\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"<value>\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1044
+ - target: $["paths"]["order.updated"]["post"]
1045
+ update:
1046
+ "x-codeSamples":
1047
+ - "lang": "typescript"
1048
+ "label": "Typescript (SDK)"
1049
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorderUpdatedPost({\n type: \"order.updated\",\n timestamp: new Date(\"2023-10-25T00:08:50.290Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2024-04-30T23:35:35.375Z\"),\n modifiedAt: new Date(\"2025-06-01T02:02:46.580Z\"),\n status: \"pending\",\n paid: true,\n subtotalAmount: 10000,\n discountAmount: 1000,\n netAmount: 9000,\n taxAmount: 720,\n totalAmount: 9720,\n appliedBalanceAmount: 0,\n dueAmount: 0,\n refundedAmount: 0,\n refundedTaxAmount: 0,\n currency: \"usd\",\n billingReason: \"subscription_create\",\n billingName: \"<value>\",\n billingAddress: {\n country: \"US\",\n },\n invoiceNumber: \"<value>\",\n isInvoiceGenerated: true,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n subscriptionId: \"<value>\",\n checkoutId: \"<value>\",\n metadata: {\n\n },\n platformFeeAmount: 500,\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2023-12-14T17:38:07.808Z\"),\n modifiedAt: new Date(\"2024-04-07T10:18:18.539Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-10-23T02:39:12.424Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n userId: \"<value>\",\n product: {\n metadata: {\n\n },\n id: \"<value>\",\n createdAt: new Date(\"2024-12-03T05:16:11.415Z\"),\n modifiedAt: new Date(\"2023-03-11T05:58:05.184Z\"),\n trialInterval: null,\n trialIntervalCount: null,\n name: \"<value>\",\n description: \"simple eventually briskly considering\",\n recurringInterval: \"month\",\n recurringIntervalCount: null,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n },\n discount: {\n duration: \"forever\",\n durationInMonths: 976971,\n type: \"fixed\",\n basisPoints: 1000,\n createdAt: new Date(\"2024-02-28T06:12:39.096Z\"),\n modifiedAt: new Date(\"2023-10-01T05:16:42.046Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-08-28T07:16:56.183Z\"),\n endsAt: new Date(\"2023-02-25T14:55:58.248Z\"),\n maxRedemptions: 970746,\n redemptionsCount: 314425,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n subscription: null,\n items: [\n {\n createdAt: new Date(\"2024-10-24T22:29:24.352Z\"),\n modifiedAt: new Date(\"2023-05-02T19:12:30.014Z\"),\n id: \"<value>\",\n label: \"Pro Plan\",\n amount: 10000,\n taxAmount: 720,\n proration: false,\n productPriceId: \"<value>\",\n },\n ],\n description: \"Pro Plan\",\n },\n });\n\n console.log(result);\n}\n\nrun();"
1050
+ - target: $["paths"]["organization.updated"]["post"]
1051
+ update:
1052
+ "x-codeSamples":
1053
+ - "lang": "typescript"
1054
+ "label": "Typescript (SDK)"
1055
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointorganizationUpdatedPost({\n type: \"organization.updated\",\n timestamp: new Date(\"2025-08-19T15:02:44.139Z\"),\n data: {\n createdAt: new Date(\"2025-05-07T21:24:48.059Z\"),\n modifiedAt: new Date(\"2023-04-16T23:18:12.986Z\"),\n id: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n name: \"<value>\",\n slug: \"<value>\",\n avatarUrl: \"https://pessimistic-going.name/\",\n email: \"Stefan_Pagac@yahoo.com\",\n website: \"<value>\",\n socials: [],\n status: \"created\",\n detailsSubmittedAt: new Date(\"2024-05-05T12:48:25.627Z\"),\n featureSettings: {},\n subscriptionSettings: {\n allowMultipleSubscriptions: true,\n allowCustomerUpdates: false,\n prorationBehavior: \"prorate\",\n benefitRevocationGracePeriod: 219094,\n },\n notificationSettings: {\n newOrder: true,\n newSubscription: false,\n },\n customerEmailSettings: {\n orderConfirmation: false,\n subscriptionCancellation: true,\n subscriptionConfirmation: false,\n subscriptionCycled: true,\n subscriptionPastDue: true,\n subscriptionRevoked: true,\n subscriptionUncanceled: false,\n subscriptionUpdated: true,\n },\n },\n });\n\n console.log(result);\n}\n\nrun();"
1056
+ - target: $["paths"]["product.created"]["post"]
1057
+ update:
1058
+ "x-codeSamples":
1059
+ - "lang": "typescript"
1060
+ "label": "Typescript (SDK)"
1061
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductCreatedPost({\n type: \"product.created\",\n timestamp: new Date(\"2023-10-13T02:47:55.082Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2023-01-15T03:15:59.062Z\"),\n modifiedAt: new Date(\"2023-07-04T11:33:29.001Z\"),\n trialInterval: \"day\",\n trialIntervalCount: 130829,\n name: \"<value>\",\n description: \"generously as at filthy busy athwart\",\n recurringInterval: \"year\",\n recurringIntervalCount: 944417,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-03-03T14:19:40.156Z\"),\n modifiedAt: new Date(\"2025-12-07T23:08:11.973Z\"),\n type: \"discord\",\n description: \"gosh consequently gladly beneath horse\",\n selectable: true,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 5806.69,\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: false,\n guildToken: \"<value>\",\n },\n },\n ],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2025-10-04T08:22:15.858Z\"),\n modifiedAt: null,\n id: \"<value>\",\n metadata: {\n \"key\": false,\n },\n type: \"number\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 92084,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
1062
+ - target: $["paths"]["product.updated"]["post"]
1063
+ update:
1064
+ "x-codeSamples":
1065
+ - "lang": "typescript"
1066
+ "label": "Typescript (SDK)"
1067
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointproductUpdatedPost({\n type: \"product.updated\",\n timestamp: new Date(\"2024-08-25T02:00:54.049Z\"),\n data: {\n id: \"<value>\",\n createdAt: new Date(\"2025-02-11T18:19:05.372Z\"),\n modifiedAt: new Date(\"2025-07-31T19:14:23.351Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 907633,\n name: \"<value>\",\n description: \"square extract modulo bossy outlandish pecan\",\n recurringInterval: \"year\",\n recurringIntervalCount: 731544,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [\n {\n createdAt: new Date(\"2025-06-01T04:39:05.245Z\"),\n modifiedAt: new Date(\"2024-05-10T10:53:55.427Z\"),\n id: \"<value>\",\n amountType: \"free\",\n isArchived: true,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"month\",\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2025-06-23T20:05:36.217Z\"),\n modifiedAt: new Date(\"2023-10-18T15:30:25.986Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n type: \"text\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 752010,\n required: true,\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
1068
+ - target: $["paths"]["refund.created"]["post"]
1069
+ update:
1070
+ "x-codeSamples":
1071
+ - "lang": "typescript"
1072
+ "label": "Typescript (SDK)"
1073
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointrefundCreatedPost({\n type: \"refund.created\",\n timestamp: new Date(\"2025-02-15T13:46:01.700Z\"),\n data: {\n createdAt: new Date(\"2023-12-02T00:48:24.931Z\"),\n modifiedAt: new Date(\"2025-08-16T15:26:20.191Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n status: \"pending\",\n reason: \"other\",\n amount: 104569,\n taxAmount: 295454,\n currency: \"Solomon Islands Dollar\",\n organizationId: \"<value>\",\n orderId: \"<value>\",\n subscriptionId: \"<value>\",\n customerId: \"<value>\",\n revokeBenefits: false,\n },\n });\n\n console.log(result);\n}\n\nrun();"
1074
+ - target: $["paths"]["refund.updated"]["post"]
1075
+ update:
1076
+ "x-codeSamples":
1077
+ - "lang": "typescript"
1078
+ "label": "Typescript (SDK)"
1079
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointrefundUpdatedPost({\n type: \"refund.updated\",\n timestamp: new Date(\"2023-01-08T20:35:39.672Z\"),\n data: {\n createdAt: new Date(\"2025-03-28T13:42:04.506Z\"),\n modifiedAt: new Date(\"2024-08-07T08:31:25.154Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n status: \"canceled\",\n reason: \"service_disruption\",\n amount: 986698,\n taxAmount: 785012,\n currency: \"Congolese Franc\",\n organizationId: \"<value>\",\n orderId: \"<value>\",\n subscriptionId: \"<value>\",\n customerId: \"<value>\",\n revokeBenefits: false,\n },\n });\n\n console.log(result);\n}\n\nrun();"
1080
+ - target: $["paths"]["subscription.active"]["post"]
1081
+ update:
1082
+ "x-codeSamples":
1083
+ - "lang": "typescript"
1084
+ "label": "Typescript (SDK)"
1085
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionActivePost({\n type: \"subscription.active\",\n timestamp: new Date(\"2023-08-13T01:28:21.362Z\"),\n data: {\n createdAt: new Date(\"2023-10-12T10:17:29.274Z\"),\n modifiedAt: new Date(\"2023-12-18T04:45:55.702Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n recurringIntervalCount: 291908,\n status: \"past_due\",\n currentPeriodStart: new Date(\"2023-06-09T14:14:48.363Z\"),\n currentPeriodEnd: null,\n trialStart: null,\n trialEnd: null,\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-09-14T15:19:58.463Z\"),\n startedAt: new Date(\"2024-07-30T05:01:30.550Z\"),\n endsAt: new Date(\"2024-02-02T06:13:13.441Z\"),\n endedAt: new Date(\"2023-10-10T03:15:20.759Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"<value>\",\n metadata: {\n \"key\": 667866,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2025-02-14T12:59:50.680Z\"),\n modifiedAt: new Date(\"2025-03-11T11:17:02.540Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-04-08T22:28:00.101Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2025-11-05T10:18:40.300Z\"),\n modifiedAt: new Date(\"2024-04-23T18:24:43.408Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 714669,\n name: \"<value>\",\n description: \"amongst incidentally irritably cauliflower antique\",\n recurringInterval: \"month\",\n recurringIntervalCount: 48572,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": false,\n },\n prices: [\n {\n createdAt: new Date(\"2025-03-24T10:57:36.466Z\"),\n modifiedAt: new Date(\"2024-10-17T11:42:46.643Z\"),\n id: \"<value>\",\n amountType: \"custom\",\n isArchived: false,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"day\",\n priceCurrency: \"<value>\",\n minimumAmount: 154892,\n maximumAmount: 778615,\n presetAmount: 829362,\n legacy: true,\n },\n ],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2024-04-05T11:10:16.533Z\"),\n modifiedAt: new Date(\"2023-02-12T06:44:11.052Z\"),\n type: \"github_repository\",\n description: \"against effector as upbeat yuck\",\n selectable: true,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n properties: {\n repositoryOwner: \"polarsource\",\n repositoryName: \"private_repo\",\n permission: \"maintain\",\n },\n },\n ],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 629236,\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-04-09T15:13:09.162Z\"),\n modifiedAt: new Date(\"2023-02-11T00:08:34.711Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-07-16T10:58:24.296Z\"),\n endsAt: null,\n maxRedemptions: 929853,\n redemptionsCount: 426681,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [\n {\n createdAt: new Date(\"2023-06-23T00:23:01.418Z\"),\n modifiedAt: new Date(\"2023-08-22T07:22:13.326Z\"),\n id: \"<value>\",\n amountType: \"custom\",\n isArchived: false,\n productId: \"<value>\",\n type: \"recurring\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n minimumAmount: 168659,\n maximumAmount: 84871,\n presetAmount: 549701,\n legacy: true,\n },\n ],\n meters: [\n {\n createdAt: new Date(\"2024-10-27T03:26:40.201Z\"),\n modifiedAt: null,\n id: \"<value>\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n \"key\": 99831,\n },\n createdAt: new Date(\"2024-03-30T14:50:52.711Z\"),\n modifiedAt: new Date(\"2024-06-25T05:59:30.258Z\"),\n id: \"<value>\",\n name: \"<value>\",\n filter: {\n conjunction: \"and\",\n clauses: [\n {\n property: \"<value>\",\n operator: \"eq\",\n value: \"<value>\",\n },\n ],\n },\n aggregation: {\n func: \"count\",\n },\n organizationId: \"<value>\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"
1086
+ - target: $["paths"]["subscription.canceled"]["post"]
1087
+ update:
1088
+ "x-codeSamples":
1089
+ - "lang": "typescript"
1090
+ "label": "Typescript (SDK)"
1091
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCanceledPost({\n type: \"subscription.canceled\",\n timestamp: new Date(\"2025-02-09T04:39:02.332Z\"),\n data: {\n createdAt: new Date(\"2025-04-09T17:46:08.645Z\"),\n modifiedAt: null,\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 867179,\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2024-08-12T22:41:41.907Z\"),\n currentPeriodEnd: new Date(\"2023-08-04T03:14:29.655Z\"),\n trialStart: new Date(\"2025-03-21T15:50:39.816Z\"),\n trialEnd: new Date(\"2024-01-07T18:54:45.602Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-05-05T03:28:24.281Z\"),\n startedAt: new Date(\"2024-08-20T02:19:30.433Z\"),\n endsAt: new Date(\"2023-01-03T22:38:10.292Z\"),\n endedAt: null,\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: null,\n checkoutId: \"<value>\",\n customerCancellationReason: \"missing_features\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-06-06T08:13:58.211Z\"),\n modifiedAt: new Date(\"2023-06-07T02:15:24.636Z\"),\n metadata: {\n \"key\": 1764.16,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-03-18T13:26:34.470Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2024-08-22T01:08:59.550Z\"),\n modifiedAt: null,\n trialInterval: \"day\",\n trialIntervalCount: 920579,\n name: \"<value>\",\n description: \"via hm truly\",\n recurringInterval: \"month\",\n recurringIntervalCount: 848785,\n isRecurring: false,\n isArchived: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": true,\n },\n prices: [],\n benefits: [],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/lib\",\n mimeType: \"<value>\",\n size: 83334,\n storageVersion: \"<value>\",\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2024-09-21T18:00:22.332Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2025-04-11T14:16:04.184Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://entire-ethyl.org/\",\n },\n ],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2024-11-19T14:39:19.899Z\"),\n modifiedAt: new Date(\"2024-10-07T08:09:01.589Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n type: \"checkbox\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 350933,\n required: false,\n },\n ],\n },\n discount: {\n duration: \"repeating\",\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-05-20T18:55:11.120Z\"),\n modifiedAt: new Date(\"2025-01-19T16:58:36.968Z\"),\n id: \"<value>\",\n metadata: {\n \"key\": \"<value>\",\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-09-20T02:04:48.363Z\"),\n endsAt: new Date(\"2023-02-23T04:10:00.244Z\"),\n maxRedemptions: 839446,\n redemptionsCount: 119301,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
1092
+ - target: $["paths"]["subscription.created"]["post"]
1093
+ update:
1094
+ "x-codeSamples":
1095
+ - "lang": "typescript"
1096
+ "label": "Typescript (SDK)"
1097
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionCreatedPost({\n type: \"subscription.created\",\n timestamp: new Date(\"2024-05-03T11:46:21.459Z\"),\n data: {\n createdAt: new Date(\"2023-12-03T10:52:23.880Z\"),\n modifiedAt: new Date(\"2024-05-29T05:21:44.072Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 990795,\n status: \"incomplete\",\n currentPeriodStart: new Date(\"2024-01-07T06:33:36.381Z\"),\n currentPeriodEnd: new Date(\"2024-07-30T16:54:44.427Z\"),\n trialStart: new Date(\"2025-01-24T01:20:23.589Z\"),\n trialEnd: new Date(\"2023-09-10T12:12:44.499Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2024-06-27T22:01:23.333Z\"),\n startedAt: new Date(\"2024-07-24T19:43:04.879Z\"),\n endsAt: null,\n endedAt: new Date(\"2024-04-01T08:29:51.925Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"unused\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-09-10T08:59:46.091Z\"),\n modifiedAt: new Date(\"2024-07-06T00:27:46.272Z\"),\n metadata: {\n \"key\": 9576.45,\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-06-26T21:09:46.234Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2023-05-15T22:05:41.858Z\"),\n modifiedAt: new Date(\"2024-01-31T16:35:38.441Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 271531,\n name: \"<value>\",\n description: \"platypus scrape adventurously which cautiously secret completion\",\n recurringInterval: \"year\",\n recurringIntervalCount: 803045,\n isRecurring: false,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 274053,\n type: \"percentage\",\n basisPoints: 1000,\n createdAt: new Date(\"2025-09-05T16:45:03.444Z\"),\n modifiedAt: new Date(\"2025-01-22T02:13:03.697Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2023-02-18T11:12:06.291Z\"),\n endsAt: new Date(\"2024-01-29T14:46:42.846Z\"),\n maxRedemptions: 440571,\n redemptionsCount: 801134,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
1098
+ - target: $["paths"]["subscription.revoked"]["post"]
1099
+ update:
1100
+ "x-codeSamples":
1101
+ - "lang": "typescript"
1102
+ "label": "Typescript (SDK)"
1103
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionRevokedPost({\n type: \"subscription.revoked\",\n timestamp: new Date(\"2024-01-02T06:40:50.860Z\"),\n data: {\n createdAt: new Date(\"2023-03-16T08:42:29.566Z\"),\n modifiedAt: new Date(\"2023-10-28T01:20:21.930Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"day\",\n recurringIntervalCount: 811590,\n status: \"active\",\n currentPeriodStart: new Date(\"2023-05-30T02:07:20.021Z\"),\n currentPeriodEnd: new Date(\"2023-06-01T18:10:42.435Z\"),\n trialStart: new Date(\"2023-02-17T04:59:11.584Z\"),\n trialEnd: new Date(\"2024-02-14T23:20:57.498Z\"),\n cancelAtPeriodEnd: false,\n canceledAt: new Date(\"2023-11-13T16:37:04.348Z\"),\n startedAt: new Date(\"2023-12-28T07:35:48.028Z\"),\n endsAt: new Date(\"2024-01-26T10:24:50.250Z\"),\n endedAt: new Date(\"2024-06-20T16:37:33.284Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"too_expensive\",\n customerCancellationComment: \"<value>\",\n metadata: {\n \"key\": 8717.41,\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-05-28T06:09:58.228Z\"),\n modifiedAt: new Date(\"2025-01-19T04:39:36.127Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2025-05-31T05:10:14.997Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2025-06-26T05:35:27.950Z\"),\n modifiedAt: new Date(\"2024-06-01T00:18:42.763Z\"),\n trialInterval: \"week\",\n trialIntervalCount: 455030,\n name: \"<value>\",\n description: \"overburden quarrelsome outrun phew whose merrily language\",\n recurringInterval: \"year\",\n recurringIntervalCount: 518934,\n isRecurring: true,\n isArchived: false,\n organizationId: \"<value>\",\n metadata: {\n\n },\n prices: [],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2023-12-16T06:31:21.339Z\"),\n modifiedAt: new Date(\"2024-06-28T04:33:55.419Z\"),\n type: \"discord\",\n description: \"yuck after plus meh enrich that\",\n selectable: false,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 484393,\n },\n properties: {\n guildId: \"<id>\",\n roleId: \"<id>\",\n kickMember: false,\n guildToken: \"<value>\",\n },\n },\n ],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/usr/bin\",\n mimeType: \"<value>\",\n size: 968821,\n storageVersion: null,\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2023-08-08T17:21:00.549Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: true,\n createdAt: new Date(\"2023-09-16T06:24:58.018Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://utter-requirement.name\",\n },\n ],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"repeating\",\n durationInMonths: 999351,\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2024-07-01T13:17:29.420Z\"),\n modifiedAt: new Date(\"2025-02-23T14:37:34.479Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2024-12-31T12:49:59.518Z\"),\n endsAt: new Date(\"2024-06-27T11:23:29.412Z\"),\n maxRedemptions: 437648,\n redemptionsCount: 444423,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [\n {\n createdAt: new Date(\"2025-10-03T04:33:30.421Z\"),\n modifiedAt: new Date(\"2023-02-24T01:04:52.565Z\"),\n id: \"<value>\",\n amountType: \"fixed\",\n isArchived: false,\n productId: \"<value>\",\n type: \"one_time\",\n recurringInterval: \"month\",\n priceCurrency: \"<value>\",\n priceAmount: 213583,\n legacy: true,\n },\n ],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
1104
+ - target: $["paths"]["subscription.uncanceled"]["post"]
1105
+ update:
1106
+ "x-codeSamples":
1107
+ - "lang": "typescript"
1108
+ "label": "Typescript (SDK)"
1109
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUncanceledPost({\n type: \"subscription.uncanceled\",\n timestamp: new Date(\"2023-02-06T17:25:10.106Z\"),\n data: {\n createdAt: new Date(\"2023-05-13T11:53:26.507Z\"),\n modifiedAt: null,\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"year\",\n recurringIntervalCount: 406654,\n status: \"incomplete_expired\",\n currentPeriodStart: new Date(\"2025-06-06T02:06:49.326Z\"),\n currentPeriodEnd: new Date(\"2023-04-28T08:16:42.068Z\"),\n trialStart: new Date(\"2023-10-03T23:40:30.923Z\"),\n trialEnd: new Date(\"2024-11-16T02:01:16.824Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2023-12-23T04:50:00.016Z\"),\n startedAt: new Date(\"2024-10-18T16:25:47.209Z\"),\n endsAt: new Date(\"2023-01-21T06:39:24.599Z\"),\n endedAt: new Date(\"2023-06-01T22:55:56.558Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: null,\n customerCancellationReason: \"switched_service\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-12-23T09:30:11.195Z\"),\n modifiedAt: new Date(\"2024-12-20T09:31:52.259Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2023-09-22T11:20:51.361Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2024-10-15T19:47:04.648Z\"),\n modifiedAt: new Date(\"2024-08-04T07:14:33.597Z\"),\n trialInterval: \"month\",\n trialIntervalCount: 449040,\n name: \"<value>\",\n description: \"geez proper whenever exaggerate\",\n recurringInterval: \"week\",\n recurringIntervalCount: 130752,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 4421.44,\n },\n prices: [\n {\n createdAt: new Date(\"2024-02-14T17:42:30.228Z\"),\n modifiedAt: new Date(\"2023-11-01T03:56:36.911Z\"),\n id: \"<value>\",\n amountType: \"seat_based\",\n isArchived: true,\n productId: \"<value>\",\n type: \"one_time\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n seatTiers: {\n tiers: [],\n },\n },\n ],\n benefits: [\n {\n id: \"<value>\",\n createdAt: new Date(\"2025-10-16T22:21:29.269Z\"),\n modifiedAt: new Date(\"2024-12-25T00:51:16.069Z\"),\n type: \"license_keys\",\n description: \"confound consequently fairly around winged lounge hmph\",\n selectable: true,\n deletable: false,\n organizationId: \"<value>\",\n metadata: {\n\n },\n properties: {\n prefix: null,\n expires: {\n ttl: 137943,\n timeframe: \"year\",\n },\n activations: {\n limit: 601895,\n enableCustomerAdmin: false,\n },\n limitUsage: 7151,\n },\n },\n ],\n medias: [\n {\n id: \"<value>\",\n organizationId: \"<value>\",\n name: \"<value>\",\n path: \"/home/user\",\n mimeType: \"<value>\",\n size: 973918,\n storageVersion: null,\n checksumEtag: \"<value>\",\n checksumSha256Base64: \"<value>\",\n checksumSha256Hex: \"<value>\",\n lastModifiedAt: new Date(\"2024-08-03T23:06:56.842Z\"),\n version: \"<value>\",\n service: \"product_media\",\n isUploaded: false,\n createdAt: new Date(\"2024-07-11T07:06:51.985Z\"),\n sizeReadable: \"<value>\",\n publicUrl: \"https://brave-apparatus.org\",\n },\n ],\n attachedCustomFields: [\n {\n customFieldId: \"<value>\",\n customField: {\n createdAt: new Date(\"2024-11-24T20:44:07.855Z\"),\n modifiedAt: new Date(\"2023-01-08T04:12:28.982Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n type: \"number\",\n slug: \"<value>\",\n name: \"<value>\",\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n properties: {},\n },\n order: 641015,\n required: true,\n },\n ],\n },\n discount: {\n duration: \"once\",\n type: \"fixed\",\n basisPoints: 1000,\n createdAt: new Date(\"2023-02-07T10:32:39.606Z\"),\n modifiedAt: new Date(\"2025-11-03T02:51:34.636Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: null,\n endsAt: new Date(\"2024-04-21T02:08:16.256Z\"),\n maxRedemptions: 865781,\n redemptionsCount: 827760,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [],\n },\n });\n\n console.log(result);\n}\n\nrun();"
1110
+ - target: $["paths"]["subscription.updated"]["post"]
1111
+ update:
1112
+ "x-codeSamples":
1113
+ - "lang": "typescript"
1114
+ "label": "Typescript (SDK)"
1115
+ "source": "import { Polar } from \"@polar-sh/sdk\";\n\nconst polar = new Polar();\n\nasync function run() {\n const result = await polar.endpointsubscriptionUpdatedPost({\n type: \"subscription.updated\",\n timestamp: new Date(\"2023-06-24T13:26:25.969Z\"),\n data: {\n createdAt: new Date(\"2024-05-25T12:11:24.717Z\"),\n modifiedAt: new Date(\"2024-07-08T02:17:23.799Z\"),\n id: \"<value>\",\n amount: 10000,\n currency: \"usd\",\n recurringInterval: \"week\",\n recurringIntervalCount: 489836,\n status: \"canceled\",\n currentPeriodStart: new Date(\"2024-06-19T12:29:28.503Z\"),\n currentPeriodEnd: new Date(\"2023-08-24T22:14:10.131Z\"),\n trialStart: new Date(\"2025-12-11T02:41:54.261Z\"),\n trialEnd: new Date(\"2025-12-29T02:13:52.269Z\"),\n cancelAtPeriodEnd: true,\n canceledAt: new Date(\"2025-01-23T22:07:32.693Z\"),\n startedAt: new Date(\"2025-05-14T13:55:44.367Z\"),\n endsAt: new Date(\"2024-10-25T00:53:02.943Z\"),\n endedAt: new Date(\"2023-09-29T06:12:50.252Z\"),\n customerId: \"<value>\",\n productId: \"<value>\",\n discountId: \"<value>\",\n checkoutId: \"<value>\",\n customerCancellationReason: \"switched_service\",\n customerCancellationComment: \"<value>\",\n metadata: {\n\n },\n customer: {\n id: \"992fae2a-2a17-4b7a-8d9e-e287cf90131b\",\n createdAt: new Date(\"2024-02-26T04:35:08.698Z\"),\n modifiedAt: new Date(\"2024-01-10T06:45:35.933Z\"),\n metadata: {\n\n },\n externalId: \"usr_1337\",\n email: \"customer@example.com\",\n emailVerified: true,\n name: \"John Doe\",\n billingAddress: {\n country: \"US\",\n },\n taxId: [\n \"911144442\",\n \"us_ein\",\n ],\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n deletedAt: new Date(\"2024-04-21T20:23:52.355Z\"),\n avatarUrl: \"https://www.gravatar.com/avatar/xxx?d=404\",\n },\n product: {\n id: \"<value>\",\n createdAt: new Date(\"2023-05-10T07:26:17.258Z\"),\n modifiedAt: new Date(\"2025-07-20T14:48:07.590Z\"),\n trialInterval: \"year\",\n trialIntervalCount: 640251,\n name: \"<value>\",\n description: \"swelter when besides utter phew knottily utilization now\",\n recurringInterval: \"year\",\n recurringIntervalCount: null,\n isRecurring: true,\n isArchived: true,\n organizationId: \"<value>\",\n metadata: {\n \"key\": 2229.58,\n },\n prices: [\n {\n createdAt: new Date(\"2024-10-24T03:47:20.035Z\"),\n modifiedAt: new Date(\"2023-07-28T10:52:24.280Z\"),\n id: \"<value>\",\n amountType: \"custom\",\n isArchived: true,\n productId: \"<value>\",\n type: \"one_time\",\n recurringInterval: \"week\",\n priceCurrency: \"<value>\",\n minimumAmount: 588876,\n maximumAmount: 280866,\n presetAmount: 942797,\n legacy: true,\n },\n ],\n benefits: [],\n medias: [],\n attachedCustomFields: [],\n },\n discount: {\n duration: \"once\",\n type: \"percentage\",\n amount: 1000,\n currency: \"usd\",\n createdAt: new Date(\"2025-11-18T23:26:50.006Z\"),\n modifiedAt: new Date(\"2024-05-31T09:53:13.946Z\"),\n id: \"<value>\",\n metadata: {\n\n },\n name: \"<value>\",\n code: \"<value>\",\n startsAt: new Date(\"2025-12-28T16:59:30.195Z\"),\n endsAt: new Date(\"2023-06-09T06:11:59.062Z\"),\n maxRedemptions: 580493,\n redemptionsCount: 595442,\n organizationId: \"1dbfc517-0bbf-4301-9ba8-555ca42b9737\",\n },\n prices: [],\n meters: [\n {\n createdAt: new Date(\"2024-05-25T04:21:31.587Z\"),\n modifiedAt: new Date(\"2024-02-19T12:40:10.475Z\"),\n id: \"<value>\",\n consumedUnits: 25,\n creditedUnits: 100,\n amount: 0,\n meterId: \"d498a884-e2cd-4d3e-8002-f536468a8b22\",\n meter: {\n metadata: {\n\n },\n createdAt: new Date(\"2023-04-12T20:54:06.410Z\"),\n modifiedAt: new Date(\"2025-03-19T14:28:57.223Z\"),\n id: \"<value>\",\n name: \"<value>\",\n filter: {\n conjunction: \"and\",\n clauses: [\n {\n conjunction: \"and\",\n clauses: [],\n },\n ],\n },\n aggregation: {\n func: \"min\",\n property: \"<value>\",\n },\n organizationId: \"<value>\",\n },\n },\n ],\n },\n });\n\n console.log(result);\n}\n\nrun();"