@crossly/sdk 0.0.0-stage → 0.2.0

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 (651) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +216 -2
  3. package/dist/client.d.ts +61 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +134 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/errors.d.ts +27 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +23 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +310 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +152 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/resources/_shared.d.ts +13 -0
  16. package/dist/resources/_shared.d.ts.map +1 -0
  17. package/dist/resources/_shared.js +2 -0
  18. package/dist/resources/_shared.js.map +1 -0
  19. package/dist/resources/account.d.ts +188 -0
  20. package/dist/resources/account.d.ts.map +1 -0
  21. package/dist/resources/account.js +398 -0
  22. package/dist/resources/account.js.map +1 -0
  23. package/dist/resources/action-log.d.ts +35 -0
  24. package/dist/resources/action-log.d.ts.map +1 -0
  25. package/dist/resources/action-log.js +38 -0
  26. package/dist/resources/action-log.js.map +1 -0
  27. package/dist/resources/ads.d.ts +131 -0
  28. package/dist/resources/ads.d.ts.map +1 -0
  29. package/dist/resources/ads.js +139 -0
  30. package/dist/resources/ads.js.map +1 -0
  31. package/dist/resources/ai-images.d.ts +88 -0
  32. package/dist/resources/ai-images.d.ts.map +1 -0
  33. package/dist/resources/ai-images.js +9 -0
  34. package/dist/resources/ai-images.js.map +1 -0
  35. package/dist/resources/automation.d.ts +148 -0
  36. package/dist/resources/automation.d.ts.map +1 -0
  37. package/dist/resources/automation.js +365 -0
  38. package/dist/resources/automation.js.map +1 -0
  39. package/dist/resources/brand-drops.d.ts +114 -0
  40. package/dist/resources/brand-drops.d.ts.map +1 -0
  41. package/dist/resources/brand-drops.js +57 -0
  42. package/dist/resources/brand-drops.js.map +1 -0
  43. package/dist/resources/buyer/after-purchase.d.ts +288 -0
  44. package/dist/resources/buyer/after-purchase.d.ts.map +1 -0
  45. package/dist/resources/buyer/after-purchase.js +181 -0
  46. package/dist/resources/buyer/after-purchase.js.map +1 -0
  47. package/dist/resources/buyer/audio-summaries.d.ts +21 -0
  48. package/dist/resources/buyer/audio-summaries.d.ts.map +1 -0
  49. package/dist/resources/buyer/audio-summaries.js +21 -0
  50. package/dist/resources/buyer/audio-summaries.js.map +1 -0
  51. package/dist/resources/buyer/basket-sell.d.ts +135 -0
  52. package/dist/resources/buyer/basket-sell.d.ts.map +1 -0
  53. package/dist/resources/buyer/basket-sell.js +49 -0
  54. package/dist/resources/buyer/basket-sell.js.map +1 -0
  55. package/dist/resources/buyer/commerce.d.ts +170 -0
  56. package/dist/resources/buyer/commerce.d.ts.map +1 -0
  57. package/dist/resources/buyer/commerce.js +109 -0
  58. package/dist/resources/buyer/commerce.js.map +1 -0
  59. package/dist/resources/buyer/delivery.d.ts +60 -0
  60. package/dist/resources/buyer/delivery.d.ts.map +1 -0
  61. package/dist/resources/buyer/delivery.js +22 -0
  62. package/dist/resources/buyer/delivery.js.map +1 -0
  63. package/dist/resources/buyer/discover.d.ts +121 -0
  64. package/dist/resources/buyer/discover.d.ts.map +1 -0
  65. package/dist/resources/buyer/discover.js +60 -0
  66. package/dist/resources/buyer/discover.js.map +1 -0
  67. package/dist/resources/buyer/friends-boards-clubs.d.ts +207 -0
  68. package/dist/resources/buyer/friends-boards-clubs.d.ts.map +1 -0
  69. package/dist/resources/buyer/friends-boards-clubs.js +58 -0
  70. package/dist/resources/buyer/friends-boards-clubs.js.map +1 -0
  71. package/dist/resources/buyer/gift-cards.d.ts +101 -0
  72. package/dist/resources/buyer/gift-cards.d.ts.map +1 -0
  73. package/dist/resources/buyer/gift-cards.js +44 -0
  74. package/dist/resources/buyer/gift-cards.js.map +1 -0
  75. package/dist/resources/buyer/lists.d.ts +163 -0
  76. package/dist/resources/buyer/lists.d.ts.map +1 -0
  77. package/dist/resources/buyer/lists.js +153 -0
  78. package/dist/resources/buyer/lists.js.map +1 -0
  79. package/dist/resources/buyer/live-shop.d.ts +171 -0
  80. package/dist/resources/buyer/live-shop.d.ts.map +1 -0
  81. package/dist/resources/buyer/live-shop.js +8 -0
  82. package/dist/resources/buyer/live-shop.js.map +1 -0
  83. package/dist/resources/buyer/packs.d.ts +110 -0
  84. package/dist/resources/buyer/packs.d.ts.map +1 -0
  85. package/dist/resources/buyer/packs.js +38 -0
  86. package/dist/resources/buyer/packs.js.map +1 -0
  87. package/dist/resources/buyer/protection-plans.d.ts +46 -0
  88. package/dist/resources/buyer/protection-plans.d.ts.map +1 -0
  89. package/dist/resources/buyer/protection-plans.js +30 -0
  90. package/dist/resources/buyer/protection-plans.js.map +1 -0
  91. package/dist/resources/buyer/size-memory.d.ts +56 -0
  92. package/dist/resources/buyer/size-memory.d.ts.map +1 -0
  93. package/dist/resources/buyer/size-memory.js +20 -0
  94. package/dist/resources/buyer/size-memory.js.map +1 -0
  95. package/dist/resources/buyer/try-on.d.ts +39 -0
  96. package/dist/resources/buyer/try-on.d.ts.map +1 -0
  97. package/dist/resources/buyer/try-on.js +27 -0
  98. package/dist/resources/buyer/try-on.js.map +1 -0
  99. package/dist/resources/buyer/types.d.ts +166 -0
  100. package/dist/resources/buyer/types.d.ts.map +1 -0
  101. package/dist/resources/buyer/types.js +8 -0
  102. package/dist/resources/buyer/types.js.map +1 -0
  103. package/dist/resources/buyer/vault.d.ts +73 -0
  104. package/dist/resources/buyer/vault.d.ts.map +1 -0
  105. package/dist/resources/buyer/vault.js +30 -0
  106. package/dist/resources/buyer/vault.js.map +1 -0
  107. package/dist/resources/buyer/wave3.d.ts +345 -0
  108. package/dist/resources/buyer/wave3.d.ts.map +1 -0
  109. package/dist/resources/buyer/wave3.js +73 -0
  110. package/dist/resources/buyer/wave3.js.map +1 -0
  111. package/dist/resources/buyer/xmarket-extras.d.ts +189 -0
  112. package/dist/resources/buyer/xmarket-extras.d.ts.map +1 -0
  113. package/dist/resources/buyer/xmarket-extras.js +163 -0
  114. package/dist/resources/buyer/xmarket-extras.js.map +1 -0
  115. package/dist/resources/buyer/xmarket.d.ts +307 -0
  116. package/dist/resources/buyer/xmarket.d.ts.map +1 -0
  117. package/dist/resources/buyer/xmarket.js +150 -0
  118. package/dist/resources/buyer/xmarket.js.map +1 -0
  119. package/dist/resources/buyer.d.ts +466 -0
  120. package/dist/resources/buyer.d.ts.map +1 -0
  121. package/dist/resources/buyer.js +443 -0
  122. package/dist/resources/buyer.js.map +1 -0
  123. package/dist/resources/catalog-lookup.d.ts +49 -0
  124. package/dist/resources/catalog-lookup.d.ts.map +1 -0
  125. package/dist/resources/catalog-lookup.js +45 -0
  126. package/dist/resources/catalog-lookup.js.map +1 -0
  127. package/dist/resources/catalog-matches.d.ts +54 -0
  128. package/dist/resources/catalog-matches.d.ts.map +1 -0
  129. package/dist/resources/catalog-matches.js +49 -0
  130. package/dist/resources/catalog-matches.js.map +1 -0
  131. package/dist/resources/catalog.d.ts +329 -0
  132. package/dist/resources/catalog.d.ts.map +1 -0
  133. package/dist/resources/catalog.js +570 -0
  134. package/dist/resources/catalog.js.map +1 -0
  135. package/dist/resources/cbx/ads.d.ts +119 -0
  136. package/dist/resources/cbx/ads.d.ts.map +1 -0
  137. package/dist/resources/cbx/ads.js +144 -0
  138. package/dist/resources/cbx/ads.js.map +1 -0
  139. package/dist/resources/cbx/credit.d.ts +155 -0
  140. package/dist/resources/cbx/credit.d.ts.map +1 -0
  141. package/dist/resources/cbx/credit.js +178 -0
  142. package/dist/resources/cbx/credit.js.map +1 -0
  143. package/dist/resources/cbx/rewards.d.ts +97 -0
  144. package/dist/resources/cbx/rewards.d.ts.map +1 -0
  145. package/dist/resources/cbx/rewards.js +95 -0
  146. package/dist/resources/cbx/rewards.js.map +1 -0
  147. package/dist/resources/cbx/staking.d.ts +82 -0
  148. package/dist/resources/cbx/staking.d.ts.map +1 -0
  149. package/dist/resources/cbx/staking.js +104 -0
  150. package/dist/resources/cbx/staking.js.map +1 -0
  151. package/dist/resources/cbx/wallet-payments.d.ts +97 -0
  152. package/dist/resources/cbx/wallet-payments.d.ts.map +1 -0
  153. package/dist/resources/cbx/wallet-payments.js +95 -0
  154. package/dist/resources/cbx/wallet-payments.js.map +1 -0
  155. package/dist/resources/cbx.d.ts +311 -0
  156. package/dist/resources/cbx.d.ts.map +1 -0
  157. package/dist/resources/cbx.js +348 -0
  158. package/dist/resources/cbx.js.map +1 -0
  159. package/dist/resources/comms.d.ts +84 -0
  160. package/dist/resources/comms.d.ts.map +1 -0
  161. package/dist/resources/comms.js +247 -0
  162. package/dist/resources/comms.js.map +1 -0
  163. package/dist/resources/cosm/base.d.ts +24 -0
  164. package/dist/resources/cosm/base.d.ts.map +1 -0
  165. package/dist/resources/cosm/base.js +7 -0
  166. package/dist/resources/cosm/base.js.map +1 -0
  167. package/dist/resources/cosm/cosmetics.d.ts +147 -0
  168. package/dist/resources/cosm/cosmetics.d.ts.map +1 -0
  169. package/dist/resources/cosm/cosmetics.js +185 -0
  170. package/dist/resources/cosm/cosmetics.js.map +1 -0
  171. package/dist/resources/cosm/currency.d.ts +154 -0
  172. package/dist/resources/cosm/currency.d.ts.map +1 -0
  173. package/dist/resources/cosm/currency.js +196 -0
  174. package/dist/resources/cosm/currency.js.map +1 -0
  175. package/dist/resources/cosm/designer.d.ts +159 -0
  176. package/dist/resources/cosm/designer.d.ts.map +1 -0
  177. package/dist/resources/cosm/designer.js +167 -0
  178. package/dist/resources/cosm/designer.js.map +1 -0
  179. package/dist/resources/cosm/market.d.ts +111 -0
  180. package/dist/resources/cosm/market.d.ts.map +1 -0
  181. package/dist/resources/cosm/market.js +137 -0
  182. package/dist/resources/cosm/market.js.map +1 -0
  183. package/dist/resources/cosm/types.d.ts +6 -0
  184. package/dist/resources/cosm/types.d.ts.map +1 -0
  185. package/dist/resources/cosm/types.js +6 -0
  186. package/dist/resources/cosm/types.js.map +1 -0
  187. package/dist/resources/cosm.d.ts +46 -0
  188. package/dist/resources/cosm.d.ts.map +1 -0
  189. package/dist/resources/cosm.js +45 -0
  190. package/dist/resources/cosm.js.map +1 -0
  191. package/dist/resources/customers-types.d.ts +89 -0
  192. package/dist/resources/customers-types.d.ts.map +1 -0
  193. package/dist/resources/customers-types.js +7 -0
  194. package/dist/resources/customers-types.js.map +1 -0
  195. package/dist/resources/dao.d.ts +118 -0
  196. package/dist/resources/dao.d.ts.map +1 -0
  197. package/dist/resources/dao.js +120 -0
  198. package/dist/resources/dao.js.map +1 -0
  199. package/dist/resources/devices.d.ts +66 -0
  200. package/dist/resources/devices.d.ts.map +1 -0
  201. package/dist/resources/devices.js +28 -0
  202. package/dist/resources/devices.js.map +1 -0
  203. package/dist/resources/discovery.d.ts +223 -0
  204. package/dist/resources/discovery.d.ts.map +1 -0
  205. package/dist/resources/discovery.js +365 -0
  206. package/dist/resources/discovery.js.map +1 -0
  207. package/dist/resources/drops.d.ts +137 -0
  208. package/dist/resources/drops.d.ts.map +1 -0
  209. package/dist/resources/drops.js +43 -0
  210. package/dist/resources/drops.js.map +1 -0
  211. package/dist/resources/embeds.d.ts +56 -0
  212. package/dist/resources/embeds.d.ts.map +1 -0
  213. package/dist/resources/embeds.js +43 -0
  214. package/dist/resources/embeds.js.map +1 -0
  215. package/dist/resources/evidence.d.ts +28 -0
  216. package/dist/resources/evidence.d.ts.map +1 -0
  217. package/dist/resources/evidence.js +27 -0
  218. package/dist/resources/evidence.js.map +1 -0
  219. package/dist/resources/games.d.ts +134 -0
  220. package/dist/resources/games.d.ts.map +1 -0
  221. package/dist/resources/games.js +26 -0
  222. package/dist/resources/games.js.map +1 -0
  223. package/dist/resources/grading.d.ts +181 -0
  224. package/dist/resources/grading.d.ts.map +1 -0
  225. package/dist/resources/grading.js +51 -0
  226. package/dist/resources/grading.js.map +1 -0
  227. package/dist/resources/homes.d.ts +106 -0
  228. package/dist/resources/homes.d.ts.map +1 -0
  229. package/dist/resources/homes.js +27 -0
  230. package/dist/resources/homes.js.map +1 -0
  231. package/dist/resources/imports.d.ts +39 -0
  232. package/dist/resources/imports.d.ts.map +1 -0
  233. package/dist/resources/imports.js +37 -0
  234. package/dist/resources/imports.js.map +1 -0
  235. package/dist/resources/live-shows.d.ts +100 -0
  236. package/dist/resources/live-shows.d.ts.map +1 -0
  237. package/dist/resources/live-shows.js +42 -0
  238. package/dist/resources/live-shows.js.map +1 -0
  239. package/dist/resources/loyalty-looks.d.ts +68 -0
  240. package/dist/resources/loyalty-looks.d.ts.map +1 -0
  241. package/dist/resources/loyalty-looks.js +21 -0
  242. package/dist/resources/loyalty-looks.js.map +1 -0
  243. package/dist/resources/market.d.ts +172 -0
  244. package/dist/resources/market.d.ts.map +1 -0
  245. package/dist/resources/market.js +124 -0
  246. package/dist/resources/market.js.map +1 -0
  247. package/dist/resources/membership.d.ts +14 -0
  248. package/dist/resources/membership.d.ts.map +1 -0
  249. package/dist/resources/membership.js +17 -0
  250. package/dist/resources/membership.js.map +1 -0
  251. package/dist/resources/neighbourhoods.d.ts +44 -0
  252. package/dist/resources/neighbourhoods.d.ts.map +1 -0
  253. package/dist/resources/neighbourhoods.js +15 -0
  254. package/dist/resources/neighbourhoods.js.map +1 -0
  255. package/dist/resources/nft-market.d.ts +26 -0
  256. package/dist/resources/nft-market.d.ts.map +1 -0
  257. package/dist/resources/nft-market.js +28 -0
  258. package/dist/resources/nft-market.js.map +1 -0
  259. package/dist/resources/offers.d.ts +60 -0
  260. package/dist/resources/offers.d.ts.map +1 -0
  261. package/dist/resources/offers.js +38 -0
  262. package/dist/resources/offers.js.map +1 -0
  263. package/dist/resources/orders.d.ts +248 -0
  264. package/dist/resources/orders.d.ts.map +1 -0
  265. package/dist/resources/orders.js +411 -0
  266. package/dist/resources/orders.js.map +1 -0
  267. package/dist/resources/passports.d.ts +101 -0
  268. package/dist/resources/passports.d.ts.map +1 -0
  269. package/dist/resources/passports.js +36 -0
  270. package/dist/resources/passports.js.map +1 -0
  271. package/dist/resources/payout.d.ts +121 -0
  272. package/dist/resources/payout.d.ts.map +1 -0
  273. package/dist/resources/payout.js +65 -0
  274. package/dist/resources/payout.js.map +1 -0
  275. package/dist/resources/policy-presets.d.ts +36 -0
  276. package/dist/resources/policy-presets.d.ts.map +1 -0
  277. package/dist/resources/policy-presets.js +39 -0
  278. package/dist/resources/policy-presets.js.map +1 -0
  279. package/dist/resources/pricing.d.ts +73 -0
  280. package/dist/resources/pricing.d.ts.map +1 -0
  281. package/dist/resources/pricing.js +18 -0
  282. package/dist/resources/pricing.js.map +1 -0
  283. package/dist/resources/production.d.ts +96 -0
  284. package/dist/resources/production.d.ts.map +1 -0
  285. package/dist/resources/production.js +89 -0
  286. package/dist/resources/production.js.map +1 -0
  287. package/dist/resources/rentals.d.ts +84 -0
  288. package/dist/resources/rentals.d.ts.map +1 -0
  289. package/dist/resources/rentals.js +21 -0
  290. package/dist/resources/rentals.js.map +1 -0
  291. package/dist/resources/reputation.d.ts +106 -0
  292. package/dist/resources/reputation.d.ts.map +1 -0
  293. package/dist/resources/reputation.js +23 -0
  294. package/dist/resources/reputation.js.map +1 -0
  295. package/dist/resources/scan.d.ts +100 -0
  296. package/dist/resources/scan.d.ts.map +1 -0
  297. package/dist/resources/scan.js +53 -0
  298. package/dist/resources/scan.js.map +1 -0
  299. package/dist/resources/seller-xmarket.d.ts +80 -0
  300. package/dist/resources/seller-xmarket.d.ts.map +1 -0
  301. package/dist/resources/seller-xmarket.js +58 -0
  302. package/dist/resources/seller-xmarket.js.map +1 -0
  303. package/dist/resources/spatial-auction.d.ts +135 -0
  304. package/dist/resources/spatial-auction.d.ts.map +1 -0
  305. package/dist/resources/spatial-auction.js +160 -0
  306. package/dist/resources/spatial-auction.js.map +1 -0
  307. package/dist/resources/spatial-emotes.d.ts +60 -0
  308. package/dist/resources/spatial-emotes.d.ts.map +1 -0
  309. package/dist/resources/spatial-emotes.js +20 -0
  310. package/dist/resources/spatial-emotes.js.map +1 -0
  311. package/dist/resources/spatial-employee.d.ts +140 -0
  312. package/dist/resources/spatial-employee.d.ts.map +1 -0
  313. package/dist/resources/spatial-employee.js +128 -0
  314. package/dist/resources/spatial-employee.js.map +1 -0
  315. package/dist/resources/spatial-party.d.ts +63 -0
  316. package/dist/resources/spatial-party.d.ts.map +1 -0
  317. package/dist/resources/spatial-party.js +15 -0
  318. package/dist/resources/spatial-party.js.map +1 -0
  319. package/dist/resources/spatial-rooms.d.ts +132 -0
  320. package/dist/resources/spatial-rooms.d.ts.map +1 -0
  321. package/dist/resources/spatial-rooms.js +83 -0
  322. package/dist/resources/spatial-rooms.js.map +1 -0
  323. package/dist/resources/spatial.d.ts +228 -0
  324. package/dist/resources/spatial.d.ts.map +1 -0
  325. package/dist/resources/spatial.js +325 -0
  326. package/dist/resources/spatial.js.map +1 -0
  327. package/dist/resources/stalls.d.ts +203 -0
  328. package/dist/resources/stalls.d.ts.map +1 -0
  329. package/dist/resources/stalls.js +50 -0
  330. package/dist/resources/stalls.js.map +1 -0
  331. package/dist/resources/storefront-shipping.d.ts +116 -0
  332. package/dist/resources/storefront-shipping.d.ts.map +1 -0
  333. package/dist/resources/storefront-shipping.js +32 -0
  334. package/dist/resources/storefront-shipping.js.map +1 -0
  335. package/dist/resources/trade-block.d.ts +104 -0
  336. package/dist/resources/trade-block.d.ts.map +1 -0
  337. package/dist/resources/trade-block.js +57 -0
  338. package/dist/resources/trade-block.js.map +1 -0
  339. package/dist/resources/units.d.ts +65 -0
  340. package/dist/resources/units.d.ts.map +1 -0
  341. package/dist/resources/units.js +53 -0
  342. package/dist/resources/units.js.map +1 -0
  343. package/dist/resources/variation-groups.d.ts +179 -0
  344. package/dist/resources/variation-groups.d.ts.map +1 -0
  345. package/dist/resources/variation-groups.js +69 -0
  346. package/dist/resources/variation-groups.js.map +1 -0
  347. package/dist/resources/vault-markets-adl.d.ts +85 -0
  348. package/dist/resources/vault-markets-adl.d.ts.map +1 -0
  349. package/dist/resources/vault-markets-adl.js +24 -0
  350. package/dist/resources/vault-markets-adl.js.map +1 -0
  351. package/dist/resources/vault-markets-agent.d.ts +96 -0
  352. package/dist/resources/vault-markets-agent.d.ts.map +1 -0
  353. package/dist/resources/vault-markets-agent.js +31 -0
  354. package/dist/resources/vault-markets-agent.js.map +1 -0
  355. package/dist/resources/vault-markets-alerts-hub.d.ts +90 -0
  356. package/dist/resources/vault-markets-alerts-hub.d.ts.map +1 -0
  357. package/dist/resources/vault-markets-alerts-hub.js +23 -0
  358. package/dist/resources/vault-markets-alerts-hub.js.map +1 -0
  359. package/dist/resources/vault-markets-analytics.d.ts +80 -0
  360. package/dist/resources/vault-markets-analytics.d.ts.map +1 -0
  361. package/dist/resources/vault-markets-analytics.js +68 -0
  362. package/dist/resources/vault-markets-analytics.js.map +1 -0
  363. package/dist/resources/vault-markets-bullion.d.ts +218 -0
  364. package/dist/resources/vault-markets-bullion.d.ts.map +1 -0
  365. package/dist/resources/vault-markets-bullion.js +50 -0
  366. package/dist/resources/vault-markets-bullion.js.map +1 -0
  367. package/dist/resources/vault-markets-channels.d.ts +88 -0
  368. package/dist/resources/vault-markets-channels.d.ts.map +1 -0
  369. package/dist/resources/vault-markets-channels.js +41 -0
  370. package/dist/resources/vault-markets-channels.js.map +1 -0
  371. package/dist/resources/vault-markets-credit.d.ts +53 -0
  372. package/dist/resources/vault-markets-credit.d.ts.map +1 -0
  373. package/dist/resources/vault-markets-credit.js +56 -0
  374. package/dist/resources/vault-markets-credit.js.map +1 -0
  375. package/dist/resources/vault-markets-curve-pools.d.ts +135 -0
  376. package/dist/resources/vault-markets-curve-pools.d.ts.map +1 -0
  377. package/dist/resources/vault-markets-curve-pools.js +39 -0
  378. package/dist/resources/vault-markets-curve-pools.js.map +1 -0
  379. package/dist/resources/vault-markets-floor.d.ts +59 -0
  380. package/dist/resources/vault-markets-floor.d.ts.map +1 -0
  381. package/dist/resources/vault-markets-floor.js +11 -0
  382. package/dist/resources/vault-markets-floor.js.map +1 -0
  383. package/dist/resources/vault-markets-follows.d.ts +205 -0
  384. package/dist/resources/vault-markets-follows.d.ts.map +1 -0
  385. package/dist/resources/vault-markets-follows.js +53 -0
  386. package/dist/resources/vault-markets-follows.js.map +1 -0
  387. package/dist/resources/vault-markets-grade-to-vault.d.ts +201 -0
  388. package/dist/resources/vault-markets-grade-to-vault.d.ts.map +1 -0
  389. package/dist/resources/vault-markets-grade-to-vault.js +55 -0
  390. package/dist/resources/vault-markets-grade-to-vault.js.map +1 -0
  391. package/dist/resources/vault-markets-grading.d.ts +32 -0
  392. package/dist/resources/vault-markets-grading.d.ts.map +1 -0
  393. package/dist/resources/vault-markets-grading.js +19 -0
  394. package/dist/resources/vault-markets-grading.js.map +1 -0
  395. package/dist/resources/vault-markets-hall.d.ts +121 -0
  396. package/dist/resources/vault-markets-hall.d.ts.map +1 -0
  397. package/dist/resources/vault-markets-hall.js +27 -0
  398. package/dist/resources/vault-markets-hall.js.map +1 -0
  399. package/dist/resources/vault-markets-health.d.ts +169 -0
  400. package/dist/resources/vault-markets-health.d.ts.map +1 -0
  401. package/dist/resources/vault-markets-health.js +15 -0
  402. package/dist/resources/vault-markets-health.js.map +1 -0
  403. package/dist/resources/vault-markets-home.d.ts +69 -0
  404. package/dist/resources/vault-markets-home.d.ts.map +1 -0
  405. package/dist/resources/vault-markets-home.js +19 -0
  406. package/dist/resources/vault-markets-home.js.map +1 -0
  407. package/dist/resources/vault-markets-index.d.ts +71 -0
  408. package/dist/resources/vault-markets-index.d.ts.map +1 -0
  409. package/dist/resources/vault-markets-index.js +59 -0
  410. package/dist/resources/vault-markets-index.js.map +1 -0
  411. package/dist/resources/vault-markets-inst.d.ts +205 -0
  412. package/dist/resources/vault-markets-inst.d.ts.map +1 -0
  413. package/dist/resources/vault-markets-inst.js +143 -0
  414. package/dist/resources/vault-markets-inst.js.map +1 -0
  415. package/dist/resources/vault-markets-joint-tod.d.ts +389 -0
  416. package/dist/resources/vault-markets-joint-tod.d.ts.map +1 -0
  417. package/dist/resources/vault-markets-joint-tod.js +105 -0
  418. package/dist/resources/vault-markets-joint-tod.js.map +1 -0
  419. package/dist/resources/vault-markets-liquidity.d.ts +185 -0
  420. package/dist/resources/vault-markets-liquidity.d.ts.map +1 -0
  421. package/dist/resources/vault-markets-liquidity.js +124 -0
  422. package/dist/resources/vault-markets-liquidity.js.map +1 -0
  423. package/dist/resources/vault-markets-marks.d.ts +53 -0
  424. package/dist/resources/vault-markets-marks.d.ts.map +1 -0
  425. package/dist/resources/vault-markets-marks.js +11 -0
  426. package/dist/resources/vault-markets-marks.js.map +1 -0
  427. package/dist/resources/vault-markets-missions.d.ts +75 -0
  428. package/dist/resources/vault-markets-missions.d.ts.map +1 -0
  429. package/dist/resources/vault-markets-missions.js +15 -0
  430. package/dist/resources/vault-markets-missions.js.map +1 -0
  431. package/dist/resources/vault-markets-mm.d.ts +280 -0
  432. package/dist/resources/vault-markets-mm.d.ts.map +1 -0
  433. package/dist/resources/vault-markets-mm.js +110 -0
  434. package/dist/resources/vault-markets-mm.js.map +1 -0
  435. package/dist/resources/vault-markets-mode.d.ts +111 -0
  436. package/dist/resources/vault-markets-mode.d.ts.map +1 -0
  437. package/dist/resources/vault-markets-mode.js +23 -0
  438. package/dist/resources/vault-markets-mode.js.map +1 -0
  439. package/dist/resources/vault-markets-ops.d.ts +88 -0
  440. package/dist/resources/vault-markets-ops.d.ts.map +1 -0
  441. package/dist/resources/vault-markets-ops.js +76 -0
  442. package/dist/resources/vault-markets-ops.js.map +1 -0
  443. package/dist/resources/vault-markets-oracle-dcm.d.ts +288 -0
  444. package/dist/resources/vault-markets-oracle-dcm.d.ts.map +1 -0
  445. package/dist/resources/vault-markets-oracle-dcm.js +48 -0
  446. package/dist/resources/vault-markets-oracle-dcm.js.map +1 -0
  447. package/dist/resources/vault-markets-p2p.d.ts +217 -0
  448. package/dist/resources/vault-markets-p2p.d.ts.map +1 -0
  449. package/dist/resources/vault-markets-p2p.js +72 -0
  450. package/dist/resources/vault-markets-p2p.js.map +1 -0
  451. package/dist/resources/vault-markets-paper.d.ts +222 -0
  452. package/dist/resources/vault-markets-paper.d.ts.map +1 -0
  453. package/dist/resources/vault-markets-paper.js +47 -0
  454. package/dist/resources/vault-markets-paper.js.map +1 -0
  455. package/dist/resources/vault-markets-pm.d.ts +159 -0
  456. package/dist/resources/vault-markets-pm.d.ts.map +1 -0
  457. package/dist/resources/vault-markets-pm.js +27 -0
  458. package/dist/resources/vault-markets-pm.js.map +1 -0
  459. package/dist/resources/vault-markets-pop-reports.d.ts +62 -0
  460. package/dist/resources/vault-markets-pop-reports.d.ts.map +1 -0
  461. package/dist/resources/vault-markets-pop-reports.js +11 -0
  462. package/dist/resources/vault-markets-pop-reports.js.map +1 -0
  463. package/dist/resources/vault-markets-price-widgets.d.ts +138 -0
  464. package/dist/resources/vault-markets-price-widgets.d.ts.map +1 -0
  465. package/dist/resources/vault-markets-price-widgets.js +31 -0
  466. package/dist/resources/vault-markets-price-widgets.js.map +1 -0
  467. package/dist/resources/vault-markets-pro.d.ts +234 -0
  468. package/dist/resources/vault-markets-pro.d.ts.map +1 -0
  469. package/dist/resources/vault-markets-pro.js +75 -0
  470. package/dist/resources/vault-markets-pro.js.map +1 -0
  471. package/dist/resources/vault-markets-receipt-tokens.d.ts +170 -0
  472. package/dist/resources/vault-markets-receipt-tokens.d.ts.map +1 -0
  473. package/dist/resources/vault-markets-receipt-tokens.js +44 -0
  474. package/dist/resources/vault-markets-receipt-tokens.js.map +1 -0
  475. package/dist/resources/vault-markets-reports.d.ts +54 -0
  476. package/dist/resources/vault-markets-reports.d.ts.map +1 -0
  477. package/dist/resources/vault-markets-reports.js +16 -0
  478. package/dist/resources/vault-markets-reports.js.map +1 -0
  479. package/dist/resources/vault-markets-set-goals.d.ts +219 -0
  480. package/dist/resources/vault-markets-set-goals.d.ts.map +1 -0
  481. package/dist/resources/vault-markets-set-goals.js +51 -0
  482. package/dist/resources/vault-markets-set-goals.js.map +1 -0
  483. package/dist/resources/vault-markets-social.d.ts +73 -0
  484. package/dist/resources/vault-markets-social.d.ts.map +1 -0
  485. package/dist/resources/vault-markets-social.js +84 -0
  486. package/dist/resources/vault-markets-social.js.map +1 -0
  487. package/dist/resources/vault-markets-stats.d.ts +177 -0
  488. package/dist/resources/vault-markets-stats.d.ts.map +1 -0
  489. package/dist/resources/vault-markets-stats.js +44 -0
  490. package/dist/resources/vault-markets-stats.js.map +1 -0
  491. package/dist/resources/vault-markets-supply.d.ts +99 -0
  492. package/dist/resources/vault-markets-supply.d.ts.map +1 -0
  493. package/dist/resources/vault-markets-supply.js +73 -0
  494. package/dist/resources/vault-markets-supply.js.map +1 -0
  495. package/dist/resources/vault-markets-tax-loss.d.ts +68 -0
  496. package/dist/resources/vault-markets-tax-loss.d.ts.map +1 -0
  497. package/dist/resources/vault-markets-tax-loss.js +11 -0
  498. package/dist/resources/vault-markets-tax-loss.js.map +1 -0
  499. package/dist/resources/vault-markets-title.d.ts +129 -0
  500. package/dist/resources/vault-markets-title.d.ts.map +1 -0
  501. package/dist/resources/vault-markets-title.js +94 -0
  502. package/dist/resources/vault-markets-title.js.map +1 -0
  503. package/dist/resources/vault-markets-unit-story.d.ts +105 -0
  504. package/dist/resources/vault-markets-unit-story.d.ts.map +1 -0
  505. package/dist/resources/vault-markets-unit-story.js +15 -0
  506. package/dist/resources/vault-markets-unit-story.js.map +1 -0
  507. package/dist/resources/vault-markets-valuation.d.ts +136 -0
  508. package/dist/resources/vault-markets-valuation.d.ts.map +1 -0
  509. package/dist/resources/vault-markets-valuation.js +37 -0
  510. package/dist/resources/vault-markets-valuation.js.map +1 -0
  511. package/dist/resources/vault-markets-vault-suggest.d.ts +92 -0
  512. package/dist/resources/vault-markets-vault-suggest.d.ts.map +1 -0
  513. package/dist/resources/vault-markets-vault-suggest.js +15 -0
  514. package/dist/resources/vault-markets-vault-suggest.js.map +1 -0
  515. package/dist/resources/vault-markets-widget.d.ts +101 -0
  516. package/dist/resources/vault-markets-widget.d.ts.map +1 -0
  517. package/dist/resources/vault-markets-widget.js +27 -0
  518. package/dist/resources/vault-markets-widget.js.map +1 -0
  519. package/dist/resources/vault-markets-world.d.ts +286 -0
  520. package/dist/resources/vault-markets-world.d.ts.map +1 -0
  521. package/dist/resources/vault-markets-world.js +63 -0
  522. package/dist/resources/vault-markets-world.js.map +1 -0
  523. package/dist/resources/vault-markets.d.ts +484 -0
  524. package/dist/resources/vault-markets.d.ts.map +1 -0
  525. package/dist/resources/vault-markets.js +269 -0
  526. package/dist/resources/vault-markets.js.map +1 -0
  527. package/dist/resources/video-requests.d.ts +44 -0
  528. package/dist/resources/video-requests.d.ts.map +1 -0
  529. package/dist/resources/video-requests.js +13 -0
  530. package/dist/resources/video-requests.js.map +1 -0
  531. package/dist/resources/web3.d.ts +439 -0
  532. package/dist/resources/web3.d.ts.map +1 -0
  533. package/dist/resources/web3.js +462 -0
  534. package/dist/resources/web3.js.map +1 -0
  535. package/dist/resources/wholesale.d.ts +23 -0
  536. package/dist/resources/wholesale.d.ts.map +1 -0
  537. package/dist/resources/wholesale.js +39 -0
  538. package/dist/resources/wholesale.js.map +1 -0
  539. package/dist/resources/world-account.d.ts +71 -0
  540. package/dist/resources/world-account.d.ts.map +1 -0
  541. package/dist/resources/world-account.js +67 -0
  542. package/dist/resources/world-account.js.map +1 -0
  543. package/dist/resources/world-arcade.d.ts +50 -0
  544. package/dist/resources/world-arcade.d.ts.map +1 -0
  545. package/dist/resources/world-arcade.js +11 -0
  546. package/dist/resources/world-arcade.js.map +1 -0
  547. package/dist/resources/world-aurora.d.ts +29 -0
  548. package/dist/resources/world-aurora.d.ts.map +1 -0
  549. package/dist/resources/world-aurora.js +11 -0
  550. package/dist/resources/world-aurora.js.map +1 -0
  551. package/dist/resources/world-capabilities.d.ts +154 -0
  552. package/dist/resources/world-capabilities.d.ts.map +1 -0
  553. package/dist/resources/world-capabilities.js +51 -0
  554. package/dist/resources/world-capabilities.js.map +1 -0
  555. package/dist/resources/world-chests.d.ts +23 -0
  556. package/dist/resources/world-chests.d.ts.map +1 -0
  557. package/dist/resources/world-chests.js +11 -0
  558. package/dist/resources/world-chests.js.map +1 -0
  559. package/dist/resources/world-contests.d.ts +72 -0
  560. package/dist/resources/world-contests.d.ts.map +1 -0
  561. package/dist/resources/world-contests.js +31 -0
  562. package/dist/resources/world-contests.js.map +1 -0
  563. package/dist/resources/world-conventions.d.ts +77 -0
  564. package/dist/resources/world-conventions.d.ts.map +1 -0
  565. package/dist/resources/world-conventions.js +51 -0
  566. package/dist/resources/world-conventions.js.map +1 -0
  567. package/dist/resources/world-creator.d.ts +94 -0
  568. package/dist/resources/world-creator.d.ts.map +1 -0
  569. package/dist/resources/world-creator.js +59 -0
  570. package/dist/resources/world-creator.js.map +1 -0
  571. package/dist/resources/world-fireflies.d.ts +23 -0
  572. package/dist/resources/world-fireflies.d.ts.map +1 -0
  573. package/dist/resources/world-fireflies.js +11 -0
  574. package/dist/resources/world-fireflies.js.map +1 -0
  575. package/dist/resources/world-games.d.ts +112 -0
  576. package/dist/resources/world-games.d.ts.map +1 -0
  577. package/dist/resources/world-games.js +55 -0
  578. package/dist/resources/world-games.js.map +1 -0
  579. package/dist/resources/world-grails.d.ts +15 -0
  580. package/dist/resources/world-grails.d.ts.map +1 -0
  581. package/dist/resources/world-grails.js +11 -0
  582. package/dist/resources/world-grails.js.map +1 -0
  583. package/dist/resources/world-hall.d.ts +83 -0
  584. package/dist/resources/world-hall.d.ts.map +1 -0
  585. package/dist/resources/world-hall.js +23 -0
  586. package/dist/resources/world-hall.js.map +1 -0
  587. package/dist/resources/world-homes.d.ts +55 -0
  588. package/dist/resources/world-homes.d.ts.map +1 -0
  589. package/dist/resources/world-homes.js +43 -0
  590. package/dist/resources/world-homes.js.map +1 -0
  591. package/dist/resources/world-hunt.d.ts +71 -0
  592. package/dist/resources/world-hunt.d.ts.map +1 -0
  593. package/dist/resources/world-hunt.js +19 -0
  594. package/dist/resources/world-hunt.js.map +1 -0
  595. package/dist/resources/world-kites.d.ts +23 -0
  596. package/dist/resources/world-kites.d.ts.map +1 -0
  597. package/dist/resources/world-kites.js +11 -0
  598. package/dist/resources/world-kites.js.map +1 -0
  599. package/dist/resources/world-lanterns.d.ts +23 -0
  600. package/dist/resources/world-lanterns.d.ts.map +1 -0
  601. package/dist/resources/world-lanterns.js +11 -0
  602. package/dist/resources/world-lanterns.js.map +1 -0
  603. package/dist/resources/world-live.d.ts +146 -0
  604. package/dist/resources/world-live.d.ts.map +1 -0
  605. package/dist/resources/world-live.js +47 -0
  606. package/dist/resources/world-live.js.map +1 -0
  607. package/dist/resources/world-parties.d.ts +60 -0
  608. package/dist/resources/world-parties.d.ts.map +1 -0
  609. package/dist/resources/world-parties.js +55 -0
  610. package/dist/resources/world-parties.js.map +1 -0
  611. package/dist/resources/world-places.d.ts +60 -0
  612. package/dist/resources/world-places.d.ts.map +1 -0
  613. package/dist/resources/world-places.js +59 -0
  614. package/dist/resources/world-places.js.map +1 -0
  615. package/dist/resources/world-provenance.d.ts +18 -0
  616. package/dist/resources/world-provenance.d.ts.map +1 -0
  617. package/dist/resources/world-provenance.js +11 -0
  618. package/dist/resources/world-provenance.js.map +1 -0
  619. package/dist/resources/world-spaces.d.ts +93 -0
  620. package/dist/resources/world-spaces.d.ts.map +1 -0
  621. package/dist/resources/world-spaces.js +75 -0
  622. package/dist/resources/world-spaces.js.map +1 -0
  623. package/dist/resources/world-streets.d.ts +91 -0
  624. package/dist/resources/world-streets.d.ts.map +1 -0
  625. package/dist/resources/world-streets.js +83 -0
  626. package/dist/resources/world-streets.js.map +1 -0
  627. package/dist/resources/world-trials.d.ts +64 -0
  628. package/dist/resources/world-trials.d.ts.map +1 -0
  629. package/dist/resources/world-trials.js +15 -0
  630. package/dist/resources/world-trials.js.map +1 -0
  631. package/dist/resources/world-wishes.d.ts +23 -0
  632. package/dist/resources/world-wishes.d.ts.map +1 -0
  633. package/dist/resources/world-wishes.js +11 -0
  634. package/dist/resources/world-wishes.js.map +1 -0
  635. package/dist/resources/world.d.ts +771 -0
  636. package/dist/resources/world.d.ts.map +1 -0
  637. package/dist/resources/world.js +233 -0
  638. package/dist/resources/world.js.map +1 -0
  639. package/dist/resources.d.ts +142 -0
  640. package/dist/resources.d.ts.map +1 -0
  641. package/dist/resources.js +153 -0
  642. package/dist/resources.js.map +1 -0
  643. package/dist/types.d.ts +32 -0
  644. package/dist/types.d.ts.map +1 -0
  645. package/dist/types.js +10 -0
  646. package/dist/types.js.map +1 -0
  647. package/dist/webhooks.d.ts +80 -0
  648. package/dist/webhooks.d.ts.map +1 -0
  649. package/dist/webhooks.js +153 -0
  650. package/dist/webhooks.js.map +1 -0
  651. package/package.json +60 -3
