@stigg/typescript 0.1.0-beta.13 → 0.1.0-beta.14

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 (373) hide show
  1. package/CHANGELOG.md +8 -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.d.mts +65 -1
  100. package/resources/v1/events.d.mts.map +1 -1
  101. package/resources/v1/events.d.ts +65 -1
  102. package/resources/v1/events.d.ts.map +1 -1
  103. package/resources/v1/events.js +15 -2
  104. package/resources/v1/events.js.map +1 -1
  105. package/resources/v1/events.mjs +13 -1
  106. package/resources/v1/events.mjs.map +1 -1
  107. package/resources/v1/features.d.mts +0 -43
  108. package/resources/v1/features.d.mts.map +1 -1
  109. package/resources/v1/features.d.ts +0 -43
  110. package/resources/v1/features.d.ts.map +1 -1
  111. package/resources/v1/features.js +0 -43
  112. package/resources/v1/features.js.map +1 -1
  113. package/resources/v1/features.mjs +0 -43
  114. package/resources/v1/features.mjs.map +1 -1
  115. package/resources/v1/index.d.mts +1 -1
  116. package/resources/v1/index.d.mts.map +1 -1
  117. package/resources/v1/index.d.ts +1 -1
  118. package/resources/v1/index.d.ts.map +1 -1
  119. package/resources/v1/index.js +6 -6
  120. package/resources/v1/index.js.map +1 -1
  121. package/resources/v1/index.mjs +1 -1
  122. package/resources/v1/index.mjs.map +1 -1
  123. package/resources/v1/plans/entitlements.d.mts +0 -31
  124. package/resources/v1/plans/entitlements.d.mts.map +1 -1
  125. package/resources/v1/plans/entitlements.d.ts +0 -31
  126. package/resources/v1/plans/entitlements.d.ts.map +1 -1
  127. package/resources/v1/plans/entitlements.js +0 -31
  128. package/resources/v1/plans/entitlements.js.map +1 -1
  129. package/resources/v1/plans/entitlements.mjs +0 -31
  130. package/resources/v1/plans/entitlements.mjs.map +1 -1
  131. package/resources/v1/plans/plans.d.mts +0 -69
  132. package/resources/v1/plans/plans.d.mts.map +1 -1
  133. package/resources/v1/plans/plans.d.ts +0 -69
  134. package/resources/v1/plans/plans.d.ts.map +1 -1
  135. package/resources/v1/plans/plans.js +0 -69
  136. package/resources/v1/plans/plans.js.map +1 -1
  137. package/resources/v1/plans/plans.mjs +0 -69
  138. package/resources/v1/plans/plans.mjs.map +1 -1
  139. package/resources/v1/products.d.mts +0 -43
  140. package/resources/v1/products.d.mts.map +1 -1
  141. package/resources/v1/products.d.ts +0 -43
  142. package/resources/v1/products.d.ts.map +1 -1
  143. package/resources/v1/products.js +0 -43
  144. package/resources/v1/products.js.map +1 -1
  145. package/resources/v1/products.mjs +0 -43
  146. package/resources/v1/products.mjs.map +1 -1
  147. package/resources/v1/subscriptions/future-update.d.mts +0 -16
  148. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  149. package/resources/v1/subscriptions/future-update.d.ts +0 -16
  150. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  151. package/resources/v1/subscriptions/future-update.js +0 -16
  152. package/resources/v1/subscriptions/future-update.js.map +1 -1
  153. package/resources/v1/subscriptions/future-update.mjs +0 -16
  154. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  155. package/resources/v1/subscriptions/invoice.d.mts +0 -6
  156. package/resources/v1/subscriptions/invoice.d.mts.map +1 -1
  157. package/resources/v1/subscriptions/invoice.d.ts +0 -6
  158. package/resources/v1/subscriptions/invoice.d.ts.map +1 -1
  159. package/resources/v1/subscriptions/invoice.js +0 -6
  160. package/resources/v1/subscriptions/invoice.js.map +1 -1
  161. package/resources/v1/subscriptions/invoice.mjs +0 -6
  162. package/resources/v1/subscriptions/invoice.mjs.map +1 -1
  163. package/resources/v1/subscriptions/subscriptions.d.mts +0 -81
  164. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  165. package/resources/v1/subscriptions/subscriptions.d.ts +0 -81
  166. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  167. package/resources/v1/subscriptions/subscriptions.js +0 -81
  168. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  169. package/resources/v1/subscriptions/subscriptions.mjs +0 -81
  170. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  171. package/resources/v1/subscriptions/usage.d.mts +0 -13
  172. package/resources/v1/subscriptions/usage.d.mts.map +1 -1
  173. package/resources/v1/subscriptions/usage.d.ts +0 -13
  174. package/resources/v1/subscriptions/usage.d.ts.map +1 -1
  175. package/resources/v1/subscriptions/usage.js +0 -13
  176. package/resources/v1/subscriptions/usage.js.map +1 -1
  177. package/resources/v1/subscriptions/usage.mjs +0 -13
  178. package/resources/v1/subscriptions/usage.mjs.map +1 -1
  179. package/resources/v1/usage.d.mts +0 -24
  180. package/resources/v1/usage.d.mts.map +1 -1
  181. package/resources/v1/usage.d.ts +0 -24
  182. package/resources/v1/usage.d.ts.map +1 -1
  183. package/resources/v1/usage.js +0 -24
  184. package/resources/v1/usage.js.map +1 -1
  185. package/resources/v1/usage.mjs +0 -24
  186. package/resources/v1/usage.mjs.map +1 -1
  187. package/resources/v1/v1.d.mts +2 -2
  188. package/resources/v1/v1.d.mts.map +1 -1
  189. package/resources/v1/v1.d.ts +2 -2
  190. package/resources/v1/v1.d.ts.map +1 -1
  191. package/resources/v1/v1.js +2 -2
  192. package/resources/v1/v1.js.map +1 -1
  193. package/resources/v1/v1.mjs +2 -2
  194. package/resources/v1/v1.mjs.map +1 -1
  195. package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.mts +21 -24
  196. package/resources/v1-beta/customers/assignments.d.mts.map +1 -0
  197. package/resources/{v1/events/beta → v1-beta}/customers/assignments.d.ts +21 -24
  198. package/resources/v1-beta/customers/assignments.d.ts.map +1 -0
  199. package/resources/{v1/events/beta → v1-beta}/customers/assignments.js +20 -23
  200. package/resources/v1-beta/customers/assignments.js.map +1 -0
  201. package/resources/{v1/events/beta → v1-beta}/customers/assignments.mjs +20 -23
  202. package/resources/v1-beta/customers/assignments.mjs.map +1 -0
  203. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.mts +1 -1
  204. package/resources/v1-beta/customers/customers.d.mts.map +1 -0
  205. package/resources/{v1/events/beta → v1-beta}/customers/customers.d.ts +1 -1
  206. package/resources/v1-beta/customers/customers.d.ts.map +1 -0
  207. package/resources/{v1/events/beta → v1-beta}/customers/customers.js +2 -2
  208. package/resources/v1-beta/customers/customers.js.map +1 -0
  209. package/resources/{v1/events/beta → v1-beta}/customers/customers.mjs +1 -1
  210. package/resources/v1-beta/customers/customers.mjs.map +1 -0
  211. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.mts +28 -37
  212. package/resources/v1-beta/customers/entities.d.mts.map +1 -0
  213. package/resources/{v1/events/beta → v1-beta}/customers/entities.d.ts +28 -37
  214. package/resources/v1-beta/customers/entities.d.ts.map +1 -0
  215. package/resources/{v1/events/beta → v1-beta}/customers/entities.js +27 -36
  216. package/resources/v1-beta/customers/entities.js.map +1 -0
  217. package/resources/{v1/events/beta → v1-beta}/customers/entities.mjs +27 -36
  218. package/resources/v1-beta/customers/entities.mjs.map +1 -0
  219. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.mts +4 -6
  220. package/resources/v1-beta/customers/entitlements.d.mts.map +1 -0
  221. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.d.ts +4 -6
  222. package/resources/v1-beta/customers/entitlements.d.ts.map +1 -0
  223. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.js +3 -5
  224. package/resources/v1-beta/customers/entitlements.js.map +1 -0
  225. package/resources/{v1/events/beta → v1-beta}/customers/entitlements.mjs +3 -5
  226. package/resources/v1-beta/customers/entitlements.mjs.map +1 -0
  227. package/resources/v1-beta/customers/index.d.mts.map +1 -0
  228. package/resources/v1-beta/customers/index.d.ts.map +1 -0
  229. package/resources/v1-beta/customers/index.js.map +1 -0
  230. package/resources/v1-beta/customers/index.mjs.map +1 -0
  231. package/resources/v1-beta/customers.d.mts.map +1 -0
  232. package/resources/v1-beta/customers.d.ts.map +1 -0
  233. package/resources/{v1/events/beta → v1-beta}/customers.js +1 -1
  234. package/resources/v1-beta/customers.js.map +1 -0
  235. package/resources/v1-beta/customers.mjs.map +1 -0
  236. package/resources/{v1/events/beta → v1-beta}/entity-types.d.mts +19 -20
  237. package/resources/v1-beta/entity-types.d.mts.map +1 -0
  238. package/resources/{v1/events/beta → v1-beta}/entity-types.d.ts +19 -20
  239. package/resources/v1-beta/entity-types.d.ts.map +1 -0
  240. package/resources/{v1/events/beta → v1-beta}/entity-types.js +17 -18
  241. package/resources/v1-beta/entity-types.js.map +1 -0
  242. package/resources/{v1/events/beta → v1-beta}/entity-types.mjs +17 -18
  243. package/resources/v1-beta/entity-types.mjs.map +1 -0
  244. package/resources/{v1/events/beta → v1-beta}/index.d.mts +1 -1
  245. package/resources/v1-beta/index.d.mts.map +1 -0
  246. package/resources/{v1/events/beta → v1-beta}/index.d.ts +1 -1
  247. package/resources/v1-beta/index.d.ts.map +1 -0
  248. package/resources/{v1/events/beta → v1-beta}/index.js +3 -3
  249. package/resources/v1-beta/index.js.map +1 -0
  250. package/resources/{v1/events/beta → v1-beta}/index.mjs +1 -1
  251. package/resources/v1-beta/index.mjs.map +1 -0
  252. package/resources/{v1/events/beta/beta.d.mts → v1-beta/v1-beta.d.mts} +4 -4
  253. package/resources/v1-beta/v1-beta.d.mts.map +1 -0
  254. package/resources/{v1/events/beta/beta.d.ts → v1-beta/v1-beta.d.ts} +4 -4
  255. package/resources/v1-beta/v1-beta.d.ts.map +1 -0
  256. package/resources/{v1/events/beta/beta.js → v1-beta/v1-beta.js} +8 -8
  257. package/resources/v1-beta/v1-beta.js.map +1 -0
  258. package/resources/{v1/events/beta/beta.mjs → v1-beta/v1-beta.mjs} +5 -5
  259. package/resources/v1-beta/v1-beta.mjs.map +1 -0
  260. package/resources/v1-beta.d.mts +2 -0
  261. package/resources/v1-beta.d.mts.map +1 -0
  262. package/resources/v1-beta.d.ts +2 -0
  263. package/resources/v1-beta.d.ts.map +1 -0
  264. package/resources/{v1/events/beta.js → v1-beta.js} +3 -3
  265. package/resources/v1-beta.js.map +1 -0
  266. package/resources/{v1/events/beta.mjs → v1-beta.mjs} +2 -2
  267. package/resources/v1-beta.mjs.map +1 -0
  268. package/src/client.ts +5 -0
  269. package/src/resources/index.ts +1 -0
  270. package/src/resources/v1/addons/addons.ts +0 -59
  271. package/src/resources/v1/addons/entitlements.ts +0 -31
  272. package/src/resources/v1/coupons.ts +0 -36
  273. package/src/resources/v1/credits/credits.ts +0 -25
  274. package/src/resources/v1/credits/custom-currencies.ts +0 -49
  275. package/src/resources/v1/credits/grants.ts +0 -28
  276. package/src/resources/v1/customers/customers.ts +0 -77
  277. package/src/resources/v1/customers/integrations.ts +0 -47
  278. package/src/resources/v1/customers/payment-method.ts +0 -16
  279. package/src/resources/v1/customers/promotional-entitlements.ts +0 -51
  280. package/src/resources/v1/events.ts +75 -1
  281. package/src/resources/v1/features.ts +0 -43
  282. package/src/resources/v1/index.ts +1 -1
  283. package/src/resources/v1/plans/entitlements.ts +0 -31
  284. package/src/resources/v1/plans/plans.ts +0 -69
  285. package/src/resources/v1/products.ts +0 -43
  286. package/src/resources/v1/subscriptions/future-update.ts +0 -16
  287. package/src/resources/v1/subscriptions/invoice.ts +0 -6
  288. package/src/resources/v1/subscriptions/subscriptions.ts +0 -81
  289. package/src/resources/v1/subscriptions/usage.ts +0 -13
  290. package/src/resources/v1/usage.ts +0 -24
  291. package/src/resources/v1/v1.ts +2 -2
  292. package/src/resources/{v1/events/beta → v1-beta}/customers/assignments.ts +22 -25
  293. package/src/resources/{v1/events/beta → v1-beta}/customers/customers.ts +1 -1
  294. package/src/resources/{v1/events/beta → v1-beta}/customers/entities.ts +29 -38
  295. package/src/resources/{v1/events/beta → v1-beta}/customers/entitlements.ts +5 -7
  296. package/src/resources/{v1/events/beta → v1-beta}/entity-types.ts +19 -20
  297. package/src/resources/{v1/events/beta → v1-beta}/index.ts +1 -1
  298. package/src/resources/{v1/events/beta/beta.ts → v1-beta/v1-beta.ts} +5 -5
  299. package/src/resources/{v1/events/beta.ts → v1-beta.ts} +1 -1
  300. package/src/version.ts +1 -1
  301. package/version.d.mts +1 -1
  302. package/version.d.ts +1 -1
  303. package/version.js +1 -1
  304. package/version.mjs +1 -1
  305. package/resources/v1/events/beta/beta.d.mts.map +0 -1
  306. package/resources/v1/events/beta/beta.d.ts.map +0 -1
  307. package/resources/v1/events/beta/beta.js.map +0 -1
  308. package/resources/v1/events/beta/beta.mjs.map +0 -1
  309. package/resources/v1/events/beta/customers/assignments.d.mts.map +0 -1
  310. package/resources/v1/events/beta/customers/assignments.d.ts.map +0 -1
  311. package/resources/v1/events/beta/customers/assignments.js.map +0 -1
  312. package/resources/v1/events/beta/customers/assignments.mjs.map +0 -1
  313. package/resources/v1/events/beta/customers/customers.d.mts.map +0 -1
  314. package/resources/v1/events/beta/customers/customers.d.ts.map +0 -1
  315. package/resources/v1/events/beta/customers/customers.js.map +0 -1
  316. package/resources/v1/events/beta/customers/customers.mjs.map +0 -1
  317. package/resources/v1/events/beta/customers/entities.d.mts.map +0 -1
  318. package/resources/v1/events/beta/customers/entities.d.ts.map +0 -1
  319. package/resources/v1/events/beta/customers/entities.js.map +0 -1
  320. package/resources/v1/events/beta/customers/entities.mjs.map +0 -1
  321. package/resources/v1/events/beta/customers/entitlements.d.mts.map +0 -1
  322. package/resources/v1/events/beta/customers/entitlements.d.ts.map +0 -1
  323. package/resources/v1/events/beta/customers/entitlements.js.map +0 -1
  324. package/resources/v1/events/beta/customers/entitlements.mjs.map +0 -1
  325. package/resources/v1/events/beta/customers/index.d.mts.map +0 -1
  326. package/resources/v1/events/beta/customers/index.d.ts.map +0 -1
  327. package/resources/v1/events/beta/customers/index.js.map +0 -1
  328. package/resources/v1/events/beta/customers/index.mjs.map +0 -1
  329. package/resources/v1/events/beta/customers.d.mts.map +0 -1
  330. package/resources/v1/events/beta/customers.d.ts.map +0 -1
  331. package/resources/v1/events/beta/customers.js.map +0 -1
  332. package/resources/v1/events/beta/customers.mjs.map +0 -1
  333. package/resources/v1/events/beta/entity-types.d.mts.map +0 -1
  334. package/resources/v1/events/beta/entity-types.d.ts.map +0 -1
  335. package/resources/v1/events/beta/entity-types.js.map +0 -1
  336. package/resources/v1/events/beta/entity-types.mjs.map +0 -1
  337. package/resources/v1/events/beta/index.d.mts.map +0 -1
  338. package/resources/v1/events/beta/index.d.ts.map +0 -1
  339. package/resources/v1/events/beta/index.js.map +0 -1
  340. package/resources/v1/events/beta/index.mjs.map +0 -1
  341. package/resources/v1/events/beta.d.mts +0 -2
  342. package/resources/v1/events/beta.d.mts.map +0 -1
  343. package/resources/v1/events/beta.d.ts +0 -2
  344. package/resources/v1/events/beta.d.ts.map +0 -1
  345. package/resources/v1/events/beta.js.map +0 -1
  346. package/resources/v1/events/beta.mjs.map +0 -1
  347. package/resources/v1/events/events.d.mts +0 -83
  348. package/resources/v1/events/events.d.mts.map +0 -1
  349. package/resources/v1/events/events.d.ts +0 -83
  350. package/resources/v1/events/events.d.ts.map +0 -1
  351. package/resources/v1/events/events.js +0 -40
  352. package/resources/v1/events/events.js.map +0 -1
  353. package/resources/v1/events/events.mjs +0 -35
  354. package/resources/v1/events/events.mjs.map +0 -1
  355. package/resources/v1/events/index.d.mts +0 -3
  356. package/resources/v1/events/index.d.mts.map +0 -1
  357. package/resources/v1/events/index.d.ts +0 -3
  358. package/resources/v1/events/index.d.ts.map +0 -1
  359. package/resources/v1/events/index.js +0 -9
  360. package/resources/v1/events/index.js.map +0 -1
  361. package/resources/v1/events/index.mjs +0 -4
  362. package/resources/v1/events/index.mjs.map +0 -1
  363. package/src/resources/v1/events/events.ts +0 -98
  364. package/src/resources/v1/events/index.ts +0 -4
  365. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.mts +0 -0
  366. /package/resources/{v1/events/beta → v1-beta}/customers/index.d.ts +0 -0
  367. /package/resources/{v1/events/beta → v1-beta}/customers/index.js +0 -0
  368. /package/resources/{v1/events/beta → v1-beta}/customers/index.mjs +0 -0
  369. /package/resources/{v1/events/beta → v1-beta}/customers.d.mts +0 -0
  370. /package/resources/{v1/events/beta → v1-beta}/customers.d.ts +0 -0
  371. /package/resources/{v1/events/beta → v1-beta}/customers.mjs +0 -0
  372. /package/src/resources/{v1/events/beta → v1-beta}/customers/index.ts +0 -0
  373. /package/src/resources/{v1/events/beta → v1-beta}/customers.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,2BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,sBAAkB"}
