@r2wa-org/eden 0.0.70 → 0.0.72

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 (503) hide show
  1. package/dist/admin/index.d.ts +8385 -0
  2. package/dist/admin-user/admin/dto.schemas.d.ts +878 -0
  3. package/dist/admin-user/admin/errors/index.d.ts +16 -0
  4. package/dist/admin-user/admin/errors/locales/zh.d.ts +15 -0
  5. package/dist/admin-user/admin/router.d.ts +655 -0
  6. package/dist/admin-user/admin/service.d.ts +60 -0
  7. package/dist/asset/admin/dto.schemas.d.ts +168 -0
  8. package/dist/asset/admin/router.d.ts +768 -0
  9. package/dist/asset/admin/service.d.ts +149 -0
  10. package/dist/asset/db.schemas.d.ts +380 -0
  11. package/dist/asset/errors/index.d.ts +31 -0
  12. package/dist/asset/errors/locales/zh.d.ts +19 -0
  13. package/dist/asset/index.d.ts +11 -0
  14. package/dist/asset/internal/service.d.ts +16 -0
  15. package/dist/asset/permissions.d.ts +4 -0
  16. package/dist/asset/schema.d.ts +209 -0
  17. package/dist/asset/seed.d.ts +1 -0
  18. package/dist/asset/user/dto.schemas.d.ts +80 -0
  19. package/dist/asset/user/router.d.ts +570 -0
  20. package/dist/asset/user/service.d.ts +78 -0
  21. package/dist/asset-convert-product/admin/dto.schemas.d.ts +823 -0
  22. package/dist/asset-convert-product/admin/router.d.ts +1586 -0
  23. package/dist/asset-convert-product/admin/service.d.ts +813 -0
  24. package/dist/asset-convert-product/db.schemas.d.ts +1270 -0
  25. package/dist/asset-convert-product/errors/index.d.ts +31 -0
  26. package/dist/asset-convert-product/errors/locales/zh.d.ts +30 -0
  27. package/dist/asset-convert-product/index.d.ts +8 -0
  28. package/dist/asset-convert-product/internal/service.d.ts +2 -0
  29. package/dist/asset-convert-product/permissions.d.ts +5 -0
  30. package/dist/asset-convert-product/schema.d.ts +688 -0
  31. package/dist/asset-convert-product/user/dto.schemas.d.ts +1054 -0
  32. package/dist/asset-convert-product/user/router.d.ts +776 -0
  33. package/dist/asset-convert-product/user/service.d.ts +374 -0
  34. package/dist/asset-price/admin/dto.schemas.d.ts +102 -0
  35. package/dist/asset-price/admin/router.d.ts +658 -0
  36. package/dist/asset-price/admin/service.d.ts +82 -0
  37. package/dist/asset-price/constants.d.ts +2 -0
  38. package/dist/asset-price/db.schemas.d.ts +358 -0
  39. package/dist/asset-price/errors/index.d.ts +20 -0
  40. package/dist/asset-price/errors/locales/zh.d.ts +19 -0
  41. package/dist/asset-price/index.d.ts +12 -0
  42. package/dist/asset-price/internal/service.d.ts +14 -0
  43. package/dist/asset-price/permissions.d.ts +6 -0
  44. package/dist/asset-price/schema.d.ts +191 -0
  45. package/dist/asset-price/seed.d.ts +1 -0
  46. package/dist/asset-price/user/dto.schemas.d.ts +45 -0
  47. package/dist/asset-price/user/router.d.ts +512 -0
  48. package/dist/asset-price/user/service.d.ts +26 -0
  49. package/dist/asset-type/admin/dto.schemas.d.ts +457 -0
  50. package/dist/asset-type/admin/router.d.ts +623 -0
  51. package/dist/asset-type/admin/service.d.ts +49 -0
  52. package/dist/asset-type/db.schemas.d.ts +278 -0
  53. package/dist/asset-type/errors/index.d.ts +27 -0
  54. package/dist/asset-type/errors/locales/zh.d.ts +17 -0
  55. package/dist/asset-type/index.d.ts +11 -0
  56. package/dist/asset-type/internal/service.d.ts +9 -0
  57. package/dist/asset-type/permissions.d.ts +4 -0
  58. package/dist/asset-type/schema.d.ts +150 -0
  59. package/dist/asset-type/seed.d.ts +22 -0
  60. package/dist/asset-type/user/dto.schemas.d.ts +37 -0
  61. package/dist/asset-type/user/router.d.ts +472 -0
  62. package/dist/asset-type/user/service.d.ts +19 -0
  63. package/dist/auth/better-auth.d.ts +3312 -0
  64. package/dist/auth/better-hooks.d.ts +23 -0
  65. package/dist/auth/db.schemas.d.ts +1696 -0
  66. package/dist/auth/permissions.d.ts +235 -0
  67. package/dist/auth/roles.d.ts +725 -0
  68. package/dist/auth/router.d.ts +385 -0
  69. package/dist/auth/schema.d.ts +882 -0
  70. package/dist/bank-account/admin/dto.schemas.d.ts +479 -0
  71. package/dist/bank-account/admin/router.d.ts +877 -0
  72. package/dist/bank-account/admin/service.d.ts +148 -0
  73. package/dist/bank-account/db.schemas.d.ts +1032 -0
  74. package/dist/bank-account/errors/index.d.ts +13 -0
  75. package/dist/bank-account/errors/locales/zh.d.ts +12 -0
  76. package/dist/bank-account/index.d.ts +8 -0
  77. package/dist/bank-account/internal/service.d.ts +51 -0
  78. package/dist/bank-account/permissions.d.ts +10 -0
  79. package/dist/bank-account/schema.d.ts +535 -0
  80. package/dist/bank-account/seed.d.ts +4 -0
  81. package/dist/bank-account/user/dto.schemas.d.ts +458 -0
  82. package/dist/bank-account/user/router.d.ts +680 -0
  83. package/dist/bank-account/user/service.d.ts +133 -0
  84. package/dist/check-in/admin/dto.schemas.d.ts +312 -0
  85. package/dist/check-in/admin/router.d.ts +526 -0
  86. package/dist/check-in/admin/service.d.ts +38 -0
  87. package/dist/check-in/db.schemas.d.ts +312 -0
  88. package/dist/check-in/errors/index.d.ts +13 -0
  89. package/dist/check-in/errors/locales/zh.d.ts +10 -0
  90. package/dist/check-in/index.d.ts +7 -0
  91. package/dist/check-in/internal/service.d.ts +51 -0
  92. package/dist/check-in/permissions.d.ts +6 -0
  93. package/dist/check-in/schema.d.ts +168 -0
  94. package/dist/check-in/user/dto.schemas.d.ts +503 -0
  95. package/dist/check-in/user/router.d.ts +615 -0
  96. package/dist/check-in/user/service.d.ts +49 -0
  97. package/dist/cors/index.d.ts +30 -0
  98. package/dist/cron/index.d.ts +10 -0
  99. package/dist/db/columns.helpers.d.ts +13 -0
  100. package/dist/db/enums.d.ts +1 -0
  101. package/dist/db/index.d.ts +4 -0
  102. package/dist/db/schemas.d.ts +33 -0
  103. package/dist/db/transaction.d.ts +3 -0
  104. package/dist/db/typebox.d.ts +19 -0
  105. package/dist/deposit/admin/dto.schemas.d.ts +649 -0
  106. package/dist/deposit/admin/router.d.ts +638 -0
  107. package/dist/deposit/admin/service.d.ts +127 -0
  108. package/dist/deposit/db.schemas.d.ts +652 -0
  109. package/dist/deposit/errors/index.d.ts +45 -0
  110. package/dist/deposit/errors/locales/zh.d.ts +24 -0
  111. package/dist/deposit/index.d.ts +7 -0
  112. package/dist/deposit/internal/service.d.ts +8 -0
  113. package/dist/deposit/permissions.d.ts +9 -0
  114. package/dist/deposit/schema.d.ts +340 -0
  115. package/dist/deposit/user/dto.schemas.d.ts +655 -0
  116. package/dist/deposit/user/router.d.ts +681 -0
  117. package/dist/deposit/user/service.d.ts +148 -0
  118. package/dist/dynamic-env/admin.router.d.ts +620 -0
  119. package/dist/dynamic-env/cache.d.ts +35 -0
  120. package/dist/dynamic-env/db.schemas.d.ts +182 -0
  121. package/dist/dynamic-env/dto.schema.d.ts +17 -0
  122. package/dist/dynamic-env/errors/index.d.ts +11 -0
  123. package/dist/dynamic-env/errors/locales/zh.d.ts +10 -0
  124. package/dist/dynamic-env/index.d.ts +3 -0
  125. package/dist/dynamic-env/schema.d.ts +96 -0
  126. package/dist/dynamic-env/service.d.ts +93 -0
  127. package/dist/email/index.d.ts +2 -0
  128. package/dist/env/client.d.ts +2 -0
  129. package/dist/env/index.d.ts +2 -0
  130. package/dist/env/server.d.ts +49 -0
  131. package/dist/env/typebox-env.d.ts +7 -0
  132. package/dist/error/errorcode.d.ts +9 -0
  133. package/dist/error/index.d.ts +120 -0
  134. package/dist/error/locales/zh.d.ts +2 -0
  135. package/dist/error/messages.d.ts +10 -0
  136. package/dist/external/dto.schemas.d.ts +173 -0
  137. package/dist/external/errors/index.d.ts +13 -0
  138. package/dist/external/errors/locales/zh.d.ts +10 -0
  139. package/dist/external/index.d.ts +4 -0
  140. package/dist/external/router.d.ts +105 -0
  141. package/dist/external/service.d.ts +31 -0
  142. package/dist/file-storage/admin/dto.schemas.d.ts +209 -0
  143. package/dist/file-storage/admin/router.d.ts +598 -0
  144. package/dist/file-storage/admin/service.d.ts +89 -0
  145. package/dist/file-storage/db.schemas.d.ts +1026 -0
  146. package/dist/file-storage/errors/index.d.ts +19 -0
  147. package/dist/file-storage/errors/locales/zh.d.ts +18 -0
  148. package/dist/file-storage/index.d.ts +7 -0
  149. package/dist/file-storage/internal/service.d.ts +66 -0
  150. package/dist/file-storage/permissions.d.ts +5 -0
  151. package/dist/file-storage/s3.client.d.ts +284 -0
  152. package/dist/file-storage/schema.d.ts +538 -0
  153. package/dist/file-storage/share/dto.schemas.d.ts +68 -0
  154. package/dist/file-storage/share/router.d.ts +561 -0
  155. package/dist/file-storage/user/dto.schemas.d.ts +1100 -0
  156. package/dist/file-storage/user/router.d.ts +585 -0
  157. package/dist/file-storage/user/service.d.ts +80 -0
  158. package/dist/index.d.ts +14029 -0
  159. package/dist/ledger/admin/dto.schemas.d.ts +796 -0
  160. package/dist/ledger/admin/router.d.ts +527 -0
  161. package/dist/ledger/admin/service.d.ts +155 -0
  162. package/dist/ledger/db.schemas.d.ts +694 -0
  163. package/dist/ledger/errors/index.d.ts +38 -0
  164. package/dist/ledger/errors/locales/zh.d.ts +22 -0
  165. package/dist/ledger/index.d.ts +6 -0
  166. package/dist/ledger/internal/service.d.ts +36 -0
  167. package/dist/ledger/permissions.d.ts +8 -0
  168. package/dist/ledger/schema.d.ts +364 -0
  169. package/dist/ledger/user/dto.schemas.d.ts +712 -0
  170. package/dist/ledger/user/router.d.ts +487 -0
  171. package/dist/ledger/user/service.d.ts +146 -0
  172. package/dist/ledger-account/admin/dto.schemas.d.ts +642 -0
  173. package/dist/ledger-account/admin/router.d.ts +688 -0
  174. package/dist/ledger-account/admin/service.d.ts +184 -0
  175. package/dist/ledger-account/db.schemas.d.ts +346 -0
  176. package/dist/ledger-account/errors/index.d.ts +18 -0
  177. package/dist/ledger-account/errors/locales/zh.d.ts +17 -0
  178. package/dist/ledger-account/index.d.ts +8 -0
  179. package/dist/ledger-account/internal/service.d.ts +44 -0
  180. package/dist/ledger-account/permissions.d.ts +4 -0
  181. package/dist/ledger-account/schema.d.ts +190 -0
  182. package/dist/ledger-account/user/dto.schemas.d.ts +590 -0
  183. package/dist/ledger-account/user/router.d.ts +602 -0
  184. package/dist/ledger-account/user/service.d.ts +154 -0
  185. package/dist/ledger-account-import/admin/dto.schemas.d.ts +1255 -0
  186. package/dist/ledger-account-import/admin/router.d.ts +691 -0
  187. package/dist/ledger-account-import/admin/service.d.ts +92 -0
  188. package/dist/ledger-account-import/db.schemas.d.ts +1206 -0
  189. package/dist/ledger-account-import/errors/index.d.ts +18 -0
  190. package/dist/ledger-account-import/errors/locales/zh.d.ts +17 -0
  191. package/dist/ledger-account-import/index.d.ts +8 -0
  192. package/dist/ledger-account-import/internal/service.d.ts +13 -0
  193. package/dist/ledger-account-import/permissions.d.ts +7 -0
  194. package/dist/ledger-account-import/schema.d.ts +636 -0
  195. package/dist/ledger-account-import/user/service.d.ts +3 -0
  196. package/dist/ledger-account-import/worker.d.ts +1 -0
  197. package/dist/ledger-account-transfer/admin/service.d.ts +3 -0
  198. package/dist/ledger-account-transfer/errors/index.d.ts +23 -0
  199. package/dist/ledger-account-transfer/errors/locales/zh.d.ts +15 -0
  200. package/dist/ledger-account-transfer/index.d.ts +6 -0
  201. package/dist/ledger-account-transfer/internal/service.d.ts +8 -0
  202. package/dist/ledger-account-transfer/user/dto.schemas.d.ts +20 -0
  203. package/dist/ledger-account-transfer/user/router.d.ts +466 -0
  204. package/dist/ledger-account-transfer/user/service.d.ts +16 -0
  205. package/dist/ledger-account-type/admin/dto.schemas.d.ts +509 -0
  206. package/dist/ledger-account-type/admin/router.d.ts +708 -0
  207. package/dist/ledger-account-type/admin/service.d.ts +109 -0
  208. package/dist/ledger-account-type/db.schemas.d.ts +788 -0
  209. package/dist/ledger-account-type/errors/index.d.ts +18 -0
  210. package/dist/ledger-account-type/errors/locales/zh.d.ts +17 -0
  211. package/dist/ledger-account-type/index.d.ts +9 -0
  212. package/dist/ledger-account-type/internal/service.d.ts +8 -0
  213. package/dist/ledger-account-type/permissions.d.ts +4 -0
  214. package/dist/ledger-account-type/schema.d.ts +405 -0
  215. package/dist/ledger-account-type/seed.d.ts +1 -0
  216. package/dist/ledger-account-type/user/dto.schemas.d.ts +509 -0
  217. package/dist/ledger-account-type/user/router.d.ts +534 -0
  218. package/dist/ledger-account-type/user/service.d.ts +59 -0
  219. package/dist/market-data/admin/dto.schemas.d.ts +291 -0
  220. package/dist/market-data/admin/router.d.ts +606 -0
  221. package/dist/market-data/admin/service.d.ts +52 -0
  222. package/dist/market-data/cron.d.ts +6 -0
  223. package/dist/market-data/db.schemas.d.ts +516 -0
  224. package/dist/market-data/errors/index.d.ts +12 -0
  225. package/dist/market-data/errors/locales/zh.d.ts +11 -0
  226. package/dist/market-data/index.d.ts +8 -0
  227. package/dist/market-data/internal/service.d.ts +77 -0
  228. package/dist/market-data/permissions.d.ts +6 -0
  229. package/dist/market-data/schema.d.ts +270 -0
  230. package/dist/market-data/user/dto.schemas.d.ts +289 -0
  231. package/dist/market-data/user/router.d.ts +521 -0
  232. package/dist/market-data/user/service.d.ts +30 -0
  233. package/dist/market-pricing/admin/dto.schemas.d.ts +322 -0
  234. package/dist/market-pricing/admin/router.d.ts +832 -0
  235. package/dist/market-pricing/admin/service.d.ts +129 -0
  236. package/dist/market-pricing/cron.d.ts +6 -0
  237. package/dist/market-pricing/db.schemas.d.ts +828 -0
  238. package/dist/market-pricing/errors/index.d.ts +14 -0
  239. package/dist/market-pricing/errors/locales/zh.d.ts +13 -0
  240. package/dist/market-pricing/internal/service.d.ts +35 -0
  241. package/dist/market-pricing/permissions.d.ts +4 -0
  242. package/dist/market-pricing/schema.d.ts +434 -0
  243. package/dist/nanoid/index.d.ts +2 -0
  244. package/dist/news/admin/dto.schemas.d.ts +159 -0
  245. package/dist/news/admin/router.d.ts +818 -0
  246. package/dist/news/admin/service.d.ts +220 -0
  247. package/dist/news/db.schemas.d.ts +1150 -0
  248. package/dist/news/errors/index.d.ts +20 -0
  249. package/dist/news/errors/locales/zh.d.ts +13 -0
  250. package/dist/news/index.d.ts +7 -0
  251. package/dist/news/internal/service.d.ts +7 -0
  252. package/dist/news/permissions.d.ts +4 -0
  253. package/dist/news/schema.d.ts +616 -0
  254. package/dist/news/user/dto.schemas.d.ts +178 -0
  255. package/dist/news/user/router.d.ts +617 -0
  256. package/dist/news/user/service.d.ts +228 -0
  257. package/dist/news-category/admin/dto.schemas.d.ts +52 -0
  258. package/dist/news-category/admin/router.d.ts +204 -0
  259. package/dist/news-category/admin/service.d.ts +54 -0
  260. package/dist/news-category/constants.d.ts +1 -0
  261. package/dist/news-category/db.schemas.d.ts +324 -0
  262. package/dist/news-category/errors/index.d.ts +19 -0
  263. package/dist/news-category/errors/locales/zh.d.ts +13 -0
  264. package/dist/news-category/index.d.ts +8 -0
  265. package/dist/news-category/internal/service.d.ts +5 -0
  266. package/dist/news-category/permissions.d.ts +4 -0
  267. package/dist/news-category/schema.d.ts +173 -0
  268. package/dist/news-category/seed.d.ts +12 -0
  269. package/dist/news-category/user/dto.schemas.d.ts +55 -0
  270. package/dist/news-category/user/router.d.ts +457 -0
  271. package/dist/news-category/user/service.d.ts +25 -0
  272. package/dist/notification/admin/dto.schemas.d.ts +432 -0
  273. package/dist/notification/admin/router.d.ts +576 -0
  274. package/dist/notification/admin/service.d.ts +43 -0
  275. package/dist/notification/db.schemas.d.ts +624 -0
  276. package/dist/notification/errors/index.d.ts +19 -0
  277. package/dist/notification/errors/locales/zh.d.ts +13 -0
  278. package/dist/notification/index.d.ts +7 -0
  279. package/dist/notification/internal/service.d.ts +28 -0
  280. package/dist/notification/permissions.d.ts +6 -0
  281. package/dist/notification/schema.d.ts +347 -0
  282. package/dist/notification/user/dto.schemas.d.ts +411 -0
  283. package/dist/notification/user/router.d.ts +632 -0
  284. package/dist/notification/user/service.d.ts +82 -0
  285. package/dist/portfolio/index.d.ts +2 -0
  286. package/dist/portfolio/internal/index.d.ts +1 -0
  287. package/dist/portfolio/internal/service.d.ts +5 -0
  288. package/dist/portfolio/user/dto.schemas.d.ts +352 -0
  289. package/dist/portfolio/user/index.d.ts +3 -0
  290. package/dist/portfolio/user/router.d.ts +659 -0
  291. package/dist/portfolio/user/service.d.ts +143 -0
  292. package/dist/receipt-method/admin/dto.schemas.d.ts +392 -0
  293. package/dist/receipt-method/admin/router.d.ts +576 -0
  294. package/dist/receipt-method/admin/service.d.ts +46 -0
  295. package/dist/receipt-method/db.schemas.d.ts +380 -0
  296. package/dist/receipt-method/errors/index.d.ts +17 -0
  297. package/dist/receipt-method/errors/locales/zh.d.ts +16 -0
  298. package/dist/receipt-method/index.d.ts +7 -0
  299. package/dist/receipt-method/internal/service.d.ts +33 -0
  300. package/dist/receipt-method/permissions.d.ts +4 -0
  301. package/dist/receipt-method/schema.d.ts +205 -0
  302. package/dist/receipt-method/user/dto.schemas.d.ts +417 -0
  303. package/dist/receipt-method/user/router.d.ts +602 -0
  304. package/dist/receipt-method/user/service.d.ts +73 -0
  305. package/dist/referral/admin/dto.schemas.d.ts +593 -0
  306. package/dist/referral/admin/router.d.ts +558 -0
  307. package/dist/referral/admin/service.d.ts +6 -0
  308. package/dist/referral/db.schemas.d.ts +420 -0
  309. package/dist/referral/errors/index.d.ts +14 -0
  310. package/dist/referral/errors/locales/zh.d.ts +13 -0
  311. package/dist/referral/index.d.ts +9 -0
  312. package/dist/referral/internal/service.d.ts +23 -0
  313. package/dist/referral/permissions.d.ts +8 -0
  314. package/dist/referral/schema.d.ts +235 -0
  315. package/dist/referral/user/dto.schemas.d.ts +602 -0
  316. package/dist/referral/user/router.d.ts +578 -0
  317. package/dist/referral/user/service.d.ts +21 -0
  318. package/dist/referral-depth-config/admin/dto.schemas.d.ts +203 -0
  319. package/dist/referral-depth-config/admin/router.d.ts +643 -0
  320. package/dist/referral-depth-config/admin/service.d.ts +38 -0
  321. package/dist/referral-depth-config/db.schemas.d.ts +176 -0
  322. package/dist/referral-depth-config/errors/index.d.ts +11 -0
  323. package/dist/referral-depth-config/errors/locales/zh.d.ts +10 -0
  324. package/dist/referral-depth-config/internal/service.d.ts +4 -0
  325. package/dist/referral-depth-config/permissions.d.ts +8 -0
  326. package/dist/referral-depth-config/schema.d.ts +99 -0
  327. package/dist/server-test/errors/index.d.ts +10 -0
  328. package/dist/server-test/errors/locales/zh.d.ts +9 -0
  329. package/dist/server-test/index.d.ts +486 -0
  330. package/dist/shipping-address/admin/dto.schemas.d.ts +289 -0
  331. package/dist/shipping-address/admin/router.d.ts +504 -0
  332. package/dist/shipping-address/admin/service.d.ts +17 -0
  333. package/dist/shipping-address/db.schemas.d.ts +278 -0
  334. package/dist/shipping-address/errors/index.d.ts +12 -0
  335. package/dist/shipping-address/errors/locales/zh.d.ts +11 -0
  336. package/dist/shipping-address/index.d.ts +7 -0
  337. package/dist/shipping-address/internal/service.d.ts +15 -0
  338. package/dist/shipping-address/permissions.d.ts +4 -0
  339. package/dist/shipping-address/schema.d.ts +150 -0
  340. package/dist/shipping-address/user/dto.schemas.d.ts +303 -0
  341. package/dist/shipping-address/user/router.d.ts +621 -0
  342. package/dist/shipping-address/user/service.d.ts +68 -0
  343. package/dist/sms/index.d.ts +5 -0
  344. package/dist/src/admin/index.d.ts +176 -14
  345. package/dist/src/admin-user/admin/dto.schemas.d.ts +878 -0
  346. package/dist/src/admin-user/admin/errors/index.d.ts +16 -0
  347. package/dist/src/admin-user/admin/errors/locales/zh.d.ts +15 -0
  348. package/dist/src/admin-user/admin/router.d.ts +655 -0
  349. package/dist/src/admin-user/admin/service.d.ts +60 -0
  350. package/dist/src/asset/admin/dto.schemas.d.ts +5 -5
  351. package/dist/src/asset/user/dto.schemas.d.ts +2 -2
  352. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +230 -0
  353. package/dist/src/asset-convert-product/admin/router.d.ts +164 -0
  354. package/dist/src/asset-convert-product/admin/service.d.ts +162 -0
  355. package/dist/src/auth/better-auth.d.ts +3 -3
  356. package/dist/src/auth/better-hooks.d.ts +10 -3
  357. package/dist/src/index.d.ts +176 -14
  358. package/dist/src/notification/admin/dto.schemas.d.ts +1 -1
  359. package/dist/src/user/admin/dto.schemas.d.ts +4 -4
  360. package/dist/src/wallet/admin/dto.schemas.d.ts +3 -3
  361. package/dist/src/wallet/user/dto.schemas.d.ts +2 -2
  362. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +369 -0
  363. package/dist/src/welfare-cycle/admin/router.d.ts +12 -12
  364. package/dist/src/welfare-cycle/admin/service.d.ts +3 -2
  365. package/dist/src/welfare-cycle/internal/service.d.ts +4 -115
  366. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +368 -0
  367. package/dist/src/welfare-cycle/user/service.d.ts +7 -2
  368. package/dist/team/admin/dto.schemas.d.ts +773 -0
  369. package/dist/team/admin/router.d.ts +565 -0
  370. package/dist/team/admin/service.d.ts +6 -0
  371. package/dist/team/errors/index.d.ts +12 -0
  372. package/dist/team/errors/locales/zh.d.ts +11 -0
  373. package/dist/team/index.d.ts +8 -0
  374. package/dist/team/internal/service.d.ts +6 -0
  375. package/dist/team/permissions.d.ts +7 -0
  376. package/dist/team/user/dto.schemas.d.ts +1987 -0
  377. package/dist/team/user/router.d.ts +734 -0
  378. package/dist/team/user/service.d.ts +10 -0
  379. package/dist/trade-market/admin/dto.schemas.d.ts +762 -0
  380. package/dist/trade-market/admin/router.d.ts +848 -0
  381. package/dist/trade-market/admin/service.d.ts +158 -0
  382. package/dist/trade-market/db.schemas.d.ts +1338 -0
  383. package/dist/trade-market/errors/index.d.ts +22 -0
  384. package/dist/trade-market/errors/locales/zh.d.ts +21 -0
  385. package/dist/trade-market/index.d.ts +8 -0
  386. package/dist/trade-market/internal/service.d.ts +239 -0
  387. package/dist/trade-market/permissions.d.ts +5 -0
  388. package/dist/trade-market/schema.d.ts +708 -0
  389. package/dist/trade-market/user/dto.schemas.d.ts +1394 -0
  390. package/dist/trade-market/user/router.d.ts +754 -0
  391. package/dist/trade-market/user/service.d.ts +147 -0
  392. package/dist/transfer/admin/dto.schemas.d.ts +396 -0
  393. package/dist/transfer/admin/router.d.ts +506 -0
  394. package/dist/transfer/admin/service.d.ts +56 -0
  395. package/dist/transfer/db.schemas.d.ts +386 -0
  396. package/dist/transfer/errors/index.d.ts +32 -0
  397. package/dist/transfer/errors/locales/zh.d.ts +19 -0
  398. package/dist/transfer/index.d.ts +11 -0
  399. package/dist/transfer/internal/service.d.ts +8 -0
  400. package/dist/transfer/permissions.d.ts +8 -0
  401. package/dist/transfer/schema.d.ts +204 -0
  402. package/dist/transfer/user/dto.schemas.d.ts +416 -0
  403. package/dist/transfer/user/router.d.ts +514 -0
  404. package/dist/transfer/user/service.d.ts +67 -0
  405. package/dist/user/admin/dto.schemas.d.ts +1439 -0
  406. package/dist/user/admin/router.d.ts +853 -0
  407. package/dist/user/admin/service.d.ts +164 -0
  408. package/dist/user/db.schemas.d.ts +1038 -0
  409. package/dist/user/errors/index.d.ts +40 -0
  410. package/dist/user/errors/locales/zh.d.ts +23 -0
  411. package/dist/user/index.d.ts +9 -0
  412. package/dist/user/internal/service.d.ts +22 -0
  413. package/dist/user/permissions.d.ts +7 -0
  414. package/dist/user/schema.d.ts +541 -0
  415. package/dist/user/user/dto.schemas.d.ts +14 -0
  416. package/dist/user/user/router.d.ts +558 -0
  417. package/dist/user/user/service.d.ts +89 -0
  418. package/dist/user-kyc/admin/dto.schemas.d.ts +625 -0
  419. package/dist/user-kyc/admin/router.d.ts +666 -0
  420. package/dist/user-kyc/admin/service.d.ts +89 -0
  421. package/dist/user-kyc/db.schemas.d.ts +896 -0
  422. package/dist/user-kyc/errors/index.d.ts +21 -0
  423. package/dist/user-kyc/errors/locales/zh.d.ts +14 -0
  424. package/dist/user-kyc/index.d.ts +10 -0
  425. package/dist/user-kyc/internal/service.d.ts +9 -0
  426. package/dist/user-kyc/permissions.d.ts +6 -0
  427. package/dist/user-kyc/schema.d.ts +474 -0
  428. package/dist/user-kyc/user/dto.schemas.d.ts +314 -0
  429. package/dist/user-kyc/user/router.d.ts +602 -0
  430. package/dist/user-kyc/user/service.d.ts +64 -0
  431. package/dist/user-security/admin/dto.schemas.d.ts +8 -0
  432. package/dist/user-security/admin/router.d.ts +490 -0
  433. package/dist/user-security/admin/service.d.ts +6 -0
  434. package/dist/user-security/db.schemas.d.ts +414 -0
  435. package/dist/user-security/index.d.ts +8 -0
  436. package/dist/user-security/internal/service.d.ts +15 -0
  437. package/dist/user-security/schema.d.ts +215 -0
  438. package/dist/user-security/user/dto.schemas.d.ts +21 -0
  439. package/dist/user-security/user/router.d.ts +547 -0
  440. package/dist/user-security/user/service.d.ts +15 -0
  441. package/dist/utils/date.d.ts +21 -0
  442. package/dist/utils/index.d.ts +4 -0
  443. package/dist/utils/order.d.ts +6 -0
  444. package/dist/utils/pagination.d.ts +113 -0
  445. package/dist/utils/password.d.ts +8 -0
  446. package/dist/wallet/admin/dto.schemas.d.ts +349 -0
  447. package/dist/wallet/admin/router.d.ts +581 -0
  448. package/dist/wallet/admin/service.d.ts +65 -0
  449. package/dist/wallet/db.schemas.d.ts +278 -0
  450. package/dist/wallet/errors/index.d.ts +10 -0
  451. package/dist/wallet/errors/locales/zh.d.ts +9 -0
  452. package/dist/wallet/index.d.ts +11 -0
  453. package/dist/wallet/internal/service.d.ts +177 -0
  454. package/dist/wallet/permissions.d.ts +8 -0
  455. package/dist/wallet/schema.d.ts +152 -0
  456. package/dist/wallet/seed.d.ts +1 -0
  457. package/dist/wallet/user/dto.schemas.d.ts +372 -0
  458. package/dist/wallet/user/router.d.ts +544 -0
  459. package/dist/wallet/user/service.d.ts +75 -0
  460. package/dist/wallet-type/admin/dto.schemas.d.ts +83 -0
  461. package/dist/wallet-type/admin/router.d.ts +741 -0
  462. package/dist/wallet-type/admin/service.d.ts +109 -0
  463. package/dist/wallet-type/db.schemas.d.ts +278 -0
  464. package/dist/wallet-type/errors/index.d.ts +15 -0
  465. package/dist/wallet-type/errors/locales/zh.d.ts +14 -0
  466. package/dist/wallet-type/index.d.ts +10 -0
  467. package/dist/wallet-type/internal/service.d.ts +256 -0
  468. package/dist/wallet-type/permissions.d.ts +4 -0
  469. package/dist/wallet-type/schema.d.ts +199 -0
  470. package/dist/wallet-type/seed.d.ts +1 -0
  471. package/dist/wallet-type/user/dto.schemas.d.ts +62 -0
  472. package/dist/wallet-type/user/router.d.ts +481 -0
  473. package/dist/wallet-type/user/service.d.ts +24 -0
  474. package/dist/welfare-cycle/admin/dto.schemas.d.ts +1723 -0
  475. package/dist/welfare-cycle/admin/router.d.ts +1059 -0
  476. package/dist/welfare-cycle/admin/service.d.ts +243 -0
  477. package/dist/welfare-cycle/cron.d.ts +7 -0
  478. package/dist/welfare-cycle/db.schemas.d.ts +2404 -0
  479. package/dist/welfare-cycle/errors/index.d.ts +25 -0
  480. package/dist/welfare-cycle/errors/locales/zh.d.ts +24 -0
  481. package/dist/welfare-cycle/index.d.ts +7 -0
  482. package/dist/welfare-cycle/internal/service.d.ts +135 -0
  483. package/dist/welfare-cycle/permissions.d.ts +6 -0
  484. package/dist/welfare-cycle/schema.d.ts +1272 -0
  485. package/dist/welfare-cycle/user/dto.schemas.d.ts +2072 -0
  486. package/dist/welfare-cycle/user/router.d.ts +807 -0
  487. package/dist/welfare-cycle/user/service.d.ts +191 -0
  488. package/dist/withdraw/admin/dto.schemas.d.ts +902 -0
  489. package/dist/withdraw/admin/router.d.ts +659 -0
  490. package/dist/withdraw/admin/service.d.ts +83 -0
  491. package/dist/withdraw/db.schemas.d.ts +584 -0
  492. package/dist/withdraw/errors/index.d.ts +43 -0
  493. package/dist/withdraw/errors/locales/zh.d.ts +23 -0
  494. package/dist/withdraw/index.d.ts +8 -0
  495. package/dist/withdraw/internal/index.d.ts +1 -0
  496. package/dist/withdraw/internal/service.d.ts +10 -0
  497. package/dist/withdraw/permissions.d.ts +9 -0
  498. package/dist/withdraw/schema.d.ts +307 -0
  499. package/dist/withdraw/user/dto.schemas.d.ts +1508 -0
  500. package/dist/withdraw/user/index.d.ts +3 -0
  501. package/dist/withdraw/user/router.d.ts +649 -0
  502. package/dist/withdraw/user/service.d.ts +65 -0
  503. package/package.json +1 -1
