@usehercules/sdk 1.11.0 → 1.12.1

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 (413) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +13 -12
  3. package/client.d.mts +12 -3
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -3
  6. package/client.d.ts.map +1 -1
  7. package/client.js +12 -3
  8. package/client.js.map +1 -1
  9. package/client.mjs +12 -3
  10. package/client.mjs.map +1 -1
  11. package/package.json +2 -2
  12. package/resources/{beta/commerce → commerce}/commerce.d.mts +38 -21
  13. package/resources/commerce/commerce.d.mts.map +1 -0
  14. package/resources/{beta/commerce → commerce}/commerce.d.ts +38 -21
  15. package/resources/commerce/commerce.d.ts.map +1 -0
  16. package/resources/{beta/commerce → commerce}/commerce.js +36 -4
  17. package/resources/commerce/commerce.js.map +1 -0
  18. package/resources/{beta/commerce → commerce}/commerce.mjs +35 -3
  19. package/resources/commerce/commerce.mjs.map +1 -0
  20. package/resources/{beta/commerce → commerce}/coupons.d.mts +34 -10
  21. package/resources/commerce/coupons.d.mts.map +1 -0
  22. package/resources/{beta/commerce → commerce}/coupons.d.ts +34 -10
  23. package/resources/commerce/coupons.d.ts.map +1 -0
  24. package/resources/{beta/commerce → commerce}/coupons.js +32 -14
  25. package/resources/commerce/coupons.js.map +1 -0
  26. package/resources/{beta/commerce → commerce}/coupons.mjs +32 -14
  27. package/resources/commerce/coupons.mjs.map +1 -0
  28. package/resources/commerce/customers/balance-transactions.d.mts +4 -0
  29. package/resources/commerce/customers/balance-transactions.d.mts.map +1 -0
  30. package/resources/commerce/customers/balance-transactions.d.ts +4 -0
  31. package/resources/commerce/customers/balance-transactions.d.ts.map +1 -0
  32. package/resources/commerce/customers/balance-transactions.js +9 -0
  33. package/resources/commerce/customers/balance-transactions.js.map +1 -0
  34. package/resources/commerce/customers/balance-transactions.mjs +5 -0
  35. package/resources/commerce/customers/balance-transactions.mjs.map +1 -0
  36. package/resources/{beta/commerce → commerce/customers}/customers.d.mts +51 -12
  37. package/resources/commerce/customers/customers.d.mts.map +1 -0
  38. package/resources/{beta/commerce → commerce/customers}/customers.d.ts +51 -12
  39. package/resources/commerce/customers/customers.d.ts.map +1 -0
  40. package/resources/{beta/commerce → commerce/customers}/customers.js +43 -11
  41. package/resources/commerce/customers/customers.js.map +1 -0
  42. package/resources/{beta/commerce → commerce/customers}/customers.mjs +42 -11
  43. package/resources/commerce/customers/customers.mjs.map +1 -0
  44. package/resources/commerce/customers/index.d.mts +3 -0
  45. package/resources/commerce/customers/index.d.mts.map +1 -0
  46. package/resources/commerce/customers/index.d.ts +3 -0
  47. package/resources/commerce/customers/index.d.ts.map +1 -0
  48. package/resources/commerce/customers/index.js +9 -0
  49. package/resources/commerce/customers/index.js.map +1 -0
  50. package/resources/commerce/customers/index.mjs +4 -0
  51. package/resources/commerce/customers/index.mjs.map +1 -0
  52. package/resources/commerce/customers.d.mts +2 -0
  53. package/resources/commerce/customers.d.mts.map +1 -0
  54. package/resources/commerce/customers.d.ts +2 -0
  55. package/resources/commerce/customers.d.ts.map +1 -0
  56. package/resources/{beta.js → commerce/customers.js} +3 -3
  57. package/resources/commerce/customers.js.map +1 -0
  58. package/resources/{beta.mjs → commerce/customers.mjs} +2 -2
  59. package/resources/commerce/customers.mjs.map +1 -0
  60. package/resources/{beta/commerce → commerce}/features.d.mts +35 -20
  61. package/resources/commerce/features.d.mts.map +1 -0
  62. package/resources/{beta/commerce → commerce}/features.d.ts +35 -20
  63. package/resources/commerce/features.d.ts.map +1 -0
  64. package/resources/{beta/commerce → commerce}/features.js +32 -14
  65. package/resources/commerce/features.js.map +1 -0
  66. package/resources/{beta/commerce → commerce}/features.mjs +32 -14
  67. package/resources/commerce/features.mjs.map +1 -0
  68. package/resources/{beta/commerce → commerce}/index.d.mts +2 -1
  69. package/resources/commerce/index.d.mts.map +1 -0
  70. package/resources/{beta/commerce → commerce}/index.d.ts +2 -1
  71. package/resources/commerce/index.d.ts.map +1 -0
  72. package/resources/{beta/commerce → commerce}/index.js +7 -5
  73. package/resources/commerce/index.js.map +1 -0
  74. package/resources/{beta/commerce → commerce}/index.mjs +2 -1
  75. package/resources/commerce/index.mjs.map +1 -0
  76. package/resources/{beta/commerce → commerce}/products/index.d.mts +2 -2
  77. package/resources/commerce/products/index.d.mts.map +1 -0
  78. package/resources/{beta/commerce → commerce}/products/index.d.ts +2 -2
  79. package/resources/commerce/products/index.d.ts.map +1 -0
  80. package/resources/commerce/products/index.js.map +1 -0
  81. package/resources/commerce/products/index.mjs.map +1 -0
  82. package/resources/{beta/commerce → commerce}/products/products.d.mts +45 -55
  83. package/resources/commerce/products/products.d.mts.map +1 -0
  84. package/resources/{beta/commerce → commerce}/products/products.d.ts +45 -55
  85. package/resources/commerce/products/products.d.ts.map +1 -0
  86. package/resources/{beta/commerce → commerce}/products/products.js +34 -11
  87. package/resources/commerce/products/products.js.map +1 -0
  88. package/resources/{beta/commerce → commerce}/products/products.mjs +33 -10
  89. package/resources/commerce/products/products.mjs.map +1 -0
  90. package/resources/commerce/products/resources.d.mts +174 -0
  91. package/resources/commerce/products/resources.d.mts.map +1 -0
  92. package/resources/commerce/products/resources.d.ts +174 -0
  93. package/resources/commerce/products/resources.d.ts.map +1 -0
  94. package/resources/commerce/products/resources.js +65 -0
  95. package/resources/commerce/products/resources.js.map +1 -0
  96. package/resources/commerce/products/resources.mjs +61 -0
  97. package/resources/commerce/products/resources.mjs.map +1 -0
  98. package/resources/{beta/commerce → commerce}/products/variants.d.mts +43 -53
  99. package/resources/commerce/products/variants.d.mts.map +1 -0
  100. package/resources/{beta/commerce → commerce}/products/variants.d.ts +43 -53
  101. package/resources/commerce/products/variants.d.ts.map +1 -0
  102. package/resources/{beta/commerce → commerce}/products/variants.js +39 -11
  103. package/resources/commerce/products/variants.js.map +1 -0
  104. package/resources/{beta/commerce → commerce}/products/variants.mjs +39 -11
  105. package/resources/commerce/products/variants.mjs.map +1 -0
  106. package/resources/commerce/products.d.mts.map +1 -0
  107. package/resources/commerce/products.d.ts.map +1 -0
  108. package/resources/{beta/commerce → commerce}/products.js +1 -1
  109. package/resources/commerce/products.js.map +1 -0
  110. package/resources/commerce/products.mjs.map +1 -0
  111. package/resources/commerce/subscription-groups.d.mts +4 -0
  112. package/resources/commerce/subscription-groups.d.mts.map +1 -0
  113. package/resources/commerce/subscription-groups.d.ts +4 -0
  114. package/resources/commerce/subscription-groups.d.ts.map +1 -0
  115. package/resources/commerce/subscription-groups.js +9 -0
  116. package/resources/commerce/subscription-groups.js.map +1 -0
  117. package/resources/commerce/subscription-groups.mjs +5 -0
  118. package/resources/commerce/subscription-groups.mjs.map +1 -0
  119. package/resources/commerce.d.mts.map +1 -0
  120. package/resources/{beta/commerce.d.ts.map → commerce.d.ts.map} +1 -1
  121. package/resources/{beta/commerce.js → commerce.js} +1 -1
  122. package/resources/commerce.js.map +1 -0
  123. package/resources/commerce.mjs.map +1 -0
  124. package/resources/{beta/content → content}/assets.d.mts +5 -5
  125. package/resources/content/assets.d.mts.map +1 -0
  126. package/resources/{beta/content → content}/assets.d.ts +5 -5
  127. package/resources/content/assets.d.ts.map +1 -0
  128. package/resources/{beta/content → content}/assets.js +4 -4
  129. package/resources/content/assets.js.map +1 -0
  130. package/resources/{beta/content → content}/assets.mjs +4 -4
  131. package/resources/content/assets.mjs.map +1 -0
  132. package/resources/{beta/content → content}/content.d.mts +4 -1
  133. package/resources/content/content.d.mts.map +1 -0
  134. package/resources/{beta/content → content}/content.d.ts +4 -1
  135. package/resources/content/content.d.ts.map +1 -0
  136. package/resources/{beta/content → content}/content.js +5 -2
  137. package/resources/content/content.js.map +1 -0
  138. package/resources/{beta/content → content}/content.mjs +4 -1
  139. package/resources/content/content.mjs.map +1 -0
  140. package/resources/{beta/content → content}/entries.d.mts +5 -5
  141. package/resources/content/entries.d.mts.map +1 -0
  142. package/resources/{beta/content → content}/entries.d.ts +5 -5
  143. package/resources/content/entries.d.ts.map +1 -0
  144. package/resources/{beta/content → content}/entries.js +3 -3
  145. package/resources/content/entries.js.map +1 -0
  146. package/resources/{beta/content → content}/entries.mjs +3 -3
  147. package/resources/content/entries.mjs.map +1 -0
  148. package/resources/content/index.d.mts.map +1 -0
  149. package/resources/content/index.d.ts.map +1 -0
  150. package/resources/content/index.js.map +1 -0
  151. package/resources/content/index.mjs.map +1 -0
  152. package/resources/{beta/content → content}/locales.d.mts +6 -6
  153. package/resources/content/locales.d.mts.map +1 -0
  154. package/resources/{beta/content → content}/locales.d.ts +6 -6
  155. package/resources/content/locales.d.ts.map +1 -0
  156. package/resources/{beta/content → content}/locales.js +4 -4
  157. package/resources/content/locales.js.map +1 -0
  158. package/resources/{beta/content → content}/locales.mjs +4 -4
  159. package/resources/content/locales.mjs.map +1 -0
  160. package/resources/{beta/content → content}/models/fields.d.mts +6 -6
  161. package/resources/content/models/fields.d.mts.map +1 -0
  162. package/resources/{beta/content → content}/models/fields.d.ts +6 -6
  163. package/resources/content/models/fields.d.ts.map +1 -0
  164. package/resources/{beta/content → content}/models/fields.js +3 -3
  165. package/resources/content/models/fields.js.map +1 -0
  166. package/resources/{beta/content → content}/models/fields.mjs +3 -3
  167. package/resources/content/models/fields.mjs.map +1 -0
  168. package/resources/content/models/index.d.mts.map +1 -0
  169. package/resources/content/models/index.d.ts.map +1 -0
  170. package/resources/content/models/index.js.map +1 -0
  171. package/resources/content/models/index.mjs.map +1 -0
  172. package/resources/{beta/content → content}/models/models.d.mts +10 -10
  173. package/resources/content/models/models.d.mts.map +1 -0
  174. package/resources/{beta/content → content}/models/models.d.ts +10 -10
  175. package/resources/content/models/models.d.ts.map +1 -0
  176. package/resources/{beta/content → content}/models/models.js +4 -4
  177. package/resources/content/models/models.js.map +1 -0
  178. package/resources/{beta/content → content}/models/models.mjs +3 -3
  179. package/resources/content/models/models.mjs.map +1 -0
  180. package/resources/content/models.d.mts.map +1 -0
  181. package/resources/content/models.d.ts.map +1 -0
  182. package/resources/{beta/content → content}/models.js +1 -1
  183. package/resources/content/models.js.map +1 -0
  184. package/resources/content/models.mjs.map +1 -0
  185. package/resources/content/releases/index.d.mts.map +1 -0
  186. package/resources/content/releases/index.d.ts.map +1 -0
  187. package/resources/content/releases/index.js.map +1 -0
  188. package/resources/content/releases/index.mjs.map +1 -0
  189. package/resources/{beta/content → content}/releases/items.d.mts +3 -3
  190. package/resources/content/releases/items.d.mts.map +1 -0
  191. package/resources/{beta/content → content}/releases/items.d.ts +3 -3
  192. package/resources/content/releases/items.d.ts.map +1 -0
  193. package/resources/{beta/content → content}/releases/items.js +3 -3
  194. package/resources/content/releases/items.js.map +1 -0
  195. package/resources/{beta/content → content}/releases/items.mjs +3 -3
  196. package/resources/content/releases/items.mjs.map +1 -0
  197. package/resources/{beta/content → content}/releases/releases.d.mts +6 -6
  198. package/resources/content/releases/releases.d.mts.map +1 -0
  199. package/resources/{beta/content → content}/releases/releases.d.ts +6 -6
  200. package/resources/content/releases/releases.d.ts.map +1 -0
  201. package/resources/{beta/content → content}/releases/releases.js +5 -5
  202. package/resources/content/releases/releases.js.map +1 -0
  203. package/resources/{beta/content → content}/releases/releases.mjs +4 -4
  204. package/resources/content/releases/releases.mjs.map +1 -0
  205. package/resources/content/releases.d.mts.map +1 -0
  206. package/resources/content/releases.d.ts.map +1 -0
  207. package/resources/{beta/content → content}/releases.js +1 -1
  208. package/resources/content/releases.js.map +1 -0
  209. package/resources/content/releases.mjs.map +1 -0
  210. package/resources/{beta/content.d.mts.map → content.d.mts.map} +1 -1
  211. package/resources/{beta/content.d.ts.map → content.d.ts.map} +1 -1
  212. package/resources/{beta/content.js → content.js} +1 -1
  213. package/resources/content.js.map +1 -0
  214. package/resources/content.mjs.map +1 -0
  215. package/resources/index.d.mts +2 -1
  216. package/resources/index.d.mts.map +1 -1
  217. package/resources/index.d.ts +2 -1
  218. package/resources/index.d.ts.map +1 -1
  219. package/resources/index.js +5 -3
  220. package/resources/index.js.map +1 -1
  221. package/resources/index.mjs +2 -1
  222. package/resources/index.mjs.map +1 -1
  223. package/src/client.ts +31 -4
  224. package/src/resources/{beta/commerce → commerce}/commerce.ts +51 -33
  225. package/src/resources/{beta/commerce → commerce}/coupons.ts +35 -18
  226. package/src/resources/commerce/customers/balance-transactions.ts +5 -0
  227. package/src/resources/{beta/commerce → commerce/customers}/customers.ts +57 -19
  228. package/src/resources/commerce/customers/index.ts +15 -0
  229. package/src/resources/{beta.ts → commerce/customers.ts} +1 -1
  230. package/src/resources/{beta/commerce → commerce}/features.ts +36 -30
  231. package/src/resources/{beta/commerce → commerce}/index.ts +2 -1
  232. package/src/resources/{beta/commerce → commerce}/products/index.ts +1 -2
  233. package/src/resources/{beta/commerce → commerce}/products/products.ts +44 -66
  234. package/src/resources/commerce/products/resources.ts +226 -0
  235. package/src/resources/{beta/commerce → commerce}/products/variants.ts +43 -66
  236. package/src/resources/commerce/subscription-groups.ts +5 -0
  237. package/src/resources/{beta/content → content}/assets.ts +7 -7
  238. package/src/resources/{beta/content → content}/content.ts +4 -1
  239. package/src/resources/{beta/content → content}/entries.ts +6 -6
  240. package/src/resources/{beta/content → content}/locales.ts +8 -8
  241. package/src/resources/{beta/content → content}/models/fields.ts +8 -8
  242. package/src/resources/{beta/content → content}/models/models.ts +11 -11
  243. package/src/resources/{beta/content → content}/releases/items.ts +5 -5
  244. package/src/resources/{beta/content → content}/releases/releases.ts +8 -8
  245. package/src/resources/index.ts +10 -1
  246. package/src/version.ts +1 -1
  247. package/version.d.mts +1 -1
  248. package/version.d.ts +1 -1
  249. package/version.js +1 -1
  250. package/version.mjs +1 -1
  251. package/resources/beta/beta.d.mts +0 -14
  252. package/resources/beta/beta.d.mts.map +0 -1
  253. package/resources/beta/beta.d.ts +0 -14
  254. package/resources/beta/beta.d.ts.map +0 -1
  255. package/resources/beta/beta.js +0 -21
  256. package/resources/beta/beta.js.map +0 -1
  257. package/resources/beta/beta.mjs +0 -16
  258. package/resources/beta/beta.mjs.map +0 -1
  259. package/resources/beta/commerce/commerce.d.mts.map +0 -1
  260. package/resources/beta/commerce/commerce.d.ts.map +0 -1
  261. package/resources/beta/commerce/commerce.js.map +0 -1
  262. package/resources/beta/commerce/commerce.mjs.map +0 -1
  263. package/resources/beta/commerce/coupons.d.mts.map +0 -1
  264. package/resources/beta/commerce/coupons.d.ts.map +0 -1
  265. package/resources/beta/commerce/coupons.js.map +0 -1
  266. package/resources/beta/commerce/coupons.mjs.map +0 -1
  267. package/resources/beta/commerce/customers.d.mts.map +0 -1
  268. package/resources/beta/commerce/customers.d.ts.map +0 -1
  269. package/resources/beta/commerce/customers.js.map +0 -1
  270. package/resources/beta/commerce/customers.mjs.map +0 -1
  271. package/resources/beta/commerce/features.d.mts.map +0 -1
  272. package/resources/beta/commerce/features.d.ts.map +0 -1
  273. package/resources/beta/commerce/features.js.map +0 -1
  274. package/resources/beta/commerce/features.mjs.map +0 -1
  275. package/resources/beta/commerce/index.d.mts.map +0 -1
  276. package/resources/beta/commerce/index.d.ts.map +0 -1
  277. package/resources/beta/commerce/index.js.map +0 -1
  278. package/resources/beta/commerce/index.mjs.map +0 -1
  279. package/resources/beta/commerce/products/index.d.mts.map +0 -1
  280. package/resources/beta/commerce/products/index.d.ts.map +0 -1
  281. package/resources/beta/commerce/products/index.js.map +0 -1
  282. package/resources/beta/commerce/products/index.mjs.map +0 -1
  283. package/resources/beta/commerce/products/products.d.mts.map +0 -1
  284. package/resources/beta/commerce/products/products.d.ts.map +0 -1
  285. package/resources/beta/commerce/products/products.js.map +0 -1
  286. package/resources/beta/commerce/products/products.mjs.map +0 -1
  287. package/resources/beta/commerce/products/resources.d.mts +0 -161
  288. package/resources/beta/commerce/products/resources.d.mts.map +0 -1
  289. package/resources/beta/commerce/products/resources.d.ts +0 -161
  290. package/resources/beta/commerce/products/resources.d.ts.map +0 -1
  291. package/resources/beta/commerce/products/resources.js +0 -41
  292. package/resources/beta/commerce/products/resources.js.map +0 -1
  293. package/resources/beta/commerce/products/resources.mjs +0 -37
  294. package/resources/beta/commerce/products/resources.mjs.map +0 -1
  295. package/resources/beta/commerce/products/variants.d.mts.map +0 -1
  296. package/resources/beta/commerce/products/variants.d.ts.map +0 -1
  297. package/resources/beta/commerce/products/variants.js.map +0 -1
  298. package/resources/beta/commerce/products/variants.mjs.map +0 -1
  299. package/resources/beta/commerce/products.d.mts.map +0 -1
  300. package/resources/beta/commerce/products.d.ts.map +0 -1
  301. package/resources/beta/commerce/products.js.map +0 -1
  302. package/resources/beta/commerce/products.mjs.map +0 -1
  303. package/resources/beta/commerce.d.mts.map +0 -1
  304. package/resources/beta/commerce.js.map +0 -1
  305. package/resources/beta/commerce.mjs.map +0 -1
  306. package/resources/beta/content/assets.d.mts.map +0 -1
  307. package/resources/beta/content/assets.d.ts.map +0 -1
  308. package/resources/beta/content/assets.js.map +0 -1
  309. package/resources/beta/content/assets.mjs.map +0 -1
  310. package/resources/beta/content/content.d.mts.map +0 -1
  311. package/resources/beta/content/content.d.ts.map +0 -1
  312. package/resources/beta/content/content.js.map +0 -1
  313. package/resources/beta/content/content.mjs.map +0 -1
  314. package/resources/beta/content/entries.d.mts.map +0 -1
  315. package/resources/beta/content/entries.d.ts.map +0 -1
  316. package/resources/beta/content/entries.js.map +0 -1
  317. package/resources/beta/content/entries.mjs.map +0 -1
  318. package/resources/beta/content/index.d.mts.map +0 -1
  319. package/resources/beta/content/index.d.ts.map +0 -1
  320. package/resources/beta/content/index.js.map +0 -1
  321. package/resources/beta/content/index.mjs.map +0 -1
  322. package/resources/beta/content/locales.d.mts.map +0 -1
  323. package/resources/beta/content/locales.d.ts.map +0 -1
  324. package/resources/beta/content/locales.js.map +0 -1
  325. package/resources/beta/content/locales.mjs.map +0 -1
  326. package/resources/beta/content/models/fields.d.mts.map +0 -1
  327. package/resources/beta/content/models/fields.d.ts.map +0 -1
  328. package/resources/beta/content/models/fields.js.map +0 -1
  329. package/resources/beta/content/models/fields.mjs.map +0 -1
  330. package/resources/beta/content/models/index.d.mts.map +0 -1
  331. package/resources/beta/content/models/index.d.ts.map +0 -1
  332. package/resources/beta/content/models/index.js.map +0 -1
  333. package/resources/beta/content/models/index.mjs.map +0 -1
  334. package/resources/beta/content/models/models.d.mts.map +0 -1
  335. package/resources/beta/content/models/models.d.ts.map +0 -1
  336. package/resources/beta/content/models/models.js.map +0 -1
  337. package/resources/beta/content/models/models.mjs.map +0 -1
  338. package/resources/beta/content/models.d.mts.map +0 -1
  339. package/resources/beta/content/models.d.ts.map +0 -1
  340. package/resources/beta/content/models.js.map +0 -1
  341. package/resources/beta/content/models.mjs.map +0 -1
  342. package/resources/beta/content/releases/index.d.mts.map +0 -1
  343. package/resources/beta/content/releases/index.d.ts.map +0 -1
  344. package/resources/beta/content/releases/index.js.map +0 -1
  345. package/resources/beta/content/releases/index.mjs.map +0 -1
  346. package/resources/beta/content/releases/items.d.mts.map +0 -1
  347. package/resources/beta/content/releases/items.d.ts.map +0 -1
  348. package/resources/beta/content/releases/items.js.map +0 -1
  349. package/resources/beta/content/releases/items.mjs.map +0 -1
  350. package/resources/beta/content/releases/releases.d.mts.map +0 -1
  351. package/resources/beta/content/releases/releases.d.ts.map +0 -1
  352. package/resources/beta/content/releases/releases.js.map +0 -1
  353. package/resources/beta/content/releases/releases.mjs.map +0 -1
  354. package/resources/beta/content/releases.d.mts.map +0 -1
  355. package/resources/beta/content/releases.d.ts.map +0 -1
  356. package/resources/beta/content/releases.js.map +0 -1
  357. package/resources/beta/content/releases.mjs.map +0 -1
  358. package/resources/beta/content.js.map +0 -1
  359. package/resources/beta/content.mjs.map +0 -1
  360. package/resources/beta/index.d.mts +0 -4
  361. package/resources/beta/index.d.mts.map +0 -1
  362. package/resources/beta/index.d.ts +0 -4
  363. package/resources/beta/index.d.ts.map +0 -1
  364. package/resources/beta/index.js +0 -11
  365. package/resources/beta/index.js.map +0 -1
  366. package/resources/beta/index.mjs +0 -5
  367. package/resources/beta/index.mjs.map +0 -1
  368. package/resources/beta.d.mts +0 -2
  369. package/resources/beta.d.mts.map +0 -1
  370. package/resources/beta.d.ts +0 -2
  371. package/resources/beta.d.ts.map +0 -1
  372. package/resources/beta.js.map +0 -1
  373. package/resources/beta.mjs.map +0 -1
  374. package/src/resources/beta/beta.ts +0 -37
  375. package/src/resources/beta/commerce/products/resources.ts +0 -214
  376. package/src/resources/beta/index.ts +0 -13
  377. /package/resources/{beta/commerce → commerce}/products/index.js +0 -0
  378. /package/resources/{beta/commerce → commerce}/products/index.mjs +0 -0
  379. /package/resources/{beta/commerce → commerce}/products.d.mts +0 -0
  380. /package/resources/{beta/commerce → commerce}/products.d.ts +0 -0
  381. /package/resources/{beta/commerce → commerce}/products.mjs +0 -0
  382. /package/resources/{beta/commerce.d.mts → commerce.d.mts} +0 -0
  383. /package/resources/{beta/commerce.d.ts → commerce.d.ts} +0 -0
  384. /package/resources/{beta/commerce.mjs → commerce.mjs} +0 -0
  385. /package/resources/{beta/content → content}/index.d.mts +0 -0
  386. /package/resources/{beta/content → content}/index.d.ts +0 -0
  387. /package/resources/{beta/content → content}/index.js +0 -0
  388. /package/resources/{beta/content → content}/index.mjs +0 -0
  389. /package/resources/{beta/content → content}/models/index.d.mts +0 -0
  390. /package/resources/{beta/content → content}/models/index.d.ts +0 -0
  391. /package/resources/{beta/content → content}/models/index.js +0 -0
  392. /package/resources/{beta/content → content}/models/index.mjs +0 -0
  393. /package/resources/{beta/content → content}/models.d.mts +0 -0
  394. /package/resources/{beta/content → content}/models.d.ts +0 -0
  395. /package/resources/{beta/content → content}/models.mjs +0 -0
  396. /package/resources/{beta/content → content}/releases/index.d.mts +0 -0
  397. /package/resources/{beta/content → content}/releases/index.d.ts +0 -0
  398. /package/resources/{beta/content → content}/releases/index.js +0 -0
  399. /package/resources/{beta/content → content}/releases/index.mjs +0 -0
  400. /package/resources/{beta/content → content}/releases.d.mts +0 -0
  401. /package/resources/{beta/content → content}/releases.d.ts +0 -0
  402. /package/resources/{beta/content → content}/releases.mjs +0 -0
  403. /package/resources/{beta/content.d.mts → content.d.mts} +0 -0
  404. /package/resources/{beta/content.d.ts → content.d.ts} +0 -0
  405. /package/resources/{beta/content.mjs → content.mjs} +0 -0
  406. /package/src/resources/{beta/commerce → commerce}/products.ts +0 -0
  407. /package/src/resources/{beta/commerce.ts → commerce.ts} +0 -0
  408. /package/src/resources/{beta/content → content}/index.ts +0 -0
  409. /package/src/resources/{beta/content → content}/models/index.ts +0 -0
  410. /package/src/resources/{beta/content → content}/models.ts +0 -0
  411. /package/src/resources/{beta/content → content}/releases/index.ts +0 -0
  412. /package/src/resources/{beta/content → content}/releases.ts +0 -0
  413. /package/src/resources/{beta/content.ts → content.ts} +0 -0
