@snagsolutions/sdk 0.1.0-alpha.230 → 0.1.0-alpha.232

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 (786) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +42 -112
  3. package/_shims/MultipartBody.d.ts +9 -0
  4. package/_shims/MultipartBody.d.ts.map +1 -0
  5. package/_shims/MultipartBody.js +16 -0
  6. package/_shims/MultipartBody.js.map +1 -0
  7. package/_shims/MultipartBody.mjs +12 -0
  8. package/_shims/MultipartBody.mjs.map +1 -0
  9. package/_shims/README.md +46 -0
  10. package/_shims/auto/runtime-bun.d.ts +5 -0
  11. package/_shims/auto/runtime-bun.d.ts.map +1 -0
  12. package/_shims/auto/runtime-bun.js +21 -0
  13. package/_shims/auto/runtime-bun.js.map +1 -0
  14. package/_shims/auto/runtime-bun.mjs +2 -0
  15. package/_shims/auto/runtime-bun.mjs.map +1 -0
  16. package/_shims/auto/runtime-node.d.ts +5 -0
  17. package/_shims/auto/runtime-node.d.ts.map +1 -0
  18. package/_shims/auto/runtime-node.js +21 -0
  19. package/_shims/auto/runtime-node.js.map +1 -0
  20. package/_shims/auto/runtime-node.mjs +2 -0
  21. package/_shims/auto/runtime-node.mjs.map +1 -0
  22. package/_shims/auto/runtime.d.ts +5 -0
  23. package/_shims/auto/runtime.d.ts.map +1 -0
  24. package/_shims/auto/runtime.js +21 -0
  25. package/_shims/auto/runtime.js.map +1 -0
  26. package/_shims/auto/runtime.mjs +2 -0
  27. package/_shims/auto/runtime.mjs.map +1 -0
  28. package/_shims/auto/types-node.d.ts +5 -0
  29. package/_shims/auto/types-node.d.ts.map +1 -0
  30. package/_shims/auto/types-node.js +21 -0
  31. package/_shims/auto/types-node.js.map +1 -0
  32. package/_shims/auto/types-node.mjs +2 -0
  33. package/_shims/auto/types-node.mjs.map +1 -0
  34. package/_shims/auto/types.d.ts +101 -0
  35. package/_shims/auto/types.js +3 -0
  36. package/_shims/auto/types.mjs +3 -0
  37. package/_shims/bun-runtime.d.ts +6 -0
  38. package/_shims/bun-runtime.d.ts.map +1 -0
  39. package/_shims/bun-runtime.js +14 -0
  40. package/_shims/bun-runtime.js.map +1 -0
  41. package/_shims/bun-runtime.mjs +10 -0
  42. package/_shims/bun-runtime.mjs.map +1 -0
  43. package/_shims/index.d.ts +83 -0
  44. package/_shims/index.js +17 -0
  45. package/_shims/index.mjs +11 -0
  46. package/_shims/manual-types.d.ts +12 -0
  47. package/_shims/manual-types.js +3 -0
  48. package/_shims/manual-types.mjs +3 -0
  49. package/_shims/node-runtime.d.ts +3 -0
  50. package/_shims/node-runtime.d.ts.map +1 -0
  51. package/_shims/node-runtime.js +89 -0
  52. package/_shims/node-runtime.js.map +1 -0
  53. package/_shims/node-runtime.mjs +56 -0
  54. package/_shims/node-runtime.mjs.map +1 -0
  55. package/_shims/node-types.d.ts +42 -0
  56. package/_shims/node-types.js +3 -0
  57. package/_shims/node-types.mjs +3 -0
  58. package/_shims/registry.d.ts +37 -0
  59. package/_shims/registry.d.ts.map +1 -0
  60. package/_shims/registry.js +41 -0
  61. package/_shims/registry.js.map +1 -0
  62. package/_shims/registry.mjs +37 -0
  63. package/_shims/registry.mjs.map +1 -0
  64. package/_shims/web-runtime.d.ts +5 -0
  65. package/_shims/web-runtime.d.ts.map +1 -0
  66. package/_shims/web-runtime.js +78 -0
  67. package/_shims/web-runtime.js.map +1 -0
  68. package/_shims/web-runtime.mjs +71 -0
  69. package/_shims/web-runtime.mjs.map +1 -0
  70. package/_shims/web-types.d.ts +83 -0
  71. package/_shims/web-types.js +3 -0
  72. package/_shims/web-types.mjs +3 -0
  73. package/core.d.ts +255 -0
  74. package/core.d.ts.map +1 -0
  75. package/core.js +929 -0
  76. package/core.js.map +1 -0
  77. package/core.mjs +897 -0
  78. package/core.mjs.map +1 -0
  79. package/error.d.ts +46 -1
  80. package/error.d.ts.map +1 -1
  81. package/error.js +110 -3
  82. package/error.js.map +1 -1
  83. package/error.mjs +96 -1
  84. package/error.mjs.map +1 -1
  85. package/index.d.mts +138 -6
  86. package/index.d.ts +137 -5
  87. package/index.d.ts.map +1 -1
  88. package/index.js +136 -12
  89. package/index.js.map +1 -1
  90. package/index.mjs +109 -5
  91. package/index.mjs.map +1 -1
  92. package/internal/qs/formats.d.ts +0 -1
  93. package/internal/qs/formats.d.ts.map +1 -1
  94. package/internal/qs/formats.js +2 -4
  95. package/internal/qs/formats.js.map +1 -1
  96. package/internal/qs/formats.mjs +1 -2
  97. package/internal/qs/formats.mjs.map +1 -1
  98. package/internal/qs/index.d.ts.map +1 -1
  99. package/internal/qs/stringify.d.ts.map +1 -1
  100. package/internal/qs/stringify.js +19 -16
  101. package/internal/qs/stringify.js.map +1 -1
  102. package/internal/qs/stringify.mjs +19 -17
  103. package/internal/qs/stringify.mjs.map +1 -1
  104. package/internal/qs/utils.d.ts +0 -1
  105. package/internal/qs/utils.d.ts.map +1 -1
  106. package/internal/qs/utils.js +21 -22
  107. package/internal/qs/utils.js.map +1 -1
  108. package/internal/qs/utils.mjs +12 -12
  109. package/internal/qs/utils.mjs.map +1 -1
  110. package/package.json +65 -101
  111. package/resource.d.ts +5 -1
  112. package/resource.d.ts.map +1 -1
  113. package/resource.js +8 -3
  114. package/resource.js.map +1 -1
  115. package/resource.mjs +6 -1
  116. package/resource.mjs.map +1 -1
  117. package/resources/assets.d.ts +3 -4
  118. package/resources/assets.d.ts.map +1 -1
  119. package/resources/assets.js +1 -1
  120. package/resources/assets.js.map +1 -1
  121. package/resources/assets.mjs +1 -1
  122. package/resources/assets.mjs.map +1 -1
  123. package/resources/auctions/auctions.d.ts +6 -6
  124. package/resources/auctions/auctions.d.ts.map +1 -1
  125. package/resources/auctions/auctions.js +29 -11
  126. package/resources/auctions/auctions.js.map +1 -1
  127. package/resources/auctions/auctions.mjs +5 -9
  128. package/resources/auctions/auctions.mjs.map +1 -1
  129. package/resources/auctions/index.d.ts.map +1 -1
  130. package/resources/auctions/website-user-attributes/index.d.ts.map +1 -1
  131. package/resources/auctions/website-user-attributes/values.d.ts +4 -5
  132. package/resources/auctions/website-user-attributes/values.d.ts.map +1 -1
  133. package/resources/auctions/website-user-attributes/values.js +1 -1
  134. package/resources/auctions/website-user-attributes/values.js.map +1 -1
  135. package/resources/auctions/website-user-attributes/values.mjs +1 -1
  136. package/resources/auctions/website-user-attributes/values.mjs.map +1 -1
  137. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts +6 -6
  138. package/resources/auctions/website-user-attributes/website-user-attributes.d.ts.map +1 -1
  139. package/resources/auctions/website-user-attributes/website-user-attributes.js +31 -15
  140. package/resources/auctions/website-user-attributes/website-user-attributes.js.map +1 -1
  141. package/resources/auctions/website-user-attributes/website-user-attributes.mjs +7 -13
  142. package/resources/auctions/website-user-attributes/website-user-attributes.mjs.map +1 -1
  143. package/resources/auctions/website-user-attributes.d.ts.map +1 -1
  144. package/resources/auctions/website-user-attributes.js +15 -2
  145. package/resources/auctions/website-user-attributes.js.map +1 -1
  146. package/resources/auctions.d.ts.map +1 -1
  147. package/resources/auctions.js +15 -2
  148. package/resources/auctions.js.map +1 -1
  149. package/resources/auth.d.ts +52 -5
  150. package/resources/auth.d.ts.map +1 -1
  151. package/resources/auth.js +11 -5
  152. package/resources/auth.js.map +1 -1
  153. package/resources/auth.mjs +11 -5
  154. package/resources/auth.mjs.map +1 -1
  155. package/resources/index.d.ts +1 -1
  156. package/resources/index.d.ts.map +1 -1
  157. package/resources/index.js.map +1 -1
  158. package/resources/index.mjs +1 -1
  159. package/resources/index.mjs.map +1 -1
  160. package/resources/loyalty/account-streaks.d.ts +3 -4
  161. package/resources/loyalty/account-streaks.d.ts.map +1 -1
  162. package/resources/loyalty/account-streaks.js +1 -1
  163. package/resources/loyalty/account-streaks.js.map +1 -1
  164. package/resources/loyalty/account-streaks.mjs +1 -1
  165. package/resources/loyalty/account-streaks.mjs.map +1 -1
  166. package/resources/loyalty/accounts.d.ts +5 -5
  167. package/resources/loyalty/accounts.d.ts.map +1 -1
  168. package/resources/loyalty/accounts.js +6 -11
  169. package/resources/loyalty/accounts.js.map +1 -1
  170. package/resources/loyalty/accounts.mjs +6 -11
  171. package/resources/loyalty/accounts.mjs.map +1 -1
  172. package/resources/loyalty/badges.d.ts +12 -9
  173. package/resources/loyalty/badges.d.ts.map +1 -1
  174. package/resources/loyalty/badges.js +18 -44
  175. package/resources/loyalty/badges.js.map +1 -1
  176. package/resources/loyalty/badges.mjs +18 -44
  177. package/resources/loyalty/badges.mjs.map +1 -1
  178. package/resources/loyalty/currencies.d.ts +4 -5
  179. package/resources/loyalty/currencies.d.ts.map +1 -1
  180. package/resources/loyalty/currencies.js +1 -1
  181. package/resources/loyalty/currencies.js.map +1 -1
  182. package/resources/loyalty/currencies.mjs +1 -1
  183. package/resources/loyalty/currencies.mjs.map +1 -1
  184. package/resources/loyalty/index.d.ts.map +1 -1
  185. package/resources/loyalty/loyalty.d.ts +1 -1
  186. package/resources/loyalty/loyalty.d.ts.map +1 -1
  187. package/resources/loyalty/loyalty.js +35 -13
  188. package/resources/loyalty/loyalty.js.map +1 -1
  189. package/resources/loyalty/loyalty.mjs +1 -1
  190. package/resources/loyalty/multipliers.d.ts +10 -9
  191. package/resources/loyalty/multipliers.d.ts.map +1 -1
  192. package/resources/loyalty/multipliers.js +14 -26
  193. package/resources/loyalty/multipliers.js.map +1 -1
  194. package/resources/loyalty/multipliers.mjs +14 -26
  195. package/resources/loyalty/multipliers.mjs.map +1 -1
  196. package/resources/loyalty/questions-responses.d.ts +5 -5
  197. package/resources/loyalty/questions-responses.d.ts.map +1 -1
  198. package/resources/loyalty/questions-responses.js +5 -11
  199. package/resources/loyalty/questions-responses.js.map +1 -1
  200. package/resources/loyalty/questions-responses.mjs +5 -11
  201. package/resources/loyalty/questions-responses.mjs.map +1 -1
  202. package/resources/loyalty/questions.d.ts +5 -6
  203. package/resources/loyalty/questions.d.ts.map +1 -1
  204. package/resources/loyalty/questions.js +2 -3
  205. package/resources/loyalty/questions.js.map +1 -1
  206. package/resources/loyalty/questions.mjs +2 -3
  207. package/resources/loyalty/questions.mjs.map +1 -1
  208. package/resources/loyalty/rule-edits.d.ts +4 -5
  209. package/resources/loyalty/rule-edits.d.ts.map +1 -1
  210. package/resources/loyalty/rule-edits.js +2 -3
  211. package/resources/loyalty/rule-edits.js.map +1 -1
  212. package/resources/loyalty/rule-edits.mjs +2 -3
  213. package/resources/loyalty/rule-edits.mjs.map +1 -1
  214. package/resources/loyalty/rule-groups.d.ts +8 -7
  215. package/resources/loyalty/rule-groups.d.ts.map +1 -1
  216. package/resources/loyalty/rule-groups.js +10 -24
  217. package/resources/loyalty/rule-groups.js.map +1 -1
  218. package/resources/loyalty/rule-groups.mjs +10 -24
  219. package/resources/loyalty/rule-groups.mjs.map +1 -1
  220. package/resources/loyalty/rules.d.ts +12 -9
  221. package/resources/loyalty/rules.d.ts.map +1 -1
  222. package/resources/loyalty/rules.js +18 -48
  223. package/resources/loyalty/rules.js.map +1 -1
  224. package/resources/loyalty/rules.mjs +18 -48
  225. package/resources/loyalty/rules.mjs.map +1 -1
  226. package/resources/loyalty/transactions/index.d.ts.map +1 -1
  227. package/resources/loyalty/transactions/posts.d.ts +5 -5
  228. package/resources/loyalty/transactions/posts.d.ts.map +1 -1
  229. package/resources/loyalty/transactions/posts.js +6 -14
  230. package/resources/loyalty/transactions/posts.js.map +1 -1
  231. package/resources/loyalty/transactions/posts.mjs +6 -14
  232. package/resources/loyalty/transactions/posts.mjs.map +1 -1
  233. package/resources/loyalty/transactions/rule-statuses.d.ts +5 -5
  234. package/resources/loyalty/transactions/rule-statuses.d.ts.map +1 -1
  235. package/resources/loyalty/transactions/rule-statuses.js +5 -10
  236. package/resources/loyalty/transactions/rule-statuses.js.map +1 -1
  237. package/resources/loyalty/transactions/rule-statuses.mjs +5 -10
  238. package/resources/loyalty/transactions/rule-statuses.mjs.map +1 -1
  239. package/resources/loyalty/transactions/transactions.d.ts +8 -8
  240. package/resources/loyalty/transactions/transactions.d.ts.map +1 -1
  241. package/resources/loyalty/transactions/transactions.js +30 -14
  242. package/resources/loyalty/transactions/transactions.js.map +1 -1
  243. package/resources/loyalty/transactions/transactions.mjs +5 -11
  244. package/resources/loyalty/transactions/transactions.mjs.map +1 -1
  245. package/resources/loyalty/transactions.d.ts.map +1 -1
  246. package/resources/loyalty/transactions.js +15 -2
  247. package/resources/loyalty/transactions.js.map +1 -1
  248. package/resources/loyalty.d.ts.map +1 -1
  249. package/resources/loyalty.js +15 -2
  250. package/resources/loyalty.js.map +1 -1
  251. package/resources/minting/allowlist.d.ts +4 -5
  252. package/resources/minting/allowlist.d.ts.map +1 -1
  253. package/resources/minting/allowlist.js +1 -1
  254. package/resources/minting/allowlist.js.map +1 -1
  255. package/resources/minting/allowlist.mjs +1 -1
  256. package/resources/minting/allowlist.mjs.map +1 -1
  257. package/resources/minting/contracts.d.ts +5 -5
  258. package/resources/minting/contracts.d.ts.map +1 -1
  259. package/resources/minting/contracts.js +5 -9
  260. package/resources/minting/contracts.js.map +1 -1
  261. package/resources/minting/contracts.mjs +5 -9
  262. package/resources/minting/contracts.mjs.map +1 -1
  263. package/resources/minting/index.d.ts.map +1 -1
  264. package/resources/minting/minting.d.ts +4 -5
  265. package/resources/minting/minting.d.ts.map +1 -1
  266. package/resources/minting/minting.js +27 -5
  267. package/resources/minting/minting.js.map +1 -1
  268. package/resources/minting/minting.mjs +1 -1
  269. package/resources/minting/minting.mjs.map +1 -1
  270. package/resources/minting/status.d.ts +4 -5
  271. package/resources/minting/status.d.ts.map +1 -1
  272. package/resources/minting/status.js +3 -4
  273. package/resources/minting/status.js.map +1 -1
  274. package/resources/minting/status.mjs +3 -4
  275. package/resources/minting/status.mjs.map +1 -1
  276. package/resources/minting.d.ts.map +1 -1
  277. package/resources/minting.js +15 -2
  278. package/resources/minting.js.map +1 -1
  279. package/resources/referral/index.d.ts.map +1 -1
  280. package/resources/referral/referral.d.ts +3 -4
  281. package/resources/referral/referral.d.ts.map +1 -1
  282. package/resources/referral/referral.js +25 -3
  283. package/resources/referral/referral.js.map +1 -1
  284. package/resources/referral/referral.mjs +1 -1
  285. package/resources/referral/referral.mjs.map +1 -1
  286. package/resources/referral/users.d.ts +5 -5
  287. package/resources/referral/users.d.ts.map +1 -1
  288. package/resources/referral/users.js +5 -9
  289. package/resources/referral/users.js.map +1 -1
  290. package/resources/referral/users.mjs +5 -9
  291. package/resources/referral/users.mjs.map +1 -1
  292. package/resources/referral.d.ts.map +1 -1
  293. package/resources/referral.js +15 -2
  294. package/resources/referral.js.map +1 -1
  295. package/resources/token-claims.d.ts +10 -9
  296. package/resources/token-claims.d.ts.map +1 -1
  297. package/resources/token-claims.js +16 -16
  298. package/resources/token-claims.js.map +1 -1
  299. package/resources/token-claims.mjs +16 -16
  300. package/resources/token-claims.mjs.map +1 -1
  301. package/resources/users/index.d.ts.map +1 -1
  302. package/resources/users/metadatas.d.ts +6 -5
  303. package/resources/users/metadatas.d.ts.map +1 -1
  304. package/resources/users/metadatas.js +8 -17
  305. package/resources/users/metadatas.js.map +1 -1
  306. package/resources/users/metadatas.mjs +8 -17
  307. package/resources/users/metadatas.mjs.map +1 -1
  308. package/resources/users/users.d.ts +13 -9
  309. package/resources/users/users.d.ts.map +1 -1
  310. package/resources/users/users.js +29 -11
  311. package/resources/users/users.js.map +1 -1
  312. package/resources/users/users.mjs +5 -9
  313. package/resources/users/users.mjs.map +1 -1
  314. package/resources/users.d.ts.map +1 -1
  315. package/resources/users.js +15 -2
  316. package/resources/users.js.map +1 -1
  317. package/resources/websites/index.d.ts.map +1 -1
  318. package/resources/websites/website-collections.d.ts +4 -5
  319. package/resources/websites/website-collections.d.ts.map +1 -1
  320. package/resources/websites/website-collections.js +2 -3
  321. package/resources/websites/website-collections.js.map +1 -1
  322. package/resources/websites/website-collections.mjs +2 -3
  323. package/resources/websites/website-collections.mjs.map +1 -1
  324. package/resources/websites/website-user-roles.d.ts +4 -5
  325. package/resources/websites/website-user-roles.d.ts.map +1 -1
  326. package/resources/websites/website-user-roles.js +1 -1
  327. package/resources/websites/website-user-roles.js.map +1 -1
  328. package/resources/websites/website-user-roles.mjs +1 -1
  329. package/resources/websites/website-user-roles.mjs.map +1 -1
  330. package/resources/websites/websites.d.ts +5 -5
  331. package/resources/websites/websites.d.ts.map +1 -1
  332. package/resources/websites/websites.js +30 -13
  333. package/resources/websites/websites.js.map +1 -1
  334. package/resources/websites/websites.mjs +5 -10
  335. package/resources/websites/websites.mjs.map +1 -1
  336. package/resources/websites.d.ts.map +1 -1
  337. package/resources/websites.js +15 -2
  338. package/resources/websites.js.map +1 -1
  339. package/resources.d.ts.map +1 -1
  340. package/resources.js +15 -2
  341. package/resources.js.map +1 -1
  342. package/shims/node.d.ts +30 -0
  343. package/shims/node.d.ts.map +1 -0
  344. package/shims/node.js +31 -0
  345. package/shims/node.js.map +1 -0
  346. package/shims/node.mjs +5 -0
  347. package/shims/node.mjs.map +1 -0
  348. package/shims/web.d.ts +26 -0
  349. package/shims/web.d.ts.map +1 -0
  350. package/shims/web.js +31 -0
  351. package/shims/web.js.map +1 -0
  352. package/shims/web.mjs +5 -0
  353. package/shims/web.mjs.map +1 -0
  354. package/src/_shims/MultipartBody.ts +9 -0
  355. package/src/_shims/README.md +46 -0
  356. package/src/_shims/auto/runtime-bun.ts +4 -0
  357. package/src/_shims/auto/runtime-node.ts +4 -0
  358. package/src/_shims/auto/runtime.ts +4 -0
  359. package/src/_shims/auto/types-node.ts +4 -0
  360. package/src/_shims/auto/types.d.ts +101 -0
  361. package/src/_shims/auto/types.js +3 -0
  362. package/src/_shims/auto/types.mjs +3 -0
  363. package/src/_shims/bun-runtime.ts +14 -0
  364. package/src/_shims/index.d.ts +83 -0
  365. package/src/_shims/index.js +17 -0
  366. package/src/_shims/index.mjs +11 -0
  367. package/src/_shims/manual-types.d.ts +12 -0
  368. package/src/_shims/manual-types.js +3 -0
  369. package/src/_shims/manual-types.mjs +3 -0
  370. package/src/_shims/node-runtime.ts +81 -0
  371. package/src/_shims/node-types.d.ts +42 -0
  372. package/src/_shims/node-types.js +3 -0
  373. package/src/_shims/node-types.mjs +3 -0
  374. package/src/_shims/registry.ts +67 -0
  375. package/src/_shims/web-runtime.ts +103 -0
  376. package/src/_shims/web-types.d.ts +83 -0
  377. package/src/_shims/web-types.js +3 -0
  378. package/src/_shims/web-types.mjs +3 -0
  379. package/src/core.ts +1243 -0
  380. package/src/error.ts +130 -2
  381. package/src/index.ts +342 -5
  382. package/src/internal/qs/formats.ts +1 -2
  383. package/src/internal/qs/stringify.ts +20 -17
  384. package/src/internal/qs/utils.ts +14 -14
  385. package/src/resource.ts +11 -2
  386. package/src/resources/assets.ts +6 -4
  387. package/src/resources/auctions/auctions.ts +17 -9
  388. package/src/resources/auctions/website-user-attributes/values.ts +4 -5
  389. package/src/resources/auctions/website-user-attributes/website-user-attributes.ts +20 -13
  390. package/src/resources/auth.ts +107 -8
  391. package/src/resources/index.ts +7 -1
  392. package/src/resources/loyalty/account-streaks.ts +4 -5
  393. package/src/resources/loyalty/accounts.ts +14 -10
  394. package/src/resources/loyalty/badges.ts +53 -22
  395. package/src/resources/loyalty/currencies.ts +4 -5
  396. package/src/resources/loyalty/loyalty.ts +1 -1
  397. package/src/resources/loyalty/multipliers.ts +35 -19
  398. package/src/resources/loyalty/questions-responses.ts +16 -8
  399. package/src/resources/loyalty/questions.ts +7 -9
  400. package/src/resources/loyalty/rule-edits.ts +6 -8
  401. package/src/resources/loyalty/rule-groups.ts +34 -15
  402. package/src/resources/loyalty/rules.ts +56 -22
  403. package/src/resources/loyalty/transactions/posts.ts +17 -9
  404. package/src/resources/loyalty/transactions/rule-statuses.ts +15 -7
  405. package/src/resources/loyalty/transactions/transactions.ts +24 -14
  406. package/src/resources/minting/allowlist.ts +7 -5
  407. package/src/resources/minting/contracts.ts +12 -7
  408. package/src/resources/minting/minting.ts +8 -6
  409. package/src/resources/minting/status.ts +10 -8
  410. package/src/resources/referral/referral.ts +4 -5
  411. package/src/resources/referral/users.ts +12 -7
  412. package/src/resources/token-claims.ts +39 -26
  413. package/src/resources/users/metadatas.ts +19 -9
  414. package/src/resources/users/users.ts +30 -11
  415. package/src/resources/websites/website-collections.ts +6 -8
  416. package/src/resources/websites/website-user-roles.ts +8 -6
  417. package/src/resources/websites/websites.ts +12 -7
  418. package/src/shims/node.ts +50 -0
  419. package/src/shims/web.ts +50 -0
  420. package/src/tsconfig.json +2 -2
  421. package/src/uploads.ts +255 -2
  422. package/src/version.ts +1 -1
  423. package/uploads.d.ts +74 -1
  424. package/uploads.d.ts.map +1 -1
  425. package/uploads.js +168 -3
  426. package/uploads.js.map +1 -1
  427. package/uploads.mjs +157 -1
  428. package/uploads.mjs.map +1 -1
  429. package/version.d.ts +1 -1
  430. package/version.js +1 -1
  431. package/version.mjs +1 -1
  432. package/api-promise.d.mts +0 -2
  433. package/api-promise.d.mts.map +0 -1
  434. package/api-promise.d.ts +0 -2
  435. package/api-promise.d.ts.map +0 -1
  436. package/api-promise.js +0 -6
  437. package/api-promise.js.map +0 -1
  438. package/api-promise.mjs +0 -2
  439. package/api-promise.mjs.map +0 -1
  440. package/client.d.mts +0 -202
  441. package/client.d.mts.map +0 -1
  442. package/client.d.ts +0 -202
  443. package/client.d.ts.map +0 -1
  444. package/client.js +0 -478
  445. package/client.js.map +0 -1
  446. package/client.mjs +0 -474
  447. package/client.mjs.map +0 -1
  448. package/core/api-promise.d.mts +0 -46
  449. package/core/api-promise.d.mts.map +0 -1
  450. package/core/api-promise.d.ts +0 -46
  451. package/core/api-promise.d.ts.map +0 -1
  452. package/core/api-promise.js +0 -74
  453. package/core/api-promise.js.map +0 -1
  454. package/core/api-promise.mjs +0 -70
  455. package/core/api-promise.mjs.map +0 -1
  456. package/core/error.d.mts +0 -46
  457. package/core/error.d.mts.map +0 -1
  458. package/core/error.d.ts +0 -46
  459. package/core/error.d.ts.map +0 -1
  460. package/core/error.js +0 -113
  461. package/core/error.js.map +0 -1
  462. package/core/error.mjs +0 -97
  463. package/core/error.mjs.map +0 -1
  464. package/core/resource.d.mts +0 -6
  465. package/core/resource.d.mts.map +0 -1
  466. package/core/resource.d.ts +0 -6
  467. package/core/resource.d.ts.map +0 -1
  468. package/core/resource.js +0 -11
  469. package/core/resource.js.map +0 -1
  470. package/core/resource.mjs +0 -7
  471. package/core/resource.mjs.map +0 -1
  472. package/core/uploads.d.mts +0 -3
  473. package/core/uploads.d.mts.map +0 -1
  474. package/core/uploads.d.ts +0 -3
  475. package/core/uploads.d.ts.map +0 -1
  476. package/core/uploads.js +0 -6
  477. package/core/uploads.js.map +0 -1
  478. package/core/uploads.mjs +0 -2
  479. package/core/uploads.mjs.map +0 -1
  480. package/error.d.mts +0 -2
  481. package/error.d.mts.map +0 -1
  482. package/index.d.mts.map +0 -1
  483. package/internal/builtin-types.d.mts +0 -73
  484. package/internal/builtin-types.d.mts.map +0 -1
  485. package/internal/builtin-types.d.ts +0 -73
  486. package/internal/builtin-types.d.ts.map +0 -1
  487. package/internal/builtin-types.js +0 -4
  488. package/internal/builtin-types.js.map +0 -1
  489. package/internal/builtin-types.mjs +0 -3
  490. package/internal/builtin-types.mjs.map +0 -1
  491. package/internal/detect-platform.d.mts +0 -15
  492. package/internal/detect-platform.d.mts.map +0 -1
  493. package/internal/detect-platform.d.ts +0 -15
  494. package/internal/detect-platform.d.ts.map +0 -1
  495. package/internal/detect-platform.js +0 -162
  496. package/internal/detect-platform.js.map +0 -1
  497. package/internal/detect-platform.mjs +0 -157
  498. package/internal/detect-platform.mjs.map +0 -1
  499. package/internal/errors.d.mts +0 -3
  500. package/internal/errors.d.mts.map +0 -1
  501. package/internal/errors.d.ts +0 -3
  502. package/internal/errors.d.ts.map +0 -1
  503. package/internal/errors.js +0 -41
  504. package/internal/errors.js.map +0 -1
  505. package/internal/errors.mjs +0 -36
  506. package/internal/errors.mjs.map +0 -1
  507. package/internal/headers.d.mts +0 -20
  508. package/internal/headers.d.mts.map +0 -1
  509. package/internal/headers.d.ts +0 -20
  510. package/internal/headers.d.ts.map +0 -1
  511. package/internal/headers.js +0 -79
  512. package/internal/headers.js.map +0 -1
  513. package/internal/headers.mjs +0 -74
  514. package/internal/headers.mjs.map +0 -1
  515. package/internal/parse.d.mts +0 -12
  516. package/internal/parse.d.mts.map +0 -1
  517. package/internal/parse.d.ts +0 -12
  518. package/internal/parse.d.ts.map +0 -1
  519. package/internal/parse.js +0 -40
  520. package/internal/parse.js.map +0 -1
  521. package/internal/parse.mjs +0 -37
  522. package/internal/parse.mjs.map +0 -1
  523. package/internal/qs/formats.d.mts +0 -7
  524. package/internal/qs/formats.d.mts.map +0 -1
  525. package/internal/qs/index.d.mts +0 -10
  526. package/internal/qs/index.d.mts.map +0 -1
  527. package/internal/qs/stringify.d.mts +0 -3
  528. package/internal/qs/stringify.d.mts.map +0 -1
  529. package/internal/qs/types.d.mts +0 -57
  530. package/internal/qs/types.d.mts.map +0 -1
  531. package/internal/qs/utils.d.mts +0 -15
  532. package/internal/qs/utils.d.mts.map +0 -1
  533. package/internal/request-options.d.mts +0 -75
  534. package/internal/request-options.d.mts.map +0 -1
  535. package/internal/request-options.d.ts +0 -75
  536. package/internal/request-options.d.ts.map +0 -1
  537. package/internal/request-options.js +0 -14
  538. package/internal/request-options.js.map +0 -1
  539. package/internal/request-options.mjs +0 -10
  540. package/internal/request-options.mjs.map +0 -1
  541. package/internal/shim-types.d.mts +0 -17
  542. package/internal/shim-types.d.mts.map +0 -1
  543. package/internal/shim-types.d.ts +0 -17
  544. package/internal/shim-types.d.ts.map +0 -1
  545. package/internal/shim-types.js +0 -4
  546. package/internal/shim-types.js.map +0 -1
  547. package/internal/shim-types.mjs +0 -3
  548. package/internal/shim-types.mjs.map +0 -1
  549. package/internal/shims.d.mts +0 -20
  550. package/internal/shims.d.mts.map +0 -1
  551. package/internal/shims.d.ts +0 -20
  552. package/internal/shims.d.ts.map +0 -1
  553. package/internal/shims.js +0 -92
  554. package/internal/shims.js.map +0 -1
  555. package/internal/shims.mjs +0 -85
  556. package/internal/shims.mjs.map +0 -1
  557. package/internal/to-file.d.mts +0 -45
  558. package/internal/to-file.d.mts.map +0 -1
  559. package/internal/to-file.d.ts +0 -45
  560. package/internal/to-file.d.ts.map +0 -1
  561. package/internal/to-file.js +0 -91
  562. package/internal/to-file.js.map +0 -1
  563. package/internal/to-file.mjs +0 -88
  564. package/internal/to-file.mjs.map +0 -1
  565. package/internal/tslib.js +0 -81
  566. package/internal/tslib.mjs +0 -17
  567. package/internal/types.d.mts +0 -69
  568. package/internal/types.d.mts.map +0 -1
  569. package/internal/types.d.ts +0 -69
  570. package/internal/types.d.ts.map +0 -1
  571. package/internal/types.js +0 -4
  572. package/internal/types.js.map +0 -1
  573. package/internal/types.mjs +0 -3
  574. package/internal/types.mjs.map +0 -1
  575. package/internal/uploads.d.mts +0 -42
  576. package/internal/uploads.d.mts.map +0 -1
  577. package/internal/uploads.d.ts +0 -42
  578. package/internal/uploads.d.ts.map +0 -1
  579. package/internal/uploads.js +0 -141
  580. package/internal/uploads.js.map +0 -1
  581. package/internal/uploads.mjs +0 -131
  582. package/internal/uploads.mjs.map +0 -1
  583. package/internal/utils/base64.d.mts +0 -3
  584. package/internal/utils/base64.d.mts.map +0 -1
  585. package/internal/utils/base64.d.ts +0 -3
  586. package/internal/utils/base64.d.ts.map +0 -1
  587. package/internal/utils/base64.js +0 -38
  588. package/internal/utils/base64.js.map +0 -1
  589. package/internal/utils/base64.mjs +0 -33
  590. package/internal/utils/base64.mjs.map +0 -1
  591. package/internal/utils/bytes.d.mts +0 -4
  592. package/internal/utils/bytes.d.mts.map +0 -1
  593. package/internal/utils/bytes.d.ts +0 -4
  594. package/internal/utils/bytes.d.ts.map +0 -1
  595. package/internal/utils/bytes.js +0 -31
  596. package/internal/utils/bytes.js.map +0 -1
  597. package/internal/utils/bytes.mjs +0 -26
  598. package/internal/utils/bytes.mjs.map +0 -1
  599. package/internal/utils/env.d.mts +0 -9
  600. package/internal/utils/env.d.mts.map +0 -1
  601. package/internal/utils/env.d.ts +0 -9
  602. package/internal/utils/env.d.ts.map +0 -1
  603. package/internal/utils/env.js +0 -22
  604. package/internal/utils/env.js.map +0 -1
  605. package/internal/utils/env.mjs +0 -18
  606. package/internal/utils/env.mjs.map +0 -1
  607. package/internal/utils/log.d.mts +0 -37
  608. package/internal/utils/log.d.mts.map +0 -1
  609. package/internal/utils/log.d.ts +0 -37
  610. package/internal/utils/log.d.ts.map +0 -1
  611. package/internal/utils/log.js +0 -86
  612. package/internal/utils/log.js.map +0 -1
  613. package/internal/utils/log.mjs +0 -80
  614. package/internal/utils/log.mjs.map +0 -1
  615. package/internal/utils/path.d.mts +0 -15
  616. package/internal/utils/path.d.mts.map +0 -1
  617. package/internal/utils/path.d.ts +0 -15
  618. package/internal/utils/path.d.ts.map +0 -1
  619. package/internal/utils/path.js +0 -79
  620. package/internal/utils/path.js.map +0 -1
  621. package/internal/utils/path.mjs +0 -74
  622. package/internal/utils/path.mjs.map +0 -1
  623. package/internal/utils/sleep.d.mts +0 -2
  624. package/internal/utils/sleep.d.mts.map +0 -1
  625. package/internal/utils/sleep.d.ts +0 -2
  626. package/internal/utils/sleep.d.ts.map +0 -1
  627. package/internal/utils/sleep.js +0 -7
  628. package/internal/utils/sleep.js.map +0 -1
  629. package/internal/utils/sleep.mjs +0 -3
  630. package/internal/utils/sleep.mjs.map +0 -1
  631. package/internal/utils/uuid.d.mts +0 -5
  632. package/internal/utils/uuid.d.mts.map +0 -1
  633. package/internal/utils/uuid.d.ts +0 -5
  634. package/internal/utils/uuid.d.ts.map +0 -1
  635. package/internal/utils/uuid.js +0 -19
  636. package/internal/utils/uuid.js.map +0 -1
  637. package/internal/utils/uuid.mjs +0 -15
  638. package/internal/utils/uuid.mjs.map +0 -1
  639. package/internal/utils/values.d.mts +0 -18
  640. package/internal/utils/values.d.mts.map +0 -1
  641. package/internal/utils/values.d.ts +0 -18
  642. package/internal/utils/values.d.ts.map +0 -1
  643. package/internal/utils/values.js +0 -112
  644. package/internal/utils/values.js.map +0 -1
  645. package/internal/utils/values.mjs +0 -94
  646. package/internal/utils/values.mjs.map +0 -1
  647. package/internal/utils.d.mts +0 -7
  648. package/internal/utils.d.mts.map +0 -1
  649. package/internal/utils.d.ts +0 -7
  650. package/internal/utils.d.ts.map +0 -1
  651. package/internal/utils.js +0 -11
  652. package/internal/utils.js.map +0 -1
  653. package/internal/utils.mjs +0 -8
  654. package/internal/utils.mjs.map +0 -1
  655. package/resource.d.mts +0 -2
  656. package/resource.d.mts.map +0 -1
  657. package/resources/assets.d.mts +0 -65
  658. package/resources/assets.d.mts.map +0 -1
  659. package/resources/auctions/auctions.d.mts +0 -368
  660. package/resources/auctions/auctions.d.mts.map +0 -1
  661. package/resources/auctions/index.d.mts +0 -3
  662. package/resources/auctions/index.d.mts.map +0 -1
  663. package/resources/auctions/website-user-attributes/index.d.mts +0 -3
  664. package/resources/auctions/website-user-attributes/index.d.mts.map +0 -1
  665. package/resources/auctions/website-user-attributes/values.d.mts +0 -127
  666. package/resources/auctions/website-user-attributes/values.d.mts.map +0 -1
  667. package/resources/auctions/website-user-attributes/website-user-attributes.d.mts +0 -136
  668. package/resources/auctions/website-user-attributes/website-user-attributes.d.mts.map +0 -1
  669. package/resources/auctions/website-user-attributes.d.mts +0 -2
  670. package/resources/auctions/website-user-attributes.d.mts.map +0 -1
  671. package/resources/auctions.d.mts +0 -2
  672. package/resources/auctions.d.mts.map +0 -1
  673. package/resources/auth.d.mts +0 -53
  674. package/resources/auth.d.mts.map +0 -1
  675. package/resources/index.d.mts +0 -10
  676. package/resources/index.d.mts.map +0 -1
  677. package/resources/loyalty/account-streaks.d.mts +0 -97
  678. package/resources/loyalty/account-streaks.d.mts.map +0 -1
  679. package/resources/loyalty/accounts.d.mts +0 -238
  680. package/resources/loyalty/accounts.d.mts.map +0 -1
  681. package/resources/loyalty/badges.d.mts +0 -1398
  682. package/resources/loyalty/badges.d.mts.map +0 -1
  683. package/resources/loyalty/currencies.d.mts +0 -272
  684. package/resources/loyalty/currencies.d.mts.map +0 -1
  685. package/resources/loyalty/index.d.mts +0 -13
  686. package/resources/loyalty/index.d.mts.map +0 -1
  687. package/resources/loyalty/loyalty.d.mts +0 -50
  688. package/resources/loyalty/loyalty.d.mts.map +0 -1
  689. package/resources/loyalty/multipliers.d.mts +0 -221
  690. package/resources/loyalty/multipliers.d.mts.map +0 -1
  691. package/resources/loyalty/questions-responses.d.mts +0 -148
  692. package/resources/loyalty/questions-responses.d.mts.map +0 -1
  693. package/resources/loyalty/questions.d.mts +0 -205
  694. package/resources/loyalty/questions.d.mts.map +0 -1
  695. package/resources/loyalty/rule-edits.d.mts +0 -3165
  696. package/resources/loyalty/rule-edits.d.mts.map +0 -1
  697. package/resources/loyalty/rule-groups.d.mts +0 -826
  698. package/resources/loyalty/rule-groups.d.mts.map +0 -1
  699. package/resources/loyalty/rules.d.mts +0 -4543
  700. package/resources/loyalty/rules.d.mts.map +0 -1
  701. package/resources/loyalty/transactions/index.d.mts +0 -4
  702. package/resources/loyalty/transactions/index.d.mts.map +0 -1
  703. package/resources/loyalty/transactions/posts.d.mts +0 -145
  704. package/resources/loyalty/transactions/posts.d.mts.map +0 -1
  705. package/resources/loyalty/transactions/rule-statuses.d.mts +0 -121
  706. package/resources/loyalty/transactions/rule-statuses.d.mts.map +0 -1
  707. package/resources/loyalty/transactions/transactions.d.mts +0 -564
  708. package/resources/loyalty/transactions/transactions.d.mts.map +0 -1
  709. package/resources/loyalty/transactions.d.mts +0 -2
  710. package/resources/loyalty/transactions.d.mts.map +0 -1
  711. package/resources/loyalty.d.mts +0 -2
  712. package/resources/loyalty.d.mts.map +0 -1
  713. package/resources/minting/allowlist.d.mts +0 -85
  714. package/resources/minting/allowlist.d.mts.map +0 -1
  715. package/resources/minting/contracts.d.mts +0 -165
  716. package/resources/minting/contracts.d.mts.map +0 -1
  717. package/resources/minting/index.d.mts +0 -5
  718. package/resources/minting/index.d.mts.map +0 -1
  719. package/resources/minting/minting.d.mts +0 -143
  720. package/resources/minting/minting.d.mts.map +0 -1
  721. package/resources/minting/status.d.mts +0 -45
  722. package/resources/minting/status.d.mts.map +0 -1
  723. package/resources/minting.d.mts +0 -2
  724. package/resources/minting.d.mts.map +0 -1
  725. package/resources/referral/index.d.mts +0 -3
  726. package/resources/referral/index.d.mts.map +0 -1
  727. package/resources/referral/referral.d.mts +0 -41
  728. package/resources/referral/referral.d.mts.map +0 -1
  729. package/resources/referral/users.d.mts +0 -84
  730. package/resources/referral/users.d.mts.map +0 -1
  731. package/resources/referral.d.mts +0 -2
  732. package/resources/referral.d.mts.map +0 -1
  733. package/resources/token-claims.d.mts +0 -159
  734. package/resources/token-claims.d.mts.map +0 -1
  735. package/resources/users/index.d.mts +0 -3
  736. package/resources/users/index.d.mts.map +0 -1
  737. package/resources/users/metadatas.d.mts +0 -174
  738. package/resources/users/metadatas.d.mts.map +0 -1
  739. package/resources/users/users.d.mts +0 -465
  740. package/resources/users/users.d.mts.map +0 -1
  741. package/resources/users.d.mts +0 -2
  742. package/resources/users.d.mts.map +0 -1
  743. package/resources/websites/index.d.mts +0 -4
  744. package/resources/websites/index.d.mts.map +0 -1
  745. package/resources/websites/website-collections.d.mts +0 -95
  746. package/resources/websites/website-collections.d.mts.map +0 -1
  747. package/resources/websites/website-user-roles.d.mts +0 -97
  748. package/resources/websites/website-user-roles.d.mts.map +0 -1
  749. package/resources/websites/websites.d.mts +0 -329
  750. package/resources/websites/websites.d.mts.map +0 -1
  751. package/resources/websites.d.mts +0 -2
  752. package/resources/websites.d.mts.map +0 -1
  753. package/resources.d.mts +0 -2
  754. package/resources.d.mts.map +0 -1
  755. package/src/api-promise.ts +0 -2
  756. package/src/client.ts +0 -868
  757. package/src/core/README.md +0 -3
  758. package/src/core/api-promise.ts +0 -92
  759. package/src/core/error.ts +0 -130
  760. package/src/core/resource.ts +0 -11
  761. package/src/core/uploads.ts +0 -2
  762. package/src/internal/README.md +0 -3
  763. package/src/internal/builtin-types.ts +0 -93
  764. package/src/internal/detect-platform.ts +0 -196
  765. package/src/internal/errors.ts +0 -33
  766. package/src/internal/headers.ts +0 -97
  767. package/src/internal/parse.ts +0 -56
  768. package/src/internal/request-options.ts +0 -91
  769. package/src/internal/shim-types.ts +0 -26
  770. package/src/internal/shims.ts +0 -107
  771. package/src/internal/to-file.ts +0 -154
  772. package/src/internal/types.ts +0 -95
  773. package/src/internal/uploads.ts +0 -187
  774. package/src/internal/utils/base64.ts +0 -40
  775. package/src/internal/utils/bytes.ts +0 -32
  776. package/src/internal/utils/env.ts +0 -18
  777. package/src/internal/utils/log.ts +0 -127
  778. package/src/internal/utils/path.ts +0 -88
  779. package/src/internal/utils/sleep.ts +0 -3
  780. package/src/internal/utils/uuid.ts +0 -17
  781. package/src/internal/utils/values.ts +0 -105
  782. package/src/internal/utils.ts +0 -8
  783. package/uploads.d.mts +0 -2
  784. package/uploads.d.mts.map +0 -1
  785. package/version.d.mts +0 -2
  786. package/version.d.mts.map +0 -1
