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

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 (371) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/index.d.mts +1 -0
  12. package/resources/index.d.mts.map +1 -1
  13. package/resources/index.d.ts +1 -0
  14. package/resources/index.d.ts.map +1 -1
  15. package/resources/index.js +3 -1
  16. package/resources/index.js.map +1 -1
  17. package/resources/index.mjs +1 -0
  18. package/resources/index.mjs.map +1 -1
  19. package/resources/v1/addons/addons.d.mts +0 -59
  20. package/resources/v1/addons/addons.d.mts.map +1 -1
  21. package/resources/v1/addons/addons.d.ts +0 -59
  22. package/resources/v1/addons/addons.d.ts.map +1 -1
  23. package/resources/v1/addons/addons.js +0 -59
  24. package/resources/v1/addons/addons.js.map +1 -1
  25. package/resources/v1/addons/addons.mjs +0 -59
  26. package/resources/v1/addons/addons.mjs.map +1 -1
  27. package/resources/v1/addons/entitlements.d.mts +0 -31
  28. package/resources/v1/addons/entitlements.d.mts.map +1 -1
  29. package/resources/v1/addons/entitlements.d.ts +0 -31
  30. package/resources/v1/addons/entitlements.d.ts.map +1 -1
  31. package/resources/v1/addons/entitlements.js +0 -31
  32. package/resources/v1/addons/entitlements.js.map +1 -1
  33. package/resources/v1/addons/entitlements.mjs +0 -31
  34. package/resources/v1/addons/entitlements.mjs.map +1 -1
  35. package/resources/v1/coupons.d.mts +0 -36
  36. package/resources/v1/coupons.d.mts.map +1 -1
  37. package/resources/v1/coupons.d.ts +0 -36
  38. package/resources/v1/coupons.d.ts.map +1 -1
  39. package/resources/v1/coupons.js +0 -36
  40. package/resources/v1/coupons.js.map +1 -1
  41. package/resources/v1/coupons.mjs +0 -36
  42. package/resources/v1/coupons.mjs.map +1 -1
  43. package/resources/v1/credits/credits.d.mts +0 -25
  44. package/resources/v1/credits/credits.d.mts.map +1 -1
  45. package/resources/v1/credits/credits.d.ts +0 -25
  46. package/resources/v1/credits/credits.d.ts.map +1 -1
  47. package/resources/v1/credits/credits.js +0 -25
  48. package/resources/v1/credits/credits.js.map +1 -1
  49. package/resources/v1/credits/credits.mjs +0 -25
  50. package/resources/v1/credits/credits.mjs.map +1 -1
  51. package/resources/v1/credits/custom-currencies.d.mts +0 -49
  52. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  53. package/resources/v1/credits/custom-currencies.d.ts +0 -49
  54. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  55. package/resources/v1/credits/custom-currencies.js +0 -49
  56. package/resources/v1/credits/custom-currencies.js.map +1 -1
  57. package/resources/v1/credits/custom-currencies.mjs +0 -49
  58. package/resources/v1/credits/custom-currencies.mjs.map +1 -1
  59. package/resources/v1/credits/grants.d.mts +0 -28
  60. package/resources/v1/credits/grants.d.mts.map +1 -1
  61. package/resources/v1/credits/grants.d.ts +0 -28
  62. package/resources/v1/credits/grants.d.ts.map +1 -1
  63. package/resources/v1/credits/grants.js +0 -28
  64. package/resources/v1/credits/grants.js.map +1 -1
  65. package/resources/v1/credits/grants.mjs +0 -28
  66. package/resources/v1/credits/grants.mjs.map +1 -1
  67. package/resources/v1/customers/customers.d.mts +0 -77
  68. package/resources/v1/customers/customers.d.mts.map +1 -1
  69. package/resources/v1/customers/customers.d.ts +0 -77
  70. package/resources/v1/customers/customers.d.ts.map +1 -1
  71. package/resources/v1/customers/customers.js +0 -77
  72. package/resources/v1/customers/customers.js.map +1 -1
  73. package/resources/v1/customers/customers.mjs +0 -77
  74. package/resources/v1/customers/customers.mjs.map +1 -1
  75. package/resources/v1/customers/integrations.d.mts +0 -47
  76. package/resources/v1/customers/integrations.d.mts.map +1 -1
  77. package/resources/v1/customers/integrations.d.ts +0 -47
  78. package/resources/v1/customers/integrations.d.ts.map +1 -1
  79. package/resources/v1/customers/integrations.js +0 -47
  80. package/resources/v1/customers/integrations.js.map +1 -1
  81. package/resources/v1/customers/integrations.mjs +0 -47
  82. package/resources/v1/customers/integrations.mjs.map +1 -1
  83. package/resources/v1/customers/payment-method.d.mts +0 -16
  84. package/resources/v1/customers/payment-method.d.mts.map +1 -1
  85. package/resources/v1/customers/payment-method.d.ts +0 -16
  86. package/resources/v1/customers/payment-method.d.ts.map +1 -1
  87. package/resources/v1/customers/payment-method.js +0 -16
  88. package/resources/v1/customers/payment-method.js.map +1 -1
  89. package/resources/v1/customers/payment-method.mjs +0 -16
  90. package/resources/v1/customers/payment-method.mjs.map +1 -1
  91. package/resources/v1/customers/promotional-entitlements.d.mts +0 -51
  92. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -1
  93. package/resources/v1/customers/promotional-entitlements.d.ts +0 -51
  94. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -1
  95. package/resources/v1/customers/promotional-entitlements.js +0 -51
  96. package/resources/v1/customers/promotional-entitlements.js.map +1 -1
  97. package/resources/v1/customers/promotional-entitlements.mjs +0 -51
  98. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -1
  99. package/resources/v1/events/data-export/data-export.d.mts +29 -21
  100. package/resources/v1/events/data-export/data-export.d.mts.map +1 -1
  101. package/resources/v1/events/data-export/data-export.d.ts +29 -21
  102. package/resources/v1/events/data-export/data-export.d.ts.map +1 -1
  103. package/resources/v1/events/data-export/data-export.js +27 -18
  104. package/resources/v1/events/data-export/data-export.js.map +1 -1
  105. package/resources/v1/events/data-export/data-export.mjs +27 -18
  106. package/resources/v1/events/data-export/data-export.mjs.map +1 -1
  107. package/resources/v1/events/data-export/destinations.d.mts +29 -22
  108. package/resources/v1/events/data-export/destinations.d.mts.map +1 -1
  109. package/resources/v1/events/data-export/destinations.d.ts +29 -22
  110. package/resources/v1/events/data-export/destinations.d.ts.map +1 -1
  111. package/resources/v1/events/data-export/destinations.js +26 -21
  112. package/resources/v1/events/data-export/destinations.js.map +1 -1
  113. package/resources/v1/events/data-export/destinations.mjs +26 -21
  114. package/resources/v1/events/data-export/destinations.mjs.map +1 -1
  115. package/resources/v1/events/data-export/index.d.mts +1 -1
  116. package/resources/v1/events/data-export/index.d.mts.map +1 -1
  117. package/resources/v1/events/data-export/index.d.ts +1 -1
  118. package/resources/v1/events/data-export/index.d.ts.map +1 -1
  119. package/resources/v1/events/data-export/index.js.map +1 -1
  120. package/resources/v1/events/data-export/index.mjs.map +1 -1
  121. package/resources/v1/events/events.d.mts +0 -17
  122. package/resources/v1/events/events.d.mts.map +1 -1
  123. package/resources/v1/events/events.d.ts +0 -17
  124. package/resources/v1/events/events.d.ts.map +1 -1
  125. package/resources/v1/events/events.js +0 -17
  126. package/resources/v1/events/events.js.map +1 -1
  127. package/resources/v1/events/events.mjs +0 -17
  128. package/resources/v1/events/events.mjs.map +1 -1
  129. package/resources/v1/events/index.d.mts +0 -1
  130. package/resources/v1/events/index.d.mts.map +1 -1
  131. package/resources/v1/events/index.d.ts +0 -1
  132. package/resources/v1/events/index.d.ts.map +1 -1
  133. package/resources/v1/events/index.js +3 -5
  134. package/resources/v1/events/index.js.map +1 -1
  135. package/resources/v1/events/index.mjs +0 -1
  136. package/resources/v1/events/index.mjs.map +1 -1
  137. package/resources/v1/features.d.mts +0 -43
  138. package/resources/v1/features.d.mts.map +1 -1
  139. package/resources/v1/features.d.ts +0 -43
  140. package/resources/v1/features.d.ts.map +1 -1
  141. package/resources/v1/features.js +0 -43
  142. package/resources/v1/features.js.map +1 -1
  143. package/resources/v1/features.mjs +0 -43
  144. package/resources/v1/features.mjs.map +1 -1
  145. package/resources/v1/plans/entitlements.d.mts +0 -31
  146. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  147. package/resources/v1/plans/entitlements.d.ts +0 -31
  148. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  149. package/resources/v1/plans/entitlements.js +0 -31
  150. package/resources/v1/plans/entitlements.js.map +1 -1
  151. package/resources/v1/plans/entitlements.mjs +0 -31
  152. package/resources/v1/plans/entitlements.mjs.map +1 -1
  153. package/resources/v1/plans/plans.d.mts +0 -69
  154. package/resources/v1/plans/plans.d.mts.map +1 -1
  155. package/resources/v1/plans/plans.d.ts +0 -69
  156. package/resources/v1/plans/plans.d.ts.map +1 -1
  157. package/resources/v1/plans/plans.js +0 -69
  158. package/resources/v1/plans/plans.js.map +1 -1
  159. package/resources/v1/plans/plans.mjs +0 -69
  160. package/resources/v1/plans/plans.mjs.map +1 -1
  161. package/resources/v1/products.d.mts +0 -43
  162. package/resources/v1/products.d.mts.map +1 -1
  163. package/resources/v1/products.d.ts +0 -43
  164. package/resources/v1/products.d.ts.map +1 -1
  165. package/resources/v1/products.js +0 -43
  166. package/resources/v1/products.js.map +1 -1
  167. package/resources/v1/products.mjs +0 -43
  168. package/resources/v1/products.mjs.map +1 -1
  169. package/resources/v1/subscriptions/future-update.d.mts +0 -16
  170. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  171. package/resources/v1/subscriptions/future-update.d.ts +0 -16
  172. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  173. package/resources/v1/subscriptions/future-update.js +0 -16
  174. package/resources/v1/subscriptions/future-update.js.map +1 -1
  175. package/resources/v1/subscriptions/future-update.mjs +0 -16
  176. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  177. package/resources/v1/subscriptions/invoice.d.mts +0 -6
  178. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  179. package/resources/v1/subscriptions/invoice.d.ts +0 -6
  180. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  181. package/resources/v1/subscriptions/invoice.js +0 -6
  182. package/resources/v1/subscriptions/invoice.js.map +1 -1
  183. package/resources/v1/subscriptions/invoice.mjs +0 -6
  184. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  185. package/resources/v1/subscriptions/subscriptions.d.mts +0 -81
  186. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  187. package/resources/v1/subscriptions/subscriptions.d.ts +0 -81
  188. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  189. package/resources/v1/subscriptions/subscriptions.js +0 -81
  190. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  191. package/resources/v1/subscriptions/subscriptions.mjs +0 -81
  192. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  193. package/resources/v1/subscriptions/usage.d.mts +0 -13
  194. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  195. package/resources/v1/subscriptions/usage.d.ts +0 -13
  196. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  197. package/resources/v1/subscriptions/usage.js +0 -13
  198. package/resources/v1/subscriptions/usage.js.map +1 -1
  199. package/resources/v1/subscriptions/usage.mjs +0 -13
  200. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  201. package/resources/v1/usage.d.mts +0 -24
  202. package/resources/v1/usage.d.mts.map +1 -1
  203. package/resources/v1/usage.d.ts +0 -24
  204. package/resources/v1/usage.d.ts.map +1 -1
  205. package/resources/v1/usage.js +0 -24
  206. package/resources/v1/usage.js.map +1 -1
  207. package/resources/v1/usage.mjs +0 -24
  208. package/resources/v1/usage.mjs.map +1 -1
  209. package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.mts +82 -40
  210. package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
  211. package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.ts +82 -40
  212. package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
  213. package/resources/{v1/events/beta → v1-beta}/customers/assignments.js +23 -24
  214. package/resources/v1-beta/customers/assignments.js.map +1 -0
  215. package/resources/{v1/events/beta → v1-beta}/customers/assignments.mjs +23 -24
  216. package/resources/v1-beta/customers/assignments.mjs.map +1 -0
  217. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.mts +1 -1
  218. package/resources/v1-beta/customers/customers.d.mts.map +1 -0
  219. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
  220. package/resources/v1-beta/customers/customers.d.ts.map +1 -0
  221. package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
  222. package/resources/v1-beta/customers/customers.js.map +1 -0
  223. package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
  224. package/resources/v1-beta/customers/customers.mjs.map +1 -0
  225. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +28 -37
  226. package/resources/v1-beta/customers/entities.d.mts.map +1 -0
  227. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +28 -37
  228. package/resources/v1-beta/customers/entities.d.ts.map +1 -0
  229. package/resources/{v1/events/beta → v1-beta}/customers/entities.js +28 -37
  230. package/resources/v1-beta/customers/entities.js.map +1 -0
  231. package/resources/{v1/events/beta → v1-beta}/customers/entities.mjs +28 -37
  232. package/resources/v1-beta/customers/entities.mjs.map +1 -0
  233. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +16 -6
  234. package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
  235. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +16 -6
  236. package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
  237. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.js +4 -6
  238. package/resources/v1-beta/customers/entitlements.js.map +1 -0
  239. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.mjs +4 -6
  240. package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
  241. package/resources/v1-beta/customers/index.d.mts.map +1 -0
  242. package/resources/v1-beta/customers/index.d.ts.map +1 -0
  243. package/resources/v1-beta/customers/index.js.map +1 -0
  244. package/resources/v1-beta/customers/index.mjs.map +1 -0
  245. package/resources/v1-beta/customers.d.mts.map +1 -0
  246. package/resources/v1-beta/customers.d.ts.map +1 -0
  247. package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
  248. package/resources/v1-beta/customers.js.map +1 -0
  249. package/resources/v1-beta/customers.mjs.map +1 -0
  250. package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +19 -20
  251. package/resources/v1-beta/entity-types.d.mts.map +1 -0
  252. package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +19 -20
  253. package/resources/v1-beta/entity-types.d.ts.map +1 -0
  254. package/resources/{v1/events/beta → v1-beta}/entity-types.js +18 -19
  255. package/resources/v1-beta/entity-types.js.map +1 -0
  256. package/resources/{v1/events/beta → v1-beta}/entity-types.mjs +18 -19
  257. package/resources/v1-beta/entity-types.mjs.map +1 -0
  258. package/resources/{v1/events/beta → v1-beta}/index.d.mts +1 -1
  259. package/resources/v1-beta/index.d.mts.map +1 -0
  260. package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
  261. package/resources/v1-beta/index.d.ts.map +1 -0
  262. package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
  263. package/resources/v1-beta/index.js.map +1 -0
  264. package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
  265. package/resources/v1-beta/index.mjs.map +1 -0
  266. package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
  267. package/resources/v1-beta/v1-beta.d.mts.map +1 -0
  268. package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
  269. package/resources/v1-beta/v1-beta.d.ts.map +1 -0
  270. package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
  271. package/resources/v1-beta/v1-beta.js.map +1 -0
  272. package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
  273. package/resources/v1-beta/v1-beta.mjs.map +1 -0
  274. package/resources/v1-beta.d.mts +2 -0
  275. package/resources/v1-beta.d.mts.map +1 -0
  276. package/resources/v1-beta.d.ts +2 -0
  277. package/resources/v1-beta.d.ts.map +1 -0
  278. package/resources/{v1/events/beta.js → v1-beta.js} +3 -3
  279. package/resources/v1-beta.js.map +1 -0
  280. package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
  281. package/resources/v1-beta.mjs.map +1 -0
  282. package/src/client.ts +5 -0
  283. package/src/resources/index.ts +1 -0
  284. package/src/resources/v1/addons/addons.ts +0 -59
  285. package/src/resources/v1/addons/entitlements.ts +0 -31
  286. package/src/resources/v1/coupons.ts +0 -36
  287. package/src/resources/v1/credits/credits.ts +0 -25
  288. package/src/resources/v1/credits/custom-currencies.ts +0 -49
  289. package/src/resources/v1/credits/grants.ts +0 -28
  290. package/src/resources/v1/customers/customers.ts +0 -77
  291. package/src/resources/v1/customers/integrations.ts +0 -47
  292. package/src/resources/v1/customers/payment-method.ts +0 -16
  293. package/src/resources/v1/customers/promotional-entitlements.ts +0 -51
  294. package/src/resources/v1/events/data-export/data-export.ts +58 -21
  295. package/src/resources/v1/events/data-export/destinations.ts +61 -23
  296. package/src/resources/v1/events/data-export/index.ts +1 -0
  297. package/src/resources/v1/events/events.ts +0 -19
  298. package/src/resources/v1/events/index.ts +0 -1
  299. package/src/resources/v1/features.ts +0 -43
  300. package/src/resources/v1/plans/entitlements.ts +0 -31
  301. package/src/resources/v1/plans/plans.ts +0 -69
  302. package/src/resources/v1/products.ts +0 -43
  303. package/src/resources/v1/subscriptions/future-update.ts +0 -16
  304. package/src/resources/v1/subscriptions/invoice.ts +0 -6
  305. package/src/resources/v1/subscriptions/subscriptions.ts +0 -81
  306. package/src/resources/v1/subscriptions/usage.ts +0 -13
  307. package/src/resources/v1/usage.ts +0 -24
  308. package/src/resources/{v1/events/beta → v1-beta}/customers/assignments.ts +96 -45
  309. package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
  310. package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +30 -39
  311. package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +20 -8
  312. package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +20 -21
  313. package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
  314. package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
  315. package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
  316. package/src/version.ts +1 -1
  317. package/version.d.mts +1 -1
  318. package/version.d.ts +1 -1
  319. package/version.js +1 -1
  320. package/version.mjs +1 -1
  321. package/resources/v1/events/beta/beta.d.mts.map +0 -1
  322. package/resources/v1/events/beta/beta.d.ts.map +0 -1
  323. package/resources/v1/events/beta/beta.js.map +0 -1
  324. package/resources/v1/events/beta/beta.mjs.map +0 -1
  325. package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
  326. package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
  327. package/resources/v1/events/beta/customers/assignments.js.map +0 -1
  328. package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
  329. package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
  330. package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
  331. package/resources/v1/events/beta/customers/customers.js.map +0 -1
  332. package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
  333. package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
  334. package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
  335. package/resources/v1/events/beta/customers/entities.js.map +0 -1
  336. package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
  337. package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
  338. package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
  339. package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
  340. package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
  341. package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
  342. package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
  343. package/resources/v1/events/beta/customers/index.js.map +0 -1
  344. package/resources/v1/events/beta/customers/index.mjs.map +0 -1
  345. package/resources/v1/events/beta/customers.d.mts.map +0 -1
  346. package/resources/v1/events/beta/customers.d.ts.map +0 -1
  347. package/resources/v1/events/beta/customers.js.map +0 -1
  348. package/resources/v1/events/beta/customers.mjs.map +0 -1
  349. package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
  350. package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
  351. package/resources/v1/events/beta/entity-types.js.map +0 -1
  352. package/resources/v1/events/beta/entity-types.mjs.map +0 -1
  353. package/resources/v1/events/beta/index.d.mts.map +0 -1
  354. package/resources/v1/events/beta/index.d.ts.map +0 -1
  355. package/resources/v1/events/beta/index.js.map +0 -1
  356. package/resources/v1/events/beta/index.mjs.map +0 -1
  357. package/resources/v1/events/beta.d.mts +0 -2
  358. package/resources/v1/events/beta.d.mts.map +0 -1
  359. package/resources/v1/events/beta.d.ts +0 -2
  360. package/resources/v1/events/beta.d.ts.map +0 -1
  361. package/resources/v1/events/beta.js.map +0 -1
  362. package/resources/v1/events/beta.mjs.map +0 -1
  363. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
  364. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
  365. /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
  366. /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
  367. /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
  368. /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
  369. /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
  370. /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
  371. /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../../../core/resource';
