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

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 (507) hide show
  1. package/CHANGELOG.md +162 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/pagination.d.mts.map +1 -1
  16. package/core/pagination.d.ts.map +1 -1
  17. package/core/pagination.mjs.map +1 -1
  18. package/core/resource.d.mts.map +1 -1
  19. package/core/resource.d.ts.map +1 -1
  20. package/core/uploads.d.mts.map +1 -1
  21. package/core/uploads.d.ts.map +1 -1
  22. package/core/uploads.mjs.map +1 -1
  23. package/error.d.mts +1 -0
  24. package/error.d.mts.map +1 -1
  25. package/error.d.ts +1 -0
  26. package/error.d.ts.map +1 -1
  27. package/error.mjs +1 -0
  28. package/error.mjs.map +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/internal/detect-platform.mjs.map +1 -1
  33. package/internal/headers.mjs.map +1 -1
  34. package/internal/parse.d.mts.map +1 -1
  35. package/internal/parse.d.ts.map +1 -1
  36. package/internal/parse.mjs.map +1 -1
  37. package/internal/qs/formats.d.mts.map +1 -1
  38. package/internal/qs/formats.d.ts.map +1 -1
  39. package/internal/qs/index.d.mts +2 -2
  40. package/internal/qs/index.d.mts.map +1 -1
  41. package/internal/qs/index.d.ts +2 -2
  42. package/internal/qs/index.d.ts.map +1 -1
  43. package/internal/qs/index.mjs.map +1 -1
  44. package/internal/qs/stringify.d.mts.map +1 -1
  45. package/internal/qs/stringify.d.ts.map +1 -1
  46. package/internal/qs/stringify.mjs.map +1 -1
  47. package/internal/qs/utils.d.mts.map +1 -1
  48. package/internal/qs/utils.d.ts.map +1 -1
  49. package/internal/qs/utils.mjs.map +1 -1
  50. package/internal/request-options.d.mts.map +1 -1
  51. package/internal/request-options.d.ts.map +1 -1
  52. package/internal/shims.d.mts +6 -0
  53. package/internal/shims.d.mts.map +1 -1
  54. package/internal/shims.d.ts +6 -0
  55. package/internal/shims.d.ts.map +1 -1
  56. package/internal/to-file.d.mts.map +1 -1
  57. package/internal/to-file.d.ts.map +1 -1
  58. package/internal/to-file.mjs.map +1 -1
  59. package/internal/types.d.mts +4 -4
  60. package/internal/types.d.mts.map +1 -1
  61. package/internal/types.d.ts +4 -4
  62. package/internal/types.d.ts.map +1 -1
  63. package/internal/uploads.d.mts.map +1 -1
  64. package/internal/uploads.d.ts.map +1 -1
  65. package/internal/uploads.mjs.map +1 -1
  66. package/internal/utils/base64.mjs.map +1 -1
  67. package/internal/utils/log.d.mts.map +1 -1
  68. package/internal/utils/log.d.ts.map +1 -1
  69. package/internal/utils/log.mjs.map +1 -1
  70. package/internal/utils/path.mjs.map +1 -1
  71. package/internal/utils/query.mjs.map +1 -1
  72. package/internal/utils/values.mjs.map +1 -1
  73. package/internal/utils.d.mts.map +1 -1
  74. package/internal/utils.d.ts.map +1 -1
  75. package/internal/utils.mjs.map +1 -1
  76. package/package.json +1 -1
  77. package/pagination.d.mts +1 -0
  78. package/pagination.d.mts.map +1 -1
  79. package/pagination.d.ts +1 -0
  80. package/pagination.d.ts.map +1 -1
  81. package/pagination.mjs +1 -0
  82. package/pagination.mjs.map +1 -1
  83. package/resource.d.mts +1 -0
  84. package/resource.d.mts.map +1 -1
  85. package/resource.d.ts +1 -0
  86. package/resource.d.ts.map +1 -1
  87. package/resource.mjs +1 -0
  88. package/resource.mjs.map +1 -1
  89. package/resources/index.d.mts.map +1 -1
  90. package/resources/index.d.ts.map +1 -1
  91. package/resources/index.mjs.map +1 -1
  92. package/resources/v1/addons/addons.d.mts +231 -1
  93. package/resources/v1/addons/addons.d.mts.map +1 -1
  94. package/resources/v1/addons/addons.d.ts +231 -1
  95. package/resources/v1/addons/addons.d.ts.map +1 -1
  96. package/resources/v1/addons/addons.js +65 -0
  97. package/resources/v1/addons/addons.js.map +1 -1
  98. package/resources/v1/addons/addons.mjs +65 -0
  99. package/resources/v1/addons/addons.mjs.map +1 -1
  100. package/resources/v1/addons/entitlements.d.mts +31 -0
  101. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  102. package/resources/v1/addons/entitlements.d.ts +31 -0
  103. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  104. package/resources/v1/addons/entitlements.js +31 -0
  105. package/resources/v1/addons/entitlements.js.map +1 -1
  106. package/resources/v1/addons/entitlements.mjs +31 -0
  107. package/resources/v1/addons/entitlements.mjs.map +1 -1
  108. package/resources/v1/addons/index.d.mts +1 -1
  109. package/resources/v1/addons/index.d.mts.map +1 -1
  110. package/resources/v1/addons/index.d.ts +1 -1
  111. package/resources/v1/addons/index.d.ts.map +1 -1
  112. package/resources/v1/addons/index.js.map +1 -1
  113. package/resources/v1/addons/index.mjs.map +1 -1
  114. package/resources/v1/addons.d.mts.map +1 -1
  115. package/resources/v1/addons.d.ts.map +1 -1
  116. package/resources/v1/addons.mjs.map +1 -1
  117. package/resources/v1/coupons.d.mts +36 -0
  118. package/resources/v1/coupons.d.mts.map +1 -1
  119. package/resources/v1/coupons.d.ts +36 -0
  120. package/resources/v1/coupons.d.ts.map +1 -1
  121. package/resources/v1/coupons.js +36 -0
  122. package/resources/v1/coupons.js.map +1 -1
  123. package/resources/v1/coupons.mjs +36 -0
  124. package/resources/v1/coupons.mjs.map +1 -1
  125. package/resources/v1/credits/credits.d.mts +163 -11
  126. package/resources/v1/credits/credits.d.mts.map +1 -1
  127. package/resources/v1/credits/credits.d.ts +163 -11
  128. package/resources/v1/credits/credits.d.ts.map +1 -1
  129. package/resources/v1/credits/credits.js +32 -4
  130. package/resources/v1/credits/credits.js.map +1 -1
  131. package/resources/v1/credits/credits.mjs +32 -4
  132. package/resources/v1/credits/credits.mjs.map +1 -1
  133. package/resources/v1/credits/custom-currencies.d.mts +59 -10
  134. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  135. package/resources/v1/credits/custom-currencies.d.ts +59 -10
  136. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  137. package/resources/v1/credits/custom-currencies.js +49 -0
  138. package/resources/v1/credits/custom-currencies.js.map +1 -1
  139. package/resources/v1/credits/custom-currencies.mjs +49 -0
  140. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  141. package/resources/v1/credits/grants.d.mts +28 -0
  142. package/resources/v1/credits/grants.d.mts.map +1 -1
  143. package/resources/v1/credits/grants.d.ts +28 -0
  144. package/resources/v1/credits/grants.d.ts.map +1 -1
  145. package/resources/v1/credits/grants.js +28 -0
  146. package/resources/v1/credits/grants.js.map +1 -1
  147. package/resources/v1/credits/grants.mjs +28 -0
  148. package/resources/v1/credits/grants.mjs.map +1 -1
  149. package/resources/v1/credits/index.d.mts +2 -3
  150. package/resources/v1/credits/index.d.mts.map +1 -1
  151. package/resources/v1/credits/index.d.ts +2 -3
  152. package/resources/v1/credits/index.d.ts.map +1 -1
  153. package/resources/v1/credits/index.js +1 -3
  154. package/resources/v1/credits/index.js.map +1 -1
  155. package/resources/v1/credits/index.mjs +0 -1
  156. package/resources/v1/credits/index.mjs.map +1 -1
  157. package/resources/v1/credits.d.mts.map +1 -1
  158. package/resources/v1/credits.d.ts.map +1 -1
  159. package/resources/v1/credits.mjs.map +1 -1
  160. package/resources/v1/customers/customers.d.mts +82 -5
  161. package/resources/v1/customers/customers.d.mts.map +1 -1
  162. package/resources/v1/customers/customers.d.ts +82 -5
  163. package/resources/v1/customers/customers.d.ts.map +1 -1
  164. package/resources/v1/customers/customers.js +77 -0
  165. package/resources/v1/customers/customers.js.map +1 -1
  166. package/resources/v1/customers/customers.mjs +77 -0
  167. package/resources/v1/customers/customers.mjs.map +1 -1
  168. package/resources/v1/customers/index.d.mts.map +1 -1
  169. package/resources/v1/customers/index.d.ts.map +1 -1
  170. package/resources/v1/customers/index.mjs.map +1 -1
  171. package/resources/v1/customers/integrations.d.mts +50 -3
  172. package/resources/v1/customers/integrations.d.mts.map +1 -1
  173. package/resources/v1/customers/integrations.d.ts +50 -3
  174. package/resources/v1/customers/integrations.d.ts.map +1 -1
  175. package/resources/v1/customers/integrations.js +47 -0
  176. package/resources/v1/customers/integrations.js.map +1 -1
  177. package/resources/v1/customers/integrations.mjs +47 -0
  178. package/resources/v1/customers/integrations.mjs.map +1 -1
  179. package/resources/v1/customers/payment-method.d.mts +17 -1
  180. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  181. package/resources/v1/customers/payment-method.d.ts +17 -1
  182. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  183. package/resources/v1/customers/payment-method.js +16 -0
  184. package/resources/v1/customers/payment-method.js.map +1 -1
  185. package/resources/v1/customers/payment-method.mjs +16 -0
  186. package/resources/v1/customers/payment-method.mjs.map +1 -1
  187. package/resources/v1/customers/promotional-entitlements.d.mts +51 -0
  188. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  189. package/resources/v1/customers/promotional-entitlements.d.ts +51 -0
  190. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  191. package/resources/v1/customers/promotional-entitlements.js +51 -0
  192. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  193. package/resources/v1/customers/promotional-entitlements.mjs +51 -0
  194. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  195. package/resources/v1/customers.d.mts.map +1 -1
  196. package/resources/v1/customers.d.ts.map +1 -1
  197. package/resources/v1/customers.mjs.map +1 -1
  198. package/resources/v1/events/beta/beta.d.mts +14 -0
  199. package/resources/v1/events/beta/beta.d.mts.map +1 -0
  200. package/resources/v1/events/beta/beta.d.ts +14 -0
  201. package/resources/v1/events/beta/beta.d.ts.map +1 -0
  202. package/resources/v1/events/beta/beta.js +21 -0
  203. package/resources/v1/events/beta/beta.js.map +1 -0
  204. package/resources/v1/events/beta/beta.mjs +16 -0
  205. package/resources/v1/events/beta/beta.mjs.map +1 -0
  206. package/resources/v1/events/beta/customers/assignments.d.mts +178 -0
  207. package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
  208. package/resources/v1/events/beta/customers/assignments.d.ts +178 -0
  209. package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
  210. package/resources/v1/events/beta/customers/assignments.js +62 -0
  211. package/resources/v1/events/beta/customers/assignments.js.map +1 -0
  212. package/resources/v1/events/beta/customers/assignments.mjs +58 -0
  213. package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
  214. package/resources/v1/events/beta/customers/customers.d.mts +18 -0
  215. package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
  216. package/resources/v1/events/beta/customers/customers.d.ts +18 -0
  217. package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
  218. package/resources/v1/events/beta/customers/customers.js +25 -0
  219. package/resources/v1/events/beta/customers/customers.js.map +1 -0
  220. package/resources/v1/events/beta/customers/customers.mjs +20 -0
  221. package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
  222. package/resources/v1/events/beta/customers/entities.d.mts +304 -0
  223. package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
  224. package/resources/v1/events/beta/customers/entities.d.ts +304 -0
  225. package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
  226. package/resources/v1/events/beta/customers/entities.js +105 -0
  227. package/resources/v1/events/beta/customers/entities.js.map +1 -0
  228. package/resources/v1/events/beta/customers/entities.mjs +101 -0
  229. package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
  230. package/resources/v1/events/beta/customers/entitlements.d.mts +238 -0
  231. package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
  232. package/resources/v1/events/beta/customers/entitlements.d.ts +238 -0
  233. package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
  234. package/resources/v1/events/beta/customers/entitlements.js +26 -0
  235. package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
  236. package/resources/v1/events/beta/customers/entitlements.mjs +22 -0
  237. package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
  238. package/resources/v1/events/beta/customers/index.d.mts +5 -0
  239. package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
  240. package/resources/v1/events/beta/customers/index.d.ts +5 -0
  241. package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
  242. package/resources/v1/events/beta/customers/index.js +13 -0
  243. package/resources/v1/events/beta/customers/index.js.map +1 -0
  244. package/resources/v1/events/beta/customers/index.mjs +6 -0
  245. package/resources/v1/events/beta/customers/index.mjs.map +1 -0
  246. package/resources/v1/events/beta/customers.d.mts +2 -0
  247. package/resources/v1/events/beta/customers.d.mts.map +1 -0
  248. package/resources/v1/events/beta/customers.d.ts +2 -0
  249. package/resources/v1/events/beta/customers.d.ts.map +1 -0
  250. package/resources/v1/events/beta/customers.js +6 -0
  251. package/resources/v1/events/beta/customers.js.map +1 -0
  252. package/resources/v1/events/beta/customers.mjs +3 -0
  253. package/resources/v1/events/beta/customers.mjs.map +1 -0
  254. package/resources/v1/events/beta/entity-types.d.mts +144 -0
  255. package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
  256. package/resources/v1/events/beta/entity-types.d.ts +144 -0
  257. package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
  258. package/resources/v1/events/beta/entity-types.js +56 -0
  259. package/resources/v1/events/beta/entity-types.js.map +1 -0
  260. package/resources/v1/events/beta/entity-types.mjs +52 -0
  261. package/resources/v1/events/beta/entity-types.mjs.map +1 -0
  262. package/resources/v1/events/beta/index.d.mts +4 -0
  263. package/resources/v1/events/beta/index.d.mts.map +1 -0
  264. package/resources/v1/events/beta/index.d.ts +4 -0
  265. package/resources/v1/events/beta/index.d.ts.map +1 -0
  266. package/resources/v1/events/beta/index.js +11 -0
  267. package/resources/v1/events/beta/index.js.map +1 -0
  268. package/resources/v1/events/beta/index.mjs +5 -0
  269. package/resources/v1/events/beta/index.mjs.map +1 -0
  270. package/resources/v1/events/beta.d.mts +2 -0
  271. package/resources/v1/events/beta.d.mts.map +1 -0
  272. package/resources/v1/events/beta.d.ts +2 -0
  273. package/resources/v1/events/beta.d.ts.map +1 -0
  274. package/resources/v1/events/beta.js +6 -0
  275. package/resources/v1/events/beta.js.map +1 -0
  276. package/resources/v1/events/beta.mjs +3 -0
  277. package/resources/v1/events/beta.mjs.map +1 -0
  278. package/resources/v1/events/data-export/data-export.d.mts +126 -0
  279. package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
  280. package/resources/v1/events/data-export/data-export.d.ts +126 -0
  281. package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
  282. package/resources/v1/events/data-export/data-export.js +45 -0
  283. package/resources/v1/events/data-export/data-export.js.map +1 -0
  284. package/resources/v1/events/data-export/data-export.mjs +40 -0
  285. package/resources/v1/events/data-export/data-export.mjs.map +1 -0
  286. package/resources/v1/events/data-export/destinations.d.mts +202 -0
  287. package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
  288. package/resources/v1/events/data-export/destinations.d.ts +202 -0
  289. package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
  290. package/resources/v1/events/data-export/destinations.js +41 -0
  291. package/resources/v1/events/data-export/destinations.js.map +1 -0
  292. package/resources/v1/events/data-export/destinations.mjs +37 -0
  293. package/resources/v1/events/data-export/destinations.mjs.map +1 -0
  294. package/resources/v1/events/data-export/index.d.mts +3 -0
  295. package/resources/v1/events/data-export/index.d.mts.map +1 -0
  296. package/resources/v1/events/data-export/index.d.ts +3 -0
  297. package/resources/v1/events/data-export/index.d.ts.map +1 -0
  298. package/resources/v1/events/data-export/index.js +9 -0
  299. package/resources/v1/events/data-export/index.js.map +1 -0
  300. package/resources/v1/events/data-export/index.mjs +4 -0
  301. package/resources/v1/events/data-export/index.mjs.map +1 -0
  302. package/resources/v1/events/data-export.d.mts +2 -0
  303. package/resources/v1/events/data-export.d.mts.map +1 -0
  304. package/resources/v1/events/data-export.d.ts +2 -0
  305. package/resources/v1/events/data-export.d.ts.map +1 -0
  306. package/resources/v1/events/data-export.js +6 -0
  307. package/resources/v1/events/data-export.js.map +1 -0
  308. package/resources/v1/events/data-export.mjs +3 -0
  309. package/resources/v1/events/data-export.mjs.map +1 -0
  310. package/resources/v1/events/events.d.mts +87 -0
  311. package/resources/v1/events/events.d.mts.map +1 -0
  312. package/resources/v1/events/events.d.ts +87 -0
  313. package/resources/v1/events/events.d.ts.map +1 -0
  314. package/resources/v1/events/events.js +44 -0
  315. package/resources/v1/events/events.js.map +1 -0
  316. package/resources/v1/events/events.mjs +39 -0
  317. package/resources/v1/events/events.mjs.map +1 -0
  318. package/resources/v1/events/index.d.mts +4 -0
  319. package/resources/v1/events/index.d.mts.map +1 -0
  320. package/resources/v1/events/index.d.ts +4 -0
  321. package/resources/v1/events/index.d.ts.map +1 -0
  322. package/resources/v1/events/index.js +11 -0
  323. package/resources/v1/events/index.js.map +1 -0
  324. package/resources/v1/events/index.mjs +5 -0
  325. package/resources/v1/events/index.mjs.map +1 -0
  326. package/resources/v1/events.d.mts +1 -65
  327. package/resources/v1/events.d.mts.map +1 -1
  328. package/resources/v1/events.d.ts +1 -65
  329. package/resources/v1/events.d.ts.map +1 -1
  330. package/resources/v1/events.js +2 -15
  331. package/resources/v1/events.js.map +1 -1
  332. package/resources/v1/events.mjs +1 -13
  333. package/resources/v1/events.mjs.map +1 -1
  334. package/resources/v1/features.d.mts +43 -0
  335. package/resources/v1/features.d.mts.map +1 -1
  336. package/resources/v1/features.d.ts +43 -0
  337. package/resources/v1/features.d.ts.map +1 -1
  338. package/resources/v1/features.js +43 -0
  339. package/resources/v1/features.js.map +1 -1
  340. package/resources/v1/features.mjs +43 -0
  341. package/resources/v1/features.mjs.map +1 -1
  342. package/resources/v1/index.d.mts +4 -4
  343. package/resources/v1/index.d.mts.map +1 -1
  344. package/resources/v1/index.d.ts +4 -4
  345. package/resources/v1/index.d.ts.map +1 -1
  346. package/resources/v1/index.js +6 -6
  347. package/resources/v1/index.js.map +1 -1
  348. package/resources/v1/index.mjs +1 -1
  349. package/resources/v1/index.mjs.map +1 -1
  350. package/resources/v1/plans/entitlements.d.mts +31 -0
  351. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  352. package/resources/v1/plans/entitlements.d.ts +31 -0
  353. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  354. package/resources/v1/plans/entitlements.js +31 -0
  355. package/resources/v1/plans/entitlements.js.map +1 -1
  356. package/resources/v1/plans/entitlements.mjs +31 -0
  357. package/resources/v1/plans/entitlements.mjs.map +1 -1
  358. package/resources/v1/plans/index.d.mts +1 -1
  359. package/resources/v1/plans/index.d.mts.map +1 -1
  360. package/resources/v1/plans/index.d.ts +1 -1
  361. package/resources/v1/plans/index.d.ts.map +1 -1
  362. package/resources/v1/plans/index.js.map +1 -1
  363. package/resources/v1/plans/index.mjs.map +1 -1
  364. package/resources/v1/plans/plans.d.mts +412 -1
  365. package/resources/v1/plans/plans.d.mts.map +1 -1
  366. package/resources/v1/plans/plans.d.ts +412 -1
  367. package/resources/v1/plans/plans.d.ts.map +1 -1
  368. package/resources/v1/plans/plans.js +81 -0
  369. package/resources/v1/plans/plans.js.map +1 -1
  370. package/resources/v1/plans/plans.mjs +81 -0
  371. package/resources/v1/plans/plans.mjs.map +1 -1
  372. package/resources/v1/plans.d.mts.map +1 -1
  373. package/resources/v1/plans.d.ts.map +1 -1
  374. package/resources/v1/plans.mjs.map +1 -1
  375. package/resources/v1/products.d.mts +43 -0
  376. package/resources/v1/products.d.mts.map +1 -1
  377. package/resources/v1/products.d.ts +43 -0
  378. package/resources/v1/products.d.ts.map +1 -1
  379. package/resources/v1/products.js +43 -0
  380. package/resources/v1/products.js.map +1 -1
  381. package/resources/v1/products.mjs +43 -0
  382. package/resources/v1/products.mjs.map +1 -1
  383. package/resources/v1/subscriptions/future-update.d.mts +16 -0
  384. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  385. package/resources/v1/subscriptions/future-update.d.ts +16 -0
  386. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  387. package/resources/v1/subscriptions/future-update.js +16 -0
  388. package/resources/v1/subscriptions/future-update.js.map +1 -1
  389. package/resources/v1/subscriptions/future-update.mjs +16 -0
  390. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  391. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  392. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  393. package/resources/v1/subscriptions/index.mjs.map +1 -1
  394. package/resources/v1/subscriptions/invoice.d.mts +6 -0
  395. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  396. package/resources/v1/subscriptions/invoice.d.ts +6 -0
  397. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  398. package/resources/v1/subscriptions/invoice.js +6 -0
  399. package/resources/v1/subscriptions/invoice.js.map +1 -1
  400. package/resources/v1/subscriptions/invoice.mjs +6 -0
  401. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  402. package/resources/v1/subscriptions/subscriptions.d.mts +101 -9
  403. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  404. package/resources/v1/subscriptions/subscriptions.d.ts +101 -9
  405. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  406. package/resources/v1/subscriptions/subscriptions.js +81 -0
  407. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  408. package/resources/v1/subscriptions/subscriptions.mjs +81 -0
  409. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  410. package/resources/v1/subscriptions/usage.d.mts +13 -0
  411. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  412. package/resources/v1/subscriptions/usage.d.ts +13 -0
  413. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  414. package/resources/v1/subscriptions/usage.js +13 -0
  415. package/resources/v1/subscriptions/usage.js.map +1 -1
  416. package/resources/v1/subscriptions/usage.mjs +13 -0
  417. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  418. package/resources/v1/subscriptions.d.mts.map +1 -1
  419. package/resources/v1/subscriptions.d.ts.map +1 -1
  420. package/resources/v1/subscriptions.mjs.map +1 -1
  421. package/resources/v1/usage.d.mts +24 -0
  422. package/resources/v1/usage.d.mts.map +1 -1
  423. package/resources/v1/usage.d.ts +24 -0
  424. package/resources/v1/usage.d.ts.map +1 -1
  425. package/resources/v1/usage.js +24 -0
  426. package/resources/v1/usage.js.map +1 -1
  427. package/resources/v1/usage.mjs +24 -0
  428. package/resources/v1/usage.mjs.map +1 -1
  429. package/resources/v1/v1.d.mts +8 -8
  430. package/resources/v1/v1.d.mts.map +1 -1
  431. package/resources/v1/v1.d.ts +8 -8
  432. package/resources/v1/v1.d.ts.map +1 -1
  433. package/resources/v1/v1.js +2 -2
  434. package/resources/v1/v1.js.map +1 -1
  435. package/resources/v1/v1.mjs +2 -2
  436. package/resources/v1/v1.mjs.map +1 -1
  437. package/resources/v1.d.mts.map +1 -1
  438. package/resources/v1.d.ts.map +1 -1
  439. package/resources/v1.mjs.map +1 -1
  440. package/resources.d.mts.map +1 -1
  441. package/resources.d.ts.map +1 -1
  442. package/resources.mjs.map +1 -1
  443. package/src/resources/v1/addons/addons.ts +625 -0
  444. package/src/resources/v1/addons/entitlements.ts +31 -0
  445. package/src/resources/v1/addons/index.ts +3 -0
  446. package/src/resources/v1/coupons.ts +36 -0
  447. package/src/resources/v1/credits/credits.ts +194 -20
  448. package/src/resources/v1/credits/custom-currencies.ts +60 -11
  449. package/src/resources/v1/credits/grants.ts +28 -0
  450. package/src/resources/v1/credits/index.ts +3 -6
  451. package/src/resources/v1/customers/customers.ts +92 -5
  452. package/src/resources/v1/customers/integrations.ts +55 -2
  453. package/src/resources/v1/customers/payment-method.ts +19 -1
  454. package/src/resources/v1/customers/promotional-entitlements.ts +51 -0
  455. package/src/resources/v1/events/beta/beta.ts +35 -0
  456. package/src/resources/v1/events/beta/customers/assignments.ts +228 -0
  457. package/src/resources/v1/events/beta/customers/customers.ts +71 -0
  458. package/src/resources/v1/events/beta/customers/entities.ts +381 -0
  459. package/src/resources/v1/events/beta/customers/entitlements.ts +327 -0
  460. package/src/resources/v1/events/beta/customers/index.ts +26 -0
  461. package/src/resources/v1/events/beta/customers.ts +3 -0
  462. package/src/resources/v1/events/beta/entity-types.ts +180 -0
  463. package/src/resources/v1/events/beta/index.ts +12 -0
  464. package/src/resources/v1/events/beta.ts +3 -0
  465. package/src/resources/v1/events/data-export/data-export.ts +170 -0
  466. package/src/resources/v1/events/data-export/destinations.ts +243 -0
  467. package/src/resources/v1/events/data-export/index.ts +15 -0
  468. package/src/resources/v1/events/data-export.ts +3 -0
  469. package/src/resources/v1/events/events.ts +116 -0
  470. package/src/resources/v1/events/index.ts +11 -0
  471. package/src/resources/v1/events.ts +1 -75
  472. package/src/resources/v1/features.ts +43 -0
  473. package/src/resources/v1/index.ts +12 -1
  474. package/src/resources/v1/plans/entitlements.ts +31 -0
  475. package/src/resources/v1/plans/index.ts +6 -0
  476. package/src/resources/v1/plans/plans.ts +1201 -0
  477. package/src/resources/v1/products.ts +43 -0
  478. package/src/resources/v1/subscriptions/future-update.ts +16 -0
  479. package/src/resources/v1/subscriptions/invoice.ts +6 -0
  480. package/src/resources/v1/subscriptions/subscriptions.ts +103 -9
  481. package/src/resources/v1/subscriptions/usage.ts +13 -0
  482. package/src/resources/v1/usage.ts +24 -0
  483. package/src/resources/v1/v1.ts +24 -2
  484. package/src/version.ts +1 -1
  485. package/uploads.d.mts +1 -0
  486. package/uploads.d.mts.map +1 -1
  487. package/uploads.d.ts +1 -0
  488. package/uploads.d.ts.map +1 -1
  489. package/uploads.mjs +1 -0
  490. package/uploads.mjs.map +1 -1
  491. package/version.d.mts +1 -1
  492. package/version.d.mts.map +1 -1
  493. package/version.d.ts +1 -1
  494. package/version.d.ts.map +1 -1
  495. package/version.js +1 -1
  496. package/version.js.map +1 -1
  497. package/version.mjs +1 -1
  498. package/version.mjs.map +1 -1
  499. package/resources/v1/credits/auto-recharge.d.mts +0 -84
  500. package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
  501. package/resources/v1/credits/auto-recharge.d.ts +0 -84
  502. package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
  503. package/resources/v1/credits/auto-recharge.js +0 -16
  504. package/resources/v1/credits/auto-recharge.js.map +0 -1
  505. package/resources/v1/credits/auto-recharge.mjs +0 -12
  506. package/resources/v1/credits/auto-recharge.mjs.map +0 -1
  507. package/src/resources/v1/credits/auto-recharge.ts +0 -109
