@stigg/typescript 0.1.0-beta.20 → 0.1.0-beta.22

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 (433) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +1 -0
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +1 -0
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +3 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/v1/addons/addons.d.mts +145 -94
  20. package/resources/v1/addons/addons.d.mts.map +1 -1
  21. package/resources/v1/addons/addons.d.ts +145 -94
  22. package/resources/v1/addons/addons.d.ts.map +1 -1
  23. package/resources/v1/addons/addons.js +110 -76
  24. package/resources/v1/addons/addons.js.map +1 -1
  25. package/resources/v1/addons/addons.mjs +110 -76
  26. package/resources/v1/addons/addons.mjs.map +1 -1
  27. package/resources/v1/addons/entitlements.d.mts +62 -36
  28. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  29. package/resources/v1/addons/entitlements.d.ts +62 -36
  30. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  31. package/resources/v1/addons/entitlements.js +49 -39
  32. package/resources/v1/addons/entitlements.js.map +1 -1
  33. package/resources/v1/addons/entitlements.mjs +49 -39
  34. package/resources/v1/addons/entitlements.mjs.map +1 -1
  35. package/resources/v1/addons/index.d.mts +2 -2
  36. package/resources/v1/addons/index.d.mts.map +1 -1
  37. package/resources/v1/addons/index.d.ts +2 -2
  38. package/resources/v1/addons/index.d.ts.map +1 -1
  39. package/resources/v1/addons/index.js.map +1 -1
  40. package/resources/v1/addons/index.mjs.map +1 -1
  41. package/resources/v1/coupons.d.mts +81 -57
  42. package/resources/v1/coupons.d.mts.map +1 -1
  43. package/resources/v1/coupons.d.ts +81 -57
  44. package/resources/v1/coupons.d.ts.map +1 -1
  45. package/resources/v1/coupons.js +60 -45
  46. package/resources/v1/coupons.js.map +1 -1
  47. package/resources/v1/coupons.mjs +60 -45
  48. package/resources/v1/coupons.mjs.map +1 -1
  49. package/resources/v1/credits/credits.d.mts +60 -52
  50. package/resources/v1/credits/credits.d.mts.map +1 -1
  51. package/resources/v1/credits/credits.d.ts +60 -52
  52. package/resources/v1/credits/credits.d.ts.map +1 -1
  53. package/resources/v1/credits/credits.js +36 -30
  54. package/resources/v1/credits/credits.js.map +1 -1
  55. package/resources/v1/credits/credits.mjs +36 -30
  56. package/resources/v1/credits/credits.mjs.map +1 -1
  57. package/resources/v1/credits/custom-currencies.d.mts +98 -74
  58. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  59. package/resources/v1/credits/custom-currencies.d.ts +98 -74
  60. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  61. package/resources/v1/credits/custom-currencies.js +76 -61
  62. package/resources/v1/credits/custom-currencies.js.map +1 -1
  63. package/resources/v1/credits/custom-currencies.mjs +76 -61
  64. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  65. package/resources/v1/credits/grants.d.mts +63 -54
  66. package/resources/v1/credits/grants.d.mts.map +1 -1
  67. package/resources/v1/credits/grants.d.ts +63 -54
  68. package/resources/v1/credits/grants.d.ts.map +1 -1
  69. package/resources/v1/credits/grants.js +35 -33
  70. package/resources/v1/credits/grants.js.map +1 -1
  71. package/resources/v1/credits/grants.mjs +35 -33
  72. package/resources/v1/credits/grants.mjs.map +1 -1
  73. package/resources/v1/credits/index.d.mts +2 -2
  74. package/resources/v1/credits/index.d.mts.map +1 -1
  75. package/resources/v1/credits/index.d.ts +2 -2
  76. package/resources/v1/credits/index.d.ts.map +1 -1
  77. package/resources/v1/credits/index.js.map +1 -1
  78. package/resources/v1/credits/index.mjs.map +1 -1
  79. package/resources/v1/customers/customers.d.mts +167 -127
  80. package/resources/v1/customers/customers.d.mts.map +1 -1
  81. package/resources/v1/customers/customers.d.ts +167 -127
  82. package/resources/v1/customers/customers.d.ts.map +1 -1
  83. package/resources/v1/customers/customers.js +124 -96
  84. package/resources/v1/customers/customers.js.map +1 -1
  85. package/resources/v1/customers/customers.mjs +124 -96
  86. package/resources/v1/customers/customers.mjs.map +1 -1
  87. package/resources/v1/customers/index.d.mts +2 -2
  88. package/resources/v1/customers/index.d.mts.map +1 -1
  89. package/resources/v1/customers/index.d.ts +2 -2
  90. package/resources/v1/customers/index.d.ts.map +1 -1
  91. package/resources/v1/customers/index.js.map +1 -1
  92. package/resources/v1/customers/index.mjs +1 -1
  93. package/resources/v1/customers/index.mjs.map +1 -1
  94. package/resources/v1/customers/integrations.d.mts +66 -58
  95. package/resources/v1/customers/integrations.d.mts.map +1 -1
  96. package/resources/v1/customers/integrations.d.ts +66 -58
  97. package/resources/v1/customers/integrations.d.ts.map +1 -1
  98. package/resources/v1/customers/integrations.js +57 -56
  99. package/resources/v1/customers/integrations.js.map +1 -1
  100. package/resources/v1/customers/integrations.mjs +57 -56
  101. package/resources/v1/customers/integrations.mjs.map +1 -1
  102. package/resources/v1/customers/payment-method.d.mts +33 -25
  103. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  104. package/resources/v1/customers/payment-method.d.ts +33 -25
  105. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  106. package/resources/v1/customers/payment-method.js +26 -20
  107. package/resources/v1/customers/payment-method.js.map +1 -1
  108. package/resources/v1/customers/payment-method.mjs +26 -20
  109. package/resources/v1/customers/payment-method.mjs.map +1 -1
  110. package/resources/v1/customers/promotional-entitlements.d.mts +42 -60
  111. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  112. package/resources/v1/customers/promotional-entitlements.d.ts +42 -60
  113. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  114. package/resources/v1/customers/promotional-entitlements.js +38 -57
  115. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  116. package/resources/v1/customers/promotional-entitlements.mjs +38 -57
  117. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  118. package/resources/v1/events/data-export/data-export.d.mts +29 -21
  119. package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
  120. package/resources/v1/events/data-export/data-export.d.ts +29 -21
  121. package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
  122. package/resources/v1/events/data-export/data-export.js +27 -18
  123. package/resources/v1/events/data-export/data-export.js.map +1 -1
  124. package/resources/v1/events/data-export/data-export.mjs +27 -18
  125. package/resources/v1/events/data-export/data-export.mjs.map +1 -1
  126. package/resources/v1/events/data-export/destinations.d.mts +29 -22
  127. package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
  128. package/resources/v1/events/data-export/destinations.d.ts +29 -22
  129. package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
  130. package/resources/v1/events/data-export/destinations.js +26 -21
  131. package/resources/v1/events/data-export/destinations.js.map +1 -1
  132. package/resources/v1/events/data-export/destinations.mjs +26 -21
  133. package/resources/v1/events/data-export/destinations.mjs.map +1 -1
  134. package/resources/v1/events/data-export/index.d.mts +1 -1
  135. package/resources/v1/events/data-export/index.d.mts.map +1 -1
  136. package/resources/v1/events/data-export/index.d.ts +1 -1
  137. package/resources/v1/events/data-export/index.d.ts.map +1 -1
  138. package/resources/v1/events/data-export/index.js.map +1 -1
  139. package/resources/v1/events/data-export/index.mjs.map +1 -1
  140. package/resources/v1/events/events.d.mts +13 -19
  141. package/resources/v1/events/events.d.mts.map +1 -1
  142. package/resources/v1/events/events.d.ts +13 -19
  143. package/resources/v1/events/events.d.ts.map +1 -1
  144. package/resources/v1/events/events.js +14 -19
  145. package/resources/v1/events/events.js.map +1 -1
  146. package/resources/v1/events/events.mjs +14 -19
  147. package/resources/v1/events/events.mjs.map +1 -1
  148. package/resources/v1/events/index.d.mts +0 -1
  149. package/resources/v1/events/index.d.mts.map +1 -1
  150. package/resources/v1/events/index.d.ts +0 -1
  151. package/resources/v1/events/index.d.ts.map +1 -1
  152. package/resources/v1/events/index.js +3 -5
  153. package/resources/v1/events/index.js.map +1 -1
  154. package/resources/v1/events/index.mjs +0 -1
  155. package/resources/v1/events/index.mjs.map +1 -1
  156. package/resources/v1/features.d.mts +109 -74
  157. package/resources/v1/features.d.mts.map +1 -1
  158. package/resources/v1/features.d.ts +109 -74
  159. package/resources/v1/features.d.ts.map +1 -1
  160. package/resources/v1/features.js +72 -54
  161. package/resources/v1/features.js.map +1 -1
  162. package/resources/v1/features.mjs +72 -54
  163. package/resources/v1/features.mjs.map +1 -1
  164. package/resources/v1/index.d.mts +7 -7
  165. package/resources/v1/index.d.mts.map +1 -1
  166. package/resources/v1/index.d.ts +7 -7
  167. package/resources/v1/index.d.ts.map +1 -1
  168. package/resources/v1/index.js.map +1 -1
  169. package/resources/v1/index.mjs.map +1 -1
  170. package/resources/v1/plans/entitlements.d.mts +62 -36
  171. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  172. package/resources/v1/plans/entitlements.d.ts +62 -36
  173. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  174. package/resources/v1/plans/entitlements.js +49 -39
  175. package/resources/v1/plans/entitlements.js.map +1 -1
  176. package/resources/v1/plans/entitlements.mjs +49 -39
  177. package/resources/v1/plans/entitlements.mjs.map +1 -1
  178. package/resources/v1/plans/index.d.mts +2 -2
  179. package/resources/v1/plans/index.d.mts.map +1 -1
  180. package/resources/v1/plans/index.d.ts +2 -2
  181. package/resources/v1/plans/index.d.ts.map +1 -1
  182. package/resources/v1/plans/index.js.map +1 -1
  183. package/resources/v1/plans/index.mjs.map +1 -1
  184. package/resources/v1/plans/plans.d.mts +159 -106
  185. package/resources/v1/plans/plans.d.mts.map +1 -1
  186. package/resources/v1/plans/plans.d.ts +159 -106
  187. package/resources/v1/plans/plans.d.ts.map +1 -1
  188. package/resources/v1/plans/plans.js +127 -89
  189. package/resources/v1/plans/plans.js.map +1 -1
  190. package/resources/v1/plans/plans.mjs +127 -89
  191. package/resources/v1/plans/plans.mjs.map +1 -1
  192. package/resources/v1/products.d.mts +97 -66
  193. package/resources/v1/products.d.mts.map +1 -1
  194. package/resources/v1/products.d.ts +97 -66
  195. package/resources/v1/products.d.ts.map +1 -1
  196. package/resources/v1/products.js +73 -54
  197. package/resources/v1/products.js.map +1 -1
  198. package/resources/v1/products.mjs +73 -54
  199. package/resources/v1/products.mjs.map +1 -1
  200. package/resources/v1/subscriptions/future-update.d.mts +29 -19
  201. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  202. package/resources/v1/subscriptions/future-update.d.ts +29 -19
  203. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  204. package/resources/v1/subscriptions/future-update.js +25 -20
  205. package/resources/v1/subscriptions/future-update.js.map +1 -1
  206. package/resources/v1/subscriptions/future-update.mjs +25 -20
  207. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  208. package/resources/v1/subscriptions/index.d.mts +4 -4
  209. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  210. package/resources/v1/subscriptions/index.d.ts +4 -4
  211. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  212. package/resources/v1/subscriptions/index.js.map +1 -1
  213. package/resources/v1/subscriptions/index.mjs +1 -1
  214. package/resources/v1/subscriptions/index.mjs.map +1 -1
  215. package/resources/v1/subscriptions/invoice.d.mts +15 -8
  216. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  217. package/resources/v1/subscriptions/invoice.d.ts +15 -8
  218. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  219. package/resources/v1/subscriptions/invoice.js +13 -8
  220. package/resources/v1/subscriptions/invoice.js.map +1 -1
  221. package/resources/v1/subscriptions/invoice.mjs +13 -8
  222. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  223. package/resources/v1/subscriptions/subscriptions.d.mts +244 -161
  224. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  225. package/resources/v1/subscriptions/subscriptions.d.ts +244 -161
  226. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  227. package/resources/v1/subscriptions/subscriptions.js +126 -100
  228. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  229. package/resources/v1/subscriptions/subscriptions.mjs +128 -102
  230. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  231. package/resources/v1/subscriptions/usage.d.mts +29 -17
  232. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  233. package/resources/v1/subscriptions/usage.d.ts +29 -17
  234. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  235. package/resources/v1/subscriptions/usage.js +26 -17
  236. package/resources/v1/subscriptions/usage.js.map +1 -1
  237. package/resources/v1/subscriptions/usage.mjs +26 -17
  238. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  239. package/resources/v1/usage.d.mts +24 -26
  240. package/resources/v1/usage.d.mts.map +1 -1
  241. package/resources/v1/usage.d.ts +24 -26
  242. package/resources/v1/usage.d.ts.map +1 -1
  243. package/resources/v1/usage.js +26 -28
  244. package/resources/v1/usage.js.map +1 -1
  245. package/resources/v1/usage.mjs +26 -28
  246. package/resources/v1/usage.mjs.map +1 -1
  247. package/resources/v1/v1.d.mts +14 -14
  248. package/resources/v1/v1.d.mts.map +1 -1
  249. package/resources/v1/v1.d.ts +14 -14
  250. package/resources/v1/v1.d.ts.map +1 -1
  251. package/resources/v1/v1.js.map +1 -1
  252. package/resources/v1/v1.mjs.map +1 -1
  253. package/resources/v1-beta/customers/assignments.d.mts +242 -0
  254. package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
  255. package/resources/v1-beta/customers/assignments.d.ts +242 -0
  256. package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
  257. package/resources/v1-beta/customers/assignments.js +84 -0
  258. package/resources/v1-beta/customers/assignments.js.map +1 -0
  259. package/resources/v1-beta/customers/assignments.mjs +80 -0
  260. package/resources/v1-beta/customers/assignments.mjs.map +1 -0
  261. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.mts +1 -1
  262. package/resources/v1-beta/customers/customers.d.mts.map +1 -0
  263. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
  264. package/resources/v1-beta/customers/customers.d.ts.map +1 -0
  265. package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
  266. package/resources/v1-beta/customers/customers.js.map +1 -0
  267. package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
  268. package/resources/v1-beta/customers/customers.mjs.map +1 -0
  269. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +94 -47
  270. package/resources/v1-beta/customers/entities.d.mts.map +1 -0
  271. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +94 -47
  272. package/resources/v1-beta/customers/entities.d.ts.map +1 -0
  273. package/resources/v1-beta/customers/entities.js +150 -0
  274. package/resources/v1-beta/customers/entities.js.map +1 -0
  275. package/resources/v1-beta/customers/entities.mjs +146 -0
  276. package/resources/v1-beta/customers/entities.mjs.map +1 -0
  277. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +27 -16
  278. package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
  279. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +27 -16
  280. package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
  281. package/resources/v1-beta/customers/entitlements.js +36 -0
  282. package/resources/v1-beta/customers/entitlements.js.map +1 -0
  283. package/resources/v1-beta/customers/entitlements.mjs +32 -0
  284. package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
  285. package/resources/v1-beta/customers/index.d.mts.map +1 -0
  286. package/resources/v1-beta/customers/index.d.ts.map +1 -0
  287. package/resources/v1-beta/customers/index.js.map +1 -0
  288. package/resources/v1-beta/customers/index.mjs.map +1 -0
  289. package/resources/v1-beta/customers.d.mts.map +1 -0
  290. package/resources/v1-beta/customers.d.ts.map +1 -0
  291. package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
  292. package/resources/v1-beta/customers.js.map +1 -0
  293. package/resources/v1-beta/customers.mjs.map +1 -0
  294. package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +44 -23
  295. package/resources/v1-beta/entity-types.d.mts.map +1 -0
  296. package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +44 -23
  297. package/resources/v1-beta/entity-types.d.ts.map +1 -0
  298. package/resources/v1-beta/entity-types.js +75 -0
  299. package/resources/v1-beta/entity-types.js.map +1 -0
  300. package/resources/v1-beta/entity-types.mjs +71 -0
  301. package/resources/v1-beta/entity-types.mjs.map +1 -0
  302. package/resources/{v1/events/beta → v1-beta}/index.d.mts +1 -1
  303. package/resources/v1-beta/index.d.mts.map +1 -0
  304. package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
  305. package/resources/v1-beta/index.d.ts.map +1 -0
  306. package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
  307. package/resources/v1-beta/index.js.map +1 -0
  308. package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
  309. package/resources/v1-beta/index.mjs.map +1 -0
  310. package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
  311. package/resources/v1-beta/v1-beta.d.mts.map +1 -0
  312. package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
  313. package/resources/v1-beta/v1-beta.d.ts.map +1 -0
  314. package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
  315. package/resources/v1-beta/v1-beta.js.map +1 -0
  316. package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
  317. package/resources/v1-beta/v1-beta.mjs.map +1 -0
  318. package/resources/v1-beta.d.mts +2 -0
  319. package/resources/v1-beta.d.mts.map +1 -0
  320. package/resources/v1-beta.d.ts +2 -0
  321. package/resources/v1-beta.d.ts.map +1 -0
  322. package/resources/{v1/events/beta.js → v1-beta.js} +3 -3
  323. package/resources/v1-beta.js.map +1 -0
  324. package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
  325. package/resources/v1-beta.mjs.map +1 -0
  326. package/src/client.ts +5 -0
  327. package/src/resources/index.ts +1 -0
  328. package/src/resources/v1/addons/addons.ts +293 -105
  329. package/src/resources/v1/addons/entitlements.ts +123 -41
  330. package/src/resources/v1/addons/index.ts +5 -0
  331. package/src/resources/v1/coupons.ts +158 -63
  332. package/src/resources/v1/credits/credits.ts +103 -50
  333. package/src/resources/v1/credits/custom-currencies.ts +191 -82
  334. package/src/resources/v1/credits/grants.ts +104 -54
  335. package/src/resources/v1/credits/index.ts +4 -0
  336. package/src/resources/v1/customers/customers.ts +324 -140
  337. package/src/resources/v1/customers/index.ts +8 -1
  338. package/src/resources/v1/customers/integrations.ts +129 -63
  339. package/src/resources/v1/customers/payment-method.ts +66 -25
  340. package/src/resources/v1/customers/promotional-entitlements.ts +82 -62
  341. package/src/resources/v1/events/data-export/data-export.ts +58 -21
  342. package/src/resources/v1/events/data-export/destinations.ts +61 -23
  343. package/src/resources/v1/events/data-export/index.ts +1 -0
  344. package/src/resources/v1/events/events.ts +28 -22
  345. package/src/resources/v1/events/index.ts +0 -1
  346. package/src/resources/v1/features.ts +209 -82
  347. package/src/resources/v1/index.ts +19 -0
  348. package/src/resources/v1/plans/entitlements.ts +123 -41
  349. package/src/resources/v1/plans/index.ts +5 -0
  350. package/src/resources/v1/plans/plans.ts +321 -119
  351. package/src/resources/v1/products.ts +193 -74
  352. package/src/resources/v1/subscriptions/future-update.ts +68 -21
  353. package/src/resources/v1/subscriptions/index.ts +9 -2
  354. package/src/resources/v1/subscriptions/invoice.ts +36 -9
  355. package/src/resources/v1/subscriptions/subscriptions.ts +417 -173
  356. package/src/resources/v1/subscriptions/usage.ts +61 -18
  357. package/src/resources/v1/usage.ts +53 -29
  358. package/src/resources/v1/v1.ts +38 -0
  359. package/src/resources/v1-beta/customers/assignments.ts +328 -0
  360. package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
  361. package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +165 -54
  362. package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +43 -18
  363. package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +70 -25
  364. package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
  365. package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
  366. package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
  367. package/src/version.ts +1 -1
  368. package/version.d.mts +1 -1
  369. package/version.d.ts +1 -1
  370. package/version.js +1 -1
  371. package/version.mjs +1 -1
  372. package/resources/v1/events/beta/beta.d.mts.map +0 -1
  373. package/resources/v1/events/beta/beta.d.ts.map +0 -1
  374. package/resources/v1/events/beta/beta.js.map +0 -1
  375. package/resources/v1/events/beta/beta.mjs.map +0 -1
  376. package/resources/v1/events/beta/customers/assignments.d.mts +0 -178
  377. package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
  378. package/resources/v1/events/beta/customers/assignments.d.ts +0 -178
  379. package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
  380. package/resources/v1/events/beta/customers/assignments.js +0 -62
  381. package/resources/v1/events/beta/customers/assignments.js.map +0 -1
  382. package/resources/v1/events/beta/customers/assignments.mjs +0 -58
  383. package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
  384. package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
  385. package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
  386. package/resources/v1/events/beta/customers/customers.js.map +0 -1
  387. package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
  388. package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
  389. package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
  390. package/resources/v1/events/beta/customers/entities.js +0 -105
  391. package/resources/v1/events/beta/customers/entities.js.map +0 -1
  392. package/resources/v1/events/beta/customers/entities.mjs +0 -101
  393. package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
  394. package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
  395. package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
  396. package/resources/v1/events/beta/customers/entitlements.js +0 -26
  397. package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
  398. package/resources/v1/events/beta/customers/entitlements.mjs +0 -22
  399. package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
  400. package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
  401. package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
  402. package/resources/v1/events/beta/customers/index.js.map +0 -1
  403. package/resources/v1/events/beta/customers/index.mjs.map +0 -1
  404. package/resources/v1/events/beta/customers.d.mts.map +0 -1
  405. package/resources/v1/events/beta/customers.d.ts.map +0 -1
  406. package/resources/v1/events/beta/customers.js.map +0 -1
  407. package/resources/v1/events/beta/customers.mjs.map +0 -1
  408. package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
  409. package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
  410. package/resources/v1/events/beta/entity-types.js +0 -56
  411. package/resources/v1/events/beta/entity-types.js.map +0 -1
  412. package/resources/v1/events/beta/entity-types.mjs +0 -52
  413. package/resources/v1/events/beta/entity-types.mjs.map +0 -1
  414. package/resources/v1/events/beta/index.d.mts.map +0 -1
  415. package/resources/v1/events/beta/index.d.ts.map +0 -1
  416. package/resources/v1/events/beta/index.js.map +0 -1
  417. package/resources/v1/events/beta/index.mjs.map +0 -1
  418. package/resources/v1/events/beta.d.mts +0 -2
  419. package/resources/v1/events/beta.d.mts.map +0 -1
  420. package/resources/v1/events/beta.d.ts +0 -2
  421. package/resources/v1/events/beta.d.ts.map +0 -1
  422. package/resources/v1/events/beta.js.map +0 -1
  423. package/resources/v1/events/beta.mjs.map +0 -1
  424. package/src/resources/v1/events/beta/customers/assignments.ts +0 -228
  425. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
  426. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
  427. /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
  428. /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
  429. /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
  430. /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
  431. /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
  432. /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
  433. /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CustomCurrencies = void 0;
