@snagsolutions/sdk 0.1.0-alpha.14 → 0.1.0-alpha.15

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 (368) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +21 -13
  3. package/core.js +2 -1
  4. package/core.js.map +1 -1
  5. package/core.mjs +2 -1
  6. package/core.mjs.map +1 -1
  7. package/index.d.mts +6 -21
  8. package/index.d.ts +6 -21
  9. package/index.d.ts.map +1 -1
  10. package/index.js +8 -23
  11. package/index.js.map +1 -1
  12. package/index.mjs +8 -23
  13. package/index.mjs.map +1 -1
  14. package/package.json +8 -29
  15. package/resources/api/api.d.ts +365 -0
  16. package/resources/api/api.d.ts.map +1 -0
  17. package/resources/{assets/assets.js → api/api.js} +38 -13
  18. package/resources/api/api.js.map +1 -0
  19. package/resources/{assets/assets.mjs → api/api.mjs} +37 -12
  20. package/resources/api/api.mjs.map +1 -0
  21. package/resources/api/index.d.ts +9 -0
  22. package/resources/api/index.d.ts.map +1 -0
  23. package/resources/{assets → api}/index.js +11 -7
  24. package/resources/api/index.js.map +1 -0
  25. package/resources/{assets → api}/index.mjs +5 -3
  26. package/resources/api/index.mjs.map +1 -0
  27. package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.d.ts +8 -4
  28. package/resources/api/loyalty/accounts.d.ts.map +1 -0
  29. package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.js +1 -1
  30. package/resources/api/loyalty/accounts.js.map +1 -0
  31. package/resources/{loyalty/transaction-entries → api/loyalty}/accounts.mjs +1 -1
  32. package/resources/api/loyalty/accounts.mjs.map +1 -0
  33. package/resources/{loyalty → api/loyalty}/badges.d.ts +6 -2
  34. package/resources/api/loyalty/badges.d.ts.map +1 -0
  35. package/resources/{loyalty → api/loyalty}/badges.js +2 -2
  36. package/resources/api/loyalty/badges.js.map +1 -0
  37. package/resources/{loyalty → api/loyalty}/badges.mjs +2 -2
  38. package/resources/api/loyalty/badges.mjs.map +1 -0
  39. package/resources/{loyalty → api/loyalty}/currencies.d.ts +2 -2
  40. package/resources/api/loyalty/currencies.d.ts.map +1 -0
  41. package/resources/{loyalty → api/loyalty}/currencies.js +1 -1
  42. package/resources/api/loyalty/currencies.js.map +1 -0
  43. package/resources/{loyalty → api/loyalty}/currencies.mjs +1 -1
  44. package/resources/api/loyalty/currencies.mjs.map +1 -0
  45. package/resources/api/loyalty/index.d.ts +10 -0
  46. package/resources/api/loyalty/index.d.ts.map +1 -0
  47. package/resources/{loyalty → api/loyalty}/index.js +5 -3
  48. package/resources/api/loyalty/index.js.map +1 -0
  49. package/resources/{loyalty → api/loyalty}/index.mjs +4 -3
  50. package/resources/api/loyalty/index.mjs.map +1 -0
  51. package/resources/api/loyalty/loyalty.d.ts +807 -0
  52. package/resources/api/loyalty/loyalty.d.ts.map +1 -0
  53. package/resources/{loyalty → api/loyalty}/loyalty.js +36 -13
  54. package/resources/api/loyalty/loyalty.js.map +1 -0
  55. package/resources/api/loyalty/loyalty.mjs +59 -0
  56. package/resources/api/loyalty/loyalty.mjs.map +1 -0
  57. package/resources/{loyalty → api/loyalty}/multipliers.d.ts +15 -8
  58. package/resources/api/loyalty/multipliers.d.ts.map +1 -0
  59. package/resources/{loyalty → api/loyalty}/multipliers.js +9 -3
  60. package/resources/api/loyalty/multipliers.js.map +1 -0
  61. package/resources/{loyalty → api/loyalty}/multipliers.mjs +9 -3
  62. package/resources/api/loyalty/multipliers.mjs.map +1 -0
  63. package/resources/api/loyalty/questions-responses.d.ts.map +1 -0
  64. package/resources/api/loyalty/questions-responses.js.map +1 -0
  65. package/resources/api/loyalty/questions-responses.mjs.map +1 -0
  66. package/resources/api/loyalty/questions.d.ts.map +1 -0
  67. package/resources/api/loyalty/questions.js.map +1 -0
  68. package/resources/api/loyalty/questions.mjs.map +1 -0
  69. package/resources/{loyalty → api/loyalty}/rule-edits.d.ts +8 -8
  70. package/resources/api/loyalty/rule-edits.d.ts.map +1 -0
  71. package/resources/{loyalty → api/loyalty}/rule-edits.js +2 -2
  72. package/resources/api/loyalty/rule-edits.js.map +1 -0
  73. package/resources/{loyalty → api/loyalty}/rule-edits.mjs +2 -2
  74. package/resources/api/loyalty/rule-edits.mjs.map +1 -0
  75. package/resources/{loyalty → api/loyalty}/rules.d.ts +41 -25
  76. package/resources/api/loyalty/rules.d.ts.map +1 -0
  77. package/resources/{loyalty → api/loyalty}/rules.js +3 -3
  78. package/resources/api/loyalty/rules.js.map +1 -0
  79. package/resources/{loyalty → api/loyalty}/rules.mjs +3 -3
  80. package/resources/api/loyalty/rules.mjs.map +1 -0
  81. package/resources/api/loyalty.d.ts +2 -0
  82. package/resources/api/loyalty.d.ts.map +1 -0
  83. package/resources/api/loyalty.js +19 -0
  84. package/resources/api/loyalty.js.map +1 -0
  85. package/resources/api/loyalty.mjs +3 -0
  86. package/resources/api/loyalty.mjs.map +1 -0
  87. package/resources/{assets → api}/minting.d.ts +8 -8
  88. package/resources/api/minting.d.ts.map +1 -0
  89. package/resources/{assets → api}/minting.js +1 -1
  90. package/resources/api/minting.js.map +1 -0
  91. package/resources/{assets → api}/minting.mjs +1 -1
  92. package/resources/api/minting.mjs.map +1 -0
  93. package/resources/api/referral/index.d.ts +3 -0
  94. package/resources/api/referral/index.d.ts.map +1 -0
  95. package/resources/api/referral/index.js.map +1 -0
  96. package/resources/{assets → api}/referral/index.mjs +1 -1
  97. package/resources/api/referral/index.mjs.map +1 -0
  98. package/resources/api/referral/referral.d.ts +31 -0
  99. package/resources/api/referral/referral.d.ts.map +1 -0
  100. package/resources/{assets → api}/referral/referral.js +2 -2
  101. package/resources/api/referral/referral.js.map +1 -0
  102. package/resources/{assets → api}/referral/referral.mjs +3 -3
  103. package/resources/api/referral/referral.mjs.map +1 -0
  104. package/resources/{assets → api}/referral/users.d.ts +9 -9
  105. package/resources/api/referral/users.d.ts.map +1 -0
  106. package/resources/{assets → api}/referral/users.js +2 -2
  107. package/resources/api/referral/users.js.map +1 -0
  108. package/resources/{assets → api}/referral/users.mjs +2 -2
  109. package/resources/api/referral/users.mjs.map +1 -0
  110. package/resources/api/referral.d.ts +2 -0
  111. package/resources/api/referral.d.ts.map +1 -0
  112. package/resources/api/referral.js +19 -0
  113. package/resources/api/referral.js.map +1 -0
  114. package/resources/api/referral.mjs +3 -0
  115. package/resources/api/referral.mjs.map +1 -0
  116. package/resources/api/users/index.d.ts +3 -0
  117. package/resources/api/users/index.d.ts.map +1 -0
  118. package/resources/{users → api/users}/index.js +1 -3
  119. package/resources/api/users/index.js.map +1 -0
  120. package/resources/{users → api/users}/index.mjs +1 -2
  121. package/resources/api/users/index.mjs.map +1 -0
  122. package/resources/{users → api/users}/metadatas.d.ts +14 -9
  123. package/resources/api/users/metadatas.d.ts.map +1 -0
  124. package/resources/{users → api/users}/metadatas.js +4 -4
  125. package/resources/api/users/metadatas.js.map +1 -0
  126. package/resources/{users → api/users}/metadatas.mjs +4 -4
  127. package/resources/api/users/metadatas.mjs.map +1 -0
  128. package/resources/api/users/users.d.ts +133 -0
  129. package/resources/api/users/users.d.ts.map +1 -0
  130. package/resources/{users → api/users}/users.js +19 -5
  131. package/resources/api/users/users.js.map +1 -0
  132. package/resources/{assets → api/users}/users.mjs +15 -15
  133. package/resources/api/users/users.mjs.map +1 -0
  134. package/resources/api/users.d.ts +2 -0
  135. package/resources/api/users.d.ts.map +1 -0
  136. package/resources/api/users.js +19 -0
  137. package/resources/api/users.js.map +1 -0
  138. package/resources/api/users.mjs +3 -0
  139. package/resources/api/users.mjs.map +1 -0
  140. package/resources/{assets → api}/website-collections.d.ts +9 -9
  141. package/resources/api/website-collections.d.ts.map +1 -0
  142. package/resources/{assets → api}/website-collections.js +2 -2
  143. package/resources/api/website-collections.js.map +1 -0
  144. package/resources/{assets → api}/website-collections.mjs +2 -2
  145. package/resources/api/website-collections.mjs.map +1 -0
  146. package/resources/{assets → api}/website-user-roles.d.ts +28 -28
  147. package/resources/api/website-user-roles.d.ts.map +1 -0
  148. package/resources/{assets → api}/website-user-roles.js +7 -7
  149. package/resources/api/website-user-roles.js.map +1 -0
  150. package/resources/{assets → api}/website-user-roles.mjs +7 -7
  151. package/resources/api/website-user-roles.mjs.map +1 -0
  152. package/resources/{websites.d.ts → api/websites.d.ts} +2 -2
  153. package/resources/api/websites.d.ts.map +1 -0
  154. package/resources/{websites.js → api/websites.js} +2 -2
  155. package/resources/api/websites.js.map +1 -0
  156. package/resources/{websites.mjs → api/websites.mjs} +2 -2
  157. package/resources/api/websites.mjs.map +1 -0
  158. package/resources/api.d.ts +2 -0
  159. package/resources/api.d.ts.map +1 -0
  160. package/resources/api.js +19 -0
  161. package/resources/api.js.map +1 -0
  162. package/resources/api.mjs +3 -0
  163. package/resources/api.mjs.map +1 -0
  164. package/resources/index.d.ts +1 -6
  165. package/resources/index.d.ts.map +1 -1
  166. package/resources/index.js +3 -13
  167. package/resources/index.js.map +1 -1
  168. package/resources/index.mjs +1 -6
  169. package/resources/index.mjs.map +1 -1
  170. package/resources.d.ts +2 -0
  171. package/resources.d.ts.map +1 -0
  172. package/resources.js +18 -0
  173. package/resources.js.map +1 -0
  174. package/resources.mjs +2 -0
  175. package/resources.mjs.map +1 -0
  176. package/src/core.ts +2 -2
  177. package/src/index.ts +23 -54
  178. package/src/resources/api/api.ts +629 -0
  179. package/src/resources/api/index.ts +51 -0
  180. package/src/resources/{loyalty/transaction-entries → api/loyalty}/accounts.ts +12 -7
  181. package/src/resources/{loyalty → api/loyalty}/badges.ts +8 -3
  182. package/src/resources/{loyalty → api/loyalty}/currencies.ts +2 -2
  183. package/src/resources/{loyalty → api/loyalty}/index.ts +38 -16
  184. package/src/resources/api/loyalty/loyalty.ts +1297 -0
  185. package/src/resources/{loyalty → api/loyalty}/multipliers.ts +23 -11
  186. package/src/resources/{loyalty → api/loyalty}/rule-edits.ts +9 -12
  187. package/src/resources/{loyalty → api/loyalty}/rules.ts +98 -27
  188. package/src/resources/api/loyalty.ts +3 -0
  189. package/src/resources/{assets → api}/minting.ts +15 -11
  190. package/src/resources/api/referral/index.ts +10 -0
  191. package/src/resources/api/referral/referral.ts +70 -0
  192. package/src/resources/{assets → api}/referral/users.ts +12 -18
  193. package/src/resources/api/referral.ts +3 -0
  194. package/src/resources/api/users/index.ts +18 -0
  195. package/src/resources/{users → api/users}/metadatas.ts +22 -18
  196. package/src/resources/api/users/users.ts +203 -0
  197. package/src/resources/api/users.ts +3 -0
  198. package/src/resources/{assets → api}/website-collections.ts +17 -16
  199. package/src/resources/{assets → api}/website-user-roles.ts +40 -40
  200. package/src/resources/{websites.ts → api/websites.ts} +3 -3
  201. package/src/resources/api.ts +3 -0
  202. package/src/resources/index.ts +8 -16
  203. package/src/resources.ts +1 -0
  204. package/src/version.ts +1 -1
  205. package/version.d.ts +1 -1
  206. package/version.js +1 -1
  207. package/version.mjs +1 -1
  208. package/resources/assets/assets.d.ts +0 -153
  209. package/resources/assets/assets.d.ts.map +0 -1
  210. package/resources/assets/assets.js.map +0 -1
  211. package/resources/assets/assets.mjs.map +0 -1
  212. package/resources/assets/index.d.ts +0 -7
  213. package/resources/assets/index.d.ts.map +0 -1
  214. package/resources/assets/index.js.map +0 -1
  215. package/resources/assets/index.mjs.map +0 -1
  216. package/resources/assets/minting.d.ts.map +0 -1
  217. package/resources/assets/minting.js.map +0 -1
  218. package/resources/assets/minting.mjs.map +0 -1
  219. package/resources/assets/referral/index.d.ts +0 -3
  220. package/resources/assets/referral/index.d.ts.map +0 -1
  221. package/resources/assets/referral/index.js.map +0 -1
  222. package/resources/assets/referral/index.mjs.map +0 -1
  223. package/resources/assets/referral/referral.d.ts +0 -30
  224. package/resources/assets/referral/referral.d.ts.map +0 -1
  225. package/resources/assets/referral/referral.js.map +0 -1
  226. package/resources/assets/referral/referral.mjs.map +0 -1
  227. package/resources/assets/referral/users.d.ts.map +0 -1
  228. package/resources/assets/referral/users.js.map +0 -1
  229. package/resources/assets/referral/users.mjs.map +0 -1
  230. package/resources/assets/users.d.ts +0 -285
  231. package/resources/assets/users.d.ts.map +0 -1
  232. package/resources/assets/users.js +0 -34
  233. package/resources/assets/users.js.map +0 -1
  234. package/resources/assets/users.mjs.map +0 -1
  235. package/resources/assets/website-collections.d.ts.map +0 -1
  236. package/resources/assets/website-collections.js.map +0 -1
  237. package/resources/assets/website-collections.mjs.map +0 -1
  238. package/resources/assets/website-user-roles.d.ts.map +0 -1
  239. package/resources/assets/website-user-roles.js.map +0 -1
  240. package/resources/assets/website-user-roles.mjs.map +0 -1
  241. package/resources/auction-bids.d.ts +0 -51
  242. package/resources/auction-bids.d.ts.map +0 -1
  243. package/resources/auction-bids.js +0 -20
  244. package/resources/auction-bids.js.map +0 -1
  245. package/resources/auction-bids.mjs +0 -16
  246. package/resources/auction-bids.mjs.map +0 -1
  247. package/resources/drip/drip.d.ts +0 -14
  248. package/resources/drip/drip.d.ts.map +0 -1
  249. package/resources/drip/drip.js +0 -43
  250. package/resources/drip/drip.js.map +0 -1
  251. package/resources/drip/drip.mjs +0 -16
  252. package/resources/drip/drip.mjs.map +0 -1
  253. package/resources/drip/index.d.ts +0 -4
  254. package/resources/drip/index.d.ts.map +0 -1
  255. package/resources/drip/index.js +0 -11
  256. package/resources/drip/index.js.map +0 -1
  257. package/resources/drip/index.mjs +0 -5
  258. package/resources/drip/index.mjs.map +0 -1
  259. package/resources/drip/quests.d.ts +0 -4
  260. package/resources/drip/quests.d.ts.map +0 -1
  261. package/resources/drip/quests.js +0 -9
  262. package/resources/drip/quests.js.map +0 -1
  263. package/resources/drip/quests.mjs +0 -5
  264. package/resources/drip/quests.mjs.map +0 -1
  265. package/resources/drip/status.d.ts +0 -4
  266. package/resources/drip/status.d.ts.map +0 -1
  267. package/resources/drip/status.js +0 -9
  268. package/resources/drip/status.js.map +0 -1
  269. package/resources/drip/status.mjs +0 -5
  270. package/resources/drip/status.mjs.map +0 -1
  271. package/resources/loyalty/accounts.d.ts +0 -4
  272. package/resources/loyalty/accounts.d.ts.map +0 -1
  273. package/resources/loyalty/accounts.js +0 -9
  274. package/resources/loyalty/accounts.js.map +0 -1
  275. package/resources/loyalty/accounts.mjs +0 -5
  276. package/resources/loyalty/accounts.mjs.map +0 -1
  277. package/resources/loyalty/badges.d.ts.map +0 -1
  278. package/resources/loyalty/badges.js.map +0 -1
  279. package/resources/loyalty/badges.mjs.map +0 -1
  280. package/resources/loyalty/currencies.d.ts.map +0 -1
  281. package/resources/loyalty/currencies.js.map +0 -1
  282. package/resources/loyalty/currencies.mjs.map +0 -1
  283. package/resources/loyalty/index.d.ts +0 -9
  284. package/resources/loyalty/index.d.ts.map +0 -1
  285. package/resources/loyalty/index.js.map +0 -1
  286. package/resources/loyalty/index.mjs.map +0 -1
  287. package/resources/loyalty/loyalty.d.ts +0 -34
  288. package/resources/loyalty/loyalty.d.ts.map +0 -1
  289. package/resources/loyalty/loyalty.js.map +0 -1
  290. package/resources/loyalty/loyalty.mjs +0 -36
  291. package/resources/loyalty/loyalty.mjs.map +0 -1
  292. package/resources/loyalty/multipliers.d.ts.map +0 -1
  293. package/resources/loyalty/multipliers.js.map +0 -1
  294. package/resources/loyalty/multipliers.mjs.map +0 -1
  295. package/resources/loyalty/rule-edits.d.ts.map +0 -1
  296. package/resources/loyalty/rule-edits.js.map +0 -1
  297. package/resources/loyalty/rule-edits.mjs.map +0 -1
  298. package/resources/loyalty/rules.d.ts.map +0 -1
  299. package/resources/loyalty/rules.js.map +0 -1
  300. package/resources/loyalty/rules.mjs.map +0 -1
  301. package/resources/loyalty/transaction-entries/accounts.d.ts.map +0 -1
  302. package/resources/loyalty/transaction-entries/accounts.js.map +0 -1
  303. package/resources/loyalty/transaction-entries/accounts.mjs.map +0 -1
  304. package/resources/loyalty/transaction-entries/index.d.ts +0 -5
  305. package/resources/loyalty/transaction-entries/index.d.ts.map +0 -1
  306. package/resources/loyalty/transaction-entries/index.js +0 -13
  307. package/resources/loyalty/transaction-entries/index.js.map +0 -1
  308. package/resources/loyalty/transaction-entries/index.mjs +0 -6
  309. package/resources/loyalty/transaction-entries/index.mjs.map +0 -1
  310. package/resources/loyalty/transaction-entries/questions-responses.d.ts.map +0 -1
  311. package/resources/loyalty/transaction-entries/questions-responses.js.map +0 -1
  312. package/resources/loyalty/transaction-entries/questions-responses.mjs.map +0 -1
  313. package/resources/loyalty/transaction-entries/questions.d.ts.map +0 -1
  314. package/resources/loyalty/transaction-entries/questions.js.map +0 -1
  315. package/resources/loyalty/transaction-entries/questions.mjs.map +0 -1
  316. package/resources/loyalty/transaction-entries/transaction-entries.d.ts +0 -300
  317. package/resources/loyalty/transaction-entries/transaction-entries.d.ts.map +0 -1
  318. package/resources/loyalty/transaction-entries/transaction-entries.js +0 -66
  319. package/resources/loyalty/transaction-entries/transaction-entries.js.map +0 -1
  320. package/resources/loyalty/transaction-entries/transaction-entries.mjs +0 -39
  321. package/resources/loyalty/transaction-entries/transaction-entries.mjs.map +0 -1
  322. package/resources/users/index.d.ts +0 -4
  323. package/resources/users/index.d.ts.map +0 -1
  324. package/resources/users/index.js.map +0 -1
  325. package/resources/users/index.mjs.map +0 -1
  326. package/resources/users/metadatas.d.ts.map +0 -1
  327. package/resources/users/metadatas.js.map +0 -1
  328. package/resources/users/metadatas.mjs.map +0 -1
  329. package/resources/users/users.d.ts +0 -14
  330. package/resources/users/users.d.ts.map +0 -1
  331. package/resources/users/users.js.map +0 -1
  332. package/resources/users/users.mjs +0 -16
  333. package/resources/users/users.mjs.map +0 -1
  334. package/resources/users/wallets.d.ts +0 -4
  335. package/resources/users/wallets.d.ts.map +0 -1
  336. package/resources/users/wallets.js +0 -9
  337. package/resources/users/wallets.js.map +0 -1
  338. package/resources/users/wallets.mjs +0 -5
  339. package/resources/users/wallets.mjs.map +0 -1
  340. package/resources/websites.d.ts.map +0 -1
  341. package/resources/websites.js.map +0 -1
  342. package/resources/websites.mjs.map +0 -1
  343. package/src/resources/assets/assets.ts +0 -294
  344. package/src/resources/assets/index.ts +0 -38
  345. package/src/resources/assets/referral/index.ts +0 -14
  346. package/src/resources/assets/referral/referral.ts +0 -74
  347. package/src/resources/assets/users.ts +0 -415
  348. package/src/resources/auction-bids.ts +0 -77
  349. package/src/resources/drip/drip.ts +0 -21
  350. package/src/resources/drip/index.ts +0 -5
  351. package/src/resources/drip/quests.ts +0 -5
  352. package/src/resources/drip/status.ts +0 -5
  353. package/src/resources/loyalty/accounts.ts +0 -5
  354. package/src/resources/loyalty/loyalty.ts +0 -165
  355. package/src/resources/loyalty/transaction-entries/index.ts +0 -34
  356. package/src/resources/loyalty/transaction-entries/transaction-entries.ts +0 -525
  357. package/src/resources/users/index.ts +0 -11
  358. package/src/resources/users/users.ts +0 -33
  359. package/src/resources/users/wallets.ts +0 -5
  360. /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.d.ts +0 -0
  361. /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.js +0 -0
  362. /package/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.mjs +0 -0
  363. /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.d.ts +0 -0
  364. /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.js +0 -0
  365. /package/resources/{loyalty/transaction-entries → api/loyalty}/questions.mjs +0 -0
  366. /package/resources/{assets → api}/referral/index.js +0 -0
  367. /package/src/resources/{loyalty/transaction-entries → api/loyalty}/questions-responses.ts +0 -0
  368. /package/src/resources/{loyalty/transaction-entries → api/loyalty}/questions.ts +0 -0