@@ -1,8 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
- import * as AutoRechargeAPI from "./auto-recharge.js";
3
- import { AutoRecharge, AutoRechargeGetAutoRechargeParams, AutoRechargeGetAutoRechargeResponse } from "./auto-recharge.js";
4
2
  import * as CustomCurrenciesAPI from "./custom-currencies.js";
5
- import { CustomCurrencies, CustomCurrency, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyUpdateParams } from "./custom-currencies.js";
3
+ import { CustomCurrencies, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyResponse, CustomCurrencyUpdateParams } from "./custom-currencies.js";
6
4
  import * as GrantsAPI from "./grants.js";
7
5
  import { CreditGrantResponse, GrantCreateParams, GrantListParams, GrantListResponse, GrantListResponsesMyCursorIDPage, Grants } from "./grants.js";
8
6
  import { APIPromise } from "../../../core/api-promise.js";
@@ -11,18 +9,107 @@ import { RequestOptions } from "../../../internal/request-options.js";
11
9
  export declare class Credits extends APIResource {
12
10
  grants: GrantsAPI.Grants;
13
11
  customCurrencies: CustomCurrenciesAPI.CustomCurrencies;
14
- autoRecharge: AutoRechargeAPI.AutoRecharge;
12
+ /**
13
+ * Retrieves the automatic recharge configuration for a customer and currency.
14
+ * Returns default settings if no configuration exists.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const response = await client.v1.credits.getAutoRecharge({
19
+ * currencyId: 'currencyId',
20
+ * customerId: 'customerId',
21
+ * });
22
+ * ```
23
+ */
24
+ getAutoRecharge(query: CreditGetAutoRechargeParams, options?: RequestOptions): APIPromise<CreditGetAutoRechargeResponse>;
15
25
  /**
16
26
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
17
27
  * a specified time range.
28
+ *
29
+ * @example
30
+ * ```ts
31
+ * const response = await client.v1.credits.getUsage({
32
+ * customerId: 'customerId',
33
+ * });
34
+ * ```
18
35
  */
19
36
  getUsage(query: CreditGetUsageParams, options?: RequestOptions): APIPromise<CreditGetUsageResponse>;
20
37
  /**
21
38
  * Retrieves a paginated list of credit ledger events for a customer.
39
+ *
40
+ * @example
41
+ * ```ts
42
+ * // Automatically fetches more pages as needed.
43
+ * for await (const creditListLedgerResponse of client.v1.credits.listLedger(
44
+ * { customerId: 'customerId' },
45
+ * )) {
46
+ * // ...
47
+ * }
48
+ * ```
22
49
  */
23
50
  listLedger(query: CreditListLedgerParams, options?: RequestOptions): PagePromise<CreditListLedgerResponsesMyCursorIDPage, CreditListLedgerResponse>;
24
51
  }
