@polar-sh/sdk 1.0.0-alpha.21 → 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 (752) hide show
  1. package/.agents/skills/polar-typescript-sdk/SKILL.md +3 -3
  2. package/.agents/skills/polar-typescript-sdk/references/migration-from-v0.md +1 -1
  3. package/.agents/skills/polar-typescript-sdk/references/usage-events.md +1 -1
  4. package/.agents/skills/polar-typescript-sdk/references/webhooks.md +1 -1
  5. package/README.md +6 -8
  6. package/dist/2026-04/index.cjs +2 -1
  7. package/dist/2026-04/index.cjs.map +1 -1
  8. package/dist/2026-04/index.d.cts +2 -2
  9. package/dist/2026-04/index.d.mts +2 -2
  10. package/dist/2026-04/index.mjs +2 -1
  11. package/dist/2026-04/index.mjs.map +1 -1
  12. package/dist/2026-04/services/benefit_grants.cjs +1 -1
  13. package/dist/2026-04/services/benefit_grants.d.cts +1 -1
  14. package/dist/2026-04/services/benefit_grants.d.mts +1 -1
  15. package/dist/2026-04/services/benefit_grants.mjs +1 -1
  16. package/dist/2026-04/services/benefits.cjs +1 -1
  17. package/dist/2026-04/services/benefits.d.cts +1 -1
  18. package/dist/2026-04/services/benefits.d.mts +1 -1
  19. package/dist/2026-04/services/benefits.mjs +1 -1
  20. package/dist/2026-04/services/checkout_links.cjs +1 -1
  21. package/dist/2026-04/services/checkout_links.d.cts +1 -1
  22. package/dist/2026-04/services/checkout_links.d.mts +1 -1
  23. package/dist/2026-04/services/checkout_links.mjs +1 -1
  24. package/dist/2026-04/services/checkouts.cjs +7 -1
  25. package/dist/2026-04/services/checkouts.cjs.map +1 -1
  26. package/dist/2026-04/services/checkouts.d.cts +1 -1
  27. package/dist/2026-04/services/checkouts.d.cts.map +1 -1
  28. package/dist/2026-04/services/checkouts.d.mts +1 -1
  29. package/dist/2026-04/services/checkouts.d.mts.map +1 -1
  30. package/dist/2026-04/services/checkouts.mjs +7 -1
  31. package/dist/2026-04/services/checkouts.mjs.map +1 -1
  32. package/dist/2026-04/services/custom_fields.cjs +1 -1
  33. package/dist/2026-04/services/custom_fields.d.cts +1 -1
  34. package/dist/2026-04/services/custom_fields.d.mts +1 -1
  35. package/dist/2026-04/services/custom_fields.mjs +1 -1
  36. package/dist/2026-04/services/customer_meters.cjs +1 -1
  37. package/dist/2026-04/services/customer_meters.d.cts +1 -1
  38. package/dist/2026-04/services/customer_meters.d.mts +1 -1
  39. package/dist/2026-04/services/customer_meters.mjs +1 -1
  40. package/dist/2026-04/services/customer_portal/benefit_grants.cjs +1 -1
  41. package/dist/2026-04/services/customer_portal/benefit_grants.d.cts +1 -1
  42. package/dist/2026-04/services/customer_portal/benefit_grants.d.mts +1 -1
  43. package/dist/2026-04/services/customer_portal/benefit_grants.mjs +1 -1
  44. package/dist/2026-04/services/customer_portal/customer_meters.cjs +1 -1
  45. package/dist/2026-04/services/customer_portal/customer_meters.d.cts +1 -1
  46. package/dist/2026-04/services/customer_portal/customer_meters.d.mts +1 -1
  47. package/dist/2026-04/services/customer_portal/customer_meters.mjs +1 -1
  48. package/dist/2026-04/services/customer_portal/customer_session.d.cts +1 -1
  49. package/dist/2026-04/services/customer_portal/customer_session.d.mts +1 -1
  50. package/dist/2026-04/services/customer_portal/customers.cjs +1 -1
  51. package/dist/2026-04/services/customer_portal/customers.d.cts +1 -1
  52. package/dist/2026-04/services/customer_portal/customers.d.mts +1 -1
  53. package/dist/2026-04/services/customer_portal/customers.mjs +1 -1
  54. package/dist/2026-04/services/customer_portal/downloadables.cjs +1 -1
  55. package/dist/2026-04/services/customer_portal/downloadables.d.cts +1 -1
  56. package/dist/2026-04/services/customer_portal/downloadables.d.mts +1 -1
  57. package/dist/2026-04/services/customer_portal/downloadables.mjs +1 -1
  58. package/dist/2026-04/services/customer_portal/index.d.cts +3 -3
  59. package/dist/2026-04/services/customer_portal/index.d.cts.map +1 -1
  60. package/dist/2026-04/services/customer_portal/index.d.mts +3 -3
  61. package/dist/2026-04/services/customer_portal/index.d.mts.map +1 -1
  62. package/dist/2026-04/services/customer_portal/license_keys.cjs +8 -6
  63. package/dist/2026-04/services/customer_portal/license_keys.cjs.map +1 -1
  64. package/dist/2026-04/services/customer_portal/license_keys.d.cts +5 -5
  65. package/dist/2026-04/services/customer_portal/license_keys.d.cts.map +1 -1
  66. package/dist/2026-04/services/customer_portal/license_keys.d.mts +5 -5
  67. package/dist/2026-04/services/customer_portal/license_keys.d.mts.map +1 -1
  68. package/dist/2026-04/services/customer_portal/license_keys.mjs +8 -6
  69. package/dist/2026-04/services/customer_portal/license_keys.mjs.map +1 -1
  70. package/dist/2026-04/services/customer_portal/members.cjs +1 -1
  71. package/dist/2026-04/services/customer_portal/members.d.cts +1 -1
  72. package/dist/2026-04/services/customer_portal/members.d.mts +1 -1
  73. package/dist/2026-04/services/customer_portal/members.mjs +1 -1
  74. package/dist/2026-04/services/customer_portal/orders.cjs +1 -1
  75. package/dist/2026-04/services/customer_portal/orders.d.cts +1 -1
  76. package/dist/2026-04/services/customer_portal/orders.d.mts +1 -1
  77. package/dist/2026-04/services/customer_portal/orders.mjs +1 -1
  78. package/dist/2026-04/services/customer_portal/organizations.cjs +1 -1
  79. package/dist/2026-04/services/customer_portal/organizations.d.cts +1 -1
  80. package/dist/2026-04/services/customer_portal/organizations.d.mts +1 -1
  81. package/dist/2026-04/services/customer_portal/organizations.mjs +1 -1
  82. package/dist/2026-04/services/customer_portal/seats.cjs +1 -1
  83. package/dist/2026-04/services/customer_portal/seats.d.cts +1 -1
  84. package/dist/2026-04/services/customer_portal/seats.d.mts +1 -1
  85. package/dist/2026-04/services/customer_portal/seats.mjs +1 -1
  86. package/dist/2026-04/services/customer_portal/subscriptions.cjs +1 -1
  87. package/dist/2026-04/services/customer_portal/subscriptions.d.cts +1 -1
  88. package/dist/2026-04/services/customer_portal/subscriptions.d.mts +1 -1
  89. package/dist/2026-04/services/customer_portal/subscriptions.mjs +1 -1
  90. package/dist/2026-04/services/customer_portal/wallets.cjs +1 -1
  91. package/dist/2026-04/services/customer_portal/wallets.d.cts +1 -1
  92. package/dist/2026-04/services/customer_portal/wallets.d.mts +1 -1
  93. package/dist/2026-04/services/customer_portal/wallets.mjs +1 -1
  94. package/dist/2026-04/services/customer_seats.cjs +1 -1
  95. package/dist/2026-04/services/customer_seats.d.cts +1 -1
  96. package/dist/2026-04/services/customer_seats.d.mts +1 -1
  97. package/dist/2026-04/services/customer_seats.mjs +1 -1
  98. package/dist/2026-04/services/customer_sessions.cjs +1 -1
  99. package/dist/2026-04/services/customer_sessions.d.cts +1 -1
  100. package/dist/2026-04/services/customer_sessions.d.mts +1 -1
  101. package/dist/2026-04/services/customer_sessions.mjs +1 -1
  102. package/dist/2026-04/services/customers/index.cjs +1 -1
  103. package/dist/2026-04/services/customers/index.d.cts +1 -1
  104. package/dist/2026-04/services/customers/index.d.mts +1 -1
  105. package/dist/2026-04/services/customers/index.mjs +1 -1
  106. package/dist/2026-04/services/customers/members.cjs +1 -1
  107. package/dist/2026-04/services/customers/members.d.cts +1 -1
  108. package/dist/2026-04/services/customers/members.d.mts +1 -1
  109. package/dist/2026-04/services/customers/members.mjs +1 -1
  110. package/dist/2026-04/services/discounts.cjs +1 -1
  111. package/dist/2026-04/services/discounts.d.cts +1 -1
  112. package/dist/2026-04/services/discounts.d.mts +1 -1
  113. package/dist/2026-04/services/discounts.mjs +1 -1
  114. package/dist/2026-04/services/disputes.cjs +1 -1
  115. package/dist/2026-04/services/disputes.d.cts +1 -1
  116. package/dist/2026-04/services/disputes.d.mts +1 -1
  117. package/dist/2026-04/services/disputes.mjs +1 -1
  118. package/dist/2026-04/services/event_types.cjs +1 -1
  119. package/dist/2026-04/services/event_types.d.cts +1 -1
  120. package/dist/2026-04/services/event_types.d.mts +1 -1
  121. package/dist/2026-04/services/event_types.mjs +1 -1
  122. package/dist/2026-04/services/events.cjs +1 -1
  123. package/dist/2026-04/services/events.d.cts +1 -1
  124. package/dist/2026-04/services/events.d.mts +1 -1
  125. package/dist/2026-04/services/events.mjs +1 -1
  126. package/dist/2026-04/services/files.cjs +1 -1
  127. package/dist/2026-04/services/files.d.cts +1 -1
  128. package/dist/2026-04/services/files.d.mts +1 -1
  129. package/dist/2026-04/services/files.mjs +1 -1
  130. package/dist/2026-04/services/license_keys.cjs +9 -7
  131. package/dist/2026-04/services/license_keys.cjs.map +1 -1
  132. package/dist/2026-04/services/license_keys.d.cts +5 -5
  133. package/dist/2026-04/services/license_keys.d.cts.map +1 -1
  134. package/dist/2026-04/services/license_keys.d.mts +5 -5
  135. package/dist/2026-04/services/license_keys.d.mts.map +1 -1
  136. package/dist/2026-04/services/license_keys.mjs +9 -7
  137. package/dist/2026-04/services/license_keys.mjs.map +1 -1
  138. package/dist/2026-04/services/meters.cjs +1 -1
  139. package/dist/2026-04/services/meters.d.cts +1 -1
  140. package/dist/2026-04/services/meters.d.mts +1 -1
  141. package/dist/2026-04/services/meters.mjs +1 -1
  142. package/dist/2026-04/services/metrics.cjs +1 -1
  143. package/dist/2026-04/services/metrics.d.cts +1 -1
  144. package/dist/2026-04/services/metrics.d.mts +1 -1
  145. package/dist/2026-04/services/metrics.mjs +1 -1
  146. package/dist/2026-04/services/oauth2/clients/index.d.cts +1 -1
  147. package/dist/2026-04/services/oauth2/clients/index.d.mts +1 -1
  148. package/dist/2026-04/services/oauth2/clients/oauth2.cjs +1 -1
  149. package/dist/2026-04/services/oauth2/clients/oauth2.d.cts +1 -1
  150. package/dist/2026-04/services/oauth2/clients/oauth2.d.mts +1 -1
  151. package/dist/2026-04/services/oauth2/clients/oauth2.mjs +1 -1
  152. package/dist/2026-04/services/oauth2/index.d.cts +1 -1
  153. package/dist/2026-04/services/oauth2/index.d.mts +1 -1
  154. package/dist/2026-04/services/orders.cjs +1 -1
  155. package/dist/2026-04/services/orders.d.cts +1 -1
  156. package/dist/2026-04/services/orders.d.mts +1 -1
  157. package/dist/2026-04/services/orders.mjs +1 -1
  158. package/dist/2026-04/services/organizations.cjs +1 -1
  159. package/dist/2026-04/services/organizations.d.cts +1 -1
  160. package/dist/2026-04/services/organizations.d.mts +1 -1
  161. package/dist/2026-04/services/organizations.mjs +1 -1
  162. package/dist/2026-04/services/payments.cjs +1 -1
  163. package/dist/2026-04/services/payments.d.cts +1 -1
  164. package/dist/2026-04/services/payments.d.mts +1 -1
  165. package/dist/2026-04/services/payments.mjs +1 -1
  166. package/dist/2026-04/services/products.cjs +35 -1
  167. package/dist/2026-04/services/products.cjs.map +1 -1
  168. package/dist/2026-04/services/products.d.cts +4 -2
  169. package/dist/2026-04/services/products.d.cts.map +1 -1
  170. package/dist/2026-04/services/products.d.mts +4 -2
  171. package/dist/2026-04/services/products.d.mts.map +1 -1
  172. package/dist/2026-04/services/products.mjs +35 -2
  173. package/dist/2026-04/services/products.mjs.map +1 -1
  174. package/dist/2026-04/services/refunds.cjs +1 -1
  175. package/dist/2026-04/services/refunds.d.cts +1 -1
  176. package/dist/2026-04/services/refunds.d.mts +1 -1
  177. package/dist/2026-04/services/refunds.mjs +1 -1
  178. package/dist/2026-04/services/subscriptions.cjs +4 -4
  179. package/dist/2026-04/services/subscriptions.cjs.map +1 -1
  180. package/dist/2026-04/services/subscriptions.d.cts +1 -1
  181. package/dist/2026-04/services/subscriptions.d.mts +1 -1
  182. package/dist/2026-04/services/subscriptions.mjs +4 -4
  183. package/dist/2026-04/services/subscriptions.mjs.map +1 -1
  184. package/dist/2026-04/services/webhooks.cjs +1 -1
  185. package/dist/2026-04/services/webhooks.d.cts +1 -1
  186. package/dist/2026-04/services/webhooks.d.mts +1 -1
  187. package/dist/2026-04/services/webhooks.mjs +1 -1
  188. package/dist/2026-10/index.cjs +2 -1
  189. package/dist/2026-10/index.cjs.map +1 -1
  190. package/dist/2026-10/index.d.cts +2 -2
  191. package/dist/2026-10/index.d.mts +2 -2
  192. package/dist/2026-10/index.mjs +2 -1
  193. package/dist/2026-10/index.mjs.map +1 -1
  194. package/dist/2026-10/services/benefit_grants.cjs +1 -1
  195. package/dist/2026-10/services/benefit_grants.d.cts +1 -1
  196. package/dist/2026-10/services/benefit_grants.d.mts +1 -1
  197. package/dist/2026-10/services/benefit_grants.mjs +1 -1
  198. package/dist/2026-10/services/benefits.cjs +1 -1
  199. package/dist/2026-10/services/benefits.d.cts +1 -1
  200. package/dist/2026-10/services/benefits.d.mts +1 -1
  201. package/dist/2026-10/services/benefits.mjs +1 -1
  202. package/dist/2026-10/services/checkout_links.cjs +1 -1
  203. package/dist/2026-10/services/checkout_links.d.cts +1 -1
  204. package/dist/2026-10/services/checkout_links.d.mts +1 -1
  205. package/dist/2026-10/services/checkout_links.mjs +1 -1
  206. package/dist/2026-10/services/checkouts.cjs +7 -1
  207. package/dist/2026-10/services/checkouts.cjs.map +1 -1
  208. package/dist/2026-10/services/checkouts.d.cts +1 -1
  209. package/dist/2026-10/services/checkouts.d.cts.map +1 -1
  210. package/dist/2026-10/services/checkouts.d.mts +1 -1
  211. package/dist/2026-10/services/checkouts.d.mts.map +1 -1
  212. package/dist/2026-10/services/checkouts.mjs +7 -1
  213. package/dist/2026-10/services/checkouts.mjs.map +1 -1
  214. package/dist/2026-10/services/custom_fields.cjs +1 -1
  215. package/dist/2026-10/services/custom_fields.d.cts +1 -1
  216. package/dist/2026-10/services/custom_fields.d.mts +1 -1
  217. package/dist/2026-10/services/custom_fields.mjs +1 -1
  218. package/dist/2026-10/services/customer_meters.cjs +1 -1
  219. package/dist/2026-10/services/customer_meters.d.cts +1 -1
  220. package/dist/2026-10/services/customer_meters.d.mts +1 -1
  221. package/dist/2026-10/services/customer_meters.mjs +1 -1
  222. package/dist/2026-10/services/customer_portal/benefit_grants.cjs +1 -1
  223. package/dist/2026-10/services/customer_portal/benefit_grants.d.cts +1 -1
  224. package/dist/2026-10/services/customer_portal/benefit_grants.d.mts +1 -1
  225. package/dist/2026-10/services/customer_portal/benefit_grants.mjs +1 -1
  226. package/dist/2026-10/services/customer_portal/customer_meters.cjs +1 -1
  227. package/dist/2026-10/services/customer_portal/customer_meters.d.cts +1 -1
  228. package/dist/2026-10/services/customer_portal/customer_meters.d.mts +1 -1
  229. package/dist/2026-10/services/customer_portal/customer_meters.mjs +1 -1
  230. package/dist/2026-10/services/customer_portal/customer_session.d.cts +1 -1
  231. package/dist/2026-10/services/customer_portal/customer_session.d.mts +1 -1
  232. package/dist/2026-10/services/customer_portal/customers.cjs +1 -1
  233. package/dist/2026-10/services/customer_portal/customers.d.cts +1 -1
  234. package/dist/2026-10/services/customer_portal/customers.d.mts +1 -1
  235. package/dist/2026-10/services/customer_portal/customers.mjs +1 -1
  236. package/dist/2026-10/services/customer_portal/downloadables.cjs +1 -1
  237. package/dist/2026-10/services/customer_portal/downloadables.d.cts +1 -1
  238. package/dist/2026-10/services/customer_portal/downloadables.d.mts +1 -1
  239. package/dist/2026-10/services/customer_portal/downloadables.mjs +1 -1
  240. package/dist/2026-10/services/customer_portal/index.d.cts +3 -3
  241. package/dist/2026-10/services/customer_portal/index.d.cts.map +1 -1
  242. package/dist/2026-10/services/customer_portal/index.d.mts +3 -3
  243. package/dist/2026-10/services/customer_portal/index.d.mts.map +1 -1
  244. package/dist/2026-10/services/customer_portal/license_keys.cjs +8 -6
  245. package/dist/2026-10/services/customer_portal/license_keys.cjs.map +1 -1
  246. package/dist/2026-10/services/customer_portal/license_keys.d.cts +5 -5
  247. package/dist/2026-10/services/customer_portal/license_keys.d.cts.map +1 -1
  248. package/dist/2026-10/services/customer_portal/license_keys.d.mts +5 -5
  249. package/dist/2026-10/services/customer_portal/license_keys.d.mts.map +1 -1
  250. package/dist/2026-10/services/customer_portal/license_keys.mjs +8 -6
  251. package/dist/2026-10/services/customer_portal/license_keys.mjs.map +1 -1
  252. package/dist/2026-10/services/customer_portal/members.cjs +1 -1
  253. package/dist/2026-10/services/customer_portal/members.d.cts +1 -1
  254. package/dist/2026-10/services/customer_portal/members.d.mts +1 -1
  255. package/dist/2026-10/services/customer_portal/members.mjs +1 -1
  256. package/dist/2026-10/services/customer_portal/orders.cjs +1 -1
  257. package/dist/2026-10/services/customer_portal/orders.d.cts +1 -1
  258. package/dist/2026-10/services/customer_portal/orders.d.mts +1 -1
  259. package/dist/2026-10/services/customer_portal/orders.mjs +1 -1
  260. package/dist/2026-10/services/customer_portal/organizations.cjs +1 -1
  261. package/dist/2026-10/services/customer_portal/organizations.d.cts +1 -1
  262. package/dist/2026-10/services/customer_portal/organizations.d.mts +1 -1
  263. package/dist/2026-10/services/customer_portal/organizations.mjs +1 -1
  264. package/dist/2026-10/services/customer_portal/seats.cjs +1 -1
  265. package/dist/2026-10/services/customer_portal/seats.d.cts +1 -1
  266. package/dist/2026-10/services/customer_portal/seats.d.mts +1 -1
  267. package/dist/2026-10/services/customer_portal/seats.mjs +1 -1
  268. package/dist/2026-10/services/customer_portal/subscriptions.cjs +1 -1
  269. package/dist/2026-10/services/customer_portal/subscriptions.d.cts +1 -1
  270. package/dist/2026-10/services/customer_portal/subscriptions.d.mts +1 -1
  271. package/dist/2026-10/services/customer_portal/subscriptions.mjs +1 -1
  272. package/dist/2026-10/services/customer_portal/wallets.cjs +1 -1
  273. package/dist/2026-10/services/customer_portal/wallets.d.cts +1 -1
  274. package/dist/2026-10/services/customer_portal/wallets.d.mts +1 -1
  275. package/dist/2026-10/services/customer_portal/wallets.mjs +1 -1
  276. package/dist/2026-10/services/customer_seats.cjs +1 -1
  277. package/dist/2026-10/services/customer_seats.d.cts +1 -1
  278. package/dist/2026-10/services/customer_seats.d.mts +1 -1
  279. package/dist/2026-10/services/customer_seats.mjs +1 -1
  280. package/dist/2026-10/services/customer_sessions.cjs +1 -1
  281. package/dist/2026-10/services/customer_sessions.d.cts +1 -1
  282. package/dist/2026-10/services/customer_sessions.d.mts +1 -1
  283. package/dist/2026-10/services/customer_sessions.mjs +1 -1
  284. package/dist/2026-10/services/customers/index.cjs +1 -1
  285. package/dist/2026-10/services/customers/index.d.cts +1 -1
  286. package/dist/2026-10/services/customers/index.d.mts +1 -1
  287. package/dist/2026-10/services/customers/index.mjs +1 -1
  288. package/dist/2026-10/services/customers/members.cjs +1 -1
  289. package/dist/2026-10/services/customers/members.d.cts +1 -1
  290. package/dist/2026-10/services/customers/members.d.mts +1 -1
  291. package/dist/2026-10/services/customers/members.mjs +1 -1
  292. package/dist/2026-10/services/discounts.cjs +1 -1
  293. package/dist/2026-10/services/discounts.d.cts +1 -1
  294. package/dist/2026-10/services/discounts.d.mts +1 -1
  295. package/dist/2026-10/services/discounts.mjs +1 -1
  296. package/dist/2026-10/services/disputes.cjs +1 -1
  297. package/dist/2026-10/services/disputes.d.cts +1 -1
  298. package/dist/2026-10/services/disputes.d.mts +1 -1
  299. package/dist/2026-10/services/disputes.mjs +1 -1
  300. package/dist/2026-10/services/event_types.cjs +1 -1
  301. package/dist/2026-10/services/event_types.d.cts +1 -1
  302. package/dist/2026-10/services/event_types.d.mts +1 -1
  303. package/dist/2026-10/services/event_types.mjs +1 -1
  304. package/dist/2026-10/services/events.cjs +1 -1
  305. package/dist/2026-10/services/events.d.cts +1 -1
  306. package/dist/2026-10/services/events.d.mts +1 -1
  307. package/dist/2026-10/services/events.mjs +1 -1
  308. package/dist/2026-10/services/files.cjs +1 -1
  309. package/dist/2026-10/services/files.d.cts +1 -1
  310. package/dist/2026-10/services/files.d.mts +1 -1
  311. package/dist/2026-10/services/files.mjs +1 -1
  312. package/dist/2026-10/services/license_keys.cjs +9 -7
  313. package/dist/2026-10/services/license_keys.cjs.map +1 -1
  314. package/dist/2026-10/services/license_keys.d.cts +5 -5
  315. package/dist/2026-10/services/license_keys.d.cts.map +1 -1
  316. package/dist/2026-10/services/license_keys.d.mts +5 -5
  317. package/dist/2026-10/services/license_keys.d.mts.map +1 -1
  318. package/dist/2026-10/services/license_keys.mjs +9 -7
  319. package/dist/2026-10/services/license_keys.mjs.map +1 -1
  320. package/dist/2026-10/services/meters.cjs +1 -1
  321. package/dist/2026-10/services/meters.d.cts +1 -1
  322. package/dist/2026-10/services/meters.d.mts +1 -1
  323. package/dist/2026-10/services/meters.mjs +1 -1
  324. package/dist/2026-10/services/metrics.cjs +1 -1
  325. package/dist/2026-10/services/metrics.d.cts +1 -1
  326. package/dist/2026-10/services/metrics.d.mts +1 -1
  327. package/dist/2026-10/services/metrics.mjs +1 -1
  328. package/dist/2026-10/services/oauth2/clients/index.d.cts +1 -1
  329. package/dist/2026-10/services/oauth2/clients/index.d.mts +1 -1
  330. package/dist/2026-10/services/oauth2/clients/oauth2.cjs +1 -1
  331. package/dist/2026-10/services/oauth2/clients/oauth2.d.cts +1 -1
  332. package/dist/2026-10/services/oauth2/clients/oauth2.d.mts +1 -1
  333. package/dist/2026-10/services/oauth2/clients/oauth2.mjs +1 -1
  334. package/dist/2026-10/services/oauth2/index.d.cts +1 -1
  335. package/dist/2026-10/services/oauth2/index.d.mts +1 -1
  336. package/dist/2026-10/services/orders.cjs +1 -1
  337. package/dist/2026-10/services/orders.d.cts +1 -1
  338. package/dist/2026-10/services/orders.d.mts +1 -1
  339. package/dist/2026-10/services/orders.mjs +1 -1
  340. package/dist/2026-10/services/organizations.cjs +1 -1
  341. package/dist/2026-10/services/organizations.d.cts +1 -1
  342. package/dist/2026-10/services/organizations.d.mts +1 -1
  343. package/dist/2026-10/services/organizations.mjs +1 -1
  344. package/dist/2026-10/services/payments.cjs +1 -1
  345. package/dist/2026-10/services/payments.d.cts +1 -1
  346. package/dist/2026-10/services/payments.d.mts +1 -1
  347. package/dist/2026-10/services/payments.mjs +1 -1
  348. package/dist/2026-10/services/products.cjs +35 -1
  349. package/dist/2026-10/services/products.cjs.map +1 -1
  350. package/dist/2026-10/services/products.d.cts +4 -2
  351. package/dist/2026-10/services/products.d.cts.map +1 -1
  352. package/dist/2026-10/services/products.d.mts +4 -2
  353. package/dist/2026-10/services/products.d.mts.map +1 -1
  354. package/dist/2026-10/services/products.mjs +35 -2
  355. package/dist/2026-10/services/products.mjs.map +1 -1
  356. package/dist/2026-10/services/refunds.cjs +1 -1
  357. package/dist/2026-10/services/refunds.d.cts +1 -1
  358. package/dist/2026-10/services/refunds.d.mts +1 -1
  359. package/dist/2026-10/services/refunds.mjs +1 -1
  360. package/dist/2026-10/services/subscriptions.cjs +4 -4
  361. package/dist/2026-10/services/subscriptions.cjs.map +1 -1
  362. package/dist/2026-10/services/subscriptions.d.cts +1 -1
  363. package/dist/2026-10/services/subscriptions.d.mts +1 -1
  364. package/dist/2026-10/services/subscriptions.mjs +4 -4
  365. package/dist/2026-10/services/subscriptions.mjs.map +1 -1
  366. package/dist/2026-10/services/webhooks.cjs +1 -1
  367. package/dist/2026-10/services/webhooks.d.cts +1 -1
  368. package/dist/2026-10/services/webhooks.d.mts +1 -1
  369. package/dist/2026-10/services/webhooks.mjs +1 -1
  370. package/dist/2027-01/index.cjs +158 -0
  371. package/dist/2027-01/index.cjs.map +1 -0
  372. package/dist/2027-01/index.d.cts +4 -0
  373. package/dist/2027-01/index.d.mts +4 -0
  374. package/dist/2027-01/index.mjs +138 -0
  375. package/dist/2027-01/index.mjs.map +1 -0
  376. package/dist/2027-01/services/benefit_grants.cjs +76 -0
  377. package/dist/2027-01/services/benefit_grants.cjs.map +1 -0
  378. package/dist/2027-01/services/benefit_grants.d.cts +58 -0
  379. package/dist/2027-01/services/benefit_grants.d.cts.map +1 -0
  380. package/dist/2027-01/services/benefit_grants.d.mts +58 -0
  381. package/dist/2027-01/services/benefit_grants.d.mts.map +1 -0
  382. package/dist/2027-01/services/benefit_grants.mjs +73 -0
  383. package/dist/2027-01/services/benefit_grants.mjs.map +1 -0
  384. package/dist/2027-01/services/benefits.cjs +329 -0
  385. package/dist/2027-01/services/benefits.cjs.map +1 -0
  386. package/dist/2027-01/services/benefits.d.cts +150 -0
  387. package/dist/2027-01/services/benefits.d.cts.map +1 -0
  388. package/dist/2027-01/services/benefits.d.mts +150 -0
  389. package/dist/2027-01/services/benefits.d.mts.map +1 -0
  390. package/dist/2027-01/services/benefits.mjs +318 -0
  391. package/dist/2027-01/services/benefits.mjs.map +1 -0
  392. package/dist/2027-01/services/checkout_links.cjs +178 -0
  393. package/dist/2027-01/services/checkout_links.cjs.map +1 -0
  394. package/dist/2027-01/services/checkout_links.d.cts +58 -0
  395. package/dist/2027-01/services/checkout_links.d.cts.map +1 -0
  396. package/dist/2027-01/services/checkout_links.d.mts +58 -0
  397. package/dist/2027-01/services/checkout_links.d.mts.map +1 -0
  398. package/dist/2027-01/services/checkout_links.mjs +171 -0
  399. package/dist/2027-01/services/checkout_links.mjs.map +1 -0
  400. package/dist/2027-01/services/checkouts.cjs +254 -0
  401. package/dist/2027-01/services/checkouts.cjs.map +1 -0
  402. package/dist/2027-01/services/checkouts.d.cts +78 -0
  403. package/dist/2027-01/services/checkouts.d.cts.map +1 -0
  404. package/dist/2027-01/services/checkouts.d.mts +78 -0
  405. package/dist/2027-01/services/checkouts.d.mts.map +1 -0
  406. package/dist/2027-01/services/checkouts.mjs +245 -0
  407. package/dist/2027-01/services/checkouts.mjs.map +1 -0
  408. package/dist/2027-01/services/custom_fields.cjs +179 -0
  409. package/dist/2027-01/services/custom_fields.cjs.map +1 -0
  410. package/dist/2027-01/services/custom_fields.d.cts +62 -0
  411. package/dist/2027-01/services/custom_fields.d.cts.map +1 -0
  412. package/dist/2027-01/services/custom_fields.d.mts +62 -0
  413. package/dist/2027-01/services/custom_fields.d.mts.map +1 -0
  414. package/dist/2027-01/services/custom_fields.mjs +172 -0
  415. package/dist/2027-01/services/custom_fields.mjs.map +1 -0
  416. package/dist/2027-01/services/customer_meters.cjs +103 -0
  417. package/dist/2027-01/services/customer_meters.cjs.map +1 -0
  418. package/dist/2027-01/services/customer_meters.d.cts +60 -0
  419. package/dist/2027-01/services/customer_meters.d.cts.map +1 -0
  420. package/dist/2027-01/services/customer_meters.d.mts +60 -0
  421. package/dist/2027-01/services/customer_meters.d.mts.map +1 -0
  422. package/dist/2027-01/services/customer_meters.mjs +99 -0
  423. package/dist/2027-01/services/customer_meters.mjs.map +1 -0
  424. package/dist/2027-01/services/customer_portal/benefit_grants.cjs +136 -0
  425. package/dist/2027-01/services/customer_portal/benefit_grants.cjs.map +1 -0
  426. package/dist/2027-01/services/customer_portal/benefit_grants.d.cts +74 -0
  427. package/dist/2027-01/services/customer_portal/benefit_grants.d.cts.map +1 -0
  428. package/dist/2027-01/services/customer_portal/benefit_grants.d.mts +74 -0
  429. package/dist/2027-01/services/customer_portal/benefit_grants.d.mts.map +1 -0
  430. package/dist/2027-01/services/customer_portal/benefit_grants.mjs +131 -0
  431. package/dist/2027-01/services/customer_portal/benefit_grants.mjs.map +1 -0
  432. package/dist/2027-01/services/customer_portal/customer_meters.cjs +101 -0
  433. package/dist/2027-01/services/customer_portal/customer_meters.cjs.map +1 -0
  434. package/dist/2027-01/services/customer_portal/customer_meters.d.cts +52 -0
  435. package/dist/2027-01/services/customer_portal/customer_meters.d.cts.map +1 -0
  436. package/dist/2027-01/services/customer_portal/customer_meters.d.mts +52 -0
  437. package/dist/2027-01/services/customer_portal/customer_meters.d.mts.map +1 -0
  438. package/dist/2027-01/services/customer_portal/customer_meters.mjs +97 -0
  439. package/dist/2027-01/services/customer_portal/customer_meters.mjs.map +1 -0
  440. package/dist/2027-01/services/customer_portal/customer_session.cjs +50 -0
  441. package/dist/2027-01/services/customer_portal/customer_session.cjs.map +1 -0
  442. package/dist/2027-01/services/customer_portal/customer_session.d.cts +13 -0
  443. package/dist/2027-01/services/customer_portal/customer_session.d.cts.map +1 -0
  444. package/dist/2027-01/services/customer_portal/customer_session.d.mts +13 -0
  445. package/dist/2027-01/services/customer_portal/customer_session.d.mts.map +1 -0
  446. package/dist/2027-01/services/customer_portal/customer_session.mjs +47 -0
  447. package/dist/2027-01/services/customer_portal/customer_session.mjs.map +1 -0
  448. package/dist/2027-01/services/customer_portal/customers.cjs +252 -0
  449. package/dist/2027-01/services/customer_portal/customers.cjs.map +1 -0
  450. package/dist/2027-01/services/customer_portal/customers.d.cts +56 -0
  451. package/dist/2027-01/services/customer_portal/customers.d.cts.map +1 -0
  452. package/dist/2027-01/services/customer_portal/customers.d.mts +56 -0
  453. package/dist/2027-01/services/customer_portal/customers.d.mts.map +1 -0
  454. package/dist/2027-01/services/customer_portal/customers.mjs +241 -0
  455. package/dist/2027-01/services/customer_portal/customers.mjs.map +1 -0
  456. package/dist/2027-01/services/customer_portal/downloadables.cjs +68 -0
  457. package/dist/2027-01/services/customer_portal/downloadables.cjs.map +1 -0
  458. package/dist/2027-01/services/customer_portal/downloadables.d.cts +40 -0
  459. package/dist/2027-01/services/customer_portal/downloadables.d.cts.map +1 -0
  460. package/dist/2027-01/services/customer_portal/downloadables.d.mts +40 -0
  461. package/dist/2027-01/services/customer_portal/downloadables.d.mts.map +1 -0
  462. package/dist/2027-01/services/customer_portal/downloadables.mjs +65 -0
  463. package/dist/2027-01/services/customer_portal/downloadables.mjs.map +1 -0
  464. package/dist/2027-01/services/customer_portal/index.cjs +34 -0
  465. package/dist/2027-01/services/customer_portal/index.cjs.map +1 -0
  466. package/dist/2027-01/services/customer_portal/index.d.cts +201 -0
  467. package/dist/2027-01/services/customer_portal/index.d.cts.map +1 -0
  468. package/dist/2027-01/services/customer_portal/index.d.mts +201 -0
  469. package/dist/2027-01/services/customer_portal/index.d.mts.map +1 -0
  470. package/dist/2027-01/services/customer_portal/index.mjs +33 -0
  471. package/dist/2027-01/services/customer_portal/index.mjs.map +1 -0
  472. package/dist/2027-01/services/customer_portal/license_keys.cjs +229 -0
  473. package/dist/2027-01/services/customer_portal/license_keys.cjs.map +1 -0
  474. package/dist/2027-01/services/customer_portal/license_keys.d.cts +52 -0
  475. package/dist/2027-01/services/customer_portal/license_keys.d.cts.map +1 -0
  476. package/dist/2027-01/services/customer_portal/license_keys.d.mts +52 -0
  477. package/dist/2027-01/services/customer_portal/license_keys.d.mts.map +1 -0
  478. package/dist/2027-01/services/customer_portal/license_keys.mjs +221 -0
  479. package/dist/2027-01/services/customer_portal/license_keys.mjs.map +1 -0
  480. package/dist/2027-01/services/customer_portal/members.cjs +188 -0
  481. package/dist/2027-01/services/customer_portal/members.cjs.map +1 -0
  482. package/dist/2027-01/services/customer_portal/members.d.cts +46 -0
  483. package/dist/2027-01/services/customer_portal/members.d.cts.map +1 -0
  484. package/dist/2027-01/services/customer_portal/members.d.mts +46 -0
  485. package/dist/2027-01/services/customer_portal/members.d.mts.map +1 -0
  486. package/dist/2027-01/services/customer_portal/members.mjs +182 -0
  487. package/dist/2027-01/services/customer_portal/members.mjs.map +1 -0
  488. package/dist/2027-01/services/customer_portal/orders.cjs +255 -0
  489. package/dist/2027-01/services/customer_portal/orders.cjs.map +1 -0
  490. package/dist/2027-01/services/customer_portal/orders.d.cts +70 -0
  491. package/dist/2027-01/services/customer_portal/orders.d.cts.map +1 -0
  492. package/dist/2027-01/services/customer_portal/orders.d.mts +70 -0
  493. package/dist/2027-01/services/customer_portal/orders.d.mts.map +1 -0
  494. package/dist/2027-01/services/customer_portal/orders.mjs +245 -0
  495. package/dist/2027-01/services/customer_portal/orders.mjs.map +1 -0
  496. package/dist/2027-01/services/customer_portal/organizations.cjs +34 -0
  497. package/dist/2027-01/services/customer_portal/organizations.cjs.map +1 -0
  498. package/dist/2027-01/services/customer_portal/organizations.d.cts +11 -0
  499. package/dist/2027-01/services/customer_portal/organizations.d.cts.map +1 -0
  500. package/dist/2027-01/services/customer_portal/organizations.d.mts +11 -0
  501. package/dist/2027-01/services/customer_portal/organizations.d.mts.map +1 -0
  502. package/dist/2027-01/services/customer_portal/organizations.mjs +32 -0
  503. package/dist/2027-01/services/customer_portal/organizations.mjs.map +1 -0
  504. package/dist/2027-01/services/customer_portal/seats.cjs +196 -0
  505. package/dist/2027-01/services/customer_portal/seats.cjs.map +1 -0
  506. package/dist/2027-01/services/customer_portal/seats.d.cts +53 -0
  507. package/dist/2027-01/services/customer_portal/seats.d.cts.map +1 -0
  508. package/dist/2027-01/services/customer_portal/seats.d.mts +53 -0
  509. package/dist/2027-01/services/customer_portal/seats.d.mts.map +1 -0
  510. package/dist/2027-01/services/customer_portal/seats.mjs +189 -0
  511. package/dist/2027-01/services/customer_portal/seats.mjs.map +1 -0
  512. package/dist/2027-01/services/customer_portal/subscriptions.cjs +161 -0
  513. package/dist/2027-01/services/customer_portal/subscriptions.cjs.map +1 -0
  514. package/dist/2027-01/services/customer_portal/subscriptions.d.cts +60 -0
  515. package/dist/2027-01/services/customer_portal/subscriptions.d.cts.map +1 -0
  516. package/dist/2027-01/services/customer_portal/subscriptions.d.mts +60 -0
  517. package/dist/2027-01/services/customer_portal/subscriptions.d.mts.map +1 -0
  518. package/dist/2027-01/services/customer_portal/subscriptions.mjs +155 -0
  519. package/dist/2027-01/services/customer_portal/subscriptions.mjs.map +1 -0
  520. package/dist/2027-01/services/customer_portal/wallets.cjs +93 -0
  521. package/dist/2027-01/services/customer_portal/wallets.cjs.map +1 -0
  522. package/dist/2027-01/services/customer_portal/wallets.d.cts +42 -0
  523. package/dist/2027-01/services/customer_portal/wallets.d.cts.map +1 -0
  524. package/dist/2027-01/services/customer_portal/wallets.d.mts +42 -0
  525. package/dist/2027-01/services/customer_portal/wallets.d.mts.map +1 -0
  526. package/dist/2027-01/services/customer_portal/wallets.mjs +89 -0
  527. package/dist/2027-01/services/customer_portal/wallets.mjs.map +1 -0
  528. package/dist/2027-01/services/customer_seats.cjs +187 -0
  529. package/dist/2027-01/services/customer_seats.cjs.map +1 -0
  530. package/dist/2027-01/services/customer_seats.d.cts +27 -0
  531. package/dist/2027-01/services/customer_seats.d.cts.map +1 -0
  532. package/dist/2027-01/services/customer_seats.d.mts +27 -0
  533. package/dist/2027-01/services/customer_seats.d.mts.map +1 -0
  534. package/dist/2027-01/services/customer_seats.mjs +180 -0
  535. package/dist/2027-01/services/customer_seats.mjs.map +1 -0
  536. package/dist/2027-01/services/customer_sessions.cjs +38 -0
  537. package/dist/2027-01/services/customer_sessions.cjs.map +1 -0
  538. package/dist/2027-01/services/customer_sessions.d.cts +11 -0
  539. package/dist/2027-01/services/customer_sessions.d.cts.map +1 -0
  540. package/dist/2027-01/services/customer_sessions.d.mts +11 -0
  541. package/dist/2027-01/services/customer_sessions.d.mts.map +1 -0
  542. package/dist/2027-01/services/customer_sessions.mjs +36 -0
  543. package/dist/2027-01/services/customer_sessions.mjs.map +1 -0
  544. package/dist/2027-01/services/customers/index.cjs +511 -0
  545. package/dist/2027-01/services/customers/index.cjs.map +1 -0
  546. package/dist/2027-01/services/customers/index.d.cts +190 -0
  547. package/dist/2027-01/services/customers/index.d.cts.map +1 -0
  548. package/dist/2027-01/services/customers/index.d.mts +190 -0
  549. package/dist/2027-01/services/customers/index.d.mts.map +1 -0
  550. package/dist/2027-01/services/customers/index.mjs +494 -0
  551. package/dist/2027-01/services/customers/index.mjs.map +1 -0
  552. package/dist/2027-01/services/customers/members.cjs +413 -0
  553. package/dist/2027-01/services/customers/members.cjs.map +1 -0
  554. package/dist/2027-01/services/customers/members.d.cts +104 -0
  555. package/dist/2027-01/services/customers/members.d.cts.map +1 -0
  556. package/dist/2027-01/services/customers/members.d.mts +104 -0
  557. package/dist/2027-01/services/customers/members.d.mts.map +1 -0
  558. package/dist/2027-01/services/customers/members.mjs +400 -0
  559. package/dist/2027-01/services/customers/members.mjs.map +1 -0
  560. package/dist/2027-01/services/discounts.cjs +178 -0
  561. package/dist/2027-01/services/discounts.cjs.map +1 -0
  562. package/dist/2027-01/services/discounts.d.cts +58 -0
  563. package/dist/2027-01/services/discounts.d.cts.map +1 -0
  564. package/dist/2027-01/services/discounts.d.mts +58 -0
  565. package/dist/2027-01/services/discounts.d.mts.map +1 -0
  566. package/dist/2027-01/services/discounts.mjs +171 -0
  567. package/dist/2027-01/services/discounts.mjs.map +1 -0
  568. package/dist/2027-01/services/disputes.cjs +134 -0
  569. package/dist/2027-01/services/disputes.cjs.map +1 -0
  570. package/dist/2027-01/services/disputes.d.cts +58 -0
  571. package/dist/2027-01/services/disputes.d.cts.map +1 -0
  572. package/dist/2027-01/services/disputes.d.mts +58 -0
  573. package/dist/2027-01/services/disputes.d.mts.map +1 -0
  574. package/dist/2027-01/services/disputes.mjs +129 -0
  575. package/dist/2027-01/services/disputes.mjs.map +1 -0
  576. package/dist/2027-01/services/event_types.cjs +107 -0
  577. package/dist/2027-01/services/event_types.cjs.map +1 -0
  578. package/dist/2027-01/services/event_types.d.cts +72 -0
  579. package/dist/2027-01/services/event_types.d.cts.map +1 -0
  580. package/dist/2027-01/services/event_types.d.mts +72 -0
  581. package/dist/2027-01/services/event_types.d.mts.map +1 -0
  582. package/dist/2027-01/services/event_types.mjs +103 -0
  583. package/dist/2027-01/services/event_types.mjs.map +1 -0
  584. package/dist/2027-01/services/events.cjs +167 -0
  585. package/dist/2027-01/services/events.cjs.map +1 -0
  586. package/dist/2027-01/services/events.d.cts +102 -0
  587. package/dist/2027-01/services/events.d.cts.map +1 -0
  588. package/dist/2027-01/services/events.d.mts +102 -0
  589. package/dist/2027-01/services/events.d.mts.map +1 -0
  590. package/dist/2027-01/services/events.mjs +161 -0
  591. package/dist/2027-01/services/events.mjs.map +1 -0
  592. package/dist/2027-01/services/files.cjs +184 -0
  593. package/dist/2027-01/services/files.cjs.map +1 -0
  594. package/dist/2027-01/services/files.d.cts +54 -0
  595. package/dist/2027-01/services/files.d.cts.map +1 -0
  596. package/dist/2027-01/services/files.d.mts +54 -0
  597. package/dist/2027-01/services/files.d.mts.map +1 -0
  598. package/dist/2027-01/services/files.mjs +177 -0
  599. package/dist/2027-01/services/files.mjs.map +1 -0
  600. package/dist/2027-01/services/license_keys.cjs +291 -0
  601. package/dist/2027-01/services/license_keys.cjs.map +1 -0
  602. package/dist/2027-01/services/license_keys.d.cts +66 -0
  603. package/dist/2027-01/services/license_keys.d.cts.map +1 -0
  604. package/dist/2027-01/services/license_keys.d.mts +66 -0
  605. package/dist/2027-01/services/license_keys.d.mts.map +1 -0
  606. package/dist/2027-01/services/license_keys.mjs +281 -0
  607. package/dist/2027-01/services/license_keys.mjs.map +1 -0
  608. package/dist/2027-01/services/meters.cjs +191 -0
  609. package/dist/2027-01/services/meters.cjs.map +1 -0
  610. package/dist/2027-01/services/meters.d.cts +84 -0
  611. package/dist/2027-01/services/meters.d.cts.map +1 -0
  612. package/dist/2027-01/services/meters.d.mts +84 -0
  613. package/dist/2027-01/services/meters.d.mts.map +1 -0
  614. package/dist/2027-01/services/meters.mjs +184 -0
  615. package/dist/2027-01/services/meters.mjs.map +1 -0
  616. package/dist/2027-01/services/metrics.cjs +217 -0
  617. package/dist/2027-01/services/metrics.cjs.map +1 -0
  618. package/dist/2027-01/services/metrics.d.cts +69 -0
  619. package/dist/2027-01/services/metrics.d.cts.map +1 -0
  620. package/dist/2027-01/services/metrics.d.mts +69 -0
  621. package/dist/2027-01/services/metrics.d.mts.map +1 -0
  622. package/dist/2027-01/services/metrics.mjs +208 -0
  623. package/dist/2027-01/services/metrics.mjs.map +1 -0
  624. package/dist/2027-01/services/oauth2/clients/index.cjs +10 -0
  625. package/dist/2027-01/services/oauth2/clients/index.cjs.map +1 -0
  626. package/dist/2027-01/services/oauth2/clients/index.d.cts +15 -0
  627. package/dist/2027-01/services/oauth2/clients/index.d.cts.map +1 -0
  628. package/dist/2027-01/services/oauth2/clients/index.d.mts +15 -0
  629. package/dist/2027-01/services/oauth2/clients/index.d.mts.map +1 -0
  630. package/dist/2027-01/services/oauth2/clients/index.mjs +9 -0
  631. package/dist/2027-01/services/oauth2/clients/index.mjs.map +1 -0
  632. package/dist/2027-01/services/oauth2/clients/oauth2.cjs +95 -0
  633. package/dist/2027-01/services/oauth2/clients/oauth2.cjs.map +1 -0
  634. package/dist/2027-01/services/oauth2/clients/oauth2.d.cts +17 -0
  635. package/dist/2027-01/services/oauth2/clients/oauth2.d.cts.map +1 -0
  636. package/dist/2027-01/services/oauth2/clients/oauth2.d.mts +17 -0
  637. package/dist/2027-01/services/oauth2/clients/oauth2.d.mts.map +1 -0
  638. package/dist/2027-01/services/oauth2/clients/oauth2.mjs +90 -0
  639. package/dist/2027-01/services/oauth2/clients/oauth2.mjs.map +1 -0
  640. package/dist/2027-01/services/oauth2/index.cjs +101 -0
  641. package/dist/2027-01/services/oauth2/index.cjs.map +1 -0
  642. package/dist/2027-01/services/oauth2/index.d.cts +27 -0
  643. package/dist/2027-01/services/oauth2/index.d.cts.map +1 -0
  644. package/dist/2027-01/services/oauth2/index.d.mts +27 -0
  645. package/dist/2027-01/services/oauth2/index.d.mts.map +1 -0
  646. package/dist/2027-01/services/oauth2/index.mjs +95 -0
  647. package/dist/2027-01/services/oauth2/index.mjs.map +1 -0
  648. package/dist/2027-01/services/orders.cjs +320 -0
  649. package/dist/2027-01/services/orders.cjs.map +1 -0
  650. package/dist/2027-01/services/orders.d.cts +122 -0
  651. package/dist/2027-01/services/orders.d.cts.map +1 -0
  652. package/dist/2027-01/services/orders.d.mts +122 -0
  653. package/dist/2027-01/services/orders.d.mts.map +1 -0
  654. package/dist/2027-01/services/orders.mjs +309 -0
  655. package/dist/2027-01/services/orders.mjs.map +1 -0
  656. package/dist/2027-01/services/organizations.cjs +158 -0
  657. package/dist/2027-01/services/organizations.cjs.map +1 -0
  658. package/dist/2027-01/services/organizations.d.cts +52 -0
  659. package/dist/2027-01/services/organizations.d.cts.map +1 -0
  660. package/dist/2027-01/services/organizations.d.mts +52 -0
  661. package/dist/2027-01/services/organizations.d.mts.map +1 -0
  662. package/dist/2027-01/services/organizations.mjs +152 -0
  663. package/dist/2027-01/services/organizations.mjs.map +1 -0
  664. package/dist/2027-01/services/payments.cjs +106 -0
  665. package/dist/2027-01/services/payments.cjs.map +1 -0
  666. package/dist/2027-01/services/payments.d.cts +72 -0
  667. package/dist/2027-01/services/payments.d.cts.map +1 -0
  668. package/dist/2027-01/services/payments.d.mts +72 -0
  669. package/dist/2027-01/services/payments.d.mts.map +1 -0
  670. package/dist/2027-01/services/payments.mjs +102 -0
  671. package/dist/2027-01/services/payments.mjs.map +1 -0
  672. package/dist/2027-01/services/products.cjs +223 -0
  673. package/dist/2027-01/services/products.cjs.map +1 -0
  674. package/dist/2027-01/services/products.d.cts +84 -0
  675. package/dist/2027-01/services/products.d.cts.map +1 -0
  676. package/dist/2027-01/services/products.d.mts +84 -0
  677. package/dist/2027-01/services/products.d.mts.map +1 -0
  678. package/dist/2027-01/services/products.mjs +215 -0
  679. package/dist/2027-01/services/products.mjs.map +1 -0
  680. package/dist/2027-01/services/refunds.cjs +105 -0
  681. package/dist/2027-01/services/refunds.cjs.map +1 -0
  682. package/dist/2027-01/services/refunds.d.cts +72 -0
  683. package/dist/2027-01/services/refunds.d.cts.map +1 -0
  684. package/dist/2027-01/services/refunds.d.mts +72 -0
  685. package/dist/2027-01/services/refunds.d.mts.map +1 -0
  686. package/dist/2027-01/services/refunds.mjs +101 -0
  687. package/dist/2027-01/services/refunds.mjs.map +1 -0
  688. package/dist/2027-01/services/subscriptions.cjs +238 -0
  689. package/dist/2027-01/services/subscriptions.cjs.map +1 -0
  690. package/dist/2027-01/services/subscriptions.d.cts +126 -0
  691. package/dist/2027-01/services/subscriptions.d.cts.map +1 -0
  692. package/dist/2027-01/services/subscriptions.d.mts +126 -0
  693. package/dist/2027-01/services/subscriptions.d.mts.map +1 -0
  694. package/dist/2027-01/services/subscriptions.mjs +230 -0
  695. package/dist/2027-01/services/subscriptions.mjs.map +1 -0
  696. package/dist/2027-01/services/webhooks.cjs +301 -0
  697. package/dist/2027-01/services/webhooks.cjs.map +1 -0
  698. package/dist/2027-01/services/webhooks.d.cts +113 -0
  699. package/dist/2027-01/services/webhooks.d.cts.map +1 -0
  700. package/dist/2027-01/services/webhooks.d.mts +113 -0
  701. package/dist/2027-01/services/webhooks.d.mts.map +1 -0
  702. package/dist/2027-01/services/webhooks.mjs +290 -0
  703. package/dist/2027-01/services/webhooks.mjs.map +1 -0
  704. package/dist/errors-B1xadCgl.mjs +1255 -0
  705. package/dist/errors-B1xadCgl.mjs.map +1 -0
  706. package/dist/{errors-D1yM2ZQm.mjs → errors-B2qXHz99.mjs} +62 -6
  707. package/dist/errors-B2qXHz99.mjs.map +1 -0
  708. package/dist/{errors-BfEghQ77.cjs → errors-BG3e1vcX.cjs} +85 -5
  709. package/dist/errors-BG3e1vcX.cjs.map +1 -0
  710. package/dist/errors-DDydmY6t.cjs +1794 -0
  711. package/dist/errors-DDydmY6t.cjs.map +1 -0
  712. package/dist/{errors-hhbDe5ap.mjs → errors-D_tOnoPP.mjs} +62 -6
  713. package/dist/errors-D_tOnoPP.mjs.map +1 -0
  714. package/dist/{errors-CPJ329AT.cjs → errors-h8gRquR8.cjs} +85 -5
  715. package/dist/errors-h8gRquR8.cjs.map +1 -0
  716. package/dist/index-CASi3-c8.d.mts +2738 -0
  717. package/dist/index-CASi3-c8.d.mts.map +1 -0
  718. package/dist/{index-BkTZ8a-R.d.mts → index-CCkgYIo1.d.mts} +85 -17
  719. package/dist/index-CCkgYIo1.d.mts.map +1 -0
  720. package/dist/{index-BamOUZl1.d.cts → index-Cu_Exrh7.d.cts} +85 -17
  721. package/dist/index-Cu_Exrh7.d.cts.map +1 -0
  722. package/dist/{index-JEL0D7T4.d.mts → index-RFIyzWM8.d.mts} +85 -17
  723. package/dist/index-RFIyzWM8.d.mts.map +1 -0
  724. package/dist/index-Uq9Eca4W.d.cts +2738 -0
  725. package/dist/index-Uq9Eca4W.d.cts.map +1 -0
  726. package/dist/{index-BDWUg8uj.d.cts → index-YSnA4bj_.d.cts} +85 -17
  727. package/dist/index-YSnA4bj_.d.cts.map +1 -0
  728. package/dist/models-COhG3nD4.d.cts +22081 -0
  729. package/dist/models-COhG3nD4.d.cts.map +1 -0
  730. package/dist/models-COhG3nD4.d.mts +22081 -0
  731. package/dist/models-COhG3nD4.d.mts.map +1 -0
  732. package/dist/{models-D3N1jo2G.d.cts → models-CygFKqFa.d.cts} +331 -18
  733. package/dist/models-CygFKqFa.d.cts.map +1 -0
  734. package/dist/{models-D3N1jo2G.d.mts → models-CygFKqFa.d.mts} +331 -18
  735. package/dist/models-CygFKqFa.d.mts.map +1 -0
  736. package/dist/{models-f2_talp6.d.cts → models-DjSYF7EH.d.cts} +386 -16
  737. package/dist/models-DjSYF7EH.d.cts.map +1 -0
  738. package/dist/{models-f2_talp6.d.mts → models-DjSYF7EH.d.mts} +386 -16
  739. package/dist/models-DjSYF7EH.d.mts.map +1 -0
  740. package/package.json +51 -1
  741. package/dist/errors-BfEghQ77.cjs.map +0 -1
  742. package/dist/errors-CPJ329AT.cjs.map +0 -1
  743. package/dist/errors-D1yM2ZQm.mjs.map +0 -1
  744. package/dist/errors-hhbDe5ap.mjs.map +0 -1
  745. package/dist/index-BDWUg8uj.d.cts.map +0 -1
  746. package/dist/index-BamOUZl1.d.cts.map +0 -1
  747. package/dist/index-BkTZ8a-R.d.mts.map +0 -1
  748. package/dist/index-JEL0D7T4.d.mts.map +0 -1
  749. package/dist/models-D3N1jo2G.d.cts.map +0 -1
  750. package/dist/models-D3N1jo2G.d.mts.map +0 -1
  751. package/dist/models-f2_talp6.d.cts.map +0 -1
  752. package/dist/models-f2_talp6.d.mts.map +0 -1
