@stigg/typescript 0.1.0-beta.3 → 0.1.0-beta.31

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 (554) hide show
  1. package/CHANGELOG.md +236 -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 +3 -0
  9. package/client.d.mts.map +1 -1
  10. package/client.d.ts +3 -0
  11. package/client.d.ts.map +1 -1
  12. package/client.js +12 -1
  13. package/client.js.map +1 -1
  14. package/client.mjs +12 -1
  15. package/client.mjs.map +1 -1
  16. package/core/api-promise.d.mts.map +1 -1
  17. package/core/api-promise.d.ts.map +1 -1
  18. package/core/api-promise.mjs.map +1 -1
  19. package/core/error.mjs.map +1 -1
  20. package/core/pagination.d.mts.map +1 -1
  21. package/core/pagination.d.ts.map +1 -1
  22. package/core/pagination.mjs.map +1 -1
  23. package/core/resource.d.mts.map +1 -1
  24. package/core/resource.d.ts.map +1 -1
  25. package/core/uploads.d.mts.map +1 -1
  26. package/core/uploads.d.ts.map +1 -1
  27. package/core/uploads.mjs.map +1 -1
  28. package/error.d.mts +1 -0
  29. package/error.d.mts.map +1 -1
  30. package/error.d.ts +1 -0
  31. package/error.d.ts.map +1 -1
  32. package/error.mjs +1 -0
  33. package/error.mjs.map +1 -1
  34. package/index.d.mts.map +1 -1
  35. package/index.d.ts.map +1 -1
  36. package/index.mjs.map +1 -1
  37. package/internal/detect-platform.mjs.map +1 -1
  38. package/internal/headers.mjs.map +1 -1
  39. package/internal/parse.d.mts.map +1 -1
  40. package/internal/parse.d.ts.map +1 -1
  41. package/internal/parse.mjs.map +1 -1
  42. package/internal/qs/formats.d.mts.map +1 -1
  43. package/internal/qs/formats.d.ts.map +1 -1
  44. package/internal/qs/index.d.mts +2 -2
  45. package/internal/qs/index.d.mts.map +1 -1
  46. package/internal/qs/index.d.ts +2 -2
  47. package/internal/qs/index.d.ts.map +1 -1
  48. package/internal/qs/index.mjs.map +1 -1
  49. package/internal/qs/stringify.d.mts.map +1 -1
  50. package/internal/qs/stringify.d.ts.map +1 -1
  51. package/internal/qs/stringify.mjs.map +1 -1
  52. package/internal/qs/utils.d.mts.map +1 -1
  53. package/internal/qs/utils.d.ts.map +1 -1
  54. package/internal/qs/utils.mjs.map +1 -1
  55. package/internal/request-options.d.mts.map +1 -1
  56. package/internal/request-options.d.ts.map +1 -1
  57. package/internal/shims.d.mts +6 -0
  58. package/internal/shims.d.mts.map +1 -1
  59. package/internal/shims.d.ts +6 -0
  60. package/internal/shims.d.ts.map +1 -1
  61. package/internal/to-file.d.mts.map +1 -1
  62. package/internal/to-file.d.ts.map +1 -1
  63. package/internal/to-file.mjs.map +1 -1
  64. package/internal/types.d.mts +4 -4
  65. package/internal/types.d.mts.map +1 -1
  66. package/internal/types.d.ts +4 -4
  67. package/internal/types.d.ts.map +1 -1
  68. package/internal/uploads.d.mts.map +1 -1
  69. package/internal/uploads.d.ts.map +1 -1
  70. package/internal/uploads.mjs.map +1 -1
  71. package/internal/utils/base64.mjs.map +1 -1
  72. package/internal/utils/log.d.mts.map +1 -1
  73. package/internal/utils/log.d.ts.map +1 -1
  74. package/internal/utils/log.mjs.map +1 -1
  75. package/internal/utils/path.mjs.map +1 -1
  76. package/internal/utils/query.mjs.map +1 -1
  77. package/internal/utils/values.mjs.map +1 -1
  78. package/internal/utils.d.mts.map +1 -1
  79. package/internal/utils.d.ts.map +1 -1
  80. package/internal/utils.mjs.map +1 -1
  81. package/package.json +1 -1
  82. package/pagination.d.mts +1 -0
  83. package/pagination.d.mts.map +1 -1
  84. package/pagination.d.ts +1 -0
  85. package/pagination.d.ts.map +1 -1
  86. package/pagination.mjs +1 -0
  87. package/pagination.mjs.map +1 -1
  88. package/resource.d.mts +1 -0
  89. package/resource.d.mts.map +1 -1
  90. package/resource.d.ts +1 -0
  91. package/resource.d.ts.map +1 -1
  92. package/resource.mjs +1 -0
  93. package/resource.mjs.map +1 -1
  94. package/resources/index.d.mts +1 -0
  95. package/resources/index.d.mts.map +1 -1
  96. package/resources/index.d.ts +1 -0
  97. package/resources/index.d.ts.map +1 -1
  98. package/resources/index.js +3 -1
  99. package/resources/index.js.map +1 -1
  100. package/resources/index.mjs +1 -0
  101. package/resources/index.mjs.map +1 -1
  102. package/resources/v1/addons/addons.d.mts +313 -32
  103. package/resources/v1/addons/addons.d.mts.map +1 -1
  104. package/resources/v1/addons/addons.d.ts +313 -32
  105. package/resources/v1/addons/addons.d.ts.map +1 -1
  106. package/resources/v1/addons/addons.js +114 -15
  107. package/resources/v1/addons/addons.js.map +1 -1
  108. package/resources/v1/addons/addons.mjs +114 -15
  109. package/resources/v1/addons/addons.mjs.map +1 -1
  110. package/resources/v1/addons/entitlements.d.mts +92 -5
  111. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  112. package/resources/v1/addons/entitlements.d.ts +92 -5
  113. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  114. package/resources/v1/addons/entitlements.js +49 -8
  115. package/resources/v1/addons/entitlements.js.map +1 -1
  116. package/resources/v1/addons/entitlements.mjs +49 -8
  117. package/resources/v1/addons/entitlements.mjs.map +1 -1
  118. package/resources/v1/addons/index.d.mts +2 -2
  119. package/resources/v1/addons/index.d.mts.map +1 -1
  120. package/resources/v1/addons/index.d.ts +2 -2
  121. package/resources/v1/addons/index.d.ts.map +1 -1
  122. package/resources/v1/addons/index.js.map +1 -1
  123. package/resources/v1/addons/index.mjs.map +1 -1
  124. package/resources/v1/addons.d.mts.map +1 -1
  125. package/resources/v1/addons.d.ts.map +1 -1
  126. package/resources/v1/addons.mjs.map +1 -1
  127. package/resources/v1/coupons.d.mts +80 -20
  128. package/resources/v1/coupons.d.mts.map +1 -1
  129. package/resources/v1/coupons.d.ts +80 -20
  130. package/resources/v1/coupons.d.ts.map +1 -1
  131. package/resources/v1/coupons.js +60 -9
  132. package/resources/v1/coupons.js.map +1 -1
  133. package/resources/v1/coupons.mjs +60 -9
  134. package/resources/v1/coupons.mjs.map +1 -1
  135. package/resources/v1/credits/credits.d.mts +114 -25
  136. package/resources/v1/credits/credits.d.mts.map +1 -1
  137. package/resources/v1/credits/credits.d.ts +114 -25
  138. package/resources/v1/credits/credits.d.ts.map +1 -1
  139. package/resources/v1/credits/credits.js +36 -5
  140. package/resources/v1/credits/credits.js.map +1 -1
  141. package/resources/v1/credits/credits.mjs +36 -5
  142. package/resources/v1/credits/credits.mjs.map +1 -1
  143. package/resources/v1/credits/custom-currencies.d.mts +96 -23
  144. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  145. package/resources/v1/credits/custom-currencies.d.ts +96 -23
  146. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  147. package/resources/v1/credits/custom-currencies.js +76 -12
  148. package/resources/v1/credits/custom-currencies.js.map +1 -1
  149. package/resources/v1/credits/custom-currencies.mjs +76 -12
  150. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  151. package/resources/v1/credits/grants.d.mts +60 -23
  152. package/resources/v1/credits/grants.d.mts.map +1 -1
  153. package/resources/v1/credits/grants.d.ts +60 -23
  154. package/resources/v1/credits/grants.d.ts.map +1 -1
  155. package/resources/v1/credits/grants.js +35 -5
  156. package/resources/v1/credits/grants.js.map +1 -1
  157. package/resources/v1/credits/grants.mjs +35 -5
  158. package/resources/v1/credits/grants.mjs.map +1 -1
  159. package/resources/v1/credits/index.d.mts +2 -2
  160. package/resources/v1/credits/index.d.mts.map +1 -1
  161. package/resources/v1/credits/index.d.ts +2 -2
  162. package/resources/v1/credits/index.d.ts.map +1 -1
  163. package/resources/v1/credits/index.js.map +1 -1
  164. package/resources/v1/credits/index.mjs.map +1 -1
  165. package/resources/v1/credits.d.mts.map +1 -1
  166. package/resources/v1/credits.d.ts.map +1 -1
  167. package/resources/v1/credits.mjs.map +1 -1
  168. package/resources/v1/customers/customers.d.mts +170 -53
  169. package/resources/v1/customers/customers.d.mts.map +1 -1
  170. package/resources/v1/customers/customers.d.ts +170 -53
  171. package/resources/v1/customers/customers.d.ts.map +1 -1
  172. package/resources/v1/customers/customers.js +124 -19
  173. package/resources/v1/customers/customers.js.map +1 -1
  174. package/resources/v1/customers/customers.mjs +124 -19
  175. package/resources/v1/customers/customers.mjs.map +1 -1
  176. package/resources/v1/customers/index.d.mts +2 -2
  177. package/resources/v1/customers/index.d.mts.map +1 -1
  178. package/resources/v1/customers/index.d.ts +2 -2
  179. package/resources/v1/customers/index.d.ts.map +1 -1
  180. package/resources/v1/customers/index.js.map +1 -1
  181. package/resources/v1/customers/index.mjs +1 -1
  182. package/resources/v1/customers/index.mjs.map +1 -1
  183. package/resources/v1/customers/integrations.d.mts +67 -12
  184. package/resources/v1/customers/integrations.d.mts.map +1 -1
  185. package/resources/v1/customers/integrations.d.ts +67 -12
  186. package/resources/v1/customers/integrations.d.ts.map +1 -1
  187. package/resources/v1/customers/integrations.js +57 -9
  188. package/resources/v1/customers/integrations.js.map +1 -1
  189. package/resources/v1/customers/integrations.mjs +57 -9
  190. package/resources/v1/customers/integrations.mjs.map +1 -1
  191. package/resources/v1/customers/payment-method.d.mts +32 -8
  192. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  193. package/resources/v1/customers/payment-method.d.ts +32 -8
  194. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  195. package/resources/v1/customers/payment-method.js +26 -4
  196. package/resources/v1/customers/payment-method.js.map +1 -1
  197. package/resources/v1/customers/payment-method.mjs +26 -4
  198. package/resources/v1/customers/payment-method.mjs.map +1 -1
  199. package/resources/v1/customers/promotional-entitlements.d.mts +40 -7
  200. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  201. package/resources/v1/customers/promotional-entitlements.d.ts +40 -7
  202. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  203. package/resources/v1/customers/promotional-entitlements.js +38 -6
  204. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  205. package/resources/v1/customers/promotional-entitlements.mjs +38 -6
  206. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  207. package/resources/v1/customers.d.mts.map +1 -1
  208. package/resources/v1/customers.d.ts.map +1 -1
  209. package/resources/v1/customers.mjs.map +1 -1
  210. package/resources/v1/events/beta/beta.d.mts +10 -0
  211. package/resources/v1/events/beta/beta.d.mts.map +1 -0
  212. package/resources/v1/events/beta/beta.d.ts +10 -0
  213. package/resources/v1/events/beta/beta.d.ts.map +1 -0
  214. package/resources/v1/events/beta/beta.js +17 -0
  215. package/resources/v1/events/beta/beta.js.map +1 -0
  216. package/resources/v1/events/beta/beta.mjs +12 -0
  217. package/resources/v1/events/beta/beta.mjs.map +1 -0
  218. package/resources/v1/events/beta/customers.d.mts +160 -0
  219. package/resources/v1/events/beta/customers.d.mts.map +1 -0
  220. package/resources/v1/events/beta/customers.d.ts +160 -0
  221. package/resources/v1/events/beta/customers.d.ts.map +1 -0
  222. package/resources/v1/events/beta/customers.js +32 -0
  223. package/resources/v1/events/beta/customers.js.map +1 -0
  224. package/resources/v1/events/beta/customers.mjs +28 -0
  225. package/resources/v1/events/beta/customers.mjs.map +1 -0
  226. package/resources/v1/events/beta/index.d.mts +3 -0
  227. package/resources/v1/events/beta/index.d.mts.map +1 -0
  228. package/resources/v1/events/beta/index.d.ts +3 -0
  229. package/resources/v1/events/beta/index.d.ts.map +1 -0
  230. package/resources/v1/events/beta/index.js +9 -0
  231. package/resources/v1/events/beta/index.js.map +1 -0
  232. package/resources/v1/events/beta/index.mjs +4 -0
  233. package/resources/v1/events/beta/index.mjs.map +1 -0
  234. package/resources/v1/events/beta.d.mts +2 -0
  235. package/resources/v1/events/beta.d.mts.map +1 -0
  236. package/resources/v1/events/beta.d.ts +2 -0
  237. package/resources/v1/events/beta.d.ts.map +1 -0
  238. package/resources/v1/events/beta.js +6 -0
  239. package/resources/v1/events/beta.js.map +1 -0
  240. package/resources/v1/events/beta.mjs +3 -0
  241. package/resources/v1/events/beta.mjs.map +1 -0
  242. package/resources/v1/events/data-export/data-export.d.mts +211 -0
  243. package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
  244. package/resources/v1/events/data-export/data-export.d.ts +211 -0
  245. package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
  246. package/resources/v1/events/data-export/data-export.js +71 -0
  247. package/resources/v1/events/data-export/data-export.js.map +1 -0
  248. package/resources/v1/events/data-export/data-export.mjs +66 -0
  249. package/resources/v1/events/data-export/data-export.mjs.map +1 -0
  250. package/resources/v1/events/data-export/destinations.d.mts +215 -0
  251. package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
  252. package/resources/v1/events/data-export/destinations.d.ts +215 -0
  253. package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
  254. package/resources/v1/events/data-export/destinations.js +46 -0
  255. package/resources/v1/events/data-export/destinations.js.map +1 -0
  256. package/resources/v1/events/data-export/destinations.mjs +42 -0
  257. package/resources/v1/events/data-export/destinations.mjs.map +1 -0
  258. package/resources/v1/events/data-export/index.d.mts +3 -0
  259. package/resources/v1/events/data-export/index.d.mts.map +1 -0
  260. package/resources/v1/events/data-export/index.d.ts +3 -0
  261. package/resources/v1/events/data-export/index.d.ts.map +1 -0
  262. package/resources/v1/events/data-export/index.js +9 -0
  263. package/resources/v1/events/data-export/index.js.map +1 -0
  264. package/resources/v1/events/data-export/index.mjs +4 -0
  265. package/resources/v1/events/data-export/index.mjs.map +1 -0
  266. package/resources/v1/events/data-export.d.mts +2 -0
  267. package/resources/v1/events/data-export.d.mts.map +1 -0
  268. package/resources/v1/events/data-export.d.ts +2 -0
  269. package/resources/v1/events/data-export.d.ts.map +1 -0
  270. package/resources/v1/events/data-export.js +6 -0
  271. package/resources/v1/events/data-export.js.map +1 -0
  272. package/resources/v1/events/data-export.mjs +3 -0
  273. package/resources/v1/events/data-export.mjs.map +1 -0
  274. package/resources/v1/events/events.d.mts +85 -0
  275. package/resources/v1/events/events.d.mts.map +1 -0
  276. package/resources/v1/events/events.d.ts +85 -0
  277. package/resources/v1/events/events.d.ts.map +1 -0
  278. package/resources/v1/events/events.js +43 -0
  279. package/resources/v1/events/events.js.map +1 -0
  280. package/resources/v1/events/events.mjs +38 -0
  281. package/resources/v1/events/events.mjs.map +1 -0
  282. package/resources/v1/events/index.d.mts +4 -0
  283. package/resources/v1/events/index.d.mts.map +1 -0
  284. package/resources/v1/events/index.d.ts +4 -0
  285. package/resources/v1/events/index.d.ts.map +1 -0
  286. package/resources/v1/events/index.js +11 -0
  287. package/resources/v1/events/index.js.map +1 -0
  288. package/resources/v1/events/index.mjs +5 -0
  289. package/resources/v1/events/index.mjs.map +1 -0
  290. package/resources/v1/events.d.mts +1 -65
  291. package/resources/v1/events.d.mts.map +1 -1
  292. package/resources/v1/events.d.ts +1 -65
  293. package/resources/v1/events.d.ts.map +1 -1
  294. package/resources/v1/events.js +2 -15
  295. package/resources/v1/events.js.map +1 -1
  296. package/resources/v1/events.mjs +1 -13
  297. package/resources/v1/events.mjs.map +1 -1
  298. package/resources/v1/features.d.mts +108 -30
  299. package/resources/v1/features.d.mts.map +1 -1
  300. package/resources/v1/features.d.ts +108 -30
  301. package/resources/v1/features.d.ts.map +1 -1
  302. package/resources/v1/features.js +72 -11
  303. package/resources/v1/features.js.map +1 -1
  304. package/resources/v1/features.mjs +72 -11
  305. package/resources/v1/features.mjs.map +1 -1
  306. package/resources/v1/index.d.mts +8 -8
  307. package/resources/v1/index.d.mts.map +1 -1
  308. package/resources/v1/index.d.ts +8 -8
  309. package/resources/v1/index.d.ts.map +1 -1
  310. package/resources/v1/index.js +6 -6
  311. package/resources/v1/index.js.map +1 -1
  312. package/resources/v1/index.mjs +1 -1
  313. package/resources/v1/index.mjs.map +1 -1
  314. package/resources/v1/plans/entitlements.d.mts +92 -5
  315. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  316. package/resources/v1/plans/entitlements.d.ts +92 -5
  317. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  318. package/resources/v1/plans/entitlements.js +49 -8
  319. package/resources/v1/plans/entitlements.js.map +1 -1
  320. package/resources/v1/plans/entitlements.mjs +49 -8
  321. package/resources/v1/plans/entitlements.mjs.map +1 -1
  322. package/resources/v1/plans/index.d.mts +2 -2
  323. package/resources/v1/plans/index.d.mts.map +1 -1
  324. package/resources/v1/plans/index.d.ts +2 -2
  325. package/resources/v1/plans/index.d.ts.map +1 -1
  326. package/resources/v1/plans/index.js.map +1 -1
  327. package/resources/v1/plans/index.mjs.map +1 -1
  328. package/resources/v1/plans/plans.d.mts +496 -32
  329. package/resources/v1/plans/plans.d.mts.map +1 -1
  330. package/resources/v1/plans/plans.d.ts +496 -32
  331. package/resources/v1/plans/plans.d.ts.map +1 -1
  332. package/resources/v1/plans/plans.js +135 -16
  333. package/resources/v1/plans/plans.js.map +1 -1
  334. package/resources/v1/plans/plans.mjs +135 -16
  335. package/resources/v1/plans/plans.mjs.map +1 -1
  336. package/resources/v1/plans.d.mts.map +1 -1
  337. package/resources/v1/plans.d.ts.map +1 -1
  338. package/resources/v1/plans.mjs.map +1 -1
  339. package/resources/v1/products.d.mts +97 -23
  340. package/resources/v1/products.d.mts.map +1 -1
  341. package/resources/v1/products.d.ts +97 -23
  342. package/resources/v1/products.d.ts.map +1 -1
  343. package/resources/v1/products.js +73 -11
  344. package/resources/v1/products.js.map +1 -1
  345. package/resources/v1/products.mjs +73 -11
  346. package/resources/v1/products.mjs.map +1 -1
  347. package/resources/v1/subscriptions/future-update.d.mts +29 -3
  348. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  349. package/resources/v1/subscriptions/future-update.d.ts +29 -3
  350. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  351. package/resources/v1/subscriptions/future-update.js +25 -4
  352. package/resources/v1/subscriptions/future-update.js.map +1 -1
  353. package/resources/v1/subscriptions/future-update.mjs +25 -4
  354. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  355. package/resources/v1/subscriptions/index.d.mts +4 -4
  356. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  357. package/resources/v1/subscriptions/index.d.ts +4 -4
  358. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  359. package/resources/v1/subscriptions/index.js.map +1 -1
  360. package/resources/v1/subscriptions/index.mjs +1 -1
  361. package/resources/v1/subscriptions/index.mjs.map +1 -1
  362. package/resources/v1/subscriptions/invoice.d.mts +15 -2
  363. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  364. package/resources/v1/subscriptions/invoice.d.ts +15 -2
  365. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  366. package/resources/v1/subscriptions/invoice.js +13 -2
  367. package/resources/v1/subscriptions/invoice.js.map +1 -1
  368. package/resources/v1/subscriptions/invoice.mjs +13 -2
  369. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  370. package/resources/v1/subscriptions/subscriptions.d.mts +258 -79
  371. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  372. package/resources/v1/subscriptions/subscriptions.d.ts +258 -79
  373. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  374. package/resources/v1/subscriptions/subscriptions.js +126 -19
  375. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  376. package/resources/v1/subscriptions/subscriptions.mjs +128 -21
  377. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  378. package/resources/v1/subscriptions/usage.d.mts +29 -4
  379. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  380. package/resources/v1/subscriptions/usage.d.ts +29 -4
  381. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  382. package/resources/v1/subscriptions/usage.js +26 -4
  383. package/resources/v1/subscriptions/usage.js.map +1 -1
  384. package/resources/v1/subscriptions/usage.mjs +26 -4
  385. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  386. package/resources/v1/subscriptions.d.mts.map +1 -1
  387. package/resources/v1/subscriptions.d.ts.map +1 -1
  388. package/resources/v1/subscriptions.mjs.map +1 -1
  389. package/resources/v1/usage.d.mts +52 -2
  390. package/resources/v1/usage.d.mts.map +1 -1
  391. package/resources/v1/usage.d.ts +52 -2
  392. package/resources/v1/usage.d.ts.map +1 -1
  393. package/resources/v1/usage.js +26 -4
  394. package/resources/v1/usage.js.map +1 -1
  395. package/resources/v1/usage.mjs +26 -4
  396. package/resources/v1/usage.mjs.map +1 -1
  397. package/resources/v1/v1.d.mts +16 -16
  398. package/resources/v1/v1.d.mts.map +1 -1
  399. package/resources/v1/v1.d.ts +16 -16
  400. package/resources/v1/v1.d.ts.map +1 -1
  401. package/resources/v1/v1.js +2 -2
  402. package/resources/v1/v1.js.map +1 -1
  403. package/resources/v1/v1.mjs +2 -2
  404. package/resources/v1/v1.mjs.map +1 -1
  405. package/resources/v1-beta/customers/assignments.d.mts +245 -0
  406. package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
  407. package/resources/v1-beta/customers/assignments.d.ts +245 -0
  408. package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
  409. package/resources/v1-beta/customers/assignments.js +84 -0
  410. package/resources/v1-beta/customers/assignments.js.map +1 -0
  411. package/resources/v1-beta/customers/assignments.mjs +80 -0
  412. package/resources/v1-beta/customers/assignments.mjs.map +1 -0
  413. package/resources/v1-beta/customers/customers.d.mts +18 -0
  414. package/resources/v1-beta/customers/customers.d.mts.map +1 -0
  415. package/resources/v1-beta/customers/customers.d.ts +18 -0
  416. package/resources/v1-beta/customers/customers.d.ts.map +1 -0
  417. package/resources/v1-beta/customers/customers.js +25 -0
  418. package/resources/v1-beta/customers/customers.js.map +1 -0
  419. package/resources/v1-beta/customers/customers.mjs +20 -0
  420. package/resources/v1-beta/customers/customers.mjs.map +1 -0
  421. package/resources/v1-beta/customers/entities.d.mts +351 -0
  422. package/resources/v1-beta/customers/entities.d.mts.map +1 -0
  423. package/resources/v1-beta/customers/entities.d.ts +351 -0
  424. package/resources/v1-beta/customers/entities.d.ts.map +1 -0
  425. package/resources/v1-beta/customers/entities.js +150 -0
  426. package/resources/v1-beta/customers/entities.js.map +1 -0
  427. package/resources/v1-beta/customers/entities.mjs +146 -0
  428. package/resources/v1-beta/customers/entities.mjs.map +1 -0
  429. package/resources/v1-beta/customers/entitlements.d.mts +261 -0
  430. package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
  431. package/resources/v1-beta/customers/entitlements.d.ts +261 -0
  432. package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
  433. package/resources/v1-beta/customers/entitlements.js +36 -0
  434. package/resources/v1-beta/customers/entitlements.js.map +1 -0
  435. package/resources/v1-beta/customers/entitlements.mjs +32 -0
  436. package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
  437. package/resources/v1-beta/customers/index.d.mts +5 -0
  438. package/resources/v1-beta/customers/index.d.mts.map +1 -0
  439. package/resources/v1-beta/customers/index.d.ts +5 -0
  440. package/resources/v1-beta/customers/index.d.ts.map +1 -0
  441. package/resources/v1-beta/customers/index.js +13 -0
  442. package/resources/v1-beta/customers/index.js.map +1 -0
  443. package/resources/v1-beta/customers/index.mjs +6 -0
  444. package/resources/v1-beta/customers/index.mjs.map +1 -0
  445. package/resources/v1-beta/customers.d.mts +2 -0
  446. package/resources/v1-beta/customers.d.mts.map +1 -0
  447. package/resources/v1-beta/customers.d.ts +2 -0
  448. package/resources/v1-beta/customers.d.ts.map +1 -0
  449. package/resources/v1-beta/customers.js +6 -0
  450. package/resources/v1-beta/customers.js.map +1 -0
  451. package/resources/v1-beta/customers.mjs +3 -0
  452. package/resources/v1-beta/customers.mjs.map +1 -0
  453. package/resources/v1-beta/entity-types.d.mts +165 -0
  454. package/resources/v1-beta/entity-types.d.mts.map +1 -0
  455. package/resources/v1-beta/entity-types.d.ts +165 -0
  456. package/resources/v1-beta/entity-types.d.ts.map +1 -0
  457. package/resources/v1-beta/entity-types.js +75 -0
  458. package/resources/v1-beta/entity-types.js.map +1 -0
  459. package/resources/v1-beta/entity-types.mjs +71 -0
  460. package/resources/v1-beta/entity-types.mjs.map +1 -0
  461. package/resources/v1-beta/index.d.mts +4 -0
  462. package/resources/v1-beta/index.d.mts.map +1 -0
  463. package/resources/v1-beta/index.d.ts +4 -0
  464. package/resources/v1-beta/index.d.ts.map +1 -0
  465. package/resources/v1-beta/index.js +11 -0
  466. package/resources/v1-beta/index.js.map +1 -0
  467. package/resources/v1-beta/index.mjs +5 -0
  468. package/resources/v1-beta/index.mjs.map +1 -0
  469. package/resources/v1-beta/v1-beta.d.mts +14 -0
  470. package/resources/v1-beta/v1-beta.d.mts.map +1 -0
  471. package/resources/v1-beta/v1-beta.d.ts +14 -0
  472. package/resources/v1-beta/v1-beta.d.ts.map +1 -0
  473. package/resources/v1-beta/v1-beta.js +21 -0
  474. package/resources/v1-beta/v1-beta.js.map +1 -0
  475. package/resources/v1-beta/v1-beta.mjs +16 -0
  476. package/resources/v1-beta/v1-beta.mjs.map +1 -0
  477. package/resources/v1-beta.d.mts +2 -0
  478. package/resources/v1-beta.d.mts.map +1 -0
  479. package/resources/v1-beta.d.ts +2 -0
  480. package/resources/v1-beta.d.ts.map +1 -0
  481. package/resources/v1-beta.js +6 -0
  482. package/resources/v1-beta.js.map +1 -0
  483. package/resources/v1-beta.mjs +3 -0
  484. package/resources/v1-beta.mjs.map +1 -0
  485. package/resources/v1.d.mts.map +1 -1
  486. package/resources/v1.d.ts.map +1 -1
  487. package/resources/v1.mjs.map +1 -1
  488. package/resources.d.mts.map +1 -1
  489. package/resources.d.ts.map +1 -1
  490. package/resources.mjs.map +1 -1
  491. package/src/client.ts +14 -1
  492. package/src/resources/index.ts +1 -0
  493. package/src/resources/v1/addons/addons.ts +849 -36
  494. package/src/resources/v1/addons/entitlements.ts +158 -10
  495. package/src/resources/v1/addons/index.ts +8 -0
  496. package/src/resources/v1/coupons.ts +154 -23
  497. package/src/resources/v1/credits/credits.ts +167 -23
  498. package/src/resources/v1/credits/custom-currencies.ts +188 -30
  499. package/src/resources/v1/credits/grants.ts +102 -24
  500. package/src/resources/v1/credits/index.ts +4 -0
  501. package/src/resources/v1/customers/customers.ts +333 -62
  502. package/src/resources/v1/customers/index.ts +8 -1
  503. package/src/resources/v1/customers/integrations.ts +137 -18
  504. package/src/resources/v1/customers/payment-method.ts +69 -10
  505. package/src/resources/v1/customers/promotional-entitlements.ts +82 -11
  506. package/src/resources/v1/events/beta/beta.ts +19 -0
  507. package/src/resources/v1/events/beta/customers.ts +212 -0
  508. package/src/resources/v1/events/beta/index.ts +8 -0
  509. package/src/resources/v1/events/beta.ts +3 -0
  510. package/src/resources/v1/events/data-export/data-export.ts +312 -0
  511. package/src/resources/v1/events/data-export/destinations.ts +290 -0
  512. package/src/resources/v1/events/data-export/index.ts +18 -0
  513. package/src/resources/v1/events/data-export.ts +3 -0
  514. package/src/resources/v1/events/events.ts +132 -0
  515. package/src/resources/v1/events/index.ts +13 -0
  516. package/src/resources/v1/events.ts +1 -75
  517. package/src/resources/v1/features.ts +204 -34
  518. package/src/resources/v1/index.ts +29 -1
  519. package/src/resources/v1/plans/entitlements.ts +158 -10
  520. package/src/resources/v1/plans/index.ts +11 -0
  521. package/src/resources/v1/plans/plans.ts +1440 -37
  522. package/src/resources/v1/products.ts +189 -27
  523. package/src/resources/v1/subscriptions/future-update.ts +68 -5
  524. package/src/resources/v1/subscriptions/index.ts +9 -2
  525. package/src/resources/v1/subscriptions/invoice.ts +36 -3
  526. package/src/resources/v1/subscriptions/subscriptions.ts +429 -86
  527. package/src/resources/v1/subscriptions/usage.ts +61 -5
  528. package/src/resources/v1/usage.ts +86 -5
  529. package/src/resources/v1/v1.ts +58 -2
  530. package/src/resources/v1-beta/customers/assignments.ts +331 -0
  531. package/src/resources/v1-beta/customers/customers.ts +71 -0
  532. package/src/resources/v1-beta/customers/entities.ts +492 -0
  533. package/src/resources/v1-beta/customers/entitlements.ts +366 -0
  534. package/src/resources/v1-beta/customers/index.ts +26 -0
  535. package/src/resources/v1-beta/customers.ts +3 -0
  536. package/src/resources/v1-beta/entity-types.ts +225 -0
  537. package/src/resources/v1-beta/index.ts +12 -0
  538. package/src/resources/v1-beta/v1-beta.ts +35 -0
  539. package/src/resources/v1-beta.ts +3 -0
  540. package/src/version.ts +1 -1
  541. package/uploads.d.mts +1 -0
  542. package/uploads.d.mts.map +1 -1
  543. package/uploads.d.ts +1 -0
  544. package/uploads.d.ts.map +1 -1
  545. package/uploads.mjs +1 -0
  546. package/uploads.mjs.map +1 -1
  547. package/version.d.mts +1 -1
  548. package/version.d.mts.map +1 -1
  549. package/version.d.ts +1 -1
  550. package/version.d.ts.map +1 -1
  551. package/version.js +1 -1
  552. package/version.js.map +1 -1
  553. package/version.mjs +1 -1
  554. package/version.mjs.map +1 -1