25
52
  export type CreditListLedgerResponsesMyCursorIDPage = MyCursorIDPage<CreditListLedgerResponse>;
53
+ /**
54
+ * Response object
55
+ */
56
+ export interface CreditGetAutoRechargeResponse {
57
+ /**
58
+ * Automatic recharge configuration for a customer and currency
59
+ */
60
+ data: CreditGetAutoRechargeResponse.Data;
61
+ }
62
+ export declare namespace CreditGetAutoRechargeResponse {
63
+ /**
64
+ * Automatic recharge configuration for a customer and currency
65
+ */
66
+ interface Data {
67
+ /**
68
+ * The unique configuration ID
69
+ */
70
+ id: string | null;
71
+ /**
72
+ * Timestamp of when the record was created
73
+ */
74
+ createdAt: string | null;
75
+ /**
76
+ * The currency ID for this configuration
77
+ */
78
+ currencyId: string;
79
+ /**
80
+ * The customer ID this configuration belongs to
81
+ */
82
+ customerId: string;
83
+ /**
84
+ * Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
85
+ */
86
+ grantExpirationPeriod: '1_MONTH' | '1_YEAR';
87
+ /**
88
+ * Whether automatic recharge is enabled
89
+ */
90
+ isEnabled: boolean;
91
+ /**
92
+ * Maximum monthly spend limit for automatic recharges
93
+ */
94
+ maxSpendLimit: number | null;
95
+ /**
96
+ * The target credit balance to recharge to
97
+ */
98
+ targetBalance: number;
99
+ /**
100
+ * The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
101
+ */
102
+ thresholdType: 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT';
103
+ /**
104
+ * The threshold value that triggers a recharge
105
+ */
106
+ thresholdValue: number;
107
+ /**
108
+ * Timestamp of when the record was last updated
109
+ */
110
+ updatedAt: string | null;
111
+ }
112
+ }
26
113
  /**
27
114
  * Response object
28
115
  */
