@stigg/typescript 0.1.0-beta.10 → 0.1.0-beta.13

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 (387) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +0 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +0 -1
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +0 -1
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +1 -3
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +0 -1
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/v1/addons/addons.d.mts +226 -193
  20. package/resources/v1/addons/addons.d.mts.map +1 -1
  21. package/resources/v1/addons/addons.d.ts +226 -193
  22. package/resources/v1/addons/addons.d.ts.map +1 -1
  23. package/resources/v1/addons/addons.js +60 -4
  24. package/resources/v1/addons/addons.js.map +1 -1
  25. package/resources/v1/addons/addons.mjs +60 -4
  26. package/resources/v1/addons/addons.mjs.map +1 -1
  27. package/resources/v1/addons/entitlements.d.mts +31 -0
  28. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  29. package/resources/v1/addons/entitlements.d.ts +31 -0
  30. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  31. package/resources/v1/addons/entitlements.js +31 -0
  32. package/resources/v1/addons/entitlements.js.map +1 -1
  33. package/resources/v1/addons/entitlements.mjs +31 -0
  34. package/resources/v1/addons/entitlements.mjs.map +1 -1
  35. package/resources/v1/addons/index.d.mts +1 -1
  36. package/resources/v1/addons/index.d.mts.map +1 -1
  37. package/resources/v1/addons/index.d.ts +1 -1
  38. package/resources/v1/addons/index.d.ts.map +1 -1
  39. package/resources/v1/coupons.d.mts +36 -0
  40. package/resources/v1/coupons.d.mts.map +1 -1
  41. package/resources/v1/coupons.d.ts +36 -0
  42. package/resources/v1/coupons.d.ts.map +1 -1
  43. package/resources/v1/coupons.js +36 -0
  44. package/resources/v1/coupons.js.map +1 -1
  45. package/resources/v1/coupons.mjs +36 -0
  46. package/resources/v1/coupons.mjs.map +1 -1
  47. package/resources/v1/credits/credits.d.mts +25 -0
  48. package/resources/v1/credits/credits.d.mts.map +1 -1
  49. package/resources/v1/credits/credits.d.ts +25 -0
  50. package/resources/v1/credits/credits.d.ts.map +1 -1
  51. package/resources/v1/credits/credits.js +25 -0
  52. package/resources/v1/credits/credits.js.map +1 -1
  53. package/resources/v1/credits/credits.mjs +25 -0
  54. package/resources/v1/credits/credits.mjs.map +1 -1
  55. package/resources/v1/credits/custom-currencies.d.mts +49 -0
  56. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  57. package/resources/v1/credits/custom-currencies.d.ts +49 -0
  58. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  59. package/resources/v1/credits/custom-currencies.js +49 -0
  60. package/resources/v1/credits/custom-currencies.js.map +1 -1
  61. package/resources/v1/credits/custom-currencies.mjs +49 -0
  62. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  63. package/resources/v1/credits/grants.d.mts +28 -0
  64. package/resources/v1/credits/grants.d.mts.map +1 -1
  65. package/resources/v1/credits/grants.d.ts +28 -0
  66. package/resources/v1/credits/grants.d.ts.map +1 -1
  67. package/resources/v1/credits/grants.js +28 -0
  68. package/resources/v1/credits/grants.js.map +1 -1
  69. package/resources/v1/credits/grants.mjs +28 -0
  70. package/resources/v1/credits/grants.mjs.map +1 -1
  71. package/resources/v1/customers/customers.d.mts +82 -5
  72. package/resources/v1/customers/customers.d.mts.map +1 -1
  73. package/resources/v1/customers/customers.d.ts +82 -5
  74. package/resources/v1/customers/customers.d.ts.map +1 -1
  75. package/resources/v1/customers/customers.js +77 -0
  76. package/resources/v1/customers/customers.js.map +1 -1
  77. package/resources/v1/customers/customers.mjs +77 -0
  78. package/resources/v1/customers/customers.mjs.map +1 -1
  79. package/resources/v1/customers/integrations.d.mts +50 -3
  80. package/resources/v1/customers/integrations.d.mts.map +1 -1
  81. package/resources/v1/customers/integrations.d.ts +50 -3
  82. package/resources/v1/customers/integrations.d.ts.map +1 -1
  83. package/resources/v1/customers/integrations.js +47 -0
  84. package/resources/v1/customers/integrations.js.map +1 -1
  85. package/resources/v1/customers/integrations.mjs +47 -0
  86. package/resources/v1/customers/integrations.mjs.map +1 -1
  87. package/resources/v1/customers/payment-method.d.mts +17 -1
  88. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  89. package/resources/v1/customers/payment-method.d.ts +17 -1
  90. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  91. package/resources/v1/customers/payment-method.js +16 -0
  92. package/resources/v1/customers/payment-method.js.map +1 -1
  93. package/resources/v1/customers/payment-method.mjs +16 -0
  94. package/resources/v1/customers/payment-method.mjs.map +1 -1
  95. package/resources/v1/customers/promotional-entitlements.d.mts +51 -0
  96. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  97. package/resources/v1/customers/promotional-entitlements.d.ts +51 -0
  98. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  99. package/resources/v1/customers/promotional-entitlements.js +51 -0
  100. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  101. package/resources/v1/customers/promotional-entitlements.mjs +51 -0
  102. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  103. package/resources/{v1-beta/v1-beta.d.mts → v1/events/beta/beta.d.mts} +4 -4
  104. package/resources/v1/events/beta/beta.d.mts.map +1 -0
  105. package/resources/{v1-beta/v1-beta.d.ts → v1/events/beta/beta.d.ts} +4 -4
  106. package/resources/v1/events/beta/beta.d.ts.map +1 -0
  107. package/resources/{v1-beta/v1-beta.js → v1/events/beta/beta.js} +8 -8
  108. package/resources/v1/events/beta/beta.js.map +1 -0
  109. package/resources/{v1-beta/v1-beta.mjs → v1/events/beta/beta.mjs} +5 -5
  110. package/resources/v1/events/beta/beta.mjs.map +1 -0
  111. package/resources/{v1-beta → v1/events/beta}/customers/assignments.d.mts +24 -21
  112. package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
  113. package/resources/{v1-beta → v1/events/beta}/customers/assignments.d.ts +24 -21
  114. package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
  115. package/resources/{v1-beta → v1/events/beta}/customers/assignments.js +23 -20
  116. package/resources/v1/events/beta/customers/assignments.js.map +1 -0
  117. package/resources/{v1-beta → v1/events/beta}/customers/assignments.mjs +23 -20
  118. package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
  119. package/resources/{v1-beta → v1/events/beta}/customers/customers.d.mts +3 -3
  120. package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
  121. package/resources/{v1-beta → v1/events/beta}/customers/customers.d.ts +3 -3
  122. package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
  123. package/resources/{v1-beta → v1/events/beta}/customers/customers.js +2 -2
  124. package/resources/v1/events/beta/customers/customers.js.map +1 -0
  125. package/resources/{v1-beta → v1/events/beta}/customers/customers.mjs +1 -1
  126. package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
  127. package/resources/{v1-beta → v1/events/beta}/customers/entities.d.mts +82 -62
  128. package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
  129. package/resources/{v1-beta → v1/events/beta}/customers/entities.d.ts +82 -62
  130. package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
  131. package/resources/{v1-beta → v1/events/beta}/customers/entities.js +38 -29
  132. package/resources/v1/events/beta/customers/entities.js.map +1 -0
  133. package/resources/{v1-beta → v1/events/beta}/customers/entities.mjs +38 -29
  134. package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
  135. package/resources/{v1-beta → v1/events/beta}/customers/entitlements.d.mts +6 -4
  136. package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
  137. package/resources/{v1-beta → v1/events/beta}/customers/entitlements.d.ts +6 -4
  138. package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
  139. package/resources/{v1-beta → v1/events/beta}/customers/entitlements.js +5 -3
  140. package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
  141. package/resources/{v1-beta → v1/events/beta}/customers/entitlements.mjs +5 -3
  142. package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
  143. package/resources/v1/events/beta/customers/index.d.mts +5 -0
  144. package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
  145. package/resources/v1/events/beta/customers/index.d.ts +5 -0
  146. package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
  147. package/resources/v1/events/beta/customers/index.js.map +1 -0
  148. package/resources/v1/events/beta/customers/index.mjs.map +1 -0
  149. package/resources/v1/events/beta/customers.d.mts.map +1 -0
  150. package/resources/v1/events/beta/customers.d.ts.map +1 -0
  151. package/resources/{v1-beta → v1/events/beta}/customers.js +1 -1
  152. package/resources/v1/events/beta/customers.js.map +1 -0
  153. package/resources/v1/events/beta/customers.mjs.map +1 -0
  154. package/resources/{v1-beta → v1/events/beta}/entity-types.d.mts +20 -19
  155. package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
  156. package/resources/{v1-beta → v1/events/beta}/entity-types.d.ts +20 -19
  157. package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
  158. package/resources/{v1-beta → v1/events/beta}/entity-types.js +18 -17
  159. package/resources/v1/events/beta/entity-types.js.map +1 -0
  160. package/resources/{v1-beta → v1/events/beta}/entity-types.mjs +18 -17
  161. package/resources/v1/events/beta/entity-types.mjs.map +1 -0
  162. package/resources/{v1-beta → v1/events/beta}/index.d.mts +1 -1
  163. package/resources/v1/events/beta/index.d.mts.map +1 -0
  164. package/resources/{v1-beta → v1/events/beta}/index.d.ts +1 -1
  165. package/resources/v1/events/beta/index.d.ts.map +1 -0
  166. package/resources/{v1-beta → v1/events/beta}/index.js +3 -3
  167. package/resources/v1/events/beta/index.js.map +1 -0
  168. package/resources/{v1-beta → v1/events/beta}/index.mjs +1 -1
  169. package/resources/v1/events/beta/index.mjs.map +1 -0
  170. package/resources/v1/events/beta.d.mts +2 -0
  171. package/resources/v1/events/beta.d.mts.map +1 -0
  172. package/resources/v1/events/beta.d.ts +2 -0
  173. package/resources/v1/events/beta.d.ts.map +1 -0
  174. package/resources/{v1-beta.js → v1/events/beta.js} +3 -3
  175. package/resources/v1/events/beta.js.map +1 -0
  176. package/resources/{v1-beta.mjs → v1/events/beta.mjs} +2 -2
  177. package/resources/v1/events/beta.mjs.map +1 -0
  178. package/resources/v1/events/events.d.mts +83 -0
  179. package/resources/v1/events/events.d.mts.map +1 -0
  180. package/resources/v1/events/events.d.ts +83 -0
  181. package/resources/v1/events/events.d.ts.map +1 -0
  182. package/resources/v1/events/events.js +40 -0
  183. package/resources/v1/events/events.js.map +1 -0
  184. package/resources/v1/events/events.mjs +35 -0
  185. package/resources/v1/events/events.mjs.map +1 -0
  186. package/resources/v1/events/index.d.mts +3 -0
  187. package/resources/v1/events/index.d.mts.map +1 -0
  188. package/resources/v1/events/index.d.ts +3 -0
  189. package/resources/v1/events/index.d.ts.map +1 -0
  190. package/resources/v1/events/index.js +9 -0
  191. package/resources/v1/events/index.js.map +1 -0
  192. package/resources/v1/events/index.mjs +4 -0
  193. package/resources/v1/events/index.mjs.map +1 -0
  194. package/resources/v1/events.d.mts +1 -65
  195. package/resources/v1/events.d.mts.map +1 -1
  196. package/resources/v1/events.d.ts +1 -65
  197. package/resources/v1/events.d.ts.map +1 -1
  198. package/resources/v1/events.js +2 -15
  199. package/resources/v1/events.js.map +1 -1
  200. package/resources/v1/events.mjs +1 -13
  201. package/resources/v1/events.mjs.map +1 -1
  202. package/resources/v1/features.d.mts +43 -0
  203. package/resources/v1/features.d.mts.map +1 -1
  204. package/resources/v1/features.d.ts +43 -0
  205. package/resources/v1/features.d.ts.map +1 -1
  206. package/resources/v1/features.js +43 -0
  207. package/resources/v1/features.js.map +1 -1
  208. package/resources/v1/features.mjs +43 -0
  209. package/resources/v1/features.mjs.map +1 -1
  210. package/resources/v1/index.d.mts +3 -3
  211. package/resources/v1/index.d.mts.map +1 -1
  212. package/resources/v1/index.d.ts +3 -3
  213. package/resources/v1/index.d.ts.map +1 -1
  214. package/resources/v1/index.js +6 -6
  215. package/resources/v1/index.js.map +1 -1
  216. package/resources/v1/index.mjs +1 -1
  217. package/resources/v1/index.mjs.map +1 -1
  218. package/resources/v1/plans/entitlements.d.mts +31 -0
  219. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  220. package/resources/v1/plans/entitlements.d.ts +31 -0
  221. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  222. package/resources/v1/plans/entitlements.js +31 -0
  223. package/resources/v1/plans/entitlements.js.map +1 -1
  224. package/resources/v1/plans/entitlements.mjs +31 -0
  225. package/resources/v1/plans/entitlements.mjs.map +1 -1
  226. package/resources/v1/plans/index.d.mts +1 -1
  227. package/resources/v1/plans/index.d.mts.map +1 -1
  228. package/resources/v1/plans/index.d.ts +1 -1
  229. package/resources/v1/plans/index.d.ts.map +1 -1
  230. package/resources/v1/plans/index.js.map +1 -1
  231. package/resources/v1/plans/index.mjs.map +1 -1
  232. package/resources/v1/plans/plans.d.mts +402 -6
  233. package/resources/v1/plans/plans.d.mts.map +1 -1
  234. package/resources/v1/plans/plans.d.ts +402 -6
  235. package/resources/v1/plans/plans.d.ts.map +1 -1
  236. package/resources/v1/plans/plans.js +69 -0
  237. package/resources/v1/plans/plans.js.map +1 -1
  238. package/resources/v1/plans/plans.mjs +69 -0
  239. package/resources/v1/plans/plans.mjs.map +1 -1
  240. package/resources/v1/products.d.mts +43 -0
  241. package/resources/v1/products.d.mts.map +1 -1
  242. package/resources/v1/products.d.ts +43 -0
  243. package/resources/v1/products.d.ts.map +1 -1
  244. package/resources/v1/products.js +43 -0
  245. package/resources/v1/products.js.map +1 -1
  246. package/resources/v1/products.mjs +43 -0
  247. package/resources/v1/products.mjs.map +1 -1
  248. package/resources/v1/subscriptions/future-update.d.mts +16 -0
  249. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  250. package/resources/v1/subscriptions/future-update.d.ts +16 -0
  251. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  252. package/resources/v1/subscriptions/future-update.js +16 -0
  253. package/resources/v1/subscriptions/future-update.js.map +1 -1
  254. package/resources/v1/subscriptions/future-update.mjs +16 -0
  255. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  256. package/resources/v1/subscriptions/invoice.d.mts +6 -0
  257. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  258. package/resources/v1/subscriptions/invoice.d.ts +6 -0
  259. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  260. package/resources/v1/subscriptions/invoice.js +6 -0
  261. package/resources/v1/subscriptions/invoice.js.map +1 -1
  262. package/resources/v1/subscriptions/invoice.mjs +6 -0
  263. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  264. package/resources/v1/subscriptions/subscriptions.d.mts +81 -0
  265. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  266. package/resources/v1/subscriptions/subscriptions.d.ts +81 -0
  267. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  268. package/resources/v1/subscriptions/subscriptions.js +81 -0
  269. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  270. package/resources/v1/subscriptions/subscriptions.mjs +81 -0
  271. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  272. package/resources/v1/subscriptions/usage.d.mts +13 -0
  273. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  274. package/resources/v1/subscriptions/usage.d.ts +13 -0
  275. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  276. package/resources/v1/subscriptions/usage.js +13 -0
  277. package/resources/v1/subscriptions/usage.js.map +1 -1
  278. package/resources/v1/subscriptions/usage.mjs +13 -0
  279. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  280. package/resources/v1/usage.d.mts +24 -0
  281. package/resources/v1/usage.d.mts.map +1 -1
  282. package/resources/v1/usage.d.ts +24 -0
  283. package/resources/v1/usage.d.ts.map +1 -1
  284. package/resources/v1/usage.js +24 -0
  285. package/resources/v1/usage.js.map +1 -1
  286. package/resources/v1/usage.mjs +24 -0
  287. package/resources/v1/usage.mjs.map +1 -1
  288. package/resources/v1/v1.d.mts +6 -6
  289. package/resources/v1/v1.d.mts.map +1 -1
  290. package/resources/v1/v1.d.ts +6 -6
  291. package/resources/v1/v1.d.ts.map +1 -1
  292. package/resources/v1/v1.js +2 -2
  293. package/resources/v1/v1.js.map +1 -1
  294. package/resources/v1/v1.mjs +2 -2
  295. package/resources/v1/v1.mjs.map +1 -1
  296. package/src/client.ts +0 -5
  297. package/src/resources/index.ts +0 -1
  298. package/src/resources/v1/addons/addons.ts +517 -487
  299. package/src/resources/v1/addons/entitlements.ts +31 -0
  300. package/src/resources/v1/addons/index.ts +2 -2
  301. package/src/resources/v1/coupons.ts +36 -0
  302. package/src/resources/v1/credits/credits.ts +25 -0
  303. package/src/resources/v1/credits/custom-currencies.ts +49 -0
  304. package/src/resources/v1/credits/grants.ts +28 -0
  305. package/src/resources/v1/customers/customers.ts +92 -5
  306. package/src/resources/v1/customers/integrations.ts +55 -2
  307. package/src/resources/v1/customers/payment-method.ts +19 -1
  308. package/src/resources/v1/customers/promotional-entitlements.ts +51 -0
  309. package/src/resources/{v1-beta/v1-beta.ts → v1/events/beta/beta.ts} +5 -5
  310. package/src/resources/{v1-beta → v1/events/beta}/customers/assignments.ts +25 -22
  311. package/src/resources/{v1-beta → v1/events/beta}/customers/customers.ts +5 -5
  312. package/src/resources/{v1-beta → v1/events/beta}/customers/entities.ts +88 -67
  313. package/src/resources/{v1-beta → v1/events/beta}/customers/entitlements.ts +7 -5
  314. package/src/resources/{v1-beta → v1/events/beta}/customers/index.ts +2 -2
  315. package/src/resources/{v1-beta → v1/events/beta}/entity-types.ts +20 -19
  316. package/src/resources/{v1-beta → v1/events/beta}/index.ts +1 -1
  317. package/src/resources/{v1-beta.ts → v1/events/beta.ts} +1 -1
  318. package/src/resources/v1/events/events.ts +98 -0
  319. package/src/resources/v1/events/index.ts +4 -0
  320. package/src/resources/v1/events.ts +1 -75
  321. package/src/resources/v1/features.ts +43 -0
  322. package/src/resources/v1/index.ts +7 -3
  323. package/src/resources/v1/plans/entitlements.ts +31 -0
  324. package/src/resources/v1/plans/index.ts +4 -0
  325. package/src/resources/v1/plans/plans.ts +1169 -8
  326. package/src/resources/v1/products.ts +43 -0
  327. package/src/resources/v1/subscriptions/future-update.ts +16 -0
  328. package/src/resources/v1/subscriptions/invoice.ts +6 -0
  329. package/src/resources/v1/subscriptions/subscriptions.ts +81 -0
  330. package/src/resources/v1/subscriptions/usage.ts +13 -0
  331. package/src/resources/v1/usage.ts +24 -0
  332. package/src/resources/v1/v1.ts +14 -6
  333. package/src/version.ts +1 -1
  334. package/version.d.mts +1 -1
  335. package/version.d.ts +1 -1
  336. package/version.js +1 -1
  337. package/version.mjs +1 -1
  338. package/resources/v1-beta/customers/assignments.d.mts.map +0 -1
  339. package/resources/v1-beta/customers/assignments.d.ts.map +0 -1
  340. package/resources/v1-beta/customers/assignments.js.map +0 -1
  341. package/resources/v1-beta/customers/assignments.mjs.map +0 -1
  342. package/resources/v1-beta/customers/customers.d.mts.map +0 -1
  343. package/resources/v1-beta/customers/customers.d.ts.map +0 -1
  344. package/resources/v1-beta/customers/customers.js.map +0 -1
  345. package/resources/v1-beta/customers/customers.mjs.map +0 -1
  346. package/resources/v1-beta/customers/entities.d.mts.map +0 -1
  347. package/resources/v1-beta/customers/entities.d.ts.map +0 -1
  348. package/resources/v1-beta/customers/entities.js.map +0 -1
  349. package/resources/v1-beta/customers/entities.mjs.map +0 -1
  350. package/resources/v1-beta/customers/entitlements.d.mts.map +0 -1
  351. package/resources/v1-beta/customers/entitlements.d.ts.map +0 -1
  352. package/resources/v1-beta/customers/entitlements.js.map +0 -1
  353. package/resources/v1-beta/customers/entitlements.mjs.map +0 -1
  354. package/resources/v1-beta/customers/index.d.mts +0 -5
  355. package/resources/v1-beta/customers/index.d.mts.map +0 -1
  356. package/resources/v1-beta/customers/index.d.ts +0 -5
  357. package/resources/v1-beta/customers/index.d.ts.map +0 -1
  358. package/resources/v1-beta/customers/index.js.map +0 -1
  359. package/resources/v1-beta/customers/index.mjs.map +0 -1
  360. package/resources/v1-beta/customers.d.mts.map +0 -1
  361. package/resources/v1-beta/customers.d.ts.map +0 -1
  362. package/resources/v1-beta/customers.js.map +0 -1
  363. package/resources/v1-beta/customers.mjs.map +0 -1
  364. package/resources/v1-beta/entity-types.d.mts.map +0 -1
  365. package/resources/v1-beta/entity-types.d.ts.map +0 -1
  366. package/resources/v1-beta/entity-types.js.map +0 -1
  367. package/resources/v1-beta/entity-types.mjs.map +0 -1
  368. package/resources/v1-beta/index.d.mts.map +0 -1
  369. package/resources/v1-beta/index.d.ts.map +0 -1
  370. package/resources/v1-beta/index.js.map +0 -1
  371. package/resources/v1-beta/index.mjs.map +0 -1
  372. package/resources/v1-beta/v1-beta.d.mts.map +0 -1
  373. package/resources/v1-beta/v1-beta.d.ts.map +0 -1
  374. package/resources/v1-beta/v1-beta.js.map +0 -1
  375. package/resources/v1-beta/v1-beta.mjs.map +0 -1
  376. package/resources/v1-beta.d.mts +0 -2
  377. package/resources/v1-beta.d.mts.map +0 -1
  378. package/resources/v1-beta.d.ts +0 -2
  379. package/resources/v1-beta.d.ts.map +0 -1
  380. package/resources/v1-beta.js.map +0 -1
  381. package/resources/v1-beta.mjs.map +0 -1
  382. /package/resources/{v1-beta → v1/events/beta}/customers/index.js +0 -0
  383. /package/resources/{v1-beta → v1/events/beta}/customers/index.mjs +0 -0
  384. /package/resources/{v1-beta → v1/events/beta}/customers.d.mts +0 -0
  385. /package/resources/{v1-beta → v1/events/beta}/customers.d.ts +0 -0
  386. /package/resources/{v1-beta → v1/events/beta}/customers.mjs +0 -0
  387. /package/src/resources/{v1-beta → v1/events/beta}/customers.ts +0 -0