5
5
  const resource_1 = require("../../../core/resource.js");
6
6
  const pagination_1 = require("../../../core/pagination.js");
7
+ const headers_1 = require("../../../internal/headers.js");
7
8
  const path_1 = require("../../../internal/utils/path.js");
8
9
  /**
9
10
  * Operations related to custom currencies
@@ -11,94 +12,108 @@ const path_1 = require("../../../internal/utils/path.js");
11
12
  class CustomCurrencies extends resource_1.APIResource {
12
13
  /**
13
14
  * Creates a new custom currency in the environment.
14
- *
15
- * @example
16
- * ```ts
17
- * const customCurrencyResponse =
18
- * await client.v1.credits.customCurrencies.create({
19
- * id: 'id',
20
- * displayName: 'displayName',
21
- * });
22
- * ```
23
15
  */
24
- create(body, options) {
25
- return this._client.post('/api/v1/credits/custom-currencies', { body, ...options });
16
+ create(params, options) {
17
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
18
+ return this._client.post('/api/v1/credits/custom-currencies', {
19
+ body,
20
+ ...options,
21
+ headers: (0, headers_1.buildHeaders)([
22
+ {
23
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
24
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
25
+ },
26
+ options?.headers,
27
+ ]),
28
+ });
26
29
  }
27
30
  /**
28
31
  * Updates an existing custom currency. Only the supplied fields are modified.
29
- *
30
- * @example
31
- * ```ts
32
- * const customCurrencyResponse =
33
- * await client.v1.credits.customCurrencies.update(
34
- * 'currencyId',
35
- * );
36
- * ```
37
32
  */
38
- update(currencyID, body, options) {
39
- return this._client.patch((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}`, { body, ...options });
33
+ update(currencyID, params, options) {
34
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
35
+ return this._client.patch((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}`, {
36
+ body,
37
+ ...options,
38
+ headers: (0, headers_1.buildHeaders)([
39
+ {
40
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
41
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
42
+ },
43
+ options?.headers,
44
+ ]),
45
+ });
40
46
  }
41
47
  /**
42
48
  * Retrieves a paginated list of custom currencies in the environment. Archived
43
49
  * currencies are excluded by default; pass `status=ARCHIVED` (or
44
50
  * `status=ACTIVE,ARCHIVED`) to include them.
45
- *
46
- * @example
47
- * ```ts
48
- * // Automatically fetches more pages as needed.
49
- * for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
50
- * // ...
51
- * }
52
- * ```
53
51
  */
54
- list(query = {}, options) {
55
- return this._client.getAPIList('/api/v1/credits/custom-currencies', (pagination_1.MyCursorIDPage), { query, ...options });
52
+ list(params = {}, options) {
53
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
54
+ return this._client.getAPIList('/api/v1/credits/custom-currencies', (pagination_1.MyCursorIDPage), {
55
+ query,
56
+ ...options,
57
+ headers: (0, headers_1.buildHeaders)([
58
+ {
59
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
60
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
61
+ },
62
+ options?.headers,
63
+ ]),
64
+ });
56
65
  }
57
66
  /**
58
67
  * Archives a custom currency. Fails if the currency is still associated with any
59
68
  * active plan or addon — use the associated-entities endpoint first to inspect
60
69
  * dependencies.
61
- *
62
- * @example
63
- * ```ts
64
- * const customCurrencyResponse =
65
- * await client.v1.credits.customCurrencies.archive(
66
- * 'currencyId',
67
- * );
68
- * ```
69
70
  */
70
- archive(currencyID, options) {
71
- return this._client.post((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}/archive`, options);
71
+ archive(currencyID, params = {}, options) {
72
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
73
+ return this._client.post((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}/archive`, {
74
+ ...options,
75
+ headers: (0, headers_1.buildHeaders)([
76
+ {
77
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
78
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
79
+ },
80
+ options?.headers,
81
+ ]),
82
+ });
72
83
  }
73
84
  /**
74
85
  * Lists the active plans and addons that reference a custom currency. Useful
75
86
  * before archiving to inspect dependencies.
76
- *
77
- * @example
78
- * ```ts
79
- * const response =
80
- * await client.v1.credits.customCurrencies.listAssociatedEntities(
81
- * 'currencyId',
82
- * );
83
- * ```
84
87
  */
85
- listAssociatedEntities(currencyID, options) {
86
- return this._client.get((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}/associated-entities`, options);
88
+ listAssociatedEntities(currencyID, params = {}, options) {
89
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
90
+ return this._client.get((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}/associated-entities`, {
91
+ ...options,
92
+ headers: (0, headers_1.buildHeaders)([
93
+ {
94
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
95
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
96
+ },
97
+ options?.headers,
98
+ ]),
99
+ });
87
100
  }
88
101
  /**
89
102
  * Restores a previously archived custom currency. Fails if another active currency
90
103
  * with the same ID already exists.
91
- *
92
- * @example
93
- * ```ts
94
- * const customCurrencyResponse =
95
- * await client.v1.credits.customCurrencies.unarchive(
96
- * 'currencyId',
97
- * );
98
- * ```
99
104
  */
100
- unarchive(currencyID, options) {
101
- return this._client.post((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}/unarchive`, options);
105
+ unarchive(currencyID, params = {}, options) {
106
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
107
+ return this._client.post((0, path_1.path) `/api/v1/credits/custom-currencies/${currencyID}/unarchive`, {
108
+ ...options,
109
+ headers: (0, headers_1.buildHeaders)([
110
+ {
111
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
112
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
113
+ },
114
+ options?.headers,
115
+ ]),
116
+ });
102
117
  }
103
118
  }
104
119
  exports.CustomCurrencies = CustomCurrencies;
@@ -1 +1 @@
1
- {"version":3,"file":"custom-currencies.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAElG,0DAAoD;AAEpD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qCAAqC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,EACnC,CAAA,2BAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qCAAqC,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,sBAAsB,CACpB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,qCAAqC,UAAU,sBAAsB,EACzE,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,UAAkB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qCAAqC,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACF;AAlHD,4CAkHC"}
1
+ {"version":3,"file":"custom-currencies.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAClG,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,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ACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAtID,4CAsIC"}
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
3
  import { MyCursorIDPage } from "../../../core/pagination.mjs";
4
+ import { buildHeaders } from "../../../internal/headers.mjs";
4
5
  import { path } from "../../../internal/utils/path.mjs";
5
6
  /**
6
7
  * Operations related to custom currencies
@@ -8,94 +9,108 @@ import { path } from "../../../internal/utils/path.mjs";
8
9
  export class CustomCurrencies extends APIResource {
9
10
  /**
10
11
  * Creates a new custom currency in the environment.
11
- *
12
- * @example
13
- * ```ts
14
- * const customCurrencyResponse =
15
- * await client.v1.credits.customCurrencies.create({
16
- * id: 'id',
17
- * displayName: 'displayName',
18
- * });
19
- * ```
20
12
  */
21
- create(body, options) {
22
- return this._client.post('/api/v1/credits/custom-currencies', { body, ...options });
13
+ create(params, options) {
14
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
15
+ return this._client.post('/api/v1/credits/custom-currencies', {
16
+ body,
17
+ ...options,
18
+ headers: buildHeaders([
19
+ {
20
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
21
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
22
+ },
23
+ options?.headers,
24
+ ]),
25
+ });
23
26
  }
24
27
  /**
25
28
  * Updates an existing custom currency. Only the supplied fields are modified.
26
- *
27
- * @example
28
- * ```ts
29
- * const customCurrencyResponse =
30
- * await client.v1.credits.customCurrencies.update(
31
- * 'currencyId',
32
- * );
33
- * ```
34
29
  */
35
- update(currencyID, body, options) {
36
- return this._client.patch(path `/api/v1/credits/custom-currencies/${currencyID}`, { body, ...options });
30
+ update(currencyID, params, options) {
31
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
32
+ return this._client.patch(path `/api/v1/credits/custom-currencies/${currencyID}`, {
33
+ body,
34
+ ...options,
35
+ headers: buildHeaders([
36
+ {
37
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
38
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
39
+ },
40
+ options?.headers,
41
+ ]),
42
+ });
37
43
  }
38
44
  /**
39
45
  * Retrieves a paginated list of custom currencies in the environment. Archived
40
46
  * currencies are excluded by default; pass `status=ARCHIVED` (or
41
47
  * `status=ACTIVE,ARCHIVED`) to include them.
42
- *
43
- * @example
44
- * ```ts
45
- * // Automatically fetches more pages as needed.
46
- * for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
47
- * // ...
48
- * }
49
- * ```
50
48
  */
51
- list(query = {}, options) {
52
- return this._client.getAPIList('/api/v1/credits/custom-currencies', (MyCursorIDPage), { query, ...options });
49
+ list(params = {}, options) {
50
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
51
+ return this._client.getAPIList('/api/v1/credits/custom-currencies', (MyCursorIDPage), {
52
+ query,
53
+ ...options,
54
+ headers: buildHeaders([
55
+ {
56
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
57
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
58
+ },
59
+ options?.headers,
60
+ ]),
61
+ });
53
62
  }
54
63
  /**
55
64
  * Archives a custom currency. Fails if the currency is still associated with any
56
65
  * active plan or addon — use the associated-entities endpoint first to inspect
57
66
  * dependencies.
58
- *
59
- * @example
60
- * ```ts
61
- * const customCurrencyResponse =
62
- * await client.v1.credits.customCurrencies.archive(
63
- * 'currencyId',
64
- * );
65
- * ```
66
67
  */
67
- archive(currencyID, options) {
68
- return this._client.post(path `/api/v1/credits/custom-currencies/${currencyID}/archive`, options);
68
+ archive(currencyID, params = {}, options) {
69
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
70
+ return this._client.post(path `/api/v1/credits/custom-currencies/${currencyID}/archive`, {
71
+ ...options,
72
+ headers: buildHeaders([
73
+ {
74
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
75
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
76
+ },
77
+ options?.headers,
78
+ ]),
79
+ });
69
80
  }
70
81
  /**
71
82
  * Lists the active plans and addons that reference a custom currency. Useful
72
83
  * before archiving to inspect dependencies.
73
- *
74
- * @example
75
- * ```ts
76
- * const response =
77
- * await client.v1.credits.customCurrencies.listAssociatedEntities(
78
- * 'currencyId',
79
- * );
80
- * ```
81
84
  */
82
- listAssociatedEntities(currencyID, options) {
83
- return this._client.get(path `/api/v1/credits/custom-currencies/${currencyID}/associated-entities`, options);
85
+ listAssociatedEntities(currencyID, params = {}, options) {
86
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
87
+ return this._client.get(path `/api/v1/credits/custom-currencies/${currencyID}/associated-entities`, {
88
+ ...options,
89
+ headers: buildHeaders([
90
+ {
91
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
92
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
93
+ },
94
+ options?.headers,
95
+ ]),
96
+ });
84
97
  }
85
98
  /**
86
99
  * Restores a previously archived custom currency. Fails if another active currency
87
100
  * with the same ID already exists.
88
- *
89
- * @example
90
- * ```ts
91
- * const customCurrencyResponse =
92
- * await client.v1.credits.customCurrencies.unarchive(
93
- * 'currencyId',
94
- * );
95
- * ```
96
101
  */
97
- unarchive(currencyID, options) {
98
- return this._client.post(path `/api/v1/credits/custom-currencies/${currencyID}/unarchive`, options);
102
+ unarchive(currencyID, params = {}, options) {
103
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
104
+ return this._client.post(path `/api/v1/credits/custom-currencies/${currencyID}/unarchive`, {
105
+ ...options,
106
+ headers: buildHeaders([
107
+ {
108
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
109
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
110
+ },
111
+ options?.headers,
112
+ ]),
113
+ });
99
114
  }
100
115
  }
101
116
  //# sourceMappingURL=custom-currencies.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-currencies.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAElG,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qCAAqC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,EACnC,CAAA,cAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;;;;;;;;;;OAWG;IACH,sBAAsB,CACpB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,qCAAqC,UAAU,sBAAsB,EACzE,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,UAAkB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACF"}
1
+ {"version":3,"file":"custom-currencies.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAErD,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,MAAkC,EAAE,OAAwB;QACjE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC3F,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE;YAC5D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CA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AU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,SAAS,CACP,UAAkB,EAClB,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACxF,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,YAAY,EAAE;YACxF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -9,45 +9,17 @@ export declare class Grants extends APIResource {
9
9
  /**
10
10
  * Creates a new credit grant for a customer with specified amount, type, and
11
11
  * optional billing configuration.
12
- *
13
- * @example
14
- * ```ts
15
- * const creditGrantResponse =
16
- * await client.v1.credits.grants.create({
17
- * amount: 0,
18
- * currencyId: 'currencyId',
19
- * customerId: 'customerId',
20
- * displayName: 'displayName',
21
- * grantType: 'PAID',
22
- * });
23
- * ```
24
- */
25
- create(body: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse>;
12
+ */
13
+ create(params: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse>;
26
14
  /**
27
15
  * Retrieves a paginated list of credit grants for a customer.
28
- *
29
- * @example
30
- * ```ts
31
- * // Automatically fetches more pages as needed.
32
- * for await (const grantListResponse of client.v1.credits.grants.list(
33
- * { customerId: 'customerId' },
34
- * )) {
35
- * // ...
36
- * }
37
- * ```
38
- */
39
- list(query: GrantListParams, options?: RequestOptions): PagePromise<GrantListResponsesMyCursorIDPage, GrantListResponse>;
16
+ */
17
+ list(params: GrantListParams, options?: RequestOptions): PagePromise<GrantListResponsesMyCursorIDPage, GrantListResponse>;
40
18
  /**
41
19
  * Voids an existing credit grant, preventing further consumption of the remaining
42
20
  * credits.
43
- *
44
- * @example
45
- * ```ts
46
- * const creditGrantResponse =
47
- * await client.v1.credits.grants.void('x');
48
- * ```
49
- */
50
- void(id: string, options?: RequestOptions): APIPromise<CreditGrantResponse>;
21
+ */
22
+ void(id: string, params?: GrantVoidParams | null | undefined, options?: RequestOptions): APIPromise<CreditGrantResponse>;
51
23
  }
52
24
  export type GrantListResponsesMyCursorIDPage = MyCursorIDPage<GrantListResponse>;
53
25
  /**
@@ -405,67 +377,79 @@ export declare namespace GrantListResponse {
405
377
  }
406
378
  export interface GrantCreateParams {
407
379
  /**
408
- * The credit amount to grant
380
+ * Body param: The credit amount to grant
409
381
  */
410
382
  amount: number;
411
383
  /**
412
- * The credit currency ID (required)
384
+ * Body param: The credit currency ID (required)
413
385
  */
414
386
  currencyId: string;
415
387
  /**
416
- * The customer ID to grant credits to (required)
388
+ * Body param: The customer ID to grant credits to (required)
417
389
  */
418
390
  customerId: string;
419
391
  /**
420
- * The display name for the credit grant
392
+ * Body param: The display name for the credit grant
421
393
  */
422
394
  displayName: string;
423
395
  /**
424
- * The type of credit grant (PAID, PROMOTIONAL)
396
+ * Body param: The type of credit grant (PAID, PROMOTIONAL)
425
397
  */
426
398
  grantType: 'PAID' | 'PROMOTIONAL';
427
399
  /**
428
- * Whether to wait for payment confirmation before returning (default: true)
400
+ * Body param: Whether to wait for payment confirmation before returning (default:
401
+ * true)
429
402
  */
430
403
  awaitPaymentConfirmation?: boolean;
431
404
  /**
432
- * Billing information for the credit grant
405
+ * Body param: Billing information for the credit grant
433
406
  */
434
407
  billingInformation?: GrantCreateParams.BillingInformation;
435
408
  /**
436
- * An optional comment on the credit grant
409
+ * Body param: An optional comment on the credit grant
437
410
  */
438
411
  comment?: string;
439
412
  /**
440
- * The monetary cost of the credit grant
413
+ * Body param: The monetary cost of the credit grant
441
414
  */
442
415
  cost?: GrantCreateParams.Cost;
443
416
  /**
444
- * The date when the credit grant becomes effective
417
+ * Body param: The date when the credit grant becomes effective
445
418
  */
446
419
  effectiveAt?: string;
447
420
  /**
448
- * The date when the credit grant expires
421
+ * Body param: The date when the credit grant expires
449
422
  */
450
423
  expireAt?: string;
451
424
  /**
452
- * Additional metadata for the credit grant
425
+ * Body param: Additional metadata for the credit grant
453
426
  */
454
427
  metadata?: {
455
428
  [key: string]: string;
456
429
  };
457
430
  /**
458
- * The payment collection method (CHARGE, INVOICE, NONE)
431
+ * Body param: The payment collection method (CHARGE, INVOICE, NONE)
459
432
  */
460
433
  paymentCollectionMethod?: 'CHARGE' | 'INVOICE' | 'NONE';
461
434
  /**
462
- * The priority of the credit grant (lower number = higher priority)
435
+ * Body param: The priority of the credit grant (lower number = higher priority)
463
436
  */
464
437
  priority?: number;
465
438
  /**
466
- * The resource ID to scope the grant to
439
+ * Body param: The resource ID to scope the grant to
467
440
  */
468
441
  resourceId?: string;
442
+ /**
443
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
444
+ * token); falls back to the user's first membership. Ignored for API-key auth.
445
+ */
446
+ 'X-ACCOUNT-ID'?: string;
447
+ /**
448
+ * Header param: Environment ID — required when authenticating with a user JWT
449
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
450
+ * intrinsic to the key).
451
+ */
452
+ 'X-ENVIRONMENT-ID'?: string;
469
453
  }
470
454
  export declare namespace GrantCreateParams {
471
455
  /**
@@ -532,21 +516,33 @@ export declare namespace GrantCreateParams {
532
516
  }
533
517
  export interface GrantListParams extends MyCursorIDPageParams {
534
518
  /**
535
- * Filter by customer ID (required)
519
+ * Query param: Filter by customer ID (required)
536
520
  */
537
521
  customerId: string;
538
522
  /**
539
- * Filter by creation date using range operators: gt, gte, lt, lte
523
+ * Query param: Filter by creation date using range operators: gt, gte, lt, lte
540
524
  */
541
525
  createdAt?: GrantListParams.CreatedAt;
542
526
  /**
543
- * Filter by currency ID
527
+ * Query param: Filter by currency ID
544
528
  */
545
529
  currencyId?: string;
546
530
  /**
547
- * Filter by resource ID. When omitted, only grants without a resource are returned
531
+ * Query param: Filter by resource ID. When omitted, only grants without a resource
532
+ * are returned
548
533
  */
549
534
  resourceId?: string;
535
+ /**
536
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
537
+ * token); falls back to the user's first membership. Ignored for API-key auth.
538
+ */
539
+ 'X-ACCOUNT-ID'?: string;
540
+ /**
541
+ * Header param: Environment ID — required when authenticating with a user JWT
542
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
543
+ * intrinsic to the key).
544
+ */
545
+ 'X-ENVIRONMENT-ID'?: string;
550
546
  }
551
547
  export declare namespace GrantListParams {
552
548
  /**
@@ -571,7 +567,20 @@ export declare namespace GrantListParams {
571
567
  lte?: string;
572
568
  }
573
569
  }
570
+ export interface GrantVoidParams {
571
+ /**
572
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
573
+ * back to the user's first membership. Ignored for API-key auth.
574
+ */
575
+ 'X-ACCOUNT-ID'?: string;
576
+ /**
577
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
578
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
579
+ * key).
580
+ */
581
+ 'X-ENVIRONMENT-ID'?: string;
582
+ }
574
583
  export declare namespace Grants {
575
- export { type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, };
584
+ export { type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, type GrantVoidParams as GrantVoidParams, };
576
585
  }
577
586
  //# sourceMappingURL=grants.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAClG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,iBAAiB,CAAC;IAOnE;;;;;;;;;OASG;IACH,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAG5E;AAED,MAAM,MAAM,gCAAgC,GAAG,cAAc,CAAC,iBAAiB,CAAC,CAAC;AAEjF;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;CAChC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAi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K,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,CAAC;KACX;CACF;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;I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