@@ -41,6 +128,12 @@ export declare namespace CreditGetUsageResponse {
41
128
  * The custom currency used for credit measurement
42
129
  */
43
130
  currency: Data.Currency | null;
131
+ /**
132
+ * Cursor-based pagination for the returned series. `next`/`prev` are opaque
133
+ * cursors; pass them back as `after`/`before` to traverse pages. The series axis
134
+ * is `groupBy` when provided, otherwise `featureId`
135
+ */
136
+ pagination: Data.Pagination;
44
137
  /**
45
138
  * Credit usage series grouped by feature
46
139
  */
@@ -72,18 +165,34 @@ export declare namespace CreditGetUsageResponse {
72
165
  */
73
166
  symbol: string | null;
74
167
  }
168
+ /**
169
+ * Cursor-based pagination for the returned series. `next`/`prev` are opaque
170
+ * cursors; pass them back as `after`/`before` to traverse pages. The series axis
171
+ * is `groupBy` when provided, otherwise `featureId`
172
+ */
173
+ interface Pagination {
174
+ /**
175
+ * Cursor for fetching the next page of results, or null if no additional pages
176
+ * exist
177
+ */
178
+ next: string | null;
179
+ /**
180
+ * Cursor for fetching the previous page of results, or null if at the beginning
181
+ */
182
+ prev: string | null;
183
+ }
75
184
  /**
76
185
  * Credit usage data for a single feature
77
186
  */
78
187
  interface Series {
79
188
  /**
80
- * The feature ID
189
+ * The feature ID; null when grouping by dimensions only
81
190
  */
82
- featureId: string;
191
+ featureId: string | null;
83
192
  /**
84
- * The display name of the feature
193
+ * The display name of the feature; null when grouping by dimensions only
85
194
  */
86
- featureName: string;
195
+ featureName: string | null;
87
196
  /**
88
197
  * Time-series data points for this feature
89
198
  */
@@ -92,6 +201,10 @@ export declare namespace CreditGetUsageResponse {
92
201
  * Total credits consumed by this feature in the time range
93
202
  */
94
203
  totalCredits: number;
204
+ /**
205
+ * Dimension key/value pairs identifying this series when groupBy is applied
206
+ */
207
+ tags?: Array<Series.Tag>;
95
208
  }
96
209
  namespace Series {
97
210
  /**
@@ -107,6 +220,19 @@ export declare namespace CreditGetUsageResponse {
107
220
  */
108
221
  value: number;
109
222
  }
223
+ /**
224
+ * Dimension key/value pair identifying a credit usage series
225
+ */
226
+ interface Tag {
227
+ /**
228
+ * The dimension key
229
+ */
230
+ key: string;
231
+ /**
232
+ * The dimension value for this series
233
+ */
234
+ value: string;
235
+ }
110
236
  }
111
237
  }
