@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.21

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 (517) hide show
  1. package/CHANGELOG.md +170 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/pagination.d.mts.map +1 -1
  16. package/core/pagination.d.ts.map +1 -1
  17. package/core/pagination.mjs.map +1 -1
  18. package/core/resource.d.mts.map +1 -1
  19. package/core/resource.d.ts.map +1 -1
  20. package/core/uploads.d.mts.map +1 -1
  21. package/core/uploads.d.ts.map +1 -1
  22. package/core/uploads.mjs.map +1 -1
  23. package/error.d.mts +1 -0
  24. package/error.d.mts.map +1 -1
  25. package/error.d.ts +1 -0
  26. package/error.d.ts.map +1 -1
  27. package/error.mjs +1 -0
  28. package/error.mjs.map +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/internal/detect-platform.mjs.map +1 -1
  33. package/internal/headers.mjs.map +1 -1
  34. package/internal/parse.d.mts.map +1 -1
  35. package/internal/parse.d.ts.map +1 -1
  36. package/internal/parse.mjs.map +1 -1
  37. package/internal/qs/formats.d.mts.map +1 -1
  38. package/internal/qs/formats.d.ts.map +1 -1
  39. package/internal/qs/index.d.mts +2 -2
  40. package/internal/qs/index.d.mts.map +1 -1
  41. package/internal/qs/index.d.ts +2 -2
  42. package/internal/qs/index.d.ts.map +1 -1
  43. package/internal/qs/index.mjs.map +1 -1
  44. package/internal/qs/stringify.d.mts.map +1 -1
  45. package/internal/qs/stringify.d.ts.map +1 -1
  46. package/internal/qs/stringify.mjs.map +1 -1
  47. package/internal/qs/utils.d.mts.map +1 -1
  48. package/internal/qs/utils.d.ts.map +1 -1
  49. package/internal/qs/utils.mjs.map +1 -1
  50. package/internal/request-options.d.mts.map +1 -1
  51. package/internal/request-options.d.ts.map +1 -1
  52. package/internal/shims.d.mts +6 -0
  53. package/internal/shims.d.mts.map +1 -1
  54. package/internal/shims.d.ts +6 -0
  55. package/internal/shims.d.ts.map +1 -1
  56. package/internal/to-file.d.mts.map +1 -1
  57. package/internal/to-file.d.ts.map +1 -1
  58. package/internal/to-file.mjs.map +1 -1
  59. package/internal/types.d.mts +4 -4
  60. package/internal/types.d.mts.map +1 -1
  61. package/internal/types.d.ts +4 -4
  62. package/internal/types.d.ts.map +1 -1
  63. package/internal/uploads.d.mts.map +1 -1
  64. package/internal/uploads.d.ts.map +1 -1
  65. package/internal/uploads.mjs.map +1 -1
  66. package/internal/utils/base64.mjs.map +1 -1
  67. package/internal/utils/log.d.mts.map +1 -1
  68. package/internal/utils/log.d.ts.map +1 -1
  69. package/internal/utils/log.mjs.map +1 -1
  70. package/internal/utils/path.mjs.map +1 -1
  71. package/internal/utils/query.mjs.map +1 -1
  72. package/internal/utils/values.mjs.map +1 -1
  73. package/internal/utils.d.mts.map +1 -1
  74. package/internal/utils.d.ts.map +1 -1
  75. package/internal/utils.mjs.map +1 -1
  76. package/package.json +1 -1
  77. package/pagination.d.mts +1 -0
  78. package/pagination.d.mts.map +1 -1
  79. package/pagination.d.ts +1 -0
  80. package/pagination.d.ts.map +1 -1
  81. package/pagination.mjs +1 -0
  82. package/pagination.mjs.map +1 -1
  83. package/resource.d.mts +1 -0
  84. package/resource.d.mts.map +1 -1
  85. package/resource.d.ts +1 -0
  86. package/resource.d.ts.map +1 -1
  87. package/resource.mjs +1 -0
  88. package/resource.mjs.map +1 -1
  89. package/resources/index.d.mts.map +1 -1
  90. package/resources/index.d.ts.map +1 -1
  91. package/resources/index.mjs.map +1 -1
  92. package/resources/v1/addons/addons.d.mts +372 -32
  93. package/resources/v1/addons/addons.d.mts.map +1 -1
  94. package/resources/v1/addons/addons.d.ts +372 -32
  95. package/resources/v1/addons/addons.d.ts.map +1 -1
  96. package/resources/v1/addons/addons.js +173 -15
  97. package/resources/v1/addons/addons.js.map +1 -1
  98. package/resources/v1/addons/addons.mjs +173 -15
  99. package/resources/v1/addons/addons.mjs.map +1 -1
  100. package/resources/v1/addons/entitlements.d.mts +93 -5
  101. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  102. package/resources/v1/addons/entitlements.d.ts +93 -5
  103. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  104. package/resources/v1/addons/entitlements.js +80 -8
  105. package/resources/v1/addons/entitlements.js.map +1 -1
  106. package/resources/v1/addons/entitlements.mjs +80 -8
  107. package/resources/v1/addons/entitlements.mjs.map +1 -1
  108. package/resources/v1/addons/index.d.mts +2 -2
  109. package/resources/v1/addons/index.d.mts.map +1 -1
  110. package/resources/v1/addons/index.d.ts +2 -2
  111. package/resources/v1/addons/index.d.ts.map +1 -1
  112. package/resources/v1/addons/index.js.map +1 -1
  113. package/resources/v1/addons/index.mjs.map +1 -1
  114. package/resources/v1/addons.d.mts.map +1 -1
  115. package/resources/v1/addons.d.ts.map +1 -1
  116. package/resources/v1/addons.mjs.map +1 -1
  117. package/resources/v1/coupons.d.mts +117 -21
  118. package/resources/v1/coupons.d.mts.map +1 -1
  119. package/resources/v1/coupons.d.ts +117 -21
  120. package/resources/v1/coupons.d.ts.map +1 -1
  121. package/resources/v1/coupons.js +96 -9
  122. package/resources/v1/coupons.js.map +1 -1
  123. package/resources/v1/coupons.mjs +96 -9
  124. package/resources/v1/coupons.mjs.map +1 -1
  125. package/resources/v1/credits/credits.d.mts +212 -27
  126. package/resources/v1/credits/credits.d.mts.map +1 -1
  127. package/resources/v1/credits/credits.d.ts +212 -27
  128. package/resources/v1/credits/credits.d.ts.map +1 -1
  129. package/resources/v1/credits/credits.js +66 -7
  130. package/resources/v1/credits/credits.js.map +1 -1
  131. package/resources/v1/credits/credits.mjs +66 -7
  132. package/resources/v1/credits/credits.mjs.map +1 -1
  133. package/resources/v1/credits/custom-currencies.d.mts +150 -28
  134. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  135. package/resources/v1/credits/custom-currencies.d.ts +150 -28
  136. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  137. package/resources/v1/credits/custom-currencies.js +125 -12
  138. package/resources/v1/credits/custom-currencies.js.map +1 -1
  139. package/resources/v1/credits/custom-currencies.mjs +125 -12
  140. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  141. package/resources/v1/credits/grants.d.mts +91 -26
  142. package/resources/v1/credits/grants.d.mts.map +1 -1
  143. package/resources/v1/credits/grants.d.ts +91 -26
  144. package/resources/v1/credits/grants.d.ts.map +1 -1
  145. package/resources/v1/credits/grants.js +63 -5
  146. package/resources/v1/credits/grants.js.map +1 -1
  147. package/resources/v1/credits/grants.mjs +63 -5
  148. package/resources/v1/credits/grants.mjs.map +1 -1
  149. package/resources/v1/credits/index.d.mts +3 -4
  150. package/resources/v1/credits/index.d.mts.map +1 -1
  151. package/resources/v1/credits/index.d.ts +3 -4
  152. package/resources/v1/credits/index.d.ts.map +1 -1
  153. package/resources/v1/credits/index.js +1 -3
  154. package/resources/v1/credits/index.js.map +1 -1
  155. package/resources/v1/credits/index.mjs +0 -1
  156. package/resources/v1/credits/index.mjs.map +1 -1
  157. package/resources/v1/credits.d.mts.map +1 -1
  158. package/resources/v1/credits.d.ts.map +1 -1
  159. package/resources/v1/credits.mjs.map +1 -1
  160. package/resources/v1/customers/customers.d.mts +249 -55
  161. package/resources/v1/customers/customers.d.mts.map +1 -1
  162. package/resources/v1/customers/customers.d.ts +249 -55
  163. package/resources/v1/customers/customers.d.ts.map +1 -1
  164. package/resources/v1/customers/customers.js +201 -19
  165. package/resources/v1/customers/customers.js.map +1 -1
  166. package/resources/v1/customers/customers.mjs +201 -19
  167. package/resources/v1/customers/customers.mjs.map +1 -1
  168. package/resources/v1/customers/index.d.mts +2 -2
  169. package/resources/v1/customers/index.d.mts.map +1 -1
  170. package/resources/v1/customers/index.d.ts +2 -2
  171. package/resources/v1/customers/index.d.ts.map +1 -1
  172. package/resources/v1/customers/index.js.map +1 -1
  173. package/resources/v1/customers/index.mjs +1 -1
  174. package/resources/v1/customers/index.mjs.map +1 -1
  175. package/resources/v1/customers/integrations.d.mts +116 -14
  176. package/resources/v1/customers/integrations.d.mts.map +1 -1
  177. package/resources/v1/customers/integrations.d.ts +116 -14
  178. package/resources/v1/customers/integrations.d.ts.map +1 -1
  179. package/resources/v1/customers/integrations.js +104 -9
  180. package/resources/v1/customers/integrations.js.map +1 -1
  181. package/resources/v1/customers/integrations.mjs +104 -9
  182. package/resources/v1/customers/integrations.mjs.map +1 -1
  183. package/resources/v1/customers/payment-method.d.mts +48 -8
  184. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  185. package/resources/v1/customers/payment-method.d.ts +48 -8
  186. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  187. package/resources/v1/customers/payment-method.js +42 -4
  188. package/resources/v1/customers/payment-method.js.map +1 -1
  189. package/resources/v1/customers/payment-method.mjs +42 -4
  190. package/resources/v1/customers/payment-method.mjs.map +1 -1
  191. package/resources/v1/customers/promotional-entitlements.d.mts +93 -9
  192. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  193. package/resources/v1/customers/promotional-entitlements.d.ts +93 -9
  194. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  195. package/resources/v1/customers/promotional-entitlements.js +89 -6
  196. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  197. package/resources/v1/customers/promotional-entitlements.mjs +89 -6
  198. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  199. package/resources/v1/customers.d.mts.map +1 -1
  200. package/resources/v1/customers.d.ts.map +1 -1
  201. package/resources/v1/customers.mjs.map +1 -1
  202. package/resources/v1/events/beta/beta.d.mts +14 -0
  203. package/resources/v1/events/beta/beta.d.mts.map +1 -0
  204. package/resources/v1/events/beta/beta.d.ts +14 -0
  205. package/resources/v1/events/beta/beta.d.ts.map +1 -0
  206. package/resources/v1/events/beta/beta.js +21 -0
  207. package/resources/v1/events/beta/beta.js.map +1 -0
  208. package/resources/v1/events/beta/beta.mjs +16 -0
  209. package/resources/v1/events/beta/beta.mjs.map +1 -0
  210. package/resources/v1/events/beta/customers/assignments.d.mts +200 -0
  211. package/resources/v1/events/beta/customers/assignments.d.mts.map +1 -0
  212. package/resources/v1/events/beta/customers/assignments.d.ts +200 -0
  213. package/resources/v1/events/beta/customers/assignments.d.ts.map +1 -0
  214. package/resources/v1/events/beta/customers/assignments.js +85 -0
  215. package/resources/v1/events/beta/customers/assignments.js.map +1 -0
  216. package/resources/v1/events/beta/customers/assignments.mjs +81 -0
  217. package/resources/v1/events/beta/customers/assignments.mjs.map +1 -0
  218. package/resources/v1/events/beta/customers/customers.d.mts +18 -0
  219. package/resources/v1/events/beta/customers/customers.d.mts.map +1 -0
  220. package/resources/v1/events/beta/customers/customers.d.ts +18 -0
  221. package/resources/v1/events/beta/customers/customers.d.ts.map +1 -0
  222. package/resources/v1/events/beta/customers/customers.js +25 -0
  223. package/resources/v1/events/beta/customers/customers.js.map +1 -0
  224. package/resources/v1/events/beta/customers/customers.mjs +20 -0
  225. package/resources/v1/events/beta/customers/customers.mjs.map +1 -0
  226. package/resources/v1/events/beta/customers/entities.d.mts +360 -0
  227. package/resources/v1/events/beta/customers/entities.d.mts.map +1 -0
  228. package/resources/v1/events/beta/customers/entities.d.ts +360 -0
  229. package/resources/v1/events/beta/customers/entities.d.ts.map +1 -0
  230. package/resources/v1/events/beta/customers/entities.js +159 -0
  231. package/resources/v1/events/beta/customers/entities.js.map +1 -0
  232. package/resources/v1/events/beta/customers/entities.mjs +155 -0
  233. package/resources/v1/events/beta/customers/entities.mjs.map +1 -0
  234. package/resources/v1/events/beta/customers/entitlements.d.mts +251 -0
  235. package/resources/v1/events/beta/customers/entitlements.d.mts.map +1 -0
  236. package/resources/v1/events/beta/customers/entitlements.d.ts +251 -0
  237. package/resources/v1/events/beta/customers/entitlements.d.ts.map +1 -0
  238. package/resources/v1/events/beta/customers/entitlements.js +38 -0
  239. package/resources/v1/events/beta/customers/entitlements.js.map +1 -0
  240. package/resources/v1/events/beta/customers/entitlements.mjs +34 -0
  241. package/resources/v1/events/beta/customers/entitlements.mjs.map +1 -0
  242. package/resources/v1/events/beta/customers/index.d.mts +5 -0
  243. package/resources/v1/events/beta/customers/index.d.mts.map +1 -0
  244. package/resources/v1/events/beta/customers/index.d.ts +5 -0
  245. package/resources/v1/events/beta/customers/index.d.ts.map +1 -0
  246. package/resources/v1/events/beta/customers/index.js +13 -0
  247. package/resources/v1/events/beta/customers/index.js.map +1 -0
  248. package/resources/v1/events/beta/customers/index.mjs +6 -0
  249. package/resources/v1/events/beta/customers/index.mjs.map +1 -0
  250. package/resources/v1/events/beta/customers.d.mts +2 -0
  251. package/resources/v1/events/beta/customers.d.mts.map +1 -0
  252. package/resources/v1/events/beta/customers.d.ts +2 -0
  253. package/resources/v1/events/beta/customers.d.ts.map +1 -0
  254. package/resources/v1/events/beta/customers.js +6 -0
  255. package/resources/v1/events/beta/customers.js.map +1 -0
  256. package/resources/v1/events/beta/customers.mjs +3 -0
  257. package/resources/v1/events/beta/customers.mjs.map +1 -0
  258. package/resources/v1/events/beta/entity-types.d.mts +166 -0
  259. package/resources/v1/events/beta/entity-types.d.mts.map +1 -0
  260. package/resources/v1/events/beta/entity-types.d.ts +166 -0
  261. package/resources/v1/events/beta/entity-types.d.ts.map +1 -0
  262. package/resources/v1/events/beta/entity-types.js +76 -0
  263. package/resources/v1/events/beta/entity-types.js.map +1 -0
  264. package/resources/v1/events/beta/entity-types.mjs +72 -0
  265. package/resources/v1/events/beta/entity-types.mjs.map +1 -0
  266. package/resources/v1/events/beta/index.d.mts +4 -0
  267. package/resources/v1/events/beta/index.d.mts.map +1 -0
  268. package/resources/v1/events/beta/index.d.ts +4 -0
  269. package/resources/v1/events/beta/index.d.ts.map +1 -0
  270. package/resources/v1/events/beta/index.js +11 -0
  271. package/resources/v1/events/beta/index.js.map +1 -0
  272. package/resources/v1/events/beta/index.mjs +5 -0
  273. package/resources/v1/events/beta/index.mjs.map +1 -0
  274. package/resources/v1/events/beta.d.mts +2 -0
  275. package/resources/v1/events/beta.d.mts.map +1 -0
  276. package/resources/v1/events/beta.d.ts +2 -0
  277. package/resources/v1/events/beta.d.ts.map +1 -0
  278. package/resources/v1/events/beta.js +6 -0
  279. package/resources/v1/events/beta.js.map +1 -0
  280. package/resources/v1/events/beta.mjs +3 -0
  281. package/resources/v1/events/beta.mjs.map +1 -0
  282. package/resources/v1/events/data-export/data-export.d.mts +126 -0
  283. package/resources/v1/events/data-export/data-export.d.mts.map +1 -0
  284. package/resources/v1/events/data-export/data-export.d.ts +126 -0
  285. package/resources/v1/events/data-export/data-export.d.ts.map +1 -0
  286. package/resources/v1/events/data-export/data-export.js +45 -0
  287. package/resources/v1/events/data-export/data-export.js.map +1 -0
  288. package/resources/v1/events/data-export/data-export.mjs +40 -0
  289. package/resources/v1/events/data-export/data-export.mjs.map +1 -0
  290. package/resources/v1/events/data-export/destinations.d.mts +202 -0
  291. package/resources/v1/events/data-export/destinations.d.mts.map +1 -0
  292. package/resources/v1/events/data-export/destinations.d.ts +202 -0
  293. package/resources/v1/events/data-export/destinations.d.ts.map +1 -0
  294. package/resources/v1/events/data-export/destinations.js +41 -0
  295. package/resources/v1/events/data-export/destinations.js.map +1 -0
  296. package/resources/v1/events/data-export/destinations.mjs +37 -0
  297. package/resources/v1/events/data-export/destinations.mjs.map +1 -0
  298. package/resources/v1/events/data-export/index.d.mts +3 -0
  299. package/resources/v1/events/data-export/index.d.mts.map +1 -0
  300. package/resources/v1/events/data-export/index.d.ts +3 -0
  301. package/resources/v1/events/data-export/index.d.ts.map +1 -0
  302. package/resources/v1/events/data-export/index.js +9 -0
  303. package/resources/v1/events/data-export/index.js.map +1 -0
  304. package/resources/v1/events/data-export/index.mjs +4 -0
  305. package/resources/v1/events/data-export/index.mjs.map +1 -0
  306. package/resources/v1/events/data-export.d.mts +2 -0
  307. package/resources/v1/events/data-export.d.mts.map +1 -0
  308. package/resources/v1/events/data-export.d.ts +2 -0
  309. package/resources/v1/events/data-export.d.ts.map +1 -0
  310. package/resources/v1/events/data-export.js +6 -0
  311. package/resources/v1/events/data-export.js.map +1 -0
  312. package/resources/v1/events/data-export.mjs +3 -0
  313. package/resources/v1/events/data-export.mjs.map +1 -0
  314. package/resources/v1/events/events.d.mts +98 -0
  315. package/resources/v1/events/events.d.mts.map +1 -0
  316. package/resources/v1/events/events.d.ts +98 -0
  317. package/resources/v1/events/events.d.ts.map +1 -0
  318. package/resources/v1/events/events.js +56 -0
  319. package/resources/v1/events/events.js.map +1 -0
  320. package/resources/v1/events/events.mjs +51 -0
  321. package/resources/v1/events/events.mjs.map +1 -0
  322. package/resources/v1/events/index.d.mts +4 -0
  323. package/resources/v1/events/index.d.mts.map +1 -0
  324. package/resources/v1/events/index.d.ts +4 -0
  325. package/resources/v1/events/index.d.ts.map +1 -0
  326. package/resources/v1/events/index.js +11 -0
  327. package/resources/v1/events/index.js.map +1 -0
  328. package/resources/v1/events/index.mjs +5 -0
  329. package/resources/v1/events/index.mjs.map +1 -0
  330. package/resources/v1/events.d.mts +1 -65
  331. package/resources/v1/events.d.mts.map +1 -1
  332. package/resources/v1/events.d.ts +1 -65
  333. package/resources/v1/events.d.ts.map +1 -1
  334. package/resources/v1/events.js +2 -15
  335. package/resources/v1/events.js.map +1 -1
  336. package/resources/v1/events.mjs +1 -13
  337. package/resources/v1/events.mjs.map +1 -1
  338. package/resources/v1/features.d.mts +152 -31
  339. package/resources/v1/features.d.mts.map +1 -1
  340. package/resources/v1/features.d.ts +152 -31
  341. package/resources/v1/features.d.ts.map +1 -1
  342. package/resources/v1/features.js +115 -11
  343. package/resources/v1/features.js.map +1 -1
  344. package/resources/v1/features.mjs +115 -11
  345. package/resources/v1/features.mjs.map +1 -1
  346. package/resources/v1/index.d.mts +9 -9
  347. package/resources/v1/index.d.mts.map +1 -1
  348. package/resources/v1/index.d.ts +9 -9
  349. package/resources/v1/index.d.ts.map +1 -1
  350. package/resources/v1/index.js +6 -6
  351. package/resources/v1/index.js.map +1 -1
  352. package/resources/v1/index.mjs +1 -1
  353. package/resources/v1/index.mjs.map +1 -1
  354. package/resources/v1/plans/entitlements.d.mts +93 -5
  355. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  356. package/resources/v1/plans/entitlements.d.ts +93 -5
  357. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  358. package/resources/v1/plans/entitlements.js +80 -8
  359. package/resources/v1/plans/entitlements.js.map +1 -1
  360. package/resources/v1/plans/entitlements.mjs +80 -8
  361. package/resources/v1/plans/entitlements.mjs.map +1 -1
  362. package/resources/v1/plans/index.d.mts +2 -2
  363. package/resources/v1/plans/index.d.mts.map +1 -1
  364. package/resources/v1/plans/index.d.ts +2 -2
  365. package/resources/v1/plans/index.d.ts.map +1 -1
  366. package/resources/v1/plans/index.js.map +1 -1
  367. package/resources/v1/plans/index.mjs.map +1 -1
  368. package/resources/v1/plans/plans.d.mts +565 -32
  369. package/resources/v1/plans/plans.d.mts.map +1 -1
  370. package/resources/v1/plans/plans.d.ts +565 -32
  371. package/resources/v1/plans/plans.d.ts.map +1 -1
  372. package/resources/v1/plans/plans.js +204 -16
  373. package/resources/v1/plans/plans.js.map +1 -1
  374. package/resources/v1/plans/plans.mjs +204 -16
  375. package/resources/v1/plans/plans.mjs.map +1 -1
  376. package/resources/v1/plans.d.mts.map +1 -1
  377. package/resources/v1/plans.d.ts.map +1 -1
  378. package/resources/v1/plans.mjs.map +1 -1
  379. package/resources/v1/products.d.mts +140 -23
  380. package/resources/v1/products.d.mts.map +1 -1
  381. package/resources/v1/products.d.ts +140 -23
  382. package/resources/v1/products.d.ts.map +1 -1
  383. package/resources/v1/products.js +116 -11
  384. package/resources/v1/products.js.map +1 -1
  385. package/resources/v1/products.mjs +116 -11
  386. package/resources/v1/products.mjs.map +1 -1
  387. package/resources/v1/subscriptions/future-update.d.mts +45 -3
  388. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  389. package/resources/v1/subscriptions/future-update.d.ts +45 -3
  390. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  391. package/resources/v1/subscriptions/future-update.js +41 -4
  392. package/resources/v1/subscriptions/future-update.js.map +1 -1
  393. package/resources/v1/subscriptions/future-update.mjs +41 -4
  394. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  395. package/resources/v1/subscriptions/index.d.mts +4 -4
  396. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  397. package/resources/v1/subscriptions/index.d.ts +4 -4
  398. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  399. package/resources/v1/subscriptions/index.js.map +1 -1
  400. package/resources/v1/subscriptions/index.mjs +1 -1
  401. package/resources/v1/subscriptions/index.mjs.map +1 -1
  402. package/resources/v1/subscriptions/invoice.d.mts +21 -2
  403. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  404. package/resources/v1/subscriptions/invoice.d.ts +21 -2
  405. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  406. package/resources/v1/subscriptions/invoice.js +19 -2
  407. package/resources/v1/subscriptions/invoice.js.map +1 -1
  408. package/resources/v1/subscriptions/invoice.mjs +19 -2
  409. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  410. package/resources/v1/subscriptions/subscriptions.d.mts +341 -85
  411. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  412. package/resources/v1/subscriptions/subscriptions.d.ts +341 -85
  413. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  414. package/resources/v1/subscriptions/subscriptions.js +207 -19
  415. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  416. package/resources/v1/subscriptions/subscriptions.mjs +209 -21
  417. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  418. package/resources/v1/subscriptions/usage.d.mts +42 -4
  419. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  420. package/resources/v1/subscriptions/usage.d.ts +42 -4
  421. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  422. package/resources/v1/subscriptions/usage.js +39 -4
  423. package/resources/v1/subscriptions/usage.js.map +1 -1
  424. package/resources/v1/subscriptions/usage.mjs +39 -4
  425. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  426. package/resources/v1/subscriptions.d.mts.map +1 -1
  427. package/resources/v1/subscriptions.d.ts.map +1 -1
  428. package/resources/v1/subscriptions.mjs.map +1 -1
  429. package/resources/v1/usage.d.mts +48 -2
  430. package/resources/v1/usage.d.mts.map +1 -1
  431. package/resources/v1/usage.d.ts +48 -2
  432. package/resources/v1/usage.d.ts.map +1 -1
  433. package/resources/v1/usage.js +50 -4
  434. package/resources/v1/usage.js.map +1 -1
  435. package/resources/v1/usage.mjs +50 -4
  436. package/resources/v1/usage.mjs.map +1 -1
  437. package/resources/v1/v1.d.mts +18 -18
  438. package/resources/v1/v1.d.mts.map +1 -1
  439. package/resources/v1/v1.d.ts +18 -18
  440. package/resources/v1/v1.d.ts.map +1 -1
  441. package/resources/v1/v1.js +2 -2
  442. package/resources/v1/v1.js.map +1 -1
  443. package/resources/v1/v1.mjs +2 -2
  444. package/resources/v1/v1.mjs.map +1 -1
  445. package/resources/v1.d.mts.map +1 -1
  446. package/resources/v1.d.ts.map +1 -1
  447. package/resources/v1.mjs.map +1 -1
  448. package/resources.d.mts.map +1 -1
  449. package/resources.d.ts.map +1 -1
  450. package/resources.mjs.map +1 -1
  451. package/src/resources/v1/addons/addons.ts +908 -36
  452. package/src/resources/v1/addons/entitlements.ts +154 -10
  453. package/src/resources/v1/addons/index.ts +8 -0
  454. package/src/resources/v1/coupons.ts +194 -27
  455. package/src/resources/v1/credits/credits.ts +287 -35
  456. package/src/resources/v1/credits/custom-currencies.ts +245 -38
  457. package/src/resources/v1/credits/grants.ts +132 -26
  458. package/src/resources/v1/credits/index.ts +7 -6
  459. package/src/resources/v1/customers/customers.ts +415 -67
  460. package/src/resources/v1/customers/index.ts +8 -1
  461. package/src/resources/v1/customers/integrations.ts +184 -18
  462. package/src/resources/v1/customers/payment-method.ts +85 -10
  463. package/src/resources/v1/customers/promotional-entitlements.ts +133 -11
  464. package/src/resources/v1/events/beta/beta.ts +35 -0
  465. package/src/resources/v1/events/beta/customers/assignments.ts +277 -0
  466. package/src/resources/v1/events/beta/customers/customers.ts +71 -0
  467. package/src/resources/v1/events/beta/customers/entities.ts +501 -0
  468. package/src/resources/v1/events/beta/customers/entitlements.ts +354 -0
  469. package/src/resources/v1/events/beta/customers/index.ts +26 -0
  470. package/src/resources/v1/events/beta/customers.ts +3 -0
  471. package/src/resources/v1/events/beta/entity-types.ts +226 -0
  472. package/src/resources/v1/events/beta/index.ts +12 -0
  473. package/src/resources/v1/events/beta.ts +3 -0
  474. package/src/resources/v1/events/data-export/data-export.ts +170 -0
  475. package/src/resources/v1/events/data-export/destinations.ts +243 -0
  476. package/src/resources/v1/events/data-export/index.ts +15 -0
  477. package/src/resources/v1/events/data-export.ts +3 -0
  478. package/src/resources/v1/events/events.ts +141 -0
  479. package/src/resources/v1/events/index.ts +11 -0
  480. package/src/resources/v1/events.ts +1 -75
  481. package/src/resources/v1/features.ts +252 -39
  482. package/src/resources/v1/index.ts +31 -1
  483. package/src/resources/v1/plans/entitlements.ts +154 -10
  484. package/src/resources/v1/plans/index.ts +11 -0
  485. package/src/resources/v1/plans/plans.ts +1509 -37
  486. package/src/resources/v1/products.ts +235 -30
  487. package/src/resources/v1/subscriptions/future-update.ts +84 -5
  488. package/src/resources/v1/subscriptions/index.ts +9 -2
  489. package/src/resources/v1/subscriptions/invoice.ts +42 -3
  490. package/src/resources/v1/subscriptions/subscriptions.ts +509 -90
  491. package/src/resources/v1/subscriptions/usage.ts +74 -5
  492. package/src/resources/v1/usage.ts +77 -5
  493. package/src/resources/v1/v1.ts +62 -2
  494. package/src/version.ts +1 -1
  495. package/uploads.d.mts +1 -0
  496. package/uploads.d.mts.map +1 -1
  497. package/uploads.d.ts +1 -0
  498. package/uploads.d.ts.map +1 -1
  499. package/uploads.mjs +1 -0
  500. package/uploads.mjs.map +1 -1
  501. package/version.d.mts +1 -1
  502. package/version.d.mts.map +1 -1
  503. package/version.d.ts +1 -1
  504. package/version.d.ts.map +1 -1
  505. package/version.js +1 -1
  506. package/version.js.map +1 -1
  507. package/version.mjs +1 -1
  508. package/version.mjs.map +1 -1
  509. package/resources/v1/credits/auto-recharge.d.mts +0 -84
  510. package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
  511. package/resources/v1/credits/auto-recharge.d.ts +0 -84
  512. package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
  513. package/resources/v1/credits/auto-recharge.js +0 -16
  514. package/resources/v1/credits/auto-recharge.js.map +0 -1
  515. package/resources/v1/credits/auto-recharge.mjs +0 -12
  516. package/resources/v1/credits/auto-recharge.mjs.map +0 -1
  517. package/src/resources/v1/credits/auto-recharge.ts +0 -109
