@aitlabs/namkwong 0.0.92

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