@@ -0,0 +1,1586 @@
1
+ import Elysia from "elysia";
2
+ export declare const assetConvertProductAdminRouter: Elysia<"/asset_convert_product", {
3
+ decorator: {};
4
+ store: {};
5
+ derive: {};
6
+ resolve: {};
7
+ }, {
8
+ typebox: {};
9
+ error: {};
10
+ }, {
11
+ schema: {};
12
+ standaloneSchema: {};
13
+ macro: {};
14
+ macroFn: {};
15
+ parser: {};
16
+ response: {};
17
+ } & {
18
+ schema: {};
19
+ standaloneSchema: {};
20
+ macro: Partial<{
21
+ readonly auth: boolean;
22
+ readonly admin: boolean;
23
+ }>;
24
+ macroFn: {
25
+ readonly auth: {
26
+ readonly resolve: ({ status, request: { headers } }: {
27
+ body: unknown;
28
+ query: Record<string, string>;
29
+ params: {};
30
+ headers: Record<string, string | undefined>;
31
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
32
+ server: import("elysia/universal/server").Server | null;
33
+ redirect: import("elysia").redirect;
34
+ set: {
35
+ headers: import("elysia").HTTPHeaders;
36
+ status?: number | keyof import("elysia").StatusMap;
37
+ redirect?: string;
38
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
39
+ };
40
+ path: string;
41
+ route: string;
42
+ request: Request;
43
+ store: {};
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
+ readonly 100: "Continue";
46
+ readonly 101: "Switching Protocols";
47
+ readonly 102: "Processing";
48
+ readonly 103: "Early Hints";
49
+ readonly 200: "OK";
50
+ readonly 201: "Created";
51
+ readonly 202: "Accepted";
52
+ readonly 203: "Non-Authoritative Information";
53
+ readonly 204: "No Content";
54
+ readonly 205: "Reset Content";
55
+ readonly 206: "Partial Content";
56
+ readonly 207: "Multi-Status";
57
+ readonly 208: "Already Reported";
58
+ readonly 300: "Multiple Choices";
59
+ readonly 301: "Moved Permanently";
60
+ readonly 302: "Found";
61
+ readonly 303: "See Other";
62
+ readonly 304: "Not Modified";
63
+ readonly 307: "Temporary Redirect";
64
+ readonly 308: "Permanent Redirect";
65
+ readonly 400: "Bad Request";
66
+ readonly 401: "Unauthorized";
67
+ readonly 402: "Payment Required";
68
+ readonly 403: "Forbidden";
69
+ readonly 404: "Not Found";
70
+ readonly 405: "Method Not Allowed";
71
+ readonly 406: "Not Acceptable";
72
+ readonly 407: "Proxy Authentication Required";
73
+ readonly 408: "Request Timeout";
74
+ readonly 409: "Conflict";
75
+ readonly 410: "Gone";
76
+ readonly 411: "Length Required";
77
+ readonly 412: "Precondition Failed";
78
+ readonly 413: "Payload Too Large";
79
+ readonly 414: "URI Too Long";
80
+ readonly 415: "Unsupported Media Type";
81
+ readonly 416: "Range Not Satisfiable";
82
+ readonly 417: "Expectation Failed";
83
+ readonly 418: "I'm a teapot";
84
+ readonly 420: "Enhance Your Calm";
85
+ readonly 421: "Misdirected Request";
86
+ readonly 422: "Unprocessable Content";
87
+ readonly 423: "Locked";
88
+ readonly 424: "Failed Dependency";
89
+ readonly 425: "Too Early";
90
+ readonly 426: "Upgrade Required";
91
+ readonly 428: "Precondition Required";
92
+ readonly 429: "Too Many Requests";
93
+ readonly 431: "Request Header Fields Too Large";
94
+ readonly 451: "Unavailable For Legal Reasons";
95
+ readonly 500: "Internal Server Error";
96
+ readonly 501: "Not Implemented";
97
+ readonly 502: "Bad Gateway";
98
+ readonly 503: "Service Unavailable";
99
+ readonly 504: "Gateway Timeout";
100
+ readonly 505: "HTTP Version Not Supported";
101
+ readonly 506: "Variant Also Negotiates";
102
+ readonly 507: "Insufficient Storage";
103
+ readonly 508: "Loop Detected";
104
+ readonly 510: "Not Extended";
105
+ readonly 511: "Network Authentication Required";
106
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
107
+ readonly Continue: 100;
108
+ readonly "Switching Protocols": 101;
109
+ readonly Processing: 102;
110
+ readonly "Early Hints": 103;
111
+ readonly OK: 200;
112
+ readonly Created: 201;
113
+ readonly Accepted: 202;
114
+ readonly "Non-Authoritative Information": 203;
115
+ readonly "No Content": 204;
116
+ readonly "Reset Content": 205;
117
+ readonly "Partial Content": 206;
118
+ readonly "Multi-Status": 207;
119
+ readonly "Already Reported": 208;
120
+ readonly "Multiple Choices": 300;
121
+ readonly "Moved Permanently": 301;
122
+ readonly Found: 302;
123
+ readonly "See Other": 303;
124
+ readonly "Not Modified": 304;
125
+ readonly "Temporary Redirect": 307;
126
+ readonly "Permanent Redirect": 308;
127
+ readonly "Bad Request": 400;
128
+ readonly Unauthorized: 401;
129
+ readonly "Payment Required": 402;
130
+ readonly Forbidden: 403;
131
+ readonly "Not Found": 404;
132
+ readonly "Method Not Allowed": 405;
133
+ readonly "Not Acceptable": 406;
134
+ readonly "Proxy Authentication Required": 407;
135
+ readonly "Request Timeout": 408;
136
+ readonly Conflict: 409;
137
+ readonly Gone: 410;
138
+ readonly "Length Required": 411;
139
+ readonly "Precondition Failed": 412;
140
+ readonly "Payload Too Large": 413;
141
+ readonly "URI Too Long": 414;
142
+ readonly "Unsupported Media Type": 415;
143
+ readonly "Range Not Satisfiable": 416;
144
+ readonly "Expectation Failed": 417;
145
+ readonly "I'm a teapot": 418;
146
+ readonly "Enhance Your Calm": 420;
147
+ readonly "Misdirected Request": 421;
148
+ readonly "Unprocessable Content": 422;
149
+ readonly Locked: 423;
150
+ readonly "Failed Dependency": 424;
151
+ readonly "Too Early": 425;
152
+ readonly "Upgrade Required": 426;
153
+ readonly "Precondition Required": 428;
154
+ readonly "Too Many Requests": 429;
155
+ readonly "Request Header Fields Too Large": 431;
156
+ readonly "Unavailable For Legal Reasons": 451;
157
+ readonly "Internal Server Error": 500;
158
+ readonly "Not Implemented": 501;
159
+ readonly "Bad Gateway": 502;
160
+ readonly "Service Unavailable": 503;
161
+ readonly "Gateway Timeout": 504;
162
+ readonly "HTTP Version Not Supported": 505;
163
+ readonly "Variant Also Negotiates": 506;
164
+ readonly "Insufficient Storage": 507;
165
+ readonly "Loop Detected": 508;
166
+ readonly "Not Extended": 510;
167
+ readonly "Network Authentication Required": 511;
168
+ }[Code] : Code>;
169
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | {
170
+ user: {
171
+ id: string;
172
+ createdAt: Date;
173
+ updatedAt: Date;
174
+ email: string;
175
+ emailVerified: boolean;
176
+ name: string;
177
+ image?: string | null | undefined | undefined;
178
+ twoFactorEnabled: boolean | null | undefined;
179
+ username?: string | null | undefined;
180
+ displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
+ banned: boolean | null | undefined;
184
+ role?: string | null | undefined;
185
+ banReason?: string | null | undefined;
186
+ banExpires?: Date | null | undefined;
187
+ };
188
+ session: {
189
+ id: string;
190
+ createdAt: Date;
191
+ updatedAt: Date;
192
+ userId: string;
193
+ expiresAt: Date;
194
+ token: string;
195
+ ipAddress?: string | null | undefined | undefined;
196
+ userAgent?: string | null | undefined | undefined;
197
+ impersonatedBy?: string | null | undefined;
198
+ };
199
+ }>;
200
+ };
201
+ readonly admin: {
202
+ readonly resolve: ({ status, request: { headers } }: {
203
+ body: unknown;
204
+ query: Record<string, string>;
205
+ params: {};
206
+ headers: Record<string, string | undefined>;
207
+ cookie: Record<string, import("elysia").Cookie<unknown>>;
208
+ server: import("elysia/universal/server").Server | null;
209
+ redirect: import("elysia").redirect;
210
+ set: {
211
+ headers: import("elysia").HTTPHeaders;
212
+ status?: number | keyof import("elysia").StatusMap;
213
+ redirect?: string;
214
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
215
+ };
216
+ path: string;
217
+ route: string;
218
+ request: Request;
219
+ store: {};
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
+ readonly 100: "Continue";
222
+ readonly 101: "Switching Protocols";
223
+ readonly 102: "Processing";
224
+ readonly 103: "Early Hints";
225
+ readonly 200: "OK";
226
+ readonly 201: "Created";
227
+ readonly 202: "Accepted";
228
+ readonly 203: "Non-Authoritative Information";
229
+ readonly 204: "No Content";
230
+ readonly 205: "Reset Content";
231
+ readonly 206: "Partial Content";
232
+ readonly 207: "Multi-Status";
233
+ readonly 208: "Already Reported";
234
+ readonly 300: "Multiple Choices";
235
+ readonly 301: "Moved Permanently";
236
+ readonly 302: "Found";
237
+ readonly 303: "See Other";
238
+ readonly 304: "Not Modified";
239
+ readonly 307: "Temporary Redirect";
240
+ readonly 308: "Permanent Redirect";
241
+ readonly 400: "Bad Request";
242
+ readonly 401: "Unauthorized";
243
+ readonly 402: "Payment Required";
244
+ readonly 403: "Forbidden";
245
+ readonly 404: "Not Found";
246
+ readonly 405: "Method Not Allowed";
247
+ readonly 406: "Not Acceptable";
248
+ readonly 407: "Proxy Authentication Required";
249
+ readonly 408: "Request Timeout";
250
+ readonly 409: "Conflict";
251
+ readonly 410: "Gone";
252
+ readonly 411: "Length Required";
253
+ readonly 412: "Precondition Failed";
254
+ readonly 413: "Payload Too Large";
255
+ readonly 414: "URI Too Long";
256
+ readonly 415: "Unsupported Media Type";
257
+ readonly 416: "Range Not Satisfiable";
258
+ readonly 417: "Expectation Failed";
259
+ readonly 418: "I'm a teapot";
260
+ readonly 420: "Enhance Your Calm";
261
+ readonly 421: "Misdirected Request";
262
+ readonly 422: "Unprocessable Content";
263
+ readonly 423: "Locked";
264
+ readonly 424: "Failed Dependency";
265
+ readonly 425: "Too Early";
266
+ readonly 426: "Upgrade Required";
267
+ readonly 428: "Precondition Required";
268
+ readonly 429: "Too Many Requests";
269
+ readonly 431: "Request Header Fields Too Large";
270
+ readonly 451: "Unavailable For Legal Reasons";
271
+ readonly 500: "Internal Server Error";
272
+ readonly 501: "Not Implemented";
273
+ readonly 502: "Bad Gateway";
274
+ readonly 503: "Service Unavailable";
275
+ readonly 504: "Gateway Timeout";
276
+ readonly 505: "HTTP Version Not Supported";
277
+ readonly 506: "Variant Also Negotiates";
278
+ readonly 507: "Insufficient Storage";
279
+ readonly 508: "Loop Detected";
280
+ readonly 510: "Not Extended";
281
+ readonly 511: "Network Authentication Required";
282
+ }[Code] : Code>(code: Code, response?: T) => import("elysia").ElysiaCustomStatusResponse<Code, T, Code extends "Continue" | "Switching Protocols" | "Processing" | "Early Hints" | "OK" | "Created" | "Accepted" | "Non-Authoritative Information" | "No Content" | "Reset Content" | "Partial Content" | "Multi-Status" | "Already Reported" | "Multiple Choices" | "Moved Permanently" | "Found" | "See Other" | "Not Modified" | "Temporary Redirect" | "Permanent Redirect" | "Bad Request" | "Unauthorized" | "Payment Required" | "Forbidden" | "Not Found" | "Method Not Allowed" | "Not Acceptable" | "Proxy Authentication Required" | "Request Timeout" | "Conflict" | "Gone" | "Length Required" | "Precondition Failed" | "Payload Too Large" | "URI Too Long" | "Unsupported Media Type" | "Range Not Satisfiable" | "Expectation Failed" | "I'm a teapot" | "Enhance Your Calm" | "Misdirected Request" | "Unprocessable Content" | "Locked" | "Failed Dependency" | "Too Early" | "Upgrade Required" | "Precondition Required" | "Too Many Requests" | "Request Header Fields Too Large" | "Unavailable For Legal Reasons" | "Internal Server Error" | "Not Implemented" | "Bad Gateway" | "Service Unavailable" | "Gateway Timeout" | "HTTP Version Not Supported" | "Variant Also Negotiates" | "Insufficient Storage" | "Loop Detected" | "Not Extended" | "Network Authentication Required" ? {
283
+ readonly Continue: 100;
284
+ readonly "Switching Protocols": 101;
285
+ readonly Processing: 102;
286
+ readonly "Early Hints": 103;
287
+ readonly OK: 200;
288
+ readonly Created: 201;
289
+ readonly Accepted: 202;
290
+ readonly "Non-Authoritative Information": 203;
291
+ readonly "No Content": 204;
292
+ readonly "Reset Content": 205;
293
+ readonly "Partial Content": 206;
294
+ readonly "Multi-Status": 207;
295
+ readonly "Already Reported": 208;
296
+ readonly "Multiple Choices": 300;
297
+ readonly "Moved Permanently": 301;
298
+ readonly Found: 302;
299
+ readonly "See Other": 303;
300
+ readonly "Not Modified": 304;
301
+ readonly "Temporary Redirect": 307;
302
+ readonly "Permanent Redirect": 308;
303
+ readonly "Bad Request": 400;
304
+ readonly Unauthorized: 401;
305
+ readonly "Payment Required": 402;
306
+ readonly Forbidden: 403;
307
+ readonly "Not Found": 404;
308
+ readonly "Method Not Allowed": 405;
309
+ readonly "Not Acceptable": 406;
310
+ readonly "Proxy Authentication Required": 407;
311
+ readonly "Request Timeout": 408;
312
+ readonly Conflict: 409;
313
+ readonly Gone: 410;
314
+ readonly "Length Required": 411;
315
+ readonly "Precondition Failed": 412;
316
+ readonly "Payload Too Large": 413;
317
+ readonly "URI Too Long": 414;
318
+ readonly "Unsupported Media Type": 415;
319
+ readonly "Range Not Satisfiable": 416;
320
+ readonly "Expectation Failed": 417;
321
+ readonly "I'm a teapot": 418;
322
+ readonly "Enhance Your Calm": 420;
323
+ readonly "Misdirected Request": 421;
324
+ readonly "Unprocessable Content": 422;
325
+ readonly Locked: 423;
326
+ readonly "Failed Dependency": 424;
327
+ readonly "Too Early": 425;
328
+ readonly "Upgrade Required": 426;
329
+ readonly "Precondition Required": 428;
330
+ readonly "Too Many Requests": 429;
331
+ readonly "Request Header Fields Too Large": 431;
332
+ readonly "Unavailable For Legal Reasons": 451;
333
+ readonly "Internal Server Error": 500;
334
+ readonly "Not Implemented": 501;
335
+ readonly "Bad Gateway": 502;
336
+ readonly "Service Unavailable": 503;
337
+ readonly "Gateway Timeout": 504;
338
+ readonly "HTTP Version Not Supported": 505;
339
+ readonly "Variant Also Negotiates": 506;
340
+ readonly "Insufficient Storage": 507;
341
+ readonly "Loop Detected": 508;
342
+ readonly "Not Extended": 510;
343
+ readonly "Network Authentication Required": 511;
344
+ }[Code] : Code>;
345
+ }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | import("elysia").ElysiaCustomStatusResponse<403, "Forbidden: Admins only", 403> | {
346
+ user: {
347
+ id: string;
348
+ createdAt: Date;
349
+ updatedAt: Date;
350
+ email: string;
351
+ emailVerified: boolean;
352
+ name: string;
353
+ image?: string | null | undefined | undefined;
354
+ twoFactorEnabled: boolean | null | undefined;
355
+ username?: string | null | undefined;
356
+ displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
+ banned: boolean | null | undefined;
360
+ role?: string | null | undefined;
361
+ banReason?: string | null | undefined;
362
+ banExpires?: Date | null | undefined;
363
+ };
364
+ session: {
365
+ id: string;
366
+ createdAt: Date;
367
+ updatedAt: Date;
368
+ userId: string;
369
+ expiresAt: Date;
370
+ token: string;
371
+ ipAddress?: string | null | undefined | undefined;
372
+ userAgent?: string | null | undefined | undefined;
373
+ impersonatedBy?: string | null | undefined;
374
+ };
375
+ }>;
376
+ };
377
+ };
378
+ parser: {};
379
+ response: {};
380
+ }, {
381
+ asset_convert_product: {};
382
+ } & {
383
+ asset_convert_product: {
384
+ products: {
385
+ post: {
386
+ body: {
387
+ description?: string | null | undefined;
388
+ status?: "active" | "draft" | "paused" | "ended" | undefined;
389
+ allowPurchase?: boolean | undefined;
390
+ isHot?: boolean | undefined;
391
+ name: string;
392
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
393
+ targetAssetId: string;
394
+ payAssetId: string;
395
+ payAccountTypeId: string;
396
+ receiveAccountTypeId: string;
397
+ minPayAmount: string;
398
+ settlementMode: "available" | "locked";
399
+ };
400
+ params: {};
401
+ query: {};
402
+ headers: {};
403
+ response: {
404
+ 200: {
405
+ id: string;
406
+ name: string;
407
+ createdAt: Date;
408
+ updatedAt: Date;
409
+ description: string | null;
410
+ status: "active" | "draft" | "paused" | "ended";
411
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
412
+ targetAssetId: string;
413
+ payAssetId: string;
414
+ payAccountTypeId: string;
415
+ receiveAccountTypeId: string;
416
+ minPayAmount: string;
417
+ settlementMode: "available" | "locked";
418
+ allowPurchase: boolean;
419
+ isHot: boolean;
420
+ targetAsset: {
421
+ symbol: string;
422
+ id: string;
423
+ name: string;
424
+ code: string;
425
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
426
+ isActive: boolean;
427
+ precision: number;
428
+ };
429
+ payAsset: {
430
+ symbol: string;
431
+ id: string;
432
+ name: string;
433
+ code: string;
434
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
435
+ isActive: boolean;
436
+ precision: number;
437
+ };
438
+ payAccountType: {
439
+ id: string;
440
+ name: string;
441
+ key: string;
442
+ isActive: boolean;
443
+ };
444
+ receiveAccountType: {
445
+ id: string;
446
+ name: string;
447
+ key: string;
448
+ isActive: boolean;
449
+ };
450
+ };
451
+ 422: {
452
+ type: "validation";
453
+ on: string;
454
+ summary?: string;
455
+ message?: string;
456
+ found?: unknown;
457
+ property?: string;
458
+ expected?: string;
459
+ };
460
+ 401: "Unauthorized";
461
+ 403: "Forbidden: Admins only";
462
+ };
463
+ };
464
+ };
465
+ };
466
+ } & {
467
+ asset_convert_product: {
468
+ products: {
469
+ ":id": {
470
+ patch: {
471
+ body: {
472
+ name?: string | undefined;
473
+ description?: string | null | undefined;
474
+ status?: "active" | "draft" | "paused" | "ended" | undefined;
475
+ productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
476
+ targetAssetId?: string | undefined;
477
+ payAssetId?: string | undefined;
478
+ payAccountTypeId?: string | undefined;
479
+ receiveAccountTypeId?: string | undefined;
480
+ minPayAmount?: string | undefined;
481
+ settlementMode?: "available" | "locked" | undefined;
482
+ allowPurchase?: boolean | undefined;
483
+ isHot?: boolean | undefined;
484
+ };
485
+ params: {
486
+ id: string;
487
+ };
488
+ query: {};
489
+ headers: {};
490
+ response: {
491
+ 200: {
492
+ id: string;
493
+ name: string;
494
+ createdAt: Date;
495
+ updatedAt: Date;
496
+ description: string | null;
497
+ status: "active" | "draft" | "paused" | "ended";
498
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
499
+ targetAssetId: string;
500
+ payAssetId: string;
501
+ payAccountTypeId: string;
502
+ receiveAccountTypeId: string;
503
+ minPayAmount: string;
504
+ settlementMode: "available" | "locked";
505
+ allowPurchase: boolean;
506
+ isHot: boolean;
507
+ targetAsset: {
508
+ symbol: string;
509
+ id: string;
510
+ name: string;
511
+ code: string;
512
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
513
+ isActive: boolean;
514
+ precision: number;
515
+ };
516
+ payAsset: {
517
+ symbol: string;
518
+ id: string;
519
+ name: string;
520
+ code: string;
521
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
522
+ isActive: boolean;
523
+ precision: number;
524
+ };
525
+ payAccountType: {
526
+ id: string;
527
+ name: string;
528
+ key: string;
529
+ isActive: boolean;
530
+ };
531
+ receiveAccountType: {
532
+ id: string;
533
+ name: string;
534
+ key: string;
535
+ isActive: boolean;
536
+ };
537
+ };
538
+ 422: {
539
+ type: "validation";
540
+ on: string;
541
+ summary?: string;
542
+ message?: string;
543
+ found?: unknown;
544
+ property?: string;
545
+ expected?: string;
546
+ };
547
+ 401: "Unauthorized";
548
+ 403: "Forbidden: Admins only";
549
+ };
550
+ };
551
+ };
552
+ };
553
+ };
554
+ } & {
555
+ asset_convert_product: {
556
+ products: {
557
+ ":id": {
558
+ activate: {
559
+ post: {
560
+ body: {};
561
+ params: {
562
+ id: string;
563
+ };
564
+ query: {};
565
+ headers: {};
566
+ response: {
567
+ 200: {
568
+ id: string;
569
+ name: string;
570
+ createdAt: Date;
571
+ updatedAt: Date;
572
+ description: string | null;
573
+ status: "active" | "draft" | "paused" | "ended";
574
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
575
+ targetAssetId: string;
576
+ payAssetId: string;
577
+ payAccountTypeId: string;
578
+ receiveAccountTypeId: string;
579
+ minPayAmount: string;
580
+ settlementMode: "available" | "locked";
581
+ allowPurchase: boolean;
582
+ isHot: boolean;
583
+ targetAsset: {
584
+ symbol: string;
585
+ id: string;
586
+ name: string;
587
+ code: string;
588
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
589
+ isActive: boolean;
590
+ precision: number;
591
+ };
592
+ payAsset: {
593
+ symbol: string;
594
+ id: string;
595
+ name: string;
596
+ code: string;
597
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
598
+ isActive: boolean;
599
+ precision: number;
600
+ };
601
+ payAccountType: {
602
+ id: string;
603
+ name: string;
604
+ key: string;
605
+ isActive: boolean;
606
+ };
607
+ receiveAccountType: {
608
+ id: string;
609
+ name: string;
610
+ key: string;
611
+ isActive: boolean;
612
+ };
613
+ };
614
+ 422: {
615
+ type: "validation";
616
+ on: string;
617
+ summary?: string;
618
+ message?: string;
619
+ found?: unknown;
620
+ property?: string;
621
+ expected?: string;
622
+ };
623
+ 401: "Unauthorized";
624
+ 403: "Forbidden: Admins only";
625
+ };
626
+ };
627
+ };
628
+ };
629
+ };
630
+ };
631
+ } & {
632
+ asset_convert_product: {
633
+ products: {
634
+ ":id": {
635
+ pause: {
636
+ post: {
637
+ body: {};
638
+ params: {
639
+ id: string;
640
+ };
641
+ query: {};
642
+ headers: {};
643
+ response: {
644
+ 200: {
645
+ id: string;
646
+ name: string;
647
+ createdAt: Date;
648
+ updatedAt: Date;
649
+ description: string | null;
650
+ status: "active" | "draft" | "paused" | "ended";
651
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
652
+ targetAssetId: string;
653
+ payAssetId: string;
654
+ payAccountTypeId: string;
655
+ receiveAccountTypeId: string;
656
+ minPayAmount: string;
657
+ settlementMode: "available" | "locked";
658
+ allowPurchase: boolean;
659
+ isHot: boolean;
660
+ targetAsset: {
661
+ symbol: string;
662
+ id: string;
663
+ name: string;
664
+ code: string;
665
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
666
+ isActive: boolean;
667
+ precision: number;
668
+ };
669
+ payAsset: {
670
+ symbol: string;
671
+ id: string;
672
+ name: string;
673
+ code: string;
674
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
675
+ isActive: boolean;
676
+ precision: number;
677
+ };
678
+ payAccountType: {
679
+ id: string;
680
+ name: string;
681
+ key: string;
682
+ isActive: boolean;
683
+ };
684
+ receiveAccountType: {
685
+ id: string;
686
+ name: string;
687
+ key: string;
688
+ isActive: boolean;
689
+ };
690
+ };
691
+ 422: {
692
+ type: "validation";
693
+ on: string;
694
+ summary?: string;
695
+ message?: string;
696
+ found?: unknown;
697
+ property?: string;
698
+ expected?: string;
699
+ };
700
+ 401: "Unauthorized";
701
+ 403: "Forbidden: Admins only";
702
+ };
703
+ };
704
+ };
705
+ };
706
+ };
707
+ };
708
+ } & {
709
+ asset_convert_product: {
710
+ products: {
711
+ ":id": {
712
+ end: {
713
+ post: {
714
+ body: {};
715
+ params: {
716
+ id: string;
717
+ };
718
+ query: {};
719
+ headers: {};
720
+ response: {
721
+ 200: {
722
+ id: string;
723
+ name: string;
724
+ createdAt: Date;
725
+ updatedAt: Date;
726
+ description: string | null;
727
+ status: "active" | "draft" | "paused" | "ended";
728
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
729
+ targetAssetId: string;
730
+ payAssetId: string;
731
+ payAccountTypeId: string;
732
+ receiveAccountTypeId: string;
733
+ minPayAmount: string;
734
+ settlementMode: "available" | "locked";
735
+ allowPurchase: boolean;
736
+ isHot: boolean;
737
+ targetAsset: {
738
+ symbol: string;
739
+ id: string;
740
+ name: string;
741
+ code: string;
742
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
743
+ isActive: boolean;
744
+ precision: number;
745
+ };
746
+ payAsset: {
747
+ symbol: string;
748
+ id: string;
749
+ name: string;
750
+ code: string;
751
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
752
+ isActive: boolean;
753
+ precision: number;
754
+ };
755
+ payAccountType: {
756
+ id: string;
757
+ name: string;
758
+ key: string;
759
+ isActive: boolean;
760
+ };
761
+ receiveAccountType: {
762
+ id: string;
763
+ name: string;
764
+ key: string;
765
+ isActive: boolean;
766
+ };
767
+ };
768
+ 422: {
769
+ type: "validation";
770
+ on: string;
771
+ summary?: string;
772
+ message?: string;
773
+ found?: unknown;
774
+ property?: string;
775
+ expected?: string;
776
+ };
777
+ 401: "Unauthorized";
778
+ 403: "Forbidden: Admins only";
779
+ };
780
+ };
781
+ };
782
+ };
783
+ };
784
+ };
785
+ } & {
786
+ asset_convert_product: {
787
+ products: {
788
+ ":id": {
789
+ get: {
790
+ body: {};
791
+ params: {
792
+ id: string;
793
+ };
794
+ query: {};
795
+ headers: {};
796
+ response: {
797
+ 200: {
798
+ id: string;
799
+ name: string;
800
+ createdAt: Date;
801
+ updatedAt: Date;
802
+ description: string | null;
803
+ status: "active" | "draft" | "paused" | "ended";
804
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
805
+ targetAssetId: string;
806
+ payAssetId: string;
807
+ payAccountTypeId: string;
808
+ receiveAccountTypeId: string;
809
+ minPayAmount: string;
810
+ settlementMode: "available" | "locked";
811
+ allowPurchase: boolean;
812
+ isHot: boolean;
813
+ targetAsset: {
814
+ symbol: string;
815
+ id: string;
816
+ name: string;
817
+ code: string;
818
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
819
+ isActive: boolean;
820
+ precision: number;
821
+ };
822
+ payAsset: {
823
+ symbol: string;
824
+ id: string;
825
+ name: string;
826
+ code: string;
827
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
828
+ isActive: boolean;
829
+ precision: number;
830
+ };
831
+ payAccountType: {
832
+ id: string;
833
+ name: string;
834
+ key: string;
835
+ isActive: boolean;
836
+ };
837
+ receiveAccountType: {
838
+ id: string;
839
+ name: string;
840
+ key: string;
841
+ isActive: boolean;
842
+ };
843
+ };
844
+ 422: {
845
+ type: "validation";
846
+ on: string;
847
+ summary?: string;
848
+ message?: string;
849
+ found?: unknown;
850
+ property?: string;
851
+ expected?: string;
852
+ };
853
+ 401: "Unauthorized";
854
+ 403: "Forbidden: Admins only";
855
+ };
856
+ };
857
+ };
858
+ };
859
+ };
860
+ } & {
861
+ asset_convert_product: {
862
+ products: {
863
+ get: {
864
+ body: {};
865
+ params: {};
866
+ query: {
867
+ id?: string | undefined;
868
+ name?: string | undefined;
869
+ status?: "active" | "draft" | "paused" | "ended" | undefined;
870
+ productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
871
+ targetAssetId?: string | undefined;
872
+ payAssetId?: string | undefined;
873
+ payAccountTypeId?: string | undefined;
874
+ receiveAccountTypeId?: string | undefined;
875
+ settlementMode?: "available" | "locked" | undefined;
876
+ allowPurchase?: boolean | undefined;
877
+ isHot?: boolean | undefined;
878
+ limit?: number | undefined;
879
+ offset?: number | undefined;
880
+ pageSize?: number | undefined;
881
+ pageIndex?: number | undefined;
882
+ createdAtStart?: Date | undefined;
883
+ createdAtEnd?: Date | undefined;
884
+ updatedAtStart?: Date | undefined;
885
+ updatedAtEnd?: Date | undefined;
886
+ };
887
+ headers: {};
888
+ response: {
889
+ 200: {
890
+ data: {
891
+ id: string;
892
+ name: string;
893
+ createdAt: Date;
894
+ updatedAt: Date;
895
+ description: string | null;
896
+ status: "active" | "draft" | "paused" | "ended";
897
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
898
+ targetAssetId: string;
899
+ payAssetId: string;
900
+ payAccountTypeId: string;
901
+ receiveAccountTypeId: string;
902
+ minPayAmount: string;
903
+ settlementMode: "available" | "locked";
904
+ allowPurchase: boolean;
905
+ isHot: boolean;
906
+ targetAsset: {
907
+ symbol: string;
908
+ id: string;
909
+ name: string;
910
+ code: string;
911
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
912
+ isActive: boolean;
913
+ precision: number;
914
+ };
915
+ payAsset: {
916
+ symbol: string;
917
+ id: string;
918
+ name: string;
919
+ code: string;
920
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
921
+ isActive: boolean;
922
+ precision: number;
923
+ };
924
+ payAccountType: {
925
+ id: string;
926
+ name: string;
927
+ key: string;
928
+ isActive: boolean;
929
+ };
930
+ receiveAccountType: {
931
+ id: string;
932
+ name: string;
933
+ key: string;
934
+ isActive: boolean;
935
+ };
936
+ }[];
937
+ pagination: {
938
+ total: number;
939
+ pageSize: number;
940
+ pageIndex: number;
941
+ totalPages: number;
942
+ hasNextPage: boolean;
943
+ };
944
+ };
945
+ 422: {
946
+ type: "validation";
947
+ on: string;
948
+ summary?: string;
949
+ message?: string;
950
+ found?: unknown;
951
+ property?: string;
952
+ expected?: string;
953
+ };
954
+ 401: "Unauthorized";
955
+ 403: "Forbidden: Admins only";
956
+ };
957
+ };
958
+ };
959
+ };
960
+ } & {
961
+ asset_convert_product: {
962
+ orders: {
963
+ get: {
964
+ body: {};
965
+ params: {};
966
+ query: {
967
+ id?: string | undefined;
968
+ userId?: string | undefined;
969
+ status?: "created" | "completed" | undefined;
970
+ idempotencyKey?: string | undefined;
971
+ orderNo?: string | undefined;
972
+ productId?: string | undefined;
973
+ sourcePayAccountId?: string | undefined;
974
+ receiveAccountId?: string | undefined;
975
+ limit?: number | undefined;
976
+ offset?: number | undefined;
977
+ pageSize?: number | undefined;
978
+ pageIndex?: number | undefined;
979
+ createdAtStart?: Date | undefined;
980
+ createdAtEnd?: Date | undefined;
981
+ };
982
+ headers: {};
983
+ response: {
984
+ 200: {
985
+ data: {
986
+ debitLedgerEntry?: {
987
+ id: string;
988
+ createdAt: Date;
989
+ bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
990
+ amount: string;
991
+ referenceId: string;
992
+ referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
993
+ } | undefined;
994
+ creditLedgerEntry?: {
995
+ id: string;
996
+ createdAt: Date;
997
+ bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
998
+ amount: string;
999
+ referenceId: string;
1000
+ referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
1001
+ } | undefined;
1002
+ user: {
1003
+ email: string;
1004
+ id: string;
1005
+ username: string | null;
1006
+ displayUsername: string | null;
1007
+ phoneNumber: string | null;
1008
+ banned: boolean | null;
1009
+ };
1010
+ id: string;
1011
+ createdAt: Date;
1012
+ updatedAt: Date;
1013
+ userId: string;
1014
+ status: "created" | "completed";
1015
+ idempotencyKey: string;
1016
+ orderNo: string;
1017
+ productId: string;
1018
+ payAssetIdSnapshot: string;
1019
+ targetAssetIdSnapshot: string;
1020
+ quoteAssetIdSnapshot: string;
1021
+ priceSnapshot: string;
1022
+ priceEffectiveAtSnapshot: Date;
1023
+ payAmount: string;
1024
+ sourcePayAccountId: string;
1025
+ targetAmount: string;
1026
+ settlementModeSnapshot: "available" | "locked";
1027
+ receiveAccountId: string;
1028
+ debitLedgerEntryId: string | null;
1029
+ creditLedgerEntryId: string | null;
1030
+ failureCode: string | null;
1031
+ failureReason: string | null;
1032
+ product: {
1033
+ id: string;
1034
+ name: string;
1035
+ createdAt: Date;
1036
+ updatedAt: Date;
1037
+ description: string | null;
1038
+ status: "active" | "draft" | "paused" | "ended";
1039
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1040
+ targetAssetId: string;
1041
+ payAssetId: string;
1042
+ payAccountTypeId: string;
1043
+ receiveAccountTypeId: string;
1044
+ minPayAmount: string;
1045
+ settlementMode: "available" | "locked";
1046
+ allowPurchase: boolean;
1047
+ isHot: boolean;
1048
+ targetAsset: {
1049
+ symbol: string;
1050
+ id: string;
1051
+ name: string;
1052
+ code: string;
1053
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1054
+ isActive: boolean;
1055
+ precision: number;
1056
+ };
1057
+ payAsset: {
1058
+ symbol: string;
1059
+ id: string;
1060
+ name: string;
1061
+ code: string;
1062
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1063
+ isActive: boolean;
1064
+ precision: number;
1065
+ };
1066
+ payAccountType: {
1067
+ id: string;
1068
+ name: string;
1069
+ key: string;
1070
+ isActive: boolean;
1071
+ };
1072
+ receiveAccountType: {
1073
+ id: string;
1074
+ name: string;
1075
+ key: string;
1076
+ isActive: boolean;
1077
+ };
1078
+ };
1079
+ payAssetSnapshot: {
1080
+ symbol: string;
1081
+ id: string;
1082
+ name: string;
1083
+ code: string;
1084
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1085
+ isActive: boolean;
1086
+ precision: number;
1087
+ };
1088
+ targetAssetSnapshot: {
1089
+ symbol: string;
1090
+ id: string;
1091
+ name: string;
1092
+ code: string;
1093
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1094
+ isActive: boolean;
1095
+ precision: number;
1096
+ };
1097
+ quoteAssetSnapshot: {
1098
+ symbol: string;
1099
+ id: string;
1100
+ name: string;
1101
+ code: string;
1102
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1103
+ isActive: boolean;
1104
+ precision: number;
1105
+ };
1106
+ sourcePayAccount: {
1107
+ id: string;
1108
+ userId: string;
1109
+ status: "active" | "frozen" | "disabled";
1110
+ assetId: string;
1111
+ ledgerAccountTypeId: string;
1112
+ };
1113
+ receiveAccount: {
1114
+ id: string;
1115
+ userId: string;
1116
+ status: "active" | "frozen" | "disabled";
1117
+ assetId: string;
1118
+ ledgerAccountTypeId: string;
1119
+ };
1120
+ }[];
1121
+ pagination: {
1122
+ total: number;
1123
+ pageSize: number;
1124
+ pageIndex: number;
1125
+ totalPages: number;
1126
+ hasNextPage: boolean;
1127
+ };
1128
+ };
1129
+ 422: {
1130
+ type: "validation";
1131
+ on: string;
1132
+ summary?: string;
1133
+ message?: string;
1134
+ found?: unknown;
1135
+ property?: string;
1136
+ expected?: string;
1137
+ };
1138
+ 401: "Unauthorized";
1139
+ 403: "Forbidden: Admins only";
1140
+ };
1141
+ };
1142
+ };
1143
+ };
1144
+ } & {
1145
+ asset_convert_product: {
1146
+ orders: {
1147
+ ":id": {
1148
+ get: {
1149
+ body: {};
1150
+ params: {
1151
+ id: string;
1152
+ };
1153
+ query: {};
1154
+ headers: {};
1155
+ response: {
1156
+ 200: {
1157
+ debitLedgerEntry?: {
1158
+ id: string;
1159
+ createdAt: Date;
1160
+ bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
1161
+ amount: string;
1162
+ referenceId: string;
1163
+ referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
1164
+ } | undefined;
1165
+ creditLedgerEntry?: {
1166
+ id: string;
1167
+ createdAt: Date;
1168
+ bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
1169
+ amount: string;
1170
+ referenceId: string;
1171
+ referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
1172
+ } | undefined;
1173
+ user: {
1174
+ email: string;
1175
+ id: string;
1176
+ username: string | null;
1177
+ displayUsername: string | null;
1178
+ phoneNumber: string | null;
1179
+ banned: boolean | null;
1180
+ };
1181
+ id: string;
1182
+ createdAt: Date;
1183
+ updatedAt: Date;
1184
+ userId: string;
1185
+ status: "created" | "completed";
1186
+ idempotencyKey: string;
1187
+ orderNo: string;
1188
+ productId: string;
1189
+ payAssetIdSnapshot: string;
1190
+ targetAssetIdSnapshot: string;
1191
+ quoteAssetIdSnapshot: string;
1192
+ priceSnapshot: string;
1193
+ priceEffectiveAtSnapshot: Date;
1194
+ payAmount: string;
1195
+ sourcePayAccountId: string;
1196
+ targetAmount: string;
1197
+ settlementModeSnapshot: "available" | "locked";
1198
+ receiveAccountId: string;
1199
+ debitLedgerEntryId: string | null;
1200
+ creditLedgerEntryId: string | null;
1201
+ failureCode: string | null;
1202
+ failureReason: string | null;
1203
+ product: {
1204
+ id: string;
1205
+ name: string;
1206
+ createdAt: Date;
1207
+ updatedAt: Date;
1208
+ description: string | null;
1209
+ status: "active" | "draft" | "paused" | "ended";
1210
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1211
+ targetAssetId: string;
1212
+ payAssetId: string;
1213
+ payAccountTypeId: string;
1214
+ receiveAccountTypeId: string;
1215
+ minPayAmount: string;
1216
+ settlementMode: "available" | "locked";
1217
+ allowPurchase: boolean;
1218
+ isHot: boolean;
1219
+ targetAsset: {
1220
+ symbol: string;
1221
+ id: string;
1222
+ name: string;
1223
+ code: string;
1224
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1225
+ isActive: boolean;
1226
+ precision: number;
1227
+ };
1228
+ payAsset: {
1229
+ symbol: string;
1230
+ id: string;
1231
+ name: string;
1232
+ code: string;
1233
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1234
+ isActive: boolean;
1235
+ precision: number;
1236
+ };
1237
+ payAccountType: {
1238
+ id: string;
1239
+ name: string;
1240
+ key: string;
1241
+ isActive: boolean;
1242
+ };
1243
+ receiveAccountType: {
1244
+ id: string;
1245
+ name: string;
1246
+ key: string;
1247
+ isActive: boolean;
1248
+ };
1249
+ };
1250
+ payAssetSnapshot: {
1251
+ symbol: string;
1252
+ id: string;
1253
+ name: string;
1254
+ code: string;
1255
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1256
+ isActive: boolean;
1257
+ precision: number;
1258
+ };
1259
+ targetAssetSnapshot: {
1260
+ symbol: string;
1261
+ id: string;
1262
+ name: string;
1263
+ code: string;
1264
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1265
+ isActive: boolean;
1266
+ precision: number;
1267
+ };
1268
+ quoteAssetSnapshot: {
1269
+ symbol: string;
1270
+ id: string;
1271
+ name: string;
1272
+ code: string;
1273
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1274
+ isActive: boolean;
1275
+ precision: number;
1276
+ };
1277
+ sourcePayAccount: {
1278
+ id: string;
1279
+ userId: string;
1280
+ status: "active" | "frozen" | "disabled";
1281
+ assetId: string;
1282
+ ledgerAccountTypeId: string;
1283
+ };
1284
+ receiveAccount: {
1285
+ id: string;
1286
+ userId: string;
1287
+ status: "active" | "frozen" | "disabled";
1288
+ assetId: string;
1289
+ ledgerAccountTypeId: string;
1290
+ };
1291
+ };
1292
+ 422: {
1293
+ type: "validation";
1294
+ on: string;
1295
+ summary?: string;
1296
+ message?: string;
1297
+ found?: unknown;
1298
+ property?: string;
1299
+ expected?: string;
1300
+ };
1301
+ 401: "Unauthorized";
1302
+ 403: "Forbidden: Admins only";
1303
+ };
1304
+ };
1305
+ };
1306
+ };
1307
+ };
1308
+ } & {
1309
+ asset_convert_product: {
1310
+ orders: {
1311
+ "by-order-no": {
1312
+ ":orderNo": {
1313
+ get: {
1314
+ body: {};
1315
+ params: {
1316
+ orderNo: string;
1317
+ };
1318
+ query: {};
1319
+ headers: {};
1320
+ response: {
1321
+ 200: {
1322
+ debitLedgerEntry?: {
1323
+ id: string;
1324
+ createdAt: Date;
1325
+ bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
1326
+ amount: string;
1327
+ referenceId: string;
1328
+ referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
1329
+ } | undefined;
1330
+ creditLedgerEntry?: {
1331
+ id: string;
1332
+ createdAt: Date;
1333
+ bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
1334
+ amount: string;
1335
+ referenceId: string;
1336
+ referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
1337
+ } | undefined;
1338
+ user: {
1339
+ email: string;
1340
+ id: string;
1341
+ username: string | null;
1342
+ displayUsername: string | null;
1343
+ phoneNumber: string | null;
1344
+ banned: boolean | null;
1345
+ };
1346
+ id: string;
1347
+ createdAt: Date;
1348
+ updatedAt: Date;
1349
+ userId: string;
1350
+ status: "created" | "completed";
1351
+ idempotencyKey: string;
1352
+ orderNo: string;
1353
+ productId: string;
1354
+ payAssetIdSnapshot: string;
1355
+ targetAssetIdSnapshot: string;
1356
+ quoteAssetIdSnapshot: string;
1357
+ priceSnapshot: string;
1358
+ priceEffectiveAtSnapshot: Date;
1359
+ payAmount: string;
1360
+ sourcePayAccountId: string;
1361
+ targetAmount: string;
1362
+ settlementModeSnapshot: "available" | "locked";
1363
+ receiveAccountId: string;
1364
+ debitLedgerEntryId: string | null;
1365
+ creditLedgerEntryId: string | null;
1366
+ failureCode: string | null;
1367
+ failureReason: string | null;
1368
+ product: {
1369
+ id: string;
1370
+ name: string;
1371
+ createdAt: Date;
1372
+ updatedAt: Date;
1373
+ description: string | null;
1374
+ status: "active" | "draft" | "paused" | "ended";
1375
+ productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1376
+ targetAssetId: string;
1377
+ payAssetId: string;
1378
+ payAccountTypeId: string;
1379
+ receiveAccountTypeId: string;
1380
+ minPayAmount: string;
1381
+ settlementMode: "available" | "locked";
1382
+ allowPurchase: boolean;
1383
+ isHot: boolean;
1384
+ targetAsset: {
1385
+ symbol: string;
1386
+ id: string;
1387
+ name: string;
1388
+ code: string;
1389
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1390
+ isActive: boolean;
1391
+ precision: number;
1392
+ };
1393
+ payAsset: {
1394
+ symbol: string;
1395
+ id: string;
1396
+ name: string;
1397
+ code: string;
1398
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1399
+ isActive: boolean;
1400
+ precision: number;
1401
+ };
1402
+ payAccountType: {
1403
+ id: string;
1404
+ name: string;
1405
+ key: string;
1406
+ isActive: boolean;
1407
+ };
1408
+ receiveAccountType: {
1409
+ id: string;
1410
+ name: string;
1411
+ key: string;
1412
+ isActive: boolean;
1413
+ };
1414
+ };
1415
+ payAssetSnapshot: {
1416
+ symbol: string;
1417
+ id: string;
1418
+ name: string;
1419
+ code: string;
1420
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1421
+ isActive: boolean;
1422
+ precision: number;
1423
+ };
1424
+ targetAssetSnapshot: {
1425
+ symbol: string;
1426
+ id: string;
1427
+ name: string;
1428
+ code: string;
1429
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1430
+ isActive: boolean;
1431
+ precision: number;
1432
+ };
1433
+ quoteAssetSnapshot: {
1434
+ symbol: string;
1435
+ id: string;
1436
+ name: string;
1437
+ code: string;
1438
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
1439
+ isActive: boolean;
1440
+ precision: number;
1441
+ };
1442
+ sourcePayAccount: {
1443
+ id: string;
1444
+ userId: string;
1445
+ status: "active" | "frozen" | "disabled";
1446
+ assetId: string;
1447
+ ledgerAccountTypeId: string;
1448
+ };
1449
+ receiveAccount: {
1450
+ id: string;
1451
+ userId: string;
1452
+ status: "active" | "frozen" | "disabled";
1453
+ assetId: string;
1454
+ ledgerAccountTypeId: string;
1455
+ };
1456
+ };
1457
+ 422: {
1458
+ type: "validation";
1459
+ on: string;
1460
+ summary?: string;
1461
+ message?: string;
1462
+ found?: unknown;
1463
+ property?: string;
1464
+ expected?: string;
1465
+ };
1466
+ 401: "Unauthorized";
1467
+ 403: "Forbidden: Admins only";
1468
+ };
1469
+ };
1470
+ };
1471
+ };
1472
+ };
1473
+ };
1474
+ } & {
1475
+ asset_convert_product: {
1476
+ orders: {
1477
+ stats: {
1478
+ get: {
1479
+ body: {};
1480
+ params: {};
1481
+ query: {
1482
+ productId?: string | undefined;
1483
+ createdAtStart?: Date | undefined;
1484
+ createdAtEnd?: Date | undefined;
1485
+ };
1486
+ headers: {};
1487
+ response: {
1488
+ 200: {
1489
+ totalCount: number;
1490
+ createdCount: number;
1491
+ completedCount: number;
1492
+ totalPayAmount: string;
1493
+ totalTargetAmount: string;
1494
+ };
1495
+ 422: {
1496
+ type: "validation";
1497
+ on: string;
1498
+ summary?: string;
1499
+ message?: string;
1500
+ found?: unknown;
1501
+ property?: string;
1502
+ expected?: string;
1503
+ };
1504
+ 401: "Unauthorized";
1505
+ 403: "Forbidden: Admins only";
1506
+ };
1507
+ };
1508
+ };
1509
+ };
1510
+ };
1511
+ }, {
1512
+ derive: {};
1513
+ resolve: {};
1514
+ schema: {};
1515
+ standaloneSchema: {};
1516
+ response: {};
1517
+ }, {
1518
+ derive: {};
1519
+ resolve: {
1520
+ user: {
1521
+ id: string;
1522
+ createdAt: Date;
1523
+ updatedAt: Date;
1524
+ email: string;
1525
+ emailVerified: boolean;
1526
+ name: string;
1527
+ image?: string | null | undefined | undefined;
1528
+ twoFactorEnabled: boolean | null | undefined;
1529
+ username?: string | null | undefined;
1530
+ displayUsername?: string | null | undefined;
1531
+ phoneNumber?: string | null | undefined;
1532
+ phoneNumberVerified?: boolean | null | undefined;
1533
+ banned: boolean | null | undefined;
1534
+ role?: string | null | undefined;
1535
+ banReason?: string | null | undefined;
1536
+ banExpires?: Date | null | undefined;
1537
+ };
1538
+ session: {
1539
+ id: string;
1540
+ createdAt: Date;
1541
+ updatedAt: Date;
1542
+ userId: string;
1543
+ expiresAt: Date;
1544
+ token: string;
1545
+ ipAddress?: string | null | undefined | undefined;
1546
+ userAgent?: string | null | undefined | undefined;
1547
+ impersonatedBy?: string | null | undefined;
1548
+ };
1549
+ } & {
1550
+ user: {
1551
+ id: string;
1552
+ createdAt: Date;
1553
+ updatedAt: Date;
1554
+ email: string;
1555
+ emailVerified: boolean;
1556
+ name: string;
1557
+ image?: string | null | undefined | undefined;
1558
+ twoFactorEnabled: boolean | null | undefined;
1559
+ username?: string | null | undefined;
1560
+ displayUsername?: string | null | undefined;
1561
+ phoneNumber?: string | null | undefined;
1562
+ phoneNumberVerified?: boolean | null | undefined;
1563
+ banned: boolean | null | undefined;
1564
+ role?: string | null | undefined;
1565
+ banReason?: string | null | undefined;
1566
+ banExpires?: Date | null | undefined;
1567
+ };
1568
+ session: {
1569
+ id: string;
1570
+ createdAt: Date;
1571
+ updatedAt: Date;
1572
+ userId: string;
1573
+ expiresAt: Date;
1574
+ token: string;
1575
+ ipAddress?: string | null | undefined | undefined;
1576
+ userAgent?: string | null | undefined | undefined;
1577
+ impersonatedBy?: string | null | undefined;
1578
+ };
1579
+ };
1580
+ schema: {};
1581
+ standaloneSchema: {};
1582
+ response: {
1583
+ 401: "Unauthorized";
1584
+ 403: "Forbidden: Admins only";
1585
+ };
1586
+ }>;