@r2wa-org/eden 0.0.88 → 0.0.90

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 (333) hide show
  1. package/dist/admin/index.d.ts +2812 -2786
  2. package/dist/admin-user/admin/errors/index.d.ts +8 -8
  3. package/dist/admin-user/admin/router.d.ts +141 -141
  4. package/dist/admin-user/admin/service.d.ts +20 -20
  5. package/dist/app-version/admin/dto.schemas.d.ts +23 -23
  6. package/dist/app-version/admin/router.d.ts +160 -160
  7. package/dist/app-version/admin/service.d.ts +20 -20
  8. package/dist/app-version/db.schemas.d.ts +20 -20
  9. package/dist/app-version/index.d.ts +5 -0
  10. package/dist/app-version/schema.d.ts +11 -11
  11. package/dist/app-version/user/dto.schemas.d.ts +40 -0
  12. package/dist/app-version/user/router.d.ts +67 -0
  13. package/dist/app-version/user/service.d.ts +22 -0
  14. package/dist/asset/admin/dto.schemas.d.ts +70 -70
  15. package/dist/asset/admin/router.d.ts +215 -215
  16. package/dist/asset/admin/service.d.ts +66 -66
  17. package/dist/asset/db.schemas.d.ts +2 -2
  18. package/dist/asset/errors/index.d.ts +12 -12
  19. package/dist/asset/permissions.d.ts +1 -1
  20. package/dist/asset/schema.d.ts +2 -2
  21. package/dist/asset/user/dto.schemas.d.ts +31 -31
  22. package/dist/asset/user/router.d.ts +155 -155
  23. package/dist/asset/user/service.d.ts +33 -33
  24. package/dist/asset-convert-product/admin/dto.schemas.d.ts +495 -495
  25. package/dist/asset-convert-product/admin/router.d.ts +598 -598
  26. package/dist/asset-convert-product/admin/service.d.ts +457 -457
  27. package/dist/asset-convert-product/db.schemas.d.ts +6 -6
  28. package/dist/asset-convert-product/errors/index.d.ts +23 -23
  29. package/dist/asset-convert-product/permissions.d.ts +2 -2
  30. package/dist/asset-convert-product/schema.d.ts +5 -5
  31. package/dist/asset-convert-product/user/dto.schemas.d.ts +127 -127
  32. package/dist/asset-convert-product/user/router.d.ts +209 -209
  33. package/dist/asset-convert-product/user/service.d.ts +186 -186
  34. package/dist/asset-price/admin/dto.schemas.d.ts +26 -26
  35. package/dist/asset-price/admin/router.d.ts +187 -187
  36. package/dist/asset-price/admin/service.d.ts +16 -16
  37. package/dist/asset-price/constants.d.ts +2 -2
  38. package/dist/asset-price/errors/index.d.ts +11 -11
  39. package/dist/asset-price/internal/service.d.ts +7 -7
  40. package/dist/asset-price/permissions.d.ts +2 -2
  41. package/dist/asset-price/schema.d.ts +1 -1
  42. package/dist/asset-price/user/dto.schemas.d.ts +4 -4
  43. package/dist/asset-price/user/router.d.ts +133 -133
  44. package/dist/asset-type/admin/dto.schemas.d.ts +4 -4
  45. package/dist/asset-type/admin/router.d.ts +155 -155
  46. package/dist/asset-type/admin/service.d.ts +16 -16
  47. package/dist/asset-type/errors/index.d.ts +9 -9
  48. package/dist/asset-type/permissions.d.ts +1 -1
  49. package/dist/asset-type/schema.d.ts +1 -1
  50. package/dist/asset-type/seed.d.ts +9 -9
  51. package/dist/asset-type/user/dto.schemas.d.ts +5 -5
  52. package/dist/asset-type/user/router.d.ts +130 -130
  53. package/dist/asset-type/user/service.d.ts +4 -4
  54. package/dist/auth/better-auth.d.ts +267 -300
  55. package/dist/auth/permissions.d.ts +216 -216
  56. package/dist/auth/roles.d.ts +665 -665
  57. package/dist/auth/router.d.ts +116 -116
  58. package/dist/auth/schema.d.ts +5 -5
  59. package/dist/bank-account/admin/dto.schemas.d.ts +75 -75
  60. package/dist/bank-account/admin/router.d.ts +241 -241
  61. package/dist/bank-account/admin/service.d.ts +112 -112
  62. package/dist/bank-account/db.schemas.d.ts +40 -40
  63. package/dist/bank-account/errors/index.d.ts +4 -4
  64. package/dist/bank-account/internal/service.d.ts +14 -14
  65. package/dist/bank-account/permissions.d.ts +3 -3
  66. package/dist/bank-account/schema.d.ts +22 -22
  67. package/dist/bank-account/user/dto.schemas.d.ts +38 -38
  68. package/dist/bank-account/user/router.d.ts +150 -150
  69. package/dist/bank-account/user/service.d.ts +36 -36
  70. package/dist/check-in/admin/dto.schemas.d.ts +11 -11
  71. package/dist/check-in/admin/router.d.ts +147 -147
  72. package/dist/check-in/admin/service.d.ts +20 -19
  73. package/dist/check-in/db.schemas.d.ts +248 -4
  74. package/dist/check-in/errors/index.d.ts +8 -2
  75. package/dist/check-in/errors/locales/zh.d.ts +3 -0
  76. package/dist/check-in/internal/service.d.ts +18 -18
  77. package/dist/check-in/permissions.d.ts +2 -2
  78. package/dist/check-in/schema.d.ts +135 -3
  79. package/dist/check-in/user/dto.schemas.d.ts +144 -15
  80. package/dist/check-in/user/router.d.ts +158 -182
  81. package/dist/check-in/user/service.d.ts +52 -28
  82. package/dist/db/columns.helpers.d.ts +1 -1
  83. package/dist/deposit/admin/dto.schemas.d.ts +40 -40
  84. package/dist/deposit/admin/router.d.ts +160 -160
  85. package/dist/deposit/admin/service.d.ts +46 -46
  86. package/dist/deposit/db.schemas.d.ts +2 -2
  87. package/dist/deposit/errors/index.d.ts +16 -16
  88. package/dist/deposit/permissions.d.ts +2 -2
  89. package/dist/deposit/schema.d.ts +2 -2
  90. package/dist/deposit/user/dto.schemas.d.ts +40 -40
  91. package/dist/deposit/user/router.d.ts +180 -180
  92. package/dist/deposit/user/service.d.ts +69 -69
  93. package/dist/dynamic-env/admin.router.d.ts +137 -137
  94. package/dist/dynamic-env/cache.d.ts +0 -6
  95. package/dist/dynamic-env/errors/index.d.ts +2 -2
  96. package/dist/dynamic-env/schema.d.ts +1 -1
  97. package/dist/env/server.d.ts +12 -12
  98. package/dist/error/index.d.ts +1 -1
  99. package/dist/external/dto.schemas.d.ts +2 -2
  100. package/dist/external/errors/index.d.ts +2 -2
  101. package/dist/external/router.d.ts +6 -6
  102. package/dist/external/service.d.ts +6 -6
  103. package/dist/file-storage/admin/dto.schemas.d.ts +106 -106
  104. package/dist/file-storage/admin/router.d.ts +183 -171
  105. package/dist/file-storage/admin/service.d.ts +27 -27
  106. package/dist/file-storage/db.schemas.d.ts +26 -26
  107. package/dist/file-storage/errors/index.d.ts +10 -10
  108. package/dist/file-storage/internal/service.d.ts +9 -9
  109. package/dist/file-storage/permissions.d.ts +2 -2
  110. package/dist/file-storage/s3.client.d.ts +48 -48
  111. package/dist/file-storage/schema.d.ts +14 -14
  112. package/dist/file-storage/share/dto.schemas.d.ts +8 -8
  113. package/dist/file-storage/share/router.d.ts +145 -145
  114. package/dist/file-storage/user/dto.schemas.d.ts +48 -48
  115. package/dist/file-storage/user/router.d.ts +141 -141
  116. package/dist/file-storage/user/service.d.ts +36 -36
  117. package/dist/index.d.ts +3830 -3769
  118. package/dist/ledger/admin/dto.schemas.d.ts +270 -270
  119. package/dist/ledger/admin/router.d.ts +207 -207
  120. package/dist/ledger/db.schemas.d.ts +4 -4
  121. package/dist/ledger/errors/index.d.ts +14 -14
  122. package/dist/ledger/permissions.d.ts +1 -1
  123. package/dist/ledger/schema.d.ts +3 -3
  124. package/dist/ledger/user/dto.schemas.d.ts +5 -5
  125. package/dist/ledger/user/router.d.ts +130 -130
  126. package/dist/ledger/user/service.d.ts +93 -93
  127. package/dist/ledger-account/admin/dto.schemas.d.ts +83 -83
  128. package/dist/ledger-account/admin/router.d.ts +222 -222
  129. package/dist/ledger-account/admin/service.d.ts +149 -149
  130. package/dist/ledger-account/db.schemas.d.ts +2 -2
  131. package/dist/ledger-account/errors/index.d.ts +9 -9
  132. package/dist/ledger-account/internal/service.d.ts +7 -7
  133. package/dist/ledger-account/permissions.d.ts +1 -1
  134. package/dist/ledger-account/schema.d.ts +2 -2
  135. package/dist/ledger-account/user/dto.schemas.d.ts +23 -23
  136. package/dist/ledger-account/user/router.d.ts +168 -168
  137. package/dist/ledger-account/user/service.d.ts +100 -100
  138. package/dist/ledger-account-import/admin/dto.schemas.d.ts +6 -6
  139. package/dist/ledger-account-import/admin/router.d.ts +169 -169
  140. package/dist/ledger-account-import/admin/service.d.ts +43 -43
  141. package/dist/ledger-account-import/db.schemas.d.ts +4 -4
  142. package/dist/ledger-account-import/errors/index.d.ts +9 -9
  143. package/dist/ledger-account-import/permissions.d.ts +1 -1
  144. package/dist/ledger-account-import/schema.d.ts +4 -4
  145. package/dist/ledger-account-transfer/errors/index.d.ts +7 -7
  146. package/dist/ledger-account-transfer/user/router.d.ts +132 -132
  147. package/dist/ledger-account-type/admin/dto.schemas.d.ts +9 -9
  148. package/dist/ledger-account-type/admin/router.d.ts +157 -157
  149. package/dist/ledger-account-type/admin/service.d.ts +68 -68
  150. package/dist/ledger-account-type/errors/index.d.ts +9 -9
  151. package/dist/ledger-account-type/permissions.d.ts +1 -1
  152. package/dist/ledger-account-type/schema.d.ts +1 -1
  153. package/dist/ledger-account-type/user/dto.schemas.d.ts +9 -9
  154. package/dist/ledger-account-type/user/router.d.ts +133 -133
  155. package/dist/ledger-account-type/user/service.d.ts +34 -34
  156. package/dist/market-data/admin/dto.schemas.d.ts +4 -4
  157. package/dist/market-data/admin/router.d.ts +150 -150
  158. package/dist/market-data/admin/service.d.ts +11 -11
  159. package/dist/market-data/errors/index.d.ts +4 -4
  160. package/dist/market-data/internal/service.d.ts +19 -19
  161. package/dist/market-data/permissions.d.ts +3 -3
  162. package/dist/market-data/resolutions.d.ts +2 -2
  163. package/dist/market-data/schema.d.ts +1 -1
  164. package/dist/market-pricing/admin/dto.schemas.d.ts +88 -88
  165. package/dist/market-pricing/admin/router.d.ts +332 -320
  166. package/dist/market-pricing/admin/service.d.ts +97 -97
  167. package/dist/market-pricing/db.schemas.d.ts +6 -6
  168. package/dist/market-pricing/defaults.d.ts +11 -11
  169. package/dist/market-pricing/errors/index.d.ts +26 -26
  170. package/dist/market-pricing/internal/service.d.ts +3 -3
  171. package/dist/market-pricing/permissions.d.ts +1 -1
  172. package/dist/market-pricing/schema.d.ts +5 -5
  173. package/dist/news/admin/dto.schemas.d.ts +67 -67
  174. package/dist/news/admin/router.d.ts +226 -226
  175. package/dist/news/admin/service.d.ts +89 -89
  176. package/dist/news/db.schemas.d.ts +28 -28
  177. package/dist/news/errors/index.d.ts +5 -5
  178. package/dist/news/permissions.d.ts +1 -1
  179. package/dist/news/schema.d.ts +17 -17
  180. package/dist/news/user/dto.schemas.d.ts +84 -84
  181. package/dist/news/user/router.d.ts +184 -184
  182. package/dist/news/user/service.d.ts +143 -143
  183. package/dist/news-category/admin/dto.schemas.d.ts +10 -10
  184. package/dist/news-category/admin/router.d.ts +24 -24
  185. package/dist/news-category/admin/service.d.ts +15 -15
  186. package/dist/news-category/errors/index.d.ts +6 -6
  187. package/dist/news-category/permissions.d.ts +1 -1
  188. package/dist/news-category/schema.d.ts +1 -1
  189. package/dist/news-category/seed.d.ts +3 -3
  190. package/dist/news-category/user/dto.schemas.d.ts +8 -8
  191. package/dist/news-category/user/router.d.ts +127 -127
  192. package/dist/news-category/user/service.d.ts +10 -10
  193. package/dist/notification/admin/dto.schemas.d.ts +45 -45
  194. package/dist/notification/admin/router.d.ts +155 -155
  195. package/dist/notification/admin/service.d.ts +13 -13
  196. package/dist/notification/db.schemas.d.ts +6 -6
  197. package/dist/notification/errors/index.d.ts +5 -5
  198. package/dist/notification/internal/service.d.ts +7 -7
  199. package/dist/notification/permissions.d.ts +2 -2
  200. package/dist/notification/schema.d.ts +5 -5
  201. package/dist/notification/user/dto.schemas.d.ts +34 -34
  202. package/dist/notification/user/router.d.ts +161 -161
  203. package/dist/notification/user/service.d.ts +38 -38
  204. package/dist/operations-overview/admin/router.d.ts +137 -137
  205. package/dist/portfolio/user/dto.schemas.d.ts +38 -38
  206. package/dist/portfolio/user/router.d.ts +173 -173
  207. package/dist/portfolio/user/service.d.ts +27 -27
  208. package/dist/receipt-method/admin/dto.schemas.d.ts +20 -20
  209. package/dist/receipt-method/admin/router.d.ts +160 -160
  210. package/dist/receipt-method/admin/service.d.ts +46 -46
  211. package/dist/receipt-method/db.schemas.d.ts +2 -2
  212. package/dist/receipt-method/errors/index.d.ts +8 -8
  213. package/dist/receipt-method/permissions.d.ts +1 -1
  214. package/dist/receipt-method/schema.d.ts +2 -2
  215. package/dist/receipt-method/user/dto.schemas.d.ts +6 -6
  216. package/dist/receipt-method/user/router.d.ts +138 -138
  217. package/dist/receipt-method/user/service.d.ts +33 -33
  218. package/dist/referral/admin/dto.schemas.d.ts +6 -6
  219. package/dist/referral/admin/router.d.ts +143 -143
  220. package/dist/referral/errors/index.d.ts +6 -6
  221. package/dist/referral/permissions.d.ts +1 -1
  222. package/dist/referral/schema.d.ts +2 -2
  223. package/dist/referral/user/dto.schemas.d.ts +2 -2
  224. package/dist/referral/user/router.d.ts +137 -137
  225. package/dist/referral-depth-config/admin/dto.schemas.d.ts +1 -1
  226. package/dist/referral-depth-config/admin/router.d.ts +156 -144
  227. package/dist/referral-depth-config/admin/service.d.ts +6 -6
  228. package/dist/referral-depth-config/errors/index.d.ts +2 -2
  229. package/dist/referral-depth-config/permissions.d.ts +1 -1
  230. package/dist/referral-depth-config/schema.d.ts +1 -1
  231. package/dist/server-test/errors/index.d.ts +1 -1
  232. package/dist/server-test/index.d.ts +117 -117
  233. package/dist/shipping-address/admin/router.d.ts +138 -138
  234. package/dist/shipping-address/admin/service.d.ts +5 -5
  235. package/dist/shipping-address/errors/index.d.ts +3 -3
  236. package/dist/shipping-address/permissions.d.ts +1 -1
  237. package/dist/shipping-address/schema.d.ts +1 -1
  238. package/dist/shipping-address/user/dto.schemas.d.ts +4 -4
  239. package/dist/shipping-address/user/router.d.ts +142 -142
  240. package/dist/shipping-address/user/service.d.ts +20 -20
  241. package/dist/team/admin/dto.schemas.d.ts +728 -728
  242. package/dist/team/admin/router.d.ts +187 -187
  243. package/dist/team/errors/index.d.ts +4 -4
  244. package/dist/team/permissions.d.ts +1 -1
  245. package/dist/team/user/dto.schemas.d.ts +206 -206
  246. package/dist/team/user/router.d.ts +170 -170
  247. package/dist/trade-market/admin/dto.schemas.d.ts +439 -630
  248. package/dist/trade-market/admin/router.d.ts +281 -255
  249. package/dist/trade-market/admin/service.d.ts +131 -105
  250. package/dist/trade-market/db.schemas.d.ts +4 -4
  251. package/dist/trade-market/errors/index.d.ts +15 -15
  252. package/dist/trade-market/internal/service.d.ts +149 -130
  253. package/dist/trade-market/permissions.d.ts +2 -2
  254. package/dist/trade-market/schema.d.ts +4 -4
  255. package/dist/trade-market/user/dto.schemas.d.ts +208 -444
  256. package/dist/trade-market/user/router.d.ts +242 -223
  257. package/dist/trade-market/user/service.d.ts +141 -122
  258. package/dist/transfer/admin/router.d.ts +140 -140
  259. package/dist/transfer/admin/service.d.ts +27 -27
  260. package/dist/transfer/errors/index.d.ts +11 -11
  261. package/dist/transfer/permissions.d.ts +1 -1
  262. package/dist/transfer/schema.d.ts +1 -1
  263. package/dist/transfer/user/router.d.ts +140 -140
  264. package/dist/transfer/user/service.d.ts +27 -27
  265. package/dist/udf/router.d.ts +136 -136
  266. package/dist/udf/service.d.ts +1 -1
  267. package/dist/user/admin/dto.schemas.d.ts +363 -363
  268. package/dist/user/admin/router.d.ts +256 -256
  269. package/dist/user/admin/service.d.ts +50 -50
  270. package/dist/user/db.schemas.d.ts +62 -62
  271. package/dist/user/errors/index.d.ts +15 -15
  272. package/dist/user/internal/service.d.ts +8 -8
  273. package/dist/user/permissions.d.ts +3 -3
  274. package/dist/user/schema.d.ts +34 -34
  275. package/dist/user/user/dto.schemas.d.ts +1 -1
  276. package/dist/user/user/router.d.ts +148 -148
  277. package/dist/user/user/service.d.ts +35 -35
  278. package/dist/user-kyc/admin/dto.schemas.d.ts +34 -34
  279. package/dist/user-kyc/admin/router.d.ts +157 -157
  280. package/dist/user-kyc/admin/service.d.ts +20 -20
  281. package/dist/user-kyc/db.schemas.d.ts +46 -46
  282. package/dist/user-kyc/errors/index.d.ts +6 -6
  283. package/dist/user-kyc/permissions.d.ts +2 -2
  284. package/dist/user-kyc/schema.d.ts +25 -25
  285. package/dist/user-kyc/user/dto.schemas.d.ts +13 -13
  286. package/dist/user-kyc/user/router.d.ts +146 -146
  287. package/dist/user-kyc/user/service.d.ts +14 -14
  288. package/dist/user-security/admin/router.d.ts +133 -133
  289. package/dist/user-security/db.schemas.d.ts +20 -20
  290. package/dist/user-security/schema.d.ts +11 -11
  291. package/dist/user-security/user/router.d.ts +129 -129
  292. package/dist/wallet/admin/dto.schemas.d.ts +15 -15
  293. package/dist/wallet/admin/router.d.ts +159 -159
  294. package/dist/wallet/admin/service.d.ts +18 -18
  295. package/dist/wallet/errors/index.d.ts +1 -1
  296. package/dist/wallet/internal/service.d.ts +45 -45
  297. package/dist/wallet/permissions.d.ts +1 -1
  298. package/dist/wallet/schema.d.ts +1 -1
  299. package/dist/wallet/user/dto.schemas.d.ts +10 -10
  300. package/dist/wallet/user/router.d.ts +147 -147
  301. package/dist/wallet/user/service.d.ts +10 -10
  302. package/dist/wallet-type/admin/dto.schemas.d.ts +27 -27
  303. package/dist/wallet-type/admin/router.d.ts +201 -201
  304. package/dist/wallet-type/admin/service.d.ts +22 -22
  305. package/dist/wallet-type/errors/index.d.ts +6 -6
  306. package/dist/wallet-type/internal/service.d.ts +111 -111
  307. package/dist/wallet-type/permissions.d.ts +1 -1
  308. package/dist/wallet-type/schema.d.ts +2 -2
  309. package/dist/wallet-type/user/dto.schemas.d.ts +21 -21
  310. package/dist/wallet-type/user/router.d.ts +137 -137
  311. package/dist/wallet-type/user/service.d.ts +7 -7
  312. package/dist/welfare-cycle/admin/dto.schemas.d.ts +723 -723
  313. package/dist/welfare-cycle/admin/router.d.ts +788 -788
  314. package/dist/welfare-cycle/admin/service.d.ts +706 -706
  315. package/dist/welfare-cycle/db.schemas.d.ts +8 -8
  316. package/dist/welfare-cycle/errors/index.d.ts +18 -18
  317. package/dist/welfare-cycle/internal/service.d.ts +84 -84
  318. package/dist/welfare-cycle/permissions.d.ts +3 -3
  319. package/dist/welfare-cycle/schema.d.ts +8 -8
  320. package/dist/welfare-cycle/user/dto.schemas.d.ts +22 -22
  321. package/dist/welfare-cycle/user/router.d.ts +173 -173
  322. package/dist/welfare-cycle/user/service.d.ts +95 -95
  323. package/dist/withdraw/admin/dto.schemas.d.ts +3 -3
  324. package/dist/withdraw/admin/router.d.ts +171 -171
  325. package/dist/withdraw/admin/service.d.ts +15 -15
  326. package/dist/withdraw/db.schemas.d.ts +2 -2
  327. package/dist/withdraw/errors/index.d.ts +16 -16
  328. package/dist/withdraw/permissions.d.ts +2 -2
  329. package/dist/withdraw/schema.d.ts +2 -2
  330. package/dist/withdraw/user/dto.schemas.d.ts +18 -18
  331. package/dist/withdraw/user/router.d.ts +176 -176
  332. package/dist/withdraw/user/service.d.ts +36 -36
  333. package/package.json +7 -9