112
238
  }
@@ -151,11 +277,29 @@ export interface CreditListLedgerResponse {
151
277
  */
152
278
  timestamp: string;
153
279
  }
280
+ export interface CreditGetAutoRechargeParams {
281
+ /**
282
+ * Filter by currency ID (required)
283
+ */
284
+ currencyId: string;
285
+ /**
286
+ * Filter by customer ID (required)
287
+ */
288
+ customerId: string;
289
+ }
154
290
  export interface CreditGetUsageParams {
155
291
  /**
156
292
  * Filter by customer ID (required)
157
293
  */
158
294
  customerId: string;
295
+ /**
296
+ * Return items that come after this cursor
297
+ */
298
+ after?: string;
299
+ /**
300
+ * Return items that come before this cursor
301
+ */
302
+ before?: string;
159
303
  /**
160
304
  * Filter by currency ID
161
305
  */
@@ -165,6 +309,15 @@ export interface CreditGetUsageParams {
165
309
  * startDate is provided
166
310
  */
167
311
  endDate?: string;
312
+ /**
313
+ * Comma-separated list of feature dimension keys to group usage series by (up to
314
+ * 3). Each key matches /^[a-zA-Z0-9_$-]+$/
315
+ */
316
+ groupBy?: string;
317
+ /**
318
+ * Maximum number of items to return
319
+ */
320
+ limit?: number;
168
321
  /**
169
322
  * Filter by resource ID
170
323
  */
@@ -195,9 +348,8 @@ export interface CreditListLedgerParams extends MyCursorIDPageParams {
195
348
  resourceId?: string;
196
349
  }
197
350
  export declare namespace Credits {
198
- export { type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
351
+ export { type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse, type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
199
352
  export { Grants as Grants, type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, };
200
- export { CustomCurrencies as CustomCurrencies, type CustomCurrency as CustomCurrency, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
201
- export { AutoRecharge as AutoRecharge, type AutoRechargeGetAutoRechargeResponse as AutoRechargeGetAutoRechargeResponse, type AutoRechargeGetAutoRechargeParams as AutoRechargeGetAutoRechargeParams, };
353
+ export { CustomCurrencies as CustomCurrencies, type CustomCurrencyResponse as CustomCurrencyResponse, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
202
354
  }
203
355
  //# sourceMappingURL=credits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,iCAAiC,EACjC,mCAAmC,EACpC;OACM,KAAK,mBAAmB;OACxB,EACL,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC1B,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,0BAA0B,EAC3B;OACM,KAAK,SAAS;OACd,EACL,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,MAAM,EACP;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAE5F;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAA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sB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Credits = void 0;
5
5
  const tslib_1 = require("../../../internal/tslib.js");
6
6
  const resource_1 = require("../../../core/resource.js");
7
- const AutoRechargeAPI = tslib_1.__importStar(require("./auto-recharge.js"));
8
- const auto_recharge_1 = require("./auto-recharge.js");
9
7
  const CustomCurrenciesAPI = tslib_1.__importStar(require("./custom-currencies.js"));
10
8
  const custom_currencies_1 = require("./custom-currencies.js");
11
9
  const GrantsAPI = tslib_1.__importStar(require("./grants.js"));
@@ -16,17 +14,48 @@ class Credits extends resource_1.APIResource {
16
14
  super(...arguments);
17
15
  this.grants = new GrantsAPI.Grants(this._client);
18
16
  this.customCurrencies = new CustomCurrenciesAPI.CustomCurrencies(this._client);
19
- this.autoRecharge = new AutoRechargeAPI.AutoRecharge(this._client);
17
+ }
18
+ /**
19
+ * Retrieves the automatic recharge configuration for a customer and currency.
20
+ * Returns default settings if no configuration exists.
21
+ *
22
+ * @example
23
+ * ```ts
24
+ * const response = await client.v1.credits.getAutoRecharge({
25
+ * currencyId: 'currencyId',
26
+ * customerId: 'customerId',
27
+ * });
28
+ * ```
29
+ */
30
+ getAutoRecharge(query, options) {
31
+ return this._client.get('/api/v1/credits/auto-recharge', { query, ...options });
20
32
  }
21
33
  /**
22
34
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
23
35
  * a specified time range.
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const response = await client.v1.credits.getUsage({
40
+ * customerId: 'customerId',
41
+ * });
42
+ * ```
24
43
  */
25
44
  getUsage(query, options) {
26
45
  return this._client.get('/api/v1/credits/usage', { query, ...options });
27
46
  }
28
47
  /**
29
48
  * Retrieves a paginated list of credit ledger events for a customer.
49
+ *
50
+ * @example
51
+ * ```ts
52
+ * // Automatically fetches more pages as needed.
53
+ * for await (const creditListLedgerResponse of client.v1.credits.listLedger(
54
+ * { customerId: 'customerId' },
55
+ * )) {
56
+ * // ...
57
+ * }
58
+ * ```
30
59
  */
31
60
  listLedger(query, options) {
32
61
  return this._client.getAPIList('/api/v1/credits/ledger', (pagination_1.MyCursorIDPage), {
@@ -38,5 +67,4 @@ class Credits extends resource_1.APIResource {
38
67
  exports.Credits = Credits;
39
68
  Credits.Grants = grants_1.Grants;
40
69
  Credits.CustomCurrencies = custom_currencies_1.CustomCurrencies;
41
- Credits.AutoRecharge = auto_recharge_1.AutoRecharge;
42
70
  //# sourceMappingURL=credits.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,4EAAmD;AACnD,sDAIyB;AACzB,oFAA2D;AAC3D,8DAS6B;AAC7B,+DAAsC;AACtC,wCAOkB;AAElB,4DAAkG;AAGlG,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsB9F,CAAC;IApBC;;;OAGG;IACH,QAAQ,CAAC,KAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,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C,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,2BAAwC,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9DD,0BA8DC;AA4WD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,gBAAgB,GAAG,oCAAgB,CAAC"}
@@ -1,7 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
- import * as AutoRechargeAPI from "./auto-recharge.mjs";
4
- import { AutoRecharge, } from "./auto-recharge.mjs";
5
3
  import * as CustomCurrenciesAPI from "./custom-currencies.mjs";
6
4
  import { CustomCurrencies, } from "./custom-currencies.mjs";
7
5
  import * as GrantsAPI from "./grants.mjs";
@@ -12,17 +10,48 @@ export class Credits extends APIResource {
12
10
  super(...arguments);
13
11
  this.grants = new GrantsAPI.Grants(this._client);
14
12
  this.customCurrencies = new CustomCurrenciesAPI.CustomCurrencies(this._client);
15
- this.autoRecharge = new AutoRechargeAPI.AutoRecharge(this._client);
13
+ }
14
+ /**
15
+ * Retrieves the automatic recharge configuration for a customer and currency.
16
+ * Returns default settings if no configuration exists.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response = await client.v1.credits.getAutoRecharge({
21
+ * currencyId: 'currencyId',
22
+ * customerId: 'customerId',
23
+ * });
24
+ * ```
25
+ */
26
+ getAutoRecharge(query, options) {
27
+ return this._client.get('/api/v1/credits/auto-recharge', { query, ...options });
16
28
  }
17
29
  /**
18
30
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
19
31
  * a specified time range.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const response = await client.v1.credits.getUsage({
36
+ * customerId: 'customerId',
37
+ * });
38
+ * ```
20
39
  */
21
40
  getUsage(query, options) {
22
41
  return this._client.get('/api/v1/credits/usage', { query, ...options });
23
42
  }
24
43
  /**
25
44
  * Retrieves a paginated list of credit ledger events for a customer.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * // Automatically fetches more pages as needed.
49
+ * for await (const creditListLedgerResponse of client.v1.credits.listLedger(
50
+ * { customerId: 'customerId' },
51
+ * )) {
52
+ * // ...
53
+ * }
54
+ * ```
26
55
  */
27
56
  listLedger(query, options) {
28
57
  return this._client.getAPIList('/api/v1/credits/ledger', (MyCursorIDPage), {
@@ -33,5 +62,4 @@ export class Credits extends APIResource {
33
62
  }
34
63
  Credits.Grants = Grants;
35
64
  Credits.CustomCurrencies = CustomCurrencies;
36
- Credits.AutoRecharge = AutoRecharge;
37
65
  //# sourceMappingURL=credits.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,GAGb;OACM,KAAK,mBAAmB;OACxB,EACL,gBAAgB,GAQjB;OACM,KAAK,SAAS;OACd,EAML,MAAM,GACP;OAEM,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsB9F,CAAC;IApBC;;;OAGG;IACH,QAAQ,CAAC,KAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,UAAU,CACR,KAA6B,EAC7B,OAAwB;Q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AU,CACR,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,cAAwC,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA4WD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -8,46 +8,95 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
8
8
  export declare class CustomCurrencies extends APIResource {
9
9
  /**
10
10
  * Creates a new custom currency in the environment.
11
- */
12
- create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const customCurrencyResponse =
15
+ * await client.v1.credits.customCurrencies.create({
16
+ * id: 'id',
17
+ * displayName: 'displayName',
18
+ * });
19
+ * ```
20
+ */
21
+ create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
13
22
  /**
14
23
  * Updates an existing custom currency. Only the supplied fields are modified.
24
+ *
25
+ * @example
26
+ * ```ts
27
+ * const customCurrencyResponse =
28
+ * await client.v1.credits.customCurrencies.update(
29
+ * 'currencyId',
30
+ * );
31
+ * ```
15
32
  */
16
- update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
33
+ update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
17
34
  /**
18
35
  * Retrieves a paginated list of custom currencies in the environment. Archived
19
36
  * currencies are excluded by default; pass `status=ARCHIVED` (or
20
37
  * `status=ACTIVE,ARCHIVED`) to include them.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * // Automatically fetches more pages as needed.
42
+ * for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
43
+ * // ...
44
+ * }
45
+ * ```
21
46
  */
22
47
  list(query?: CustomCurrencyListParams | null | undefined, options?: RequestOptions): PagePromise<CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyListResponse>;
23
48
  /**
24
49
  * Archives a custom currency. Fails if the currency is still associated with any
25
50
  * active plan or addon — use the associated-entities endpoint first to inspect
26
51
  * dependencies.
52
+ *
53
+ * @example
54
+ * ```ts
55
+ * const customCurrencyResponse =
56
+ * await client.v1.credits.customCurrencies.archive(
57
+ * 'currencyId',
58
+ * );
59
+ * ```
27
60
  */
28
- archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
61
+ archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
29
62
  /**
30
63
  * Lists the active plans and addons that reference a custom currency. Useful
31
64
  * before archiving to inspect dependencies.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const response =
69
+ * await client.v1.credits.customCurrencies.listAssociatedEntities(
70
+ * 'currencyId',
71
+ * );
72
+ * ```
32
73
  */
33
74
  listAssociatedEntities(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyListAssociatedEntitiesResponse>;
34
75
  /**
35
76
  * Restores a previously archived custom currency. Fails if another active currency
36
77
  * with the same ID already exists.
37
- */
38
- unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
78
+ *
79
+ * @example
80
+ * ```ts
81
+ * const customCurrencyResponse =
82
+ * await client.v1.credits.customCurrencies.unarchive(
83
+ * 'currencyId',
84
+ * );
85
+ * ```
86
+ */
87
+ unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
39
88
  }
40
89
  export type CustomCurrencyListResponsesMyCursorIDPage = MyCursorIDPage<CustomCurrencyListResponse>;
41
90
  /**
42
91
  * Response object
43
92
  */
44
- export interface CustomCurrency {
93
+ export interface CustomCurrencyResponse {
45
94
  /**
46
95
  * A custom currency used to denominate credit-based entitlements and pricing
47
96
  */
48
- data: CustomCurrency.Data;
97
+ data: CustomCurrencyResponse.Data;
49
98
  }
50
- export declare namespace CustomCurrency {
99
+ export declare namespace CustomCurrencyResponse {
51
100
  /**
52
101
  * A custom currency used to denominate credit-based entitlements and pricing
53
102
  */
@@ -285,6 +334,6 @@ export interface CustomCurrencyListParams extends MyCursorIDPageParams {
285
334
  status?: Array<'ACTIVE' | 'ARCHIVED'>;
286
335
  }
287
336
  export declare namespace CustomCurrencies {
288
- export { type CustomCurrency as CustomCurrency, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
337
+ export { type CustomCurrencyResponse as CustomCurrencyResponse, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
289
338
  }
290
339
  //# sourceMappingURL=custom-currencies.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-currencies.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI9F;;OAEG;IACH,M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KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"custom-currencies.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.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,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItG;;;;;;;;;;OAUG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yCAAyC,EAAE,0BAA0B,CAAC;IAQrF;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,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