@@ -1,4 +1,4 @@
1
- export { Beta } from "./beta.js";
2
1
  export { Customers } from "./customers/index.js";
3
2
  export { EntityTypes, type EntityTypeListResponse, type EntityTypeUpsertResponse, type EntityTypeListParams, type EntityTypeUpsertParams, type EntityTypeListResponsesMyCursorIDPage, } from "./entity-types.js";
3
+ export { V1Beta } from "./v1-beta.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,6BAA0B;AAC9C,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qCAAqC,GAC3C,0BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,qBAAkB"}
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.EntityTypes = exports.Customers = exports.Beta = void 0;
5
- var beta_1 = require("./beta.js");
6
- Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
4
+ exports.V1Beta = exports.EntityTypes = exports.Customers = void 0;
7
5
  var index_1 = require("./customers/index.js");
8
6
  Object.defineProperty(exports, "Customers", { enumerable: true, get: function () { return index_1.Customers; } });
9
7
  var entity_types_1 = require("./entity-types.js");
10
8
  Object.defineProperty(exports, "EntityTypes", { enumerable: true, get: function () { return entity_types_1.EntityTypes; } });
9
+ var v1_beta_1 = require("./v1-beta.js");
10
+ Object.defineProperty(exports, "V1Beta", { enumerable: true, get: function () { return v1_beta_1.V1Beta; } });
11
11
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAA8C;AAArC,kGAAA,SAAS,OAAA;AAClB,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,wCAAmC;AAA1B,iGAAA,MAAM,OAAA"}
@@ -1,5 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Beta } from "./beta.mjs";
3
2
  export { Customers } from "./customers/index.mjs";