@@ -2,13 +2,25 @@
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
4
  import * as FutureUpdateAPI from './future-update';
5
- import { CancelSubscription, FutureUpdate as FutureUpdateAPIFutureUpdate } from './future-update';
5
+ import {
6
+ CancelSubscription,
7
+ FutureUpdate as FutureUpdateAPIFutureUpdate,
8
+ FutureUpdateCancelPendingPaymentParams,
9
+ FutureUpdateCancelScheduleParams,
10
+ } from './future-update';
6
11
  import * as InvoiceAPI from './invoice';
7
- import { Invoice, InvoiceMarkAsPaidResponse } from './invoice';
12
+ import { Invoice, InvoiceMarkAsPaidParams, InvoiceMarkAsPaidResponse } from './invoice';
8
13
  import * as UsageAPI from './usage';
9
- import { Usage, UsageChargeUsageParams, UsageChargeUsageResponse, UsageSyncResponse } from './usage';
14
+ import {
15
+ Usage,
16
+ UsageChargeUsageParams,
17
+ UsageChargeUsageResponse,
18
+ UsageSyncParams,
19
+ UsageSyncResponse,
20
+ } from './usage';
10
21
  import { APIPromise } from '../../../core/api-promise';
11
22
  import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
23
+ import { buildHeaders } from '../../../internal/headers';
12
24
  import { RequestOptions } from '../../../internal/request-options';