@@ -6,6 +6,7 @@ import {
6
6
  EntitlementCreateParams,
7
7
  EntitlementCreateResponse,
8
8
  EntitlementDeleteParams,
9
+ EntitlementListParams,
9
10
  EntitlementListResponse,
10
11
  EntitlementUpdateParams,
11
12
  Entitlements,
@@ -13,6 +14,7 @@ import {
13
14
  } from './entitlements';
14
15
  import { APIPromise } from '../../../core/api-promise';
15
16
  import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
17
+ import { buildHeaders } from '../../../internal/headers';
16
18
  import { RequestOptions } from '../../../internal/request-options';
17
19
  import { path } from '../../../internal/utils/path';
18
20
 
@@ -25,67 +27,223 @@ export class Plans extends APIResource {
25
27
  /**
26
28
  * Creates a new plan in draft status.
27
29
  */
28
- create(body: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
29
- return this._client.post('/api/v1/plans', { body, ...options });
30
+ create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
31
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
32
+ return this._client.post('/api/v1/plans', {
33
+ body,
34
+ ...options,
35
+ headers: buildHeaders([
36
+ {
37
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
38
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
39
+ },
40
+ options?.headers,
41
+ ]),
42
+ });
30
43
  }
31
44
 
32
45
  /**
33
46
  * Retrieves a plan by its unique identifier, including entitlements and pricing
34
47
  * details.
35
48
  */
36
- retrieve(id: string, options?: RequestOptions): APIPromise<Plan> {
37
- return this._client.get(path`/api/v1/plans/${id}`, options);
49
+ retrieve(
50
+ id: string,
51
+ params: PlanRetrieveParams | null | undefined = {},
52
+ options?: RequestOptions,
53
+ ): APIPromise<Plan> {
54
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
55
+ return this._client.get(path`/api/v1/plans/${id}`, {
56
+ ...options,
57
+ headers: buildHeaders([
58
+ {
59
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
60
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
61
+ },
62
+ options?.headers,
63
+ ]),
64
+ });
38
65
  }
39
66
 
40
67
  /**
41
68
  * Updates an existing plan's properties such as display name, description, and
42
69
  * metadata.
43
70
  */
44
- update(id: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
45
- return this._client.patch(path`/api/v1/plans/${id}`, { body, ...options });
71
+ update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
72
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
73
+ return this._client.patch(path`/api/v1/plans/${id}`, {
74
+ body,
75
+ ...options,
76
+ headers: buildHeaders([
77
+ {
78
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
79
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
80
+ },
81
+ options?.headers,
82
+ ]),
83
+ });
46
84
  }
47
85
 
48
86
  /**
49
87
  * Retrieves a paginated list of plans in the environment.
50
88
  */
51
89
  list(
52
- query: PlanListParams | null | undefined = {},
90
+ params: PlanListParams | null | undefined = {},
53
91
  options?: RequestOptions,
54
92
  ): PagePromise<PlanListResponsesMyCursorIDPage, PlanListResponse> {
55
- return this._client.getAPIList('/api/v1/plans', MyCursorIDPage<PlanListResponse>, { query, ...options });
93
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
94
+ return this._client.getAPIList('/api/v1/plans', MyCursorIDPage<PlanListResponse>, {
95
+ query,
96
+ ...options,
97
+ headers: buildHeaders([
98
+ {
99
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
100
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
101
+ },
102
+ options?.headers,
103
+ ]),
104
+ });
56
105
  }
57
106
 
58
107
  /**
59
108
  * Archives a plan, preventing it from being used in new subscriptions.
60
109
  */
61
- archive(id: string, options?: RequestOptions): APIPromise<Plan> {
62
- return this._client.post(path`/api/v1/plans/${id}/archive`, options);
110
+ archive(
111
+ id: string,
112
+ params: PlanArchiveParams | null | undefined = {},
113
+ options?: RequestOptions,
114
+ ): APIPromise<Plan> {
115
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
116
+ return this._client.post(path`/api/v1/plans/${id}/archive`, {
117
+ ...options,
118
+ headers: buildHeaders([
119
+ {
120
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
121
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
122
+ },
123
+ options?.headers,
124
+ ]),
125
+ });
63
126
  }
64
127
 
65
128
  /**
66
129
  * Creates a draft version of an existing plan for modification before publishing.
67
130
  */
68
- createDraft(id: string, options?: RequestOptions): APIPromise<Plan> {
69
- return this._client.post(path`/api/v1/plans/${id}/draft`, options);
131
+ createDraft(
132
+ id: string,
133
+ params: PlanCreateDraftParams | null | undefined = {},
134
+ options?: RequestOptions,
135
+ ): APIPromise<Plan> {
136
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
137
+ return this._client.post(path`/api/v1/plans/${id}/draft`, {
138
+ ...options,
139
+ headers: buildHeaders([
140
+ {
141
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
142
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
143
+ },
144
+ options?.headers,
145
+ ]),
146
+ });
147
+ }
148
+
149
+ /**
150
+ * Retrieves the list of charges configured on a plan.
151
+ */
152
+ listCharges(
153
+ id: string,
154
+ params: PlanListChargesParams | null | undefined = {},
155
+ options?: RequestOptions,
156
+ ): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse> {
157
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
158
+ return this._client.getAPIList(
159
+ path`/api/v1/plans/${id}/charges`,
160
+ MyCursorIDPage<PlanListChargesResponse>,
161
+ {
162
+ query,
163
+ ...options,
164
+ headers: buildHeaders([
165
+ {
166
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
167
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
168
+ },
169
+ options?.headers,
170
+ ]),
171
+ },
172
+ );
173
+ }
174
+
175
+ /**
176
+ * Retrieves the list of overage charges configured on a plan.
177
+ */
178
+ listOverageCharges(
179
+ id: string,
180
+ params: PlanListOverageChargesParams | null | undefined = {},
181
+ options?: RequestOptions,
182
+ ): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse> {
183
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
184
+ return this._client.getAPIList(
185
+ path`/api/v1/plans/${id}/overage-charges`,
186
+ MyCursorIDPage<PlanListOverageChargesResponse>,
187
+ {
188
+ query,
189
+ ...options,
190
+ headers: buildHeaders([
191
+ {
192
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
193
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
194
+ },
195
+ options?.headers,
196
+ ]),
197
+ },
198
+ );
70
199
  }
71
200
 
72
201
  /**
73
202
  * Publishes a draft plan, making it available for use in subscriptions.
74
203
  */
75
- publish(id: string, body: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
76
- return this._client.post(path`/api/v1/plans/${id}/publish`, { body, ...options });
204
+ publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
205
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
206
+ return this._client.post(path`/api/v1/plans/${id}/publish`, {
207
+ body,
208
+ ...options,
209
+ headers: buildHeaders([
210
+ {
211
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
212
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
213
+ },
214
+ options?.headers,
215
+ ]),
216
+ });
77
217
  }
78
218
 
79
219
  /**
80
220
  * Removes a draft version of a plan.
81
221
  */
82
- removeDraft(id: string, options?: RequestOptions): APIPromise<PlanRemoveDraftResponse> {
83
- return this._client.delete(path`/api/v1/plans/${id}/draft`, options);
222
+ removeDraft(
223
+ id: string,
224
+ params: PlanRemoveDraftParams | null | undefined = {},
225
+ options?: RequestOptions,
226
+ ): APIPromise<PlanRemoveDraftResponse> {
227
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
228
+ return this._client.delete(path`/api/v1/plans/${id}/draft`, {
229
+ ...options,
230
+ headers: buildHeaders([
231
+ {
232
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
233
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
234
+ },
235
+ options?.headers,
236
+ ]),
237
+ });
84
238
  }
85
239
  }
86
240
 
87
241
  export type PlanListResponsesMyCursorIDPage = MyCursorIDPage<PlanListResponse>;
88
242
 
243
+ export type PlanListChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListChargesResponse>;
244
+
245
+ export type PlanListOverageChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListOverageChargesResponse>;
246
+
89
247
  /**
90
248
  * Response object
91
249
  */
@@ -374,6 +532,1094 @@ export namespace PlanListResponse {
374
532
  }
375
533
  }
376
534
 
535
+ /**
536
+ * A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
537
+ * billingModel, billingCadence, billingCountryCode) combination. Plans and addons
538
+ * own many of these — one per currency / billing period / feature.
539
+ */
540
+ export interface PlanListChargesResponse {
541
+ /**
542
+ * Unique identifier of the charge
543
+ */
544
+ id: string;
545
+
546
+ /**
547
+ * The billing cadence (RECURRING or ONE_OFF)
548
+ */
549
+ billingCadence: 'RECURRING' | 'ONE_OFF';
550
+
551
+ /**
552
+ * The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
553
+ */
554
+ billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
555
+
556
+ /**
557
+ * The billing period (MONTHLY or ANNUALLY)
558
+ */
559
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
560
+
561
+ /**
562
+ * Timestamp when the charge was created
563
+ */
564
+ createdAt: string;
565
+
566
+ /**
567
+ * ISO country code for localized pricing, if any
568
+ */
569
+ billingCountryCode?: string | null;
570
+
571
+ /**
572
+ * Identifier in the external billing integration (e.g. Stripe price id), if any
573
+ */
574
+ billingId?: string | null;
575
+
576
+ /**
577
+ * Block size for usage-based pricing
578
+ */
579
+ blockSize?: number | null;
580
+
581
+ /**
582
+ * When credits are granted (for credit-based pricing)
583
+ */
584
+ creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
585
+
586
+ /**
587
+ * Credit rate configuration for credit-based pricing
588
+ */
589
+ creditRate?: PlanListChargesResponse.CreditRate | null;
590
+
591
+ /**
592
+ * Identifier in the linked CRM, if any
593
+ */
594
+ crmId?: string | null;
595
+
596
+ /**
597
+ * Deep link to the charge in the linked CRM, if any
598
+ */
599
+ crmLinkUrl?: string | null;
600
+
601
+ /**
602
+ * The feature this charge meters, if metered
603
+ */
604
+ featureId?: string | null;
605
+
606
+ /**
607
+ * Maximum unit quantity that can be purchased
608
+ */
609
+ maxUnitQuantity?: number | null;
610
+
611
+ /**
612
+ * Minimum unit quantity that can be purchased
613
+ */
614
+ minUnitQuantity?: number | null;
615
+
616
+ /**
617
+ * The flat price amount and currency, when applicable
618
+ */
619
+ price?: PlanListChargesResponse.Price | null;
620
+
621
+ /**
622
+ * Tiered pricing rows when the charge is tiered
623
+ */
624
+ tiers?: Array<PlanListChargesResponse.Tier> | null;
625
+
626
+ /**
627
+ * Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
628
+ */
629
+ tiersMode?: 'VOLUME' | 'GRADUATED' | null;
630
+
631
+ /**
632
+ * Custom currency identifier for top-up pricing, if any
633
+ */
634
+ topUpCustomCurrencyId?: string | null;
635
+
636
+ /**
637
+ * True if this charge is referenced by at least one subscription
638
+ */
639
+ usedInSubscriptions?: boolean | null;
640
+ }
641
+
642
+ export namespace PlanListChargesResponse {
643
+ /**
644
+ * Credit rate configuration for credit-based pricing
645
+ */
646
+ export interface CreditRate {
647
+ /**
648
+ * Credit rate amount
649
+ */
650
+ amount: number;
651
+
652
+ /**
653
+ * Custom currency identifier
654
+ */
655
+ currencyId: string;
656
+
657
+ /**
658
+ * Optional cost formula expression
659
+ */
660
+ costFormula?: string | null;
661
+ }
662
+
663
+ /**
664
+ * The flat price amount and currency, when applicable
665
+ */
666
+ export interface Price {
667
+ /**
668
+ * The price amount
669
+ */
670
+ amount: number;
671
+
672
+ /**
673
+ * ISO 4217 currency code
674
+ */
675
+ currency:
676
+ | 'usd'
677
+ | 'aed'
678
+ | 'all'
679
+ | 'amd'
680
+ | 'ang'
681
+ | 'aud'
682
+ | 'awg'
683
+ | 'azn'
684
+ | 'bam'
685
+ | 'bbd'
686
+ | 'bdt'
687
+ | 'bgn'
688
+ | 'bif'
689
+ | 'bmd'
690
+ | 'bnd'
691
+ | 'bsd'
692
+ | 'bwp'
693
+ | 'byn'
694
+ | 'bzd'
695
+ | 'brl'
696
+ | 'cad'
697
+ | 'cdf'
698
+ | 'chf'
699
+ | 'cny'
700
+ | 'czk'
701
+ | 'dkk'
702
+ | 'dop'
703
+ | 'dzd'
704
+ | 'egp'
705
+ | 'etb'
706
+ | 'eur'
707
+ | 'fjd'
708
+ | 'gbp'
709
+ | 'gel'
710
+ | 'gip'
711
+ | 'gmd'
712
+ | 'gyd'
713
+ | 'hkd'
714
+ | 'hrk'
715
+ | 'htg'
716
+ | 'idr'
717
+ | 'ils'
718
+ | 'inr'
719
+ | 'isk'
720
+ | 'jmd'
721
+ | 'jpy'
722
+ | 'kes'
723
+ | 'kgs'
724
+ | 'khr'
725
+ | 'kmf'
726
+ | 'krw'
727
+ | 'kyd'
728
+ | 'kzt'
729
+ | 'lbp'
730
+ | 'lkr'
731
+ | 'lrd'
732
+ | 'lsl'
733
+ | 'mad'
734
+ | 'mdl'
735
+ | 'mga'
736
+ | 'mkd'
737
+ | 'mmk'
738
+ | 'mnt'
739
+ | 'mop'
740
+ | 'mro'
741
+ | 'mvr'
742
+ | 'mwk'
743
+ | 'mxn'
744
+ | 'myr'
745
+ | 'mzn'
746
+ | 'nad'
747
+ | 'ngn'
748
+ | 'nok'
749
+ | 'npr'
750
+ | 'nzd'
751
+ | 'pgk'
752
+ | 'php'
753
+ | 'pkr'
754
+ | 'pln'
755
+ | 'qar'
756
+ | 'ron'
757
+ | 'rsd'
758
+ | 'rub'
759
+ | 'rwf'
760
+ | 'sar'
761
+ | 'sbd'
762
+ | 'scr'
763
+ | 'sek'
764
+ | 'sgd'
765
+ | 'sle'
766
+ | 'sll'
767
+ | 'sos'
768
+ | 'szl'
769
+ | 'thb'
770
+ | 'tjs'
771
+ | 'top'
772
+ | 'try'
773
+ | 'ttd'
774
+ | 'tzs'
775
+ | 'uah'
776
+ | 'uzs'
777
+ | 'vnd'
778
+ | 'vuv'
779
+ | 'wst'
780
+ | 'xaf'
781
+ | 'xcd'
782
+ | 'yer'
783
+ | 'zar'
784
+ | 'zmw'
785
+ | 'clp'
786
+ | 'djf'
787
+ | 'gnf'
788
+ | 'ugx'
789
+ | 'pyg'
790
+ | 'xof'
791
+ | 'xpf';
792
+ }
793
+
794
+ /**
795
+ * A single tier within a tiered charge
796
+ */
797
+ export interface Tier {
798
+ /**
799
+ * Flat price for this tier
800
+ */
801
+ flatPrice?: Tier.FlatPrice | null;
802
+
803
+ /**
804
+ * Per-unit price in this tier
805
+ */
806
+ unitPrice?: Tier.UnitPrice | null;
807
+
808
+ /**
809
+ * Upper bound of this tier (null for unlimited)
810
+ */
811
+ upTo?: number | null;
812
+ }
813
+
814
+ export namespace Tier {
815
+ /**
816
+ * Flat price for this tier
817
+ */
818
+ export interface FlatPrice {
819
+ /**
820
+ * The price amount
821
+ */
822
+ amount: number;
823
+
824
+ /**
825
+ * ISO 4217 currency code
826
+ */
827
+ currency:
828
+ | 'usd'
829
+ | 'aed'
830
+ | 'all'
831
+ | 'amd'
832
+ | 'ang'
833
+ | 'aud'
834
+ | 'awg'
835
+ | 'azn'
836
+ | 'bam'
837
+ | 'bbd'
838
+ | 'bdt'
839
+ | 'bgn'
840
+ | 'bif'
841
+ | 'bmd'
842
+ | 'bnd'
843
+ | 'bsd'
844
+ | 'bwp'
845
+ | 'byn'
846
+ | 'bzd'
847
+ | 'brl'
848
+ | 'cad'
849
+ | 'cdf'
850
+ | 'chf'
851
+ | 'cny'
852
+ | 'czk'
853
+ | 'dkk'
854
+ | 'dop'
855
+ | 'dzd'
856
+ | 'egp'
857
+ | 'etb'
858
+ | 'eur'
859
+ | 'fjd'
860
+ | 'gbp'
861
+ | 'gel'
862
+ | 'gip'
863
+ | 'gmd'
864
+ | 'gyd'
865
+ | 'hkd'
866
+ | 'hrk'
867
+ | 'htg'
868
+ | 'idr'
869
+ | 'ils'
870
+ | 'inr'
871
+ | 'isk'
872
+ | 'jmd'
873
+ | 'jpy'
874
+ | 'kes'
875
+ | 'kgs'
876
+ | 'khr'
877
+ | 'kmf'
878
+ | 'krw'
879
+ | 'kyd'
880
+ | 'kzt'
881
+ | 'lbp'
882
+ | 'lkr'
883
+ | 'lrd'
884
+ | 'lsl'
885
+ | 'mad'
886
+ | 'mdl'
887
+ | 'mga'
888
+ | 'mkd'
889
+ | 'mmk'
890
+ | 'mnt'
891
+ | 'mop'
892
+ | 'mro'
893
+ | 'mvr'
894
+ | 'mwk'
895
+ | 'mxn'
896
+ | 'myr'
897
+ | 'mzn'
898
+ | 'nad'
899
+ | 'ngn'
900
+ | 'nok'
901
+ | 'npr'
902
+ | 'nzd'
903
+ | 'pgk'
904
+ | 'php'
905
+ | 'pkr'
906
+ | 'pln'
907
+ | 'qar'
908
+ | 'ron'
909
+ | 'rsd'
910
+ | 'rub'
911
+ | 'rwf'
912
+ | 'sar'
913
+ | 'sbd'
914
+ | 'scr'
915
+ | 'sek'
916
+ | 'sgd'
917
+ | 'sle'
918
+ | 'sll'
919
+ | 'sos'
920
+ | 'szl'
921
+ | 'thb'
922
+ | 'tjs'
923
+ | 'top'
924
+ | 'try'
925
+ | 'ttd'
926
+ | 'tzs'
927
+ | 'uah'
928
+ | 'uzs'
929
+ | 'vnd'
930
+ | 'vuv'
931
+ | 'wst'
932
+ | 'xaf'
933
+ | 'xcd'
934
+ | 'yer'
935
+ | 'zar'
936
+ | 'zmw'
937
+ | 'clp'
938
+ | 'djf'
939
+ | 'gnf'
940
+ | 'ugx'
941
+ | 'pyg'
942
+ | 'xof'
943
+ | 'xpf';
944
+ }
945
+
946
+ /**
947
+ * Per-unit price in this tier
948
+ */
949
+ export interface UnitPrice {
950
+ /**
951
+ * The price amount
952
+ */
953
+ amount: number;
954
+
955
+ /**
956
+ * ISO 4217 currency code
957
+ */
958
+ currency:
959
+ | 'usd'
960
+ | 'aed'
961
+ | 'all'
962
+ | 'amd'
963
+ | 'ang'
964
+ | 'aud'
965
+ | 'awg'
966
+ | 'azn'
967
+ | 'bam'
968
+ | 'bbd'
969
+ | 'bdt'
970
+ | 'bgn'
971
+ | 'bif'
972
+ | 'bmd'
973
+ | 'bnd'
974
+ | 'bsd'
975
+ | 'bwp'
976
+ | 'byn'
977
+ | 'bzd'
978
+ | 'brl'
979
+ | 'cad'
980
+ | 'cdf'
981
+ | 'chf'
982
+ | 'cny'
983
+ | 'czk'
984
+ | 'dkk'
985
+ | 'dop'
986
+ | 'dzd'
987
+ | 'egp'
988
+ | 'etb'
989
+ | 'eur'
990
+ | 'fjd'
991
+ | 'gbp'
992
+ | 'gel'
993
+ | 'gip'
994
+ | 'gmd'
995
+ | 'gyd'
996
+ | 'hkd'
997
+ | 'hrk'
998
+ | 'htg'
999
+ | 'idr'
1000
+ | 'ils'
1001
+ | 'inr'
1002
+ | 'isk'
1003
+ | 'jmd'
1004
+ | 'jpy'
1005
+ | 'kes'
1006
+ | 'kgs'
1007
+ | 'khr'
1008
+ | 'kmf'
1009
+ | 'krw'
1010
+ | 'kyd'
1011
+ | 'kzt'
1012
+ | 'lbp'
1013
+ | 'lkr'
1014
+ | 'lrd'
1015
+ | 'lsl'
1016
+ | 'mad'
1017
+ | 'mdl'
1018
+ | 'mga'
1019
+ | 'mkd'
1020
+ | 'mmk'
1021
+ | 'mnt'
1022
+ | 'mop'
1023
+ | 'mro'
1024
+ | 'mvr'
1025
+ | 'mwk'
1026
+ | 'mxn'
1027
+ | 'myr'
1028
+ | 'mzn'
1029
+ | 'nad'
1030
+ | 'ngn'
1031
+ | 'nok'
1032
+ | 'npr'
1033
+ | 'nzd'
1034
+ | 'pgk'
1035
+ | 'php'
1036
+ | 'pkr'
1037
+ | 'pln'
1038
+ | 'qar'
1039
+ | 'ron'
1040
+ | 'rsd'
1041
+ | 'rub'
1042
+ | 'rwf'
1043
+ | 'sar'
1044
+ | 'sbd'
1045
+ | 'scr'
1046
+ | 'sek'
1047
+ | 'sgd'
1048
+ | 'sle'
1049
+ | 'sll'
1050
+ | 'sos'
1051
+ | 'szl'
1052
+ | 'thb'
1053
+ | 'tjs'
1054
+ | 'top'
1055
+ | 'try'
1056
+ | 'ttd'
1057
+ | 'tzs'
1058
+ | 'uah'
1059
+ | 'uzs'
1060
+ | 'vnd'
1061
+ | 'vuv'
1062
+ | 'wst'
1063
+ | 'xaf'
1064
+ | 'xcd'
1065
+ | 'yer'
1066
+ | 'zar'
1067
+ | 'zmw'
1068
+ | 'clp'
1069
+ | 'djf'
1070
+ | 'gnf'
1071
+ | 'ugx'
1072
+ | 'pyg'
1073
+ | 'xof'
1074
+ | 'xpf';
1075
+ }
1076
+ }
1077
+ }
1078
+
1079
+ /**
1080
+ * A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
1081
+ * billingModel, billingCadence, billingCountryCode) combination. Plans and addons
1082
+ * own many of these — one per currency / billing period / feature.
1083
+ */
1084
+ export interface PlanListOverageChargesResponse {
1085
+ /**
1086
+ * Unique identifier of the charge
1087
+ */
1088
+ id: string;
1089
+
1090
+ /**
1091
+ * The billing cadence (RECURRING or ONE_OFF)
1092
+ */
1093
+ billingCadence: 'RECURRING' | 'ONE_OFF';
1094
+
1095
+ /**
1096
+ * The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
1097
+ */
1098
+ billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
1099
+
1100
+ /**
1101
+ * The billing period (MONTHLY or ANNUALLY)
1102
+ */
1103
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
1104
+
1105
+ /**
1106
+ * Timestamp when the charge was created
1107
+ */
1108
+ createdAt: string;
1109
+
1110
+ /**
1111
+ * ISO country code for localized pricing, if any
1112
+ */
1113
+ billingCountryCode?: string | null;
1114
+
1115
+ /**
1116
+ * Identifier in the external billing integration (e.g. Stripe price id), if any
1117
+ */
1118
+ billingId?: string | null;
1119
+
1120
+ /**
1121
+ * Block size for usage-based pricing
1122
+ */
1123
+ blockSize?: number | null;
1124
+
1125
+ /**
1126
+ * When credits are granted (for credit-based pricing)
1127
+ */
1128
+ creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
1129
+
1130
+ /**
1131
+ * Credit rate configuration for credit-based pricing
1132
+ */
1133
+ creditRate?: PlanListOverageChargesResponse.CreditRate | null;
1134
+
1135
+ /**
1136
+ * Identifier in the linked CRM, if any
1137
+ */
1138
+ crmId?: string | null;
1139
+
1140
+ /**
1141
+ * Deep link to the charge in the linked CRM, if any
1142
+ */
1143
+ crmLinkUrl?: string | null;
1144
+
1145
+ /**
1146
+ * The feature this charge meters, if metered
1147
+ */
1148
+ featureId?: string | null;
1149
+
1150
+ /**
1151
+ * Maximum unit quantity that can be purchased
1152
+ */
1153
+ maxUnitQuantity?: number | null;
1154
+
1155
+ /**
1156
+ * Minimum unit quantity that can be purchased
1157
+ */
1158
+ minUnitQuantity?: number | null;
1159
+
1160
+ /**
1161
+ * The flat price amount and currency, when applicable
1162
+ */
1163
+ price?: PlanListOverageChargesResponse.Price | null;
1164
+
1165
+ /**
1166
+ * Tiered pricing rows when the charge is tiered
1167
+ */
1168
+ tiers?: Array<PlanListOverageChargesResponse.Tier> | null;
1169
+
1170
+ /**
1171
+ * Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
1172
+ */
1173
+ tiersMode?: 'VOLUME' | 'GRADUATED' | null;
1174
+
1175
+ /**
1176
+ * Custom currency identifier for top-up pricing, if any
1177
+ */
1178
+ topUpCustomCurrencyId?: string | null;
1179
+
1180
+ /**
1181
+ * True if this charge is referenced by at least one subscription
1182
+ */
1183
+ usedInSubscriptions?: boolean | null;
1184
+ }
1185
+
1186
+ export namespace PlanListOverageChargesResponse {
1187
+ /**
1188
+ * Credit rate configuration for credit-based pricing
1189
+ */
1190
+ export interface CreditRate {
1191
+ /**
1192
+ * Credit rate amount
1193
+ */
1194
+ amount: number;
1195
+
1196
+ /**
1197
+ * Custom currency identifier
1198
+ */
1199
+ currencyId: string;
1200
+
1201
+ /**
1202
+ * Optional cost formula expression
1203
+ */
1204
+ costFormula?: string | null;
1205
+ }
1206
+
1207
+ /**
1208
+ * The flat price amount and currency, when applicable
1209
+ */
1210
+ export interface Price {
1211
+ /**
1212
+ * The price amount
1213
+ */
1214
+ amount: number;
1215
+
1216
+ /**
1217
+ * ISO 4217 currency code
1218
+ */
1219
+ currency:
1220
+ | 'usd'
1221
+ | 'aed'
1222
+ | 'all'
1223
+ | 'amd'
1224
+ | 'ang'
1225
+ | 'aud'
1226
+ | 'awg'
1227
+ | 'azn'
1228
+ | 'bam'
1229
+ | 'bbd'
1230
+ | 'bdt'
1231
+ | 'bgn'
1232
+ | 'bif'
1233
+ | 'bmd'
1234
+ | 'bnd'
1235
+ | 'bsd'
1236
+ | 'bwp'
1237
+ | 'byn'
1238
+ | 'bzd'
1239
+ | 'brl'
1240
+ | 'cad'
1241
+ | 'cdf'
1242
+ | 'chf'
1243
+ | 'cny'
1244
+ | 'czk'
1245
+ | 'dkk'
1246
+ | 'dop'
1247
+ | 'dzd'
1248
+ | 'egp'
1249
+ | 'etb'
1250
+ | 'eur'
1251
+ | 'fjd'
1252
+ | 'gbp'
1253
+ | 'gel'
1254
+ | 'gip'
1255
+ | 'gmd'
1256
+ | 'gyd'
1257
+ | 'hkd'
1258
+ | 'hrk'
1259
+ | 'htg'
1260
+ | 'idr'
1261
+ | 'ils'
1262
+ | 'inr'
1263
+ | 'isk'
1264
+ | 'jmd'
1265
+ | 'jpy'
1266
+ | 'kes'
1267
+ | 'kgs'
1268
+ | 'khr'
1269
+ | 'kmf'
1270
+ | 'krw'
1271
+ | 'kyd'
1272
+ | 'kzt'
1273
+ | 'lbp'
1274
+ | 'lkr'
1275
+ | 'lrd'
1276
+ | 'lsl'
1277
+ | 'mad'
1278
+ | 'mdl'
1279
+ | 'mga'
1280
+ | 'mkd'
1281
+ | 'mmk'
1282
+ | 'mnt'
1283
+ | 'mop'
1284
+ | 'mro'
1285
+ | 'mvr'
1286
+ | 'mwk'
1287
+ | 'mxn'
1288
+ | 'myr'
1289
+ | 'mzn'
1290
+ | 'nad'
1291
+ | 'ngn'
1292
+ | 'nok'
1293
+ | 'npr'
1294
+ | 'nzd'
1295
+ | 'pgk'
1296
+ | 'php'
1297
+ | 'pkr'
1298
+ | 'pln'
1299
+ | 'qar'
1300
+ | 'ron'
1301
+ | 'rsd'
1302
+ | 'rub'
1303
+ | 'rwf'
1304
+ | 'sar'
1305
+ | 'sbd'
1306
+ | 'scr'
1307
+ | 'sek'
1308
+ | 'sgd'
1309
+ | 'sle'
1310
+ | 'sll'
1311
+ | 'sos'
1312
+ | 'szl'
1313
+ | 'thb'
1314
+ | 'tjs'
1315
+ | 'top'
1316
+ | 'try'
1317
+ | 'ttd'
1318
+ | 'tzs'
1319
+ | 'uah'
1320
+ | 'uzs'
1321
+ | 'vnd'
1322
+ | 'vuv'
1323
+ | 'wst'
1324
+ | 'xaf'
1325
+ | 'xcd'
1326
+ | 'yer'
1327
+ | 'zar'
1328
+ | 'zmw'
1329
+ | 'clp'
1330
+ | 'djf'
1331
+ | 'gnf'
1332
+ | 'ugx'
1333
+ | 'pyg'
1334
+ | 'xof'
1335
+ | 'xpf';
1336
+ }
1337
+
1338
+ /**
1339
+ * A single tier within a tiered charge
1340
+ */
1341
+ export interface Tier {
1342
+ /**
1343
+ * Flat price for this tier
1344
+ */
1345
+ flatPrice?: Tier.FlatPrice | null;
1346
+
1347
+ /**
1348
+ * Per-unit price in this tier
1349
+ */
1350
+ unitPrice?: Tier.UnitPrice | null;
1351
+
1352
+ /**
1353
+ * Upper bound of this tier (null for unlimited)
1354
+ */
1355
+ upTo?: number | null;
1356
+ }
1357
+
1358
+ export namespace Tier {
1359
+ /**
1360
+ * Flat price for this tier
1361
+ */
1362
+ export interface FlatPrice {
1363
+ /**
1364
+ * The price amount
1365
+ */
1366
+ amount: number;
1367
+
1368
+ /**
1369
+ * ISO 4217 currency code
1370
+ */
1371
+ currency:
1372
+ | 'usd'
1373
+ | 'aed'
1374
+ | 'all'
1375
+ | 'amd'
1376
+ | 'ang'
1377
+ | 'aud'
1378
+ | 'awg'
1379
+ | 'azn'
1380
+ | 'bam'
1381
+ | 'bbd'
1382
+ | 'bdt'
1383
+ | 'bgn'
1384
+ | 'bif'
1385
+ | 'bmd'
1386
+ | 'bnd'
1387
+ | 'bsd'
1388
+ | 'bwp'
1389
+ | 'byn'
1390
+ | 'bzd'
1391
+ | 'brl'
1392
+ | 'cad'
1393
+ | 'cdf'
1394
+ | 'chf'
1395
+ | 'cny'
1396
+ | 'czk'
1397
+ | 'dkk'
1398
+ | 'dop'
1399
+ | 'dzd'
1400
+ | 'egp'
1401
+ | 'etb'
1402
+ | 'eur'
1403
+ | 'fjd'
1404
+ | 'gbp'
1405
+ | 'gel'
1406
+ | 'gip'
1407
+ | 'gmd'
1408
+ | 'gyd'
1409
+ | 'hkd'
1410
+ | 'hrk'
1411
+ | 'htg'
1412
+ | 'idr'
1413
+ | 'ils'
1414
+ | 'inr'
1415
+ | 'isk'
1416
+ | 'jmd'
1417
+ | 'jpy'
1418
+ | 'kes'
1419
+ | 'kgs'
1420
+ | 'khr'
1421
+ | 'kmf'
1422
+ | 'krw'
1423
+ | 'kyd'
1424
+ | 'kzt'
1425
+ | 'lbp'
1426
+ | 'lkr'
1427
+ | 'lrd'
1428
+ | 'lsl'
1429
+ | 'mad'
1430
+ | 'mdl'
1431
+ | 'mga'
1432
+ | 'mkd'
1433
+ | 'mmk'
1434
+ | 'mnt'
1435
+ | 'mop'
1436
+ | 'mro'
1437
+ | 'mvr'
1438
+ | 'mwk'
1439
+ | 'mxn'
1440
+ | 'myr'
1441
+ | 'mzn'
1442
+ | 'nad'
1443
+ | 'ngn'
1444
+ | 'nok'
1445
+ | 'npr'
1446
+ | 'nzd'
1447
+ | 'pgk'
1448
+ | 'php'
1449
+ | 'pkr'
1450
+ | 'pln'
1451
+ | 'qar'
1452
+ | 'ron'
1453
+ | 'rsd'
1454
+ | 'rub'
1455
+ | 'rwf'
1456
+ | 'sar'
1457
+ | 'sbd'
1458
+ | 'scr'
1459
+ | 'sek'
1460
+ | 'sgd'
1461
+ | 'sle'
1462
+ | 'sll'
1463
+ | 'sos'
1464
+ | 'szl'
1465
+ | 'thb'
1466
+ | 'tjs'
1467
+ | 'top'
1468
+ | 'try'
1469
+ | 'ttd'
1470
+ | 'tzs'
1471
+ | 'uah'
1472
+ | 'uzs'
1473
+ | 'vnd'
1474
+ | 'vuv'
1475
+ | 'wst'
1476
+ | 'xaf'
1477
+ | 'xcd'
1478
+ | 'yer'
1479
+ | 'zar'
1480
+ | 'zmw'
1481
+ | 'clp'
1482
+ | 'djf'
1483
+ | 'gnf'
1484
+ | 'ugx'
1485
+ | 'pyg'
1486
+ | 'xof'
1487
+ | 'xpf';
1488
+ }
1489
+
1490
+ /**
1491
+ * Per-unit price in this tier
1492
+ */
1493
+ export interface UnitPrice {
1494
+ /**
1495
+ * The price amount
1496
+ */
1497
+ amount: number;
1498
+
1499
+ /**
1500
+ * ISO 4217 currency code
1501
+ */
1502
+ currency:
1503
+ | 'usd'
1504
+ | 'aed'
1505
+ | 'all'
1506
+ | 'amd'
1507
+ | 'ang'
1508
+ | 'aud'
1509
+ | 'awg'
1510
+ | 'azn'
1511
+ | 'bam'
1512
+ | 'bbd'
1513
+ | 'bdt'
1514
+ | 'bgn'
1515
+ | 'bif'
1516
+ | 'bmd'
1517
+ | 'bnd'
1518
+ | 'bsd'
1519
+ | 'bwp'
1520
+ | 'byn'
1521
+ | 'bzd'
1522
+ | 'brl'
1523
+ | 'cad'
1524
+ | 'cdf'
1525
+ | 'chf'
1526
+ | 'cny'
1527
+ | 'czk'
1528
+ | 'dkk'
1529
+ | 'dop'
1530
+ | 'dzd'
1531
+ | 'egp'
1532
+ | 'etb'
1533
+ | 'eur'
1534
+ | 'fjd'
1535
+ | 'gbp'
1536
+ | 'gel'
1537
+ | 'gip'
1538
+ | 'gmd'
1539
+ | 'gyd'
1540
+ | 'hkd'
1541
+ | 'hrk'
1542
+ | 'htg'
1543
+ | 'idr'
1544
+ | 'ils'
1545
+ | 'inr'
1546
+ | 'isk'
1547
+ | 'jmd'
1548
+ | 'jpy'
1549
+ | 'kes'
1550
+ | 'kgs'
1551
+ | 'khr'
1552
+ | 'kmf'
1553
+ | 'krw'
1554
+ | 'kyd'
1555
+ | 'kzt'
1556
+ | 'lbp'
1557
+ | 'lkr'
1558
+ | 'lrd'
1559
+ | 'lsl'
1560
+ | 'mad'
1561
+ | 'mdl'
1562
+ | 'mga'
1563
+ | 'mkd'
1564
+ | 'mmk'
1565
+ | 'mnt'
1566
+ | 'mop'
1567
+ | 'mro'
1568
+ | 'mvr'
1569
+ | 'mwk'
1570
+ | 'mxn'
1571
+ | 'myr'
1572
+ | 'mzn'
1573
+ | 'nad'
1574
+ | 'ngn'
1575
+ | 'nok'
1576
+ | 'npr'
1577
+ | 'nzd'
1578
+ | 'pgk'
1579
+ | 'php'
1580
+ | 'pkr'
1581
+ | 'pln'
1582
+ | 'qar'
1583
+ | 'ron'
1584
+ | 'rsd'
1585
+ | 'rub'
1586
+ | 'rwf'
1587
+ | 'sar'
1588
+ | 'sbd'
1589
+ | 'scr'
1590
+ | 'sek'
1591
+ | 'sgd'
1592
+ | 'sle'
1593
+ | 'sll'
1594
+ | 'sos'
1595
+ | 'szl'
1596
+ | 'thb'
1597
+ | 'tjs'
1598
+ | 'top'
1599
+ | 'try'
1600
+ | 'ttd'
1601
+ | 'tzs'
1602
+ | 'uah'
1603
+ | 'uzs'
1604
+ | 'vnd'
1605
+ | 'vuv'
1606
+ | 'wst'
1607
+ | 'xaf'
1608
+ | 'xcd'
1609
+ | 'yer'
1610
+ | 'zar'
1611
+ | 'zmw'
1612
+ | 'clp'
1613
+ | 'djf'
1614
+ | 'gnf'
1615
+ | 'ugx'
1616
+ | 'pyg'
1617
+ | 'xof'
1618
+ | 'xpf';
1619
+ }
1620
+ }
1621
+ }
1622
+
377
1623
  /**
378
1624
  * Response containing task ID for publish operation
379
1625
  */
@@ -408,54 +1654,67 @@ export namespace PlanRemoveDraftResponse {
408
1654
 
409
1655
  export interface PlanCreateParams {
410
1656
  /**
411
- * The unique identifier for the entity
1657
+ * Body param: The unique identifier for the entity
412
1658
  */
413
1659
  id: string;
414
1660
 
415
1661
  /**
416
- * The display name of the package
1662
+ * Body param: The display name of the package
417
1663
  */
418
1664
  displayName: string;
419
1665
 
420
1666
  /**
421
- * The product ID to associate the plan with
1667
+ * Body param: The product ID to associate the plan with
422
1668
  */
423
1669
  productId: string;
424
1670
 
425
1671
  /**
426
- * The unique identifier for the entity in the billing provider
1672
+ * Body param: The unique identifier for the entity in the billing provider
427
1673
  */
428
1674
  billingId?: string | null;
429
1675
 
430
1676
  /**
431
- * Default trial configuration for the plan
1677
+ * Body param: Default trial configuration for the plan
432
1678
  */
433
1679
  defaultTrialConfig?: PlanCreateParams.DefaultTrialConfig | null;
434
1680
 
435
1681
  /**
436
- * The description of the package
1682
+ * Body param: The description of the package
437
1683
  */
438
1684
  description?: string | null;
439
1685
 
440
1686
  /**
441
- * Metadata associated with the entity
1687
+ * Body param: Metadata associated with the entity
442
1688
  */
443
1689
  metadata?: { [key: string]: string };
444
1690
 
445
1691
  /**
446
- * The ID of the parent plan, if applicable
1692
+ * Body param: The ID of the parent plan, if applicable
447
1693
  */
448
1694
  parentPlanId?: string | null;
449
1695
 
450
1696
  /**
451
- * The pricing type of the package
1697
+ * Body param: The pricing type of the package
452
1698
  */
453
1699
  pricingType?: 'FREE' | 'PAID' | 'CUSTOM' | null;
454
1700
 
455
1701
  /**
456
- * The status of the package
1702
+ * Body param: The status of the package
457
1703
  */
458
1704
  status?: 'DRAFT' | 'PUBLISHED' | 'ARCHIVED';
1705
+
1706
+ /**
1707
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1708
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1709
+ */
1710
+ 'X-ACCOUNT-ID'?: string;
1711
+
1712
+ /**
1713
+ * Header param: Environment ID — required when authenticating with a user JWT
1714
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1715
+ * intrinsic to the key).
1716
+ */
1717
+ 'X-ENVIRONMENT-ID'?: string;
459
1718
  }
460
1719
 
461
1720
  export namespace PlanCreateParams {
@@ -502,43 +1761,74 @@ export namespace PlanCreateParams {
502
1761
  }
503
1762
  }
504
1763
 
1764
+ export interface PlanRetrieveParams {
1765
+ /**
1766
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
1767
+ * back to the user's first membership. Ignored for API-key auth.
1768
+ */
1769
+ 'X-ACCOUNT-ID'?: string;
1770
+
1771
+ /**
1772
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
1773
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
1774
+ * key).
1775
+ */
1776
+ 'X-ENVIRONMENT-ID'?: string;
1777
+ }
1778
+
505
1779
  export interface PlanUpdateParams {
506
1780
  /**
507
- * The unique identifier for the entity in the billing provider
1781
+ * Body param: The unique identifier for the entity in the billing provider
508
1782
  */
509
1783
  billingId?: string | null;
510
1784
 
511
1785
  /**
512
- * Pricing configuration to set on the plan draft
1786
+ * Body param: Pricing configuration to set on the plan draft
513
1787
  */
514
1788
  charges?: PlanUpdateParams.Charges;
515
1789
 
1790
+ /**
1791
+ * Body param
1792
+ */
516
1793
  compatibleAddonIds?: Array<string> | null;
517
1794
 
518
1795
  /**
519
- * Default trial configuration for the plan
1796
+ * Body param: Default trial configuration for the plan
520
1797
  */
521
1798
  defaultTrialConfig?: PlanUpdateParams.DefaultTrialConfig | null;
522
1799
 
523
1800
  /**
524
- * The description of the package
1801
+ * Body param: The description of the package
525
1802
  */
526
1803
  description?: string | null;
527
1804
 
528
1805
  /**
529
- * The display name of the package
1806
+ * Body param: The display name of the package
530
1807
  */
531
1808
  displayName?: string;
532
1809
 
533
1810
  /**
534
- * Metadata associated with the entity
1811
+ * Body param: Metadata associated with the entity
535
1812
  */
536
1813
  metadata?: { [key: string]: string };
537
1814
 
538
1815
  /**
539
- * The ID of the parent plan, if applicable
1816
+ * Body param: The ID of the parent plan, if applicable
540
1817
  */
541
1818
  parentPlanId?: string | null;
1819
+
1820
+ /**
1821
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1822
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1823
+ */
1824
+ 'X-ACCOUNT-ID'?: string;
1825
+
1826
+ /**
1827
+ * Header param: Environment ID — required when authenticating with a user JWT
1828
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1829
+ * intrinsic to the key).
1830
+ */
1831
+ 'X-ENVIRONMENT-ID'?: string;
542
1832
  }
543
1833
 
544
1834
  export namespace PlanUpdateParams {
@@ -1953,19 +3243,33 @@ export namespace PlanUpdateParams {
1953
3243
 
1954
3244
  export interface PlanListParams extends MyCursorIDPageParams {
1955
3245
  /**
1956
- * Filter by creation date using range operators: gt, gte, lt, lte
3246
+ * Query param: Filter by creation date using range operators: gt, gte, lt, lte
1957
3247
  */
1958
3248
  createdAt?: PlanListParams.CreatedAt;
1959
3249
 
1960
3250
  /**
1961
- * Filter by product ID
3251
+ * Query param: Filter by product ID
1962
3252
  */
1963
3253
  productId?: string;
1964
3254
 
1965
3255
  /**
1966
- * Filter by status. Supports comma-separated values for multiple statuses
3256
+ * Query param: Filter by status. Supports comma-separated values for multiple
3257
+ * statuses
1967
3258
  */
1968
3259
  status?: Array<'DRAFT' | 'PUBLISHED' | 'ARCHIVED'>;
3260
+
3261
+ /**
3262
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
3263
+ * token); falls back to the user's first membership. Ignored for API-key auth.
3264
+ */
3265
+ 'X-ACCOUNT-ID'?: string;
3266
+
3267
+ /**
3268
+ * Header param: Environment ID — required when authenticating with a user JWT
3269
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
3270
+ * intrinsic to the key).
3271
+ */
3272
+ 'X-ENVIRONMENT-ID'?: string;
1969
3273
  }
1970
3274
 
1971
3275
  export namespace PlanListParams {
@@ -1995,11 +3299,99 @@ export namespace PlanListParams {
1995
3299
  }
1996
3300
  }
1997
3301
 
3302
+ export interface PlanArchiveParams {
3303
+ /**
3304
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
3305
+ * back to the user's first membership. Ignored for API-key auth.
3306
+ */
3307
+ 'X-ACCOUNT-ID'?: string;
3308
+
3309
+ /**
3310
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
3311
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
3312
+ * key).
3313
+ */
3314
+ 'X-ENVIRONMENT-ID'?: string;
3315
+ }
3316
+
3317
+ export interface PlanCreateDraftParams {
3318
+ /**
3319
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
3320
+ * back to the user's first membership. Ignored for API-key auth.
3321
+ */
3322
+ 'X-ACCOUNT-ID'?: string;
3323
+
3324
+ /**
3325
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
3326
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
3327
+ * key).
3328
+ */
3329
+ 'X-ENVIRONMENT-ID'?: string;
3330
+ }
3331
+
3332
+ export interface PlanListChargesParams extends MyCursorIDPageParams {
3333
+ /**
3334
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
3335
+ * token); falls back to the user's first membership. Ignored for API-key auth.
3336
+ */
3337
+ 'X-ACCOUNT-ID'?: string;
3338
+
3339
+ /**
3340
+ * Header param: Environment ID — required when authenticating with a user JWT
3341
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
3342
+ * intrinsic to the key).
3343
+ */
3344
+ 'X-ENVIRONMENT-ID'?: string;
3345
+ }
3346
+
3347
+ export interface PlanListOverageChargesParams extends MyCursorIDPageParams {
3348
+ /**
3349
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
3350
+ * token); falls back to the user's first membership. Ignored for API-key auth.
3351
+ */
3352
+ 'X-ACCOUNT-ID'?: string;
3353
+
3354
+ /**
3355
+ * Header param: Environment ID — required when authenticating with a user JWT
3356
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
3357
+ * intrinsic to the key).
3358
+ */
3359
+ 'X-ENVIRONMENT-ID'?: string;
3360
+ }
3361
+
1998
3362
  export interface PlanPublishParams {
1999
3363
  /**
2000
- * The migration type of the package
3364
+ * Body param: The migration type of the package
2001
3365
  */
2002
3366
  migrationType: 'NEW_CUSTOMERS' | 'ALL_CUSTOMERS';
3367
+
3368
+ /**
3369
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
3370
+ * token); falls back to the user's first membership. Ignored for API-key auth.
3371
+ */
3372
+ 'X-ACCOUNT-ID'?: string;
3373
+
3374
+ /**
3375
+ * Header param: Environment ID — required when authenticating with a user JWT
3376
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
3377
+ * intrinsic to the key).
3378
+ */
3379
+ 'X-ENVIRONMENT-ID'?: string;
3380
+ }
3381
+
3382
+ export interface PlanRemoveDraftParams {
3383
+ /**
3384
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
3385
+ * back to the user's first membership. Ignored for API-key auth.
3386
+ */
3387
+ 'X-ACCOUNT-ID'?: string;
3388
+
3389
+ /**
3390
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
3391
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
3392
+ * key).
3393
+ */
3394
+ 'X-ENVIRONMENT-ID'?: string;
2003
3395
  }
2004
3396
 
2005
3397
  Plans.Entitlements = Entitlements;
@@ -2008,13 +3400,23 @@ export declare namespace Plans {
2008
3400
  export {
2009
3401
  type Plan as Plan,
2010
3402
  type PlanListResponse as PlanListResponse,
3403
+ type PlanListChargesResponse as PlanListChargesResponse,
3404
+ type PlanListOverageChargesResponse as PlanListOverageChargesResponse,
2011
3405
  type PlanPublishResponse as PlanPublishResponse,
2012
3406
  type PlanRemoveDraftResponse as PlanRemoveDraftResponse,
2013
3407
  type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage,
3408
+ type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
3409
+ type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
2014
3410
  type PlanCreateParams as PlanCreateParams,
3411
+ type PlanRetrieveParams as PlanRetrieveParams,
2015
3412
  type PlanUpdateParams as PlanUpdateParams,
2016
3413
  type PlanListParams as PlanListParams,
3414
+ type PlanArchiveParams as PlanArchiveParams,
3415
+ type PlanCreateDraftParams as PlanCreateDraftParams,
3416
+ type PlanListChargesParams as PlanListChargesParams,
3417
+ type PlanListOverageChargesParams as PlanListOverageChargesParams,
2017
3418
  type PlanPublishParams as PlanPublishParams,
3419
+ type PlanRemoveDraftParams as PlanRemoveDraftParams,
2018
3420
  };
2019
3421
 
2020
3422
  export {
@@ -2024,6 +3426,7 @@ export declare namespace Plans {
2024
3426
  type EntitlementListResponse as EntitlementListResponse,
2025
3427
  type EntitlementCreateParams as EntitlementCreateParams,
2026
3428
  type EntitlementUpdateParams as EntitlementUpdateParams,
3429
+ type EntitlementListParams as EntitlementListParams,
2027
3430
  type EntitlementDeleteParams as EntitlementDeleteParams,
2028
3431
  };
2029
3432
  }