@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
@@ -1,8 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
- import * as AddonsAPI from '../addons/addons';
5
- import { ChargeListDataMyCursorIDPage } from '../addons/addons';
6
4
  import * as EntitlementsAPI from './entitlements';
7
5
  import {
8
6
  EntitlementCreateParams,
@@ -26,6 +24,15 @@ export class Plans extends APIResource {
26
24
 
27
25
  /**
28
26
  * Creates a new plan in draft status.
27
+ *
28
+ * @example
29
+ * ```ts
30
+ * const plan = await client.v1.plans.create({
31
+ * id: 'id',
32
+ * displayName: 'displayName',
33
+ * productId: 'productId',
34
+ * });
35
+ * ```
29
36
  */
30
37
  create(body: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
31
38
  return this._client.post('/api/v1/plans', { body, ...options });
@@ -34,6 +41,11 @@ export class Plans extends APIResource {
34
41
  /**
35
42
  * Retrieves a plan by its unique identifier, including entitlements and pricing
36
43
  * details.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const plan = await client.v1.plans.retrieve('x');
48
+ * ```
37
49
  */
38
50
  retrieve(id: string, options?: RequestOptions): APIPromise<Plan> {
39
51
  return this._client.get(path`/api/v1/plans/${id}`, options);
@@ -42,6 +54,11 @@ export class Plans extends APIResource {
42
54
  /**
43
55
  * Updates an existing plan's properties such as display name, description, and
44
56
  * metadata.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const plan = await client.v1.plans.update('x');
61
+ * ```
45
62
  */
46
63
  update(id: string, body: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
47
64
  return this._client.patch(path`/api/v1/plans/${id}`, { body, ...options });
@@ -49,6 +66,14 @@ export class Plans extends APIResource {
49
66
 
50
67
  /**
51
68
  * Retrieves a paginated list of plans in the environment.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * // Automatically fetches more pages as needed.
73
+ * for await (const planListResponse of client.v1.plans.list()) {
74
+ * // ...
75
+ * }
76
+ * ```
52
77
  */
53
78
  list(
54
79
  query: PlanListParams | null | undefined = {},
@@ -59,6 +84,11 @@ export class Plans extends APIResource {
59
84
 
60
85
  /**
61
86
  * Archives a plan, preventing it from being used in new subscriptions.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * const plan = await client.v1.plans.archive('x');
91
+ * ```
62
92
  */
63
93
  archive(id: string, options?: RequestOptions): APIPromise<Plan> {
64
94
  return this._client.post(path`/api/v1/plans/${id}/archive`, options);
@@ -66,6 +96,11 @@ export class Plans extends APIResource {
66
96
 
67
97
  /**
68
98
  * Creates a draft version of an existing plan for modification before publishing.
99
+ *
100
+ * @example
101
+ * ```ts
102
+ * const plan = await client.v1.plans.createDraft('x');
103
+ * ```
69
104
  */
70
105
  createDraft(id: string, options?: RequestOptions): APIPromise<Plan> {
71
106
  return this._client.post(path`/api/v1/plans/${id}/draft`, options);
@@ -73,36 +108,63 @@ export class Plans extends APIResource {
73
108
 
74
109
  /**
75
110
  * Retrieves the list of charges configured on a plan.
111
+ *
112
+ * @example
113
+ * ```ts
114
+ * // Automatically fetches more pages as needed.
115
+ * for await (const planListChargesResponse of client.v1.plans.listCharges(
116
+ * 'x',
117
+ * )) {
118
+ * // ...
119
+ * }
120
+ * ```
76
121
  */
77
122
  listCharges(
78
123
  id: string,
79
124
  query: PlanListChargesParams | null | undefined = {},
80
125
  options?: RequestOptions,
81
- ): PagePromise<ChargeListDataMyCursorIDPage, AddonsAPI.ChargeList.Data> {
126
+ ): PagePromise<PlanListChargesResponsesMyCursorIDPage, PlanListChargesResponse> {
82
127
  return this._client.getAPIList(
83
128
  path`/api/v1/plans/${id}/charges`,
84
- MyCursorIDPage<AddonsAPI.ChargeList.Data>,
129
+ MyCursorIDPage<PlanListChargesResponse>,
85
130
  { query, ...options },
86
131
  );
87
132
  }
88
133
 
89
134
  /**
90
135
  * Retrieves the list of overage charges configured on a plan.
136
+ *
137
+ * @example
138
+ * ```ts
139
+ * // Automatically fetches more pages as needed.
140
+ * for await (const planListOverageChargesResponse of client.v1.plans.listOverageCharges(
141
+ * 'x',
142
+ * )) {
143
+ * // ...
144
+ * }
145
+ * ```
91
146
  */
92
147
  listOverageCharges(
93
148
  id: string,
94
149
  query: PlanListOverageChargesParams | null | undefined = {},
95
150
  options?: RequestOptions,
96
- ): PagePromise<ChargeListDataMyCursorIDPage, AddonsAPI.ChargeList.Data> {
151
+ ): PagePromise<PlanListOverageChargesResponsesMyCursorIDPage, PlanListOverageChargesResponse> {
97
152
  return this._client.getAPIList(
98
153
  path`/api/v1/plans/${id}/overage-charges`,
99
- MyCursorIDPage<AddonsAPI.ChargeList.Data>,
154
+ MyCursorIDPage<PlanListOverageChargesResponse>,
100
155
  { query, ...options },
101
156
  );
102
157
  }
103
158
 
104
159
  /**
105
160
  * Publishes a draft plan, making it available for use in subscriptions.
161
+ *
162
+ * @example
163
+ * ```ts
164
+ * const response = await client.v1.plans.publish('x', {
165
+ * migrationType: 'NEW_CUSTOMERS',
166
+ * });
167
+ * ```
106
168
  */
107
169
  publish(id: string, body: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
108
170
  return this._client.post(path`/api/v1/plans/${id}/publish`, { body, ...options });
@@ -110,6 +172,11 @@ export class Plans extends APIResource {
110
172
 
111
173
  /**
112
174
  * Removes a draft version of a plan.
175
+ *
176
+ * @example
177
+ * ```ts
178
+ * const response = await client.v1.plans.removeDraft('x');
179
+ * ```
113
180
  */
114
181
  removeDraft(id: string, options?: RequestOptions): APIPromise<PlanRemoveDraftResponse> {
115
182
  return this._client.delete(path`/api/v1/plans/${id}/draft`, options);
@@ -118,6 +185,10 @@ export class Plans extends APIResource {
118
185
 
119
186
  export type PlanListResponsesMyCursorIDPage = MyCursorIDPage<PlanListResponse>;
120
187
 
188
+ export type PlanListChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListChargesResponse>;
189
+
190
+ export type PlanListOverageChargesResponsesMyCursorIDPage = MyCursorIDPage<PlanListOverageChargesResponse>;
191
+
121
192
  /**
122
193
  * Response object
123
194
  */
@@ -406,6 +477,1094 @@ export namespace PlanListResponse {
406
477
  }
407
478
  }
408
479
 
480
+ /**
481
+ * A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
482
+ * billingModel, billingCadence, billingCountryCode) combination. Plans and addons
483
+ * own many of these — one per currency / billing period / feature.
484
+ */
485
+ export interface PlanListChargesResponse {
486
+ /**
487
+ * Unique identifier of the charge
488
+ */
489
+ id: string;
490
+
491
+ /**
492
+ * The billing cadence (RECURRING or ONE_OFF)
493
+ */
494
+ billingCadence: 'RECURRING' | 'ONE_OFF';
495
+
496
+ /**
497
+ * The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
498
+ */
499
+ billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
500
+
501
+ /**
502
+ * The billing period (MONTHLY or ANNUALLY)
503
+ */
504
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
505
+
506
+ /**
507
+ * Timestamp when the charge was created
508
+ */
509
+ createdAt: string;
510
+
511
+ /**
512
+ * ISO country code for localized pricing, if any
513
+ */
514
+ billingCountryCode?: string | null;
515
+
516
+ /**
517
+ * Identifier in the external billing integration (e.g. Stripe price id), if any
518
+ */
519
+ billingId?: string | null;
520
+
521
+ /**
522
+ * Block size for usage-based pricing
523
+ */
524
+ blockSize?: number | null;
525
+
526
+ /**
527
+ * When credits are granted (for credit-based pricing)
528
+ */
529
+ creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
530
+
531
+ /**
532
+ * Credit rate configuration for credit-based pricing
533
+ */
534
+ creditRate?: PlanListChargesResponse.CreditRate | null;
535
+
536
+ /**
537
+ * Identifier in the linked CRM, if any
538
+ */
539
+ crmId?: string | null;
540
+
541
+ /**
542
+ * Deep link to the charge in the linked CRM, if any
543
+ */
544
+ crmLinkUrl?: string | null;
545
+
546
+ /**
547
+ * The feature this charge meters, if metered
548
+ */
549
+ featureId?: string | null;
550
+
551
+ /**
552
+ * Maximum unit quantity that can be purchased
553
+ */
554
+ maxUnitQuantity?: number | null;
555
+
556
+ /**
557
+ * Minimum unit quantity that can be purchased
558
+ */
559
+ minUnitQuantity?: number | null;
560
+
561
+ /**
562
+ * The flat price amount and currency, when applicable
563
+ */
564
+ price?: PlanListChargesResponse.Price | null;
565
+
566
+ /**
567
+ * Tiered pricing rows when the charge is tiered
568
+ */
569
+ tiers?: Array<PlanListChargesResponse.Tier> | null;
570
+
571
+ /**
572
+ * Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
573
+ */
574
+ tiersMode?: 'VOLUME' | 'GRADUATED' | null;
575
+
576
+ /**
577
+ * Custom currency identifier for top-up pricing, if any
578
+ */
579
+ topUpCustomCurrencyId?: string | null;
580
+
581
+ /**
582
+ * True if this charge is referenced by at least one subscription
583
+ */
584
+ usedInSubscriptions?: boolean | null;
585
+ }
586
+
587
+ export namespace PlanListChargesResponse {
588
+ /**
589
+ * Credit rate configuration for credit-based pricing
590
+ */
591
+ export interface CreditRate {
592
+ /**
593
+ * Credit rate amount
594
+ */
595
+ amount: number;
596
+
597
+ /**
598
+ * Custom currency identifier
599
+ */
600
+ currencyId: string;
601
+
602
+ /**
603
+ * Optional cost formula expression
604
+ */
605
+ costFormula?: string | null;
606
+ }
607
+
608
+ /**
609
+ * The flat price amount and currency, when applicable
610
+ */
611
+ export interface Price {
612
+ /**
613
+ * The price amount
614
+ */
615
+ amount: number;
616
+
617
+ /**
618
+ * ISO 4217 currency code
619
+ */
620
+ currency:
621
+ | 'usd'
622
+ | 'aed'
623
+ | 'all'
624
+ | 'amd'
625
+ | 'ang'
626
+ | 'aud'
627
+ | 'awg'
628
+ | 'azn'
629
+ | 'bam'
630
+ | 'bbd'
631
+ | 'bdt'
632
+ | 'bgn'
633
+ | 'bif'
634
+ | 'bmd'
635
+ | 'bnd'
636
+ | 'bsd'
637
+ | 'bwp'
638
+ | 'byn'
639
+ | 'bzd'
640
+ | 'brl'
641
+ | 'cad'
642
+ | 'cdf'
643
+ | 'chf'
644
+ | 'cny'
645
+ | 'czk'
646
+ | 'dkk'
647
+ | 'dop'
648
+ | 'dzd'
649
+ | 'egp'
650
+ | 'etb'
651
+ | 'eur'
652
+ | 'fjd'
653
+ | 'gbp'
654
+ | 'gel'
655
+ | 'gip'
656
+ | 'gmd'
657
+ | 'gyd'
658
+ | 'hkd'
659
+ | 'hrk'
660
+ | 'htg'
661
+ | 'idr'
662
+ | 'ils'
663
+ | 'inr'
664
+ | 'isk'
665
+ | 'jmd'
666
+ | 'jpy'
667
+ | 'kes'
668
+ | 'kgs'
669
+ | 'khr'
670
+ | 'kmf'
671
+ | 'krw'
672
+ | 'kyd'
673
+ | 'kzt'
674
+ | 'lbp'
675
+ | 'lkr'
676
+ | 'lrd'
677
+ | 'lsl'
678
+ | 'mad'
679
+ | 'mdl'
680
+ | 'mga'
681
+ | 'mkd'
682
+ | 'mmk'
683
+ | 'mnt'
684
+ | 'mop'
685
+ | 'mro'
686
+ | 'mvr'
687
+ | 'mwk'
688
+ | 'mxn'
689
+ | 'myr'
690
+ | 'mzn'
691
+ | 'nad'
692
+ | 'ngn'
693
+ | 'nok'
694
+ | 'npr'
695
+ | 'nzd'
696
+ | 'pgk'
697
+ | 'php'
698
+ | 'pkr'
699
+ | 'pln'
700
+ | 'qar'
701
+ | 'ron'
702
+ | 'rsd'
703
+ | 'rub'
704
+ | 'rwf'
705
+ | 'sar'
706
+ | 'sbd'
707
+ | 'scr'
708
+ | 'sek'
709
+ | 'sgd'
710
+ | 'sle'
711
+ | 'sll'
712
+ | 'sos'
713
+ | 'szl'
714
+ | 'thb'
715
+ | 'tjs'
716
+ | 'top'
717
+ | 'try'
718
+ | 'ttd'
719
+ | 'tzs'
720
+ | 'uah'
721
+ | 'uzs'
722
+ | 'vnd'
723
+ | 'vuv'
724
+ | 'wst'
725
+ | 'xaf'
726
+ | 'xcd'
727
+ | 'yer'
728
+ | 'zar'
729
+ | 'zmw'
730
+ | 'clp'
731
+ | 'djf'
732
+ | 'gnf'
733
+ | 'ugx'
734
+ | 'pyg'
735
+ | 'xof'
736
+ | 'xpf';
737
+ }
738
+
739
+ /**
740
+ * A single tier within a tiered charge
741
+ */
742
+ export interface Tier {
743
+ /**
744
+ * Flat price for this tier
745
+ */
746
+ flatPrice?: Tier.FlatPrice | null;
747
+
748
+ /**
749
+ * Per-unit price in this tier
750
+ */
751
+ unitPrice?: Tier.UnitPrice | null;
752
+
753
+ /**
754
+ * Upper bound of this tier (null for unlimited)
755
+ */
756
+ upTo?: number | null;
757
+ }
758
+
759
+ export namespace Tier {
760
+ /**
761
+ * Flat price for this tier
762
+ */
763
+ export interface FlatPrice {
764
+ /**
765
+ * The price amount
766
+ */
767
+ amount: number;
768
+
769
+ /**
770
+ * ISO 4217 currency code
771
+ */
772
+ currency:
773
+ | 'usd'
774
+ | 'aed'
775
+ | 'all'
776
+ | 'amd'
777
+ | 'ang'
778
+ | 'aud'
779
+ | 'awg'
780
+ | 'azn'
781
+ | 'bam'
782
+ | 'bbd'
783
+ | 'bdt'
784
+ | 'bgn'
785
+ | 'bif'
786
+ | 'bmd'
787
+ | 'bnd'
788
+ | 'bsd'
789
+ | 'bwp'
790
+ | 'byn'
791
+ | 'bzd'
792
+ | 'brl'
793
+ | 'cad'
794
+ | 'cdf'
795
+ | 'chf'
796
+ | 'cny'
797
+ | 'czk'
798
+ | 'dkk'
799
+ | 'dop'
800
+ | 'dzd'
801
+ | 'egp'
802
+ | 'etb'
803
+ | 'eur'
804
+ | 'fjd'
805
+ | 'gbp'
806
+ | 'gel'
807
+ | 'gip'
808
+ | 'gmd'
809
+ | 'gyd'
810
+ | 'hkd'
811
+ | 'hrk'
812
+ | 'htg'
813
+ | 'idr'
814
+ | 'ils'
815
+ | 'inr'
816
+ | 'isk'
817
+ | 'jmd'
818
+ | 'jpy'
819
+ | 'kes'
820
+ | 'kgs'
821
+ | 'khr'
822
+ | 'kmf'
823
+ | 'krw'
824
+ | 'kyd'
825
+ | 'kzt'
826
+ | 'lbp'
827
+ | 'lkr'
828
+ | 'lrd'
829
+ | 'lsl'
830
+ | 'mad'
831
+ | 'mdl'
832
+ | 'mga'
833
+ | 'mkd'
834
+ | 'mmk'
835
+ | 'mnt'
836
+ | 'mop'
837
+ | 'mro'
838
+ | 'mvr'
839
+ | 'mwk'
840
+ | 'mxn'
841
+ | 'myr'
842
+ | 'mzn'
843
+ | 'nad'
844
+ | 'ngn'
845
+ | 'nok'
846
+ | 'npr'
847
+ | 'nzd'
848
+ | 'pgk'
849
+ | 'php'
850
+ | 'pkr'
851
+ | 'pln'
852
+ | 'qar'
853
+ | 'ron'
854
+ | 'rsd'
855
+ | 'rub'
856
+ | 'rwf'
857
+ | 'sar'
858
+ | 'sbd'
859
+ | 'scr'
860
+ | 'sek'
861
+ | 'sgd'
862
+ | 'sle'
863
+ | 'sll'
864
+ | 'sos'
865
+ | 'szl'
866
+ | 'thb'
867
+ | 'tjs'
868
+ | 'top'
869
+ | 'try'
870
+ | 'ttd'
871
+ | 'tzs'
872
+ | 'uah'
873
+ | 'uzs'
874
+ | 'vnd'
875
+ | 'vuv'
876
+ | 'wst'
877
+ | 'xaf'
878
+ | 'xcd'
879
+ | 'yer'
880
+ | 'zar'
881
+ | 'zmw'
882
+ | 'clp'
883
+ | 'djf'
884
+ | 'gnf'
885
+ | 'ugx'
886
+ | 'pyg'
887
+ | 'xof'
888
+ | 'xpf';
889
+ }
890
+
891
+ /**
892
+ * Per-unit price in this tier
893
+ */
894
+ export interface UnitPrice {
895
+ /**
896
+ * The price amount
897
+ */
898
+ amount: number;
899
+
900
+ /**
901
+ * ISO 4217 currency code
902
+ */
903
+ currency:
904
+ | 'usd'
905
+ | 'aed'
906
+ | 'all'
907
+ | 'amd'
908
+ | 'ang'
909
+ | 'aud'
910
+ | 'awg'
911
+ | 'azn'
912
+ | 'bam'
913
+ | 'bbd'
914
+ | 'bdt'
915
+ | 'bgn'
916
+ | 'bif'
917
+ | 'bmd'
918
+ | 'bnd'
919
+ | 'bsd'
920
+ | 'bwp'
921
+ | 'byn'
922
+ | 'bzd'
923
+ | 'brl'
924
+ | 'cad'
925
+ | 'cdf'
926
+ | 'chf'
927
+ | 'cny'
928
+ | 'czk'
929
+ | 'dkk'
930
+ | 'dop'
931
+ | 'dzd'
932
+ | 'egp'
933
+ | 'etb'
934
+ | 'eur'
935
+ | 'fjd'
936
+ | 'gbp'
937
+ | 'gel'
938
+ | 'gip'
939
+ | 'gmd'
940
+ | 'gyd'
941
+ | 'hkd'
942
+ | 'hrk'
943
+ | 'htg'
944
+ | 'idr'
945
+ | 'ils'
946
+ | 'inr'
947
+ | 'isk'
948
+ | 'jmd'
949
+ | 'jpy'
950
+ | 'kes'
951
+ | 'kgs'
952
+ | 'khr'
953
+ | 'kmf'
954
+ | 'krw'
955
+ | 'kyd'
956
+ | 'kzt'
957
+ | 'lbp'
958
+ | 'lkr'
959
+ | 'lrd'
960
+ | 'lsl'
961
+ | 'mad'
962
+ | 'mdl'
963
+ | 'mga'
964
+ | 'mkd'
965
+ | 'mmk'
966
+ | 'mnt'
967
+ | 'mop'
968
+ | 'mro'
969
+ | 'mvr'
970
+ | 'mwk'
971
+ | 'mxn'
972
+ | 'myr'
973
+ | 'mzn'
974
+ | 'nad'
975
+ | 'ngn'
976
+ | 'nok'
977
+ | 'npr'
978
+ | 'nzd'
979
+ | 'pgk'
980
+ | 'php'
981
+ | 'pkr'
982
+ | 'pln'
983
+ | 'qar'
984
+ | 'ron'
985
+ | 'rsd'
986
+ | 'rub'
987
+ | 'rwf'
988
+ | 'sar'
989
+ | 'sbd'
990
+ | 'scr'
991
+ | 'sek'
992
+ | 'sgd'
993
+ | 'sle'
994
+ | 'sll'
995
+ | 'sos'
996
+ | 'szl'
997
+ | 'thb'
998
+ | 'tjs'
999
+ | 'top'
1000
+ | 'try'
1001
+ | 'ttd'
1002
+ | 'tzs'
1003
+ | 'uah'
1004
+ | 'uzs'
1005
+ | 'vnd'
1006
+ | 'vuv'
1007
+ | 'wst'
1008
+ | 'xaf'
1009
+ | 'xcd'
1010
+ | 'yer'
1011
+ | 'zar'
1012
+ | 'zmw'
1013
+ | 'clp'
1014
+ | 'djf'
1015
+ | 'gnf'
1016
+ | 'ugx'
1017
+ | 'pyg'
1018
+ | 'xof'
1019
+ | 'xpf';
1020
+ }
1021
+ }
1022
+ }
1023
+
1024
+ /**
1025
+ * A single pricing row on a plan or addon. Each charge encodes one (billingPeriod,
1026
+ * billingModel, billingCadence, billingCountryCode) combination. Plans and addons
1027
+ * own many of these — one per currency / billing period / feature.
1028
+ */
1029
+ export interface PlanListOverageChargesResponse {
1030
+ /**
1031
+ * Unique identifier of the charge
1032
+ */
1033
+ id: string;
1034
+
1035
+ /**
1036
+ * The billing cadence (RECURRING or ONE_OFF)
1037
+ */
1038
+ billingCadence: 'RECURRING' | 'ONE_OFF';
1039
+
1040
+ /**
1041
+ * The billing model (FLAT_FEE, PER_UNIT, USAGE_BASED, CREDIT_BASED, MINIMUM_SPEND)
1042
+ */
1043
+ billingModel: 'FLAT_FEE' | 'MINIMUM_SPEND' | 'PER_UNIT' | 'USAGE_BASED' | 'CREDIT_BASED';
1044
+
1045
+ /**
1046
+ * The billing period (MONTHLY or ANNUALLY)
1047
+ */
1048
+ billingPeriod: 'MONTHLY' | 'ANNUALLY';
1049
+
1050
+ /**
1051
+ * Timestamp when the charge was created
1052
+ */
1053
+ createdAt: string;
1054
+
1055
+ /**
1056
+ * ISO country code for localized pricing, if any
1057
+ */
1058
+ billingCountryCode?: string | null;
1059
+
1060
+ /**
1061
+ * Identifier in the external billing integration (e.g. Stripe price id), if any
1062
+ */
1063
+ billingId?: string | null;
1064
+
1065
+ /**
1066
+ * Block size for usage-based pricing
1067
+ */
1068
+ blockSize?: number | null;
1069
+
1070
+ /**
1071
+ * When credits are granted (for credit-based pricing)
1072
+ */
1073
+ creditGrantCadence?: 'BEGINNING_OF_BILLING_PERIOD' | 'MONTHLY' | null;
1074
+
1075
+ /**
1076
+ * Credit rate configuration for credit-based pricing
1077
+ */
1078
+ creditRate?: PlanListOverageChargesResponse.CreditRate | null;
1079
+
1080
+ /**
1081
+ * Identifier in the linked CRM, if any
1082
+ */
1083
+ crmId?: string | null;
1084
+
1085
+ /**
1086
+ * Deep link to the charge in the linked CRM, if any
1087
+ */
1088
+ crmLinkUrl?: string | null;
1089
+
1090
+ /**
1091
+ * The feature this charge meters, if metered
1092
+ */
1093
+ featureId?: string | null;
1094
+
1095
+ /**
1096
+ * Maximum unit quantity that can be purchased
1097
+ */
1098
+ maxUnitQuantity?: number | null;
1099
+
1100
+ /**
1101
+ * Minimum unit quantity that can be purchased
1102
+ */
1103
+ minUnitQuantity?: number | null;
1104
+
1105
+ /**
1106
+ * The flat price amount and currency, when applicable
1107
+ */
1108
+ price?: PlanListOverageChargesResponse.Price | null;
1109
+
1110
+ /**
1111
+ * Tiered pricing rows when the charge is tiered
1112
+ */
1113
+ tiers?: Array<PlanListOverageChargesResponse.Tier> | null;
1114
+
1115
+ /**
1116
+ * Tiered pricing mode (VOLUME or GRADUATED) when the charge is tiered
1117
+ */
1118
+ tiersMode?: 'VOLUME' | 'GRADUATED' | null;
1119
+
1120
+ /**
1121
+ * Custom currency identifier for top-up pricing, if any
1122
+ */
1123
+ topUpCustomCurrencyId?: string | null;
1124
+
1125
+ /**
1126
+ * True if this charge is referenced by at least one subscription
1127
+ */
1128
+ usedInSubscriptions?: boolean | null;
1129
+ }
1130
+
1131
+ export namespace PlanListOverageChargesResponse {
1132
+ /**
1133
+ * Credit rate configuration for credit-based pricing
1134
+ */
1135
+ export interface CreditRate {
1136
+ /**
1137
+ * Credit rate amount
1138
+ */
1139
+ amount: number;
1140
+
1141
+ /**
1142
+ * Custom currency identifier
1143
+ */
1144
+ currencyId: string;
1145
+
1146
+ /**
1147
+ * Optional cost formula expression
1148
+ */
1149
+ costFormula?: string | null;
1150
+ }
1151
+
1152
+ /**
1153
+ * The flat price amount and currency, when applicable
1154
+ */
1155
+ export interface Price {
1156
+ /**
1157
+ * The price amount
1158
+ */
1159
+ amount: number;
1160
+
1161
+ /**
1162
+ * ISO 4217 currency code
1163
+ */
1164
+ currency:
1165
+ | 'usd'
1166
+ | 'aed'
1167
+ | 'all'
1168
+ | 'amd'
1169
+ | 'ang'
1170
+ | 'aud'
1171
+ | 'awg'
1172
+ | 'azn'
1173
+ | 'bam'
1174
+ | 'bbd'
1175
+ | 'bdt'
1176
+ | 'bgn'
1177
+ | 'bif'
1178
+ | 'bmd'
1179
+ | 'bnd'
1180
+ | 'bsd'
1181
+ | 'bwp'
1182
+ | 'byn'
1183
+ | 'bzd'
1184
+ | 'brl'
1185
+ | 'cad'
1186
+ | 'cdf'
1187
+ | 'chf'
1188
+ | 'cny'
1189
+ | 'czk'
1190
+ | 'dkk'
1191
+ | 'dop'
1192
+ | 'dzd'
1193
+ | 'egp'
1194
+ | 'etb'
1195
+ | 'eur'
1196
+ | 'fjd'
1197
+ | 'gbp'
1198
+ | 'gel'
1199
+ | 'gip'
1200
+ | 'gmd'
1201
+ | 'gyd'
1202
+ | 'hkd'
1203
+ | 'hrk'
1204
+ | 'htg'
1205
+ | 'idr'
1206
+ | 'ils'
1207
+ | 'inr'
1208
+ | 'isk'
1209
+ | 'jmd'
1210
+ | 'jpy'
1211
+ | 'kes'
1212
+ | 'kgs'
1213
+ | 'khr'
1214
+ | 'kmf'
1215
+ | 'krw'
1216
+ | 'kyd'
1217
+ | 'kzt'
1218
+ | 'lbp'
1219
+ | 'lkr'
1220
+ | 'lrd'
1221
+ | 'lsl'
1222
+ | 'mad'
1223
+ | 'mdl'
1224
+ | 'mga'
1225
+ | 'mkd'
1226
+ | 'mmk'
1227
+ | 'mnt'
1228
+ | 'mop'
1229
+ | 'mro'
1230
+ | 'mvr'
1231
+ | 'mwk'
1232
+ | 'mxn'
1233
+ | 'myr'
1234
+ | 'mzn'
1235
+ | 'nad'
1236
+ | 'ngn'
1237
+ | 'nok'
1238
+ | 'npr'
1239
+ | 'nzd'
1240
+ | 'pgk'
1241
+ | 'php'
1242
+ | 'pkr'
1243
+ | 'pln'
1244
+ | 'qar'
1245
+ | 'ron'
1246
+ | 'rsd'
1247
+ | 'rub'
1248
+ | 'rwf'
1249
+ | 'sar'
1250
+ | 'sbd'
1251
+ | 'scr'
1252
+ | 'sek'
1253
+ | 'sgd'
1254
+ | 'sle'
1255
+ | 'sll'
1256
+ | 'sos'
1257
+ | 'szl'
1258
+ | 'thb'
1259
+ | 'tjs'
1260
+ | 'top'
1261
+ | 'try'
1262
+ | 'ttd'
1263
+ | 'tzs'
1264
+ | 'uah'
1265
+ | 'uzs'
1266
+ | 'vnd'
1267
+ | 'vuv'
1268
+ | 'wst'
1269
+ | 'xaf'
1270
+ | 'xcd'
1271
+ | 'yer'
1272
+ | 'zar'
1273
+ | 'zmw'
1274
+ | 'clp'
1275
+ | 'djf'
1276
+ | 'gnf'
1277
+ | 'ugx'
1278
+ | 'pyg'
1279
+ | 'xof'
1280
+ | 'xpf';
1281
+ }
1282
+
1283
+ /**
1284
+ * A single tier within a tiered charge
1285
+ */
1286
+ export interface Tier {
1287
+ /**
1288
+ * Flat price for this tier
1289
+ */
1290
+ flatPrice?: Tier.FlatPrice | null;
1291
+
1292
+ /**
1293
+ * Per-unit price in this tier
1294
+ */
1295
+ unitPrice?: Tier.UnitPrice | null;
1296
+
1297
+ /**
1298
+ * Upper bound of this tier (null for unlimited)
1299
+ */
1300
+ upTo?: number | null;
1301
+ }
1302
+
1303
+ export namespace Tier {
1304
+ /**
1305
+ * Flat price for this tier
1306
+ */
1307
+ export interface FlatPrice {
1308
+ /**
1309
+ * The price amount
1310
+ */
1311
+ amount: number;
1312
+
1313
+ /**
1314
+ * ISO 4217 currency code
1315
+ */
1316
+ currency:
1317
+ | 'usd'
1318
+ | 'aed'
1319
+ | 'all'
1320
+ | 'amd'
1321
+ | 'ang'
1322
+ | 'aud'
1323
+ | 'awg'
1324
+ | 'azn'
1325
+ | 'bam'
1326
+ | 'bbd'
1327
+ | 'bdt'
1328
+ | 'bgn'
1329
+ | 'bif'
1330
+ | 'bmd'
1331
+ | 'bnd'
1332
+ | 'bsd'
1333
+ | 'bwp'
1334
+ | 'byn'
1335
+ | 'bzd'
1336
+ | 'brl'
1337
+ | 'cad'
1338
+ | 'cdf'
1339
+ | 'chf'
1340
+ | 'cny'
1341
+ | 'czk'
1342
+ | 'dkk'
1343
+ | 'dop'
1344
+ | 'dzd'
1345
+ | 'egp'
1346
+ | 'etb'
1347
+ | 'eur'
1348
+ | 'fjd'
1349
+ | 'gbp'
1350
+ | 'gel'
1351
+ | 'gip'
1352
+ | 'gmd'
1353
+ | 'gyd'
1354
+ | 'hkd'
1355
+ | 'hrk'
1356
+ | 'htg'
1357
+ | 'idr'
1358
+ | 'ils'
1359
+ | 'inr'
1360
+ | 'isk'
1361
+ | 'jmd'
1362
+ | 'jpy'
1363
+ | 'kes'
1364
+ | 'kgs'
1365
+ | 'khr'
1366
+ | 'kmf'
1367
+ | 'krw'
1368
+ | 'kyd'
1369
+ | 'kzt'
1370
+ | 'lbp'
1371
+ | 'lkr'
1372
+ | 'lrd'
1373
+ | 'lsl'
1374
+ | 'mad'
1375
+ | 'mdl'
1376
+ | 'mga'
1377
+ | 'mkd'
1378
+ | 'mmk'
1379
+ | 'mnt'
1380
+ | 'mop'
1381
+ | 'mro'
1382
+ | 'mvr'
1383
+ | 'mwk'
1384
+ | 'mxn'
1385
+ | 'myr'
1386
+ | 'mzn'
1387
+ | 'nad'
1388
+ | 'ngn'
1389
+ | 'nok'
1390
+ | 'npr'
1391
+ | 'nzd'
1392
+ | 'pgk'
1393
+ | 'php'
1394
+ | 'pkr'
1395
+ | 'pln'
1396
+ | 'qar'
1397
+ | 'ron'
1398
+ | 'rsd'
1399
+ | 'rub'
1400
+ | 'rwf'
1401
+ | 'sar'
1402
+ | 'sbd'
1403
+ | 'scr'
1404
+ | 'sek'
1405
+ | 'sgd'
1406
+ | 'sle'
1407
+ | 'sll'
1408
+ | 'sos'
1409
+ | 'szl'
1410
+ | 'thb'
1411
+ | 'tjs'
1412
+ | 'top'
1413
+ | 'try'
1414
+ | 'ttd'
1415
+ | 'tzs'
1416
+ | 'uah'
1417
+ | 'uzs'
1418
+ | 'vnd'
1419
+ | 'vuv'
1420
+ | 'wst'
1421
+ | 'xaf'
1422
+ | 'xcd'
1423
+ | 'yer'
1424
+ | 'zar'
1425
+ | 'zmw'
1426
+ | 'clp'
1427
+ | 'djf'
1428
+ | 'gnf'
1429
+ | 'ugx'
1430
+ | 'pyg'
1431
+ | 'xof'
1432
+ | 'xpf';
1433
+ }
1434
+
1435
+ /**
1436
+ * Per-unit price in this tier
1437
+ */
1438
+ export interface UnitPrice {
1439
+ /**
1440
+ * The price amount
1441
+ */
1442
+ amount: number;
1443
+
1444
+ /**
1445
+ * ISO 4217 currency code
1446
+ */
1447
+ currency:
1448
+ | 'usd'
1449
+ | 'aed'
1450
+ | 'all'
1451
+ | 'amd'
1452
+ | 'ang'
1453
+ | 'aud'
1454
+ | 'awg'
1455
+ | 'azn'
1456
+ | 'bam'
1457
+ | 'bbd'
1458
+ | 'bdt'
1459
+ | 'bgn'
1460
+ | 'bif'
1461
+ | 'bmd'
1462
+ | 'bnd'
1463
+ | 'bsd'
1464
+ | 'bwp'
1465
+ | 'byn'
1466
+ | 'bzd'
1467
+ | 'brl'
1468
+ | 'cad'
1469
+ | 'cdf'
1470
+ | 'chf'
1471
+ | 'cny'
1472
+ | 'czk'
1473
+ | 'dkk'
1474
+ | 'dop'
1475
+ | 'dzd'
1476
+ | 'egp'
1477
+ | 'etb'
1478
+ | 'eur'
1479
+ | 'fjd'
1480
+ | 'gbp'
1481
+ | 'gel'
1482
+ | 'gip'
1483
+ | 'gmd'
1484
+ | 'gyd'
1485
+ | 'hkd'
1486
+ | 'hrk'
1487
+ | 'htg'
1488
+ | 'idr'
1489
+ | 'ils'
1490
+ | 'inr'
1491
+ | 'isk'
1492
+ | 'jmd'
1493
+ | 'jpy'
1494
+ | 'kes'
1495
+ | 'kgs'
1496
+ | 'khr'
1497
+ | 'kmf'
1498
+ | 'krw'
1499
+ | 'kyd'
1500
+ | 'kzt'
1501
+ | 'lbp'
1502
+ | 'lkr'
1503
+ | 'lrd'
1504
+ | 'lsl'
1505
+ | 'mad'
1506
+ | 'mdl'
1507
+ | 'mga'
1508
+ | 'mkd'
1509
+ | 'mmk'
1510
+ | 'mnt'
1511
+ | 'mop'
1512
+ | 'mro'
1513
+ | 'mvr'
1514
+ | 'mwk'
1515
+ | 'mxn'
1516
+ | 'myr'
1517
+ | 'mzn'
1518
+ | 'nad'
1519
+ | 'ngn'
1520
+ | 'nok'
1521
+ | 'npr'
1522
+ | 'nzd'
1523
+ | 'pgk'
1524
+ | 'php'
1525
+ | 'pkr'
1526
+ | 'pln'
1527
+ | 'qar'
1528
+ | 'ron'
1529
+ | 'rsd'
1530
+ | 'rub'
1531
+ | 'rwf'
1532
+ | 'sar'
1533
+ | 'sbd'
1534
+ | 'scr'
1535
+ | 'sek'
1536
+ | 'sgd'
1537
+ | 'sle'
1538
+ | 'sll'
1539
+ | 'sos'
1540
+ | 'szl'
1541
+ | 'thb'
1542
+ | 'tjs'
1543
+ | 'top'
1544
+ | 'try'
1545
+ | 'ttd'
1546
+ | 'tzs'
1547
+ | 'uah'
1548
+ | 'uzs'
1549
+ | 'vnd'
1550
+ | 'vuv'
1551
+ | 'wst'
1552
+ | 'xaf'
1553
+ | 'xcd'
1554
+ | 'yer'
1555
+ | 'zar'
1556
+ | 'zmw'
1557
+ | 'clp'
1558
+ | 'djf'
1559
+ | 'gnf'
1560
+ | 'ugx'
1561
+ | 'pyg'
1562
+ | 'xof'
1563
+ | 'xpf';
1564
+ }
1565
+ }
1566
+ }
1567
+
409
1568
  /**
410
1569
  * Response containing task ID for publish operation
411
1570
  */
@@ -2044,9 +3203,13 @@ export declare namespace Plans {
2044
3203
  export {
2045
3204
  type Plan as Plan,
2046
3205
  type PlanListResponse as PlanListResponse,
3206
+ type PlanListChargesResponse as PlanListChargesResponse,
3207
+ type PlanListOverageChargesResponse as PlanListOverageChargesResponse,
2047
3208
  type PlanPublishResponse as PlanPublishResponse,
2048
3209
  type PlanRemoveDraftResponse as PlanRemoveDraftResponse,
2049
3210
  type PlanListResponsesMyCursorIDPage as PlanListResponsesMyCursorIDPage,
3211
+ type PlanListChargesResponsesMyCursorIDPage as PlanListChargesResponsesMyCursorIDPage,
3212
+ type PlanListOverageChargesResponsesMyCursorIDPage as PlanListOverageChargesResponsesMyCursorIDPage,
2050
3213
  type PlanCreateParams as PlanCreateParams,
2051
3214
  type PlanUpdateParams as PlanUpdateParams,
2052
3215
  type PlanListParams as PlanListParams,
@@ -2065,5 +3228,3 @@ export declare namespace Plans {
2065
3228
  type EntitlementDeleteParams as EntitlementDeleteParams,
2066
3229
  };
2067
3230
  }
2068
-
2069
- export { type ChargeListDataMyCursorIDPage };