@@ -41,7 +41,7 @@ export declare const userAdminRouter: Elysia<"/users", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 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 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
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
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -105,66 +105,66 @@ export declare const userAdminRouter: Elysia<"/users", {
105
105
  readonly 511: "Network Authentication Required";
106
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
107
  readonly Continue: 100;
108
- readonly "Switching Protocols": 101;
108
+ readonly 'Switching Protocols': 101;
109
109
  readonly Processing: 102;
110
- readonly "Early Hints": 103;
110
+ readonly 'Early Hints': 103;
111
111
  readonly OK: 200;
112
112
  readonly Created: 201;
113
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;
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
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;
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
128
  readonly Unauthorized: 401;
129
- readonly "Payment Required": 402;
129
+ readonly 'Payment Required': 402;
130
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;
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
136
  readonly Conflict: 409;
137
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;
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
145
  readonly "I'm a teapot": 418;
146
- readonly "Enhance Your Calm": 420;
147
- readonly "Misdirected Request": 421;
148
- readonly "Unprocessable Content": 422;
146
+ readonly 'Enhance Your Calm': 420;
147
+ readonly 'Misdirected Request': 421;
148
+ readonly 'Unprocessable Content': 422;
149
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;
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
168
  }[Code] : Code>;
169
169
  }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | {
170
170
  user: {
@@ -174,16 +174,16 @@ export declare const userAdminRouter: Elysia<"/users", {
174
174
  email: string;
175
175
  emailVerified: boolean;
176
176
  name: string;
177
- image?: string | null | undefined | undefined;
178
- twoFactorEnabled: boolean | null | undefined;
179
- username?: string | null | undefined;
177
+ image?: string | null | undefined;
178
+ banExpires?: Date | null | undefined;
179
+ banReason?: string | null | undefined;
180
+ banned: boolean | null | undefined;
180
181
  displayUsername?: string | null | undefined;
181
182
  phoneNumber?: string | null | undefined;
182
183
  phoneNumberVerified?: boolean | null | undefined;
183
- banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
- banReason?: string | null | undefined;
186
- banExpires?: Date | null | undefined;
185
+ twoFactorEnabled: boolean | null | undefined;
186
+ username?: string | null | undefined;
187
187
  };
188
188
  session: {
189
189
  id: string;
@@ -192,8 +192,8 @@ export declare const userAdminRouter: Elysia<"/users", {
192
192
  userId: string;
193
193
  expiresAt: Date;
194
194
  token: string;
195
- ipAddress?: string | null | undefined | undefined;
196
- userAgent?: string | null | undefined | undefined;
195
+ ipAddress?: string | null | undefined;
196
+ userAgent?: string | null | undefined;
197
197
  impersonatedBy?: string | null | undefined;
198
198
  };
199
199
  }>;
@@ -217,7 +217,7 @@ export declare const userAdminRouter: Elysia<"/users", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 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 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
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
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -281,66 +281,66 @@ export declare const userAdminRouter: Elysia<"/users", {
281
281
  readonly 511: "Network Authentication Required";
282
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
283
  readonly Continue: 100;
284
- readonly "Switching Protocols": 101;
284
+ readonly 'Switching Protocols': 101;
285
285
  readonly Processing: 102;
286
- readonly "Early Hints": 103;
286
+ readonly 'Early Hints': 103;
287
287
  readonly OK: 200;
288
288
  readonly Created: 201;
289
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;
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
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;
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
304
  readonly Unauthorized: 401;
305
- readonly "Payment Required": 402;
305
+ readonly 'Payment Required': 402;
306
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;
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
312
  readonly Conflict: 409;
313
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;
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
321
  readonly "I'm a teapot": 418;
322
- readonly "Enhance Your Calm": 420;
323
- readonly "Misdirected Request": 421;
324
- readonly "Unprocessable Content": 422;
322
+ readonly 'Enhance Your Calm': 420;
323
+ readonly 'Misdirected Request': 421;
324
+ readonly 'Unprocessable Content': 422;
325
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;
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
344
  }[Code] : Code>;
345
345
  }) => Promise<import("elysia").ElysiaCustomStatusResponse<401, any, 401> | import("elysia").ElysiaCustomStatusResponse<403, "Forbidden: Admins only", 403> | {
346
346
  user: {
@@ -350,16 +350,16 @@ export declare const userAdminRouter: Elysia<"/users", {
350
350
  email: string;
351
351
  emailVerified: boolean;
352
352
  name: string;
353
- image?: string | null | undefined | undefined;
354
- twoFactorEnabled: boolean | null | undefined;
355
- username?: string | null | undefined;
353
+ image?: string | null | undefined;
354
+ banExpires?: Date | null | undefined;
355
+ banReason?: string | null | undefined;
356
+ banned: boolean | null | undefined;
356
357
  displayUsername?: string | null | undefined;
357
358
  phoneNumber?: string | null | undefined;
358
359
  phoneNumberVerified?: boolean | null | undefined;
359
- banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
- banReason?: string | null | undefined;
362
- banExpires?: Date | null | undefined;
361
+ twoFactorEnabled: boolean | null | undefined;
362
+ username?: string | null | undefined;
363
363
  };
364
364
  session: {
365
365
  id: string;
@@ -368,8 +368,8 @@ export declare const userAdminRouter: Elysia<"/users", {
368
368
  userId: string;
369
369
  expiresAt: Date;
370
370
  token: string;
371
- ipAddress?: string | null | undefined | undefined;
372
- userAgent?: string | null | undefined | undefined;
371
+ ipAddress?: string | null | undefined;
372
+ userAgent?: string | null | undefined;
373
373
  impersonatedBy?: string | null | undefined;
374
374
  };
375
375
  }>;
@@ -392,9 +392,9 @@ export declare const userAdminRouter: Elysia<"/users", {
392
392
  response: {
393
393
  200: {
394
394
  data: {
395
- email: string;
396
395
  id: string;
397
396
  name: string;
397
+ email: string;
398
398
  emailVerified: boolean;
399
399
  image: string | null;
400
400
  createdAt: Date;
@@ -410,9 +410,9 @@ export declare const userAdminRouter: Elysia<"/users", {
410
410
  banExpires: Date | null;
411
411
  }[];
412
412
  pagination: {
413
- total: number;
414
413
  pageSize: number;
415
414
  pageIndex: number;
415
+ total: number;
416
416
  totalPages: number;
417
417
  hasNextPage: boolean;
418
418
  };
@@ -420,7 +420,7 @@ export declare const userAdminRouter: Elysia<"/users", {
420
420
  401: "Unauthorized";
421
421
  403: "Forbidden: Admins only";
422
422
  422: {
423
- type: "validation";
423
+ type: 'validation';
424
424
  on: string;
425
425
  summary?: string;
426
426
  message?: string;
@@ -438,75 +438,75 @@ export declare const userAdminRouter: Elysia<"/users", {
438
438
  body: {};
439
439
  params: {};
440
440
  query: {
441
+ displayUsername?: string | null | undefined;
441
442
  email?: string | undefined;
442
443
  id?: string | undefined;
443
- name?: string | undefined;
444
- username?: string | null | undefined;
445
- displayUsername?: string | null | undefined;
446
444
  limit?: number | undefined;
445
+ name?: string | undefined;
447
446
  offset?: number | undefined;
448
- pageSize?: number | undefined;
449
447
  pageIndex?: number | undefined;
448
+ pageSize?: number | undefined;
449
+ username?: string | null | undefined;
450
450
  };
451
451
  headers: {};
452
452
  response: {
453
453
  200: {
454
454
  data: {
455
- userProfile?: {
455
+ banExpires: Date | null;
456
+ banReason: string | null;
457
+ banned: boolean | null;
458
+ createdAt: Date;
459
+ displayUsername: string | null;
460
+ email: string;
461
+ emailVerified: boolean;
462
+ id: string;
463
+ image: string | null;
464
+ name: string;
465
+ phoneNumber: string | null;
466
+ phoneNumberVerified: boolean | null;
467
+ role: string | null;
468
+ twoFactorEnabled: boolean | null;
469
+ updatedAt: Date;
470
+ userKycMethod?: {
456
471
  createdAt: Date;
457
472
  updatedAt: Date;
458
- userId: string;
459
- gender: "male" | "female" | "other";
460
- uid: string;
461
- birthday: string | null;
462
- country: string | null;
463
- city: string | null;
464
- language: string | null;
465
- timezone: string | null;
466
- referralCode: string | null;
467
- referredBy: string | null;
468
473
  deletedAt: Date | null;
469
- } | undefined;
470
- userKycMethod?: {
471
474
  id: string;
472
- createdAt: Date;
473
- updatedAt: Date;
474
475
  userId: string;
475
- deletedAt: Date | null;
476
- status: "unverified" | "pending" | "approved" | "rejected";
477
- method: "passport" | "id_card" | "selfie" | "utility_bill";
476
+ method: "id_card" | "passport" | "selfie" | "utility_bill";
478
477
  documentName: string | null;
479
478
  documentNumber: string | null;
480
479
  fileId1: string | null;
481
480
  fileId2: string | null;
482
481
  fileId3: string | null;
483
482
  fileId4: string | null;
483
+ status: "approved" | "pending" | "rejected" | "unverified";
484
484
  submittedAt: Date | null;
485
485
  reviewedAt: Date | null;
486
486
  reviewedBy: string | null;
487
487
  rejectionReason: string | null;
488
488
  } | undefined;
489
- email: string;
490
- id: string;
491
- name: string;
492
- emailVerified: boolean;
493
- image: string | null;
494
- createdAt: Date;
495
- updatedAt: Date;
496
- twoFactorEnabled: boolean | null;
489
+ userProfile?: {
490
+ createdAt: Date;
491
+ updatedAt: Date;
492
+ deletedAt: Date | null;
493
+ userId: string;
494
+ uid: string;
495
+ gender: "female" | "male" | "other";
496
+ birthday: string | null;
497
+ country: string | null;
498
+ city: string | null;
499
+ language: string | null;
500
+ timezone: string | null;
501
+ referralCode: string | null;
502
+ referredBy: string | null;
503
+ } | undefined;
497
504
  username: string | null;
498
- displayUsername: string | null;
499
- phoneNumber: string | null;
500
- phoneNumberVerified: boolean | null;
501
- role: string | null;
502
- banned: boolean | null;
503
- banReason: string | null;
504
- banExpires: Date | null;
505
505
  }[];
506
506
  pagination: {
507
- total: number;
508
507
  pageSize: number;
509
508
  pageIndex: number;
509
+ total: number;
510
510
  totalPages: number;
511
511
  hasNextPage: boolean;
512
512
  };
@@ -514,7 +514,7 @@ export declare const userAdminRouter: Elysia<"/users", {
514
514
  401: "Unauthorized";
515
515
  403: "Forbidden: Admins only";
516
516
  422: {
517
- type: "validation";
517
+ type: 'validation';
518
518
  on: string;
519
519
  summary?: string;
520
520
  message?: string;
@@ -538,61 +538,61 @@ export declare const userAdminRouter: Elysia<"/users", {
538
538
  headers: {};
539
539
  response: {
540
540
  200: {
541
- userProfile?: {
541
+ banExpires: Date | null;
542
+ banReason: string | null;
543
+ banned: boolean | null;
544
+ createdAt: Date;
545
+ displayUsername: string | null;
546
+ email: string;
547
+ emailVerified: boolean;
548
+ id: string;
549
+ image: string | null;
550
+ name: string;
551
+ phoneNumber: string | null;
552
+ phoneNumberVerified: boolean | null;
553
+ role: string | null;
554
+ twoFactorEnabled: boolean | null;
555
+ updatedAt: Date;
556
+ userKycMethod?: {
542
557
  createdAt: Date;
543
558
  updatedAt: Date;
544
- userId: string;
545
- gender: "male" | "female" | "other";
546
- uid: string;
547
- birthday: string | null;
548
- country: string | null;
549
- city: string | null;
550
- language: string | null;
551
- timezone: string | null;
552
- referralCode: string | null;
553
- referredBy: string | null;
554
559
  deletedAt: Date | null;
555
- } | undefined;
556
- userKycMethod?: {
557
560
  id: string;
558
- createdAt: Date;
559
- updatedAt: Date;
560
561
  userId: string;
561
- deletedAt: Date | null;
562
- status: "unverified" | "pending" | "approved" | "rejected";
563
- method: "passport" | "id_card" | "selfie" | "utility_bill";
562
+ method: "id_card" | "passport" | "selfie" | "utility_bill";
564
563
  documentName: string | null;
565
564
  documentNumber: string | null;
566
565
  fileId1: string | null;
567
566
  fileId2: string | null;
568
567
  fileId3: string | null;
569
568
  fileId4: string | null;
569
+ status: "approved" | "pending" | "rejected" | "unverified";
570
570
  submittedAt: Date | null;
571
571
  reviewedAt: Date | null;
572
572
  reviewedBy: string | null;
573
573
  rejectionReason: string | null;
574
574
  } | undefined;
575
- email: string;
576
- id: string;
577
- name: string;
578
- emailVerified: boolean;
579
- image: string | null;
580
- createdAt: Date;
581
- updatedAt: Date;
582
- twoFactorEnabled: boolean | null;
575
+ userProfile?: {
576
+ createdAt: Date;
577
+ updatedAt: Date;
578
+ deletedAt: Date | null;
579
+ userId: string;
580
+ uid: string;
581
+ gender: "female" | "male" | "other";
582
+ birthday: string | null;
583
+ country: string | null;
584
+ city: string | null;
585
+ language: string | null;
586
+ timezone: string | null;
587
+ referralCode: string | null;
588
+ referredBy: string | null;
589
+ } | undefined;
583
590
  username: string | null;
584
- displayUsername: string | null;
585
- phoneNumber: string | null;
586
- phoneNumberVerified: boolean | null;
587
- role: string | null;
588
- banned: boolean | null;
589
- banReason: string | null;
590
- banExpires: Date | null;
591
591
  };
592
592
  401: "Unauthorized";
593
593
  403: "Forbidden: Admins only";
594
594
  422: {
595
- type: "validation";
595
+ type: 'validation';
596
596
  on: string;
597
597
  summary?: string;
598
598
  message?: string;
@@ -611,21 +611,18 @@ export declare const userAdminRouter: Elysia<"/users", {
611
611
  profile: {
612
612
  put: {
613
613
  body: {
614
+ banExpires?: Date | null | undefined;
615
+ banReason?: string | null | undefined;
616
+ banned?: boolean | null | undefined;
617
+ displayUsername?: string | null | undefined;
614
618
  email?: string | undefined;
615
- name?: string | undefined;
616
619
  emailVerified?: boolean | undefined;
617
620
  image?: string | null | undefined;
618
- twoFactorEnabled?: boolean | null | undefined;
619
- username?: string | null | undefined;
620
- displayUsername?: string | null | undefined;
621
+ name?: string | undefined;
621
622
  phoneNumber?: string | null | undefined;
622
623
  phoneNumberVerified?: boolean | null | undefined;
623
- role?: string | null | undefined;
624
- banned?: boolean | null | undefined;
625
- banReason?: string | null | undefined;
626
- banExpires?: Date | null | undefined;
627
624
  profile: {
628
- gender?: "male" | "female" | "other" | undefined;
625
+ gender?: "female" | "male" | "other" | undefined;
629
626
  birthday?: string | null | undefined;
630
627
  country?: string | null | undefined;
631
628
  city?: string | null | undefined;
@@ -633,6 +630,9 @@ export declare const userAdminRouter: Elysia<"/users", {
633
630
  timezone?: string | null | undefined;
634
631
  referredBy?: string | null | undefined;
635
632
  };
633
+ role?: string | null | undefined;
634
+ twoFactorEnabled?: boolean | null | undefined;
635
+ username?: string | null | undefined;
636
636
  };
637
637
  params: {
638
638
  userId: string;
@@ -641,61 +641,61 @@ export declare const userAdminRouter: Elysia<"/users", {
641
641
  headers: {};
642
642
  response: {
643
643
  200: {
644
- userProfile?: {
644
+ banExpires: Date | null;
645
+ banReason: string | null;
646
+ banned: boolean | null;
647
+ createdAt: Date;
648
+ displayUsername: string | null;
649
+ email: string;
650
+ emailVerified: boolean;
651
+ id: string;
652
+ image: string | null;
653
+ name: string;
654
+ phoneNumber: string | null;
655
+ phoneNumberVerified: boolean | null;
656
+ role: string | null;
657
+ twoFactorEnabled: boolean | null;
658
+ updatedAt: Date;
659
+ userKycMethod?: {
645
660
  createdAt: Date;
646
661
  updatedAt: Date;
647
- userId: string;
648
- gender: "male" | "female" | "other";
649
- uid: string;
650
- birthday: string | null;
651
- country: string | null;
652
- city: string | null;
653
- language: string | null;
654
- timezone: string | null;
655
- referralCode: string | null;
656
- referredBy: string | null;
657
662
  deletedAt: Date | null;
658
- } | undefined;
659
- userKycMethod?: {
660
663
  id: string;
661
- createdAt: Date;
662
- updatedAt: Date;
663
664
  userId: string;
664
- deletedAt: Date | null;
665
- status: "unverified" | "pending" | "approved" | "rejected";
666
- method: "passport" | "id_card" | "selfie" | "utility_bill";
665
+ method: "id_card" | "passport" | "selfie" | "utility_bill";
667
666
  documentName: string | null;
668
667
  documentNumber: string | null;
669
668
  fileId1: string | null;
670
669
  fileId2: string | null;
671
670
  fileId3: string | null;
672
671
  fileId4: string | null;
672
+ status: "approved" | "pending" | "rejected" | "unverified";
673
673
  submittedAt: Date | null;
674
674
  reviewedAt: Date | null;
675
675
  reviewedBy: string | null;
676
676
  rejectionReason: string | null;
677
677
  } | undefined;
678
- email: string;
679
- id: string;
680
- name: string;
681
- emailVerified: boolean;
682
- image: string | null;
683
- createdAt: Date;
684
- updatedAt: Date;
685
- twoFactorEnabled: boolean | null;
678
+ userProfile?: {
679
+ createdAt: Date;
680
+ updatedAt: Date;
681
+ deletedAt: Date | null;
682
+ userId: string;
683
+ uid: string;
684
+ gender: "female" | "male" | "other";
685
+ birthday: string | null;
686
+ country: string | null;
687
+ city: string | null;
688
+ language: string | null;
689
+ timezone: string | null;
690
+ referralCode: string | null;
691
+ referredBy: string | null;
692
+ } | undefined;
686
693
  username: string | null;
687
- displayUsername: string | null;
688
- phoneNumber: string | null;
689
- phoneNumberVerified: boolean | null;
690
- role: string | null;
691
- banned: boolean | null;
692
- banReason: string | null;
693
- banExpires: Date | null;
694
694
  };
695
695
  401: "Unauthorized";
696
696
  403: "Forbidden: Admins only";
697
697
  422: {
698
- type: "validation";
698
+ type: 'validation';
699
699
  on: string;
700
700
  summary?: string;
701
701
  message?: string;
@@ -727,7 +727,7 @@ export declare const userAdminRouter: Elysia<"/users", {
727
727
  401: "Unauthorized";
728
728
  403: "Forbidden: Admins only";
729
729
  422: {
730
- type: "validation";
730
+ type: 'validation';
731
731
  on: string;
732
732
  summary?: string;
733
733
  message?: string;
@@ -755,9 +755,9 @@ export declare const userAdminRouter: Elysia<"/users", {
755
755
  response: {
756
756
  200: {
757
757
  id: string;
758
+ expiresAt: Date;
758
759
  createdAt: Date;
759
760
  updatedAt: Date;
760
- expiresAt: Date;
761
761
  ipAddress: string | null;
762
762
  userAgent: string | null;
763
763
  userId: string;
@@ -766,7 +766,7 @@ export declare const userAdminRouter: Elysia<"/users", {
766
766
  401: "Unauthorized";
767
767
  403: "Forbidden: Admins only";
768
768
  422: {
769
- type: "validation";
769
+ type: 'validation';
770
770
  on: string;
771
771
  summary?: string;
772
772
  message?: string;
@@ -785,8 +785,8 @@ export declare const userAdminRouter: Elysia<"/users", {
785
785
  ban: {
786
786
  post: {
787
787
  body: {
788
- banExpiresIn?: number | undefined;
789
788
  banReason: string;
789
+ banExpiresIn?: number | undefined;
790
790
  };
791
791
  params: {
792
792
  userId: string;
@@ -800,7 +800,7 @@ export declare const userAdminRouter: Elysia<"/users", {
800
800
  401: "Unauthorized";
801
801
  403: "Forbidden: Admins only";
802
802
  422: {
803
- type: "validation";
803
+ type: 'validation';
804
804
  on: string;
805
805
  summary?: string;
806
806
  message?: string;
@@ -829,16 +829,16 @@ export declare const userAdminRouter: Elysia<"/users", {
829
829
  email: string;
830
830
  emailVerified: boolean;
831
831
  name: string;
832
- image?: string | null | undefined | undefined;
833
- twoFactorEnabled: boolean | null | undefined;
834
- username?: string | null | undefined;
832
+ image?: string | null | undefined;
833
+ banExpires?: Date | null | undefined;
834
+ banReason?: string | null | undefined;
835
+ banned: boolean | null | undefined;
835
836
  displayUsername?: string | null | undefined;
836
837
  phoneNumber?: string | null | undefined;
837
838
  phoneNumberVerified?: boolean | null | undefined;
838
- banned: boolean | null | undefined;
839
839
  role?: string | null | undefined;
840
- banReason?: string | null | undefined;
841
- banExpires?: Date | null | undefined;
840
+ twoFactorEnabled: boolean | null | undefined;
841
+ username?: string | null | undefined;
842
842
  };
843
843
  session: {
844
844
  id: string;
@@ -847,8 +847,8 @@ export declare const userAdminRouter: Elysia<"/users", {
847
847
  userId: string;
848
848
  expiresAt: Date;
849
849
  token: string;
850
- ipAddress?: string | null | undefined | undefined;
851
- userAgent?: string | null | undefined | undefined;
850
+ ipAddress?: string | null | undefined;
851
+ userAgent?: string | null | undefined;
852
852
  impersonatedBy?: string | null | undefined;
853
853
  };
854
854
  } & {
@@ -859,16 +859,16 @@ export declare const userAdminRouter: Elysia<"/users", {
859
859
  email: string;
860
860
  emailVerified: boolean;
861
861
  name: string;
862
- image?: string | null | undefined | undefined;
863
- twoFactorEnabled: boolean | null | undefined;
864
- username?: string | null | undefined;
862
+ image?: string | null | undefined;
863
+ banExpires?: Date | null | undefined;
864
+ banReason?: string | null | undefined;
865
+ banned: boolean | null | undefined;
865
866
  displayUsername?: string | null | undefined;
866
867
  phoneNumber?: string | null | undefined;
867
868
  phoneNumberVerified?: boolean | null | undefined;
868
- banned: boolean | null | undefined;
869
869
  role?: string | null | undefined;
870
- banReason?: string | null | undefined;
871
- banExpires?: Date | null | undefined;
870
+ twoFactorEnabled: boolean | null | undefined;
871
+ username?: string | null | undefined;
872
872
  };
873
873
  session: {
874
874
  id: string;
@@ -877,8 +877,8 @@ export declare const userAdminRouter: Elysia<"/users", {
877
877
  userId: string;
878
878
  expiresAt: Date;
879
879
  token: string;
880
- ipAddress?: string | null | undefined | undefined;
881
- userAgent?: string | null | undefined | undefined;
880
+ ipAddress?: string | null | undefined;
881
+ userAgent?: string | null | undefined;
882
882
  impersonatedBy?: string | null | undefined;
883
883
  };
884
884
  };