@@ -1,9 +1,9 @@
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 FieldsAPI from "./fields.mjs";
4
4
  import { Fields } from "./fields.mjs";
5
- import { CursorIDPage } from "../../../../core/pagination.mjs";
6
- import { path } from "../../../../internal/utils/path.mjs";
5
+ import { CursorIDPage } from "../../../core/pagination.mjs";
6
+ import { path } from "../../../internal/utils/path.mjs";
7
7
  export class Models extends APIResource {
8
8
  constructor() {
9
9
  super(...arguments);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../../src/resources/content/models/models.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAA2D,MAAM,EAAE;OAEnE,EAAE,YAAY,EAAwC;OAEtD,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgDhE,CAAC;IA9CC;;;OAGG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,OAAe,EACf,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,sBAAsB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAA,YAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,OAAe,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,sBAAsB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACH,GAAG,CAAC,OAAe,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;CACF;AAsWD,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.mts","sourceRoot":"","sources":["../../src/resources/content/models.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/resources/content/models.ts"],"names":[],"mappings":""}
@@ -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");
4
+ const tslib_1 = require("../../internal/tslib.js");
5
5
  tslib_1.__exportStar(require("./models/index.js"), exports);
6
6
  //# sourceMappingURL=models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../src/resources/content/models.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"models.mjs","sourceRoot":"","sources":["../../src/resources/content/models.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE;OACpD,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":"OAEO,EAAE,KAAK,EAAE,KAAK,aAAa,EAAE,KAAK,gBAAgB,EAAE;OACpD,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAA2E;AAAlE,8FAAA,KAAK,OAAA;AACd,0CASoB;AARlB,oGAAA,QAAQ,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/content/releases/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,KAAK,EAA6C;OACpD,EACL,QAAQ,GAQT"}
@@ -1,7 +1,7 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
1
+ import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as ReleasesAPI from "./releases.mjs";
3
- import { APIPromise } from "../../../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../../../internal/request-options.mjs";
3
+ import { APIPromise } from "../../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
5
  export declare class Items extends APIResource {
6
6
  /**
7
7
  * Adds an entry or asset to a release with a specified action (publish or
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.d.mts","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC;IAI1G;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3F"}
@@ -1,7 +1,7 @@
1
- import { APIResource } from "../../../../core/resource.js";
1
+ import { APIResource } from "../../../core/resource.js";
2
2
  import * as ReleasesAPI from "./releases.js";
3
- import { APIPromise } from "../../../../core/api-promise.js";
4
- import { RequestOptions } from "../../../../internal/request-options.js";
3
+ import { APIPromise } from "../../../core/api-promise.js";
4
+ import { RequestOptions } from "../../../internal/request-options.js";
5
5
  export declare class Items extends APIResource {
6
6
  /**
7
7
  * Adds an entry or asset to a release with a specified action (publish or
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,WAAW,CAAC,WAAW,CAAC;IAI1G;;OAEG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAO7F;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CAClC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3F"}
@@ -2,9 +2,9 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Items = void 0;
5
- const resource_1 = require("../../../../core/resource.js");
6
- const headers_1 = require("../../../../internal/headers.js");
7
- const path_1 = require("../../../../internal/utils/path.js");
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const headers_1 = require("../../../internal/headers.js");
7
+ const path_1 = require("../../../internal/utils/path.js");
8
8
  class Items extends resource_1.APIResource {
9
9
  /**
10
10
  * Adds an entry or asset to a release with a specified action (publish or
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.js","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAiB,EAAE,IAAmB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,wBAAwB,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,wBAAwB,UAAU,UAAU,MAAM,EAAE,EAAE;YACnF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,sBAmBC"}
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../../core/resource.mjs";
3
- import { buildHeaders } from "../../../../internal/headers.mjs";
4
- import { path } from "../../../../internal/utils/path.mjs";
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../internal/headers.mjs";
4
+ import { path } from "../../../internal/utils/path.mjs";
5
5
  export class Items extends APIResource {
6
6
  /**
7
7
  * Adds an entry or asset to a release with a specified action (publish or
@@ -0,0 +1 @@
1
+ {"version":3,"file":"items.mjs","sourceRoot":"","sources":["../../../src/resources/content/releases/items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,GAAG,CAAC,SAAiB,EAAE,IAAmB,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,wBAAwB,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,MAAwB,EAAE,OAAwB;QACvE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,wBAAwB,UAAU,UAAU,MAAM,EAAE,EAAE;YACnF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,9 +1,9 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
1
+ import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as ItemsAPI from "./items.mjs";
3
3
  import { ItemAddParams, ItemRemoveParams, Items } from "./items.mjs";
4
- import { APIPromise } from "../../../../core/api-promise.mjs";
5
- import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../../core/pagination.mjs";
6
- import { RequestOptions } from "../../../../internal/request-options.mjs";
4
+ import { APIPromise } from "../../../core/api-promise.mjs";
5
+ import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
6
+ import { RequestOptions } from "../../../internal/request-options.mjs";
7
7
  export declare class Releases extends APIResource {
8
8
  items: ItemsAPI.Items;
9
9
  /**
@@ -46,7 +46,7 @@ export type ReleasesCursorIDPage = CursorIDPage<Release>;
46
46
  */
47
47
  export interface Release {
48
48
  /**
49
- * Unique identifier for the topic subscription
49
+ * Unique identifier for the release
50
50
  */
51
51
  id: string;
52
52
  /**
@@ -91,7 +91,7 @@ export interface Release {
91
91
  */
92
92
  export interface ReleaseItem {
93
93
  /**
94
- * Unique identifier for the topic subscription
94
+ * Unique identifier for the release item
95
95
  */
96
96
  id: string;
97
97
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releases.d.mts","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE;OAC1C,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIhF;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,GAAE,mBAAmB,GAAG,IAAI,GAAG,SAAc,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAA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AAE,CAAC;CAC3G"}
@@ -1,9 +1,9 @@
1
- import { APIResource } from "../../../../core/resource.js";
1
+ import { APIResource } from "../../../core/resource.js";
2
2
  import * as ItemsAPI from "./items.js";
3
3
  import { ItemAddParams, ItemRemoveParams, Items } from "./items.js";
4
- import { APIPromise } from "../../../../core/api-promise.js";
5
- import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../../core/pagination.js";
6
- import { RequestOptions } from "../../../../internal/request-options.js";
4
+ import { APIPromise } from "../../../core/api-promise.js";
5
+ import { CursorIDPage, type CursorIDPageParams, PagePromise } from "../../../core/pagination.js";
6
+ import { RequestOptions } from "../../../internal/request-options.js";
7
7
  export declare class Releases extends APIResource {
8
8
  items: ItemsAPI.Items;
9
9
  /**
@@ -46,7 +46,7 @@ export type ReleasesCursorIDPage = CursorIDPage<Release>;
46
46
  */
47
47
  export interface Release {
48
48
  /**
49
- * Unique identifier for the topic subscription
49
+ * Unique identifier for the release
50
50
  */
51
51
  id: string;
52
52
  /**
@@ -91,7 +91,7 @@ export interface Release {
91
91
  */
92
92
  export interface ReleaseItem {
93
93
  /**
94
- * Unique identifier for the topic subscription
94
+ * Unique identifier for the release item
95
95
  */
96
96
  id: string;
97
97
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releases.d.ts","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAE,aAAa,EAAE,gBAAgB,EAAE,KAAK,EAAE;OAC1C,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OAEtD,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IAEzD;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,O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EAC3C,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,aAAa,IAAI,aAAa,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CAC3G"}
@@ -2,13 +2,13 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Releases = void 0;
5
- const tslib_1 = require("../../../../internal/tslib.js");
6
- const resource_1 = require("../../../../core/resource.js");
5
+ const tslib_1 = require("../../../internal/tslib.js");
6
+ const resource_1 = require("../../../core/resource.js");
7
7
  const ItemsAPI = tslib_1.__importStar(require("./items.js"));
8
8
  const items_1 = require("./items.js");
9
- const pagination_1 = require("../../../../core/pagination.js");
10
- const headers_1 = require("../../../../internal/headers.js");
11
- const path_1 = require("../../../../internal/utils/path.js");
9
+ const pagination_1 = require("../../../core/pagination.js");
10
+ const headers_1 = require("../../../internal/headers.js");
11
+ const path_1 = require("../../../internal/utils/path.js");
12
12
  class Releases extends resource_1.APIResource {
13
13
  constructor() {
14
14
  super(...arguments);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releases.js","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAAiE;AAEjE,4DAA8F;AAC9F,0DAAyD;AAEzD,0DAAoD;AAEpD,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgE3D,CAAC;IA9DC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CA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AE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AAjED,4BAiEC;AAiID,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC"}
@@ -1,10 +1,10 @@
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 ItemsAPI from "./items.mjs";
4
4
  import { Items } from "./items.mjs";
5
- import { CursorIDPage } from "../../../../core/pagination.mjs";
6
- import { buildHeaders } from "../../../../internal/headers.mjs";
7
- import { path } from "../../../../internal/utils/path.mjs";
5
+ import { CursorIDPage } from "../../../core/pagination.mjs";
6
+ import { buildHeaders } from "../../../internal/headers.mjs";
7
+ import { path } from "../../../internal/utils/path.mjs";
8
8
  export class Releases extends APIResource {
9
9
  constructor() {
10
10
  super(...arguments);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releases.mjs","sourceRoot":"","sources":["../../../src/resources/content/releases/releases.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAAmC,KAAK,EAAE;OAE1C,EAAE,YAAY,EAAwC;OACtD,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAgE3D,CAAC;IA9DC;;;OAGG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,OAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OA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"version":3,"file":"releases.d.mts","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releases.d.ts","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":""}
@@ -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");
4
+ const tslib_1 = require("../../internal/tslib.js");
5
5
  tslib_1.__exportStar(require("./releases/index.js"), exports);
6
6
  //# sourceMappingURL=releases.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releases.js","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"releases.mjs","sourceRoot":"","sources":["../../src/resources/content/releases.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../../src/resources/beta/content.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"content.d.mts","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/resources/beta/content.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":""}
@@ -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");
4
+ const tslib_1 = require("../internal/tslib.js");
5
5
  tslib_1.__exportStar(require("./content/index.js"), exports);
6
6
  //# sourceMappingURL=content.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.js","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content.mjs","sourceRoot":"","sources":["../src/resources/content.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,3 +1,4 @@
1
- export { Beta } from "./beta/beta.mjs";
1
+ export { Commerce, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce/commerce.mjs";
2
+ export { Content } from "./content/content.mjs";
2
3
  export { PushNotifications, type PushNotificationEnableResponse, type PushNotificationIdentifyResponse, type PushNotificationSendResponse, type PushNotificationSubscribeResponse, type PushNotificationUnsubscribeResponse, type PushNotificationIdentifyParams, type PushNotificationSendParams, type PushNotificationSubscribeParams, type PushNotificationUnsubscribeParams, } from "./push-notifications/push-notifications.mjs";
3
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
@@ -1,3 +1,4 @@
1
- export { Beta } from "./beta/beta.js";
1
+ export { Commerce, type CommerceCancelResponse, type CommerceCheckResponse, type CommerceCheckoutResponse, type CommerceCancelParams, type CommerceCheckParams, type CommerceCheckoutParams, } from "./commerce/commerce.js";
2
+ export { Content } from "./content/content.js";
2
3
  export { PushNotifications, type PushNotificationEnableResponse, type PushNotificationIdentifyResponse, type PushNotificationSendResponse, type PushNotificationSubscribeResponse, type PushNotificationUnsubscribeResponse, type PushNotificationIdentifyParams, type PushNotificationSendParams, type PushNotificationSubscribeParams, type PushNotificationUnsubscribeParams, } from "./push-notifications/push-notifications.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EAAE,IAAI,EAAE;OACR,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B;OACM,EAAE,OAAO,EAAE;OACX,EACL,iBAAiB,EACjB,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,mCAAmC,EACxC,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,GACvC"}
@@ -1,9 +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.PushNotifications = exports.Beta = void 0;
5
- var beta_1 = require("./beta/beta.js");
6
- Object.defineProperty(exports, "Beta", { enumerable: true, get: function () { return beta_1.Beta; } });
4
+ exports.PushNotifications = exports.Content = exports.Commerce = void 0;
5
+ var commerce_1 = require("./commerce/commerce.js");
6
+ Object.defineProperty(exports, "Commerce", { enumerable: true, get: function () { return commerce_1.Commerce; } });
7
+ var content_1 = require("./content/content.js");
8
+ Object.defineProperty(exports, "Content", { enumerable: true, get: function () { return content_1.Content; } });
7
9
  var push_notifications_1 = require("./push-notifications/push-notifications.js");
8
10
  Object.defineProperty(exports, "PushNotifications", { enumerable: true, get: function () { return push_notifications_1.PushNotifications; } });
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,iFAWiD;AAV/C,uHAAA,iBAAiB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,mDAQ6B;AAP3B,oGAAA,QAAQ,OAAA;AAQV,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,iFAWiD;AAV/C,uHAAA,iBAAiB,OAAA"}
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Beta } from "./beta/beta.mjs";
2
+ export { Commerce, } from "./commerce/commerce.mjs";
3
+ export { Content } from "./content/content.mjs";
3
4
  export { PushNotifications, } from "./push-notifications/push-notifications.mjs";
4
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,IAAI,EAAE;OACR,EACL,iBAAiB,GAUlB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAOT;OACM,EAAE,OAAO,EAAE;OACX,EACL,iBAAiB,GAUlB"}
package/src/client.ts CHANGED
@@ -19,7 +19,16 @@ import { AbstractPage, type CursorIDPageParams, CursorIDPageResponse } from './c
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 { Beta } from './resources/beta/beta';
22
+ import {
23
+ Commerce,
24
+ CommerceCancelParams,
25
+ CommerceCancelResponse,
26
+ CommerceCheckParams,
27
+ CommerceCheckResponse,
28
+ CommerceCheckoutParams,
29
+ CommerceCheckoutResponse,
30
+ } from './resources/commerce/commerce';
31
+ import { Content } from './resources/content/content';
23
32
  import {
24
33
  PushNotificationEnableResponse,
25
34
  PushNotificationIdentifyParams,
@@ -750,11 +759,19 @@ export class Hercules {
750
759
 
751
760
  static toFile = Uploads.toFile;
752
761
 
753
- beta: API.Beta = new API.Beta(this);
762
+ /**
763
+ * Commerce APIs are currently in beta.
764
+ */
765
+ commerce: API.Commerce = new API.Commerce(this);
766
+ /**
767
+ * Content APIs are currently in beta.
768
+ */
769
+ content: API.Content = new API.Content(this);
754
770
  pushNotifications: API.PushNotifications = new API.PushNotifications(this);
755
771
  }
756
772
 
757
- Hercules.Beta = Beta;
773
+ Hercules.Commerce = Commerce;
774
+ Hercules.Content = Content;
758
775
  Hercules.PushNotifications = PushNotifications;
759
776
 
760
777
  export declare namespace Hercules {
@@ -763,7 +780,17 @@ export declare namespace Hercules {
763
780
  export import CursorIDPage = Pagination.CursorIDPage;
764
781
  export { type CursorIDPageParams as CursorIDPageParams, type CursorIDPageResponse as CursorIDPageResponse };
765
782
 
766
- export { Beta as Beta };
783
+ export {
784
+ Commerce as Commerce,
785
+ type CommerceCancelResponse as CommerceCancelResponse,
786
+ type CommerceCheckResponse as CommerceCheckResponse,
787
+ type CommerceCheckoutResponse as CommerceCheckoutResponse,
788
+ type CommerceCancelParams as CommerceCancelParams,
789
+ type CommerceCheckParams as CommerceCheckParams,
790
+ type CommerceCheckoutParams as CommerceCheckoutParams,
791
+ };
792
+
793
+ export { Content as Content };
767
794
 
768
795
  export {
769
796
  PushNotifications as PushNotifications,
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../core/resource';
3
+ import { APIResource } from '../../core/resource';
4
4
  import * as CouponsAPI from './coupons';
5
5
  import {
6
6
  Coupon,
@@ -10,7 +10,18 @@ import {
10
10
  Coupons,
11
11
  CouponsCursorIDPage,
12
12
  } from './coupons';
13
- import * as CustomersAPI from './customers';
13
+ import * as FeaturesAPI from './features';
14
+ import {
15
+ Feature,
16
+ FeatureCreateParams,
17
+ FeatureListParams,
18
+ FeatureUpdateParams,
19
+ Features,
20
+ FeaturesCursorIDPage,
21
+ } from './features';
22
+ import * as SubscriptionGroupsAPI from './subscription-groups';
23
+ import { SubscriptionGroups } from './subscription-groups';
24
+ import * as CustomersAPI from './customers/customers';
14
25
  import {
15
26
  Customer,
16
27
  CustomerAddress,
@@ -22,16 +33,7 @@ import {
22
33
  CustomerUpdateParams,
23
34
  Customers,
24
35
  CustomersCursorIDPage,
25
- } from './customers';
26
- import * as FeaturesAPI from './features';
27
- import {
28
- Feature,
29
- FeatureCreateParams,
30
- FeatureListParams,
31
- FeatureUpdateParams,
32
- Features,
33
- FeaturesCursorIDPage,
34
- } from './features';
36
+ } from './customers/customers';
35
37
  import * as ProductsAPI from './products/products';
36
38
  import {
37
39
  Product,
@@ -41,19 +43,33 @@ import {
41
43
  Products,
42
44
  ProductsCursorIDPage,
43
45
  } from './products/products';
44
- import { APIPromise } from '../../../core/api-promise';
45
- import { RequestOptions } from '../../../internal/request-options';
46
+ import { APIPromise } from '../../core/api-promise';
47
+ import { RequestOptions } from '../../internal/request-options';
46
48
 
49
+ /**
50
+ * Commerce APIs are currently in beta.
51
+ */
47
52
  export class Commerce extends APIResource {
48
53
  customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
49
54
  products: ProductsAPI.Products = new ProductsAPI.Products(this._client);
50
55
  coupons: CouponsAPI.Coupons = new CouponsAPI.Coupons(this._client);
51
56
  features: FeaturesAPI.Features = new FeaturesAPI.Features(this._client);
57
+ subscriptionGroups: SubscriptionGroupsAPI.SubscriptionGroups = new SubscriptionGroupsAPI.SubscriptionGroups(
58
+ this._client,
59
+ );
52
60
 
53
61
  /**
54
62
  * Cancels a customer's subscription. By default, the subscription remains active
55
63
  * until the end of the current billing period. Set cancellation_timing to
56
64
  * 'immediate' to cancel immediately.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const response = await client.commerce.cancel({
69
+ * customer_id: 'cus_1234567890',
70
+ * subscription_id: 'sub_1234567890',
71
+ * });
72
+ * ```
57
73
  */
58
74
  cancel(body: CommerceCancelParams, options?: RequestOptions): APIPromise<CommerceCancelResponse> {
59
75
  return this._client.post('/v1/commerce/cancel', { body, ...options });
@@ -64,6 +80,14 @@ export class Commerce extends APIResource {
64
80
  * features in your app based on the customer's active subscription and the
65
81
  * entitlements attached to their product. Hercules recommends calling this before
66
82
  * allowing access to premium features.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const response = await client.commerce.check({
87
+ * customer_id: 'cus_1234567890',
88
+ * resource_id: 'feat_1234567890',
89
+ * });
90
+ * ```
67
91
  */
68
92
  check(body: CommerceCheckParams, options?: RequestOptions): APIPromise<CommerceCheckResponse> {
69
93
  return this._client.post('/v1/commerce/check', { body, ...options });
@@ -73,6 +97,15 @@ export class Commerce extends APIResource {
73
97
  * Creates a checkout session for a customer to subscribe to a product. Returns a
74
98
  * URL to redirect the customer to for payment. After successful payment, the
75
99
  * customer is subscribed to the product and gains access to its entitlements.
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * const response = await client.commerce.checkout({
104
+ * customer_id: 'cus_1234567890',
105
+ * line_items: [{ variant_id: 'var_1234567890' }],
106
+ * success_url: 'https://example.com',
107
+ * });
108
+ * ```
76
109
  */
77
110
  checkout(body: CommerceCheckoutParams, options?: RequestOptions): APIPromise<CommerceCheckoutResponse> {
78
111
  return this._client.post('/v1/commerce/checkout', { body, ...options });
@@ -105,25 +138,13 @@ export interface CommerceCancelResponse {
105
138
  }
106
139
 
107
140
  /**
108
- * Check resource access response. Indicates whether access is granted and through
109
- * what means.
141
+ * Check resource access response.
110
142
  */
111
143
  export interface CommerceCheckResponse {
112
- /**
113
- * How the customer has access: through a subscription, one-time purchase, manual
114
- * grant, or no access
115
- */
116
- access_type: 'subscription' | 'one_time_purchase' | 'manual_grant' | 'none';
117
-
118
144
  /**
119
145
  * Whether the customer has access to the resource
120
146
  */
121
147
  has_access: boolean;
122
-
123
- /**
124
- * The resource ID that was checked
125
- */
126
- resource_id: string;
127
148
  }
128
149
 
129
150
  /**
@@ -234,12 +255,6 @@ export interface CommerceCheckoutParams {
234
255
  */
235
256
  success_url: string;
236
257
 
237
- /**
238
- * Optional custom ID for the subscription or payment. If not provided, one will be
239
- * generated.
240
- */
241
- id?: string;
242
-
243
258
  /**
244
259
  * URL to redirect on cancel
245
260
  */
@@ -298,6 +313,7 @@ Commerce.Customers = Customers;
298
313
  Commerce.Products = Products;
299
314
  Commerce.Coupons = Coupons;
300
315
  Commerce.Features = Features;
316
+ Commerce.SubscriptionGroups = SubscriptionGroups;
301
317
 
302
318
  export declare namespace Commerce {
303
319
  export {
@@ -348,4 +364,6 @@ export declare namespace Commerce {
348
364
  type FeatureUpdateParams as FeatureUpdateParams,
349
365
  type FeatureListParams as FeatureListParams,
350
366
  };
367
+
368
+ export { SubscriptionGroups as SubscriptionGroups };
351
369
  }