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

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 (433) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +1 -0
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +1 -0
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +3 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/v1/addons/addons.d.mts +145 -94
  20. package/resources/v1/addons/addons.d.mts.map +1 -1
  21. package/resources/v1/addons/addons.d.ts +145 -94
  22. package/resources/v1/addons/addons.d.ts.map +1 -1
  23. package/resources/v1/addons/addons.js +110 -76
  24. package/resources/v1/addons/addons.js.map +1 -1
  25. package/resources/v1/addons/addons.mjs +110 -76
  26. package/resources/v1/addons/addons.mjs.map +1 -1
  27. package/resources/v1/addons/entitlements.d.mts +62 -36
  28. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  29. package/resources/v1/addons/entitlements.d.ts +62 -36
  30. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  31. package/resources/v1/addons/entitlements.js +49 -39
  32. package/resources/v1/addons/entitlements.js.map +1 -1
  33. package/resources/v1/addons/entitlements.mjs +49 -39
  34. package/resources/v1/addons/entitlements.mjs.map +1 -1
  35. package/resources/v1/addons/index.d.mts +2 -2
  36. package/resources/v1/addons/index.d.mts.map +1 -1
  37. package/resources/v1/addons/index.d.ts +2 -2
  38. package/resources/v1/addons/index.d.ts.map +1 -1
  39. package/resources/v1/addons/index.js.map +1 -1
  40. package/resources/v1/addons/index.mjs.map +1 -1
  41. package/resources/v1/coupons.d.mts +81 -57
  42. package/resources/v1/coupons.d.mts.map +1 -1
  43. package/resources/v1/coupons.d.ts +81 -57
  44. package/resources/v1/coupons.d.ts.map +1 -1
  45. package/resources/v1/coupons.js +60 -45
  46. package/resources/v1/coupons.js.map +1 -1
  47. package/resources/v1/coupons.mjs +60 -45
  48. package/resources/v1/coupons.mjs.map +1 -1
  49. package/resources/v1/credits/credits.d.mts +60 -52
  50. package/resources/v1/credits/credits.d.mts.map +1 -1
  51. package/resources/v1/credits/credits.d.ts +60 -52
  52. package/resources/v1/credits/credits.d.ts.map +1 -1
  53. package/resources/v1/credits/credits.js +36 -30
  54. package/resources/v1/credits/credits.js.map +1 -1
  55. package/resources/v1/credits/credits.mjs +36 -30
  56. package/resources/v1/credits/credits.mjs.map +1 -1
  57. package/resources/v1/credits/custom-currencies.d.mts +98 -74
  58. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  59. package/resources/v1/credits/custom-currencies.d.ts +98 -74
  60. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  61. package/resources/v1/credits/custom-currencies.js +76 -61
  62. package/resources/v1/credits/custom-currencies.js.map +1 -1
  63. package/resources/v1/credits/custom-currencies.mjs +76 -61
  64. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  65. package/resources/v1/credits/grants.d.mts +63 -54
  66. package/resources/v1/credits/grants.d.mts.map +1 -1
  67. package/resources/v1/credits/grants.d.ts +63 -54
  68. package/resources/v1/credits/grants.d.ts.map +1 -1
  69. package/resources/v1/credits/grants.js +35 -33
  70. package/resources/v1/credits/grants.js.map +1 -1
  71. package/resources/v1/credits/grants.mjs +35 -33
  72. package/resources/v1/credits/grants.mjs.map +1 -1
  73. package/resources/v1/credits/index.d.mts +2 -2
  74. package/resources/v1/credits/index.d.mts.map +1 -1
  75. package/resources/v1/credits/index.d.ts +2 -2
  76. package/resources/v1/credits/index.d.ts.map +1 -1
  77. package/resources/v1/credits/index.js.map +1 -1
  78. package/resources/v1/credits/index.mjs.map +1 -1
  79. package/resources/v1/customers/customers.d.mts +167 -127
  80. package/resources/v1/customers/customers.d.mts.map +1 -1
  81. package/resources/v1/customers/customers.d.ts +167 -127
  82. package/resources/v1/customers/customers.d.ts.map +1 -1
  83. package/resources/v1/customers/customers.js +124 -96
  84. package/resources/v1/customers/customers.js.map +1 -1
  85. package/resources/v1/customers/customers.mjs +124 -96
  86. package/resources/v1/customers/customers.mjs.map +1 -1
  87. package/resources/v1/customers/index.d.mts +2 -2
  88. package/resources/v1/customers/index.d.mts.map +1 -1
  89. package/resources/v1/customers/index.d.ts +2 -2
  90. package/resources/v1/customers/index.d.ts.map +1 -1
  91. package/resources/v1/customers/index.js.map +1 -1
  92. package/resources/v1/customers/index.mjs +1 -1
  93. package/resources/v1/customers/index.mjs.map +1 -1
  94. package/resources/v1/customers/integrations.d.mts +66 -58
  95. package/resources/v1/customers/integrations.d.mts.map +1 -1
  96. package/resources/v1/customers/integrations.d.ts +66 -58
  97. package/resources/v1/customers/integrations.d.ts.map +1 -1
  98. package/resources/v1/customers/integrations.js +57 -56
  99. package/resources/v1/customers/integrations.js.map +1 -1
  100. package/resources/v1/customers/integrations.mjs +57 -56
  101. package/resources/v1/customers/integrations.mjs.map +1 -1
  102. package/resources/v1/customers/payment-method.d.mts +33 -25
  103. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  104. package/resources/v1/customers/payment-method.d.ts +33 -25
  105. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  106. package/resources/v1/customers/payment-method.js +26 -20
  107. package/resources/v1/customers/payment-method.js.map +1 -1
  108. package/resources/v1/customers/payment-method.mjs +26 -20
  109. package/resources/v1/customers/payment-method.mjs.map +1 -1
  110. package/resources/v1/customers/promotional-entitlements.d.mts +42 -60
  111. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  112. package/resources/v1/customers/promotional-entitlements.d.ts +42 -60
  113. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  114. package/resources/v1/customers/promotional-entitlements.js +38 -57
  115. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  116. package/resources/v1/customers/promotional-entitlements.mjs +38 -57
  117. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  118. package/resources/v1/events/data-export/data-export.d.mts +29 -21
  119. package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
  120. package/resources/v1/events/data-export/data-export.d.ts +29 -21
  121. package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
  122. package/resources/v1/events/data-export/data-export.js +27 -18
  123. package/resources/v1/events/data-export/data-export.js.map +1 -1
  124. package/resources/v1/events/data-export/data-export.mjs +27 -18
  125. package/resources/v1/events/data-export/data-export.mjs.map +1 -1
  126. package/resources/v1/events/data-export/destinations.d.mts +29 -22
  127. package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
  128. package/resources/v1/events/data-export/destinations.d.ts +29 -22
  129. package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
  130. package/resources/v1/events/data-export/destinations.js +26 -21
  131. package/resources/v1/events/data-export/destinations.js.map +1 -1
  132. package/resources/v1/events/data-export/destinations.mjs +26 -21
  133. package/resources/v1/events/data-export/destinations.mjs.map +1 -1
  134. package/resources/v1/events/data-export/index.d.mts +1 -1
  135. package/resources/v1/events/data-export/index.d.mts.map +1 -1
  136. package/resources/v1/events/data-export/index.d.ts +1 -1
  137. package/resources/v1/events/data-export/index.d.ts.map +1 -1
  138. package/resources/v1/events/data-export/index.js.map +1 -1
  139. package/resources/v1/events/data-export/index.mjs.map +1 -1
  140. package/resources/v1/events/events.d.mts +13 -19
  141. package/resources/v1/events/events.d.mts.map +1 -1
  142. package/resources/v1/events/events.d.ts +13 -19
  143. package/resources/v1/events/events.d.ts.map +1 -1
  144. package/resources/v1/events/events.js +14 -19
  145. package/resources/v1/events/events.js.map +1 -1
  146. package/resources/v1/events/events.mjs +14 -19
  147. package/resources/v1/events/events.mjs.map +1 -1
  148. package/resources/v1/events/index.d.mts +0 -1
  149. package/resources/v1/events/index.d.mts.map +1 -1
  150. package/resources/v1/events/index.d.ts +0 -1
  151. package/resources/v1/events/index.d.ts.map +1 -1
  152. package/resources/v1/events/index.js +3 -5
  153. package/resources/v1/events/index.js.map +1 -1
  154. package/resources/v1/events/index.mjs +0 -1
  155. package/resources/v1/events/index.mjs.map +1 -1
  156. package/resources/v1/features.d.mts +109 -74
  157. package/resources/v1/features.d.mts.map +1 -1
  158. package/resources/v1/features.d.ts +109 -74
  159. package/resources/v1/features.d.ts.map +1 -1
  160. package/resources/v1/features.js +72 -54
  161. package/resources/v1/features.js.map +1 -1
  162. package/resources/v1/features.mjs +72 -54
  163. package/resources/v1/features.mjs.map +1 -1
  164. package/resources/v1/index.d.mts +7 -7
  165. package/resources/v1/index.d.mts.map +1 -1
  166. package/resources/v1/index.d.ts +7 -7
  167. package/resources/v1/index.d.ts.map +1 -1
  168. package/resources/v1/index.js.map +1 -1
  169. package/resources/v1/index.mjs.map +1 -1
  170. package/resources/v1/plans/entitlements.d.mts +62 -36
  171. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  172. package/resources/v1/plans/entitlements.d.ts +62 -36
  173. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  174. package/resources/v1/plans/entitlements.js +49 -39
  175. package/resources/v1/plans/entitlements.js.map +1 -1
  176. package/resources/v1/plans/entitlements.mjs +49 -39
  177. package/resources/v1/plans/entitlements.mjs.map +1 -1
  178. package/resources/v1/plans/index.d.mts +2 -2
  179. package/resources/v1/plans/index.d.mts.map +1 -1
  180. package/resources/v1/plans/index.d.ts +2 -2
  181. package/resources/v1/plans/index.d.ts.map +1 -1
  182. package/resources/v1/plans/index.js.map +1 -1
  183. package/resources/v1/plans/index.mjs.map +1 -1
  184. package/resources/v1/plans/plans.d.mts +159 -106
  185. package/resources/v1/plans/plans.d.mts.map +1 -1
  186. package/resources/v1/plans/plans.d.ts +159 -106
  187. package/resources/v1/plans/plans.d.ts.map +1 -1
  188. package/resources/v1/plans/plans.js +127 -89
  189. package/resources/v1/plans/plans.js.map +1 -1
  190. package/resources/v1/plans/plans.mjs +127 -89
  191. package/resources/v1/plans/plans.mjs.map +1 -1
  192. package/resources/v1/products.d.mts +97 -66
  193. package/resources/v1/products.d.mts.map +1 -1
  194. package/resources/v1/products.d.ts +97 -66
  195. package/resources/v1/products.d.ts.map +1 -1
  196. package/resources/v1/products.js +73 -54
  197. package/resources/v1/products.js.map +1 -1
  198. package/resources/v1/products.mjs +73 -54
  199. package/resources/v1/products.mjs.map +1 -1
  200. package/resources/v1/subscriptions/future-update.d.mts +29 -19
  201. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  202. package/resources/v1/subscriptions/future-update.d.ts +29 -19
  203. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  204. package/resources/v1/subscriptions/future-update.js +25 -20
  205. package/resources/v1/subscriptions/future-update.js.map +1 -1
  206. package/resources/v1/subscriptions/future-update.mjs +25 -20
  207. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  208. package/resources/v1/subscriptions/index.d.mts +4 -4
  209. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  210. package/resources/v1/subscriptions/index.d.ts +4 -4
  211. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  212. package/resources/v1/subscriptions/index.js.map +1 -1
  213. package/resources/v1/subscriptions/index.mjs +1 -1
  214. package/resources/v1/subscriptions/index.mjs.map +1 -1
  215. package/resources/v1/subscriptions/invoice.d.mts +15 -8
  216. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  217. package/resources/v1/subscriptions/invoice.d.ts +15 -8
  218. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  219. package/resources/v1/subscriptions/invoice.js +13 -8
  220. package/resources/v1/subscriptions/invoice.js.map +1 -1
  221. package/resources/v1/subscriptions/invoice.mjs +13 -8
  222. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  223. package/resources/v1/subscriptions/subscriptions.d.mts +244 -161
  224. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  225. package/resources/v1/subscriptions/subscriptions.d.ts +244 -161
  226. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  227. package/resources/v1/subscriptions/subscriptions.js +126 -100
  228. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  229. package/resources/v1/subscriptions/subscriptions.mjs +128 -102
  230. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  231. package/resources/v1/subscriptions/usage.d.mts +29 -17
  232. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  233. package/resources/v1/subscriptions/usage.d.ts +29 -17
  234. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  235. package/resources/v1/subscriptions/usage.js +26 -17
  236. package/resources/v1/subscriptions/usage.js.map +1 -1
  237. package/resources/v1/subscriptions/usage.mjs +26 -17
  238. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  239. package/resources/v1/usage.d.mts +24 -26
  240. package/resources/v1/usage.d.mts.map +1 -1
  241. package/resources/v1/usage.d.ts +24 -26
  242. package/resources/v1/usage.d.ts.map +1 -1
  243. package/resources/v1/usage.js +26 -28
  244. package/resources/v1/usage.js.map +1 -1
  245. package/resources/v1/usage.mjs +26 -28
  246. package/resources/v1/usage.mjs.map +1 -1
  247. package/resources/v1/v1.d.mts +14 -14
  248. package/resources/v1/v1.d.mts.map +1 -1
  249. package/resources/v1/v1.d.ts +14 -14
  250. package/resources/v1/v1.d.ts.map +1 -1
  251. package/resources/v1/v1.js.map +1 -1
  252. package/resources/v1/v1.mjs.map +1 -1
  253. package/resources/v1-beta/customers/assignments.d.mts +242 -0
  254. package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
  255. package/resources/v1-beta/customers/assignments.d.ts +242 -0
  256. package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
  257. package/resources/v1-beta/customers/assignments.js +84 -0
  258. package/resources/v1-beta/customers/assignments.js.map +1 -0
  259. package/resources/v1-beta/customers/assignments.mjs +80 -0
  260. package/resources/v1-beta/customers/assignments.mjs.map +1 -0
  261. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.mts +1 -1
  262. package/resources/v1-beta/customers/customers.d.mts.map +1 -0
  263. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
  264. package/resources/v1-beta/customers/customers.d.ts.map +1 -0
  265. package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
  266. package/resources/v1-beta/customers/customers.js.map +1 -0
  267. package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
  268. package/resources/v1-beta/customers/customers.mjs.map +1 -0
  269. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +94 -47
  270. package/resources/v1-beta/customers/entities.d.mts.map +1 -0
  271. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +94 -47
  272. package/resources/v1-beta/customers/entities.d.ts.map +1 -0
  273. package/resources/v1-beta/customers/entities.js +150 -0
  274. package/resources/v1-beta/customers/entities.js.map +1 -0
  275. package/resources/v1-beta/customers/entities.mjs +146 -0
  276. package/resources/v1-beta/customers/entities.mjs.map +1 -0
  277. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +27 -16
  278. package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
  279. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +27 -16
  280. package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
  281. package/resources/v1-beta/customers/entitlements.js +36 -0
  282. package/resources/v1-beta/customers/entitlements.js.map +1 -0
  283. package/resources/v1-beta/customers/entitlements.mjs +32 -0
  284. package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
  285. package/resources/v1-beta/customers/index.d.mts.map +1 -0
  286. package/resources/v1-beta/customers/index.d.ts.map +1 -0
  287. package/resources/v1-beta/customers/index.js.map +1 -0
  288. package/resources/v1-beta/customers/index.mjs.map +1 -0
  289. package/resources/v1-beta/customers.d.mts.map +1 -0
  290. package/resources/v1-beta/customers.d.ts.map +1 -0
  291. package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
  292. package/resources/v1-beta/customers.js.map +1 -0
  293. package/resources/v1-beta/customers.mjs.map +1 -0
  294. package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +44 -23
  295. package/resources/v1-beta/entity-types.d.mts.map +1 -0
  296. package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +44 -23
  297. package/resources/v1-beta/entity-types.d.ts.map +1 -0
  298. package/resources/v1-beta/entity-types.js +75 -0
  299. package/resources/v1-beta/entity-types.js.map +1 -0
  300. package/resources/v1-beta/entity-types.mjs +71 -0
  301. package/resources/v1-beta/entity-types.mjs.map +1 -0
  302. package/resources/{v1/events/beta → v1-beta}/index.d.mts +1 -1
  303. package/resources/v1-beta/index.d.mts.map +1 -0
  304. package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
  305. package/resources/v1-beta/index.d.ts.map +1 -0
  306. package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
  307. package/resources/v1-beta/index.js.map +1 -0
  308. package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
  309. package/resources/v1-beta/index.mjs.map +1 -0
  310. package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
  311. package/resources/v1-beta/v1-beta.d.mts.map +1 -0
  312. package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
  313. package/resources/v1-beta/v1-beta.d.ts.map +1 -0
  314. package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
  315. package/resources/v1-beta/v1-beta.js.map +1 -0
  316. package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
  317. package/resources/v1-beta/v1-beta.mjs.map +1 -0
  318. package/resources/v1-beta.d.mts +2 -0
  319. package/resources/v1-beta.d.mts.map +1 -0
  320. package/resources/v1-beta.d.ts +2 -0
  321. package/resources/v1-beta.d.ts.map +1 -0
  322. package/resources/{v1/events/beta.js → v1-beta.js} +3 -3
  323. package/resources/v1-beta.js.map +1 -0
  324. package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
  325. package/resources/v1-beta.mjs.map +1 -0
  326. package/src/client.ts +5 -0
  327. package/src/resources/index.ts +1 -0
  328. package/src/resources/v1/addons/addons.ts +293 -105
  329. package/src/resources/v1/addons/entitlements.ts +123 -41
  330. package/src/resources/v1/addons/index.ts +5 -0
  331. package/src/resources/v1/coupons.ts +158 -63
  332. package/src/resources/v1/credits/credits.ts +103 -50
  333. package/src/resources/v1/credits/custom-currencies.ts +191 -82
  334. package/src/resources/v1/credits/grants.ts +104 -54
  335. package/src/resources/v1/credits/index.ts +4 -0
  336. package/src/resources/v1/customers/customers.ts +324 -140
  337. package/src/resources/v1/customers/index.ts +8 -1
  338. package/src/resources/v1/customers/integrations.ts +129 -63
  339. package/src/resources/v1/customers/payment-method.ts +66 -25
  340. package/src/resources/v1/customers/promotional-entitlements.ts +82 -62
  341. package/src/resources/v1/events/data-export/data-export.ts +58 -21
  342. package/src/resources/v1/events/data-export/destinations.ts +61 -23
  343. package/src/resources/v1/events/data-export/index.ts +1 -0
  344. package/src/resources/v1/events/events.ts +28 -22
  345. package/src/resources/v1/events/index.ts +0 -1
  346. package/src/resources/v1/features.ts +209 -82
  347. package/src/resources/v1/index.ts +19 -0
  348. package/src/resources/v1/plans/entitlements.ts +123 -41
  349. package/src/resources/v1/plans/index.ts +5 -0
  350. package/src/resources/v1/plans/plans.ts +321 -119
  351. package/src/resources/v1/products.ts +193 -74
  352. package/src/resources/v1/subscriptions/future-update.ts +68 -21
  353. package/src/resources/v1/subscriptions/index.ts +9 -2
  354. package/src/resources/v1/subscriptions/invoice.ts +36 -9
  355. package/src/resources/v1/subscriptions/subscriptions.ts +417 -173
  356. package/src/resources/v1/subscriptions/usage.ts +61 -18
  357. package/src/resources/v1/usage.ts +53 -29
  358. package/src/resources/v1/v1.ts +38 -0
  359. package/src/resources/v1-beta/customers/assignments.ts +328 -0
  360. package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
  361. package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +165 -54
  362. package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +43 -18
  363. package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +70 -25
  364. package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
  365. package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
  366. package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
  367. package/src/version.ts +1 -1
  368. package/version.d.mts +1 -1
  369. package/version.d.ts +1 -1
  370. package/version.js +1 -1
  371. package/version.mjs +1 -1
  372. package/resources/v1/events/beta/beta.d.mts.map +0 -1
  373. package/resources/v1/events/beta/beta.d.ts.map +0 -1
  374. package/resources/v1/events/beta/beta.js.map +0 -1
  375. package/resources/v1/events/beta/beta.mjs.map +0 -1
  376. package/resources/v1/events/beta/customers/assignments.d.mts +0 -178
  377. package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
  378. package/resources/v1/events/beta/customers/assignments.d.ts +0 -178
  379. package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
  380. package/resources/v1/events/beta/customers/assignments.js +0 -62
  381. package/resources/v1/events/beta/customers/assignments.js.map +0 -1
  382. package/resources/v1/events/beta/customers/assignments.mjs +0 -58
  383. package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
  384. package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
  385. package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
  386. package/resources/v1/events/beta/customers/customers.js.map +0 -1
  387. package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
  388. package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
  389. package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
  390. package/resources/v1/events/beta/customers/entities.js +0 -105
  391. package/resources/v1/events/beta/customers/entities.js.map +0 -1
  392. package/resources/v1/events/beta/customers/entities.mjs +0 -101
  393. package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
  394. package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
  395. package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
  396. package/resources/v1/events/beta/customers/entitlements.js +0 -26
  397. package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
  398. package/resources/v1/events/beta/customers/entitlements.mjs +0 -22
  399. package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
  400. package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
  401. package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
  402. package/resources/v1/events/beta/customers/index.js.map +0 -1
  403. package/resources/v1/events/beta/customers/index.mjs.map +0 -1
  404. package/resources/v1/events/beta/customers.d.mts.map +0 -1
  405. package/resources/v1/events/beta/customers.d.ts.map +0 -1
  406. package/resources/v1/events/beta/customers.js.map +0 -1
  407. package/resources/v1/events/beta/customers.mjs.map +0 -1
  408. package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
  409. package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
  410. package/resources/v1/events/beta/entity-types.js +0 -56
  411. package/resources/v1/events/beta/entity-types.js.map +0 -1
  412. package/resources/v1/events/beta/entity-types.mjs +0 -52
  413. package/resources/v1/events/beta/entity-types.mjs.map +0 -1
  414. package/resources/v1/events/beta/index.d.mts.map +0 -1
  415. package/resources/v1/events/beta/index.d.ts.map +0 -1
  416. package/resources/v1/events/beta/index.js.map +0 -1
  417. package/resources/v1/events/beta/index.mjs.map +0 -1
  418. package/resources/v1/events/beta.d.mts +0 -2
  419. package/resources/v1/events/beta.d.mts.map +0 -1
  420. package/resources/v1/events/beta.d.ts +0 -2
  421. package/resources/v1/events/beta.d.ts.map +0 -1
  422. package/resources/v1/events/beta.js.map +0 -1
  423. package/resources/v1/events/beta.mjs.map +0 -1
  424. package/src/resources/v1/events/beta/customers/assignments.ts +0 -228
  425. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
  426. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
  427. /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
  428. /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
  429. /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
  430. /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
  431. /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
  432. /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
  433. /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