@@ -0,0 +1,159 @@
1
+ /**
2
+ * The designer surface.
3
+ *
4
+ * A designer is a different reader from a wearer: these are about
5
+ * publishing terms, opening a design to the chain, and the mint state
6
+ * machine. Grouped with COSM rather than in their own resource because
7
+ * they share the COSM credential and a designer is also a holder.
8
+ *
9
+ * The last link in the `CosmResource` chain — see `./base.js`. Every method
10
+ * here is reached as `client.cosm.<name>()`.
11
+ */
12
+ import type { JsonObject } from '../_shared.js';
13
+ import { CosmMarketMethods } from './market.js';
14
+ export declare class CosmDesignerMethods extends CosmMarketMethods {
15
+ /**
16
+ * The published terms for a design.
17
+ *
18
+ * Reports the platform rates a designer does NOT control alongside
19
+ * the ones they do, and whether the terms are enforceable on chain —
20
+ * inside Crossly every rule is enforced, while a third-party
21
+ * marketplace honours a royalty voluntarily at best. Present that
22
+ * distinction to a designer rather than implying a guarantee.
23
+ */
24
+ designerTerms(params: {
25
+ cosmeticId: string;
26
+ }): Promise<JsonObject>;
27
+ /**
28
+ * Publish terms for a design.
29
+ *
30
+ * NEVER an edit: every change is a new version, and a copy sold under
31
+ * an earlier one keeps those terms forever. Designer-only.
32
+ *
33
+ * `splits` are shares of the ROYALTY, not of the sale price, and may
34
+ * total at most 100% — the remainder stays with the designer. A total
35
+ * above 100% is refused rather than scaled down, because silently
36
+ * rescaling somebody's collaborator agreement is worse than an error.
37
+ */
38
+ publishDesignerTerms(params: {
39
+ subjectId: string;
40
+ cosmeticId: string;
41
+ resaleAllowed?: boolean;
42
+ /** Base units, as a digit string. Null clears the bound. */
43
+ maxResaleBaseUnits?: string | null;
44
+ minResaleBaseUnits?: string | null;
45
+ secondaryRoyaltyBps?: number;
46
+ splits?: Array<{
47
+ recipientSubjectId: string;
48
+ shareBps: number;
49
+ memo?: string | null;
50
+ }>;
51
+ }): Promise<JsonObject>;
52
+ /**
53
+ * Burn COSM to make a design mintable on chain.
54
+ *
55
+ * Designer-only and idempotent: a second call returns the existing
56
+ * unlock without charging, so paying twice is impossible. The fee is
57
+ * DESTROYED rather than collected. Limited editions only — an open
58
+ * edition has no scarcity for a token to attest.
59
+ *
60
+ * Once unlocked, ANY holder may take their own copy on chain. That is
61
+ * deliberate: restricting it to the designer would leave buyers
62
+ * holding something they cannot take with them.
63
+ */
64
+ unlockDesignForChain(params: {
65
+ subjectId: string;
66
+ cosmeticId: string;
67
+ }): Promise<JsonObject>;
68
+ /**
69
+ * Opt a design in or out of the FREE chain unlock a popular limited design
70
+ * earns (on by default). Answers the popularity of the design toward the bar.
71
+ */
72
+ setChainAutoUnlock(params: {
73
+ subjectId: string;
74
+ cosmeticId: string;
75
+ enabled: boolean;
76
+ }): Promise<JsonObject>;
77
+ /**
78
+ * Submit a user-authored design for moderation.
79
+ *
80
+ * Refuses a design with no preview image here rather than at approval,
81
+ * so the designer learns what is missing while they can still fix it.
82
+ * Submitting twice returns the existing pending review instead of
83
+ * queueing a second one — a moderator facing two reviews of one piece
84
+ * does not know which they are deciding.
85
+ */
86
+ submitDesignForReview(params: {
87
+ subjectId: string;
88
+ cosmeticId: string;
89
+ }): Promise<JsonObject>;
90
+ /**
91
+ * Lock a copy and get back an UNSIGNED mint for the holder to sign.
92
+ *
93
+ * One call: it resolves the royalty, locks the copy, publishes
94
+ * immutable content-addressed metadata and builds the transaction — so
95
+ * a lock is never taken without a transaction to go with it, and a
96
+ * failure after the lock releases it.
97
+ *
98
+ * `destinationOwner` is the holder's OWN wallet. The platform never
99
+ * holds the NFT; minting into a platform wallet and transferring later
100
+ * is custody.
101
+ *
102
+ * Does NOT void the copy. Call {@link confirmMaterialisation} once the
103
+ * chain reaches FINALIZED commitment, or {@link releaseMaterialisation}
104
+ * if the user closed the prompt.
105
+ */
106
+ materialise(params: {
107
+ subjectId: string;
108
+ ownershipId: string;
109
+ destinationOwner: string;
110
+ }): Promise<JsonObject>;
111
+ /**
112
+ * Record a confirmed mint and retire the in-world copy, in one
113
+ * transaction.
114
+ *
115
+ * You MUST have verified the transaction at finalized commitment
116
+ * first. An NFT recorded against a transaction that never landed
117
+ * cannot be recalled, and the copy it retired is gone. Idempotent on
118
+ * an already-confirmed request.
119
+ */
120
+ confirmMaterialisation(params: {
121
+ mintRequestId: string;
122
+ mintAddress: string;
123
+ txSig: string;
124
+ }): Promise<JsonObject>;
125
+ /**
126
+ * Release a mint lock that was never signed.
127
+ *
128
+ * The ordinary outcome of somebody closing a wallet prompt, and it
129
+ * leaves the copy exactly as it was. Refuses a request that has
130
+ * already minted — releasing one would unlock a copy that is on chain,
131
+ * which is the double-spend the whole state machine exists to prevent.
132
+ */
133
+ releaseMaterialisation(params: {
134
+ mintRequestId: string;
135
+ reason: string;
136
+ }): Promise<JsonObject>;
137
+ /**
138
+ * Where a copy currently is: `held`, `minting` or `materialised`.
139
+ *
140
+ * A copy is in exactly one of these, never two. Both at once would be
141
+ * a double-spend — sell the NFT, keep wearing the item, and one
142
+ * edition has two owners who can each prove it.
143
+ */
144
+ copyState(params: {
145
+ ownershipId: string;
146
+ }): Promise<JsonObject>;
147
+ /**
148
+ * What a designer has earned, in both denominations.
149
+ *
150
+ * COSM royalties come from COSM-priced sales; cash earnings come from
151
+ * cash-priced sales and are funded by the buyer payment itself. The
152
+ * two are never converted into one another, and COSM is never cashed
153
+ * out — so show them as two figures, never as a total.
154
+ */
155
+ designerEarnings(params: {
156
+ subjectId: string;
157
+ }): Promise<JsonObject>;
158
+ }
159
+ //# sourceMappingURL=designer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"designer.d.ts","sourceRoot":"","sources":["../../../src/resources/cosm/designer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,qBAAa,mBAAoB,SAAQ,iBAAiB;IACxD;;;;;;;;OAQG;IACH,aAAa,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE;IAQ5C;;;;;;;;;;OAUG;IACH,oBAAoB,CAAC,MAAM,EAAE;QAC3B,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,CAAC,EAAE,OAAO,CAAC;QACxB,4DAA4D;QAC5D,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACnC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,MAAM,CAAC,EAAE,KAAK,CAAC;YACb,kBAAkB,EAAE,MAAM,CAAC;YAC3B,QAAQ,EAAE,MAAM,CAAC;YACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SACtB,CAAC,CAAC;KACJ;IAQD;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE;IAQtE;;;OAGG;IACH,kBAAkB,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;IAQtF;;;;;;;;OAQG;IACH,qBAAqB,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE;IAQvE;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,MAAM,EAAE;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC;KAC1B;IAQD;;;;;;;;OAQG;IACH,sBAAsB,CAAC,MAAM,EAAE;QAC7B,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;KACf;IAQD;;;;;;;OAOG;IACH,sBAAsB,CAAC,MAAM,EAAE;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;IAQxE;;;;;;OAMG;IACH,SAAS,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;IAQzC;;;;;;;OAOG;IACH,gBAAgB,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE;CAO/C"}
@@ -0,0 +1,167 @@
1
+ import { CosmMarketMethods } from './market.js';
2
+ export class CosmDesignerMethods extends CosmMarketMethods {
3
+ /**
4
+ * The published terms for a design.
5
+ *
6
+ * Reports the platform rates a designer does NOT control alongside
7
+ * the ones they do, and whether the terms are enforceable on chain —
8
+ * inside Crossly every rule is enforced, while a third-party
9
+ * marketplace honours a royalty voluntarily at best. Present that
10
+ * distinction to a designer rather than implying a guarantee.
11
+ */
12
+ designerTerms(params) {
13
+ return this.http.request({
14
+ method: 'GET',
15
+ path: '/v1/cosm/designer/terms',
16
+ query: params,
17
+ });
18
+ }
19
+ /**
20
+ * Publish terms for a design.
21
+ *
22
+ * NEVER an edit: every change is a new version, and a copy sold under
23
+ * an earlier one keeps those terms forever. Designer-only.
24
+ *
25
+ * `splits` are shares of the ROYALTY, not of the sale price, and may
26
+ * total at most 100% — the remainder stays with the designer. A total
27
+ * above 100% is refused rather than scaled down, because silently
28
+ * rescaling somebody's collaborator agreement is worse than an error.
29
+ */
30
+ publishDesignerTerms(params) {
31
+ return this.http.request({
32
+ method: 'POST',
33
+ path: '/v1/cosm/designer/terms',
34
+ body: params,
35
+ });
36
+ }
37
+ /**
38
+ * Burn COSM to make a design mintable on chain.
39
+ *
40
+ * Designer-only and idempotent: a second call returns the existing
41
+ * unlock without charging, so paying twice is impossible. The fee is
42
+ * DESTROYED rather than collected. Limited editions only — an open
43
+ * edition has no scarcity for a token to attest.
44
+ *
45
+ * Once unlocked, ANY holder may take their own copy on chain. That is
46
+ * deliberate: restricting it to the designer would leave buyers
47
+ * holding something they cannot take with them.
48
+ */
49
+ unlockDesignForChain(params) {
50
+ return this.http.request({
51
+ method: 'POST',
52
+ path: '/v1/cosm/designer/chain-unlock',
53
+ body: params,
54
+ });
55
+ }
56
+ /**
57
+ * Opt a design in or out of the FREE chain unlock a popular limited design
58
+ * earns (on by default). Answers the popularity of the design toward the bar.
59
+ */
60
+ setChainAutoUnlock(params) {
61
+ return this.http.request({
62
+ method: 'POST',
63
+ path: '/v1/cosm/designer/chain-auto-unlock',
64
+ body: params,
65
+ });
66
+ }
67
+ /**
68
+ * Submit a user-authored design for moderation.
69
+ *
70
+ * Refuses a design with no preview image here rather than at approval,
71
+ * so the designer learns what is missing while they can still fix it.
72
+ * Submitting twice returns the existing pending review instead of
73
+ * queueing a second one — a moderator facing two reviews of one piece
74
+ * does not know which they are deciding.
75
+ */
76
+ submitDesignForReview(params) {
77
+ return this.http.request({
78
+ method: 'POST',
79
+ path: '/v1/cosm/designer/submit-for-review',
80
+ body: params,
81
+ });
82
+ }
83
+ /**
84
+ * Lock a copy and get back an UNSIGNED mint for the holder to sign.
85
+ *
86
+ * One call: it resolves the royalty, locks the copy, publishes
87
+ * immutable content-addressed metadata and builds the transaction — so
88
+ * a lock is never taken without a transaction to go with it, and a
89
+ * failure after the lock releases it.
90
+ *
91
+ * `destinationOwner` is the holder's OWN wallet. The platform never
92
+ * holds the NFT; minting into a platform wallet and transferring later
93
+ * is custody.
94
+ *
95
+ * Does NOT void the copy. Call {@link confirmMaterialisation} once the
96
+ * chain reaches FINALIZED commitment, or {@link releaseMaterialisation}
97
+ * if the user closed the prompt.
98
+ */
99
+ materialise(params) {
100
+ return this.http.request({
101
+ method: 'POST',
102
+ path: '/v1/cosm/designer/materialise',
103
+ body: params,
104
+ });
105
+ }
106
+ /**
107
+ * Record a confirmed mint and retire the in-world copy, in one
108
+ * transaction.
109
+ *
110
+ * You MUST have verified the transaction at finalized commitment
111
+ * first. An NFT recorded against a transaction that never landed
112
+ * cannot be recalled, and the copy it retired is gone. Idempotent on
113
+ * an already-confirmed request.
114
+ */
115
+ confirmMaterialisation(params) {
116
+ return this.http.request({
117
+ method: 'POST',
118
+ path: '/v1/cosm/designer/materialise/confirm',
119
+ body: params,
120
+ });
121
+ }
122
+ /**
123
+ * Release a mint lock that was never signed.
124
+ *
125
+ * The ordinary outcome of somebody closing a wallet prompt, and it
126
+ * leaves the copy exactly as it was. Refuses a request that has
127
+ * already minted — releasing one would unlock a copy that is on chain,
128
+ * which is the double-spend the whole state machine exists to prevent.
129
+ */
130
+ releaseMaterialisation(params) {
131
+ return this.http.request({
132
+ method: 'POST',
133
+ path: '/v1/cosm/designer/materialise/release',
134
+ body: params,
135
+ });
136
+ }
137
+ /**
138
+ * Where a copy currently is: `held`, `minting` or `materialised`.
139
+ *
140
+ * A copy is in exactly one of these, never two. Both at once would be
141
+ * a double-spend — sell the NFT, keep wearing the item, and one
142
+ * edition has two owners who can each prove it.
143
+ */
144
+ copyState(params) {
145
+ return this.http.request({
146
+ method: 'GET',
147
+ path: '/v1/cosm/designer/copy-state',
148
+ query: params,
149
+ });
150
+ }
151
+ /**
152
+ * What a designer has earned, in both denominations.
153
+ *
154
+ * COSM royalties come from COSM-priced sales; cash earnings come from
155
+ * cash-priced sales and are funded by the buyer payment itself. The
156
+ * two are never converted into one another, and COSM is never cashed
157
+ * out — so show them as two figures, never as a total.
158
+ */
159
+ designerEarnings(params) {
160
+ return this.http.request({
161
+ method: 'GET',
162
+ path: '/v1/cosm/designer/earnings',
163
+ query: params,
164
+ });
165
+ }
166
+ }
167
+ //# sourceMappingURL=designer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"designer.js","sourceRoot":"","sources":["../../../src/resources/cosm/designer.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,OAAO,mBAAoB,SAAQ,iBAAiB;IACxD;;;;;;;;OAQG;IACH,aAAa,CAAC,MAA8B;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,yBAAyB;YAC/B,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,oBAAoB,CAAC,MAapB;QACC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,yBAAyB;YAC/B,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,oBAAoB,CAAC,MAAiD;QACpE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,gCAAgC;YACtC,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAAC,MAAmE;QACpF,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAqC;YAC3C,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,qBAAqB,CAAC,MAAiD;QACrE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,qCAAqC;YAC3C,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,MAIX;QACC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,+BAA+B;YACrC,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,sBAAsB,CAAC,MAItB;QACC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,uCAAuC;YAC7C,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,sBAAsB,CAAC,MAAiD;QACtE,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,uCAAuC;YAC7C,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CAAC,MAA+B;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,8BAA8B;YACpC,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,gBAAgB,CAAC,MAA6B;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,4BAA4B;YAClC,KAAK,EAAE,MAAM;SACd,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,111 @@
1
+ /**
2
+ * Markets: the COSM-denominated auction house, fusion, and the CBX listing
3
+ * pegs that happen to be routed under `/v1/cosm/*`.
4
+ *
5
+ * One link in the `CosmResource` chain — see `./base.js`. Every method here
6
+ * is reached as `client.cosm.<name>()`.
7
+ */
8
+ import type { JsonObject } from '../_shared.js';
9
+ import { CosmCosmeticsMethods } from './cosmetics.js';
10
+ export declare class CosmMarketMethods extends CosmCosmeticsMethods {
11
+ /**
12
+ * Open auction listings, priced in COSM.
13
+ *
14
+ * A COSM-denominated peer market: buyers pay COSM, sellers receive
15
+ * COSM, and the 8% fee burns. Not a cash market — a cash resale market
16
+ * for COSM-bought items would reintroduce the arbitrage between a
17
+ * fixed COSM price and a floating market one.
18
+ */
19
+ auction(cosmeticId?: string): Promise<JsonObject>;
20
+ /**
21
+ * What a listing would cost in fees, before committing.
22
+ *
23
+ * The fee is 8% of the ask rounded UP, so a small listing can never
24
+ * pay nothing — a zero-fee listing would be a free transfer channel,
25
+ * which the design forbids outright. The seller always nets something.
26
+ */
27
+ auctionQuote(askBaseUnits: string): Promise<JsonObject>;
28
+ /**
29
+ * List an owned cosmetic for COSM.
30
+ *
31
+ * Refuses a bound item. One open listing per item, enforced by a
32
+ * unique index — otherwise the same cosmetic could be listed twice and
33
+ * sold to two buyers.
34
+ *
35
+ * `askBaseUnits` is a string of base units and must exceed 1.
36
+ */
37
+ list(input: {
38
+ subjectId: string;
39
+ ownershipId: string;
40
+ askBaseUnits: string;
41
+ expiresAt?: string;
42
+ }): Promise<JsonObject>;
43
+ /**
44
+ * Buy an open listing.
45
+ *
46
+ * The listing is claimed out of `open` BEFORE any COSM moves, so the
47
+ * loser of a race is refused rather than debited. Buying your own
48
+ * listing is refused by a database CHECK: it would burn the fee for
49
+ * nothing and is the obvious way to fake a market price.
50
+ */
51
+ buyListing(listingId: string, subjectId: string): Promise<JsonObject>;
52
+ /**
53
+ * Fuse two cosmetics plus COSM into a rarer one.
54
+ *
55
+ * The deepest sink available: it destroys on three axes at once — both
56
+ * input items AND the COSM cost — while producing something whose
57
+ * scarcity is real, because a recipe is the only route to it.
58
+ *
59
+ * Inputs must be owned, live, unbound and flagged fusable.
60
+ * Stake-exclusive items can never be consumed: there is no way to
61
+ * reissue one without falsifying its scarcity.
62
+ */
63
+ fuse(recipeId: string, subjectId: string): Promise<JsonObject>;
64
+ /**
65
+ * CBX-pegged listings and why each price last moved.
66
+ *
67
+ * `lastReason` — repriced, no_rate, below_threshold, clamped_floor,
68
+ * clamped_ceiling, clamped_change — is the field that answers "why has
69
+ * my price not moved". Read it before assuming the repricer is broken.
70
+ */
71
+ pegs(params: {
72
+ sellerUserId: string;
73
+ }): Promise<JsonObject>;
74
+ /**
75
+ * Hold a listing's CBX ask at a dollar target, repriced hourly.
76
+ *
77
+ * Priced off a 24h MINIMUM rate, never spot — tracking spot would let
78
+ * somebody pump CBX, watch every pegged ask drop, and pay with cheaply
79
+ * bought tokens.
80
+ *
81
+ * The three bounds are not interchangeable. `maxChangeBps` limits the
82
+ * damage of one bad reading (the peg converges over cycles instead);
83
+ * `floorBaseUnits`/`ceilingBaseUnits` are the seller's own stops, so a
84
+ * sustained real move never posts a price they did not consider; and
85
+ * `minChangeBps` stops the ask being rewritten for a fraction of a
86
+ * percent.
87
+ *
88
+ * What it cannot do: accepting CBX means holding CBX. This protects
89
+ * the dollar value of the ASK, not of the tokens once received.
90
+ */
91
+ setPeg(params: {
92
+ platformListingId: string;
93
+ sellerUserId: string;
94
+ enabled: boolean;
95
+ targetCents: number;
96
+ floorBaseUnits?: string;
97
+ ceilingBaseUnits?: string;
98
+ maxChangeBps?: number;
99
+ minChangeBps?: number;
100
+ }): Promise<JsonObject>;
101
+ /**
102
+ * Stop repricing a listing.
103
+ *
104
+ * The ask stays where it is. Removing a peg does not restore an
105
+ * earlier price.
106
+ */
107
+ removePeg(listingId: string, params: {
108
+ sellerUserId: string;
109
+ }): Promise<JsonObject>;
110
+ }
111
+ //# sourceMappingURL=market.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market.d.ts","sourceRoot":"","sources":["../../../src/resources/cosm/market.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,qBAAa,iBAAkB,SAAQ,oBAAoB;IACzD;;;;;;;OAOG;IACH,OAAO,CAAC,UAAU,CAAC,EAAE,MAAM;IAQ3B;;;;;;OAMG;IACH,YAAY,CAAC,YAAY,EAAE,MAAM;IAQjC;;;;;;;;OAQG;IACH,IAAI,CAAC,KAAK,EAAE;QACV,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB;IAQD;;;;;;;OAOG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAQ/C;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAaxC;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE;IAQrC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,MAAM,EAAE;QACb,iBAAiB,EAAE,MAAM,CAAC;QAC1B,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,EAAE,OAAO,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;IAQD;;;;;OAKG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE;CAO9D"}
@@ -0,0 +1,137 @@
1
+ import { CosmCosmeticsMethods } from './cosmetics.js';
2
+ export class CosmMarketMethods extends CosmCosmeticsMethods {
3
+ /**
4
+ * Open auction listings, priced in COSM.
5
+ *
6
+ * A COSM-denominated peer market: buyers pay COSM, sellers receive
7
+ * COSM, and the 8% fee burns. Not a cash market — a cash resale market
8
+ * for COSM-bought items would reintroduce the arbitrage between a
9
+ * fixed COSM price and a floating market one.
10
+ */
11
+ auction(cosmeticId) {
12
+ return this.http.request({
13
+ method: 'GET',
14
+ path: '/v1/cosm/auction',
15
+ query: cosmeticId ? { cosmeticId } : undefined,
16
+ });
17
+ }
18
+ /**
19
+ * What a listing would cost in fees, before committing.
20
+ *
21
+ * The fee is 8% of the ask rounded UP, so a small listing can never
22
+ * pay nothing — a zero-fee listing would be a free transfer channel,
23
+ * which the design forbids outright. The seller always nets something.
24
+ */
25
+ auctionQuote(askBaseUnits) {
26
+ return this.http.request({
27
+ method: 'GET',
28
+ path: '/v1/cosm/auction/quote',
29
+ query: { askBaseUnits },
30
+ });
31
+ }
32
+ /**
33
+ * List an owned cosmetic for COSM.
34
+ *
35
+ * Refuses a bound item. One open listing per item, enforced by a
36
+ * unique index — otherwise the same cosmetic could be listed twice and
37
+ * sold to two buyers.
38
+ *
39
+ * `askBaseUnits` is a string of base units and must exceed 1.
40
+ */
41
+ list(input) {
42
+ return this.http.request({
43
+ method: 'POST',
44
+ path: '/v1/cosm/auction',
45
+ body: input,
46
+ });
47
+ }
48
+ /**
49
+ * Buy an open listing.
50
+ *
51
+ * The listing is claimed out of `open` BEFORE any COSM moves, so the
52
+ * loser of a race is refused rather than debited. Buying your own
53
+ * listing is refused by a database CHECK: it would burn the fee for
54
+ * nothing and is the obvious way to fake a market price.
55
+ */
56
+ buyListing(listingId, subjectId) {
57
+ return this.http.request({
58
+ method: 'POST',
59
+ path: `/v1/cosm/auction/${encodeURIComponent(listingId)}/buy`,
60
+ body: { subjectId },
61
+ });
62
+ }
63
+ /**
64
+ * Fuse two cosmetics plus COSM into a rarer one.
65
+ *
66
+ * The deepest sink available: it destroys on three axes at once — both
67
+ * input items AND the COSM cost — while producing something whose
68
+ * scarcity is real, because a recipe is the only route to it.
69
+ *
70
+ * Inputs must be owned, live, unbound and flagged fusable.
71
+ * Stake-exclusive items can never be consumed: there is no way to
72
+ * reissue one without falsifying its scarcity.
73
+ */
74
+ fuse(recipeId, subjectId) {
75
+ return this.http.request({
76
+ method: 'POST',
77
+ path: `/v1/cosm/fusion/${encodeURIComponent(recipeId)}`,
78
+ body: { subjectId },
79
+ });
80
+ }
81
+ // ── CBX listing pegs ─────────────────────────────────────────────
82
+ //
83
+ // Under `/v1/cosm/*` for routing reasons; the peg itself is a CBX
84
+ // price control and has nothing to do with COSM.
85
+ /**
86
+ * CBX-pegged listings and why each price last moved.
87
+ *
88
+ * `lastReason` — repriced, no_rate, below_threshold, clamped_floor,
89
+ * clamped_ceiling, clamped_change — is the field that answers "why has
90
+ * my price not moved". Read it before assuming the repricer is broken.
91
+ */
92
+ pegs(params) {
93
+ return this.http.request({
94
+ method: 'GET',
95
+ path: '/v1/cosm/pegs',
96
+ query: { sellerUserId: params.sellerUserId },
97
+ });
98
+ }
99
+ /**
100
+ * Hold a listing's CBX ask at a dollar target, repriced hourly.
101
+ *
102
+ * Priced off a 24h MINIMUM rate, never spot — tracking spot would let
103
+ * somebody pump CBX, watch every pegged ask drop, and pay with cheaply
104
+ * bought tokens.
105
+ *
106
+ * The three bounds are not interchangeable. `maxChangeBps` limits the
107
+ * damage of one bad reading (the peg converges over cycles instead);
108
+ * `floorBaseUnits`/`ceilingBaseUnits` are the seller's own stops, so a
109
+ * sustained real move never posts a price they did not consider; and
110
+ * `minChangeBps` stops the ask being rewritten for a fraction of a
111
+ * percent.
112
+ *
113
+ * What it cannot do: accepting CBX means holding CBX. This protects
114
+ * the dollar value of the ASK, not of the tokens once received.
115
+ */
116
+ setPeg(params) {
117
+ return this.http.request({
118
+ method: 'PUT',
119
+ path: '/v1/cosm/pegs',
120
+ body: params,
121
+ });
122
+ }
123
+ /**
124
+ * Stop repricing a listing.
125
+ *
126
+ * The ask stays where it is. Removing a peg does not restore an
127
+ * earlier price.
128
+ */
129
+ removePeg(listingId, params) {
130
+ return this.http.request({
131
+ method: 'DELETE',
132
+ path: `/v1/cosm/pegs/${encodeURIComponent(listingId)}`,
133
+ body: params,
134
+ });
135
+ }
136
+ }
137
+ //# sourceMappingURL=market.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market.js","sourceRoot":"","sources":["../../../src/resources/cosm/market.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,MAAM,OAAO,iBAAkB,SAAQ,oBAAoB;IACzD;;;;;;;OAOG;IACH,OAAO,CAAC,UAAmB;QACzB,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,kBAAkB;YACxB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS;SAC/C,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,YAAY,CAAC,YAAoB;QAC/B,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,wBAAwB;YAC9B,KAAK,EAAE,EAAE,YAAY,EAAE;SACxB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CAAC,KAKJ;QACC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,kBAAkB;YACxB,IAAI,EAAE,KAAK;SACZ,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,UAAU,CAAC,SAAiB,EAAE,SAAiB;QAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,oBAAoB,kBAAkB,CAAC,SAAS,CAAC,MAAM;YAC7D,IAAI,EAAE,EAAE,SAAS,EAAE;SACpB,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CAAC,QAAgB,EAAE,SAAiB;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,mBAAmB,kBAAkB,CAAC,QAAQ,CAAC,EAAE;YACvD,IAAI,EAAE,EAAE,SAAS,EAAE;SACpB,CAAC,CAAC;IACL,CAAC;IAED,oEAAoE;IACpE,EAAE;IACF,kEAAkE;IAClE,iDAAiD;IAEjD;;;;;;OAMG;IACH,IAAI,CAAC,MAAgC;QACnC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE;SAC7C,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,MASN;QACC,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,eAAe;YACrB,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,SAAS,CAAC,SAAiB,EAAE,MAAgC;QAC3D,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAa;YACnC,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,iBAAiB,kBAAkB,CAAC,SAAS,CAAC,EAAE;YACtD,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * COSM types. Re-exported from `../cosm.js`, which stays the public import
3
+ * path — nothing outside this directory should reach in here.
4
+ */
5
+ export type CosmeticTier = 'premium' | 'earned' | 'stake_exclusive';
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/resources/cosm/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * COSM types. Re-exported from `../cosm.js`, which stays the public import
3
+ * path — nothing outside this directory should reach in here.
4
+ */
5
+ export {};
6
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/resources/cosm/types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * COSM — the metaverse cosmetics currency. `/api/v1/cosm/*`.
3
+ *
4
+ * A separate resource because it is a separate token with the opposite
5
+ * properties to CBX:
6
+ *
7
+ * CBX fixed supply · backed by a reserve · spends RECIRCULATE
8
+ * COSM minted on demand · backed by nothing · spends BURN
9
+ *
10
+ * Authenticated by the same `cbx_` merchant key — it is the same
11
+ * merchant either way, and a third credential would be a third thing to
12
+ * leak, rotate and revoke for no gain.
13
+ *
14
+ * ── EVERY AMOUNT IS A STRING OF BASE UNITS ───────────────────────────
15
+ * COSM has SIX decimals, so ten thousand COSM is `"10000000000"`. They
16
+ * are strings because a JSON number loses precision past 2^53 — about
17
+ * nine billion COSM — which would work in testing and corrupt balances
18
+ * at scale. Divide by 1e6 to display, and use a bigint or a decimal
19
+ * library to do arithmetic, never a float.
20
+ *
21
+ * ── THE WITHDRAWAL METHODS EXIST AND REFUSE TODAY ────────────────────
22
+ * COSM does not leave the platform yet, so `requestWithdrawal` returns a
23
+ * 409 listing the outstanding preconditions. Call `withdrawals()` and
24
+ * read `meta.open` before offering it in a UI, and do not present a
25
+ * date — none of the preconditions has one.
26
+ *
27
+ * What does not exist at any setting is a USER-TO-USER send. The auction
28
+ * house moves COSM between users, but only through a matched listing for
29
+ * amounts derived from it. There is no free-form transfer method and
30
+ * there is not going to be one.
31
+ *
32
+ * ── WHERE THE METHODS LIVE ───────────────────────────────────────────
33
+ * `CosmResource` is one class with one method set, and callers see
34
+ * nothing else: `client.cosm.balance()`, `client.cosm.setPeg()`,
35
+ * `client.cosm.materialise()`. The bodies are grouped across `./cosm/*`
36
+ * only because a single file had outgrown the repo's size cap, and they
37
+ * are chained by inheritance rather than nested under sub-objects
38
+ * precisely so that no call path moved:
39
+ *
40
+ * base → currency → cosmetics → market → designer → CosmResource
41
+ */
42
+ import { CosmDesignerMethods } from './cosm/designer.js';
43
+ export type { CosmeticTier } from './cosm/types.js';
44
+ export declare class CosmResource extends CosmDesignerMethods {
45
+ }
46
+ //# sourceMappingURL=cosm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosm.d.ts","sourceRoot":"","sources":["../../src/resources/cosm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,YAAY,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,qBAAa,YAAa,SAAQ,mBAAmB;CAAG"}