@@ -24,6 +24,15 @@ export class Addons extends APIResource {
24
24
 
25
25
  /**
26
26
  * Creates a new addon in draft status, associated with a specific product.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const addon = await client.v1.addons.create({
31
+ * id: 'id',
32
+ * displayName: 'displayName',
33
+ * productId: 'productId',
34
+ * });
35
+ * ```
27
36
  */
28
37
  create(body: AddonCreateParams, options?: RequestOptions): APIPromise<Addon> {
29
38
  return this._client.post('/api/v1/addons', { body, ...options });
@@ -32,6 +41,11 @@ export class Addons extends APIResource {
32
41
  /**
33
42
  * Retrieves an addon by its unique identifier, including entitlements and pricing
34
43
  * details.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const addon = await client.v1.addons.retrieve('x');
48
+ * ```
35
49
  */
36
50
  retrieve(id: string, options?: RequestOptions): APIPromise<Addon> {
37
51
  return this._client.get(path`/api/v1/addons/${id}`, options);
@@ -40,6 +54,11 @@ export class Addons extends APIResource {
40
54
  /**
41
55
  * Updates an existing addon's properties such as display name, description, and
42
56
  * metadata.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const addon = await client.v1.addons.update('x');
61
+ * ```
43
62
  */
44
63
  update(id: string, body: AddonUpdateParams, options?: RequestOptions): APIPromise<Addon> {
45
64
  return this._client.patch(path`/api/v1/addons/${id}`, { body, ...options });
@@ -47,6 +66,14 @@ export class Addons extends APIResource {
47
66
 
48
67
  /**
49
68
  * Retrieves a paginated list of addons in the environment.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * // Automatically fetches more pages as needed.
73
+ * for await (const addonListResponse of client.v1.addons.list()) {
74
+ * // ...
75
+ * }
76
+ * ```
50
77
  */
51
78
  list(
52
79
  query: AddonListParams | null | undefined = {},
@@ -60,6 +87,11 @@ export class Addons extends APIResource {
60
87
 
61
88
  /**
62
89
  * Archives an addon, preventing it from being used in new subscriptions.
90
+ *
91
+ * @example
92
+ * ```ts
93
+ * const addon = await client.v1.addons.archive('x');
94
+ * ```
63
95
  */
64
96
  archive(id: string, options?: RequestOptions): APIPromise<Addon> {
65
97
  return this._client.post(path`/api/v1/addons/${id}/archive`, options);
@@ -67,6 +99,11 @@ export class Addons extends APIResource {
67
99
 
68
100
  /**
69
101
  * Creates a draft version of an existing addon for modification before publishing.
102
+ *
103
+ * @example
104
+ * ```ts
105
+ * const addon = await client.v1.addons.createDraft('x');
106
+ * ```
70
107
  */
71
108
  createDraft(id: string, options?: RequestOptions): APIPromise<Addon> {
72
109
  return this._client.post(path`/api/v1/addons/${id}/draft`, options);
@@ -74,20 +111,38 @@ export class Addons extends APIResource {
74
111
 
75
112
  /**
76
113
  * Retrieves the list of charges configured on an addon.
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * // Automatically fetches more pages as needed.
118
+ * for await (const addonListChargesResponse of client.v1.addons.listCharges(
119
+ * 'x',
120
+ * )) {
121
+ * // ...
122
+ * }
123
+ * ```
77
124
  */
78
125
  listCharges(
79
126
  id: string,
80
127
  query: AddonListChargesParams | null | undefined = {},
81
128
  options?: RequestOptions,
82
- ): PagePromise<ChargeListDataMyCursorIDPage, ChargeList.Data> {
83
- return this._client.getAPIList(path`/api/v1/addons/${id}/charges`, MyCursorIDPage<ChargeList.Data>, {
84
- query,
85
- ...options,
86
- });
129
+ ): PagePromise<AddonListChargesResponsesMyCursorIDPage, AddonListChargesResponse> {
130
+ return this._client.getAPIList(
131
+ path`/api/v1/addons/${id}/charges`,
132
+ MyCursorIDPage<AddonListChargesResponse>,
133
+ { query, ...options },
134
+ );
87
135
  }
88
136
 
89
137
  /**
90
138
  * Publishes a draft addon, making it available for use in subscriptions.
139
+ *
140
+ * @example
141
+ * ```ts
142
+ * const response = await client.v1.addons.publish('x', {
143
+ * migrationType: 'NEW_CUSTOMERS',
144
+ * });
145
+ * ```
91
146
  */
92
147
  publish(id: string, body: AddonPublishParams, options?: RequestOptions): APIPromise<AddonPublishResponse> {
93
148
  return this._client.post(path`/api/v1/addons/${id}/publish`, { body, ...options });
@@ -95,6 +150,11 @@ export class Addons extends APIResource {
95
150
 
96
151
  /**
97
152
  * Removes a draft version of an addon.
153
+ *
154
+ * @example
155
+ * ```ts
156
+ * const response = await client.v1.addons.removeDraft('x');
157
+ * ```
98
158
  */
99
159
  removeDraft(id: string, options?: RequestOptions): APIPromise<AddonRemoveDraftResponse> {
100
160
  return this._client.delete(path`/api/v1/addons/${id}/draft`, options);
@@ -103,7 +163,7 @@ export class Addons extends APIResource {
103
163
 
104
164
  export type AddonListResponsesMyCursorIDPage = MyCursorIDPage<AddonListResponse>;
105
165
 
106
- export type ChargeListDataMyCursorIDPage = MyCursorIDPage<ChargeList.Data>;
166
+ export type AddonListChargesResponsesMyCursorIDPage = MyCursorIDPage<AddonListChargesResponse>;
107
167
 
108
168
  /**
109
169
  * Response object
@@ -212,150 +272,383 @@ export namespace Addon {
212
272
  }
213
273
 
214
274
  /**
215
- * Response list object
275
+ * Addon configuration object
216
276
  */
217
- export interface ChargeList {
218
- data: Array<ChargeList.Data>;
277
+ export interface AddonListResponse {
278
+ /**
279
+ * The unique identifier for the entity
280
+ */
281
+ id: string;
282
+
283
+ /**
284
+ * The unique identifier for the entity in the billing provider
285
+ */
286
+ billingId: string | null;
287
+
288
+ /**
289
+ * Timestamp of when the record was created
290
+ */
291
+ createdAt: string;
292
+
293
+ /**
294
+ * List of addons the addon is dependant on
295
+ */
296
+ dependencies: Array<string> | null;
297
+
298
+ /**
299
+ * The description of the package
300
+ */
301
+ description: string | null;
302
+
303
+ /**
304
+ * The display name of the package
305
+ */
306
+ displayName: string;
307
+
308
+ /**
309
+ * List of entitlements of the package
310
+ */
311
+ entitlements: Array<AddonListResponse.Entitlement>;
312
+
313
+ /**
314
+ * Indicates if the package is the latest version
315
+ */
316
+ isLatest: boolean | null;
317
+
318
+ /**
319
+ * The maximum quantity of this addon that can be added to a subscription
320
+ */
321
+ maxQuantity: number | null;
322
+
323
+ /**
324
+ * Metadata associated with the entity
325
+ */
326
+ metadata: { [key: string]: string };
327
+
328
+ /**
329
+ * The pricing type of the package
330
+ */
331
+ pricingType: 'FREE' | 'PAID' | 'CUSTOM' | null;
332
+
333
+ /**
334
+ * The product id of the package
335
+ */
336
+ productId: string;
219
337
 
220
338
  /**
221
- * Pagination metadata including cursors for navigating through results
339
+ * The status of the package
340
+ */
341
+ status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
342
+
343
+ /**
344
+ * Timestamp of when the record was last updated
345
+ */
346
+ updatedAt: string;
347
+
348
+ /**
349
+ * The version number of the package
222
350
  */
223
- pagination: ChargeList.Pagination;
351
+ versionNumber: number;
224
352
  }
225
353
 
226
- export namespace ChargeList {
354
+ export namespace AddonListResponse {
227
355
  /**
228
- * A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
229
- * billingModel, billingCadence, billingCountryCode) combination. Plans and addons
230
- * own many of these — one per currency / billing period / feature.
356
+ * Entitlement reference with type and identifier
231
357
  */
232
- export interface Data {
358
+ export interface Entitlement {
233
359
  /**
234
- * Unique identifier of the charge
360
+ * The unique identifier for the entity
235
361
  */
236
362
  id: string;
237
363
 
238
- /**
239
- * The billing cadence (RECURRING or ONE_OFF)
240
- */
241
- billingCadence: 'RECURRING' | 'ONE_OFF';
364
+ type: 'FEATURE' | 'CREDIT';
365
+ }
366
+ }
242
367
 
243
- /**
244
- * The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
245
- */
246
- billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
368
+ /**
369
+ * A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
370
+ * billingModel, billingCadence, billingCountryCode) combination. Plans and addons
371
+ * own many of these one per currency / billing period / feature.
372
+ */
373
+ export interface AddonListChargesResponse {
374
+ /**
375
+ * Unique identifier of the charge
376
+ */
377
+ id: string;
247
378
 
248
- /**
249
- * The billing period (MONTHLY or ANNUALLY)
250
- */
251
- billingPeriod: 'MONTHLY' | 'ANNUALLY';
379
+ /**
380
+ * The billing cadence (RECURRING or ONE_OFF)
381
+ */
382
+ billingCadence: 'RECURRING' | 'ONE_OFF';
252
383
 
253
- /**
254
- * Timestamp when the charge was created
255
- */
256
- createdAt: string;
384
+ /**
385
+ * The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
386
+ */
387
+ billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
257
388
 
258
- /**
259
- * ISO country code for localized pricing, if any
260
- */
261
- billingCountryCode?: string | null;
389
+ /**
390
+ * The billing period (MONTHLY or ANNUALLY)
391
+ */
392
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
262
393
 
263
- /**
264
- * Identifier in the external billing integration (e.g. Stripe price id), if any
265
- */
266
- billingId?: string | null;
394
+ /**
395
+ * Timestamp when the charge was created
396
+ */
397
+ createdAt: string;
267
398
 
268
- /**
269
- * Block size for usage-based pricing
270
- */
271
- blockSize?: number | null;
399
+ /**
400
+ * ISO country code for localized pricing, if any
401
+ */
402
+ billingCountryCode?: string | null;
272
403
 
273
- /**
274
- * When credits are granted (for credit-based pricing)
275
- */
276
- creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
404
+ /**
405
+ * Identifier in the external billing integration (e.g. Stripe price id), if any
406
+ */
407
+ billingId?: string | null;
277
408
 
278
- /**
279
- * Credit rate configuration for credit-based pricing
280
- */
281
- creditRate?: Data.CreditRate | null;
409
+ /**
410
+ * Block size for usage-based pricing
411
+ */
412
+ blockSize?: number | null;
282
413
 
283
- /**
284
- * Identifier in the linked CRM, if any
285
- */
286
- crmId?: string | null;
414
+ /**
415
+ * When credits are granted (for credit-based pricing)
416
+ */
417
+ creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
287
418
 
288
- /**
289
- * Deep link to the charge in the linked CRM, if any
290
- */
291
- crmLinkUrl?: string | null;
419
+ /**
420
+ * Credit rate configuration for credit-based pricing
421
+ */
422
+ creditRate?: AddonListChargesResponse.CreditRate | null;
292
423
 
293
- /**
294
- * The feature this charge meters, if metered
295
- */
296
- featureId?: string | null;
424
+ /**
425
+ * Identifier in the linked CRM, if any
426
+ */
427
+ crmId?: string | null;
428
+
429
+ /**
430
+ * Deep link to the charge in the linked CRM, if any
431
+ */
432
+ crmLinkUrl?: string | null;
433
+
434
+ /**
435
+ * The feature this charge meters, if metered
436
+ */
437
+ featureId?: string | null;
438
+
439
+ /**
440
+ * Maximum unit quantity that can be purchased
441
+ */
442
+ maxUnitQuantity?: number | null;
443
+
444
+ /**
445
+ * Minimum unit quantity that can be purchased
446
+ */
447
+ minUnitQuantity?: number | null;
448
+
449
+ /**
450
+ * The flat price amount and currency, when applicable
451
+ */
452
+ price?: AddonListChargesResponse.Price | null;
453
+
454
+ /**
455
+ * Tiered pricing rows when the charge is tiered
456
+ */
457
+ tiers?: Array<AddonListChargesResponse.Tier> | null;
458
+
459
+ /**
460
+ * Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
461
+ */
462
+ tiersMode?: 'VOLUME' | 'GRADUATED' | null;
463
+
464
+ /**
465
+ * Custom currency identifier for top-up pricing, if any
466
+ */
467
+ topUpCustomCurrencyId?: string | null;
297
468
 
469
+ /**
470
+ * True if this charge is referenced by at least one subscription
471
+ */
472
+ usedInSubscriptions?: boolean | null;
473
+ }
474
+
475
+ export namespace AddonListChargesResponse {
476
+ /**
477
+ * Credit rate configuration for credit-based pricing
478
+ */
479
+ export interface CreditRate {
298
480
  /**
299
- * Maximum unit quantity that can be purchased
481
+ * Credit rate amount
300
482
  */
301
- maxUnitQuantity?: number | null;
483
+ amount: number;
302
484
 
303
485
  /**
304
- * Minimum unit quantity that can be purchased
486
+ * Custom currency identifier
305
487
  */
306
- minUnitQuantity?: number | null;
488
+ currencyId: string;
307
489
 
308
490
  /**
309
- * The flat price amount and currency, when applicable
491
+ * Optional cost formula expression
310
492
  */
311
- price?: Data.Price | null;
493
+ costFormula?: string | null;
494
+ }
312
495
 
496
+ /**
497
+ * The flat price amount and currency, when applicable
498
+ */
499
+ export interface Price {
313
500
  /**
314
- * Tiered pricing rows when the charge is tiered
501
+ * The price amount
315
502
  */
316
- tiers?: Array<Data.Tier> | null;
503
+ amount: number;
317
504
 
318
505
  /**
319
- * Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
506
+ * ISO 4217 currency code
320
507
  */
321
- tiersMode?: 'VOLUME' | 'GRADUATED' | null;
508
+ currency:
509
+ | 'usd'
510
+ | 'aed'
511
+ | 'all'
512
+ | 'amd'
513
+ | 'ang'
514
+ | 'aud'
515
+ | 'awg'
516
+ | 'azn'
517
+ | 'bam'
518
+ | 'bbd'
519
+ | 'bdt'
520
+ | 'bgn'
521
+ | 'bif'
522
+ | 'bmd'
523
+ | 'bnd'
524
+ | 'bsd'
525
+ | 'bwp'
526
+ | 'byn'
527
+ | 'bzd'
528
+ | 'brl'
529
+ | 'cad'
530
+ | 'cdf'
531
+ | 'chf'
532
+ | 'cny'
533
+ | 'czk'
534
+ | 'dkk'
535
+ | 'dop'
536
+ | 'dzd'
537
+ | 'egp'
538
+ | 'etb'
539
+ | 'eur'
540
+ | 'fjd'
541
+ | 'gbp'
542
+ | 'gel'
543
+ | 'gip'
544
+ | 'gmd'
545
+ | 'gyd'
546
+ | 'hkd'
547
+ | 'hrk'
548
+ | 'htg'
549
+ | 'idr'
550
+ | 'ils'
551
+ | 'inr'
552
+ | 'isk'
553
+ | 'jmd'
554
+ | 'jpy'
555
+ | 'kes'
556
+ | 'kgs'
557
+ | 'khr'
558
+ | 'kmf'
559
+ | 'krw'
560
+ | 'kyd'
561
+ | 'kzt'
562
+ | 'lbp'
563
+ | 'lkr'
564
+ | 'lrd'
565
+ | 'lsl'
566
+ | 'mad'
567
+ | 'mdl'
568
+ | 'mga'
569
+ | 'mkd'
570
+ | 'mmk'
571
+ | 'mnt'
572
+ | 'mop'
573
+ | 'mro'
574
+ | 'mvr'
575
+ | 'mwk'
576
+ | 'mxn'
577
+ | 'myr'
578
+ | 'mzn'
579
+ | 'nad'
580
+ | 'ngn'
581
+ | 'nok'
582
+ | 'npr'
583
+ | 'nzd'
584
+ | 'pgk'
585
+ | 'php'
586
+ | 'pkr'
587
+ | 'pln'
588
+ | 'qar'
589
+ | 'ron'
590
+ | 'rsd'
591
+ | 'rub'
592
+ | 'rwf'
593
+ | 'sar'
594
+ | 'sbd'
595
+ | 'scr'
596
+ | 'sek'
597
+ | 'sgd'
598
+ | 'sle'
599
+ | 'sll'
600
+ | 'sos'
601
+ | 'szl'
602
+ | 'thb'
603
+ | 'tjs'
604
+ | 'top'
605
+ | 'try'
606
+ | 'ttd'
607
+ | 'tzs'
608
+ | 'uah'
609
+ | 'uzs'
610
+ | 'vnd'
611
+ | 'vuv'
612
+ | 'wst'
613
+ | 'xaf'
614
+ | 'xcd'
615
+ | 'yer'
616
+ | 'zar'
617
+ | 'zmw'
618
+ | 'clp'
619
+ | 'djf'
620
+ | 'gnf'
621
+ | 'ugx'
622
+ | 'pyg'
623
+ | 'xof'
624
+ | 'xpf';
625
+ }
322
626
 
627
+ /**
628
+ * A single tier within a tiered charge
629
+ */
630
+ export interface Tier {
323
631
  /**
324
- * Custom currency identifier for top-up pricing, if any
632
+ * Flat price for this tier
325
633
  */
326
- topUpCustomCurrencyId?: string | null;
634
+ flatPrice?: Tier.FlatPrice | null;
327
635
 
328
636
  /**
329
- * True if this charge is referenced by at least one subscription
637
+ * Per-unit price in this tier
330
638
  */
331
- usedInSubscriptions?: boolean | null;
332
- }
639
+ unitPrice?: Tier.UnitPrice | null;
333
640
 
334
- export namespace Data {
335
641
  /**
336
- * Credit rate configuration for credit-based pricing
642
+ * Upper bound of this tier (null for unlimited)
337
643
  */
338
- export interface CreditRate {
339
- /**
340
- * Credit rate amount
341
- */
342
- amount: number;
343
-
344
- /**
345
- * Custom currency identifier
346
- */
347
- currencyId: string;
348
-
349
- /**
350
- * Optional cost formula expression
351
- */
352
- costFormula?: string | null;
353
- }
644
+ upTo?: number | null;
645
+ }
354
646
 
647
+ export namespace Tier {
355
648
  /**
356
- * The flat price amount and currency, when applicable
649
+ * Flat price for this tier
357
650
  */
358
- export interface Price {
651
+ export interface FlatPrice {
359
652
  /**
360
653
  * The price amount
361
654
  */
@@ -484,399 +777,136 @@ export namespace ChargeList {
484
777
  }
485
778
 
486
779
  /**
487
- * A single tier within a tiered charge
780
+ * Per-unit price in this tier
488
781
  */
489
- export interface Tier {
490
- /**
491
- * Flat price for this tier
492
- */
493
- flatPrice?: Tier.FlatPrice | null;
494
-
782
+ export interface UnitPrice {
495
783
  /**
496
- * Per-unit price in this tier
497
- */
498
- unitPrice?: Tier.UnitPrice | null;
499
-
500
- /**
501
- * Upper bound of this tier (null for unlimited)
784
+ * The price amount
502
785
  */
503
- upTo?: number | null;
504
- }
786
+ amount: number;
505
787
 
506
- export namespace Tier {
507
788
  /**
508
- * Flat price for this tier
789
+ * ISO 4217 currency code
509
790
  */
510
- export interface FlatPrice {
511
- /**
512
- * The price amount
513
- */
514
- amount: number;
515
-
516
- /**
517
- * ISO 4217 currency code
518
- */
519
- currency:
520
- | 'usd'
521
- | 'aed'
522
- | 'all'
523
- | 'amd'
524
- | 'ang'
525
- | 'aud'
526
- | 'awg'
527
- | 'azn'
528
- | 'bam'
529
- | 'bbd'
530
- | 'bdt'
531
- | 'bgn'
532
- | 'bif'
533
- | 'bmd'
534
- | 'bnd'
535
- | 'bsd'
536
- | 'bwp'
537
- | 'byn'
538
- | 'bzd'
539
- | 'brl'
540
- | 'cad'
541
- | 'cdf'
542
- | 'chf'
543
- | 'cny'
544
- | 'czk'
545
- | 'dkk'
546
- | 'dop'
547
- | 'dzd'
548
- | 'egp'
549
- | 'etb'
550
- | 'eur'
551
- | 'fjd'
552
- | 'gbp'
553
- | 'gel'
554
- | 'gip'
555
- | 'gmd'
556
- | 'gyd'
557
- | 'hkd'
558
- | 'hrk'
559
- | 'htg'
560
- | 'idr'
561
- | 'ils'
562
- | 'inr'
563
- | 'isk'
564
- | 'jmd'
565
- | 'jpy'
566
- | 'kes'
567
- | 'kgs'
568
- | 'khr'
569
- | 'kmf'
570
- | 'krw'
571
- | 'kyd'
572
- | 'kzt'
573
- | 'lbp'
574
- | 'lkr'
575
- | 'lrd'
576
- | 'lsl'
577
- | 'mad'
578
- | 'mdl'
579
- | 'mga'
580
- | 'mkd'
581
- | 'mmk'
582
- | 'mnt'
583
- | 'mop'
584
- | 'mro'
585
- | 'mvr'
586
- | 'mwk'
587
- | 'mxn'
588
- | 'myr'
589
- | 'mzn'
590
- | 'nad'
591
- | 'ngn'
592
- | 'nok'
593
- | 'npr'
594
- | 'nzd'
595
- | 'pgk'
596
- | 'php'
597
- | 'pkr'
598
- | 'pln'
599
- | 'qar'
600
- | 'ron'
601
- | 'rsd'
602
- | 'rub'
603
- | 'rwf'
604
- | 'sar'
605
- | 'sbd'
606
- | 'scr'
607
- | 'sek'
608
- | 'sgd'
609
- | 'sle'
610
- | 'sll'
611
- | 'sos'
612
- | 'szl'
613
- | 'thb'
614
- | 'tjs'
615
- | 'top'
616
- | 'try'
617
- | 'ttd'
618
- | 'tzs'
619
- | 'uah'
620
- | 'uzs'
621
- | 'vnd'
622
- | 'vuv'
623
- | 'wst'
624
- | 'xaf'
625
- | 'xcd'
626
- | 'yer'
627
- | 'zar'
628
- | 'zmw'
629
- | 'clp'
630
- | 'djf'
631
- | 'gnf'
632
- | 'ugx'
633
- | 'pyg'
634
- | 'xof'
635
- | 'xpf';
636
- }
637
-
638
- /**
639
- * Per-unit price in this tier
640
- */
641
- export interface UnitPrice {
642
- /**
643
- * The price amount
644
- */
645
- amount: number;
646
-
647
- /**
648
- * ISO 4217 currency code
649
- */
650
- currency:
651
- | 'usd'
652
- | 'aed'
653
- | 'all'
654
- | 'amd'
655
- | 'ang'
656
- | 'aud'
657
- | 'awg'
658
- | 'azn'
659
- | 'bam'
660
- | 'bbd'
661
- | 'bdt'
662
- | 'bgn'
663
- | 'bif'
664
- | 'bmd'
665
- | 'bnd'
666
- | 'bsd'
667
- | 'bwp'
668
- | 'byn'
669
- | 'bzd'
670
- | 'brl'
671
- | 'cad'
672
- | 'cdf'
673
- | 'chf'
674
- | 'cny'
675
- | 'czk'
676
- | 'dkk'
677
- | 'dop'
678
- | 'dzd'
679
- | 'egp'
680
- | 'etb'
681
- | 'eur'
682
- | 'fjd'
683
- | 'gbp'
684
- | 'gel'
685
- | 'gip'
686
- | 'gmd'
687
- | 'gyd'
688
- | 'hkd'
689
- | 'hrk'
690
- | 'htg'
691
- | 'idr'
692
- | 'ils'
693
- | 'inr'
694
- | 'isk'
695
- | 'jmd'
696
- | 'jpy'
697
- | 'kes'
698
- | 'kgs'
699
- | 'khr'
700
- | 'kmf'
701
- | 'krw'
702
- | 'kyd'
703
- | 'kzt'
704
- | 'lbp'
705
- | 'lkr'
706
- | 'lrd'
707
- | 'lsl'
708
- | 'mad'
709
- | 'mdl'
710
- | 'mga'
711
- | 'mkd'
712
- | 'mmk'
713
- | 'mnt'
714
- | 'mop'
715
- | 'mro'
716
- | 'mvr'
717
- | 'mwk'
718
- | 'mxn'
719
- | 'myr'
720
- | 'mzn'
721
- | 'nad'
722
- | 'ngn'
723
- | 'nok'
724
- | 'npr'
725
- | 'nzd'
726
- | 'pgk'
727
- | 'php'
728
- | 'pkr'
729
- | 'pln'
730
- | 'qar'
731
- | 'ron'
732
- | 'rsd'
733
- | 'rub'
734
- | 'rwf'
735
- | 'sar'
736
- | 'sbd'
737
- | 'scr'
738
- | 'sek'
739
- | 'sgd'
740
- | 'sle'
741
- | 'sll'
742
- | 'sos'
743
- | 'szl'
744
- | 'thb'
745
- | 'tjs'
746
- | 'top'
747
- | 'try'
748
- | 'ttd'
749
- | 'tzs'
750
- | 'uah'
751
- | 'uzs'
752
- | 'vnd'
753
- | 'vuv'
754
- | 'wst'
755
- | 'xaf'
756
- | 'xcd'
757
- | 'yer'
758
- | 'zar'
759
- | 'zmw'
760
- | 'clp'
761
- | 'djf'
762
- | 'gnf'
763
- | 'ugx'
764
- | 'pyg'
765
- | 'xof'
766
- | 'xpf';
767
- }
791
+ currency:
792
+ | 'usd'
793
+ | 'aed'
794
+ | 'all'
795
+ | 'amd'
796
+ | 'ang'
797
+ | 'aud'
798
+ | 'awg'
799
+ | 'azn'
800
+ | 'bam'
801
+ | 'bbd'
802
+ | 'bdt'
803
+ | 'bgn'
804
+ | 'bif'
805
+ | 'bmd'
806
+ | 'bnd'
807
+ | 'bsd'
808
+ | 'bwp'
809
+ | 'byn'
810
+ | 'bzd'
811
+ | 'brl'
812
+ | 'cad'
813
+ | 'cdf'
814
+ | 'chf'
815
+ | 'cny'
816
+ | 'czk'
817
+ | 'dkk'
818
+ | 'dop'
819
+ | 'dzd'
820
+ | 'egp'
821
+ | 'etb'
822
+ | 'eur'
823
+ | 'fjd'
824
+ | 'gbp'
825
+ | 'gel'
826
+ | 'gip'
827
+ | 'gmd'
828
+ | 'gyd'
829
+ | 'hkd'
830
+ | 'hrk'
831
+ | 'htg'
832
+ | 'idr'
833
+ | 'ils'
834
+ | 'inr'
835
+ | 'isk'
836
+ | 'jmd'
837
+ | 'jpy'
838
+ | 'kes'
839
+ | 'kgs'
840
+ | 'khr'
841
+ | 'kmf'
842
+ | 'krw'
843
+ | 'kyd'
844
+ | 'kzt'
845
+ | 'lbp'
846
+ | 'lkr'
847
+ | 'lrd'
848
+ | 'lsl'
849
+ | 'mad'
850
+ | 'mdl'
851
+ | 'mga'
852
+ | 'mkd'
853
+ | 'mmk'
854
+ | 'mnt'
855
+ | 'mop'
856
+ | 'mro'
857
+ | 'mvr'
858
+ | 'mwk'
859
+ | 'mxn'
860
+ | 'myr'
861
+ | 'mzn'
862
+ | 'nad'
863
+ | 'ngn'
864
+ | 'nok'
865
+ | 'npr'
866
+ | 'nzd'
867
+ | 'pgk'
868
+ | 'php'
869
+ | 'pkr'
870
+ | 'pln'
871
+ | 'qar'
872
+ | 'ron'
873
+ | 'rsd'
874
+ | 'rub'
875
+ | 'rwf'
876
+ | 'sar'
877
+ | 'sbd'
878
+ | 'scr'
879
+ | 'sek'
880
+ | 'sgd'
881
+ | 'sle'
882
+ | 'sll'
883
+ | 'sos'
884
+ | 'szl'
885
+ | 'thb'
886
+ | 'tjs'
887
+ | 'top'
888
+ | 'try'
889
+ | 'ttd'
890
+ | 'tzs'
891
+ | 'uah'
892
+ | 'uzs'
893
+ | 'vnd'
894
+ | 'vuv'
895
+ | 'wst'
896
+ | 'xaf'
897
+ | 'xcd'
898
+ | 'yer'
899
+ | 'zar'
900
+ | 'zmw'
901
+ | 'clp'
902
+ | 'djf'
903
+ | 'gnf'
904
+ | 'ugx'
905
+ | 'pyg'
906
+ | 'xof'
907
+ | 'xpf';
768
908
  }
769
909
  }
770
-
771
- /**
772
- * Pagination metadata including cursors for navigating through results
773
- */
774
- export interface Pagination {
775
- /**
776
- * Cursor for fetching the next page of results, or null if no additional pages
777
- * exist
778
- */
779
- next: string | null;
780
-
781
- /**
782
- * Cursor for fetching the previous page of results, or null if at the beginning
783
- */
784
- prev: string | null;
785
- }
786
- }
787
-
788
- /**
789
- * Addon configuration object
790
- */
791
- export interface AddonListResponse {
792
- /**
793
- * The unique identifier for the entity
794
- */
795
- id: string;
796
-
797
- /**
798
- * The unique identifier for the entity in the billing provider
799
- */
800
- billingId: string | null;
801
-
802
- /**
803
- * Timestamp of when the record was created
804
- */
805
- createdAt: string;
806
-
807
- /**
808
- * List of addons the addon is dependant on
809
- */
810
- dependencies: Array<string> | null;
811
-
812
- /**
813
- * The description of the package
814
- */
815
- description: string | null;
816
-
817
- /**
818
- * The display name of the package
819
- */
820
- displayName: string;
821
-
822
- /**
823
- * List of entitlements of the package
824
- */
825
- entitlements: Array<AddonListResponse.Entitlement>;
826
-
827
- /**
828
- * Indicates if the package is the latest version
829
- */
830
- isLatest: boolean | null;
831
-
832
- /**
833
- * The maximum quantity of this addon that can be added to a subscription
834
- */
835
- maxQuantity: number | null;
836
-
837
- /**
838
- * Metadata associated with the entity
839
- */
840
- metadata: { [key: string]: string };
841
-
842
- /**
843
- * The pricing type of the package
844
- */
845
- pricingType: 'FREE' | 'PAID' | 'CUSTOM' | null;
846
-
847
- /**
848
- * The product id of the package
849
- */
850
- productId: string;
851
-
852
- /**
853
- * The status of the package
854
- */
855
- status: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
856
-
857
- /**
858
- * Timestamp of when the record was last updated
859
- */
860
- updatedAt: string;
861
-
862
- /**
863
- * The version number of the package
864
- */
865
- versionNumber: number;
866
- }
867
-
868
- export namespace AddonListResponse {
869
- /**
870
- * Entitlement reference with type and identifier
871
- */
872
- export interface Entitlement {
873
- /**
874
- * The unique identifier for the entity
875
- */
876
- id: string;
877
-
878
- type: 'FEATURE' | 'CREDIT';
879
- }
880
910
  }
881
911
 
882
912
  /**
@@ -2426,12 +2456,12 @@ Addons.Entitlements = Entitlements;
2426
2456
  export declare namespace Addons {
2427
2457
  export {
2428
2458
  type Addon as Addon,
2429
- type ChargeList as ChargeList,
2430
2459
  type AddonListResponse as AddonListResponse,
2460
+ type AddonListChargesResponse as AddonListChargesResponse,
2431
2461
  type AddonPublishResponse as AddonPublishResponse,
2432
2462
  type AddonRemoveDraftResponse as AddonRemoveDraftResponse,
2433
2463
  type AddonListResponsesMyCursorIDPage as AddonListResponsesMyCursorIDPage,
2434
- type ChargeListDataMyCursorIDPage as ChargeListDataMyCursorIDPage,
2464
+ type AddonListChargesResponsesMyCursorIDPage as AddonListChargesResponsesMyCursorIDPage,
2435
2465
  type AddonCreateParams as AddonCreateParams,
2436
2466
  type AddonUpdateParams as AddonUpdateParams,
2437
2467
  type AddonListParams as AddonListParams,