@@ -1,10 +1,10 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
2
  import * as FutureUpdateAPI from "./future-update.js";
3
- import { CancelSubscription, FutureUpdate as FutureUpdateAPIFutureUpdate } from "./future-update.js";
3
+ import { CancelSubscription, FutureUpdate as FutureUpdateAPIFutureUpdate, FutureUpdateCancelPendingPaymentParams, FutureUpdateCancelScheduleParams } from "./future-update.js";
4
4
  import * as InvoiceAPI from "./invoice.js";
5
- import { Invoice, InvoiceMarkAsPaidResponse } from "./invoice.js";
5
+ import { Invoice, InvoiceMarkAsPaidParams, InvoiceMarkAsPaidResponse } from "./invoice.js";
6
6
  import * as UsageAPI from "./usage.js";
7
- import { Usage, UsageChargeUsageParams, UsageChargeUsageResponse, UsageSyncResponse } from "./usage.js";
7
+ import { Usage, UsageChargeUsageParams, UsageChargeUsageResponse, UsageSyncParams, UsageSyncResponse } from "./usage.js";
8
8
  import { APIPromise } from "../../../core/api-promise.js";
9
9
  import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
10
10
  import { RequestOptions } from "../../../internal/request-options.js";
@@ -15,134 +15,53 @@ export declare class Subscriptions extends APIResource {
15
15
  /**
16
16
  * Retrieves a subscription by its unique identifier, including plan details,
17
17
  * billing period, status, and add-ons.
18
- *
19
- * @example
20
- * ```ts
21
- * const subscription = await client.v1.subscriptions.retrieve(
22
- * 'x',
23
- * );
24
- * ```
25
18
  */
26
- retrieve(id: string, options?: RequestOptions): APIPromise<Subscription>;
19
+ retrieve(id: string, params?: SubscriptionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Subscription>;
27
20
  /**
28
21
  * Updates an active subscription's properties including billing period, add-ons,
29
22
  * unit quantities, and discounts.
30
- *
31
- * @example
32
- * ```ts
33
- * const subscription = await client.v1.subscriptions.update(
34
- * 'x',
35
- * );
36
- * ```
37
23
  */
38
- update(id: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription>;
24
+ update(id: string, params: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription>;
39
25
  /**
40
26
  * Retrieves a paginated list of subscriptions, with optional filters for customer,
41
27
  * status, and plan.
42
- *
43
- * @example
44
- * ```ts
45
- * // Automatically fetches more pages as needed.
46
- * for await (const subscriptionListResponse of client.v1.subscriptions.list()) {
47
- * // ...
48
- * }
49
- * ```
50
28
  */
51
- list(query?: SubscriptionListParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionListResponsesMyCursorIDPage, SubscriptionListResponse>;
29
+ list(params?: SubscriptionListParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionListResponsesMyCursorIDPage, SubscriptionListResponse>;
52
30
  /**
53
31
  * Cancels an active subscription, either immediately or at a specified time such
54
32
  * as end of billing period.
55
- *
56
- * @example
57
- * ```ts
58
- * const subscription = await client.v1.subscriptions.cancel(
59
- * 'x',
60
- * );
61
- * ```
62
33
  */
63
- cancel(id: string, body: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription>;
34
+ cancel(id: string, params: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription>;
64
35
  /**
65
36
  * Delegates the payment responsibility of a subscription to a different customer.
66
37
  * The delegated customer will be billed for this subscription.
67
- *
68
- * @example
69
- * ```ts
70
- * const subscription = await client.v1.subscriptions.delegate(
71
- * 'x',
72
- * { targetCustomerId: 'targetCustomerId' },
73
- * );
74
- * ```
75
38
  */
76
- delegate(id: string, body: SubscriptionDelegateParams, options?: RequestOptions): APIPromise<Subscription>;
39
+ delegate(id: string, params: SubscriptionDelegateParams, options?: RequestOptions): APIPromise<Subscription>;
77
40
  /**
78
41
  * Imports multiple subscriptions in bulk. Used for migrating subscription data
79
42
  * from external systems.
80
- *
81
- * @example
82
- * ```ts
83
- * const response = await client.v1.subscriptions.import({
84
- * subscriptions: [
85
- * {
86
- * id: 'id',
87
- * customerId: 'customerId',
88
- * planId: 'planId',
89
- * },
90
- * ],
91
- * });
92
- * ```
93
- */
94
- import(body: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse>;
43
+ */
44
+ import(params: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse>;
95
45
  /**
96
46
  * Migrates a subscription to the latest published version of its plan or add-ons.
97
47
  * Handles prorated charges or credits automatically.
98
- *
99
- * @example
100
- * ```ts
101
- * const subscription = await client.v1.subscriptions.migrate(
102
- * 'x',
103
- * );
104
- * ```
105
48
  */
106
- migrate(id: string, body: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription>;
49
+ migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription>;
107
50
  /**
108
51
  * Previews the pricing impact of creating or updating a subscription without
109
52
  * making changes. Returns estimated costs, taxes, and proration details.
110
- *
111
- * @example
112
- * ```ts
113
- * const response = await client.v1.subscriptions.preview({
114
- * customerId: 'customerId',
115
- * planId: 'planId',
116
- * });
117
- * ```
118
53
  */
119
- preview(body: SubscriptionPreviewParams, options?: RequestOptions): APIPromise<SubscriptionPreviewResponse>;
54
+ preview(params: SubscriptionPreviewParams, options?: RequestOptions): APIPromise<SubscriptionPreviewResponse>;
120
55
  /**
121
56
  * Creates a new subscription for an existing customer. When payment is required
122
57
  * and no payment method exists, returns a checkout URL.
123
- *
124
- * @example
125
- * ```ts
126
- * const response = await client.v1.subscriptions.provision({
127
- * customerId: 'customerId',
128
- * planId: 'planId',
129
- * });
130
- * ```
131
58
  */
132
- provision(body: SubscriptionProvisionParams, options?: RequestOptions): APIPromise<SubscriptionProvisionResponse>;
59
+ provision(params: SubscriptionProvisionParams, options?: RequestOptions): APIPromise<SubscriptionProvisionResponse>;
133
60
  /**
134
61
  * Transfers a subscription to a different resource ID. Used for multi-resource
135
62
  * products where subscriptions apply to specific entities like websites or apps.
136
- *
137
- * @example
138
- * ```ts
139
- * const subscription = await client.v1.subscriptions.transfer(
140
- * 'x',
141
- * { destinationResourceId: 'destinationResourceId' },
142
- * );
143
- * ```
144
- */
145
- transfer(id: string, body: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription>;
63
+ */
64
+ transfer(id: string, params: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription>;
146
65
  }
147
66
  export type SubscriptionListResponsesMyCursorIDPage = MyCursorIDPage<SubscriptionListResponse>;
148
67
  /**
@@ -1740,43 +1659,97 @@ export declare namespace SubscriptionProvisionResponse {
1740
1659
  }
1741
1660
  }
1742
1661
  }
1662
+ export interface SubscriptionRetrieveParams {
1663
+ /**
1664
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
1665
+ * back to the user's first membership. Ignored for API-key auth.
1666
+ */
1667
+ 'X-ACCOUNT-ID'?: string;
1668
+ /**
1669
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
1670
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
1671
+ * key).
1672
+ */
1673
+ 'X-ENVIRONMENT-ID'?: string;
1674
+ }
1743
1675
  export interface SubscriptionUpdateParams {
1676
+ /**
1677
+ * Body param
1678
+ */
1744
1679
  addons?: Array<SubscriptionUpdateParams.Addon>;
1680
+ /**
1681
+ * Body param
1682
+ */
1745
1683
  appliedCoupon?: SubscriptionUpdateParams.AppliedCoupon;
1746
1684
  /**
1747
- * Await payment confirmation
1685
+ * Body param: Await payment confirmation
1748
1686
  */
1749
1687
  awaitPaymentConfirmation?: boolean;
1688
+ /**
1689
+ * Body param
1690
+ */
1750
1691
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
1692
+ /**
1693
+ * Body param
1694
+ */
1751
1695
  billingInformation?: SubscriptionUpdateParams.BillingInformation;
1696
+ /**
1697
+ * Body param
1698
+ */
1752
1699
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
1700
+ /**
1701
+ * Body param
1702
+ */
1753
1703
  budget?: SubscriptionUpdateParams.Budget | null;
1754
1704
  /**
1755
- * Subscription cancellation date
1705
+ * Body param: Subscription cancellation date
1756
1706
  */
1757
1707
  cancellationDate?: string | null;
1708
+ /**
1709
+ * Body param
1710
+ */
1758
1711
  charges?: Array<SubscriptionUpdateParams.Charge>;
1712
+ /**
1713
+ * Body param
1714
+ */
1759
1715
  entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
1760
1716
  /**
1761
- * Additional metadata for the subscription
1717
+ * Body param: Additional metadata for the subscription
1762
1718
  */
1763
1719
  metadata?: {
1764
1720
  [key: string]: string;
1765
1721
  };
1766
1722
  /**
1767
- * Minimum spend amount
1723
+ * Body param: Minimum spend amount
1768
1724
  */
1769
1725
  minimumSpend?: SubscriptionUpdateParams.MinimumSpend | null;
1726
+ /**
1727
+ * Body param
1728
+ */
1770
1729
  priceOverrides?: Array<SubscriptionUpdateParams.PriceOverride>;
1771
1730
  /**
1772
- * Promotion code
1731
+ * Body param: Promotion code
1773
1732
  */
1774
1733
  promotionCode?: string;
1734
+ /**
1735
+ * Body param
1736
+ */
1775
1737
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
1776
1738
  /**
1777
- * Subscription trial end date
1739
+ * Body param: Subscription trial end date
1778
1740
  */
1779
1741
  trialEndDate?: string;
1742
+ /**
1743
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1744
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1745
+ */
1746
+ 'X-ACCOUNT-ID'?: string;
1747
+ /**
1748
+ * Header param: Environment ID — required when authenticating with a user JWT
1749
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1750
+ * intrinsic to the key).
1751
+ */
1752
+ 'X-ENVIRONMENT-ID'?: string;
1780
1753
  }
1781
1754
  export declare namespace SubscriptionUpdateParams {
1782
1755
  /**
@@ -2040,30 +2013,42 @@ export declare namespace SubscriptionUpdateParams {
2040
2013
  }
2041
2014
  export interface SubscriptionListParams extends MyCursorIDPageParams {
2042
2015
  /**
2043
- * Filter by creation date using range operators: gt, gte, lt, lte
2016
+ * Query param: Filter by creation date using range operators: gt, gte, lt, lte
2044
2017
  */
2045
2018
  createdAt?: SubscriptionListParams.CreatedAt;
2046
2019
  /**
2047
- * Filter by customer ID
2020
+ * Query param: Filter by customer ID
2048
2021
  */
2049
2022
  customerId?: string;
2050
2023
  /**
2051
- * Filter by plan ID
2024
+ * Query param: Filter by plan ID
2052
2025
  */
2053
2026
  planId?: string;
2054
2027
  /**
2055
- * Filter by pricing type. Supports comma-separated values for multiple types
2028
+ * Query param: Filter by pricing type. Supports comma-separated values for
2029
+ * multiple types
2056
2030
  */
2057
2031
  pricingType?: Array<'FREE' | 'PAID' | 'CUSTOM'>;
2058
2032
  /**
2059
- * Filter by resource ID
2033
+ * Query param: Filter by resource ID
2060
2034
  */
2061
2035
  resourceId?: string;
2062
2036
  /**
2063
- * Filter by subscription status. Supports comma-separated values for multiple
2064
- * statuses
2037
+ * Query param: Filter by subscription status. Supports comma-separated values for
2038
+ * multiple statuses
2065
2039
  */
2066
2040
  status?: Array<'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED'>;
2041
+ /**
2042
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2043
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2044
+ */
2045
+ 'X-ACCOUNT-ID'?: string;
2046
+ /**
2047
+ * Header param: Environment ID — required when authenticating with a user JWT
2048
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2049
+ * intrinsic to the key).
2050
+ */
2051
+ 'X-ENVIRONMENT-ID'?: string;
2067
2052
  }
2068
2053
  export declare namespace SubscriptionListParams {
2069
2054
  /**
@@ -2090,39 +2075,74 @@ export declare namespace SubscriptionListParams {
2090
2075
  }
2091
2076
  export interface SubscriptionCancelParams {
2092
2077
  /**
2093
- * Action on cancellation (downgrade or revoke)
2078
+ * Body param: Action on cancellation (downgrade or revoke)
2094
2079
  */
2095
2080
  cancellationAction?: 'DEFAULT' | 'REVOKE_ENTITLEMENTS';
2096
2081
  /**
2097
- * When to cancel (immediate, period end, or date)
2082
+ * Body param: When to cancel (immediate, period end, or date)
2098
2083
  */
2099
2084
  cancellationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
2100
2085
  /**
2101
- * Subscription end date
2086
+ * Body param: Subscription end date
2102
2087
  */
2103
2088
  endDate?: string;
2104
2089
  /**
2105
- * If set, enables or disables prorating of credits on subscription cancellation.
2090
+ * Body param: If set, enables or disables prorating of credits on subscription
2091
+ * cancellation.
2106
2092
  */
2107
2093
  prorate?: boolean;
2094
+ /**
2095
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2096
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2097
+ */
2098
+ 'X-ACCOUNT-ID'?: string;
2099
+ /**
2100
+ * Header param: Environment ID — required when authenticating with a user JWT
2101
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2102
+ * intrinsic to the key).
2103
+ */
2104
+ 'X-ENVIRONMENT-ID'?: string;
2108
2105
  }
2109
2106
  export interface SubscriptionDelegateParams {
2110
2107
  /**
2111
- * The unique identifier of the customer who will assume payment responsibility for
2112
- * this subscription. This customer must already exist in your Stigg account and
2113
- * have a valid payment method if the subscription requires payment.
2108
+ * Body param: The unique identifier of the customer who will assume payment
2109
+ * responsibility for this subscription. This customer must already exist in your
2110
+ * Stigg account and have a valid payment method if the subscription requires
2111
+ * payment.
2114
2112
  */
2115
2113
  targetCustomerId: string;
2114
+ /**
2115
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2116
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2117
+ */
2118
+ 'X-ACCOUNT-ID'?: string;
2119
+ /**
2120
+ * Header param: Environment ID — required when authenticating with a user JWT
2121
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2122
+ * intrinsic to the key).
2123
+ */
2124
+ 'X-ENVIRONMENT-ID'?: string;
2116
2125
  }
2117
2126
  export interface SubscriptionImportParams {
2118
2127
  /**
2119
- * List of subscription objects to import
2128
+ * Body param: List of subscription objects to import
2120
2129
  */
2121
2130
  subscriptions: Array<SubscriptionImportParams.Subscription>;
2122
2131
  /**
2123
- * Integration ID to use for importing subscriptions
2132
+ * Body param: Integration ID to use for importing subscriptions
2124
2133
  */
2125
2134
  integrationId?: string | null;
2135
+ /**
2136
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2137
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2138
+ */
2139
+ 'X-ACCOUNT-ID'?: string;
2140
+ /**
2141
+ * Header param: Environment ID — required when authenticating with a user JWT
2142
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2143
+ * intrinsic to the key).
2144
+ */
2145
+ 'X-ENVIRONMENT-ID'?: string;
2126
2146
  }
2127
2147
  export declare namespace SubscriptionImportParams {
2128
2148
  interface Subscription {
@@ -2203,75 +2223,97 @@ export declare namespace SubscriptionImportParams {
2203
2223
  }
2204
2224
  export interface SubscriptionMigrateParams {
2205
2225
  /**
2206
- * When to migrate (immediate or period end)
2226
+ * Body param: When to migrate (immediate or period end)
2207
2227
  */
2208
2228
  subscriptionMigrationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE';
2229
+ /**
2230
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2231
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2232
+ */
2233
+ 'X-ACCOUNT-ID'?: string;
2234
+ /**
2235
+ * Header param: Environment ID — required when authenticating with a user JWT
2236
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2237
+ * intrinsic to the key).
2238
+ */
2239
+ 'X-ENVIRONMENT-ID'?: string;
2209
2240
  }
2210
2241
  export interface SubscriptionPreviewParams {
2211
2242
  /**
2212
- * Customer ID
2243
+ * Body param: Customer ID
2213
2244
  */
2214
2245
  customerId: string;
2215
2246
  /**
2216
- * Plan ID
2247
+ * Body param: Plan ID
2217
2248
  */
2218
2249
  planId: string;
2219
2250
  /**
2220
- * Addons to include
2251
+ * Body param: Addons to include
2221
2252
  */
2222
2253
  addons?: Array<SubscriptionPreviewParams.Addon>;
2223
2254
  /**
2224
- * Coupon or discount to apply
2255
+ * Body param: Coupon or discount to apply
2225
2256
  */
2226
2257
  appliedCoupon?: SubscriptionPreviewParams.AppliedCoupon;
2227
2258
  /**
2228
- * Billable features with quantities
2259
+ * Body param: Billable features with quantities
2229
2260
  */
2230
2261
  billableFeatures?: Array<SubscriptionPreviewParams.BillableFeature>;
2231
2262
  /**
2232
- * ISO 3166-1 country code for localization
2263
+ * Body param: ISO 3166-1 country code for localization
2233
2264
  */
2234
2265
  billingCountryCode?: string;
2235
2266
  /**
2236
- * Billing cycle anchor behavior for the subscription
2267
+ * Body param: Billing cycle anchor behavior for the subscription
2237
2268
  */
2238
2269
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
2239
2270
  /**
2240
- * Billing and tax configuration
2271
+ * Body param: Billing and tax configuration
2241
2272
  */
2242
2273
  billingInformation?: SubscriptionPreviewParams.BillingInformation;
2243
2274
  /**
2244
- * Billing period (MONTHLY or ANNUALLY)
2275
+ * Body param: Billing period (MONTHLY or ANNUALLY)
2245
2276
  */
2246
2277
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
2247
2278
  /**
2248
- * One-time or recurring charges
2279
+ * Body param: One-time or recurring charges
2249
2280
  */
2250
2281
  charges?: Array<SubscriptionPreviewParams.Charge>;
2251
2282
  /**
2252
- * Paying customer ID for delegated billing
2283
+ * Body param: Paying customer ID for delegated billing
2253
2284
  */
2254
2285
  payingCustomerId?: string;
2255
2286
  /**
2256
- * Resource ID for multi-instance subscriptions
2287
+ * Body param: Resource ID for multi-instance subscriptions
2257
2288
  */
2258
2289
  resourceId?: string;
2259
2290
  /**
2260
- * When to apply subscription changes
2291
+ * Body param: When to apply subscription changes
2261
2292
  */
2262
2293
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
2263
2294
  /**
2264
- * Subscription start date
2295
+ * Body param: Subscription start date
2265
2296
  */
2266
2297
  startDate?: string;
2267
2298
  /**
2268
- * Trial period override settings
2299
+ * Body param: Trial period override settings
2269
2300
  */
2270
2301
  trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
2271
2302
  /**
2272
- * Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
2303
+ * Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
2273
2304
  */
2274
2305
  unitQuantity?: number;
2306
+ /**
2307
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2308
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2309
+ */
2310
+ 'X-ACCOUNT-ID'?: string;
2311
+ /**
2312
+ * Header param: Environment ID — required when authenticating with a user JWT
2313
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2314
+ * intrinsic to the key).
2315
+ */
2316
+ 'X-ENVIRONMENT-ID'?: string;
2275
2317
  }
2276
2318
  export declare namespace SubscriptionPreviewParams {
2277
2319
  /**
@@ -2488,97 +2530,127 @@ export declare namespace SubscriptionPreviewParams {
2488
2530
  }
2489
2531
  export interface SubscriptionProvisionParams {
2490
2532
  /**
2491
- * Customer ID to provision the subscription for
2533
+ * Body param: Customer ID to provision the subscription for
2492
2534
  */
2493
2535
  customerId: string;
2494
2536
  /**
2495
- * Plan ID to provision
2537
+ * Body param: Plan ID to provision
2496
2538
  */
2497
2539
  planId: string;
2498
2540
  /**
2499
- * Unique identifier for the subscription
2541
+ * Body param: Unique identifier for the subscription
2500
2542
  */
2501
2543
  id?: string;
2544
+ /**
2545
+ * Body param
2546
+ */
2502
2547
  addons?: Array<SubscriptionProvisionParams.Addon>;
2503
2548
  /**
2504
- * Coupon configuration
2549
+ * Body param: Coupon configuration
2505
2550
  */
2506
2551
  appliedCoupon?: SubscriptionProvisionParams.AppliedCoupon;
2507
2552
  /**
2508
- * Whether to wait for payment confirmation before returning the subscription
2553
+ * Body param: Whether to wait for payment confirmation before returning the
2554
+ * subscription
2509
2555
  */
2510
2556
  awaitPaymentConfirmation?: boolean;
2511
2557
  /**
2512
- * The ISO 3166-1 alpha-2 country code for billing
2558
+ * Body param: The ISO 3166-1 alpha-2 country code for billing
2513
2559
  */
2514
2560
  billingCountryCode?: string | null;
2515
2561
  /**
2516
- * Billing cycle anchor behavior for the subscription
2562
+ * Body param: Billing cycle anchor behavior for the subscription
2517
2563
  */
2518
2564
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
2519
2565
  /**
2520
- * External billing system identifier
2566
+ * Body param: External billing system identifier
2521
2567
  */
2522
2568
  billingId?: string | null;
2569
+ /**
2570
+ * Body param
2571
+ */
2523
2572
  billingInformation?: SubscriptionProvisionParams.BillingInformation;
2524
2573
  /**
2525
- * Billing period (MONTHLY or ANNUALLY)
2574
+ * Body param: Billing period (MONTHLY or ANNUALLY)
2526
2575
  */
2527
2576
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
2577
+ /**
2578
+ * Body param
2579
+ */
2528
2580
  budget?: SubscriptionProvisionParams.Budget | null;
2529
2581
  /**
2530
- * Subscription cancellation date
2582
+ * Body param: Subscription cancellation date
2531
2583
  */
2532
2584
  cancellationDate?: string;
2585
+ /**
2586
+ * Body param
2587
+ */
2533
2588
  charges?: Array<SubscriptionProvisionParams.Charge>;
2534
2589
  /**
2535
- * Checkout page configuration for payment collection
2590
+ * Body param: Checkout page configuration for payment collection
2536
2591
  */
2537
2592
  checkoutOptions?: SubscriptionProvisionParams.CheckoutOptions;
2593
+ /**
2594
+ * Body param
2595
+ */
2538
2596
  entitlements?: Array<SubscriptionProvisionParams.Feature | SubscriptionProvisionParams.Credit>;
2539
2597
  /**
2540
- * Additional metadata for the subscription
2598
+ * Body param: Additional metadata for the subscription
2541
2599
  */
2542
2600
  metadata?: {
2543
2601
  [key: string]: string;
2544
2602
  };
2545
2603
  /**
2546
- * Minimum spend amount
2604
+ * Body param: Minimum spend amount
2547
2605
  */
2548
2606
  minimumSpend?: SubscriptionProvisionParams.MinimumSpend | null;
2549
2607
  /**
2550
- * Optional paying customer ID for split billing scenarios
2608
+ * Body param: Optional paying customer ID for split billing scenarios
2551
2609
  */
2552
2610
  payingCustomerId?: string | null;
2553
2611
  /**
2554
- * How payments should be collected for this subscription
2612
+ * Body param: How payments should be collected for this subscription
2555
2613
  */
2556
2614
  paymentCollectionMethod?: 'CHARGE' | 'INVOICE' | 'NONE';
2615
+ /**
2616
+ * Body param
2617
+ */
2557
2618
  priceOverrides?: Array<SubscriptionProvisionParams.PriceOverride>;
2558
2619
  /**
2559
- * Optional resource ID for multi-instance subscriptions
2620
+ * Body param: Optional resource ID for multi-instance subscriptions
2560
2621
  */
2561
2622
  resourceId?: string | null;
2562
2623
  /**
2563
- * Salesforce ID
2624
+ * Body param: Salesforce ID
2564
2625
  */
2565
2626
  salesforceId?: string | null;
2566
2627
  /**
2567
- * Strategy for scheduling subscription changes
2628
+ * Body param: Strategy for scheduling subscription changes
2568
2629
  */
2569
2630
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
2570
2631
  /**
2571
- * Subscription start date
2632
+ * Body param: Subscription start date
2572
2633
  */
2573
2634
  startDate?: string;
2574
2635
  /**
2575
- * Trial period override settings
2636
+ * Body param: Trial period override settings
2576
2637
  */
2577
2638
  trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
2578
2639
  /**
2579
- * Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
2640
+ * Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
2580
2641
  */
2581
2642
  unitQuantity?: number;
2643
+ /**
2644
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2645
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2646
+ */
2647
+ 'X-ACCOUNT-ID'?: string;
2648
+ /**
2649
+ * Header param: Environment ID — required when authenticating with a user JWT
2650
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2651
+ * intrinsic to the key).
2652
+ */
2653
+ 'X-ENVIRONMENT-ID'?: string;
2582
2654
  }
2583
2655
  export declare namespace SubscriptionProvisionParams {
2584
2656
  /**
@@ -3020,14 +3092,25 @@ export declare namespace SubscriptionProvisionParams {
3020
3092
  }
3021
3093
  export interface SubscriptionTransferParams {
3022
3094
  /**
3023
- * Resource ID to transfer the subscription to
3095
+ * Body param: Resource ID to transfer the subscription to
3024
3096
  */
3025
3097
  destinationResourceId: string;
3098
+ /**
3099
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
3100
+ * token); falls back to the user's first membership. Ignored for API-key auth.
3101
+ */
3102
+ 'X-ACCOUNT-ID'?: string;
3103
+ /**
3104
+ * Header param: Environment ID — required when authenticating with a user JWT
3105
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
3106
+ * intrinsic to the key).
3107
+ */
3108
+ 'X-ENVIRONMENT-ID'?: string;
3026
3109
  }
3027
3110
  export declare namespace Subscriptions {
3028
- export { type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
3029
- export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription };
3030
- export { Usage as Usage, type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, };
3031
- export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse };
3111
+ export { type Subscription as Subscription, type SubscriptionListResponse as SubscriptionListResponse, type SubscriptionImportResponse as SubscriptionImportResponse, type SubscriptionPreviewResponse as SubscriptionPreviewResponse, type SubscriptionProvisionResponse as SubscriptionProvisionResponse, type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage, type SubscriptionRetrieveParams as SubscriptionRetrieveParams, type SubscriptionUpdateParams as SubscriptionUpdateParams, type SubscriptionListParams as SubscriptionListParams, type SubscriptionCancelParams as SubscriptionCancelParams, type SubscriptionDelegateParams as SubscriptionDelegateParams, type SubscriptionImportParams as SubscriptionImportParams, type SubscriptionMigrateParams as SubscriptionMigrateParams, type SubscriptionPreviewParams as SubscriptionPreviewParams, type SubscriptionProvisionParams as SubscriptionProvisionParams, type SubscriptionTransferParams as SubscriptionTransferParams, };
3112
+ export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription, type FutureUpdateCancelPendingPaymentParams as FutureUpdateCancelPendingPaymentParams, type FutureUpdateCancelScheduleParams as FutureUpdateCancelScheduleParams, };
3113
+ export { Usage as Usage, type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, type UsageSyncParams as UsageSyncParams, };
3114
+ export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse, type InvoiceMarkAsPaidParams as InvoiceMarkAsPaidParams, };
3032
3115
  }
3033
3116
  //# sourceMappingURL=subscriptions.d.ts.map