13
25
  import { path } from '../../../internal/utils/path';
14
26
 
@@ -20,93 +32,292 @@ export class Subscriptions extends APIResource {
20
32
  /**
21
33
  * Retrieves a subscription by its unique identifier, including plan details,
22
34
  * billing period, status, and add-ons.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const subscription = await client.v1.subscriptions.retrieve(
39
+ * 'x',
40
+ * );
41
+ * ```
23
42
  */
24
- retrieve(id: string, options?: RequestOptions): APIPromise<Subscription> {
25
- return this._client.get(path`/api/v1/subscriptions/${id}`, options);
43
+ retrieve(
44
+ id: string,
45
+ params: SubscriptionRetrieveParams | null | undefined = {},
46
+ options?: RequestOptions,
47
+ ): APIPromise<Subscription> {
48
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
49
+ return this._client.get(path`/api/v1/subscriptions/${id}`, {
50
+ ...options,
51
+ headers: buildHeaders([
52
+ {
53
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
54
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
55
+ },
56
+ options?.headers,
57
+ ]),
58
+ });
26
59
  }
27
60
 
28
61
  /**
29
62
  * Updates an active subscription's properties including billing period, add-ons,
30
63
  * unit quantities, and discounts.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * const subscription = await client.v1.subscriptions.update(
68
+ * 'x',
69
+ * );
70
+ * ```
31
71
  */
32
- update(id: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription> {
33
- return this._client.patch(path`/api/v1/subscriptions/${id}`, { body, ...options });
72
+ update(id: string, params: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription> {
73
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
74
+ return this._client.patch(path`/api/v1/subscriptions/${id}`, {
75
+ body,
76
+ ...options,
77
+ headers: buildHeaders([
78
+ {
79
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
80
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
81
+ },
82
+ options?.headers,
83
+ ]),
84
+ });
34
85
  }
35
86
 
36
87
  /**
37
88
  * Retrieves a paginated list of subscriptions, with optional filters for customer,
38
89
  * status, and plan.
90
+ *
91
+ * @example
92
+ * ```ts
93
+ * // Automatically fetches more pages as needed.
94
+ * for await (const subscriptionListResponse of client.v1.subscriptions.list()) {
95
+ * // ...
96
+ * }
97
+ * ```
39
98
  */
40
99
  list(
41
- query: SubscriptionListParams | null | undefined = {},
100
+ params: SubscriptionListParams | null | undefined = {},
42
101
  options?: RequestOptions,
43
102
  ): PagePromise<SubscriptionListResponsesMyCursorIDPage, SubscriptionListResponse> {
103
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...query } = params ?? {};
44
104
  return this._client.getAPIList('/api/v1/subscriptions', MyCursorIDPage<SubscriptionListResponse>, {
45
105
  query,
46
106
  ...options,
107
+ headers: buildHeaders([
108
+ {
109
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
110
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
111
+ },
112
+ options?.headers,
113
+ ]),
47
114
  });
48
115
  }
49
116
 
50
117
  /**
51
118
  * Cancels an active subscription, either immediately or at a specified time such
52
119
  * as end of billing period.
120
+ *
121
+ * @example
122
+ * ```ts
123
+ * const subscription = await client.v1.subscriptions.cancel(
124
+ * 'x',
125
+ * );
126
+ * ```
53
127
  */
54
- cancel(id: string, body: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription> {
55
- return this._client.post(path`/api/v1/subscriptions/${id}/cancel`, { body, ...options });
128
+ cancel(id: string, params: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription> {
129
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
130
+ return this._client.post(path`/api/v1/subscriptions/${id}/cancel`, {
131
+ body,
132
+ ...options,
133
+ headers: buildHeaders([
134
+ {
135
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
136
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
137
+ },
138
+ options?.headers,
139
+ ]),
140
+ });
56
141
  }
57
142
 
58
143
  /**
59
144
  * Delegates the payment responsibility of a subscription to a different customer.
60
145
  * The delegated customer will be billed for this subscription.
146
+ *
147
+ * @example
148
+ * ```ts
149
+ * const subscription = await client.v1.subscriptions.delegate(
150
+ * 'x',
151
+ * { targetCustomerId: 'targetCustomerId' },
152
+ * );
153
+ * ```
61
154
  */
62
- delegate(id: string, body: SubscriptionDelegateParams, options?: RequestOptions): APIPromise<Subscription> {
63
- return this._client.post(path`/api/v1/subscriptions/${id}/delegate`, { body, ...options });
155
+ delegate(
156
+ id: string,
157
+ params: SubscriptionDelegateParams,
158
+ options?: RequestOptions,
159
+ ): APIPromise<Subscription> {
160
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
161
+ return this._client.post(path`/api/v1/subscriptions/${id}/delegate`, {
162
+ body,
163
+ ...options,
164
+ headers: buildHeaders([
165
+ {
166
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
167
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
168
+ },
169
+ options?.headers,
170
+ ]),
171
+ });
64
172
  }
65
173
 
66
174
  /**
67
175
  * Imports multiple subscriptions in bulk. Used for migrating subscription data
68
176
  * from external systems.
177
+ *
178
+ * @example
179
+ * ```ts
180
+ * const response = await client.v1.subscriptions.import({
181
+ * subscriptions: [
182
+ * {
183
+ * id: 'id',
184
+ * customerId: 'customerId',
185
+ * planId: 'planId',
186
+ * },
187
+ * ],
188
+ * });
189
+ * ```
69
190
  */
70
- import(body: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse> {
71
- return this._client.post('/api/v1/subscriptions/import', { body, ...options });
191
+ import(params: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse> {
192
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
193
+ return this._client.post('/api/v1/subscriptions/import', {
194
+ body,
195
+ ...options,
196
+ headers: buildHeaders([
197
+ {
198
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
199
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
200
+ },
201
+ options?.headers,
202
+ ]),
203
+ });
72
204
  }
73
205
 
74
206
  /**
75
207
  * Migrates a subscription to the latest published version of its plan or add-ons.
76
208
  * Handles prorated charges or credits automatically.
209
+ *
210
+ * @example
211
+ * ```ts
212
+ * const subscription = await client.v1.subscriptions.migrate(
213
+ * 'x',
214
+ * );
215
+ * ```
77
216
  */
78
- migrate(id: string, body: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription> {
79
- return this._client.post(path`/api/v1/subscriptions/${id}/migrate`, { body, ...options });
217
+ migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription> {
218
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
219
+ return this._client.post(path`/api/v1/subscriptions/${id}/migrate`, {
220
+ body,
221
+ ...options,
222
+ headers: buildHeaders([
223
+ {
224
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
225
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
226
+ },
227
+ options?.headers,
228
+ ]),
229
+ });
80
230
  }
81
231
 
82
232
  /**
83
233
  * Previews the pricing impact of creating or updating a subscription without
84
234
  * making changes. Returns estimated costs, taxes, and proration details.
235
+ *
236
+ * @example
237
+ * ```ts
238
+ * const response = await client.v1.subscriptions.preview({
239
+ * customerId: 'customerId',
240
+ * planId: 'planId',
241
+ * });
242
+ * ```
85
243
  */
86
244
  preview(
87
- body: SubscriptionPreviewParams,
245
+ params: SubscriptionPreviewParams,
88
246
  options?: RequestOptions,
89
247
  ): APIPromise<SubscriptionPreviewResponse> {
90
- return this._client.post('/api/v1/subscriptions/preview', { body, ...options });
248
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
249
+ return this._client.post('/api/v1/subscriptions/preview', {
250
+ body,
251
+ ...options,
252
+ headers: buildHeaders([
253
+ {
254
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
255
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
256
+ },
257
+ options?.headers,
258
+ ]),
259
+ });
91
260
  }
92
261
 
93
262
  /**
94
263
  * Creates a new subscription for an existing customer. When payment is required
95
264
  * and no payment method exists, returns a checkout URL.
265
+ *
266
+ * @example
267
+ * ```ts
268
+ * const response = await client.v1.subscriptions.provision({
269
+ * customerId: 'customerId',
270
+ * planId: 'planId',
271
+ * });
272
+ * ```
96
273
  */
97
274
  provision(
98
- body: SubscriptionProvisionParams,
275
+ params: SubscriptionProvisionParams,
99
276
  options?: RequestOptions,
100
277
  ): APIPromise<SubscriptionProvisionResponse> {
101
- return this._client.post('/api/v1/subscriptions', { body, ...options });
278
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
279
+ return this._client.post('/api/v1/subscriptions', {
280
+ body,
281
+ ...options,
282
+ headers: buildHeaders([
283
+ {
284
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
285
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
286
+ },
287
+ options?.headers,
288
+ ]),
289
+ });
102
290
  }
103
291
 
104
292
  /**
105
293
  * Transfers a subscription to a different resource ID. Used for multi-resource
106
294
  * products where subscriptions apply to specific entities like websites or apps.
295
+ *
296
+ * @example
297
+ * ```ts
298
+ * const subscription = await client.v1.subscriptions.transfer(
299
+ * 'x',
300
+ * { destinationResourceId: 'destinationResourceId' },
301
+ * );
302
+ * ```
107
303
  */
108
- transfer(id: string, body: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription> {
109
- return this._client.post(path`/api/v1/subscriptions/${id}/transfer`, { body, ...options });
304
+ transfer(
305
+ id: string,
306
+ params: SubscriptionTransferParams,
307
+ options?: RequestOptions,
308
+ ): APIPromise<Subscription> {
309
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
310
+ return this._client.post(path`/api/v1/subscriptions/${id}/transfer`, {
311
+ body,
312
+ ...options,
313
+ headers: buildHeaders([
314
+ {
315
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
316
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
317
+ },
318
+ options?.headers,
319
+ ]),
320
+ });
110
321
  }
111
322
  }
112
323
 
@@ -3883,51 +4094,114 @@ export namespace SubscriptionProvisionResponse {
3883
4094
  }
3884
4095
  }
3885
4096
 
4097
+ export interface SubscriptionRetrieveParams {
4098
+ /**
4099
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
4100
+ * back to the user's first membership. Ignored for API-key auth.
4101
+ */
4102
+ 'X-ACCOUNT-ID'?: string;
4103
+
4104
+ /**
4105
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
4106
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
4107
+ * key).
4108
+ */
4109
+ 'X-ENVIRONMENT-ID'?: string;
4110
+ }
4111
+
3886
4112
  export interface SubscriptionUpdateParams {
4113
+ /**
4114
+ * Body param
4115
+ */
3887
4116
  addons?: Array<SubscriptionUpdateParams.Addon>;
3888
4117
 
4118
+ /**
4119
+ * Body param
4120
+ */
3889
4121
  appliedCoupon?: SubscriptionUpdateParams.AppliedCoupon;
3890
4122
 
3891
4123
  /**
3892
- * Await payment confirmation
4124
+ * Body param: Await payment confirmation
3893
4125
  */
3894
4126
  awaitPaymentConfirmation?: boolean;
3895
4127
 
4128
+ /**
4129
+ * Body param
4130
+ */
3896
4131
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
3897
4132
 
4133
+ /**
4134
+ * Body param
4135
+ */
3898
4136
  billingInformation?: SubscriptionUpdateParams.BillingInformation;
3899
4137
 
4138
+ /**
4139
+ * Body param
4140
+ */
3900
4141
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
3901
4142
 
4143
+ /**
4144
+ * Body param
4145
+ */
3902
4146
  budget?: SubscriptionUpdateParams.Budget | null;
3903
4147
 
4148
+ /**
4149
+ * Body param: Subscription cancellation date
4150
+ */
4151
+ cancellationDate?: string | null;
4152
+
4153
+ /**
4154
+ * Body param
4155
+ */
3904
4156
  charges?: Array<SubscriptionUpdateParams.Charge>;
3905
4157
 
4158
+ /**
4159
+ * Body param
4160
+ */
3906
4161
  entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
3907
4162
 
3908
4163
  /**
3909
- * Additional metadata for the subscription
4164
+ * Body param: Additional metadata for the subscription
3910
4165
  */
3911
4166
  metadata?: { [key: string]: string };
3912
4167
 
3913
4168
  /**
3914
- * Minimum spend amount
4169
+ * Body param: Minimum spend amount
3915
4170
  */
3916
4171
  minimumSpend?: SubscriptionUpdateParams.MinimumSpend | null;
3917
4172
 
4173
+ /**
4174
+ * Body param
4175
+ */
3918
4176
  priceOverrides?: Array<SubscriptionUpdateParams.PriceOverride>;
3919
4177
 
3920
4178
  /**
3921
- * Promotion code
4179
+ * Body param: Promotion code
3922
4180
  */
3923
4181
  promotionCode?: string;
3924
4182
 
4183
+ /**
4184
+ * Body param
4185
+ */
3925
4186
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
3926
4187
 
3927
4188
  /**
3928
- * Subscription trial end date
4189
+ * Body param: Subscription trial end date
3929
4190
  */
3930
4191
  trialEndDate?: string;
4192
+
4193
+ /**
4194
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
4195
+ * token); falls back to the user's first membership. Ignored for API-key auth.
4196
+ */
4197
+ 'X-ACCOUNT-ID'?: string;
4198
+
4199
+ /**
4200
+ * Header param: Environment ID — required when authenticating with a user JWT
4201
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
4202
+ * intrinsic to the key).
4203
+ */
4204
+ 'X-ENVIRONMENT-ID'?: string;
3931
4205
  }
3932
4206
 
3933
4207
  export namespace SubscriptionUpdateParams {
@@ -4610,35 +4884,49 @@ export namespace SubscriptionUpdateParams {
4610
4884
 
4611
4885
  export interface SubscriptionListParams extends MyCursorIDPageParams {
4612
4886
  /**
4613
- * Filter by creation date using range operators: gt, gte, lt, lte
4887
+ * Query param: Filter by creation date using range operators: gt, gte, lt, lte
4614
4888
  */
4615
4889
  createdAt?: SubscriptionListParams.CreatedAt;
4616
4890
 
4617
4891
  /**
4618
- * Filter by customer ID
4892
+ * Query param: Filter by customer ID
4619
4893
  */
4620
4894
  customerId?: string;
4621
4895
 
4622
4896
  /**
4623
- * Filter by plan ID
4897
+ * Query param: Filter by plan ID
4624
4898
  */
4625
4899
  planId?: string;
4626
4900
 
4627
4901
  /**
4628
- * Filter by pricing type. Supports comma-separated values for multiple types
4902
+ * Query param: Filter by pricing type. Supports comma-separated values for
4903
+ * multiple types
4629
4904
  */
4630
4905
  pricingType?: Array<'FREE' | 'PAID' | 'CUSTOM'>;
4631
4906
 
4632
4907
  /**
4633
- * Filter by resource ID
4908
+ * Query param: Filter by resource ID
4634
4909
  */
4635
4910
  resourceId?: string;
4636
4911
 
4637
4912
  /**
4638
- * Filter by subscription status. Supports comma-separated values for multiple
4639
- * statuses
4913
+ * Query param: Filter by subscription status. Supports comma-separated values for
4914
+ * multiple statuses
4640
4915
  */
4641
4916
  status?: Array<'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED'>;
4917
+
4918
+ /**
4919
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
4920
+ * token); falls back to the user's first membership. Ignored for API-key auth.
4921
+ */
4922
+ 'X-ACCOUNT-ID'?: string;
4923
+
4924
+ /**
4925
+ * Header param: Environment ID — required when authenticating with a user JWT
4926
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
4927
+ * intrinsic to the key).
4928
+ */
4929
+ 'X-ENVIRONMENT-ID'?: string;
4642
4930
  }
4643
4931
 
4644
4932
  export namespace SubscriptionListParams {
@@ -4670,45 +4958,86 @@ export namespace SubscriptionListParams {
4670
4958
 
4671
4959
  export interface SubscriptionCancelParams {
4672
4960
  /**
4673
- * Action on cancellation (downgrade or revoke)
4961
+ * Body param: Action on cancellation (downgrade or revoke)
4674
4962
  */
4675
4963
  cancellationAction?: 'DEFAULT' | 'REVOKE_ENTITLEMENTS';
4676
4964
 
4677
4965
  /**
4678
- * When to cancel (immediate, period end, or date)
4966
+ * Body param: When to cancel (immediate, period end, or date)
4679
4967
  */
4680
4968
  cancellationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
4681
4969
 
4682
4970
  /**
4683
- * Subscription end date
4971
+ * Body param: Subscription end date
4684
4972
  */
4685
4973
  endDate?: string;
4686
4974
 
4687
4975
  /**
4688
- * If set, enables or disables prorating of credits on subscription cancellation.
4976
+ * Body param: If set, enables or disables prorating of credits on subscription
4977
+ * cancellation.
4689
4978
  */
4690
4979
  prorate?: boolean;
4980
+
4981
+ /**
4982
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
4983
+ * token); falls back to the user's first membership. Ignored for API-key auth.
4984
+ */
4985
+ 'X-ACCOUNT-ID'?: string;
4986
+
4987
+ /**
4988
+ * Header param: Environment ID — required when authenticating with a user JWT
4989
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
4990
+ * intrinsic to the key).
4991
+ */
4992
+ 'X-ENVIRONMENT-ID'?: string;
4691
4993
  }
4692
4994
 
4693
4995
  export interface SubscriptionDelegateParams {
4694
4996
  /**
4695
- * The unique identifier of the customer who will assume payment responsibility for
4696
- * this subscription. This customer must already exist in your Stigg account and
4697
- * have a valid payment method if the subscription requires payment.
4997
+ * Body param: The unique identifier of the customer who will assume payment
4998
+ * responsibility for this subscription. This customer must already exist in your
4999
+ * Stigg account and have a valid payment method if the subscription requires
5000
+ * payment.
4698
5001
  */
4699
5002
  targetCustomerId: string;
5003
+
5004
+ /**
5005
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
5006
+ * token); falls back to the user's first membership. Ignored for API-key auth.
5007
+ */
5008
+ 'X-ACCOUNT-ID'?: string;
5009
+
5010
+ /**
5011
+ * Header param: Environment ID — required when authenticating with a user JWT
5012
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
5013
+ * intrinsic to the key).
5014
+ */
5015
+ 'X-ENVIRONMENT-ID'?: string;
4700
5016
  }
4701
5017
 
4702
5018
  export interface SubscriptionImportParams {
4703
5019
  /**
4704
- * List of subscription objects to import
5020
+ * Body param: List of subscription objects to import
4705
5021
  */
4706
5022
  subscriptions: Array<SubscriptionImportParams.Subscription>;
4707
5023
 
4708
5024
  /**
4709
- * Integration ID to use for importing subscriptions
5025
+ * Body param: Integration ID to use for importing subscriptions
4710
5026
  */
4711
5027
  integrationId?: string | null;
5028
+
5029
+ /**
5030
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
5031
+ * token); falls back to the user's first membership. Ignored for API-key auth.
5032
+ */
5033
+ 'X-ACCOUNT-ID'?: string;
5034
+
5035
+ /**
5036
+ * Header param: Environment ID — required when authenticating with a user JWT
5037
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
5038
+ * intrinsic to the key).
5039
+ */
5040
+ 'X-ENVIRONMENT-ID'?: string;
4712
5041
  }
4713
5042
 
4714
5043
  export namespace SubscriptionImportParams {
@@ -4780,7 +5109,8 @@ export namespace SubscriptionImportParams {
4780
5109
  }
4781
5110
 
4782
5111
  /**
4783
- * Charge item
5112
+ * A charge selection for a subscription (references a catalog charge with a
5113
+ * quantity).
4784
5114
  */
4785
5115
  export interface Charge {
4786
5116
  /**
@@ -4789,7 +5119,7 @@ export namespace SubscriptionImportParams {
4789
5119
  id: string;
4790
5120
 
4791
5121
  /**
4792
- * Charge quantity
5122
+ * Charge quantity. Minimum is 0 (zero is allowed).
4793
5123
  */
4794
5124
  quantity: number;
4795
5125
 
@@ -4803,91 +5133,117 @@ export namespace SubscriptionImportParams {
4803
5133
 
4804
5134
  export interface SubscriptionMigrateParams {
4805
5135
  /**
4806
- * When to migrate (immediate or period end)
5136
+ * Body param: When to migrate (immediate or period end)
4807
5137
  */
4808
5138
  subscriptionMigrationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE';
5139
+
5140
+ /**
5141
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
5142
+ * token); falls back to the user's first membership. Ignored for API-key auth.
5143
+ */
5144
+ 'X-ACCOUNT-ID'?: string;
5145
+
5146
+ /**
5147
+ * Header param: Environment ID — required when authenticating with a user JWT
5148
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
5149
+ * intrinsic to the key).
5150
+ */
5151
+ 'X-ENVIRONMENT-ID'?: string;
4809
5152
  }
4810
5153
 
4811
5154
  export interface SubscriptionPreviewParams {
4812
5155
  /**
4813
- * Customer ID
5156
+ * Body param: Customer ID
4814
5157
  */
4815
5158
  customerId: string;
4816
5159
 
4817
5160
  /**
4818
- * Plan ID
5161
+ * Body param: Plan ID
4819
5162
  */
4820
5163
  planId: string;
4821
5164
 
4822
5165
  /**
4823
- * Addons to include
5166
+ * Body param: Addons to include
4824
5167
  */
4825
5168
  addons?: Array<SubscriptionPreviewParams.Addon>;
4826
5169
 
4827
5170
  /**
4828
- * Coupon or discount to apply
5171
+ * Body param: Coupon or discount to apply
4829
5172
  */
4830
5173
  appliedCoupon?: SubscriptionPreviewParams.AppliedCoupon;
4831
5174
 
4832
5175
  /**
4833
- * Billable features with quantities
5176
+ * Body param: Billable features with quantities
4834
5177
  */
4835
5178
  billableFeatures?: Array<SubscriptionPreviewParams.BillableFeature>;
4836
5179
 
4837
5180
  /**
4838
- * ISO 3166-1 country code for localization
5181
+ * Body param: ISO 3166-1 country code for localization
4839
5182
  */
4840
5183
  billingCountryCode?: string;
4841
5184
 
4842
5185
  /**
4843
- * Billing cycle anchor behavior for the subscription
5186
+ * Body param: Billing cycle anchor behavior for the subscription
4844
5187
  */
4845
5188
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
4846
5189
 
4847
5190
  /**
4848
- * Billing and tax configuration
5191
+ * Body param: Billing and tax configuration
4849
5192
  */
4850
5193
  billingInformation?: SubscriptionPreviewParams.BillingInformation;
4851
5194
 
4852
5195
  /**
4853
- * Billing period (MONTHLY or ANNUALLY)
5196
+ * Body param: Billing period (MONTHLY or ANNUALLY)
4854
5197
  */
4855
5198
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
4856
5199
 
4857
5200
  /**
4858
- * One-time or recurring charges
5201
+ * Body param: One-time or recurring charges
4859
5202
  */
4860
5203
  charges?: Array<SubscriptionPreviewParams.Charge>;
4861
5204
 
4862
5205
  /**
4863
- * Paying customer ID for delegated billing
5206
+ * Body param: Paying customer ID for delegated billing
4864
5207
  */
4865
5208
  payingCustomerId?: string;
4866
5209
 
4867
5210
  /**
4868
- * Resource ID for multi-instance subscriptions
5211
+ * Body param: Resource ID for multi-instance subscriptions
4869
5212
  */
4870
5213
  resourceId?: string;
4871
5214
 
4872
5215
  /**
4873
- * When to apply subscription changes
5216
+ * Body param: When to apply subscription changes
4874
5217
  */
4875
5218
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
4876
5219
 
4877
5220
  /**
4878
- * Subscription start date
5221
+ * Body param: Subscription start date
4879
5222
  */
4880
5223
  startDate?: string;
4881
5224
 
4882
5225
  /**
4883
- * Trial period override settings
5226
+ * Body param: Trial period override settings
4884
5227
  */
4885
5228
  trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
4886
5229
 
4887
5230
  /**
4888
- * Unit quantity for per-unit pricing
5231
+ * Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
4889
5232
  */
4890
5233
  unitQuantity?: number;
5234
+
5235
+ /**
5236
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
5237
+ * token); falls back to the user's first membership. Ignored for API-key auth.
5238
+ */
5239
+ 'X-ACCOUNT-ID'?: string;
5240
+
5241
+ /**
5242
+ * Header param: Environment ID — required when authenticating with a user JWT
5243
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
5244
+ * intrinsic to the key).
5245
+ */
5246
+ 'X-ENVIRONMENT-ID'?: string;
4891
5247
  }
4892
5248
 
4893
5249
  export namespace SubscriptionPreviewParams {
@@ -5118,7 +5474,7 @@ export namespace SubscriptionPreviewParams {
5118
5474
  featureId: string;
5119
5475
 
5120
5476
  /**
5121
- * Quantity of feature units
5477
+ * Quantity of feature units. Minimum is 0 (zero is allowed).
5122
5478
  */
5123
5479
  quantity: number;
5124
5480
  }
@@ -5218,7 +5574,8 @@ export namespace SubscriptionPreviewParams {
5218
5574
  }
5219
5575
 
5220
5576
  /**
5221
- * Charge item
5577
+ * A charge selection for a subscription (references a catalog charge with a
5578
+ * quantity).
5222
5579
  */
5223
5580
  export interface Charge {
5224
5581
  /**
@@ -5227,7 +5584,7 @@ export namespace SubscriptionPreviewParams {
5227
5584
  id: string;
5228
5585
 
5229
5586
  /**
5230
- * Charge quantity
5587
+ * Charge quantity. Minimum is 0 (zero is allowed).
5231
5588
  */
5232
5589
  quantity: number;
5233
5590
 
@@ -5260,116 +5617,153 @@ export namespace SubscriptionPreviewParams {
5260
5617
 
5261
5618
  export interface SubscriptionProvisionParams {
5262
5619
  /**
5263
- * Customer ID to provision the subscription for
5620
+ * Body param: Customer ID to provision the subscription for
5264
5621
  */
5265
5622
  customerId: string;
5266
5623
 
5267
5624
  /**
5268
- * Plan ID to provision
5625
+ * Body param: Plan ID to provision
5269
5626
  */
5270
5627
  planId: string;
5271
5628
 
5272
5629
  /**
5273
- * Unique identifier for the subscription
5630
+ * Body param: Unique identifier for the subscription
5274
5631
  */
5275
5632
  id?: string;
5276
5633
 
5634
+ /**
5635
+ * Body param
5636
+ */
5277
5637
  addons?: Array<SubscriptionProvisionParams.Addon>;
5278
5638
 
5279
5639
  /**
5280
- * Coupon configuration
5640
+ * Body param: Coupon configuration
5281
5641
  */
5282
5642
  appliedCoupon?: SubscriptionProvisionParams.AppliedCoupon;
5283
5643
 
5284
5644
  /**
5285
- * Whether to wait for payment confirmation before returning the subscription
5645
+ * Body param: Whether to wait for payment confirmation before returning the
5646
+ * subscription
5286
5647
  */
5287
5648
  awaitPaymentConfirmation?: boolean;
5288
5649
 
5289
5650
  /**
5290
- * The ISO 3166-1 alpha-2 country code for billing
5651
+ * Body param: The ISO 3166-1 alpha-2 country code for billing
5291
5652
  */
5292
5653
  billingCountryCode?: string | null;
5293
5654
 
5294
5655
  /**
5295
- * Billing cycle anchor behavior for the subscription
5656
+ * Body param: Billing cycle anchor behavior for the subscription
5296
5657
  */
5297
5658
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
5298
5659
 
5299
5660
  /**
5300
- * External billing system identifier
5661
+ * Body param: External billing system identifier
5301
5662
  */
5302
5663
  billingId?: string | null;
5303
5664
 
5665
+ /**
5666
+ * Body param
5667
+ */
5304
5668
  billingInformation?: SubscriptionProvisionParams.BillingInformation;
5305
5669
 
5306
5670
  /**
5307
- * Billing period (MONTHLY or ANNUALLY)
5671
+ * Body param: Billing period (MONTHLY or ANNUALLY)
5308
5672
  */
5309
5673
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
5310
5674
 
5675
+ /**
5676
+ * Body param
5677
+ */
5311
5678
  budget?: SubscriptionProvisionParams.Budget | null;
5312
5679
 
5680
+ /**
5681
+ * Body param: Subscription cancellation date
5682
+ */
5683
+ cancellationDate?: string;
5684
+
5685
+ /**
5686
+ * Body param
5687
+ */
5313
5688
  charges?: Array<SubscriptionProvisionParams.Charge>;
5314
5689
 
5315
5690
  /**
5316
- * Checkout page configuration for payment collection
5691
+ * Body param: Checkout page configuration for payment collection
5317
5692
  */
5318
5693
  checkoutOptions?: SubscriptionProvisionParams.CheckoutOptions;
5319
5694
 
5695
+ /**
5696
+ * Body param
5697
+ */
5320
5698
  entitlements?: Array<SubscriptionProvisionParams.Feature | SubscriptionProvisionParams.Credit>;
5321
5699
 
5322
5700
  /**
5323
- * Additional metadata for the subscription
5701
+ * Body param: Additional metadata for the subscription
5324
5702
  */
5325
5703
  metadata?: { [key: string]: string };
5326
5704
 
5327
5705
  /**
5328
- * Minimum spend amount
5706
+ * Body param: Minimum spend amount
5329
5707
  */
5330
5708
  minimumSpend?: SubscriptionProvisionParams.MinimumSpend | null;
5331
5709
 
5332
5710
  /**
5333
- * Optional paying customer ID for split billing scenarios
5711
+ * Body param: Optional paying customer ID for split billing scenarios
5334
5712
  */
5335
5713
  payingCustomerId?: string | null;
5336
5714
 
5337
5715
  /**
5338
- * How payments should be collected for this subscription
5716
+ * Body param: How payments should be collected for this subscription
5339
5717
  */
5340
5718
  paymentCollectionMethod?: 'CHARGE' | 'INVOICE' | 'NONE';
5341
5719
 
5720
+ /**
5721
+ * Body param
5722
+ */
5342
5723
  priceOverrides?: Array<SubscriptionProvisionParams.PriceOverride>;
5343
5724
 
5344
5725
  /**
5345
- * Optional resource ID for multi-instance subscriptions
5726
+ * Body param: Optional resource ID for multi-instance subscriptions
5346
5727
  */
5347
5728
  resourceId?: string | null;
5348
5729
 
5349
5730
  /**
5350
- * Salesforce ID
5731
+ * Body param: Salesforce ID
5351
5732
  */
5352
5733
  salesforceId?: string | null;
5353
5734
 
5354
5735
  /**
5355
- * Strategy for scheduling subscription changes
5736
+ * Body param: Strategy for scheduling subscription changes
5356
5737
  */
5357
5738
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
5358
5739
 
5359
5740
  /**
5360
- * Subscription start date
5741
+ * Body param: Subscription start date
5361
5742
  */
5362
5743
  startDate?: string;
5363
5744
 
5364
5745
  /**
5365
- * Trial period override settings
5746
+ * Body param: Trial period override settings
5366
5747
  */
5367
5748
  trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
5368
5749
 
5369
5750
  /**
5370
- * Unit quantity
5751
+ * Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
5371
5752
  */
5372
5753
  unitQuantity?: number;
5754
+
5755
+ /**
5756
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
5757
+ * token); falls back to the user's first membership. Ignored for API-key auth.
5758
+ */
5759
+ 'X-ACCOUNT-ID'?: string;
5760
+
5761
+ /**
5762
+ * Header param: Environment ID — required when authenticating with a user JWT
5763
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
5764
+ * intrinsic to the key).
5765
+ */
5766
+ 'X-ENVIRONMENT-ID'?: string;
5373
5767
  }
5374
5768
 
5375
5769
  export namespace SubscriptionProvisionParams {
@@ -5694,7 +6088,8 @@ export namespace SubscriptionProvisionParams {
5694
6088
  }
5695
6089
 
5696
6090
  /**
5697
- * Charge item
6091
+ * A charge selection for a subscription (references a catalog charge with a
6092
+ * quantity).
5698
6093
  */
5699
6094
  export interface Charge {
5700
6095
  /**
@@ -5703,7 +6098,7 @@ export namespace SubscriptionProvisionParams {
5703
6098
  id: string;
5704
6099
 
5705
6100
  /**
5706
- * Charge quantity
6101
+ * Charge quantity. Minimum is 0 (zero is allowed).
5707
6102
  */
5708
6103
  quantity: number;
5709
6104
 
@@ -6484,9 +6879,22 @@ export namespace SubscriptionProvisionParams {
6484
6879
 
6485
6880
  export interface SubscriptionTransferParams {
6486
6881
  /**
6487
- * Resource ID to transfer the subscription to
6882
+ * Body param: Resource ID to transfer the subscription to
6488
6883
  */
6489
6884
  destinationResourceId: string;
6885
+
6886
+ /**
6887
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
6888
+ * token); falls back to the user's first membership. Ignored for API-key auth.
6889
+ */
6890
+ 'X-ACCOUNT-ID'?: string;
6891
+
6892
+ /**
6893
+ * Header param: Environment ID — required when authenticating with a user JWT
6894
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
6895
+ * intrinsic to the key).
6896
+ */
6897
+ 'X-ENVIRONMENT-ID'?: string;
6490
6898
  }
6491
6899
 
6492
6900
  Subscriptions.FutureUpdate = FutureUpdateAPIFutureUpdate;
@@ -6501,6 +6909,7 @@ export declare namespace Subscriptions {
6501
6909
  type SubscriptionPreviewResponse as SubscriptionPreviewResponse,
6502
6910
  type SubscriptionProvisionResponse as SubscriptionProvisionResponse,
6503
6911
  type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage,
6912
+ type SubscriptionRetrieveParams as SubscriptionRetrieveParams,
6504
6913
  type SubscriptionUpdateParams as SubscriptionUpdateParams,
6505
6914
  type SubscriptionListParams as SubscriptionListParams,
6506
6915
  type SubscriptionCancelParams as SubscriptionCancelParams,
@@ -6512,14 +6921,24 @@ export declare namespace Subscriptions {
6512
6921
  type SubscriptionTransferParams as SubscriptionTransferParams,
6513
6922
  };
6514
6923
 
6515
- export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription };
6924
+ export {
6925
+ FutureUpdateAPIFutureUpdate as FutureUpdate,
6926
+ type CancelSubscription as CancelSubscription,
6927
+ type FutureUpdateCancelPendingPaymentParams as FutureUpdateCancelPendingPaymentParams,
6928
+ type FutureUpdateCancelScheduleParams as FutureUpdateCancelScheduleParams,
6929
+ };
6516
6930
 
6517
6931
  export {
6518
6932
  Usage as Usage,
6519
6933
  type UsageChargeUsageResponse as UsageChargeUsageResponse,
6520
6934
  type UsageSyncResponse as UsageSyncResponse,
6521
6935
  type UsageChargeUsageParams as UsageChargeUsageParams,
6936
+ type UsageSyncParams as UsageSyncParams,
6522
6937
  };
6523
6938
 
6524
- export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse };
6939
+ export {
6940
+ Invoice as Invoice,
6941
+ type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse,
6942
+ type InvoiceMarkAsPaidParams as InvoiceMarkAsPaidParams,
6943
+ };
6525
6944
  }