@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
@@ -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,53 +15,134 @@ 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
+ * ```
18
25
  */
19
- retrieve(id: string, options?: RequestOptions): APIPromise<Subscription>;
26
+ retrieve(id: string, params?: SubscriptionRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Subscription>;
20
27
  /**
21
28
  * Updates an active subscription's properties including billing period, add-ons,
22
29
  * unit quantities, and discounts.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const subscription = await client.v1.subscriptions.update(
34
+ * 'x',
35
+ * );
36
+ * ```
23
37
  */
24
- update(id: string, body: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription>;
38
+ update(id: string, params: SubscriptionUpdateParams, options?: RequestOptions): APIPromise<Subscription>;
25
39
  /**
26
40
  * Retrieves a paginated list of subscriptions, with optional filters for customer,
27
41
  * 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
+ * ```
28
50
  */
29
- list(query?: SubscriptionListParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionListResponsesMyCursorIDPage, SubscriptionListResponse>;
51
+ list(params?: SubscriptionListParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionListResponsesMyCursorIDPage, SubscriptionListResponse>;
30
52
  /**
31
53
  * Cancels an active subscription, either immediately or at a specified time such
32
54
  * as end of billing period.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const subscription = await client.v1.subscriptions.cancel(
59
+ * 'x',
60
+ * );
61
+ * ```
33
62
  */
34
- cancel(id: string, body: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription>;
63
+ cancel(id: string, params: SubscriptionCancelParams, options?: RequestOptions): APIPromise<Subscription>;
35
64
  /**
36
65
  * Delegates the payment responsibility of a subscription to a different customer.
37
66
  * 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
+ * ```
38
75
  */
39
- delegate(id: string, body: SubscriptionDelegateParams, options?: RequestOptions): APIPromise<Subscription>;
76
+ delegate(id: string, params: SubscriptionDelegateParams, options?: RequestOptions): APIPromise<Subscription>;
40
77
  /**
41
78
  * Imports multiple subscriptions in bulk. Used for migrating subscription data
42
79
  * from external systems.
43
- */
44
- import(body: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse>;
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(params: SubscriptionImportParams, options?: RequestOptions): APIPromise<SubscriptionImportResponse>;
45
95
  /**
46
96
  * Migrates a subscription to the latest published version of its plan or add-ons.
47
97
  * Handles prorated charges or credits automatically.
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * const subscription = await client.v1.subscriptions.migrate(
102
+ * 'x',
103
+ * );
104
+ * ```
48
105
  */
49
- migrate(id: string, body: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription>;
106
+ migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): APIPromise<Subscription>;
50
107
  /**
51
108
  * Previews the pricing impact of creating or updating a subscription without
52
109
  * 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
+ * ```
53
118
  */
54
- preview(body: SubscriptionPreviewParams, options?: RequestOptions): APIPromise<SubscriptionPreviewResponse>;
119
+ preview(params: SubscriptionPreviewParams, options?: RequestOptions): APIPromise<SubscriptionPreviewResponse>;
55
120
  /**
56
121
  * Creates a new subscription for an existing customer. When payment is required
57
122
  * 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
+ * ```
58
131
  */
59
- provision(body: SubscriptionProvisionParams, options?: RequestOptions): APIPromise<SubscriptionProvisionResponse>;
132
+ provision(params: SubscriptionProvisionParams, options?: RequestOptions): APIPromise<SubscriptionProvisionResponse>;
60
133
  /**
61
134
  * Transfers a subscription to a different resource ID. Used for multi-resource
62
135
  * products where subscriptions apply to specific entities like websites or apps.
63
- */
64
- transfer(id: string, body: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription>;
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, params: SubscriptionTransferParams, options?: RequestOptions): APIPromise<Subscription>;
65
146
  }
66
147
  export type SubscriptionListResponsesMyCursorIDPage = MyCursorIDPage<SubscriptionListResponse>;
67
148
  /**
@@ -1659,39 +1740,97 @@ export declare namespace SubscriptionProvisionResponse {
1659
1740
  }
1660
1741
  }
1661
1742
  }
1743
+ export interface SubscriptionRetrieveParams {
1744
+ /**
1745
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
1746
+ * back to the user's first membership. Ignored for API-key auth.
1747
+ */
1748
+ 'X-ACCOUNT-ID'?: string;
1749
+ /**
1750
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
1751
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
1752
+ * key).
1753
+ */
1754
+ 'X-ENVIRONMENT-ID'?: string;
1755
+ }
1662
1756
  export interface SubscriptionUpdateParams {
1757
+ /**
1758
+ * Body param
1759
+ */
1663
1760
  addons?: Array<SubscriptionUpdateParams.Addon>;
1761
+ /**
1762
+ * Body param
1763
+ */
1664
1764
  appliedCoupon?: SubscriptionUpdateParams.AppliedCoupon;
1665
1765
  /**
1666
- * Await payment confirmation
1766
+ * Body param: Await payment confirmation
1667
1767
  */
1668
1768
  awaitPaymentConfirmation?: boolean;
1769
+ /**
1770
+ * Body param
1771
+ */
1669
1772
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
1773
+ /**
1774
+ * Body param
1775
+ */
1670
1776
  billingInformation?: SubscriptionUpdateParams.BillingInformation;
1777
+ /**
1778
+ * Body param
1779
+ */
1671
1780
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
1781
+ /**
1782
+ * Body param
1783
+ */
1672
1784
  budget?: SubscriptionUpdateParams.Budget | null;
1785
+ /**
1786
+ * Body param: Subscription cancellation date
1787
+ */
1788
+ cancellationDate?: string | null;
1789
+ /**
1790
+ * Body param
1791
+ */
1673
1792
  charges?: Array<SubscriptionUpdateParams.Charge>;
1793
+ /**
1794
+ * Body param
1795
+ */
1674
1796
  entitlements?: Array<SubscriptionUpdateParams.Feature | SubscriptionUpdateParams.Credit>;
1675
1797
  /**
1676
- * Additional metadata for the subscription
1798
+ * Body param: Additional metadata for the subscription
1677
1799
  */
1678
1800
  metadata?: {
1679
1801
  [key: string]: string;
1680
1802
  };
1681
1803
  /**
1682
- * Minimum spend amount
1804
+ * Body param: Minimum spend amount
1683
1805
  */
1684
1806
  minimumSpend?: SubscriptionUpdateParams.MinimumSpend | null;
1807
+ /**
1808
+ * Body param
1809
+ */
1685
1810
  priceOverrides?: Array<SubscriptionUpdateParams.PriceOverride>;
1686
1811
  /**
1687
- * Promotion code
1812
+ * Body param: Promotion code
1688
1813
  */
1689
1814
  promotionCode?: string;
1815
+ /**
1816
+ * Body param
1817
+ */
1690
1818
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
1691
1819
  /**
1692
- * Subscription trial end date
1820
+ * Body param: Subscription trial end date
1693
1821
  */
1694
1822
  trialEndDate?: string;
1823
+ /**
1824
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
1825
+ * token); falls back to the user's first membership. Ignored for API-key auth.
1826
+ */
1827
+ 'X-ACCOUNT-ID'?: string;
1828
+ /**
1829
+ * Header param: Environment ID — required when authenticating with a user JWT
1830
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
1831
+ * intrinsic to the key).
1832
+ */
1833
+ 'X-ENVIRONMENT-ID'?: string;
1695
1834
  }
1696
1835
  export declare namespace SubscriptionUpdateParams {
1697
1836
  /**
@@ -1955,30 +2094,42 @@ export declare namespace SubscriptionUpdateParams {
1955
2094
  }
1956
2095
  export interface SubscriptionListParams extends MyCursorIDPageParams {
1957
2096
  /**
1958
- * Filter by creation date using range operators: gt, gte, lt, lte
2097
+ * Query param: Filter by creation date using range operators: gt, gte, lt, lte
1959
2098
  */
1960
2099
  createdAt?: SubscriptionListParams.CreatedAt;
1961
2100
  /**
1962
- * Filter by customer ID
2101
+ * Query param: Filter by customer ID
1963
2102
  */
1964
2103
  customerId?: string;
1965
2104
  /**
1966
- * Filter by plan ID
2105
+ * Query param: Filter by plan ID
1967
2106
  */
1968
2107
  planId?: string;
1969
2108
  /**
1970
- * Filter by pricing type. Supports comma-separated values for multiple types
2109
+ * Query param: Filter by pricing type. Supports comma-separated values for
2110
+ * multiple types
1971
2111
  */
1972
2112
  pricingType?: Array<'FREE' | 'PAID' | 'CUSTOM'>;
1973
2113
  /**
1974
- * Filter by resource ID
2114
+ * Query param: Filter by resource ID
1975
2115
  */
1976
2116
  resourceId?: string;
1977
2117
  /**
1978
- * Filter by subscription status. Supports comma-separated values for multiple
1979
- * statuses
2118
+ * Query param: Filter by subscription status. Supports comma-separated values for
2119
+ * multiple statuses
1980
2120
  */
1981
2121
  status?: Array<'PAYMENT_PENDING' | 'ACTIVE' | 'EXPIRED' | 'IN_TRIAL' | 'CANCELED' | 'NOT_STARTED'>;
2122
+ /**
2123
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2124
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2125
+ */
2126
+ 'X-ACCOUNT-ID'?: string;
2127
+ /**
2128
+ * Header param: Environment ID — required when authenticating with a user JWT
2129
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2130
+ * intrinsic to the key).
2131
+ */
2132
+ 'X-ENVIRONMENT-ID'?: string;
1982
2133
  }
1983
2134
  export declare namespace SubscriptionListParams {
1984
2135
  /**
@@ -2005,39 +2156,74 @@ export declare namespace SubscriptionListParams {
2005
2156
  }
2006
2157
  export interface SubscriptionCancelParams {
2007
2158
  /**
2008
- * Action on cancellation (downgrade or revoke)
2159
+ * Body param: Action on cancellation (downgrade or revoke)
2009
2160
  */
2010
2161
  cancellationAction?: 'DEFAULT' | 'REVOKE_ENTITLEMENTS';
2011
2162
  /**
2012
- * When to cancel (immediate, period end, or date)
2163
+ * Body param: When to cancel (immediate, period end, or date)
2013
2164
  */
2014
2165
  cancellationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE' | 'SPECIFIC_DATE';
2015
2166
  /**
2016
- * Subscription end date
2167
+ * Body param: Subscription end date
2017
2168
  */
2018
2169
  endDate?: string;
2019
2170
  /**
2020
- * If set, enables or disables prorating of credits on subscription cancellation.
2171
+ * Body param: If set, enables or disables prorating of credits on subscription
2172
+ * cancellation.
2021
2173
  */
2022
2174
  prorate?: boolean;
2175
+ /**
2176
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2177
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2178
+ */
2179
+ 'X-ACCOUNT-ID'?: string;
2180
+ /**
2181
+ * Header param: Environment ID — required when authenticating with a user JWT
2182
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2183
+ * intrinsic to the key).
2184
+ */
2185
+ 'X-ENVIRONMENT-ID'?: string;
2023
2186
  }
2024
2187
  export interface SubscriptionDelegateParams {
2025
2188
  /**
2026
- * The unique identifier of the customer who will assume payment responsibility for
2027
- * this subscription. This customer must already exist in your Stigg account and
2028
- * have a valid payment method if the subscription requires payment.
2189
+ * Body param: The unique identifier of the customer who will assume payment
2190
+ * responsibility for this subscription. This customer must already exist in your
2191
+ * Stigg account and have a valid payment method if the subscription requires
2192
+ * payment.
2029
2193
  */
2030
2194
  targetCustomerId: string;
2195
+ /**
2196
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2197
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2198
+ */
2199
+ 'X-ACCOUNT-ID'?: string;
2200
+ /**
2201
+ * Header param: Environment ID — required when authenticating with a user JWT
2202
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2203
+ * intrinsic to the key).
2204
+ */
2205
+ 'X-ENVIRONMENT-ID'?: string;
2031
2206
  }
2032
2207
  export interface SubscriptionImportParams {
2033
2208
  /**
2034
- * List of subscription objects to import
2209
+ * Body param: List of subscription objects to import
2035
2210
  */
2036
2211
  subscriptions: Array<SubscriptionImportParams.Subscription>;
2037
2212
  /**
2038
- * Integration ID to use for importing subscriptions
2213
+ * Body param: Integration ID to use for importing subscriptions
2039
2214
  */
2040
2215
  integrationId?: string | null;
2216
+ /**
2217
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2218
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2219
+ */
2220
+ 'X-ACCOUNT-ID'?: string;
2221
+ /**
2222
+ * Header param: Environment ID — required when authenticating with a user JWT
2223
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2224
+ * intrinsic to the key).
2225
+ */
2226
+ 'X-ENVIRONMENT-ID'?: string;
2041
2227
  }
2042
2228
  export declare namespace SubscriptionImportParams {
2043
2229
  interface Subscription {
@@ -2097,7 +2283,8 @@ export declare namespace SubscriptionImportParams {
2097
2283
  quantity: number;
2098
2284
  }
2099
2285
  /**
2100
- * Charge item
2286
+ * A charge selection for a subscription (references a catalog charge with a
2287
+ * quantity).
2101
2288
  */
2102
2289
  interface Charge {
2103
2290
  /**
@@ -2105,7 +2292,7 @@ export declare namespace SubscriptionImportParams {
2105
2292
  */
2106
2293
  id: string;
2107
2294
  /**
2108
- * Charge quantity
2295
+ * Charge quantity. Minimum is 0 (zero is allowed).
2109
2296
  */
2110
2297
  quantity: number;
2111
2298
  /**
@@ -2117,75 +2304,97 @@ export declare namespace SubscriptionImportParams {
2117
2304
  }
2118
2305
  export interface SubscriptionMigrateParams {
2119
2306
  /**
2120
- * When to migrate (immediate or period end)
2307
+ * Body param: When to migrate (immediate or period end)
2121
2308
  */
2122
2309
  subscriptionMigrationTime?: 'END_OF_BILLING_PERIOD' | 'IMMEDIATE';
2310
+ /**
2311
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2312
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2313
+ */
2314
+ 'X-ACCOUNT-ID'?: string;
2315
+ /**
2316
+ * Header param: Environment ID — required when authenticating with a user JWT
2317
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2318
+ * intrinsic to the key).
2319
+ */
2320
+ 'X-ENVIRONMENT-ID'?: string;
2123
2321
  }
2124
2322
  export interface SubscriptionPreviewParams {
2125
2323
  /**
2126
- * Customer ID
2324
+ * Body param: Customer ID
2127
2325
  */
2128
2326
  customerId: string;
2129
2327
  /**
2130
- * Plan ID
2328
+ * Body param: Plan ID
2131
2329
  */
2132
2330
  planId: string;
2133
2331
  /**
2134
- * Addons to include
2332
+ * Body param: Addons to include
2135
2333
  */
2136
2334
  addons?: Array<SubscriptionPreviewParams.Addon>;
2137
2335
  /**
2138
- * Coupon or discount to apply
2336
+ * Body param: Coupon or discount to apply
2139
2337
  */
2140
2338
  appliedCoupon?: SubscriptionPreviewParams.AppliedCoupon;
2141
2339
  /**
2142
- * Billable features with quantities
2340
+ * Body param: Billable features with quantities
2143
2341
  */
2144
2342
  billableFeatures?: Array<SubscriptionPreviewParams.BillableFeature>;
2145
2343
  /**
2146
- * ISO 3166-1 country code for localization
2344
+ * Body param: ISO 3166-1 country code for localization
2147
2345
  */
2148
2346
  billingCountryCode?: string;
2149
2347
  /**
2150
- * Billing cycle anchor behavior for the subscription
2348
+ * Body param: Billing cycle anchor behavior for the subscription
2151
2349
  */
2152
2350
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
2153
2351
  /**
2154
- * Billing and tax configuration
2352
+ * Body param: Billing and tax configuration
2155
2353
  */
2156
2354
  billingInformation?: SubscriptionPreviewParams.BillingInformation;
2157
2355
  /**
2158
- * Billing period (MONTHLY or ANNUALLY)
2356
+ * Body param: Billing period (MONTHLY or ANNUALLY)
2159
2357
  */
2160
2358
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
2161
2359
  /**
2162
- * One-time or recurring charges
2360
+ * Body param: One-time or recurring charges
2163
2361
  */
2164
2362
  charges?: Array<SubscriptionPreviewParams.Charge>;
2165
2363
  /**
2166
- * Paying customer ID for delegated billing
2364
+ * Body param: Paying customer ID for delegated billing
2167
2365
  */
2168
2366
  payingCustomerId?: string;
2169
2367
  /**
2170
- * Resource ID for multi-instance subscriptions
2368
+ * Body param: Resource ID for multi-instance subscriptions
2171
2369
  */
2172
2370
  resourceId?: string;
2173
2371
  /**
2174
- * When to apply subscription changes
2372
+ * Body param: When to apply subscription changes
2175
2373
  */
2176
2374
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
2177
2375
  /**
2178
- * Subscription start date
2376
+ * Body param: Subscription start date
2179
2377
  */
2180
2378
  startDate?: string;
2181
2379
  /**
2182
- * Trial period override settings
2380
+ * Body param: Trial period override settings
2183
2381
  */
2184
2382
  trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
2185
2383
  /**
2186
- * Unit quantity for per-unit pricing
2384
+ * Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
2187
2385
  */
2188
2386
  unitQuantity?: number;
2387
+ /**
2388
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2389
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2390
+ */
2391
+ 'X-ACCOUNT-ID'?: string;
2392
+ /**
2393
+ * Header param: Environment ID — required when authenticating with a user JWT
2394
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2395
+ * intrinsic to the key).
2396
+ */
2397
+ 'X-ENVIRONMENT-ID'?: string;
2189
2398
  }
2190
2399
  export declare namespace SubscriptionPreviewParams {
2191
2400
  /**
@@ -2283,7 +2492,7 @@ export declare namespace SubscriptionPreviewParams {
2283
2492
  */
2284
2493
  featureId: string;
2285
2494
  /**
2286
- * Quantity of feature units
2495
+ * Quantity of feature units. Minimum is 0 (zero is allowed).
2287
2496
  */
2288
2497
  quantity: number;
2289
2498
  }
@@ -2365,7 +2574,8 @@ export declare namespace SubscriptionPreviewParams {
2365
2574
  }
2366
2575
  }
2367
2576
  /**
2368
- * Charge item
2577
+ * A charge selection for a subscription (references a catalog charge with a
2578
+ * quantity).
2369
2579
  */
2370
2580
  interface Charge {
2371
2581
  /**
@@ -2373,7 +2583,7 @@ export declare namespace SubscriptionPreviewParams {
2373
2583
  */
2374
2584
  id: string;
2375
2585
  /**
2376
- * Charge quantity
2586
+ * Charge quantity. Minimum is 0 (zero is allowed).
2377
2587
  */
2378
2588
  quantity: number;
2379
2589
  /**
@@ -2401,93 +2611,127 @@ export declare namespace SubscriptionPreviewParams {
2401
2611
  }
2402
2612
  export interface SubscriptionProvisionParams {
2403
2613
  /**
2404
- * Customer ID to provision the subscription for
2614
+ * Body param: Customer ID to provision the subscription for
2405
2615
  */
2406
2616
  customerId: string;
2407
2617
  /**
2408
- * Plan ID to provision
2618
+ * Body param: Plan ID to provision
2409
2619
  */
2410
2620
  planId: string;
2411
2621
  /**
2412
- * Unique identifier for the subscription
2622
+ * Body param: Unique identifier for the subscription
2413
2623
  */
2414
2624
  id?: string;
2625
+ /**
2626
+ * Body param
2627
+ */
2415
2628
  addons?: Array<SubscriptionProvisionParams.Addon>;
2416
2629
  /**
2417
- * Coupon configuration
2630
+ * Body param: Coupon configuration
2418
2631
  */
2419
2632
  appliedCoupon?: SubscriptionProvisionParams.AppliedCoupon;
2420
2633
  /**
2421
- * Whether to wait for payment confirmation before returning the subscription
2634
+ * Body param: Whether to wait for payment confirmation before returning the
2635
+ * subscription
2422
2636
  */
2423
2637
  awaitPaymentConfirmation?: boolean;
2424
2638
  /**
2425
- * The ISO 3166-1 alpha-2 country code for billing
2639
+ * Body param: The ISO 3166-1 alpha-2 country code for billing
2426
2640
  */
2427
2641
  billingCountryCode?: string | null;
2428
2642
  /**
2429
- * Billing cycle anchor behavior for the subscription
2643
+ * Body param: Billing cycle anchor behavior for the subscription
2430
2644
  */
2431
2645
  billingCycleAnchor?: 'UNCHANGED' | 'NOW';
2432
2646
  /**
2433
- * External billing system identifier
2647
+ * Body param: External billing system identifier
2434
2648
  */
2435
2649
  billingId?: string | null;
2650
+ /**
2651
+ * Body param
2652
+ */
2436
2653
  billingInformation?: SubscriptionProvisionParams.BillingInformation;
2437
2654
  /**
2438
- * Billing period (MONTHLY or ANNUALLY)
2655
+ * Body param: Billing period (MONTHLY or ANNUALLY)
2439
2656
  */
2440
2657
  billingPeriod?: 'MONTHLY' | 'ANNUALLY';
2658
+ /**
2659
+ * Body param
2660
+ */
2441
2661
  budget?: SubscriptionProvisionParams.Budget | null;
2662
+ /**
2663
+ * Body param: Subscription cancellation date
2664
+ */
2665
+ cancellationDate?: string;
2666
+ /**
2667
+ * Body param
2668
+ */
2442
2669
  charges?: Array<SubscriptionProvisionParams.Charge>;
2443
2670
  /**
2444
- * Checkout page configuration for payment collection
2671
+ * Body param: Checkout page configuration for payment collection
2445
2672
  */
2446
2673
  checkoutOptions?: SubscriptionProvisionParams.CheckoutOptions;
2674
+ /**
2675
+ * Body param
2676
+ */
2447
2677
  entitlements?: Array<SubscriptionProvisionParams.Feature | SubscriptionProvisionParams.Credit>;
2448
2678
  /**
2449
- * Additional metadata for the subscription
2679
+ * Body param: Additional metadata for the subscription
2450
2680
  */
2451
2681
  metadata?: {
2452
2682
  [key: string]: string;
2453
2683
  };
2454
2684
  /**
2455
- * Minimum spend amount
2685
+ * Body param: Minimum spend amount
2456
2686
  */
2457
2687
  minimumSpend?: SubscriptionProvisionParams.MinimumSpend | null;
2458
2688
  /**
2459
- * Optional paying customer ID for split billing scenarios
2689
+ * Body param: Optional paying customer ID for split billing scenarios
2460
2690
  */
2461
2691
  payingCustomerId?: string | null;
2462
2692
  /**
2463
- * How payments should be collected for this subscription
2693
+ * Body param: How payments should be collected for this subscription
2464
2694
  */
2465
2695
  paymentCollectionMethod?: 'CHARGE' | 'INVOICE' | 'NONE';
2696
+ /**
2697
+ * Body param
2698
+ */
2466
2699
  priceOverrides?: Array<SubscriptionProvisionParams.PriceOverride>;
2467
2700
  /**
2468
- * Optional resource ID for multi-instance subscriptions
2701
+ * Body param: Optional resource ID for multi-instance subscriptions
2469
2702
  */
2470
2703
  resourceId?: string | null;
2471
2704
  /**
2472
- * Salesforce ID
2705
+ * Body param: Salesforce ID
2473
2706
  */
2474
2707
  salesforceId?: string | null;
2475
2708
  /**
2476
- * Strategy for scheduling subscription changes
2709
+ * Body param: Strategy for scheduling subscription changes
2477
2710
  */
2478
2711
  scheduleStrategy?: 'END_OF_BILLING_PERIOD' | 'END_OF_BILLING_MONTH' | 'IMMEDIATE';
2479
2712
  /**
2480
- * Subscription start date
2713
+ * Body param: Subscription start date
2481
2714
  */
2482
2715
  startDate?: string;
2483
2716
  /**
2484
- * Trial period override settings
2717
+ * Body param: Trial period override settings
2485
2718
  */
2486
2719
  trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
2487
2720
  /**
2488
- * Unit quantity
2721
+ * Body param: Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
2489
2722
  */
2490
2723
  unitQuantity?: number;
2724
+ /**
2725
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
2726
+ * token); falls back to the user's first membership. Ignored for API-key auth.
2727
+ */
2728
+ 'X-ACCOUNT-ID'?: string;
2729
+ /**
2730
+ * Header param: Environment ID — required when authenticating with a user JWT
2731
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
2732
+ * intrinsic to the key).
2733
+ */
2734
+ 'X-ENVIRONMENT-ID'?: string;
2491
2735
  }
2492
2736
  export declare namespace SubscriptionProvisionParams {
2493
2737
  /**
@@ -2661,7 +2905,8 @@ export declare namespace SubscriptionProvisionParams {
2661
2905
  limit: number;
2662
2906
  }
2663
2907
  /**
2664
- * Charge item
2908
+ * A charge selection for a subscription (references a catalog charge with a
2909
+ * quantity).
2665
2910
  */
2666
2911
  interface Charge {
2667
2912
  /**
@@ -2669,7 +2914,7 @@ export declare namespace SubscriptionProvisionParams {
2669
2914
  */
2670
2915
  id: string;
2671
2916
  /**
2672
- * Charge quantity
2917
+ * Charge quantity. Minimum is 0 (zero is allowed).
2673
2918
  */
2674
2919
  quantity: number;
2675
2920
  /**
@@ -2928,14 +3173,25 @@ export declare namespace SubscriptionProvisionParams {
2928
3173
  }
2929
3174
  export interface SubscriptionTransferParams {
2930
3175
  /**
2931
- * Resource ID to transfer the subscription to
3176
+ * Body param: Resource ID to transfer the subscription to
2932
3177
  */
2933
3178
  destinationResourceId: string;
3179
+ /**
3180
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
3181
+ * token); falls back to the user's first membership. Ignored for API-key auth.
3182
+ */
3183
+ 'X-ACCOUNT-ID'?: string;
3184
+ /**
3185
+ * Header param: Environment ID — required when authenticating with a user JWT
3186
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
3187
+ * intrinsic to the key).
3188
+ */
3189
+ 'X-ENVIRONMENT-ID'?: string;
2934
3190
  }
2935
3191
  export declare namespace Subscriptions {
2936
- 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, };
2937
- export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription };
2938
- export { Usage as Usage, type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, };
2939
- export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse };
3192
+ 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, };
3193
+ export { FutureUpdateAPIFutureUpdate as FutureUpdate, type CancelSubscription as CancelSubscription, type FutureUpdateCancelPendingPaymentParams as FutureUpdateCancelPendingPaymentParams, type FutureUpdateCancelScheduleParams as FutureUpdateCancelScheduleParams, };
3194
+ export { Usage as Usage, type UsageChargeUsageResponse as UsageChargeUsageResponse, type UsageSyncResponse as UsageSyncResponse, type UsageChargeUsageParams as UsageChargeUsageParams, type UsageSyncParams as UsageSyncParams, };
3195
+ export { Invoice as Invoice, type InvoiceMarkAsPaidResponse as InvoiceMarkAsPaidResponse, type InvoiceMarkAsPaidParams as InvoiceMarkAsPaidParams, };
2940
3196
  }
2941
3197
  //# sourceMappingURL=subscriptions.d.ts.map