4
4
  import { APIPromise } from '../../../../core/api-promise';
5
+ import { buildHeaders } from '../../../../internal/headers';
5
6
  import { RequestOptions } from '../../../../internal/request-options';
6
7
  import { path } from '../../../../internal/utils/path';
7
8
 
@@ -10,33 +11,41 @@ export class Destinations extends APIResource {
10
11
  * Register a destination on the environment's DATA_EXPORT integration.
11
12
  * Lazy-creates the integration row + provider recipient on first call. Idempotent
12
13
  * on destinationId.
13
- *
14
- * @example
15
- * ```ts
16
- * const destination =
17
- * await client.v1.events.dataExport.destinations.create({
18
- * destinationId: 'x',
19
- * destinationType: 'x',
20
- * });
21
- * ```
22
14
  */
23
- create(body: DestinationCreateParams, options?: RequestOptions): APIPromise<DestinationCreateResponse> {
24
- return this._client.post('/api/v1/data-export/destinations', { body, ...options });
15
+ create(params: DestinationCreateParams, options?: RequestOptions): APIPromise<DestinationCreateResponse> {
16
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
17
+ return this._client.post('/api/v1/data-export/destinations', {
18
+ body,
19
+ ...options,
20
+ headers: buildHeaders([
21
+ {
22
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
23
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
24
+ },
25
+ options?.headers,
26
+ ]),
27
+ });
25
28
  }
26
29
 
27
30
  /**
28
31
  * Remove a destination from the DATA_EXPORT integration metadata. Idempotent.
29
- *
30
- * @example
31
- * ```ts
32
- * const destination =
33
- * await client.v1.events.dataExport.destinations.delete(
34
- * 'x',
35
- * );
36
- * ```
37
32
  */
38
- delete(destinationID: string, options?: RequestOptions): APIPromise<DestinationDeleteResponse> {
39
- return this._client.delete(path`/api/v1/data-export/destinations/${destinationID}`, options);
33
+ delete(
34
+ destinationID: string,
35
+ params: DestinationDeleteParams | null | undefined = {},
36
+ options?: RequestOptions,
37
+ ): APIPromise<DestinationDeleteResponse> {
38
+ const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params ?? {};
39
+ return this._client.delete(path`/api/v1/data-export/destinations/${destinationID}`, {
40
+ ...options,
41
+ headers: buildHeaders([
42
+ {
43
+ ...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
44
+ ...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
45
+ },
46
+ options?.headers,
47
+ ]),
48
+ });
40
49
  }
41
50
  }
42
51
 
@@ -224,14 +233,42 @@ export namespace DestinationDeleteResponse {
224
233
 
225
234
  export interface DestinationCreateParams {
226
235
  /**
227
- * The provider destination ID returned by the embedded SDK on connect
236
+ * Body param: The provider destination ID returned by the embedded SDK on connect
228
237
  */
229
238
  destinationId: string;
230
239
 
231
240
  /**
232
- * The destination type (e.g. snowflake, bigquery)
241
+ * Body param: The destination type (e.g. snowflake, bigquery)
233
242
  */
234
243
  destinationType: string;
244
+
245
+ /**
246
+ * Header param: Account ID — optional when authenticating with a user JWT (Bearer
247
+ * token); falls back to the user's first membership. Ignored for API-key auth.
248
+ */
249
+ 'X-ACCOUNT-ID'?: string;
250
+
251
+ /**
252
+ * Header param: Environment ID — required when authenticating with a user JWT
253
+ * (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
254
+ * intrinsic to the key).
255
+ */
256
+ 'X-ENVIRONMENT-ID'?: string;
257
+ }
258
+
259
+ export interface DestinationDeleteParams {
260
+ /**
261
+ * Account ID — optional when authenticating with a user JWT (Bearer token); falls
262
+ * back to the user's first membership. Ignored for API-key auth.
263
+ */
264
+ 'X-ACCOUNT-ID'?: string;
265
+
266
+ /**
267
+ * Environment ID — required when authenticating with a user JWT (Bearer token) on
268
+ * environment-scoped endpoints. Ignored for API-key auth (env is intrinsic to the
269
+ * key).
270
+ */
271
+ 'X-ENVIRONMENT-ID'?: string;
235
272
  }
236
273
 
237
274
  export declare namespace Destinations {
@@ -239,5 +276,6 @@ export declare namespace Destinations {
239
276
  type DestinationCreateResponse as DestinationCreateResponse,
240
277
  type DestinationDeleteResponse as DestinationDeleteResponse,
241
278
  type DestinationCreateParams as DestinationCreateParams,
279
+ type DestinationDeleteParams as DestinationDeleteParams,
242
280
  };
243
281
  }
@@ -12,4 +12,5 @@ export {
12
12
  type DestinationCreateResponse,
13
13
  type DestinationDeleteResponse,
14
14
  type DestinationCreateParams,
15
+ type DestinationDeleteParams,
15
16
  } from './destinations';
@@ -1,8 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
- import * as BetaAPI from './beta/beta';
5
- import { Beta } from './beta/beta';
6
4
  import * as DataExportAPI from './data-export/data-export';
7
5
  import {
8
6
  DataExport,
@@ -19,25 +17,11 @@ import { RequestOptions } from '../../../internal/request-options';
19
17
  * Operations related to usage & metering
20
18
  */
21
19
  export class Events extends APIResource {
22
- beta: BetaAPI.Beta = new BetaAPI.Beta(this._client);
23
20
  dataExport: DataExportAPI.DataExport = new DataExportAPI.DataExport(this._client);
24
21
 
25
22
  /**
26
23
  * Reports raw usage events for event-based metering. Events are ingested
27
24
  * asynchronously and aggregated into usage totals.
28
- *
29
- * @example
30
- * ```ts
31
- * const response = await client.v1.events.report({
32
- * events: [
33
- * {
34
- * customerId: 'customerId',
35
- * eventName: 'x',
36
- * idempotencyKey: 'x',
37
- * },
38
- * ],
39
- * });
40
- * ```
41
25
  */
42
26
  report(params: EventReportParams, options?: RequestOptions): APIPromise<EventReportResponse> {
43
27
  const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
@@ -123,14 +107,11 @@ export namespace EventReportParams {
123
107
  }
124
108
  }
125
109
 
126
- Events.Beta = Beta;
127
110
  Events.DataExport = DataExport;
128
111
 
129
112
  export declare namespace Events {
130
113
  export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
131
114
 
132
- export { Beta as Beta };
133
-
134
115
  export {
135
116
  DataExport as DataExport,
136
117
  type DataExportMintScopedTokenResponse as DataExportMintScopedTokenResponse,
@@ -1,6 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Beta } from './beta/index';
4
3
  export {
5
4
  DataExport,
6
5
  type DataExportMintScopedTokenResponse,
@@ -13,13 +13,6 @@ import { path } from '../../internal/utils/path';
13
13
  export class Features extends APIResource {
14
14
  /**
15
15
  * Archives a feature, preventing it from being used in new entitlements.
16
- *
17
- * @example
18
- * ```ts
19
- * const feature = await client.v1.features.archiveFeature(
20
- * 'x',
21
- * );
22
- * ```
23
16
  */
24
17
  archiveFeature(
25
18
  id: string,
@@ -41,15 +34,6 @@ export class Features extends APIResource {
41
34
 
42
35
  /**
43
36
  * Creates a new feature with the specified type, metering, and configuration.
44
- *
45
- * @example
46
- * ```ts
47
- * const feature = await client.v1.features.createFeature({
48
- * id: 'id',
49
- * displayName: 'displayName',
50
- * featureType: 'BOOLEAN',
51
- * });
52
- * ```
53
37
  */
54
38
  createFeature(params: FeatureCreateFeatureParams, options?: RequestOptions): APIPromise<Feature> {
55
39
  const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
@@ -68,14 +52,6 @@ export class Features extends APIResource {
68
52
 
69
53
  /**
70
54
  * Retrieves a paginated list of features in the environment.
71
- *
72
- * @example
73
- * ```ts
74
- * // Automatically fetches more pages as needed.
75
- * for await (const featureListFeaturesResponse of client.v1.features.listFeatures()) {
76
- * // ...
77
- * }
78
- * ```
79
55
  */
80
56
  listFeatures(
81
57
  params: FeatureListFeaturesParams | null | undefined = {},
@@ -97,13 +73,6 @@ export class Features extends APIResource {
97
73
 
98
74
  /**
99
75
  * Retrieves a feature by its unique identifier.
100
- *
101
- * @example
102
- * ```ts
103
- * const feature = await client.v1.features.retrieveFeature(
104
- * 'x',
105
- * );
106
- * ```
107
76
  */
108
77
  retrieveFeature(
109
78
  id: string,
@@ -125,13 +94,6 @@ export class Features extends APIResource {
125
94
 
126
95
  /**
127
96
  * Restores an archived feature, allowing it to be used in entitlements again.
128
- *
129
- * @example
130
- * ```ts
131
- * const feature = await client.v1.features.unarchiveFeature(
132
- * 'x',
133
- * );
134
- * ```
135
97
  */
136
98
  unarchiveFeature(
137
99
  id: string,
@@ -154,11 +116,6 @@ export class Features extends APIResource {
154
116
  /**
155
117
  * Updates an existing feature's properties such as display name, description, and
156
118
  * configuration.
157
- *
158
- * @example
159
- * ```ts
160
- * const feature = await client.v1.features.updateFeature('x');
161
- * ```
162
119
  */
163
120
  updateFeature(
164
121
  id: string,
@@ -9,14 +9,6 @@ import { path } from '../../../internal/utils/path';
9
9
  export class Entitlements extends APIResource {
10
10
  /**
11
11
  * Creates one or more entitlements (feature or credit) on a draft plan.
12
- *
13
- * @example
14
- * ```ts
15
- * const entitlement =
16
- * await client.v1.plans.entitlements.create('planId', {
17
- * entitlements: [{ id: 'id', type: 'FEATURE' }],
18
- * });
19
- * ```
20
12
  */
21
13
  create(
22
14
  planID: string,
@@ -39,15 +31,6 @@ export class Entitlements extends APIResource {
39
31
 
40
32
  /**
41
33
  * Updates an existing entitlement on a draft plan.
42
- *
43
- * @example
44
- * ```ts
45
- * const planEntitlement =
46
- * await client.v1.plans.entitlements.update('id', {
47
- * planId: 'planId',
48
- * type: 'FEATURE',
49
- * });
50
- * ```
51
34
  */
52
35
  update(id: string, params: EntitlementUpdateParams, options?: RequestOptions): APIPromise<PlanEntitlement> {
53
36
  const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
@@ -66,12 +49,6 @@ export class Entitlements extends APIResource {
66
49
 
67
50
  /**
68
51
  * Retrieves a list of entitlements for a plan.
69
- *
70
- * @example
71
- * ```ts
72
- * const entitlements =
73
- * await client.v1.plans.entitlements.list('planId');
74
- * ```
75
52
  */
76
53
  list(
77
54
  planID: string,
@@ -93,14 +70,6 @@ export class Entitlements extends APIResource {
93
70
 
94
71
  /**
95
72
  * Deletes an entitlement from a draft plan.
96
- *
97
- * @example
98
- * ```ts
99
- * const planEntitlement =
100
- * await client.v1.plans.entitlements.delete('id', {
101
- * planId: 'planId',
102
- * });
103
- * ```
104
73
  */
105
74
  delete(id: string, params: EntitlementDeleteParams, options?: RequestOptions): APIPromise<PlanEntitlement> {
106
75
  const { planId, 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID } = params;
@@ -26,15 +26,6 @@ export class Plans extends APIResource {
26
26
 
27
27
  /**
28
28
  * Creates a new plan in draft status.
29
- *
30
- * @example
31
- * ```ts
32
- * const plan = await client.v1.plans.create({
33
- * id: 'id',
34
- * displayName: 'displayName',
35
- * productId: 'productId',
36
- * });
37
- * ```
38
29
  */
39
30
  create(params: PlanCreateParams, options?: RequestOptions): APIPromise<Plan> {
40
31
  const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
@@ -54,11 +45,6 @@ export class Plans extends APIResource {
54
45
  /**
55
46
  * Retrieves a plan by its unique identifier, including entitlements and pricing
56
47
  * details.
57
- *
58
- * @example
59
- * ```ts
60
- * const plan = await client.v1.plans.retrieve('x');
61
- * ```
62
48
  */
63
49
  retrieve(
64
50
  id: string,
@@ -81,11 +67,6 @@ export class Plans extends APIResource {
81
67
  /**
82
68
  * Updates an existing plan's properties such as display name, description, and
83
69
  * metadata.
84
- *
85
- * @example
86
- * ```ts
87
- * const plan = await client.v1.plans.update('x');
88
- * ```
89
70
  */
90
71
  update(id: string, params: PlanUpdateParams, options?: RequestOptions): APIPromise<Plan> {
91
72
  const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
@@ -104,14 +85,6 @@ export class Plans extends APIResource {
104
85
 
105
86
  /**
106
87
  * Retrieves a paginated list of plans in the environment.
107
- *
108
- * @example
109
- * ```ts
110
- * // Automatically fetches more pages as needed.
111
- * for await (const planListResponse of client.v1.plans.list()) {
112
- * // ...
113
- * }
114
- * ```
115
88
  */
116
89
  list(
117
90
  params: PlanListParams | null | undefined = {},
@@ -133,11 +106,6 @@ export class Plans extends APIResource {
133
106
 
134
107
  /**
135
108
  * Archives a plan, preventing it from being used in new subscriptions.
136
- *
137
- * @example
138
- * ```ts
139
- * const plan = await client.v1.plans.archive('x');
140
- * ```
141
109
  */
142
110
  archive(
143
111
  id: string,
@@ -159,11 +127,6 @@ export class Plans extends APIResource {
159
127
 
160
128
  /**
161
129
  * Creates a draft version of an existing plan for modification before publishing.
162
- *
163
- * @example
164
- * ```ts
165
- * const plan = await client.v1.plans.createDraft('x');
166
- * ```
167
130
  */
168
131
  createDraft(
169
132
  id: string,
@@ -185,16 +148,6 @@ export class Plans extends APIResource {
185
148
 
186
149
  /**
187
150
  * Retrieves the list of charges configured on a plan.
188
- *
189
- * @example
190
- * ```ts
191
- * // Automatically fetches more pages as needed.
192
- * for await (const planListChargesResponse of client.v1.plans.listCharges(
193
- * 'x',
194
- * )) {
195
- * // ...
196
- * }
197
- * ```
198
151
  */
199
152
  listCharges(
200
153
  id: string,
@@ -221,16 +174,6 @@ export class Plans extends APIResource {
221
174
 
222
175
  /**
223
176
  * Retrieves the list of overage charges configured on a plan.
224
- *
225
- * @example
226
- * ```ts
227
- * // Automatically fetches more pages as needed.
228
- * for await (const planListOverageChargesResponse of client.v1.plans.listOverageCharges(
229
- * 'x',
230
- * )) {
231
- * // ...
232
- * }
233
- * ```
234
177
  */
235
178
  listOverageCharges(
236
179
  id: string,
@@ -257,13 +200,6 @@ export class Plans extends APIResource {
257
200
 
258
201
  /**
259
202
  * Publishes a draft plan, making it available for use in subscriptions.
260
- *
261
- * @example
262
- * ```ts
263
- * const response = await client.v1.plans.publish('x', {
264
- * migrationType: 'NEW_CUSTOMERS',
265
- * });
266
- * ```
267
203
  */
268
204
  publish(id: string, params: PlanPublishParams, options?: RequestOptions): APIPromise<PlanPublishResponse> {
269
205
  const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
@@ -282,11 +218,6 @@ export class Plans extends APIResource {
282
218
 
283
219
  /**
284
220
  * Removes a draft version of a plan.
285
- *
286
- * @example
287
- * ```ts
288
- * const response = await client.v1.plans.removeDraft('x');
289
- * ```
290
221
  */
291
222
  removeDraft(
292
223
  id: string,
@@ -14,13 +14,6 @@ export class Products extends APIResource {
14
14
  /**
15
15
  * Archives a product, preventing new subscriptions. All plans and addons are
16
16
  * archived.
17
- *
18
- * @example
19
- * ```ts
20
- * const product = await client.v1.products.archiveProduct(
21
- * 'x',
22
- * );
23
- * ```
24
17
  */
25
18
  archiveProduct(
26
19
  id: string,
@@ -42,14 +35,6 @@ export class Products extends APIResource {
42
35
 
43
36
  /**
44
37
  * Creates a new product.
45
- *
46
- * @example
47
- * ```ts
48
- * const product = await client.v1.products.createProduct({
49
- * id: 'id',
50
- * displayName: 'displayName',
51
- * });
52
- * ```
53
38
  */
54
39
  createProduct(params: ProductCreateProductParams, options?: RequestOptions): APIPromise<Product> {
55
40
  const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
@@ -68,14 +53,6 @@ export class Products extends APIResource {
68
53
 
69
54
  /**
70
55
  * Duplicates an existing product, including its plans, addons, and configuration.
71
- *
72
- * @example
73
- * ```ts
74
- * const product = await client.v1.products.duplicateProduct(
75
- * 'x',
76
- * { targetId: 'targetId' },
77
- * );
78
- * ```
79
56
  */
80
57
  duplicateProduct(
81
58
  id: string,
@@ -98,14 +75,6 @@ export class Products extends APIResource {
98
75
 
99
76
  /**
100
77
  * Retrieves a paginated list of products in the environment.
101
- *
102
- * @example
103
- * ```ts
104
- * // Automatically fetches more pages as needed.
105
- * for await (const productListProductsResponse of client.v1.products.listProducts()) {
106
- * // ...
107
- * }
108
- * ```
109
78
  */
110
79
  listProducts(
111
80
  params: ProductListProductsParams | null | undefined = {},
@@ -127,13 +96,6 @@ export class Products extends APIResource {
127
96
 
128
97
  /**
129
98
  * Restores an archived product, allowing new subscriptions to be created.
130
- *
131
- * @example
132
- * ```ts
133
- * const product = await client.v1.products.unarchiveProduct(
134
- * 'x',
135
- * );
136
- * ```
137
99
  */
138
100
  unarchiveProduct(
139
101
  id: string,
@@ -156,11 +118,6 @@ export class Products extends APIResource {
156
118
  /**
157
119
  * Updates an existing product's properties such as display name, description, and
158
120
  * metadata.
159
- *
160
- * @example
161
- * ```ts
162
- * const product = await client.v1.products.updateProduct('x');
163
- * ```
164
121
  */
165
122
  updateProduct(
166
123
  id: string,
@@ -12,14 +12,6 @@ import { path } from '../../../internal/utils/path';
12
12
  export class FutureUpdate extends APIResource {
13
13
  /**
14
14
  * Cancels a subscription update that is pending payment completion.
15
- *
16
- * @example
17
- * ```ts
18
- * const cancelSubscription =
19
- * await client.v1.subscriptions.futureUpdate.cancelPendingPayment(
20
- * 'x',
21
- * );
22
- * ```
23
15
  */
24
16
  cancelPendingPayment(
25
17
  id: string,
@@ -42,14 +34,6 @@ export class FutureUpdate extends APIResource {
42
34
  /**
43
35
  * Cancels a scheduled subscription update, such as a future downgrade or plan
44
36
  * change.
45
- *
46
- * @example
47
- * ```ts
48
- * const cancelSubscription =
49
- * await client.v1.subscriptions.futureUpdate.cancelSchedule(
50
- * 'x',
51
- * );
52
- * ```
53
37
  */
54
38
  cancelSchedule(
55
39
  id: string,
@@ -13,12 +13,6 @@ export class Invoice extends APIResource {
13
13
  /**
14
14
  * Marks the latest invoice of a subscription as paid in the billing provider. The
15
15
  * invoice must exist and have an OPEN status.
16
- *
17
- * @example
18
- * ```ts
19
- * const response =
20
- * await client.v1.subscriptions.invoice.markAsPaid('x');
21
- * ```
22
16
  */
23
17
  markAsPaid(
24
18
  id: string,