@@ -4,26 +4,26 @@ export declare class WebsiteCollections extends APIResource {
4
4
  /**
5
5
  * Creates a new collection under a website
6
6
  */
7
- createWebsiteCollection(body: WebsiteCollectionCreateWebsiteCollectionParams, options?: Core.RequestOptions): Core.APIPromise<void>;
7
+ create(body: WebsiteCollectionCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
8
8
  /**
9
9
  * Retrieves collections for a specific website.
10
10
  */
11
- getWebsiteCollections(query: WebsiteCollectionGetWebsiteCollectionsParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionGetWebsiteCollectionsResponse>;
11
+ list(query: WebsiteCollectionListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteCollectionListResponse>;
12
12
  }
13
13
  /**
14
14
  * Response schema for fetching website collections
15
15
  */
16
- export interface WebsiteCollectionGetWebsiteCollectionsResponse {
16
+ export interface WebsiteCollectionListResponse {
17
17
  /**
18
18
  * Array of websites
19
19
  */
20
- data: Array<WebsiteCollectionGetWebsiteCollectionsResponse.Data>;
20
+ data: Array<WebsiteCollectionListResponse.Data>;
21
21
  /**
22
22
  * Indicates if more pages are available
23
23
  */
24
24
  hasNextPage: boolean;
25
25
  }
26
- export declare namespace WebsiteCollectionGetWebsiteCollectionsResponse {
26
+ export declare namespace WebsiteCollectionListResponse {
27
27
  interface Data {
28
28
  /**
29
29
  * Website Collection ID
@@ -31,10 +31,10 @@ export declare namespace WebsiteCollectionGetWebsiteCollectionsResponse {
31
31
  id: string;
32
32
  }
33
33
  }
34
- export interface WebsiteCollectionCreateWebsiteCollectionParams {
34
+ export interface WebsiteCollectionCreateParams {
35
35
  collectionAddress: string;
36
36
  name: string;
37
- network: 'mainnet' | 'polygon' | 'polygon_mumbai' | 'optimism' | 'arbitrum' | 'binance' | 'bscTestnet' | 'avalanche' | 'avalancheFuji' | 'zksync' | 'fantom' | 'fantomTestnet' | 'base' | 'baseSepolia' | 'skaleNebula' | 'xai' | 'berachainArtio' | 'solana' | 'apechain' | 'flowMainnet' | 'campTestnet' | 'sui' | 'vanar' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli';
37
+ network: 'mainnet' | 'polygon' | 'polygon_mumbai' | 'optimism' | 'arbitrum' | 'binance' | 'bscTestnet' | 'avalanche' | 'avalancheFuji' | 'zksync' | 'fantom' | 'fantomTestnet' | 'base' | 'baseSepolia' | 'skaleNebula' | 'xai' | 'berachainArtio' | 'solana' | 'apechain' | 'flowMainnet' | 'campTestnet' | 'sui' | 'vanar' | 'superseed' | 'superseedSepolia' | 'sepolia' | 'optimism_sepolia' | 'arbitrumSepolia' | 'goerli' | 'optimism_goerli' | 'arbitrumGoerli' | 'basecamp' | 'abstract';
38
38
  organizationId: string;
39
39
  sortId: number;
40
40
  websiteId: string;
@@ -49,7 +49,7 @@ export interface WebsiteCollectionCreateWebsiteCollectionParams {
49
49
  themeId?: string;
50
50
  twitterUsername?: string;
51
51
  }
52
- export interface WebsiteCollectionGetWebsiteCollectionsParams {
52
+ export interface WebsiteCollectionListParams {
53
53
  /**
54
54
  * Filter by website ID
55
55
  */
@@ -68,6 +68,6 @@ export interface WebsiteCollectionGetWebsiteCollectionsParams {
68
68
  startingAfter?: string;
69
69
  }
70
70
  export declare namespace WebsiteCollections {
71
- export { type WebsiteCollectionGetWebsiteCollectionsResponse as WebsiteCollectionGetWebsiteCollectionsResponse, type WebsiteCollectionCreateWebsiteCollectionParams as WebsiteCollectionCreateWebsiteCollectionParams, type WebsiteCollectionGetWebsiteCollectionsParams as WebsiteCollectionGetWebsiteCollectionsParams, };
71
+ export { type WebsiteCollectionListResponse as WebsiteCollectionListResponse, type WebsiteCollectionCreateParams as WebsiteCollectionCreateParams, type WebsiteCollectionListParams as WebsiteCollectionListParams, };
72
72
  }
73
73
  //# sourceMappingURL=website-collections.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-collections.d.ts","sourceRoot":"","sources":["../../src/resources/api/website-collections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,6BAA6B,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQjG;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAGlD;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;IAEhD;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;CACtB;AAED,yBAAiB,6BAA6B,CAAC;IAC7C,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED,MAAM,WAAW,6BAA6B;IAC5C,iBAAiB,EAAE,MAAM,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EACH,SAAS,GACT,SAAS,GACT,gBAAgB,GAChB,UAAU,GACV,UAAU,GACV,SAAS,GACT,YAAY,GACZ,WAAW,GACX,eAAe,GACf,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,MAAM,GACN,aAAa,GACb,aAAa,GACb,KAAK,GACL,gBAAgB,GAChB,QAAQ,GACR,UAAU,GACV,aAAa,GACb,aAAa,GACb,KAAK,GACL,OAAO,GACP,WAAW,GACX,kBAAkB,GAClB,SAAS,GACT,kBAAkB,GAClB,iBAAiB,GACjB,QAAQ,GACR,iBAAiB,GACjB,gBAAgB,GAChB,UAAU,GACV,UAAU,CAAC;IAEf,cAAc,EAAE,MAAM,CAAC;IAEvB,MAAM,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;IAElB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,kBAAkB,CAAC;IAC1C,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -7,7 +7,7 @@ class WebsiteCollections extends resource_1.APIResource {
7
7
  /**
8
8
  * Creates a new collection under a website
9
9
  */
10
- createWebsiteCollection(body, options) {
10
+ create(body, options) {
11
11
  return this._client.post('/api/website_collections', {
12
12
  body,
13
13
  ...options,
@@ -17,7 +17,7 @@ class WebsiteCollections extends resource_1.APIResource {
17
17
  /**
18
18
  * Retrieves collections for a specific website.
19
19
  */
20
- getWebsiteCollections(query, options) {
20
+ list(query, options) {
21
21
  return this._client.get('/api/website_collections', { query, ...options });
22
22
  }
23
23
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-collections.js","sourceRoot":"","sources":["../../src/resources/api/website-collections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,kBAAmB,SAAQ,sBAAW;IACjD;;OAEG;IACH,MAAM,CAAC,IAAmC,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF;AArBD,gDAqBC"}
@@ -4,7 +4,7 @@ export class WebsiteCollections extends APIResource {
4
4
  /**
5
5
  * Creates a new collection under a website
6
6
  */
7
- createWebsiteCollection(body, options) {
7
+ create(body, options) {
8
8
  return this._client.post('/api/website_collections', {
9
9
  body,
10
10
  ...options,
@@ -14,7 +14,7 @@ export class WebsiteCollections extends APIResource {
14
14
  /**
15
15
  * Retrieves collections for a specific website.
16
16
  */
17
- getWebsiteCollections(query, options) {
17
+ list(query, options) {
18
18
  return this._client.get('/api/website_collections', { query, ...options });
19
19
  }
20
20
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-collections.mjs","sourceRoot":"","sources":["../../src/resources/api/website-collections.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,kBAAmB,SAAQ,WAAW;IACjD;;OAEG;IACH,MAAM,CAAC,IAAmC,EAAE,OAA6B;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,KAAkC,EAClC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;CACF"}
@@ -1,29 +1,23 @@
1
1
  import { APIResource } from "../../resource.js";
2
2
  import * as Core from "../../core.js";
3
3
  export declare class WebsiteUserRoles extends APIResource {
4
- /**
5
- * Assign roles to users for a specific website
6
- */
7
- assignRolesToUsers(body: WebsiteUserRoleAssignRolesToUsersParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleAssignRolesToUsersResponse>;
8
4
  /**
9
5
  * Retrieves roles of users for a specific website. If userId is provided,
10
6
  * retrieves the role of that specific user for the website.
11
7
  */
12
- getWebsiteUserRoles(query: WebsiteUserRoleGetWebsiteUserRolesParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleGetWebsiteUserRolesResponse>;
13
- }
14
- /**
15
- * Schema for postWebsiteUserRoles response
16
- */
17
- export interface WebsiteUserRoleAssignRolesToUsersResponse {
18
- data?: unknown;
8
+ list(query: WebsiteUserRoleListParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleListResponse>;
9
+ /**
10
+ * Assign roles to users for a specific website
11
+ */
12
+ assign(body: WebsiteUserRoleAssignParams, options?: Core.RequestOptions): Core.APIPromise<WebsiteUserRoleAssignResponse>;
19
13
  }
20
14
  /**
21
15
  * Schema for getWebsiteUserRoles response
22
16
  */
23
- export interface WebsiteUserRoleGetWebsiteUserRolesResponse {
24
- data: Array<WebsiteUserRoleGetWebsiteUserRolesResponse.Data>;
17
+ export interface WebsiteUserRoleListResponse {
18
+ data: Array<WebsiteUserRoleListResponse.Data>;
25
19
  }
26
- export declare namespace WebsiteUserRoleGetWebsiteUserRolesResponse {
20
+ export declare namespace WebsiteUserRoleListResponse {
27
21
  interface Data {
28
22
  /**
29
23
  * UUID of the website user role
@@ -31,7 +25,23 @@ export declare namespace WebsiteUserRoleGetWebsiteUserRolesResponse {
31
25
  id: string;
32
26
  }
33
27
  }
34
- export interface WebsiteUserRoleAssignRolesToUsersParams {
28
+ /**
29
+ * Schema for postWebsiteUserRoles response
30
+ */
31
+ export interface WebsiteUserRoleAssignResponse {
32
+ data?: unknown;
33
+ }
34
+ export interface WebsiteUserRoleListParams {
35
+ /**
36
+ * UUID of the website
37
+ */
38
+ websiteId: string;
39
+ /**
40
+ * UUID of the user
41
+ */
42
+ userId?: string;
43
+ }
44
+ export interface WebsiteUserRoleAssignParams {
35
45
  /**
36
46
  * UUID of the website
37
47
  */
@@ -39,9 +49,9 @@ export interface WebsiteUserRoleAssignRolesToUsersParams {
39
49
  /**
40
50
  * Array of website user roles
41
51
  */
42
- websiteUserRoles: Array<WebsiteUserRoleAssignRolesToUsersParams.WebsiteUserRole>;
52
+ websiteUserRoles: Array<WebsiteUserRoleAssignParams.WebsiteUserRole>;
43
53
  }
44
- export declare namespace WebsiteUserRoleAssignRolesToUsersParams {
54
+ export declare namespace WebsiteUserRoleAssignParams {
45
55
  interface WebsiteUserRole {
46
56
  /**
47
57
  * Role type of the user
@@ -57,17 +67,7 @@ export declare namespace WebsiteUserRoleAssignRolesToUsersParams {
57
67
  deletedAt?: string;
58
68
  }
59
69
  }
60
- export interface WebsiteUserRoleGetWebsiteUserRolesParams {
61
- /**
62
- * UUID of the website
63
- */
64
- websiteId: string;
65
- /**
66
- * UUID of the user
67
- */
68
- userId?: string;
69
- }
70
70
  export declare namespace WebsiteUserRoles {
71
- export { type WebsiteUserRoleAssignRolesToUsersResponse as WebsiteUserRoleAssignRolesToUsersResponse, type WebsiteUserRoleGetWebsiteUserRolesResponse as WebsiteUserRoleGetWebsiteUserRolesResponse, type WebsiteUserRoleAssignRolesToUsersParams as WebsiteUserRoleAssignRolesToUsersParams, type WebsiteUserRoleGetWebsiteUserRolesParams as WebsiteUserRoleGetWebsiteUserRolesParams, };
71
+ export { type WebsiteUserRoleListResponse as WebsiteUserRoleListResponse, type WebsiteUserRoleAssignResponse as WebsiteUserRoleAssignResponse, type WebsiteUserRoleListParams as WebsiteUserRoleListParams, type WebsiteUserRoleAssignParams as WebsiteUserRoleAssignParams, };
72
72
  }
73
73
  //# sourceMappingURL=website-user-roles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-roles.d.ts","sourceRoot":"","sources":["../../src/resources/api/website-user-roles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,IAAI,CACF,KAAK,EAAE,yBAAyB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;IAI/C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAGlD;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,KAAK,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;CAC/C;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;KACZ;CACF;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,gBAAgB,EAAE,KAAK,CAAC,2BAA2B,CAAC,eAAe,CAAC,CAAC;CACtE;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,eAAe;QAC9B;;WAEG;QACH,QAAQ,EACJ,qBAAqB,GACrB,eAAe,GACf,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,CAAC;QAEtB;;WAEG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -4,19 +4,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.WebsiteUserRoles = void 0;
5
5
  const resource_1 = require("../../resource.js");
6
6
  class WebsiteUserRoles extends resource_1.APIResource {
7
- /**
8
- * Assign roles to users for a specific website
9
- */
10
- assignRolesToUsers(body, options) {
11
- return this._client.post('/api/website_user_roles', { body, ...options });
12
- }
13
7
  /**
14
8
  * Retrieves roles of users for a specific website. If userId is provided,
15
9
  * retrieves the role of that specific user for the website.
16
10
  */
17
- getWebsiteUserRoles(query, options) {
11
+ list(query, options) {
18
12
  return this._client.get('/api/website_user_roles', { query, ...options });
19
13
  }
14
+ /**
15
+ * Assign roles to users for a specific website
16
+ */
17
+ assign(body, options) {
18
+ return this._client.post('/api/website_user_roles', { body, ...options });
19
+ }
20
20
  }
21
21
  exports.WebsiteUserRoles = WebsiteUserRoles;
22
22
  //# sourceMappingURL=website-user-roles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-roles.js","sourceRoot":"","sources":["../../src/resources/api/website-user-roles.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;OAGG;IACH,IAAI,CACF,KAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AArBD,4CAqBC"}
@@ -1,18 +1,18 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../resource.mjs";
3
3
  export class WebsiteUserRoles extends APIResource {
4
- /**
5
- * Assign roles to users for a specific website
6
- */
7
- assignRolesToUsers(body, options) {
8
- return this._client.post('/api/website_user_roles', { body, ...options });
9
- }
10
4
  /**
11
5
  * Retrieves roles of users for a specific website. If userId is provided,
12
6
  * retrieves the role of that specific user for the website.
13
7
  */
14
- getWebsiteUserRoles(query, options) {
8
+ list(query, options) {
15
9
  return this._client.get('/api/website_user_roles', { query, ...options });
16
10
  }
11
+ /**
12
+ * Assign roles to users for a specific website
13
+ */
14
+ assign(body, options) {
15
+ return this._client.post('/api/website_user_roles', { body, ...options });
16
+ }
17
17
  }
18
18
  //# sourceMappingURL=website-user-roles.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"website-user-roles.mjs","sourceRoot":"","sources":["../../src/resources/api/website-user-roles.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;OAGG;IACH,IAAI,CACF,KAAgC,EAChC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAiC,EACjC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF"}
@@ -1,5 +1,5 @@
1
- import { APIResource } from "../resource.js";
2
- import * as Core from "../core.js";
1
+ import { APIResource } from "../../resource.js";
2
+ import * as Core from "../../core.js";
3
3
  export declare class Websites extends APIResource {
4
4
  /**
5
5
  * Creates a new website
@@ -0,0 +1 @@
1
+ {"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/resources/api/websites.ts"],"names":[],"mappings":"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"}
@@ -2,8 +2,8 @@
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.Websites = void 0;
5
- const resource_1 = require("../resource.js");
6
- const core_1 = require("../core.js");
5
+ const resource_1 = require("../../resource.js");
6
+ const core_1 = require("../../core.js");
7
7
  class Websites extends resource_1.APIResource {
8
8
  /**
9
9
  * Creates a new website
@@ -0,0 +1 @@
1
+ {"version":3,"file":"websites.js","sourceRoot":"","sources":["../../src/resources/api/websites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAC7C,wCAA8C;AAG9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAQD,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF;AAvBD,4BAuBC"}
@@ -1,6 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../resource.mjs";
3
- import { isRequestOptions } from "../core.mjs";
2
+ import { APIResource } from "../../resource.mjs";
3
+ import { isRequestOptions } from "../../core.mjs";
4
4
  export class Websites extends APIResource {
5
5
  /**
6
6
  * Creates a new website
@@ -0,0 +1 @@
1
+ {"version":3,"file":"websites.mjs","sourceRoot":"","sources":["../../src/resources/api/websites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;AAG3B,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;IAQD,IAAI,CACF,QAAiD,EAAE,EACnD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClE,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export * from "./api/index.js";
2
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
+ };
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ __exportStar(require("./api/index.js"), exports);
19
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,iDAA4B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./api/index.mjs";
3
+ //# sourceMappingURL=api.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.mjs","sourceRoot":"","sources":["../src/resources/api.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,7 +1,2 @@
1
- export { Assets, type AssetCreateResponse, type AssetGetAuctionsResponse, type AssetCreateParams, } from "./assets/assets.js";
2
- export { AuctionBids, type AuctionBidListParams } from "./auction-bids.js";
3
- export { Drip } from "./drip/drip.js";
4
- export { Loyalty } from "./loyalty/loyalty.js";
5
- export { Users } from "./users/users.js";
6
- export { Websites, type WebsiteCreateResponse, type WebsiteListResponse, type WebsiteCreateParams, type WebsiteListParams, } from "./websites.js";
1
+ export { API, type APICreateAssetUploadURLResponse, type APIListAuctionsResponse, type APIListUsersResponse, type APICreateAssetUploadURLParams, type APIListAuctionBidsParams, type APIListUsersParams, } from "./api/api.js";
7
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,GACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,GAAG,EACH,KAAK,+BAA+B,EACpC,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,GACxB,MAAM,WAAW,CAAC"}
@@ -1,17 +1,7 @@
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.Websites = exports.Users = exports.Loyalty = exports.Drip = exports.AuctionBids = exports.Assets = void 0;
5
- var assets_1 = require("./assets/assets.js");
6
- Object.defineProperty(exports, "Assets", { enumerable: true, get: function () { return assets_1.Assets; } });
7
- var auction_bids_1 = require("./auction-bids.js");
8
- Object.defineProperty(exports, "AuctionBids", { enumerable: true, get: function () { return auction_bids_1.AuctionBids; } });
9
- var drip_1 = require("./drip/drip.js");
10
- Object.defineProperty(exports, "Drip", { enumerable: true, get: function () { return drip_1.Drip; } });
11
- var loyalty_1 = require("./loyalty/loyalty.js");
12
- Object.defineProperty(exports, "Loyalty", { enumerable: true, get: function () { return loyalty_1.Loyalty; } });
13
- var users_1 = require("./users/users.js");
14
- Object.defineProperty(exports, "Users", { enumerable: true, get: function () { return users_1.Users; } });
15
- var websites_1 = require("./websites.js");
16
- Object.defineProperty(exports, "Websites", { enumerable: true, get: function () { return websites_1.Websites; } });
4
+ exports.API = void 0;
5
+ var api_1 = require("./api/api.js");
6
+ Object.defineProperty(exports, "API", { enumerable: true, get: function () { return api_1.API; } });
17
7
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAKyB;AAJvB,gGAAA,MAAM,OAAA;AAKR,kDAAwE;AAA/D,2GAAA,WAAW,OAAA;AACpB,uCAAmC;AAA1B,4FAAA,IAAI,OAAA;AACb,gDAA4C;AAAnC,kGAAA,OAAO,OAAA;AAChB,0CAAsC;AAA7B,8FAAA,KAAK,OAAA;AACd,0CAMoB;AALlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAQmB;AAPjB,0FAAA,GAAG,OAAA"}
@@ -1,8 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Assets, } from "./assets/assets.mjs";
3
- export { AuctionBids } from "./auction-bids.mjs";
4
- export { Drip } from "./drip/drip.mjs";
5
- export { Loyalty } from "./loyalty/loyalty.mjs";
6
- export { Users } from "./users/users.mjs";
7
- export { Websites, } from "./websites.mjs";
2
+ export { API, } from "./api/api.mjs";
8
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,MAAM,GAIP;OACM,EAAE,WAAW,EAA6B;OAC1C,EAAE,IAAI,EAAE;OACR,EAAE,OAAO,EAAE;OACX,EAAE,KAAK,EAAE;OACT,EACL,QAAQ,GAKT"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,GAAG,GAOJ"}
package/resources.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./resources/index.js";
2
+ //# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
package/resources.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources/index.js"), exports);
18
+ //# sourceMappingURL=resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAkC"}
package/resources.mjs ADDED
@@ -0,0 +1,2 @@
1
+ export * from "./resources/index.mjs";
2
+ //# sourceMappingURL=resources.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.mjs","sourceRoot":"","sources":["src/resources.ts"],"names":[],"mappings":""}
package/src/core.ts CHANGED
@@ -48,8 +48,8 @@ async function defaultParseResponse<T>(props: APIResponseProps): Promise<T> {
48
48
  }
49
49
 
50
50
  const contentType = response.headers.get('content-type');
51
- const isJSON =
52
- contentType?.includes('application/json') || contentType?.includes('application/vnd.api+json');
51
+ const mediaType = contentType?.split(';')[0]?.trim();
52
+ const isJSON = mediaType?.includes('application/json') || mediaType?.endsWith('+json');
53
53
  if (isJSON) {
54
54
  const json = await response.json();
55
55
 
package/src/index.ts CHANGED
@@ -6,27 +6,19 @@ import * as Core from './core';
6
6
  import * as Errors from './error';
7
7
  import * as Uploads from './uploads';
8
8
  import * as API from './resources/index';
9
- import { AuctionBidListParams, AuctionBids } from './resources/auction-bids';
10
9
  import {
11
- WebsiteCreateParams,
12
- WebsiteCreateResponse,
13
- WebsiteListParams,
14
- WebsiteListResponse,
15
- Websites,
16
- } from './resources/websites';
17
- import {
18
- AssetCreateParams,
19
- AssetCreateResponse,
20
- AssetGetAuctionsResponse,
21
- Assets,
22
- } from './resources/assets/assets';
23
- import { Drip } from './resources/drip/drip';
24
- import { Loyalty } from './resources/loyalty/loyalty';
25
- import { Users } from './resources/users/users';
10
+ API as ApiapiAPI,
11
+ APICreateAssetUploadURLParams,
12
+ APICreateAssetUploadURLResponse,
13
+ APIListAuctionBidsParams,
14
+ APIListAuctionsResponse,
15
+ APIListUsersParams,
16
+ APIListUsersResponse,
17
+ } from './resources/api/api';
26
18
 
27
19
  export interface ClientOptions {
28
20
  /**
29
- * API key required to authenticate with the Snag Solutions API.
21
+ * Defaults to process.env['SNAG_SOLUTIONS_API_KEY'].
30
22
  */
31
23
  apiKey?: string | undefined;
32
24
 
@@ -98,8 +90,8 @@ export class SnagSolutions extends Core.APIClient {
98
90
  /**
99
91
  * API Client for interfacing with the Snag Solutions API.
100
92
  *
101
- * @param {string | undefined} [opts.apiKey=process.env['X_API_KEY'] ?? undefined]
102
- * @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://admin.snagsolutions.io/] - Override the default base URL for the API.
93
+ * @param {string | undefined} [opts.apiKey=process.env['SNAG_SOLUTIONS_API_KEY'] ?? undefined]
94
+ * @param {string} [opts.baseURL=process.env['SNAG_SOLUTIONS_BASE_URL'] ?? https://api.example.com] - Override the default base URL for the API.
103
95
  * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
104
96
  * @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
105
97
  * @param {Core.Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
@@ -109,19 +101,19 @@ export class SnagSolutions extends Core.APIClient {
109
101
  */
110
102
  constructor({
111
103
  baseURL = Core.readEnv('SNAG_SOLUTIONS_BASE_URL'),
112
- apiKey = Core.readEnv('X_API_KEY'),
104
+ apiKey = Core.readEnv('SNAG_SOLUTIONS_API_KEY'),
113
105
  ...opts
114
106
  }: ClientOptions = {}) {
115
107
  if (apiKey === undefined) {
116
108
  throw new Errors.SnagSolutionsError(
117
- "The X_API_KEY environment variable is missing or empty; either provide it, or instantiate the SnagSolutions client with an apiKey option, like new SnagSolutions({ apiKey: 'My API Key' }).",
109
+ "The SNAG_SOLUTIONS_API_KEY environment variable is missing or empty; either provide it, or instantiate the SnagSolutions client with an apiKey option, like new SnagSolutions({ apiKey: 'My API Key' }).",
118
110
  );
119
111
  }
120
112
 
121
113
  const options: ClientOptions = {
122
114
  apiKey,
123
115
  ...opts,
124
- baseURL: baseURL || `https://admin.snagsolutions.io/`,
116
+ baseURL: baseURL || `https://api.example.com`,
125
117
  };
126
118
 
127
119
  super({
@@ -137,12 +129,7 @@ export class SnagSolutions extends Core.APIClient {
137
129
  this.apiKey = apiKey;
138
130
  }
139
131
 
140
- assets: API.Assets = new API.Assets(this);
141
- users: API.Users = new API.Users(this);
142
- loyalty: API.Loyalty = new API.Loyalty(this);
143
- auctionBids: API.AuctionBids = new API.AuctionBids(this);
144
- websites: API.Websites = new API.Websites(this);
145
- drip: API.Drip = new API.Drip(this);
132
+ api: API.API = new API.API(this);
146
133
 
147
134
  protected override defaultQuery(): Core.DefaultQuery | undefined {
148
135
  return this._options.defaultQuery;
@@ -184,37 +171,19 @@ export class SnagSolutions extends Core.APIClient {
184
171
  static fileFromPath = Uploads.fileFromPath;
185
172
  }
186
173
 
187
- SnagSolutions.Assets = Assets;
188
- SnagSolutions.Users = Users;
189
- SnagSolutions.Loyalty = Loyalty;
190
- SnagSolutions.AuctionBids = AuctionBids;
191
- SnagSolutions.Websites = Websites;
192
- SnagSolutions.Drip = Drip;
174
+ SnagSolutions.API = ApiapiAPI;
193
175
  export declare namespace SnagSolutions {
194
176
  export type RequestOptions = Core.RequestOptions;
195
177
 
196
178
  export {
197
- Assets as Assets,
198
- type AssetCreateResponse as AssetCreateResponse,
199
- type AssetGetAuctionsResponse as AssetGetAuctionsResponse,
200
- type AssetCreateParams as AssetCreateParams,
201
- };
202
-
203
- export { Users as Users };
204
-
205
- export { Loyalty as Loyalty };
206
-
207
- export { AuctionBids as AuctionBids, type AuctionBidListParams as AuctionBidListParams };
208
-
209
- export {
210
- Websites as Websites,
211
- type WebsiteCreateResponse as WebsiteCreateResponse,
212
- type WebsiteListResponse as WebsiteListResponse,
213
- type WebsiteCreateParams as WebsiteCreateParams,
214
- type WebsiteListParams as WebsiteListParams,
179
+ ApiapiAPI as API,
180
+ type APICreateAssetUploadURLResponse as APICreateAssetUploadURLResponse,
181
+ type APIListAuctionsResponse as APIListAuctionsResponse,
182
+ type APIListUsersResponse as APIListUsersResponse,
183
+ type APICreateAssetUploadURLParams as APICreateAssetUploadURLParams,
184
+ type APIListAuctionBidsParams as APIListAuctionBidsParams,
185
+ type APIListUsersParams as APIListUsersParams,
215
186
  };
216
-
217
- export { Drip as Drip };
218
187
  }
219
188
 
220
189
  export { toFile, fileFromPath } from './uploads';