@@ -0,0 +1,53 @@
1
+ import { c as RequestOptions, t as ClientBase } from "../../../base-C5EE71lz.cjs";
2
+ import { Ci as SeatsList, Ct as CustomerSeat, In as ListResourceCustomerSubscription, jt as CustomerSubscription, wt as CustomerSeatAssign } from "../../../models-COhG3nD4.cjs";
3
+ //#region src/2027-01/services/customer_portal/seats.d.ts
4
+ declare const listSeatsSeats: (client: ClientBase) => (query?: {
5
+ subscription_id?: string | null;
6
+ order_id?: string | null;
7
+ }, requestOptions?: RequestOptions) => Promise<SeatsList>;
8
+ declare const assignSeatSeats: (client: ClientBase) => (body: CustomerSeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
9
+ declare const revokeSeatSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
10
+ declare const resendInvitationSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
11
+ declare const listClaimedSubscriptionsSeats: (client: ClientBase) => (query?: {
12
+ page?: number;
13
+ limit?: number;
14
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
15
+ /**
16
+ * List all subscriptions where the authenticated customer has claimed a seat.
17
+ *
18
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
19
+ *
20
+ * @param query - Query parameters
21
+ * @param requestOptions - Request options
22
+ * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.
23
+ * @throws {PolarNetworkError} When a network error occurs
24
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
25
+ * @throws {PolarServerError} When the server returns a 5xx error
26
+ * @throws {CustomerPortalSeatsListClaimedSubscriptions401Error} Authentication required
27
+ * @throws {HTTPValidationError} Validation Error
28
+ */
29
+ declare const iterListClaimedSubscriptionsSeats: (client: ClientBase) => (query?: {
30
+ page?: number;
31
+ limit?: number;
32
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
33
+ declare function createSeatsService(client: ClientBase): {
34
+ listSeats: (query?: {
35
+ subscription_id?: string | null;
36
+ order_id?: string | null;
37
+ }, requestOptions?: RequestOptions) => Promise<SeatsList>;
38
+ assignSeat: (body: CustomerSeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
39
+ revokeSeat: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
40
+ resendInvitation: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
41
+ listClaimedSubscriptions: (query?: {
42
+ page?: number;
43
+ limit?: number;
44
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
45
+ iterListClaimedSubscriptions: (query?: {
46
+ page?: number;
47
+ limit?: number;
48
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
49
+ };
50
+ type Seats = ReturnType<typeof createSeatsService>;
51
+ //#endregion
52
+ export { Seats, assignSeatSeats, createSeatsService, iterListClaimedSubscriptionsSeats, listClaimedSubscriptionsSeats, listSeatsSeats, resendInvitationSeats, revokeSeatSeats };
53
+ //# sourceMappingURL=seats.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seats.d.cts","names":[],"sources":["../../../../src/2027-01/services/customer_portal/seats.ts"],"mappings":";;;cA4Ba,iBAAkB,QAAQ,gBAgBnC;EACE;EACA;GAEF,iBAAiB,mBAChB,QAAQ;cAsBA,kBAAmB,QAAQ,gBAgBpC,MAAM,oBACN,iBAAiB,mBAChB,QAAQ;cAoBA,kBAAmB,QAAQ,gBAcxB,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAqB9D,wBAAyB,QAAQ,gBAe9B,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAsB9D,gCAAiC,QAAQ,gBAgBlD;EACE;EACA;GAEF,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;;cAkCA,oCAAqC,QAAQ,gBAEtD;EACE;EACA;GAEF,iBAAiB,mBAChB,eAAe;iBAsBJ,mBAAmB,QAAQ;EA7N/B,YAAA;IACN;IACA;KACD,iBACgB,mBAChB,QAAQ;EAsCH,aAAA,MAAA,oBAAkB,iBACP,mBAChB,QAAQ;EAkCY,aAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAoClD,mBAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAsC/D,2BAAA;IACN;IACA;KACD,iBACgB,mBAChB,QAAQ;EAoCD,+BAAA;IACN;IACA;KACD,iBACgB,mBAChB,eAAe;;KAiCR,QAAQ,kBAAkB"}
@@ -0,0 +1,53 @@
1
+ import { c as RequestOptions, t as ClientBase } from "../../../base-C5EE71lz.mjs";
2
+ import { Ci as SeatsList, Ct as CustomerSeat, In as ListResourceCustomerSubscription, jt as CustomerSubscription, wt as CustomerSeatAssign } from "../../../models-COhG3nD4.mjs";
3
+ //#region src/2027-01/services/customer_portal/seats.d.ts
4
+ declare const listSeatsSeats: (client: ClientBase) => (query?: {
5
+ subscription_id?: string | null;
6
+ order_id?: string | null;
7
+ }, requestOptions?: RequestOptions) => Promise<SeatsList>;
8
+ declare const assignSeatSeats: (client: ClientBase) => (body: CustomerSeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
9
+ declare const revokeSeatSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
10
+ declare const resendInvitationSeats: (client: ClientBase) => (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
11
+ declare const listClaimedSubscriptionsSeats: (client: ClientBase) => (query?: {
12
+ page?: number;
13
+ limit?: number;
14
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
15
+ /**
16
+ * List all subscriptions where the authenticated customer has claimed a seat.
17
+ *
18
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
19
+ *
20
+ * @param query - Query parameters
21
+ * @param requestOptions - Request options
22
+ * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.
23
+ * @throws {PolarNetworkError} When a network error occurs
24
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
25
+ * @throws {PolarServerError} When the server returns a 5xx error
26
+ * @throws {CustomerPortalSeatsListClaimedSubscriptions401Error} Authentication required
27
+ * @throws {HTTPValidationError} Validation Error
28
+ */
29
+ declare const iterListClaimedSubscriptionsSeats: (client: ClientBase) => (query?: {
30
+ page?: number;
31
+ limit?: number;
32
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
33
+ declare function createSeatsService(client: ClientBase): {
34
+ listSeats: (query?: {
35
+ subscription_id?: string | null;
36
+ order_id?: string | null;
37
+ }, requestOptions?: RequestOptions) => Promise<SeatsList>;
38
+ assignSeat: (body: CustomerSeatAssign, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
39
+ revokeSeat: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
40
+ resendInvitation: (seat_id: string, requestOptions?: RequestOptions) => Promise<CustomerSeat>;
41
+ listClaimedSubscriptions: (query?: {
42
+ page?: number;
43
+ limit?: number;
44
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
45
+ iterListClaimedSubscriptions: (query?: {
46
+ page?: number;
47
+ limit?: number;
48
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
49
+ };
50
+ type Seats = ReturnType<typeof createSeatsService>;
51
+ //#endregion
52
+ export { Seats, assignSeatSeats, createSeatsService, iterListClaimedSubscriptionsSeats, listClaimedSubscriptionsSeats, listSeatsSeats, resendInvitationSeats, revokeSeatSeats };
53
+ //# sourceMappingURL=seats.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seats.d.mts","names":[],"sources":["../../../../src/2027-01/services/customer_portal/seats.ts"],"mappings":";;;cA4Ba,iBAAkB,QAAQ,gBAgBnC;EACE;EACA;GAEF,iBAAiB,mBAChB,QAAQ;cAsBA,kBAAmB,QAAQ,gBAgBpC,MAAM,oBACN,iBAAiB,mBAChB,QAAQ;cAoBA,kBAAmB,QAAQ,gBAcxB,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAqB9D,wBAAyB,QAAQ,gBAe9B,iBAAiB,iBAAiB,mBAAiB,QAAQ;cAsB9D,gCAAiC,QAAQ,gBAgBlD;EACE;EACA;GAEF,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;;cAkCA,oCAAqC,QAAQ,gBAEtD;EACE;EACA;GAEF,iBAAiB,mBAChB,eAAe;iBAsBJ,mBAAmB,QAAQ;EA7N/B,YAAA;IACN;IACA;KACD,iBACgB,mBAChB,QAAQ;EAsCH,aAAA,MAAA,oBAAkB,iBACP,mBAChB,QAAQ;EAkCY,aAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAoClD,mBAAA,iBAAM,iBAAmB,mBAAiB,QAAQ;EAsC/D,2BAAA;IACN;IACA;KACD,iBACgB,mBAChB,QAAQ;EAoCD,+BAAA;IACN;IACA;KACD,iBACgB,mBAChB,eAAe;;KAiCR,QAAQ,kBAAkB"}
@@ -0,0 +1,189 @@
1
+ import { A as CustomerPortalSeatsListClaimedSubscriptions401Error, B as CustomerPortalSeatsRevokeSeat404Error, D as CustomerPortalSeatsAssignSeat401Error, E as CustomerPortalSeatsAssignSeat400Error, F as CustomerPortalSeatsResendInvitation401Error, I as CustomerPortalSeatsResendInvitation403Error, L as CustomerPortalSeatsResendInvitation404Error, M as CustomerPortalSeatsListSeats403Error, N as CustomerPortalSeatsListSeats404Error, O as CustomerPortalSeatsAssignSeat403Error, P as CustomerPortalSeatsResendInvitation400Error, R as CustomerPortalSeatsRevokeSeat401Error, dt as HTTPValidationError, j as CustomerPortalSeatsListSeats401Error, k as CustomerPortalSeatsAssignSeat404Error, z as CustomerPortalSeatsRevokeSeat403Error } from "../../../errors-B1xadCgl.mjs";
2
+ //#region src/2027-01/services/customer_portal/seats.ts
3
+ const listSeatsSeats = (client) => {
4
+ /**
5
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
6
+ *
7
+ * @param query - Query parameters
8
+ * @param requestOptions - Request options
9
+ * @returns {SeatsList}
10
+ * @throws {PolarNetworkError} When a network error occurs
11
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
12
+ * @throws {PolarServerError} When the server returns a 5xx error
13
+ * @throws {CustomerPortalSeatsListSeats401Error} Authentication required
14
+ * @throws {CustomerPortalSeatsListSeats403Error} Not permitted
15
+ * @throws {CustomerPortalSeatsListSeats404Error} Subscription or order not found
16
+ * @throws {HTTPValidationError} Validation Error
17
+ */
18
+ return async (query, requestOptions) => {
19
+ const pathParams = {};
20
+ const queryParams = {
21
+ subscription_id: query?.subscription_id,
22
+ order_id: query?.order_id
23
+ };
24
+ const request = client.buildRequest("GET", "/v1/customer-portal/seats", pathParams, queryParams, void 0);
25
+ const response = await client.sendRequest(request, requestOptions);
26
+ return client.parseResponse(response, "json", {
27
+ 401: CustomerPortalSeatsListSeats401Error,
28
+ 403: CustomerPortalSeatsListSeats403Error,
29
+ 404: CustomerPortalSeatsListSeats404Error,
30
+ 422: HTTPValidationError
31
+ });
32
+ };
33
+ };
34
+ const assignSeatSeats = (client) => {
35
+ /**
36
+ *
37
+ * @param body - Request body
38
+ * @param requestOptions - Request options
39
+ * @returns {CustomerSeat}
40
+ * @throws {PolarNetworkError} When a network error occurs
41
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
42
+ * @throws {PolarServerError} When the server returns a 5xx error
43
+ * @throws {CustomerPortalSeatsAssignSeat400Error} No available seats or customer already has a seat
44
+ * @throws {CustomerPortalSeatsAssignSeat401Error} Authentication required
45
+ * @throws {CustomerPortalSeatsAssignSeat403Error} Not permitted
46
+ * @throws {CustomerPortalSeatsAssignSeat404Error} Subscription, order, or customer not found
47
+ * @throws {HTTPValidationError} Validation Error
48
+ */
49
+ return async (body, requestOptions) => {
50
+ const request = client.buildRequest("POST", "/v1/customer-portal/seats", {}, {}, body);
51
+ const response = await client.sendRequest(request, requestOptions);
52
+ return client.parseResponse(response, "json", {
53
+ 400: CustomerPortalSeatsAssignSeat400Error,
54
+ 401: CustomerPortalSeatsAssignSeat401Error,
55
+ 403: CustomerPortalSeatsAssignSeat403Error,
56
+ 404: CustomerPortalSeatsAssignSeat404Error,
57
+ 422: HTTPValidationError
58
+ });
59
+ };
60
+ };
61
+ const revokeSeatSeats = (client) => {
62
+ /**
63
+ *
64
+ * @param seat_id
65
+ * @param requestOptions - Request options
66
+ * @returns {CustomerSeat}
67
+ * @throws {PolarNetworkError} When a network error occurs
68
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
69
+ * @throws {PolarServerError} When the server returns a 5xx error
70
+ * @throws {CustomerPortalSeatsRevokeSeat401Error} Authentication required
71
+ * @throws {CustomerPortalSeatsRevokeSeat403Error} Not permitted
72
+ * @throws {CustomerPortalSeatsRevokeSeat404Error} Seat not found
73
+ * @throws {HTTPValidationError} Validation Error
74
+ */
75
+ return async (seat_id, requestOptions) => {
76
+ const pathParams = { seat_id };
77
+ const request = client.buildRequest("DELETE", "/v1/customer-portal/seats/{seat_id}", pathParams, {}, void 0);
78
+ const response = await client.sendRequest(request, requestOptions);
79
+ return client.parseResponse(response, "json", {
80
+ 401: CustomerPortalSeatsRevokeSeat401Error,
81
+ 403: CustomerPortalSeatsRevokeSeat403Error,
82
+ 404: CustomerPortalSeatsRevokeSeat404Error,
83
+ 422: HTTPValidationError
84
+ });
85
+ };
86
+ };
87
+ const resendInvitationSeats = (client) => {
88
+ /**
89
+ *
90
+ * @param seat_id
91
+ * @param requestOptions - Request options
92
+ * @returns {CustomerSeat}
93
+ * @throws {PolarNetworkError} When a network error occurs
94
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
95
+ * @throws {PolarServerError} When the server returns a 5xx error
96
+ * @throws {CustomerPortalSeatsResendInvitation400Error} Seat is not pending or already claimed
97
+ * @throws {CustomerPortalSeatsResendInvitation401Error} Authentication required
98
+ * @throws {CustomerPortalSeatsResendInvitation403Error} Not permitted
99
+ * @throws {CustomerPortalSeatsResendInvitation404Error} Seat not found
100
+ * @throws {HTTPValidationError} Validation Error
101
+ */
102
+ return async (seat_id, requestOptions) => {
103
+ const pathParams = { seat_id };
104
+ const request = client.buildRequest("POST", "/v1/customer-portal/seats/{seat_id}/resend", pathParams, {}, void 0);
105
+ const response = await client.sendRequest(request, requestOptions);
106
+ return client.parseResponse(response, "json", {
107
+ 400: CustomerPortalSeatsResendInvitation400Error,
108
+ 401: CustomerPortalSeatsResendInvitation401Error,
109
+ 403: CustomerPortalSeatsResendInvitation403Error,
110
+ 404: CustomerPortalSeatsResendInvitation404Error,
111
+ 422: HTTPValidationError
112
+ });
113
+ };
114
+ };
115
+ const listClaimedSubscriptionsSeats = (client) => {
116
+ /**
117
+ * List all subscriptions where the authenticated customer has claimed a seat.
118
+ *
119
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
120
+ *
121
+ * @param query - Query parameters
122
+ * @param requestOptions - Request options
123
+ * @returns {ListResourceCustomerSubscription}
124
+ * @throws {PolarNetworkError} When a network error occurs
125
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
126
+ * @throws {PolarServerError} When the server returns a 5xx error
127
+ * @throws {CustomerPortalSeatsListClaimedSubscriptions401Error} Authentication required
128
+ * @throws {HTTPValidationError} Validation Error
129
+ */
130
+ return async (query, requestOptions) => {
131
+ const pathParams = {};
132
+ const queryParams = {
133
+ page: query?.page ?? 1,
134
+ limit: query?.limit ?? 10
135
+ };
136
+ const request = client.buildRequest("GET", "/v1/customer-portal/seats/subscriptions", pathParams, queryParams, void 0);
137
+ const response = await client.sendRequest(request, requestOptions);
138
+ return client.parseResponse(response, "json", {
139
+ 401: CustomerPortalSeatsListClaimedSubscriptions401Error,
140
+ 422: HTTPValidationError
141
+ });
142
+ };
143
+ };
144
+ /**
145
+ * List all subscriptions where the authenticated customer has claimed a seat.
146
+ *
147
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
148
+ *
149
+ * @param query - Query parameters
150
+ * @param requestOptions - Request options
151
+ * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.
152
+ * @throws {PolarNetworkError} When a network error occurs
153
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
154
+ * @throws {PolarServerError} When the server returns a 5xx error
155
+ * @throws {CustomerPortalSeatsListClaimedSubscriptions401Error} Authentication required
156
+ * @throws {HTTPValidationError} Validation Error
157
+ */
158
+ const iterListClaimedSubscriptionsSeats = (client) => {
159
+ return async function* (query, requestOptions) {
160
+ let page;
161
+ page = query?.page ?? 1;
162
+ let limit;
163
+ limit = query?.limit;
164
+ while (true) {
165
+ const response = await listClaimedSubscriptionsSeats(client)({
166
+ ...query,
167
+ page,
168
+ limit
169
+ }, requestOptions);
170
+ for (const item of response.items) yield item;
171
+ if (page >= response.pagination.max_page) break;
172
+ page++;
173
+ }
174
+ };
175
+ };
176
+ function createSeatsService(client) {
177
+ return {
178
+ listSeats: listSeatsSeats(client),
179
+ assignSeat: assignSeatSeats(client),
180
+ revokeSeat: revokeSeatSeats(client),
181
+ resendInvitation: resendInvitationSeats(client),
182
+ listClaimedSubscriptions: listClaimedSubscriptionsSeats(client),
183
+ iterListClaimedSubscriptions: iterListClaimedSubscriptionsSeats(client)
184
+ };
185
+ }
186
+ //#endregion
187
+ export { assignSeatSeats, createSeatsService, iterListClaimedSubscriptionsSeats, listClaimedSubscriptionsSeats, listSeatsSeats, resendInvitationSeats, revokeSeatSeats };
188
+
189
+ //# sourceMappingURL=seats.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seats.mjs","names":[],"sources":["../../../../src/2027-01/services/customer_portal/seats.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../../base\";\nimport type {\n CustomerSeat,\n CustomerSeatAssign,\n CustomerSubscription,\n ListResourceCustomerSubscription,\n SeatsList,\n} from \"../../models\";\n\nimport {\n CustomerPortalSeatsAssignSeat400Error,\n CustomerPortalSeatsAssignSeat401Error,\n CustomerPortalSeatsAssignSeat403Error,\n CustomerPortalSeatsAssignSeat404Error,\n CustomerPortalSeatsListClaimedSubscriptions401Error,\n CustomerPortalSeatsListSeats401Error,\n CustomerPortalSeatsListSeats403Error,\n CustomerPortalSeatsListSeats404Error,\n CustomerPortalSeatsResendInvitation400Error,\n CustomerPortalSeatsResendInvitation401Error,\n CustomerPortalSeatsResendInvitation403Error,\n CustomerPortalSeatsResendInvitation404Error,\n CustomerPortalSeatsRevokeSeat401Error,\n CustomerPortalSeatsRevokeSeat403Error,\n CustomerPortalSeatsRevokeSeat404Error,\n HTTPValidationError,\n} from \"../../errors\";\n\nexport const listSeatsSeats = (client: ClientBase) => {\n /**\n * **Scopes**: `customer_portal:read` `customer_portal:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {SeatsList}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerPortalSeatsListSeats401Error} Authentication required\n * @throws {CustomerPortalSeatsListSeats403Error} Not permitted\n * @throws {CustomerPortalSeatsListSeats404Error} Subscription or order not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n subscription_id?: string | null;\n order_id?: string | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<SeatsList> => {\n const pathParams = {};\n const queryParams = {\n subscription_id: query?.subscription_id,\n order_id: query?.order_id,\n };\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/seats\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<SeatsList>(response, \"json\", {\n 401: CustomerPortalSeatsListSeats401Error,\n 403: CustomerPortalSeatsListSeats403Error,\n 404: CustomerPortalSeatsListSeats404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const assignSeatSeats = (client: ClientBase) => {\n /**\n *\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerPortalSeatsAssignSeat400Error} No available seats or customer already has a seat\n * @throws {CustomerPortalSeatsAssignSeat401Error} Authentication required\n * @throws {CustomerPortalSeatsAssignSeat403Error} Not permitted\n * @throws {CustomerPortalSeatsAssignSeat404Error} Subscription, order, or customer not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n body: CustomerSeatAssign,\n requestOptions?: RequestOptions,\n ): Promise<CustomerSeat> => {\n const pathParams = {};\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-portal/seats\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 400: CustomerPortalSeatsAssignSeat400Error,\n 401: CustomerPortalSeatsAssignSeat401Error,\n 403: CustomerPortalSeatsAssignSeat403Error,\n 404: CustomerPortalSeatsAssignSeat404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const revokeSeatSeats = (client: ClientBase) => {\n /**\n *\n * @param seat_id\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerPortalSeatsRevokeSeat401Error} Authentication required\n * @throws {CustomerPortalSeatsRevokeSeat403Error} Not permitted\n * @throws {CustomerPortalSeatsRevokeSeat404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (seat_id: string, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {\n seat_id: seat_id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"DELETE\",\n \"/v1/customer-portal/seats/{seat_id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 401: CustomerPortalSeatsRevokeSeat401Error,\n 403: CustomerPortalSeatsRevokeSeat403Error,\n 404: CustomerPortalSeatsRevokeSeat404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const resendInvitationSeats = (client: ClientBase) => {\n /**\n *\n * @param seat_id\n * @param requestOptions - Request options\n * @returns {CustomerSeat}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerPortalSeatsResendInvitation400Error} Seat is not pending or already claimed\n * @throws {CustomerPortalSeatsResendInvitation401Error} Authentication required\n * @throws {CustomerPortalSeatsResendInvitation403Error} Not permitted\n * @throws {CustomerPortalSeatsResendInvitation404Error} Seat not found\n * @throws {HTTPValidationError} Validation Error\n */\n return async (seat_id: string, requestOptions?: RequestOptions): Promise<CustomerSeat> => {\n const pathParams = {\n seat_id: seat_id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"POST\",\n \"/v1/customer-portal/seats/{seat_id}/resend\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSeat>(response, \"json\", {\n 400: CustomerPortalSeatsResendInvitation400Error,\n 401: CustomerPortalSeatsResendInvitation401Error,\n 403: CustomerPortalSeatsResendInvitation403Error,\n 404: CustomerPortalSeatsResendInvitation404Error,\n 422: HTTPValidationError,\n });\n };\n};\nexport const listClaimedSubscriptionsSeats = (client: ClientBase) => {\n /**\n * List all subscriptions where the authenticated customer has claimed a seat.\n *\n * **Scopes**: `customer_portal:read` `customer_portal:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {ListResourceCustomerSubscription}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerPortalSeatsListClaimedSubscriptions401Error} Authentication required\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n page?: number;\n limit?: number;\n },\n requestOptions?: RequestOptions,\n ): Promise<ListResourceCustomerSubscription> => {\n const pathParams = {};\n const queryParams = {\n page: query?.page ?? 1,\n limit: query?.limit ?? 10,\n };\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/seats/subscriptions\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<ListResourceCustomerSubscription>(response, \"json\", {\n 401: CustomerPortalSeatsListClaimedSubscriptions401Error,\n 422: HTTPValidationError,\n });\n };\n};\n/**\n * List all subscriptions where the authenticated customer has claimed a seat.\n *\n * **Scopes**: `customer_portal:read` `customer_portal:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {CustomerPortalSeatsListClaimedSubscriptions401Error} Authentication required\n * @throws {HTTPValidationError} Validation Error\n */\nexport const iterListClaimedSubscriptionsSeats = (client: ClientBase) => {\n return async function* (\n query?: {\n page?: number;\n limit?: number;\n },\n requestOptions?: RequestOptions,\n ): AsyncGenerator<CustomerSubscription> {\n let page: number;\n page = query?.page ?? 1;\n let limit: number | undefined;\n limit = query?.limit;\n\n while (true) {\n const response = await listClaimedSubscriptionsSeats(client)(\n { ...query, page, limit },\n requestOptions,\n );\n for (const item of response.items) {\n yield item;\n }\n if (page >= response.pagination.max_page) {\n break;\n }\n page++;\n }\n };\n};\n\nexport function createSeatsService(client: ClientBase) {\n return {\n listSeats: listSeatsSeats(client),\n assignSeat: assignSeatSeats(client),\n revokeSeat: revokeSeatSeats(client),\n resendInvitation: resendInvitationSeats(client),\n listClaimedSubscriptions: listClaimedSubscriptionsSeats(client),\n iterListClaimedSubscriptions: iterListClaimedSubscriptionsSeats(client),\n };\n}\n\nexport type Seats = ReturnType<typeof createSeatsService>;\n"],"mappings":";;AA4BA,MAAa,kBAAkB,WAAuB;;;;;;;;;;;;;;;CAepD,OAAO,OACL,OAIA,mBACuB;EACvB,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,iBAAiB,OAAO;GACxB,UAAU,OAAO;EACnB;EACA,MAAM,UAAU,OAAO,aACrB,OACA,6BACA,YACA,aACA,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAyB,UAAU,QAAQ;GACvD,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,mBAAmB,WAAuB;;;;;;;;;;;;;;;CAerD,OAAO,OACL,MACA,mBAC0B;EAG1B,MAAM,UAAU,OAAO,aACrB,QACA,6BACA,CAAS,GACT,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,mBAAmB,WAAuB;;;;;;;;;;;;;;CAcrD,OAAO,OAAO,SAAiB,mBAA2D;EACxF,MAAM,aAAa,EACR,QACX;EAEA,MAAM,UAAU,OAAO,aACrB,UACA,uCACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,yBAAyB,WAAuB;;;;;;;;;;;;;;;CAe3D,OAAO,OAAO,SAAiB,mBAA2D;EACxF,MAAM,aAAa,EACR,QACX;EAEA,MAAM,UAAU,OAAO,aACrB,QACA,8CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAA4B,UAAU,QAAQ;GAC1D,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;AACA,MAAa,iCAAiC,WAAuB;;;;;;;;;;;;;;;CAenE,OAAO,OACL,OAIA,mBAC8C;EAC9C,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,MAAM,OAAO,QAAQ;GACrB,OAAO,OAAO,SAAS;EACzB;EACA,MAAM,UAAU,OAAO,aACrB,OACA,2CACA,YACA,aACA,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAgD,UAAU,QAAQ;GAC9E,KAAK;GACL,KAAK;EACP,CAAC;CACH;AACF;;;;;;;;;;;;;;;AAeA,MAAa,qCAAqC,WAAuB;CACvE,OAAO,iBACL,OAIA,gBACsC;EACtC,IAAI;EACJ,OAAO,OAAO,QAAQ;EACtB,IAAI;EACJ,QAAQ,OAAO;EAEf,OAAO,MAAM;GACX,MAAM,WAAW,MAAM,8BAA8B,MAAM,CAAC,CAC1D;IAAE,GAAG;IAAO;IAAM;GAAM,GACxB,cACF;GACA,KAAK,MAAM,QAAQ,SAAS,OAC1B,MAAM;GAER,IAAI,QAAQ,SAAS,WAAW,UAC9B;GAEF;EACF;CACF;AACF;AAEA,SAAgB,mBAAmB,QAAoB;CACrD,OAAO;EACL,WAAW,eAAe,MAAM;EAChC,YAAY,gBAAgB,MAAM;EAClC,YAAY,gBAAgB,MAAM;EAClC,kBAAkB,sBAAsB,MAAM;EAC9C,0BAA0B,8BAA8B,MAAM;EAC9D,8BAA8B,kCAAkC,MAAM;CACxE;AACF"}
@@ -0,0 +1,161 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_errors = require("../../../errors-DDydmY6t.cjs");
3
+ //#region src/2027-01/services/customer_portal/subscriptions.ts
4
+ const listSubscriptions = (client) => {
5
+ /**
6
+ * List subscriptions of the authenticated customer.
7
+ *
8
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
9
+ *
10
+ * @param query - Query parameters
11
+ * @param requestOptions - Request options
12
+ * @returns {ListResourceCustomerSubscription}
13
+ * @throws {PolarNetworkError} When a network error occurs
14
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
15
+ * @throws {PolarServerError} When the server returns a 5xx error
16
+ * @throws {HTTPValidationError} Validation Error
17
+ */
18
+ return async (query, requestOptions) => {
19
+ const pathParams = {};
20
+ const queryParams = {
21
+ product_id: query?.product_id,
22
+ active: query?.active,
23
+ query: query?.query,
24
+ page: query?.page ?? 1,
25
+ limit: query?.limit ?? 10,
26
+ sorting: query?.sorting ?? ["-started_at"]
27
+ };
28
+ const request = client.buildRequest("GET", "/v1/customer-portal/subscriptions/", pathParams, queryParams, void 0);
29
+ const response = await client.sendRequest(request, requestOptions);
30
+ return client.parseResponse(response, "json", { 422: require_errors.HTTPValidationError });
31
+ };
32
+ };
33
+ /**
34
+ * List subscriptions of the authenticated customer.
35
+ *
36
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
37
+ *
38
+ * @param query - Query parameters
39
+ * @param requestOptions - Request options
40
+ * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.
41
+ * @throws {PolarNetworkError} When a network error occurs
42
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
43
+ * @throws {PolarServerError} When the server returns a 5xx error
44
+ * @throws {HTTPValidationError} Validation Error
45
+ */
46
+ const iterListSubscriptions = (client) => {
47
+ return async function* (query, requestOptions) {
48
+ let page;
49
+ page = query?.page ?? 1;
50
+ let limit;
51
+ limit = query?.limit;
52
+ while (true) {
53
+ const response = await listSubscriptions(client)({
54
+ ...query,
55
+ page,
56
+ limit
57
+ }, requestOptions);
58
+ for (const item of response.items) yield item;
59
+ if (page >= response.pagination.max_page) break;
60
+ page++;
61
+ }
62
+ };
63
+ };
64
+ const getSubscriptions = (client) => {
65
+ /**
66
+ * Get a subscription for the authenticated customer.
67
+ *
68
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
69
+ *
70
+ * @param id - The subscription ID.
71
+ * @param requestOptions - Request options
72
+ * @returns {CustomerSubscription}
73
+ * @throws {PolarNetworkError} When a network error occurs
74
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
75
+ * @throws {PolarServerError} When the server returns a 5xx error
76
+ * @throws {ResourceNotFound} Customer subscription was not found.
77
+ * @throws {HTTPValidationError} Validation Error
78
+ */
79
+ return async (id, requestOptions) => {
80
+ const pathParams = { id };
81
+ const request = client.buildRequest("GET", "/v1/customer-portal/subscriptions/{id}", pathParams, {}, void 0);
82
+ const response = await client.sendRequest(request, requestOptions);
83
+ return client.parseResponse(response, "json", {
84
+ 404: require_errors.ResourceNotFound,
85
+ 422: require_errors.HTTPValidationError
86
+ });
87
+ };
88
+ };
89
+ const cancelSubscriptions = (client) => {
90
+ /**
91
+ * Cancel a subscription of the authenticated customer.
92
+ *
93
+ * @param id - The subscription ID.
94
+ * @param requestOptions - Request options
95
+ * @returns {CustomerSubscription}
96
+ * @throws {PolarNetworkError} When a network error occurs
97
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
98
+ * @throws {PolarServerError} When the server returns a 5xx error
99
+ * @throws {AlreadyCanceledSubscription} Customer subscription is already canceled or will be at the end of the period, or the user lacks billing permissions.
100
+ * @throws {ResourceNotFound} Customer subscription was not found.
101
+ * @throws {HTTPValidationError} Validation Error
102
+ */
103
+ return async (id, requestOptions) => {
104
+ const pathParams = { id };
105
+ const request = client.buildRequest("DELETE", "/v1/customer-portal/subscriptions/{id}", pathParams, {}, void 0);
106
+ const response = await client.sendRequest(request, requestOptions);
107
+ return client.parseResponse(response, "json", {
108
+ 403: require_errors.AlreadyCanceledSubscription,
109
+ 404: require_errors.ResourceNotFound,
110
+ 422: require_errors.HTTPValidationError
111
+ });
112
+ };
113
+ };
114
+ const updateSubscriptions = (client) => {
115
+ /**
116
+ * Update a subscription of the authenticated customer.
117
+ *
118
+ * @param id - The subscription ID.
119
+ * @param body - Request body
120
+ * @param requestOptions - Request options
121
+ * @returns {CustomerSubscription}
122
+ * @throws {PolarNetworkError} When a network error occurs
123
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
124
+ * @throws {PolarServerError} When the server returns a 5xx error
125
+ * @throws {PaymentFailed} Payment required to apply the subscription update.
126
+ * @throws {CustomerPortalSubscriptionsUpdate403Error} Customer subscription is already canceled or will be at the end of the period, the user lacks billing permissions, or pausing/resuming is not enabled for the organization.
127
+ * @throws {ResourceNotFound} Customer subscription was not found.
128
+ * @throws {CustomerPortalSubscriptionsUpdate409Error} The subscription has no payment method to charge, or is not scheduled to be canceled.
129
+ * @throws {HTTPValidationError} Validation Error
130
+ */
131
+ return async (id, body, requestOptions) => {
132
+ const pathParams = { id };
133
+ const request = client.buildRequest("PATCH", "/v1/customer-portal/subscriptions/{id}", pathParams, {}, body);
134
+ const response = await client.sendRequest(request, requestOptions);
135
+ return client.parseResponse(response, "json", {
136
+ 402: require_errors.PaymentFailed,
137
+ 403: require_errors.CustomerPortalSubscriptionsUpdate403Error,
138
+ 404: require_errors.ResourceNotFound,
139
+ 409: require_errors.CustomerPortalSubscriptionsUpdate409Error,
140
+ 422: require_errors.HTTPValidationError
141
+ });
142
+ };
143
+ };
144
+ function createSubscriptionsService(client) {
145
+ return {
146
+ list: listSubscriptions(client),
147
+ get: getSubscriptions(client),
148
+ cancel: cancelSubscriptions(client),
149
+ update: updateSubscriptions(client),
150
+ iterList: iterListSubscriptions(client)
151
+ };
152
+ }
153
+ //#endregion
154
+ exports.cancelSubscriptions = cancelSubscriptions;
155
+ exports.createSubscriptionsService = createSubscriptionsService;
156
+ exports.getSubscriptions = getSubscriptions;
157
+ exports.iterListSubscriptions = iterListSubscriptions;
158
+ exports.listSubscriptions = listSubscriptions;
159
+ exports.updateSubscriptions = updateSubscriptions;
160
+
161
+ //# sourceMappingURL=subscriptions.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.cjs","names":["HTTPValidationError","ResourceNotFound","AlreadyCanceledSubscription","PaymentFailed","CustomerPortalSubscriptionsUpdate403Error","CustomerPortalSubscriptionsUpdate409Error"],"sources":["../../../../src/2027-01/services/customer_portal/subscriptions.ts"],"sourcesContent":["import type { ClientBase, RequestOptions } from \"../../../base\";\nimport type {\n CustomerSubscription,\n CustomerSubscriptionSortProperty,\n CustomerSubscriptionUpdate,\n ListResourceCustomerSubscription,\n} from \"../../models\";\n\nimport {\n AlreadyCanceledSubscription,\n CustomerPortalSubscriptionsUpdate403Error,\n CustomerPortalSubscriptionsUpdate409Error,\n HTTPValidationError,\n PaymentFailed,\n ResourceNotFound,\n} from \"../../errors\";\n\nexport const listSubscriptions = (client: ClientBase) => {\n /**\n * List subscriptions of the authenticated customer.\n *\n * **Scopes**: `customer_portal:read` `customer_portal:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {ListResourceCustomerSubscription}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n query?: {\n product_id?: string | string[] | null;\n active?: boolean | null;\n query?: string | null;\n page?: number;\n limit?: number;\n sorting?: CustomerSubscriptionSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): Promise<ListResourceCustomerSubscription> => {\n const pathParams = {};\n const queryParams = {\n product_id: query?.product_id,\n active: query?.active,\n query: query?.query,\n page: query?.page ?? 1,\n limit: query?.limit ?? 10,\n sorting: query?.sorting ?? [\"-started_at\"],\n };\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/subscriptions/\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<ListResourceCustomerSubscription>(response, \"json\", {\n 422: HTTPValidationError,\n });\n };\n};\n/**\n * List subscriptions of the authenticated customer.\n *\n * **Scopes**: `customer_portal:read` `customer_portal:write`\n *\n * @param query - Query parameters\n * @param requestOptions - Request options\n * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {HTTPValidationError} Validation Error\n */\nexport const iterListSubscriptions = (client: ClientBase) => {\n return async function* (\n query?: {\n product_id?: string | string[] | null;\n active?: boolean | null;\n query?: string | null;\n page?: number;\n limit?: number;\n sorting?: CustomerSubscriptionSortProperty[] | null;\n },\n requestOptions?: RequestOptions,\n ): AsyncGenerator<CustomerSubscription> {\n let page: number;\n page = query?.page ?? 1;\n let limit: number | undefined;\n limit = query?.limit;\n\n while (true) {\n const response = await listSubscriptions(client)({ ...query, page, limit }, requestOptions);\n for (const item of response.items) {\n yield item;\n }\n if (page >= response.pagination.max_page) {\n break;\n }\n page++;\n }\n };\n};\nexport const getSubscriptions = (client: ClientBase) => {\n /**\n * Get a subscription for the authenticated customer.\n *\n * **Scopes**: `customer_portal:read` `customer_portal:write`\n *\n * @param id - The subscription ID.\n * @param requestOptions - Request options\n * @returns {CustomerSubscription}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {ResourceNotFound} Customer subscription was not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<CustomerSubscription> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"GET\",\n \"/v1/customer-portal/subscriptions/{id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSubscription>(response, \"json\", {\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const cancelSubscriptions = (client: ClientBase) => {\n /**\n * Cancel a subscription of the authenticated customer.\n *\n * @param id - The subscription ID.\n * @param requestOptions - Request options\n * @returns {CustomerSubscription}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {AlreadyCanceledSubscription} Customer subscription is already canceled or will be at the end of the period, or the user lacks billing permissions.\n * @throws {ResourceNotFound} Customer subscription was not found.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (id: string, requestOptions?: RequestOptions): Promise<CustomerSubscription> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"DELETE\",\n \"/v1/customer-portal/subscriptions/{id}\",\n pathParams,\n queryParams,\n undefined,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSubscription>(response, \"json\", {\n 403: AlreadyCanceledSubscription,\n 404: ResourceNotFound,\n 422: HTTPValidationError,\n });\n };\n};\nexport const updateSubscriptions = (client: ClientBase) => {\n /**\n * Update a subscription of the authenticated customer.\n *\n * @param id - The subscription ID.\n * @param body - Request body\n * @param requestOptions - Request options\n * @returns {CustomerSubscription}\n * @throws {PolarNetworkError} When a network error occurs\n * @throws {PolarRateLimitError} When the rate limit is exceeded\n * @throws {PolarServerError} When the server returns a 5xx error\n * @throws {PaymentFailed} Payment required to apply the subscription update.\n * @throws {CustomerPortalSubscriptionsUpdate403Error} Customer subscription is already canceled or will be at the end of the period, the user lacks billing permissions, or pausing/resuming is not enabled for the organization.\n * @throws {ResourceNotFound} Customer subscription was not found.\n * @throws {CustomerPortalSubscriptionsUpdate409Error} The subscription has no payment method to charge, or is not scheduled to be canceled.\n * @throws {HTTPValidationError} Validation Error\n */\n return async (\n id: string,\n body: CustomerSubscriptionUpdate,\n requestOptions?: RequestOptions,\n ): Promise<CustomerSubscription> => {\n const pathParams = {\n id: id,\n };\n const queryParams = {};\n const request = client.buildRequest(\n \"PATCH\",\n \"/v1/customer-portal/subscriptions/{id}\",\n pathParams,\n queryParams,\n body,\n );\n const response = await client.sendRequest(request, requestOptions);\n return client.parseResponse<CustomerSubscription>(response, \"json\", {\n 402: PaymentFailed,\n 403: CustomerPortalSubscriptionsUpdate403Error,\n 404: ResourceNotFound,\n 409: CustomerPortalSubscriptionsUpdate409Error,\n 422: HTTPValidationError,\n });\n };\n};\n\nexport function createSubscriptionsService(client: ClientBase) {\n return {\n list: listSubscriptions(client),\n get: getSubscriptions(client),\n cancel: cancelSubscriptions(client),\n update: updateSubscriptions(client),\n iterList: iterListSubscriptions(client),\n };\n}\n\nexport type Subscriptions = ReturnType<typeof createSubscriptionsService>;\n"],"mappings":";;;AAiBA,MAAa,qBAAqB,WAAuB;;;;;;;;;;;;;;CAcvD,OAAO,OACL,OAQA,mBAC8C;EAC9C,MAAM,aAAa,CAAC;EACpB,MAAM,cAAc;GAClB,YAAY,OAAO;GACnB,QAAQ,OAAO;GACf,OAAO,OAAO;GACd,MAAM,OAAO,QAAQ;GACrB,OAAO,OAAO,SAAS;GACvB,SAAS,OAAO,WAAW,CAAC,aAAa;EAC3C;EACA,MAAM,UAAU,OAAO,aACrB,OACA,sCACA,YACA,aACA,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAgD,UAAU,QAAQ,EAC9E,KAAKA,eAAAA,oBACP,CAAC;CACH;AACF;;;;;;;;;;;;;;AAcA,MAAa,yBAAyB,WAAuB;CAC3D,OAAO,iBACL,OAQA,gBACsC;EACtC,IAAI;EACJ,OAAO,OAAO,QAAQ;EACtB,IAAI;EACJ,QAAQ,OAAO;EAEf,OAAO,MAAM;GACX,MAAM,WAAW,MAAM,kBAAkB,MAAM,CAAC,CAAC;IAAE,GAAG;IAAO;IAAM;GAAM,GAAG,cAAc;GAC1F,KAAK,MAAM,QAAQ,SAAS,OAC1B,MAAM;GAER,IAAI,QAAQ,SAAS,WAAW,UAC9B;GAEF;EACF;CACF;AACF;AACA,MAAa,oBAAoB,WAAuB;;;;;;;;;;;;;;;CAetD,OAAO,OAAO,IAAY,mBAAmE;EAC3F,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,OACA,0CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAoC,UAAU,QAAQ;GAClE,KAAKC,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,uBAAuB,WAAuB;;;;;;;;;;;;;;CAczD,OAAO,OAAO,IAAY,mBAAmE;EAC3F,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,UACA,0CACA,YACA,CAAU,GACV,KAAA,CACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAoC,UAAU,QAAQ;GAClE,KAAKE,eAAAA;GACL,KAAKD,eAAAA;GACL,KAAKD,eAAAA;EACP,CAAC;CACH;AACF;AACA,MAAa,uBAAuB,WAAuB;;;;;;;;;;;;;;;;;CAiBzD,OAAO,OACL,IACA,MACA,mBACkC;EAClC,MAAM,aAAa,EACb,GACN;EAEA,MAAM,UAAU,OAAO,aACrB,SACA,0CACA,YACA,CAAU,GACV,IACF;EACA,MAAM,WAAW,MAAM,OAAO,YAAY,SAAS,cAAc;EACjE,OAAO,OAAO,cAAoC,UAAU,QAAQ;GAClE,KAAKG,eAAAA;GACL,KAAKC,eAAAA;GACL,KAAKH,eAAAA;GACL,KAAKI,eAAAA;GACL,KAAKL,eAAAA;EACP,CAAC;CACH;AACF;AAEA,SAAgB,2BAA2B,QAAoB;CAC7D,OAAO;EACL,MAAM,kBAAkB,MAAM;EAC9B,KAAK,iBAAiB,MAAM;EAC5B,QAAQ,oBAAoB,MAAM;EAClC,QAAQ,oBAAoB,MAAM;EAClC,UAAU,sBAAsB,MAAM;CACxC;AACF"}
@@ -0,0 +1,60 @@
1
+ import { c as RequestOptions, t as ClientBase } from "../../../base-C5EE71lz.cjs";
2
+ import { In as ListResourceCustomerSubscription, Mt as CustomerSubscriptionSortProperty, Nt as CustomerSubscriptionUpdate, jt as CustomerSubscription } from "../../../models-COhG3nD4.cjs";
3
+ //#region src/2027-01/services/customer_portal/subscriptions.d.ts
4
+ declare const listSubscriptions: (client: ClientBase) => (query?: {
5
+ product_id?: string | string[] | null;
6
+ active?: boolean | null;
7
+ query?: string | null;
8
+ page?: number;
9
+ limit?: number;
10
+ sorting?: CustomerSubscriptionSortProperty[] | null;
11
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
12
+ /**
13
+ * List subscriptions of the authenticated customer.
14
+ *
15
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
16
+ *
17
+ * @param query - Query parameters
18
+ * @param requestOptions - Request options
19
+ * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.
20
+ * @throws {PolarNetworkError} When a network error occurs
21
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
22
+ * @throws {PolarServerError} When the server returns a 5xx error
23
+ * @throws {HTTPValidationError} Validation Error
24
+ */
25
+ declare const iterListSubscriptions: (client: ClientBase) => (query?: {
26
+ product_id?: string | string[] | null;
27
+ active?: boolean | null;
28
+ query?: string | null;
29
+ page?: number;
30
+ limit?: number;
31
+ sorting?: CustomerSubscriptionSortProperty[] | null;
32
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
33
+ declare const getSubscriptions: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
34
+ declare const cancelSubscriptions: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
35
+ declare const updateSubscriptions: (client: ClientBase) => (id: string, body: CustomerSubscriptionUpdate, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
36
+ declare function createSubscriptionsService(client: ClientBase): {
37
+ list: (query?: {
38
+ product_id?: string | string[] | null;
39
+ active?: boolean | null;
40
+ query?: string | null;
41
+ page?: number;
42
+ limit?: number;
43
+ sorting?: CustomerSubscriptionSortProperty[] | null;
44
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
45
+ get: (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
46
+ cancel: (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
47
+ update: (id: string, body: CustomerSubscriptionUpdate, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
48
+ iterList: (query?: {
49
+ product_id?: string | string[] | null;
50
+ active?: boolean | null;
51
+ query?: string | null;
52
+ page?: number;
53
+ limit?: number;
54
+ sorting?: CustomerSubscriptionSortProperty[] | null;
55
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
56
+ };
57
+ type Subscriptions = ReturnType<typeof createSubscriptionsService>;
58
+ //#endregion
59
+ export { Subscriptions, cancelSubscriptions, createSubscriptionsService, getSubscriptions, iterListSubscriptions, listSubscriptions, updateSubscriptions };
60
+ //# sourceMappingURL=subscriptions.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.d.cts","names":[],"sources":["../../../../src/2027-01/services/customer_portal/subscriptions.ts"],"mappings":";;;cAiBa,oBAAqB,QAAQ,gBAetC;EACE;EACA;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;cAoCA,wBAAyB,QAAQ,gBAE1C;EACE;EACA;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,mBAAoB,QAAQ,gBAezB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,sBAAuB,QAAQ,gBAc5B,YAAY,iBAAiB,mBAAiB,QAAQ;cAoBzD,sBAAuB,QAAQ,gBAkBxC,YACA,MAAM,4BACN,iBAAiB,mBAChB,QAAQ;iBAuBG,2BAA2B,QAAQ;EA1LvC,OAAA;IACN;IACA;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EAgFO,MAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAiClD,SAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAsC9D,SAAA,YAAM,MACJ,4BAA0B,iBACf,mBAChB,QAAQ;EApHD,WAAA;IACN;IACA;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KA4IR,gBAAgB,kBAAkB"}
@@ -0,0 +1,60 @@
1
+ import { c as RequestOptions, t as ClientBase } from "../../../base-C5EE71lz.mjs";
2
+ import { In as ListResourceCustomerSubscription, Mt as CustomerSubscriptionSortProperty, Nt as CustomerSubscriptionUpdate, jt as CustomerSubscription } from "../../../models-COhG3nD4.mjs";
3
+ //#region src/2027-01/services/customer_portal/subscriptions.d.ts
4
+ declare const listSubscriptions: (client: ClientBase) => (query?: {
5
+ product_id?: string | string[] | null;
6
+ active?: boolean | null;
7
+ query?: string | null;
8
+ page?: number;
9
+ limit?: number;
10
+ sorting?: CustomerSubscriptionSortProperty[] | null;
11
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
12
+ /**
13
+ * List subscriptions of the authenticated customer.
14
+ *
15
+ * **Scopes**: `customer_portal:read` `customer_portal:write`
16
+ *
17
+ * @param query - Query parameters
18
+ * @param requestOptions - Request options
19
+ * @returns {AsyncGenerator<CustomerSubscription>} A generator that yields items of type CustomerSubscription.
20
+ * @throws {PolarNetworkError} When a network error occurs
21
+ * @throws {PolarRateLimitError} When the rate limit is exceeded
22
+ * @throws {PolarServerError} When the server returns a 5xx error
23
+ * @throws {HTTPValidationError} Validation Error
24
+ */
25
+ declare const iterListSubscriptions: (client: ClientBase) => (query?: {
26
+ product_id?: string | string[] | null;
27
+ active?: boolean | null;
28
+ query?: string | null;
29
+ page?: number;
30
+ limit?: number;
31
+ sorting?: CustomerSubscriptionSortProperty[] | null;
32
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
33
+ declare const getSubscriptions: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
34
+ declare const cancelSubscriptions: (client: ClientBase) => (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
35
+ declare const updateSubscriptions: (client: ClientBase) => (id: string, body: CustomerSubscriptionUpdate, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
36
+ declare function createSubscriptionsService(client: ClientBase): {
37
+ list: (query?: {
38
+ product_id?: string | string[] | null;
39
+ active?: boolean | null;
40
+ query?: string | null;
41
+ page?: number;
42
+ limit?: number;
43
+ sorting?: CustomerSubscriptionSortProperty[] | null;
44
+ }, requestOptions?: RequestOptions) => Promise<ListResourceCustomerSubscription>;
45
+ get: (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
46
+ cancel: (id: string, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
47
+ update: (id: string, body: CustomerSubscriptionUpdate, requestOptions?: RequestOptions) => Promise<CustomerSubscription>;
48
+ iterList: (query?: {
49
+ product_id?: string | string[] | null;
50
+ active?: boolean | null;
51
+ query?: string | null;
52
+ page?: number;
53
+ limit?: number;
54
+ sorting?: CustomerSubscriptionSortProperty[] | null;
55
+ }, requestOptions?: RequestOptions) => AsyncGenerator<CustomerSubscription>;
56
+ };
57
+ type Subscriptions = ReturnType<typeof createSubscriptionsService>;
58
+ //#endregion
59
+ export { Subscriptions, cancelSubscriptions, createSubscriptionsService, getSubscriptions, iterListSubscriptions, listSubscriptions, updateSubscriptions };
60
+ //# sourceMappingURL=subscriptions.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriptions.d.mts","names":[],"sources":["../../../../src/2027-01/services/customer_portal/subscriptions.ts"],"mappings":";;;cAiBa,oBAAqB,QAAQ,gBAetC;EACE;EACA;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,QAAQ;;;;;;;;;;;;;;cAoCA,wBAAyB,QAAQ,gBAE1C;EACE;EACA;EACA;EACA;EACA;EACA,UAAU;GAEZ,iBAAiB,mBAChB,eAAe;cAkBP,mBAAoB,QAAQ,gBAezB,YAAY,iBAAiB,mBAAiB,QAAQ;cAmBzD,sBAAuB,QAAQ,gBAc5B,YAAY,iBAAiB,mBAAiB,QAAQ;cAoBzD,sBAAuB,QAAQ,gBAkBxC,YACA,MAAM,4BACN,iBAAiB,mBAChB,QAAQ;iBAuBG,2BAA2B,QAAQ;EA1LvC,OAAA;IACN;IACA;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,QAAQ;EAgFO,MAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAiClD,SAAA,YAAM,iBAAmB,mBAAiB,QAAQ;EAsC9D,SAAA,YAAM,MACJ,4BAA0B,iBACf,mBAChB,QAAQ;EApHD,WAAA;IACN;IACA;IACA;IACA;IACA;IACA,UAAU;KACX,iBACgB,mBAChB,eAAe;;KA4IR,gBAAgB,kBAAkB"}