@@ -1,94 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { SnagSolutionsError } from "../../core/error.mjs";
3
- // https://url.spec.whatwg.org/#url-scheme-string
4
- const startsWithSchemeRegexp = /^[a-z][a-z0-9+.-]*:/i;
5
- export const isAbsoluteURL = (url) => {
6
- return startsWithSchemeRegexp.test(url);
7
- };
8
- export let isArray = (val) => ((isArray = Array.isArray), isArray(val));
9
- export let isReadonlyArray = isArray;
10
- /** Returns an object if the given value isn't an object, otherwise returns as-is */
11
- export function maybeObj(x) {
12
- if (typeof x !== 'object') {
13
- return {};
14
- }
15
- return x ?? {};
16
- }
17
- // https://stackoverflow.com/a/34491287
18
- export function isEmptyObj(obj) {
19
- if (!obj)
20
- return true;
21
- for (const _k in obj)
22
- return false;
23
- return true;
24
- }
25
- // https://eslint.org/docs/latest/rules/no-prototype-builtins
26
- export function hasOwn(obj, key) {
27
- return Object.prototype.hasOwnProperty.call(obj, key);
28
- }
29
- export function isObj(obj) {
30
- return obj != null && typeof obj === 'object' && !Array.isArray(obj);
31
- }
32
- export const ensurePresent = (value) => {
33
- if (value == null) {
34
- throw new SnagSolutionsError(`Expected a value to be given but received ${value} instead.`);
35
- }
36
- return value;
37
- };
38
- export const validatePositiveInteger = (name, n) => {
39
- if (typeof n !== 'number' || !Number.isInteger(n)) {
40
- throw new SnagSolutionsError(`${name} must be an integer`);
41
- }
42
- if (n < 0) {
43
- throw new SnagSolutionsError(`${name} must be a positive integer`);
44
- }
45
- return n;
46
- };
47
- export const coerceInteger = (value) => {
48
- if (typeof value === 'number')
49
- return Math.round(value);
50
- if (typeof value === 'string')
51
- return parseInt(value, 10);
52
- throw new SnagSolutionsError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
53
- };
54
- export const coerceFloat = (value) => {
55
- if (typeof value === 'number')
56
- return value;
57
- if (typeof value === 'string')
58
- return parseFloat(value);
59
- throw new SnagSolutionsError(`Could not coerce ${value} (type: ${typeof value}) into a number`);
60
- };
61
- export const coerceBoolean = (value) => {
62
- if (typeof value === 'boolean')
63
- return value;
64
- if (typeof value === 'string')
65
- return value === 'true';
66
- return Boolean(value);
67
- };
68
- export const maybeCoerceInteger = (value) => {
69
- if (value == null) {
70
- return undefined;
71
- }
72
- return coerceInteger(value);
73
- };
74
- export const maybeCoerceFloat = (value) => {
75
- if (value == null) {
76
- return undefined;
77
- }
78
- return coerceFloat(value);
79
- };
80
- export const maybeCoerceBoolean = (value) => {
81
- if (value == null) {
82
- return undefined;
83
- }
84
- return coerceBoolean(value);
85
- };
86
- export const safeJSON = (text) => {
87
- try {
88
- return JSON.parse(text);
89
- }
90
- catch (err) {
91
- return undefined;
92
- }
93
- };
94
- //# sourceMappingURL=values.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"values.mjs","sourceRoot":"","sources":["../../src/internal/utils/values.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,kBAAkB,EAAE;AAE7B,iDAAiD;AACjD,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAEtD,MAAM,CAAC,MAAM,aAAa,GAAG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,OAAO,KAAK,KAAK,MAAM,CAAC;IACvD,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAsB,EAAE;IACvE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,KAAc,EAAsB,EAAE;IACrE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAc,EAAuB,EAAE;IACxE,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAClB,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE;IACvC,IAAI,CAAC;QACH,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;AACH,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export * from "./utils/values.mjs";
2
- export * from "./utils/base64.mjs";
3
- export * from "./utils/env.mjs";
4
- export * from "./utils/log.mjs";
5
- export * from "./utils/uuid.mjs";
6
- export * from "./utils/sleep.mjs";
7
- //# sourceMappingURL=utils.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.mts","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- export * from "./utils/values.js";
2
- export * from "./utils/base64.js";
3
- export * from "./utils/env.js";
4
- export * from "./utils/log.js";
5
- export * from "./utils/uuid.js";
6
- export * from "./utils/sleep.js";
7
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":""}
package/internal/utils.js DELETED
@@ -1,11 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("./tslib.js");
5
- tslib_1.__exportStar(require("./utils/values.js"), exports);
6
- tslib_1.__exportStar(require("./utils/base64.js"), exports);
7
- tslib_1.__exportStar(require("./utils/env.js"), exports);
8
- tslib_1.__exportStar(require("./utils/log.js"), exports);
9
- tslib_1.__exportStar(require("./utils/uuid.js"), exports);
10
- tslib_1.__exportStar(require("./utils/sleep.js"), exports);
11
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B;AAC/B,4DAA+B;AAC/B,yDAA4B;AAC5B,yDAA4B;AAC5B,0DAA6B;AAC7B,2DAA8B"}
@@ -1,8 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./utils/values.mjs";
3
- export * from "./utils/base64.mjs";
4
- export * from "./utils/env.mjs";
5
- export * from "./utils/log.mjs";
6
- export * from "./utils/uuid.mjs";
7
- export * from "./utils/sleep.mjs";
8
- //# sourceMappingURL=utils.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.mjs","sourceRoot":"","sources":["../src/internal/utils.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/resource.d.mts DELETED
@@ -1,2 +0,0 @@
1
- export * from "./core/resource.mjs";
2
- //# sourceMappingURL=resource.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resource.d.mts","sourceRoot":"","sources":["src/resource.ts"],"names":[],"mappings":""}
@@ -1,65 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- export declare class Assets extends APIResource {
5
- /**
6
- * This endpoint enables you to upload a file to the resource. Returns a presigned
7
- * URL and the asset's public URL. Call PUT with the file as the body to upload the
8
- * asset using the presigned URL.
9
- *
10
- * @example
11
- * ```ts
12
- * const response = await client.assets.createAsset({
13
- * fileName: 'example.png',
14
- * fileSize: 1024,
15
- * });
16
- * ```
17
- */
18
- createAsset(body: AssetCreateAssetParams, options?: RequestOptions): APIPromise<AssetCreateAssetResponse>;
19
- }
20
- /**
21
- * Response returned upon successful generation of the signed URL for uploading the
22
- * file.
23
- */
24
- export interface AssetCreateAssetResponse {
25
- /**
26
- * The pre-signed URL to be used for uploading the file.
27
- */
28
- signedUrl: string;
29
- /**
30
- * The URL of the uploaded file.
31
- */
32
- url: string;
33
- }
34
- export interface AssetCreateAssetParams {
35
- /**
36
- * The name of the file, must match the regex pattern (converted to lowercase) and
37
- * have a valid extension.
38
- */
39
- fileName: string;
40
- /**
41
- * Size of the file in bytes. Uploaded file must match this file size. 1mb for
42
- * images and 10mb for videos.
43
- */
44
- fileSize: number;
45
- /**
46
- * The file path, must be a valid enum value.
47
- */
48
- filePath?: 'images' | 'videos' | 'banners' | 'fonts' | 'posts' | 'profiles' | 'minting' | 'loyalty' | 'tokenClaims';
49
- /**
50
- * UUID of the organization (optional, converted to lowercase)
51
- */
52
- organizationId?: string;
53
- /**
54
- * UUID of the user (optional, converted to lowercase)
55
- */
56
- userId?: string;
57
- /**
58
- * UUID of the website (optional, converted to lowercase)
59
- */
60
- websiteId?: string;
61
- }
62
- export declare namespace Assets {
63
- export { type AssetCreateAssetResponse as AssetCreateAssetResponse, type AssetCreateAssetParams as AssetCreateAssetParams, };
64
- }
65
- //# sourceMappingURL=assets.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assets.d.mts","sourceRoot":"","sources":["../src/resources/assets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,wBAAwB,CAAC;CAG1G;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EACL,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,GACV,SAAS,GACT,SAAS,GACT,aAAa,CAAC;IAElB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -1,368 +0,0 @@
1
- import { APIResource } from "../../core/resource.mjs";
2
- import * as WebsiteUserAttributesAPI from "./website-user-attributes/website-user-attributes.mjs";
3
- import { WebsiteUserAttributeCreateParams, WebsiteUserAttributeCreateResponse, WebsiteUserAttributeDeleteParams, WebsiteUserAttributeDeleteResponse, WebsiteUserAttributeListParams, WebsiteUserAttributeListResponse, WebsiteUserAttributes } from "./website-user-attributes/website-user-attributes.mjs";
4
- import { APIPromise } from "../../core/api-promise.mjs";
5
- import { RequestOptions } from "../../internal/request-options.mjs";
6
- export declare class Auctions extends APIResource {
7
- websiteUserAttributes: WebsiteUserAttributesAPI.WebsiteUserAttributes;
8
- /**
9
- * This endpoint allows you to fetch page sections
10
- *
11
- * @example
12
- * ```ts
13
- * const response = await client.auctions.getPageSections({
14
- * organizationId: '123e4567-e89b-12d3-a456-426614174334',
15
- * placement: 'page',
16
- * websiteId: '123e4567-e89b-12d3-a456-426614174333',
17
- * });
18
- * ```
19
- */
20
- getPageSections(query: AuctionGetPageSectionsParams, options?: RequestOptions): APIPromise<AuctionGetPageSectionsResponse>;
21
- /**
22
- * Returns a list of auction bids with optional filtering and pagination.
23
- *
24
- * @example
25
- * ```ts
26
- * const response = await client.auctions.listAuctionBids();
27
- * ```
28
- */
29
- listAuctionBids(query?: AuctionListAuctionBidsParams | null | undefined, options?: RequestOptions): APIPromise<AuctionListAuctionBidsResponse>;
30
- /**
31
- * Returns a list of auctions with optional filtering and pagination.
32
- *
33
- * @example
34
- * ```ts
35
- * const response = await client.auctions.listAuctions();
36
- * ```
37
- */
38
- listAuctions(options?: RequestOptions): APIPromise<AuctionListAuctionsResponse>;
39
- }
40
- export interface AuctionGetPageSectionsResponse {
41
- /**
42
- * Unique identifier for the page section
43
- */
44
- id: string;
45
- /**
46
- * Start time of the page section visibility
47
- */
48
- durationStart: string;
49
- /**
50
- * Unique identifier for the organization
51
- */
52
- organizationId: string;
53
- /**
54
- * Placement of the page section
55
- */
56
- placement: 'global' | 'page';
57
- /**
58
- * Unique identifier for the website
59
- */
60
- websiteId: string;
61
- banner?: AuctionGetPageSectionsResponse.Banner | null;
62
- discoveryItems?: Array<AuctionGetPageSectionsResponse.DiscoveryItem>;
63
- /**
64
- * End time of the page section visibility
65
- */
66
- durationEnd?: string | null;
67
- itemsGrids?: Array<AuctionGetPageSectionsResponse.ItemsGrid>;
68
- /**
69
- * ID of the page this section belongs to
70
- */
71
- pageId?: string;
72
- /**
73
- * Type of the page section
74
- */
75
- pageSectionType?: 'all_items' | 'discovery_item' | 'discovery_items_grid' | null;
76
- /**
77
- * Order of the page section
78
- */
79
- sortId?: number;
80
- /**
81
- * Title of the page section
82
- */
83
- title?: string | null;
84
- }
85
- export declare namespace AuctionGetPageSectionsResponse {
86
- interface Banner {
87
- id: string;
88
- websiteCollectionBanners: Array<Banner.WebsiteCollectionBanner>;
89
- carousel?: Banner.Carousel | null;
90
- }
91
- namespace Banner {
92
- interface WebsiteCollectionBanner {
93
- id: string;
94
- websiteCollectionId: string;
95
- }
96
- interface Carousel {
97
- id: string;
98
- carouselItems: Array<Carousel.CarouselItem>;
99
- }
100
- namespace Carousel {
101
- interface CarouselItem {
102
- id: string;
103
- sortId: number;
104
- }
105
- }
106
- }
107
- interface DiscoveryItem {
108
- id: string;
109
- title: string;
110
- buttonText?: string | null;
111
- description?: string | null;
112
- externalLink?: string | null;
113
- hideQuestInfo?: boolean;
114
- layout?: 'container_style' | 'full_width_hero' | null;
115
- loyaltyRuleGroupId?: string | null;
116
- loyaltySection?: string | null;
117
- mediaLink?: string | null;
118
- pageMediaLink?: string | null;
119
- sortId?: number;
120
- twitter?: string | null;
121
- website?: string | null;
122
- }
123
- interface ItemsGrid {
124
- id: string;
125
- websiteCollection: ItemsGrid.WebsiteCollection;
126
- }
127
- namespace ItemsGrid {
128
- interface WebsiteCollection {
129
- id: string;
130
- mintingContractId?: string | null;
131
- }
132
- }
133
- }
134
- export interface AuctionListAuctionBidsResponse {
135
- data: Array<AuctionListAuctionBidsResponse.Data>;
136
- /**
137
- * Indicates if there is a next page of results
138
- */
139
- hasNextPage: boolean;
140
- /**
141
- * Total count of matching bids (only present when includeCount=true)
142
- */
143
- count?: number;
144
- }
145
- export declare namespace AuctionListAuctionBidsResponse {
146
- /**
147
- * Schema for a get auction bids response
148
- */
149
- interface Data {
150
- id: string;
151
- auction: Data.Auction | null;
152
- auctionId: string;
153
- auctionItem: Data.AuctionItem | null;
154
- auctionItemId: string | null;
155
- currencyAddress: string | null;
156
- currencyDecimals: number;
157
- loyaltyCurrency: Data.LoyaltyCurrency | null;
158
- status: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
159
- updatedAt: string;
160
- user: Data.User;
161
- amount?: unknown;
162
- }
163
- namespace Data {
164
- interface Auction {
165
- id: string;
166
- name: string;
167
- }
168
- interface AuctionItem {
169
- id: string;
170
- mintingContractAsset: AuctionItem.MintingContractAsset | null;
171
- quantity: number;
172
- }
173
- namespace AuctionItem {
174
- interface MintingContractAsset {
175
- id: string;
176
- isPhygitalItem: boolean;
177
- revealedAt: string | null;
178
- tokenId: number | null;
179
- shippingPrice?: unknown;
180
- }
181
- }
182
- interface LoyaltyCurrency {
183
- id: string;
184
- apiAuthKey: string | null;
185
- apiAuthType: 'none' | 'basic' | 'bearer' | 'apiKey' | null;
186
- apiAuthValue: string | null;
187
- apiGetTransactionEntryUrl: string | null;
188
- apiGetUrl: string | null;
189
- apiPostUrl: string | null;
190
- decimals: number;
191
- imageUrl: string | null;
192
- name: string;
193
- symbol: string;
194
- }
195
- interface User {
196
- id: string;
197
- walletAddress: string;
198
- }
199
- }
200
- }
201
- /**
202
- * Schema for the response when fetching auctions
203
- */
204
- export interface AuctionListAuctionsResponse {
205
- data: Array<AuctionListAuctionsResponse.Data>;
206
- hasNextPage: boolean;
207
- }
208
- export declare namespace AuctionListAuctionsResponse {
209
- interface Data {
210
- id: string;
211
- auctionBids: Array<Data.AuctionBid>;
212
- auctionItems: Array<Data.AuctionItem>;
213
- biddersOwnCollectionAddresses: Array<string>;
214
- createdAt: string;
215
- currencyAddress: string | null;
216
- currencyDecimals: number;
217
- deletedAt: string | null;
218
- description: string;
219
- endsAt: string;
220
- extendedDurationInSeconds: number | null;
221
- hideBids: boolean;
222
- /**
223
- * Schema representing a loyalty currency
224
- */
225
- loyaltyCurrency: Data.LoyaltyCurrency | null;
226
- loyaltyCurrencyId: string | null;
227
- minBidAmount: string;
228
- minBidIncrement: string | null;
229
- mintingContractId: string;
230
- name: string;
231
- network: 'ethereum' | 'zksync' | null;
232
- organizationId: string;
233
- reservePrice: string | null;
234
- signature: string;
235
- startsAt: string;
236
- status: 'in_progress' | 'completed' | 'cancelled';
237
- type: 'first_price' | 'second_price' | 'english';
238
- updatedAt: string;
239
- userId: string;
240
- websiteId: string;
241
- }
242
- namespace Data {
243
- /**
244
- * Schema representing an auction bid
245
- */
246
- interface AuctionBid {
247
- id: string;
248
- amount: string;
249
- createdAt: string;
250
- }
251
- interface AuctionItem {
252
- id: string;
253
- /**
254
- * Schema representing a minting contract asset
255
- */
256
- mintingContractAsset: AuctionItem.MintingContractAsset;
257
- quantity: number;
258
- sortId: number;
259
- }
260
- namespace AuctionItem {
261
- /**
262
- * Schema representing a minting contract asset
263
- */
264
- interface MintingContractAsset {
265
- id: string;
266
- }
267
- }
268
- /**
269
- * Schema representing a loyalty currency
270
- */
271
- interface LoyaltyCurrency {
272
- id: string;
273
- decimals: number;
274
- imageUrl: string | null;
275
- name: string;
276
- symbol: string;
277
- }
278
- }
279
- }
280
- export interface AuctionGetPageSectionsParams {
281
- /**
282
- * Unique identifier for the organization to filter by
283
- */
284
- organizationId: string;
285
- /**
286
- * Placement of the page section
287
- */
288
- placement: 'global' | 'page';
289
- /**
290
- * Unique identifier for the website to filter by
291
- */
292
- websiteId: string;
293
- /**
294
- * Whether to get all sections regardless of duration
295
- */
296
- all?: '1';
297
- /**
298
- * Unique identifier for the page to filter by
299
- */
300
- pageId?: string;
301
- /**
302
- * Type of the page section to filter by
303
- */
304
- pageSectionType?: 'all_items' | 'discovery_item' | 'discovery_items_grid' | null;
305
- /**
306
- * Unique identifier for the website collection to filter by
307
- */
308
- websiteCollectionId?: string;
309
- }
310
- export interface AuctionListAuctionBidsParams {
311
- /**
312
- * The bid ID(s) - accepts a single ID or an array of IDs
313
- */
314
- id?: string | Array<string> | unknown;
315
- /**
316
- * ID of the auction
317
- */
318
- auctionId?: string;
319
- /**
320
- * Include total count of matching bids in response
321
- */
322
- includeCount?: boolean | null;
323
- /**
324
- * Maximum number of bids to return
325
- */
326
- limit?: number;
327
- /**
328
- * Order bids by amount (ascending or descending). Defaults to desc.
329
- */
330
- orderBy?: 'asc' | 'desc';
331
- /**
332
- * ID of the organization
333
- */
334
- organizationId?: string;
335
- /**
336
- * Number of bids to skip (for offset-based pagination)
337
- */
338
- skip?: number | null;
339
- /**
340
- * Pagination cursor to start after a specific bid ID
341
- */
342
- startingAfter?: string;
343
- /**
344
- * Status of the bid
345
- */
346
- status?: 'submitted' | 'accepted' | 'rejected' | 'fulfilled';
347
- /**
348
- * Filter by multiple bid statuses (OR condition)
349
- */
350
- statuses?: Array<'submitted' | 'accepted' | 'rejected' | 'fulfilled'>;
351
- /**
352
- * ID of the user who made the bid
353
- */
354
- userId?: string;
355
- /**
356
- * Wallet address of the bidder
357
- */
358
- walletAddress?: string;
359
- /**
360
- * ID of the website
361
- */
362
- websiteId?: string;
363
- }
364
- export declare namespace Auctions {
365
- export { type AuctionGetPageSectionsResponse as AuctionGetPageSectionsResponse, type AuctionListAuctionBidsResponse as AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse as AuctionListAuctionsResponse, type AuctionGetPageSectionsParams as AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams as AuctionListAuctionBidsParams, };
366
- export { WebsiteUserAttributes as WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse as WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse as WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse as WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams as WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams as WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams as WebsiteUserAttributeDeleteParams, };
367
- }
368
- //# sourceMappingURL=auctions.d.mts.map
@@ -1 +0,0 @@
1
- {"version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SectionsResponse, type AuctionListAuctionBidsResponse, type AuctionListAuctionsResponse, type AuctionGetPageSectionsParams, type AuctionListAuctionBidsParams, } from "./auctions.mjs";
2
- export { WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams, } from "./website-user-attributes/index.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/auctions/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,GAClC;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC"}
@@ -1,3 +0,0 @@
1
- export { Values, type ValueCreateResponse, type ValueListResponse, type ValueCreateParams, type ValueListParams, } from "./values.mjs";
2
- export { WebsiteUserAttributes, type WebsiteUserAttributeCreateResponse, type WebsiteUserAttributeListResponse, type WebsiteUserAttributeDeleteResponse, type WebsiteUserAttributeCreateParams, type WebsiteUserAttributeListParams, type WebsiteUserAttributeDeleteParams, } from "./website-user-attributes.mjs";
3
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/auctions/website-user-attributes/index.ts"],"names":[],"mappings":"OAEO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,GACtC"}