4
3
  export { EntityTypes, } from "./entity-types.mjs";
4
+ export { V1Beta } from "./v1-beta.mjs";
5
5
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1-beta/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,SAAS,EAAE,8BAA0B;AAC9C,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EAAE,MAAM,EAAE,sBAAkB"}
@@ -1,14 +1,14 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
1
+ import { APIResource } from "../../core/resource.mjs";
2
2
  import * as EntityTypesAPI from "./entity-types.mjs";
3
3
  import { EntityTypeListParams, EntityTypeListResponse, EntityTypeListResponsesMyCursorIDPage, EntityTypeUpsertParams, EntityTypeUpsertResponse, EntityTypes } from "./entity-types.mjs";
4
4
  import * as CustomersAPI from "./customers/customers.mjs";
5
5
  import { Customers } from "./customers/customers.mjs";
6
- export declare class Beta extends APIResource {
6
+ export declare class V1Beta extends APIResource {
7
7
  customers: CustomersAPI.Customers;
8
8
  entityTypes: EntityTypesAPI.EntityTypes;
9
9
  }
10
- export declare namespace Beta {
10
+ export declare namespace V1Beta {
11
11
  export { Customers as Customers };
12
12
  export { EntityTypes as EntityTypes, type EntityTypeListResponse as EntityTypeListResponse, type EntityTypeUpsertResponse as EntityTypeUpsertResponse, type EntityTypeListResponsesMyCursorIDPage as EntityTypeListResponsesMyCursorIDPage, type EntityTypeListParams as EntityTypeListParams, type EntityTypeUpsertParams as EntityTypeUpsertParams, };
13
13
  }
14
- //# sourceMappingURL=beta.d.mts.map
14
+ //# sourceMappingURL=v1-beta.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.d.mts","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qCAAqC,EACrC,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ,2BAAuB;AACxB,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAElD,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAKD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;IAElC,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,14 +1,14 @@
1
- import { APIResource } from "../../../../core/resource.js";
1
+ import { APIResource } from "../../core/resource.js";
2
2
  import * as EntityTypesAPI from "./entity-types.js";
3
3
  import { EntityTypeListParams, EntityTypeListResponse, EntityTypeListResponsesMyCursorIDPage, EntityTypeUpsertParams, EntityTypeUpsertResponse, EntityTypes } from "./entity-types.js";
4
4
  import * as CustomersAPI from "./customers/customers.js";
5
5
  import { Customers } from "./customers/customers.js";
6
- export declare class Beta extends APIResource {
6
+ export declare class V1Beta extends APIResource {
7
7
  customers: CustomersAPI.Customers;
8
8
  entityTypes: EntityTypesAPI.EntityTypes;
9
9
  }
10
- export declare namespace Beta {
10
+ export declare namespace V1Beta {
11
11
  export { Customers as Customers };
12
12
  export { EntityTypes as EntityTypes, type EntityTypeListResponse as EntityTypeListResponse, type EntityTypeUpsertResponse as EntityTypeUpsertResponse, type EntityTypeListResponsesMyCursorIDPage as EntityTypeListResponsesMyCursorIDPage, type EntityTypeListParams as EntityTypeListParams, type EntityTypeUpsertParams as EntityTypeUpsertParams, };
13
13
  }
14
- //# sourceMappingURL=beta.d.ts.map
14
+ //# sourceMappingURL=v1-beta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.d.ts","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,cAAc,0BAAuB;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qCAAqC,EACrC,sBAAsB,EACtB,wBAAwB,EACxB,WAAW,EACZ,0BAAuB;AACxB,OAAO,KAAK,YAAY,iCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,iCAA8B;AAElD,qBAAa,MAAO,SAAQ,WAAW;IACrC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAKD,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,CAAC;IAElC,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,21 +1,21 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Beta = void 0;
5
- const tslib_1 = require("../../../../internal/tslib.js");
6
- const resource_1 = require("../../../../core/resource.js");
4
+ exports.V1Beta = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
7
  const EntityTypesAPI = tslib_1.__importStar(require("./entity-types.js"));
8
8
  const entity_types_1 = require("./entity-types.js");
9
9
  const CustomersAPI = tslib_1.__importStar(require("./customers/customers.js"));
10
10
  const customers_1 = require("./customers/customers.js");
11
- class Beta extends resource_1.APIResource {
11
+ class V1Beta extends resource_1.APIResource {
12
12
  constructor() {
13
13
  super(...arguments);
14
14
  this.customers = new CustomersAPI.Customers(this._client);
15
15
  this.entityTypes = new EntityTypesAPI.EntityTypes(this._client);
16
16
  }
17
17
  }
18
- exports.Beta = Beta;
19
- Beta.Customers = customers_1.Customers;
20
- Beta.EntityTypes = entity_types_1.EntityTypes;
21
- //# sourceMappingURL=beta.js.map
18
+ exports.V1Beta = V1Beta;
19
+ V1Beta.Customers = customers_1.Customers;
20
+ V1Beta.EntityTypes = entity_types_1.EntityTypes;
21
+ //# sourceMappingURL=v1-beta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.js","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,0EAAiD;AACjD,oDAOwB;AACxB,+EAAsD;AACtD,wDAAkD;AAElD,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAHD,wBAGC;AAED,MAAM,CAAC,SAAS,GAAG,qBAAS,CAAC;AAC7B,MAAM,CAAC,WAAW,GAAG,0BAAW,CAAC"}
@@ -1,16 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../../core/resource.mjs";
2
+ import { APIResource } from "../../core/resource.mjs";
3
3
  import * as EntityTypesAPI from "./entity-types.mjs";
4
4
  import { EntityTypes, } from "./entity-types.mjs";
5
5
  import * as CustomersAPI from "./customers/customers.mjs";
6
6
  import { Customers } from "./customers/customers.mjs";
7
- export class Beta extends APIResource {
7
+ export class V1Beta extends APIResource {
8
8
  constructor() {
9
9
  super(...arguments);
10
10
  this.customers = new CustomersAPI.Customers(this._client);
11
11
  this.entityTypes = new EntityTypesAPI.EntityTypes(this._client);
12
12
  }
13
13
  }
14
- Beta.Customers = Customers;
15
- Beta.EntityTypes = EntityTypes;
16
- //# sourceMappingURL=beta.mjs.map
14
+ V1Beta.Customers = Customers;
15
+ V1Beta.EntityTypes = EntityTypes;
16
+ //# sourceMappingURL=v1-beta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.mjs","sourceRoot":"","sources":["../../src/resources/v1-beta/v1-beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,2BAAuB;AACjD,OAAO,EAML,WAAW,GACZ,2BAAuB;AACxB,OAAO,KAAK,YAAY,kCAA8B;AACtD,OAAO,EAAE,SAAS,EAAE,kCAA8B;AAElD,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,MAAM,CAAC,SAAS,GAAG,SAAS,CAAC;AAC7B,MAAM,CAAC,WAAW,GAAG,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./v1-beta/index.mjs";
2
+ //# sourceMappingURL=v1-beta.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.d.mts","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
@@ -0,0 +1,2 @@
1
+ export * from "./v1-beta/index.js";
2
+ //# sourceMappingURL=v1-beta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.d.ts","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../../../internal/tslib.js");
5
- tslib_1.__exportStar(require("./beta/index.js"), exports);
6
- //# sourceMappingURL=beta.js.map
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./v1-beta/index.js"), exports);
6
+ //# sourceMappingURL=v1-beta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.js","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
@@ -1,3 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./beta/index.mjs";
3
- //# sourceMappingURL=beta.mjs.map
2
+ export * from "./v1-beta/index.mjs";
3
+ //# sourceMappingURL=v1-beta.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1-beta.mjs","sourceRoot":"","sources":["../src/resources/v1-beta.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
package/src/client.ts CHANGED
@@ -19,6 +19,7 @@ import { AbstractPage, type MyCursorIDPageParams, MyCursorIDPageResponse } from
19
19
  import * as Uploads from './core/uploads';
20
20
  import * as API from './resources/index';
21
21
  import { APIPromise } from './core/api-promise';
22
+ import { V1Beta } from './resources/v1-beta/v1-beta';
22
23
  import { V1 } from './resources/v1/v1';
23
24
  import { type Fetch } from './internal/builtin-types';
24
25
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
@@ -754,9 +755,11 @@ export class Stigg {
754
755
  static toFile = Uploads.toFile;
755
756
 
756
757
  v1: API.V1 = new API.V1(this);
758
+ v1Beta: API.V1Beta = new API.V1Beta(this);
757
759
  }
758
760
 
759
761
  Stigg.V1 = V1;
762
+ Stigg.V1Beta = V1Beta;
760
763
 
761
764
  export declare namespace Stigg {
762
765
  export type RequestOptions = Opts.RequestOptions;
@@ -768,4 +771,6 @@ export declare namespace Stigg {
768
771
  };
769
772
 
770
773
  export { V1 as V1 };
774
+
775
+ export { V1Beta as V1Beta };
771
776
  }
@@ -1,3 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  export { V1 } from './v1/v1';
4
+ export { V1Beta } from './v1-beta/v1-beta';
@@ -24,15 +24,6 @@ export class Addons extends APIResource {
24
24
 
25
25
  /**
26
26
  * Creates a new addon in draft status, associated with a specific product.
27
- *
28
- * @example
29
- * ```ts
30
- * const addon = await client.v1.addons.create({
31
- * id: 'id',
32
- * displayName: 'displayName',
33
- * productId: 'productId',
34
- * });
35
- * ```
36
27
  */
37
28
  create(body: AddonCreateParams, options?: RequestOptions): APIPromise<Addon> {
38
29
  return this._client.post('/api/v1/addons', { body, ...options });
@@ -41,11 +32,6 @@ export class Addons extends APIResource {
41
32
  /**
42
33
  * Retrieves an addon by its unique identifier, including entitlements and pricing
43
34
  * details.
44
- *
45
- * @example
46
- * ```ts
47
- * const addon = await client.v1.addons.retrieve('x');
48
- * ```
49
35
  */
50
36
  retrieve(id: string, options?: RequestOptions): APIPromise<Addon> {
51
37
  return this._client.get(path`/api/v1/addons/${id}`, options);
@@ -54,11 +40,6 @@ export class Addons extends APIResource {
54
40
  /**
55
41
  * Updates an existing addon's properties such as display name, description, and
56
42
  * metadata.
57
- *
58
- * @example
59
- * ```ts
60
- * const addon = await client.v1.addons.update('x');
61
- * ```
62
43
  */
63
44
  update(id: string, body: AddonUpdateParams, options?: RequestOptions): APIPromise<Addon> {
64
45
  return this._client.patch(path`/api/v1/addons/${id}`, { body, ...options });
@@ -66,14 +47,6 @@ export class Addons extends APIResource {
66
47
 
67
48
  /**
68
49
  * Retrieves a paginated list of addons in the environment.
69
- *
70
- * @example
71
- * ```ts
72
- * // Automatically fetches more pages as needed.
73
- * for await (const addonListResponse of client.v1.addons.list()) {
74
- * // ...
75
- * }
76
- * ```
77
50
  */
78
51
  list(
79
52
  query: AddonListParams | null | undefined = {},
@@ -87,11 +60,6 @@ export class Addons extends APIResource {
87
60
 
88
61
  /**
89
62
  * Archives an addon, preventing it from being used in new subscriptions.
90
- *
91
- * @example
92
- * ```ts
93
- * const addon = await client.v1.addons.archive('x');
94
- * ```
95
63
  */
96
64
  archive(id: string, options?: RequestOptions): APIPromise<Addon> {
97
65
  return this._client.post(path`/api/v1/addons/${id}/archive`, options);
@@ -99,11 +67,6 @@ export class Addons extends APIResource {
99
67
 
100
68
  /**
101
69
  * Creates a draft version of an existing addon for modification before publishing.
102
- *
103
- * @example
104
- * ```ts
105
- * const addon = await client.v1.addons.createDraft('x');
106
- * ```
107
70
  */
108
71
  createDraft(id: string, options?: RequestOptions): APIPromise<Addon> {
109
72
  return this._client.post(path`/api/v1/addons/${id}/draft`, options);
@@ -111,16 +74,6 @@ export class Addons extends APIResource {
111
74
 
112
75
  /**
113
76
  * Retrieves the list of charges configured on an addon.
114
- *
115
- * @example
116
- * ```ts
117
- * // Automatically fetches more pages as needed.
118
- * for await (const addonListChargesResponse of client.v1.addons.listCharges(
119
- * 'x',
120
- * )) {
121
- * // ...
122
- * }
123
- * ```
124
77
  */
125
78
  listCharges(
126
79
  id: string,
@@ -136,13 +89,6 @@ export class Addons extends APIResource {
136
89
 
137
90
  /**
138
91
  * Publishes a draft addon, making it available for use in subscriptions.
139
- *
140
- * @example
141
- * ```ts
142
- * const response = await client.v1.addons.publish('x', {
143
- * migrationType: 'NEW_CUSTOMERS',
144
- * });
145
- * ```
146
92
  */
147
93
  publish(id: string, body: AddonPublishParams, options?: RequestOptions): APIPromise<AddonPublishResponse> {
148
94
  return this._client.post(path`/api/v1/addons/${id}/publish`, { body, ...options });
@@ -150,11 +96,6 @@ export class Addons extends APIResource {
150
96
 
151
97
  /**
152
98
  * Removes a draft version of an addon.
153
- *
154
- * @example
155
- * ```ts
156
- * const response = await client.v1.addons.removeDraft('x');
157
- * ```
158
99
  */
159
100
  removeDraft(id: string, options?: RequestOptions): APIPromise<AddonRemoveDraftResponse> {
160
101
  return this._client.delete(path`/api/v1/addons/${id}/draft`, options);
@@ -8,14 +8,6 @@ import { path } from '../../../internal/utils/path';
8
8
  export class Entitlements extends APIResource {
9
9
  /**
10
10
  * Creates one or more entitlements (feature or credit) on a draft addon.
11
- *
12
- * @example
13
- * ```ts
14
- * const entitlement =
15
- * await client.v1.addons.entitlements.create('addonId', {
16
- * entitlements: [{ id: 'id', type: 'FEATURE' }],
17
- * });
18
- * ```
19
11
  */
20
12
  create(
21
13
  addonID: string,
@@ -27,15 +19,6 @@ export class Entitlements extends APIResource {
27
19
 
28
20
  /**
29
21
  * Updates an existing entitlement on a draft addon.
30
- *
31
- * @example
32
- * ```ts
33
- * const addonPackageEntitlement =
34
- * await client.v1.addons.entitlements.update('id', {
35
- * addonId: 'addonId',
36
- * type: 'FEATURE',
37
- * });
38
- * ```
39
22
  */
40
23
  update(
41
24
  id: string,
@@ -48,12 +31,6 @@ export class Entitlements extends APIResource {
48
31
 
49
32
  /**
50
33
  * Retrieves a list of entitlements for an addon.
51
- *
52
- * @example
53
- * ```ts
54
- * const entitlements =
55
- * await client.v1.addons.entitlements.list('addonId');
56
- * ```
57
34
  */
58
35
  list(addonID: string, options?: RequestOptions): APIPromise<EntitlementListResponse> {
59
36
  return this._client.get(path`/api/v1/addons/${addonID}/entitlements`, options);
@@ -61,14 +38,6 @@ export class Entitlements extends APIResource {
61
38
 
62
39
  /**
63
40
  * Deletes an entitlement from a draft addon.
64
- *
65
- * @example
66
- * ```ts
67
- * const addonPackageEntitlement =
68
- * await client.v1.addons.entitlements.delete('id', {
69
- * addonId: 'addonId',
70
- * });
71
- * ```
72
41
  */
73
42
  delete(
74
43
  id: string,
@@ -13,19 +13,6 @@ export class Coupons extends APIResource {
13
13
  /**
14
14
  * Creates a new discount coupon with percentage or fixed amount off, applicable to
15
15
  * customer subscriptions.
16
- *
17
- * @example
18
- * ```ts
19
- * const coupon = await client.v1.coupons.create({
20
- * id: 'id',
21
- * amountsOff: [{ amount: 0, currency: 'usd' }],
22
- * description: 'description',
23
- * durationInMonths: 1,
24
- * metadata: { foo: 'string' },
25
- * name: 'name',
26
- * percentOff: 1,
27
- * });
28
- * ```
29
16
  */
30
17
  create(body: CouponCreateParams, options?: RequestOptions): APIPromise<Coupon> {
31
18
  return this._client.post('/api/v1/coupons', { body, ...options });
@@ -33,11 +20,6 @@ export class Coupons extends APIResource {
33
20
 
34
21
  /**
35
22
  * Retrieves a coupon by its unique identifier.
36
- *
37
- * @example
38
- * ```ts
39
- * const coupon = await client.v1.coupons.retrieve('x');
40
- * ```
41
23
  */
42
24
  retrieve(id: string, options?: RequestOptions): APIPromise<Coupon> {
43
25
  return this._client.get(path`/api/v1/coupons/${id}`, options);
@@ -45,14 +27,6 @@ export class Coupons extends APIResource {
45
27
 
46
28
  /**
47
29
  * Retrieves a paginated list of coupons in the environment.
48
- *
49
- * @example
50
- * ```ts
51
- * // Automatically fetches more pages as needed.
52
- * for await (const couponListResponse of client.v1.coupons.list()) {
53
- * // ...
54
- * }
55
- * ```
56
30
  */
57
31
  list(
58
32
  query: CouponListParams | null | undefined = {},
@@ -66,11 +40,6 @@ export class Coupons extends APIResource {
66
40
 
67
41
  /**
68
42
  * Archives a coupon, preventing it from being applied to new subscriptions.
69
- *
70
- * @example
71
- * ```ts
72
- * const coupon = await client.v1.coupons.archiveCoupon('x');
73
- * ```
74
43
  */
75
44
  archiveCoupon(id: string, options?: RequestOptions): APIPromise<Coupon> {
76
45
  return this._client.post(path`/api/v1/coupons/${id}/archive`, options);
@@ -78,11 +47,6 @@ export class Coupons extends APIResource {
78
47
 
79
48
  /**
80
49
  * Updates an existing coupon's properties such as name, description, and metadata.
81
- *
82
- * @example
83
- * ```ts
84
- * const coupon = await client.v1.coupons.updateCoupon('x');
85
- * ```
86
50
  */
87
51
  updateCoupon(id: string, body: CouponUpdateCouponParams, options?: RequestOptions): APIPromise<Coupon> {
88
52
  return this._client.patch(path`/api/v1/coupons/${id}`, { body, ...options });
@@ -34,14 +34,6 @@ export class Credits extends APIResource {
34
34
  /**
35
35
  * Retrieves the automatic recharge configuration for a customer and currency.
36
36
  * Returns default settings if no configuration exists.
37
- *
38
- * @example
39
- * ```ts
40
- * const response = await client.v1.credits.getAutoRecharge({
41
- * currencyId: 'currencyId',
42
- * customerId: 'customerId',
43
- * });
44
- * ```
45
37
  */
46
38
  getAutoRecharge(
47
39
  query: CreditGetAutoRechargeParams,
@@ -53,13 +45,6 @@ export class Credits extends APIResource {
53
45
  /**
54
46
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
55
47
  * a specified time range.
56
- *
57
- * @example
58
- * ```ts
59
- * const response = await client.v1.credits.getUsage({
60
- * customerId: 'customerId',
61
- * });
62
- * ```
63
48
  */
64
49
  getUsage(query: CreditGetUsageParams, options?: RequestOptions): APIPromise<CreditGetUsageResponse> {
65
50
  return this._client.get('/api/v1/credits/usage', { query, ...options });
@@ -67,16 +52,6 @@ export class Credits extends APIResource {
67
52
 
68
53
  /**
69
54
  * Retrieves a paginated list of credit ledger events for a customer.
70
- *
71
- * @example
72
- * ```ts
73
- * // Automatically fetches more pages as needed.
74
- * for await (const creditListLedgerResponse of client.v1.credits.listLedger(
75
- * { customerId: 'customerId' },
76
- * )) {
77
- * // ...
78
- * }
79
- * ```
80
55
  */
81
56
  listLedger(
82
57
  query: CreditListLedgerParams,
@@ -12,15 +12,6 @@ import { path } from '../../../internal/utils/path';
12
12
  export class CustomCurrencies extends APIResource {
13
13
  /**
14
14
  * Creates a new custom currency in the environment.
15
- *
16
- * @example
17
- * ```ts
18
- * const customCurrencyResponse =
19
- * await client.v1.credits.customCurrencies.create({
20
- * id: 'id',
21
- * displayName: 'displayName',
22
- * });
23
- * ```
24
15
  */
25
16
  create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
26
17
  return this._client.post('/api/v1/credits/custom-currencies', { body, ...options });
@@ -28,14 +19,6 @@ export class CustomCurrencies extends APIResource {
28
19
 
29
20
  /**
30
21
  * Updates an existing custom currency. Only the supplied fields are modified.
31
- *
32
- * @example
33
- * ```ts
34
- * const customCurrencyResponse =
35
- * await client.v1.credits.customCurrencies.update(
36
- * 'currencyId',
37
- * );
38
- * ```
39
22
  */
40
23
  update(
41
24
  currencyID: string,
@@ -49,14 +32,6 @@ export class CustomCurrencies extends APIResource {
49
32
  * Retrieves a paginated list of custom currencies in the environment. Archived
50
33
  * currencies are excluded by default; pass `status=ARCHIVED` (or
51
34
  * `status=ACTIVE,ARCHIVED`) to include them.
52
- *
53
- * @example
54
- * ```ts
55
- * // Automatically fetches more pages as needed.
56
- * for await (const customCurrencyListResponse of client.v1.credits.customCurrencies.list()) {
57
- * // ...
58
- * }
59
- * ```
60
35
  */
61
36
  list(
62
37
  query: CustomCurrencyListParams | null | undefined = {},
@@ -73,14 +48,6 @@ export class CustomCurrencies extends APIResource {
73
48
  * Archives a custom currency. Fails if the currency is still associated with any
74
49
  * active plan or addon — use the associated-entities endpoint first to inspect
75
50
  * dependencies.
76
- *
77
- * @example
78
- * ```ts
79
- * const customCurrencyResponse =
80
- * await client.v1.credits.customCurrencies.archive(
81
- * 'currencyId',
82
- * );
83
- * ```
84
51
  */
85
52
  archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
86
53
  return this._client.post(path`/api/v1/credits/custom-currencies/${currencyID}/archive`, options);
@@ -89,14 +56,6 @@ export class CustomCurrencies extends APIResource {
89
56
  /**
90
57
  * Lists the active plans and addons that reference a custom currency. Useful
91
58
  * before archiving to inspect dependencies.
92
- *
93
- * @example
94
- * ```ts
95
- * const response =
96
- * await client.v1.credits.customCurrencies.listAssociatedEntities(
97
- * 'currencyId',
98
- * );
99
- * ```
100
59
  */
101
60
  listAssociatedEntities(
102
61
  currencyID: string,
@@ -111,14 +70,6 @@ export class CustomCurrencies extends APIResource {
111
70
  /**
112
71
  * Restores a previously archived custom currency. Fails if another active currency
113
72
  * with the same ID already exists.
114
- *
115
- * @example
116
- * ```ts
117
- * const customCurrencyResponse =
118
- * await client.v1.credits.customCurrencies.unarchive(
119
- * 'currencyId',
120
- * );
121
- * ```
122
73
  */
123
74
  unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
124
75
  return this._client.post(path`/api/v1/credits/custom-currencies/${currencyID}/unarchive`, options);
@@ -13,18 +13,6 @@ export class Grants extends APIResource {
13
13
  /**
14
14
  * Creates a new credit grant for a customer with specified amount, type, and
15
15
  * optional billing configuration.
16
- *
17
- * @example
18
- * ```ts
19
- * const creditGrantResponse =
20
- * await client.v1.credits.grants.create({
21
- * amount: 0,
22
- * currencyId: 'currencyId',
23
- * customerId: 'customerId',
24
- * displayName: 'displayName',
25
- * grantType: 'PAID',
26
- * });
27
- * ```
28
16
  */
29
17
  create(body: GrantCreateParams, options?: RequestOptions): APIPromise<CreditGrantResponse> {
30
18
  return this._client.post('/api/v1/credits/grants', { body, ...options });
@@ -32,16 +20,6 @@ export class Grants extends APIResource {
32
20
 
33
21
  /**
34
22
  * Retrieves a paginated list of credit grants for a customer.
35
- *
36
- * @example
37
- * ```ts
38
- * // Automatically fetches more pages as needed.
39
- * for await (const grantListResponse of client.v1.credits.grants.list(
40
- * { customerId: 'customerId' },
41
- * )) {
42
- * // ...
43
- * }
44
- * ```
45
23
  */
46
24
  list(
47
25
  query: GrantListParams,
@@ -56,12 +34,6 @@ export class Grants extends APIResource {
56
34
  /**
57
35
  * Voids an existing credit grant, preventing further consumption of the remaining
58
36
  * credits.
59
- *
60
- * @example
61
- * ```ts
62
- * const creditGrantResponse =
63
- * await client.v1.credits.grants.void('x');
64
- * ```
65
37
  */
66
38
  void(id: string, options?: RequestOptions): APIPromise<CreditGrantResponse> {
67
39
  return this._client.post(path`/api/v1/credits/grants/${id}/void`, options);