@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
@@ -12,18 +12,44 @@ class Coupons extends resource_1.APIResource {
12
12
  /**
13
13
  * Creates a new discount coupon with percentage or fixed amount off, applicable to
14
14
  * customer subscriptions.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const coupon = await client.v1.coupons.create({
19
+ * id: 'id',
20
+ * amountsOff: [{ amount: 0, currency: 'usd' }],
21
+ * description: 'description',
22
+ * durationInMonths: 1,
23
+ * metadata: { foo: 'string' },
24
+ * name: 'name',
25
+ * percentOff: 1,
26
+ * });
27
+ * ```
15
28
  */
16
29
  create(body, options) {
17
30
  return this._client.post('/api/v1/coupons', { body, ...options });
18
31
  }
19
32
  /**
20
33
  * Retrieves a coupon by its unique identifier.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const coupon = await client.v1.coupons.retrieve('x');
38
+ * ```
21
39
  */
22
40
  retrieve(id, options) {
23
41
  return this._client.get((0, path_1.path) `/api/v1/coupons/${id}`, options);
24
42
  }
25
43
  /**
26
44
  * Retrieves a paginated list of coupons in the environment.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * // Automatically fetches more pages as needed.
49
+ * for await (const couponListResponse of client.v1.coupons.list()) {
50
+ * // ...
51
+ * }
52
+ * ```
27
53
  */
28
54
  list(query = {}, options) {
29
55
  return this._client.getAPIList('/api/v1/coupons', (pagination_1.MyCursorIDPage), {
@@ -33,12 +59,22 @@ class Coupons extends resource_1.APIResource {
33
59
  }
34
60
  /**
35
61
  * Archives a coupon, preventing it from being applied to new subscriptions.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const coupon = await client.v1.coupons.archiveCoupon('x');
66
+ * ```
36
67
  */
37
68
  archiveCoupon(id, options) {
38
69
  return this._client.post((0, path_1.path) `/api/v1/coupons/${id}/archive`, options);
39
70
  }
40
71
  /**
41
72
  * Updates an existing coupon's properties such as name, description, and metadata.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const coupon = await client.v1.coupons.updateCoupon('x');
77
+ * ```
42
78
  */
43
79
  updateCoupon(id, body, options) {
44
80
  return this._client.patch((0, path_1.path) `/api/v1/coupons/${id}`, { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAA+F;AAE/F,uDAAiD;AAEjD;;GAEG;AACH,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,2BAAkC,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,aAA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,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAC,EAAU,EAAE,IAA8B,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AA9ED,0BA8EC"}
@@ -9,18 +9,44 @@ export class Coupons extends APIResource {
9
9
  /**
10
10
  * Creates a new discount coupon with percentage or fixed amount off, applicable to
11
11
  * customer subscriptions.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const coupon = await client.v1.coupons.create({
16
+ * id: 'id',
17
+ * amountsOff: [{ amount: 0, currency: 'usd' }],
18
+ * description: 'description',
19
+ * durationInMonths: 1,
20
+ * metadata: { foo: 'string' },
21
+ * name: 'name',
22
+ * percentOff: 1,
23
+ * });
24
+ * ```
12
25
  */
13
26
  create(body, options) {
14
27
  return this._client.post('/api/v1/coupons', { body, ...options });
15
28
  }
16
29
  /**
17
30
  * Retrieves a coupon by its unique identifier.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const coupon = await client.v1.coupons.retrieve('x');
35
+ * ```
18
36
  */
19
37
  retrieve(id, options) {
20
38
  return this._client.get(path `/api/v1/coupons/${id}`, options);
21
39
  }
22
40
  /**
23
41
  * Retrieves a paginated list of coupons in the environment.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * // Automatically fetches more pages as needed.
46
+ * for await (const couponListResponse of client.v1.coupons.list()) {
47
+ * // ...
48
+ * }
49
+ * ```
24
50
  */
25
51
  list(query = {}, options) {
26
52
  return this._client.getAPIList('/api/v1/coupons', (MyCursorIDPage), {
@@ -30,12 +56,22 @@ export class Coupons extends APIResource {
30
56
  }
31
57
  /**
32
58
  * Archives a coupon, preventing it from being applied to new subscriptions.
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * const coupon = await client.v1.coupons.archiveCoupon('x');
63
+ * ```
33
64
  */
34
65
  archiveCoupon(id, options) {
35
66
  return this._client.post(path `/api/v1/coupons/${id}/archive`, options);
36
67
  }
37
68
  /**
38
69
  * Updates an existing coupon's properties such as name, description, and metadata.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const coupon = await client.v1.coupons.updateCoupon('x');
74
+ * ```
39
75
  */
40
76
  updateCoupon(id, body, options) {
41
77
  return this._client.patch(path `/api/v1/coupons/${id}`, { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"coupons.mjs","sourceRoot":"","sources":["../../src/resources/v1/coupons.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,IAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,EAAE,CAAA,cAAkC,CAAA,EAAE;YACpF,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,aAAa,CAAC,EAAU,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CA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I,CAAA,mBAAmB,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;;;OAOG;IACH,YAAY,CAAC,EAAU,EAAE,IAA8B,EAAE,OAAwB;QAC/E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,mBAAmB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
@@ -1,8 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
- import * as AutoRechargeAPI from "./auto-recharge.mjs";
3
- import { AutoRecharge, AutoRechargeGetAutoRechargeParams, AutoRechargeGetAutoRechargeResponse } from "./auto-recharge.mjs";
4
2
  import * as CustomCurrenciesAPI from "./custom-currencies.mjs";
5
- import { CustomCurrencies, CustomCurrency, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyUpdateParams } from "./custom-currencies.mjs";
3
+ import { CustomCurrencies, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyResponse, CustomCurrencyUpdateParams } from "./custom-currencies.mjs";
6
4
  import * as GrantsAPI from "./grants.mjs";
7
5
  import { CreditGrantResponse, GrantCreateParams, GrantListParams, GrantListResponse, GrantListResponsesMyCursorIDPage, Grants } from "./grants.mjs";
8
6
  import { APIPromise } from "../../../core/api-promise.mjs";
@@ -11,18 +9,107 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
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.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.d.mts","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,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAInG;;OAEG;IACH,UAAU,CACR,KAAK,EAAE,sBAAsB,EAC7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