@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,1805 @@
1
+ import Elysia from 'elysia';
2
+ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
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
+ welfare_cycle: {};
382
+ } & {
383
+ welfare_cycle: {
384
+ plans: {
385
+ post: {
386
+ body: {
387
+ coverImageFileId: string;
388
+ cycleDays: number;
389
+ dailyPayoutAccountTypeId?: string | undefined;
390
+ dailyYieldRate: string;
391
+ description?: string | null | undefined;
392
+ maturitySettlementAccountTypeId?: string | undefined;
393
+ maturityYieldRate: string;
394
+ maxSharesPerOrder?: number | null | undefined;
395
+ minShares?: number | undefined;
396
+ name: string;
397
+ pricePerShare: string;
398
+ pricingAssetId?: string | undefined;
399
+ rightsAssetId: string;
400
+ rightsPerShare: string;
401
+ saleEndAt?: Date | null | undefined;
402
+ saleStartAt?: Date | null | undefined;
403
+ sourcePricingAccountTypeId?: string | undefined;
404
+ status?: "active" | "draft" | "ended" | "paused" | undefined;
405
+ };
406
+ params: {};
407
+ query: {};
408
+ headers: {};
409
+ response: {
410
+ 200: {
411
+ coverImageUrl: string | null;
412
+ createdAt: Date;
413
+ cycleDays: number;
414
+ dailyPayoutAccountType: {
415
+ id: string;
416
+ key: string;
417
+ name: string;
418
+ isActive: boolean;
419
+ };
420
+ dailyPayoutAccountTypeId: string;
421
+ dailyYieldRate: string;
422
+ description: string | null;
423
+ id: string;
424
+ maturitySettlementAccountType: {
425
+ id: string;
426
+ key: string;
427
+ name: string;
428
+ isActive: boolean;
429
+ };
430
+ maturitySettlementAccountTypeId: string;
431
+ maturityYieldRate: string;
432
+ maxSharesPerOrder: number | null;
433
+ minShares: number;
434
+ name: string;
435
+ pricePerShare: string;
436
+ pricingAsset: {
437
+ id: string;
438
+ code: string;
439
+ name: string;
440
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
441
+ symbol: string | null;
442
+ precision: number;
443
+ isActive: boolean;
444
+ };
445
+ pricingAssetId: string;
446
+ rightsAsset: {
447
+ id: string;
448
+ code: string;
449
+ name: string;
450
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
451
+ symbol: string | null;
452
+ precision: number;
453
+ isActive: boolean;
454
+ };
455
+ rightsAssetId: string;
456
+ rightsPerShare: string;
457
+ saleEndAt: Date | null;
458
+ saleStartAt: Date | null;
459
+ sourcePricingAccountType: {
460
+ id: string;
461
+ key: string;
462
+ name: string;
463
+ isActive: boolean;
464
+ };
465
+ sourcePricingAccountTypeId: string;
466
+ status: "active" | "draft" | "ended" | "paused";
467
+ updatedAt: Date;
468
+ };
469
+ 401: "Unauthorized";
470
+ 403: "Forbidden: Admins only";
471
+ 422: {
472
+ type: 'validation';
473
+ on: string;
474
+ summary?: string;
475
+ message?: string;
476
+ found?: unknown;
477
+ property?: string;
478
+ expected?: string;
479
+ };
480
+ };
481
+ };
482
+ };
483
+ };
484
+ } & {
485
+ welfare_cycle: {
486
+ plans: {
487
+ ":id": {
488
+ patch: {
489
+ body: {
490
+ coverImageFileId?: string | undefined;
491
+ cycleDays?: number | undefined;
492
+ dailyPayoutAccountTypeId?: string | undefined;
493
+ dailyYieldRate?: string | undefined;
494
+ description?: string | null | undefined;
495
+ maturitySettlementAccountTypeId?: string | undefined;
496
+ maturityYieldRate?: string | undefined;
497
+ maxSharesPerOrder?: number | null | undefined;
498
+ minShares?: number | undefined;
499
+ name?: string | undefined;
500
+ pricePerShare?: string | undefined;
501
+ pricingAssetId?: string | undefined;
502
+ rightsAssetId?: string | undefined;
503
+ rightsPerShare?: string | undefined;
504
+ saleEndAt?: Date | null | undefined;
505
+ saleStartAt?: Date | null | undefined;
506
+ sourcePricingAccountTypeId?: string | undefined;
507
+ status?: "active" | "draft" | "ended" | "paused" | undefined;
508
+ };
509
+ params: {
510
+ id: string;
511
+ };
512
+ query: {};
513
+ headers: {};
514
+ response: {
515
+ 200: {
516
+ coverImageUrl: string | null;
517
+ createdAt: Date;
518
+ cycleDays: number;
519
+ dailyPayoutAccountType: {
520
+ id: string;
521
+ key: string;
522
+ name: string;
523
+ isActive: boolean;
524
+ };
525
+ dailyPayoutAccountTypeId: string;
526
+ dailyYieldRate: string;
527
+ description: string | null;
528
+ id: string;
529
+ maturitySettlementAccountType: {
530
+ id: string;
531
+ key: string;
532
+ name: string;
533
+ isActive: boolean;
534
+ };
535
+ maturitySettlementAccountTypeId: string;
536
+ maturityYieldRate: string;
537
+ maxSharesPerOrder: number | null;
538
+ minShares: number;
539
+ name: string;
540
+ pricePerShare: string;
541
+ pricingAsset: {
542
+ id: string;
543
+ code: string;
544
+ name: string;
545
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
546
+ symbol: string | null;
547
+ precision: number;
548
+ isActive: boolean;
549
+ };
550
+ pricingAssetId: string;
551
+ rightsAsset: {
552
+ id: string;
553
+ code: string;
554
+ name: string;
555
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
556
+ symbol: string | null;
557
+ precision: number;
558
+ isActive: boolean;
559
+ };
560
+ rightsAssetId: string;
561
+ rightsPerShare: string;
562
+ saleEndAt: Date | null;
563
+ saleStartAt: Date | null;
564
+ sourcePricingAccountType: {
565
+ id: string;
566
+ key: string;
567
+ name: string;
568
+ isActive: boolean;
569
+ };
570
+ sourcePricingAccountTypeId: string;
571
+ status: "active" | "draft" | "ended" | "paused";
572
+ updatedAt: Date;
573
+ };
574
+ 401: "Unauthorized";
575
+ 403: "Forbidden: Admins only";
576
+ 422: {
577
+ type: 'validation';
578
+ on: string;
579
+ summary?: string;
580
+ message?: string;
581
+ found?: unknown;
582
+ property?: string;
583
+ expected?: string;
584
+ };
585
+ };
586
+ };
587
+ };
588
+ };
589
+ };
590
+ } & {
591
+ welfare_cycle: {
592
+ plans: {
593
+ ":id": {
594
+ activate: {
595
+ post: {
596
+ body: {};
597
+ params: {
598
+ id: string;
599
+ };
600
+ query: {};
601
+ headers: {};
602
+ response: {
603
+ 200: {
604
+ coverImageUrl: string | null;
605
+ createdAt: Date;
606
+ cycleDays: number;
607
+ dailyPayoutAccountType: {
608
+ id: string;
609
+ key: string;
610
+ name: string;
611
+ isActive: boolean;
612
+ };
613
+ dailyPayoutAccountTypeId: string;
614
+ dailyYieldRate: string;
615
+ description: string | null;
616
+ id: string;
617
+ maturitySettlementAccountType: {
618
+ id: string;
619
+ key: string;
620
+ name: string;
621
+ isActive: boolean;
622
+ };
623
+ maturitySettlementAccountTypeId: string;
624
+ maturityYieldRate: string;
625
+ maxSharesPerOrder: number | null;
626
+ minShares: number;
627
+ name: string;
628
+ pricePerShare: string;
629
+ pricingAsset: {
630
+ id: string;
631
+ code: string;
632
+ name: string;
633
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
634
+ symbol: string | null;
635
+ precision: number;
636
+ isActive: boolean;
637
+ };
638
+ pricingAssetId: string;
639
+ rightsAsset: {
640
+ id: string;
641
+ code: string;
642
+ name: string;
643
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
644
+ symbol: string | null;
645
+ precision: number;
646
+ isActive: boolean;
647
+ };
648
+ rightsAssetId: string;
649
+ rightsPerShare: string;
650
+ saleEndAt: Date | null;
651
+ saleStartAt: Date | null;
652
+ sourcePricingAccountType: {
653
+ id: string;
654
+ key: string;
655
+ name: string;
656
+ isActive: boolean;
657
+ };
658
+ sourcePricingAccountTypeId: string;
659
+ status: "active" | "draft" | "ended" | "paused";
660
+ updatedAt: Date;
661
+ };
662
+ 401: "Unauthorized";
663
+ 403: "Forbidden: Admins only";
664
+ 422: {
665
+ type: 'validation';
666
+ on: string;
667
+ summary?: string;
668
+ message?: string;
669
+ found?: unknown;
670
+ property?: string;
671
+ expected?: string;
672
+ };
673
+ };
674
+ };
675
+ };
676
+ };
677
+ };
678
+ };
679
+ } & {
680
+ welfare_cycle: {
681
+ plans: {
682
+ ":id": {
683
+ pause: {
684
+ post: {
685
+ body: {};
686
+ params: {
687
+ id: string;
688
+ };
689
+ query: {};
690
+ headers: {};
691
+ response: {
692
+ 200: {
693
+ coverImageUrl: string | null;
694
+ createdAt: Date;
695
+ cycleDays: number;
696
+ dailyPayoutAccountType: {
697
+ id: string;
698
+ key: string;
699
+ name: string;
700
+ isActive: boolean;
701
+ };
702
+ dailyPayoutAccountTypeId: string;
703
+ dailyYieldRate: string;
704
+ description: string | null;
705
+ id: string;
706
+ maturitySettlementAccountType: {
707
+ id: string;
708
+ key: string;
709
+ name: string;
710
+ isActive: boolean;
711
+ };
712
+ maturitySettlementAccountTypeId: string;
713
+ maturityYieldRate: string;
714
+ maxSharesPerOrder: number | null;
715
+ minShares: number;
716
+ name: string;
717
+ pricePerShare: string;
718
+ pricingAsset: {
719
+ id: string;
720
+ code: string;
721
+ name: string;
722
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
723
+ symbol: string | null;
724
+ precision: number;
725
+ isActive: boolean;
726
+ };
727
+ pricingAssetId: string;
728
+ rightsAsset: {
729
+ id: string;
730
+ code: string;
731
+ name: string;
732
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
733
+ symbol: string | null;
734
+ precision: number;
735
+ isActive: boolean;
736
+ };
737
+ rightsAssetId: string;
738
+ rightsPerShare: string;
739
+ saleEndAt: Date | null;
740
+ saleStartAt: Date | null;
741
+ sourcePricingAccountType: {
742
+ id: string;
743
+ key: string;
744
+ name: string;
745
+ isActive: boolean;
746
+ };
747
+ sourcePricingAccountTypeId: string;
748
+ status: "active" | "draft" | "ended" | "paused";
749
+ updatedAt: Date;
750
+ };
751
+ 401: "Unauthorized";
752
+ 403: "Forbidden: Admins only";
753
+ 422: {
754
+ type: 'validation';
755
+ on: string;
756
+ summary?: string;
757
+ message?: string;
758
+ found?: unknown;
759
+ property?: string;
760
+ expected?: string;
761
+ };
762
+ };
763
+ };
764
+ };
765
+ };
766
+ };
767
+ };
768
+ } & {
769
+ welfare_cycle: {
770
+ plans: {
771
+ ":id": {
772
+ end: {
773
+ post: {
774
+ body: {};
775
+ params: {
776
+ id: string;
777
+ };
778
+ query: {};
779
+ headers: {};
780
+ response: {
781
+ 200: {
782
+ coverImageUrl: string | null;
783
+ createdAt: Date;
784
+ cycleDays: number;
785
+ dailyPayoutAccountType: {
786
+ id: string;
787
+ key: string;
788
+ name: string;
789
+ isActive: boolean;
790
+ };
791
+ dailyPayoutAccountTypeId: string;
792
+ dailyYieldRate: string;
793
+ description: string | null;
794
+ id: string;
795
+ maturitySettlementAccountType: {
796
+ id: string;
797
+ key: string;
798
+ name: string;
799
+ isActive: boolean;
800
+ };
801
+ maturitySettlementAccountTypeId: string;
802
+ maturityYieldRate: string;
803
+ maxSharesPerOrder: number | null;
804
+ minShares: number;
805
+ name: string;
806
+ pricePerShare: string;
807
+ pricingAsset: {
808
+ id: string;
809
+ code: string;
810
+ name: string;
811
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
812
+ symbol: string | null;
813
+ precision: number;
814
+ isActive: boolean;
815
+ };
816
+ pricingAssetId: string;
817
+ rightsAsset: {
818
+ id: string;
819
+ code: string;
820
+ name: string;
821
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
822
+ symbol: string | null;
823
+ precision: number;
824
+ isActive: boolean;
825
+ };
826
+ rightsAssetId: string;
827
+ rightsPerShare: string;
828
+ saleEndAt: Date | null;
829
+ saleStartAt: Date | null;
830
+ sourcePricingAccountType: {
831
+ id: string;
832
+ key: string;
833
+ name: string;
834
+ isActive: boolean;
835
+ };
836
+ sourcePricingAccountTypeId: string;
837
+ status: "active" | "draft" | "ended" | "paused";
838
+ updatedAt: Date;
839
+ };
840
+ 401: "Unauthorized";
841
+ 403: "Forbidden: Admins only";
842
+ 422: {
843
+ type: 'validation';
844
+ on: string;
845
+ summary?: string;
846
+ message?: string;
847
+ found?: unknown;
848
+ property?: string;
849
+ expected?: string;
850
+ };
851
+ };
852
+ };
853
+ };
854
+ };
855
+ };
856
+ };
857
+ } & {
858
+ welfare_cycle: {
859
+ plans: {
860
+ get: {
861
+ body: {};
862
+ params: {};
863
+ query: {
864
+ limit?: number | undefined;
865
+ offset?: number | undefined;
866
+ pageIndex?: number | undefined;
867
+ pageSize?: number | undefined;
868
+ status?: "active" | "draft" | "ended" | "paused" | undefined;
869
+ };
870
+ headers: {};
871
+ response: {
872
+ 200: {
873
+ data: {
874
+ coverImageUrl: string | null;
875
+ createdAt: Date;
876
+ cycleDays: number;
877
+ dailyPayoutAccountType: {
878
+ id: string;
879
+ key: string;
880
+ name: string;
881
+ isActive: boolean;
882
+ };
883
+ dailyPayoutAccountTypeId: string;
884
+ dailyYieldRate: string;
885
+ description: string | null;
886
+ id: string;
887
+ maturitySettlementAccountType: {
888
+ id: string;
889
+ key: string;
890
+ name: string;
891
+ isActive: boolean;
892
+ };
893
+ maturitySettlementAccountTypeId: string;
894
+ maturityYieldRate: string;
895
+ maxSharesPerOrder: number | null;
896
+ minShares: number;
897
+ name: string;
898
+ pricePerShare: string;
899
+ pricingAsset: {
900
+ id: string;
901
+ code: string;
902
+ name: string;
903
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
904
+ symbol: string | null;
905
+ precision: number;
906
+ isActive: boolean;
907
+ };
908
+ pricingAssetId: string;
909
+ rightsAsset: {
910
+ id: string;
911
+ code: string;
912
+ name: string;
913
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
914
+ symbol: string | null;
915
+ precision: number;
916
+ isActive: boolean;
917
+ };
918
+ rightsAssetId: string;
919
+ rightsPerShare: string;
920
+ saleEndAt: Date | null;
921
+ saleStartAt: Date | null;
922
+ sourcePricingAccountType: {
923
+ id: string;
924
+ key: string;
925
+ name: string;
926
+ isActive: boolean;
927
+ };
928
+ sourcePricingAccountTypeId: string;
929
+ status: "active" | "draft" | "ended" | "paused";
930
+ updatedAt: Date;
931
+ }[];
932
+ pagination: {
933
+ pageSize: number;
934
+ pageIndex: number;
935
+ total: number;
936
+ totalPages: number;
937
+ hasNextPage: boolean;
938
+ };
939
+ };
940
+ 401: "Unauthorized";
941
+ 403: "Forbidden: Admins only";
942
+ 422: {
943
+ type: 'validation';
944
+ on: string;
945
+ summary?: string;
946
+ message?: string;
947
+ found?: unknown;
948
+ property?: string;
949
+ expected?: string;
950
+ };
951
+ };
952
+ };
953
+ };
954
+ };
955
+ } & {
956
+ welfare_cycle: {
957
+ subscriptions: {
958
+ get: {
959
+ body: {};
960
+ params: {};
961
+ query: {
962
+ limit?: number | undefined;
963
+ offset?: number | undefined;
964
+ pageIndex?: number | undefined;
965
+ pageSize?: number | undefined;
966
+ planId?: string | undefined;
967
+ status?: "active" | "cancelled" | "matured" | "pending" | "settled" | undefined;
968
+ userId?: string | undefined;
969
+ };
970
+ headers: {};
971
+ response: {
972
+ 200: {
973
+ data: {
974
+ createdAt: Date;
975
+ cycleDaysSnapshot: number;
976
+ dailyPayoutReceiveAccount: {
977
+ id: string;
978
+ userId: string;
979
+ assetId: string;
980
+ ledgerAccountTypeId: string;
981
+ status: "active" | "disabled" | "frozen";
982
+ };
983
+ dailyPayoutReceiveAccountId: string;
984
+ dailyYieldRateSnapshot: string;
985
+ id: string;
986
+ idempotencyKey: string;
987
+ lastPayoutDate: Date | null;
988
+ maturityDate: Date;
989
+ maturitySettlementReceiveAccount: {
990
+ id: string;
991
+ userId: string;
992
+ assetId: string;
993
+ ledgerAccountTypeId: string;
994
+ status: "active" | "disabled" | "frozen";
995
+ };
996
+ maturitySettlementReceiveAccountId: string;
997
+ maturityYieldRateSnapshot: string;
998
+ nextPayoutDate: Date | null;
999
+ orderNo: string;
1000
+ plan: {
1001
+ coverImageUrl: string | null;
1002
+ createdAt: Date;
1003
+ cycleDays: number;
1004
+ dailyPayoutAccountType: {
1005
+ id: string;
1006
+ key: string;
1007
+ name: string;
1008
+ isActive: boolean;
1009
+ };
1010
+ dailyPayoutAccountTypeId: string;
1011
+ dailyYieldRate: string;
1012
+ description: string | null;
1013
+ id: string;
1014
+ maturitySettlementAccountType: {
1015
+ id: string;
1016
+ key: string;
1017
+ name: string;
1018
+ isActive: boolean;
1019
+ };
1020
+ maturitySettlementAccountTypeId: string;
1021
+ maturityYieldRate: string;
1022
+ maxSharesPerOrder: number | null;
1023
+ minShares: number;
1024
+ name: string;
1025
+ pricePerShare: string;
1026
+ pricingAsset: {
1027
+ id: string;
1028
+ code: string;
1029
+ name: string;
1030
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1031
+ symbol: string | null;
1032
+ precision: number;
1033
+ isActive: boolean;
1034
+ };
1035
+ pricingAssetId: string;
1036
+ rightsAsset: {
1037
+ id: string;
1038
+ code: string;
1039
+ name: string;
1040
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1041
+ symbol: string | null;
1042
+ precision: number;
1043
+ isActive: boolean;
1044
+ };
1045
+ rightsAssetId: string;
1046
+ rightsPerShare: string;
1047
+ saleEndAt: Date | null;
1048
+ saleStartAt: Date | null;
1049
+ sourcePricingAccountType: {
1050
+ id: string;
1051
+ key: string;
1052
+ name: string;
1053
+ isActive: boolean;
1054
+ };
1055
+ sourcePricingAccountTypeId: string;
1056
+ status: "active" | "draft" | "ended" | "paused";
1057
+ updatedAt: Date;
1058
+ };
1059
+ planId: string;
1060
+ pricePerShareSnapshot: string;
1061
+ pricingAssetIdSnapshot: string;
1062
+ pricingAssetSnapshot: {
1063
+ id: string;
1064
+ code: string;
1065
+ name: string;
1066
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1067
+ symbol: string | null;
1068
+ precision: number;
1069
+ isActive: boolean;
1070
+ };
1071
+ rightsAssetIdSnapshot: string;
1072
+ rightsAssetSnapshot: {
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
+ rightsPerShareSnapshot: string;
1082
+ shares: number;
1083
+ sourcePricingAccount: {
1084
+ id: string;
1085
+ userId: string;
1086
+ assetId: string;
1087
+ ledgerAccountTypeId: string;
1088
+ status: "active" | "disabled" | "frozen";
1089
+ };
1090
+ sourcePricingAccountId: string;
1091
+ startDate: Date;
1092
+ status: "active" | "cancelled" | "matured" | "pending" | "settled";
1093
+ totalPricingAmount: string;
1094
+ totalRightsPrincipal: string;
1095
+ updatedAt: Date;
1096
+ user: {
1097
+ id: string;
1098
+ email: string;
1099
+ username: string | null;
1100
+ displayUsername: string | null;
1101
+ phoneNumber: string | null;
1102
+ banned: boolean | null;
1103
+ };
1104
+ userId: string;
1105
+ }[];
1106
+ pagination: {
1107
+ pageSize: number;
1108
+ pageIndex: number;
1109
+ total: number;
1110
+ totalPages: number;
1111
+ hasNextPage: boolean;
1112
+ };
1113
+ };
1114
+ 401: "Unauthorized";
1115
+ 403: "Forbidden: Admins only";
1116
+ 422: {
1117
+ type: 'validation';
1118
+ on: string;
1119
+ summary?: string;
1120
+ message?: string;
1121
+ found?: unknown;
1122
+ property?: string;
1123
+ expected?: string;
1124
+ };
1125
+ };
1126
+ };
1127
+ };
1128
+ };
1129
+ } & {
1130
+ welfare_cycle: {
1131
+ "daily-payouts": {
1132
+ get: {
1133
+ body: {};
1134
+ params: {};
1135
+ query: {
1136
+ limit?: number | undefined;
1137
+ offset?: number | undefined;
1138
+ pageIndex?: number | undefined;
1139
+ pageSize?: number | undefined;
1140
+ planId?: string | undefined;
1141
+ status?: "completed" | "failed" | "pending" | undefined;
1142
+ userId?: string | undefined;
1143
+ };
1144
+ headers: {};
1145
+ response: {
1146
+ 200: {
1147
+ data: {
1148
+ amount: string;
1149
+ createdAt: Date;
1150
+ id: string;
1151
+ idempotencyKey: string;
1152
+ ledgerEntry?: {
1153
+ id: string;
1154
+ bizType: string;
1155
+ amount: string;
1156
+ referenceId: string;
1157
+ referenceType: string;
1158
+ createdAt: Date;
1159
+ } | undefined;
1160
+ ledgerEntryId: string | null;
1161
+ payoutDate: string;
1162
+ plan: {
1163
+ coverImageUrl: string | null;
1164
+ createdAt: Date;
1165
+ cycleDays: number;
1166
+ dailyPayoutAccountType: {
1167
+ id: string;
1168
+ key: string;
1169
+ name: string;
1170
+ isActive: boolean;
1171
+ };
1172
+ dailyPayoutAccountTypeId: string;
1173
+ dailyYieldRate: string;
1174
+ description: string | null;
1175
+ id: string;
1176
+ maturitySettlementAccountType: {
1177
+ id: string;
1178
+ key: string;
1179
+ name: string;
1180
+ isActive: boolean;
1181
+ };
1182
+ maturitySettlementAccountTypeId: string;
1183
+ maturityYieldRate: string;
1184
+ maxSharesPerOrder: number | null;
1185
+ minShares: number;
1186
+ name: string;
1187
+ pricePerShare: string;
1188
+ pricingAsset: {
1189
+ id: string;
1190
+ code: string;
1191
+ name: string;
1192
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1193
+ symbol: string | null;
1194
+ precision: number;
1195
+ isActive: boolean;
1196
+ };
1197
+ pricingAssetId: string;
1198
+ rightsAsset: {
1199
+ id: string;
1200
+ code: string;
1201
+ name: string;
1202
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1203
+ symbol: string | null;
1204
+ precision: number;
1205
+ isActive: boolean;
1206
+ };
1207
+ rightsAssetId: string;
1208
+ rightsPerShare: string;
1209
+ saleEndAt: Date | null;
1210
+ saleStartAt: Date | null;
1211
+ sourcePricingAccountType: {
1212
+ id: string;
1213
+ key: string;
1214
+ name: string;
1215
+ isActive: boolean;
1216
+ };
1217
+ sourcePricingAccountTypeId: string;
1218
+ status: "active" | "draft" | "ended" | "paused";
1219
+ updatedAt: Date;
1220
+ };
1221
+ planId: string;
1222
+ status: "completed" | "failed" | "pending";
1223
+ subscription: {
1224
+ createdAt: Date;
1225
+ cycleDaysSnapshot: number;
1226
+ dailyPayoutReceiveAccount: {
1227
+ id: string;
1228
+ userId: string;
1229
+ assetId: string;
1230
+ ledgerAccountTypeId: string;
1231
+ status: "active" | "disabled" | "frozen";
1232
+ };
1233
+ dailyPayoutReceiveAccountId: string;
1234
+ dailyYieldRateSnapshot: string;
1235
+ id: string;
1236
+ idempotencyKey: string;
1237
+ lastPayoutDate: Date | null;
1238
+ maturityDate: Date;
1239
+ maturitySettlementReceiveAccount: {
1240
+ id: string;
1241
+ userId: string;
1242
+ assetId: string;
1243
+ ledgerAccountTypeId: string;
1244
+ status: "active" | "disabled" | "frozen";
1245
+ };
1246
+ maturitySettlementReceiveAccountId: string;
1247
+ maturityYieldRateSnapshot: string;
1248
+ nextPayoutDate: Date | null;
1249
+ orderNo: string;
1250
+ plan: {
1251
+ coverImageUrl: string | null;
1252
+ createdAt: Date;
1253
+ cycleDays: number;
1254
+ dailyPayoutAccountType: {
1255
+ id: string;
1256
+ key: string;
1257
+ name: string;
1258
+ isActive: boolean;
1259
+ };
1260
+ dailyPayoutAccountTypeId: string;
1261
+ dailyYieldRate: string;
1262
+ description: string | null;
1263
+ id: string;
1264
+ maturitySettlementAccountType: {
1265
+ id: string;
1266
+ key: string;
1267
+ name: string;
1268
+ isActive: boolean;
1269
+ };
1270
+ maturitySettlementAccountTypeId: string;
1271
+ maturityYieldRate: string;
1272
+ maxSharesPerOrder: number | null;
1273
+ minShares: number;
1274
+ name: string;
1275
+ pricePerShare: string;
1276
+ pricingAsset: {
1277
+ id: string;
1278
+ code: string;
1279
+ name: string;
1280
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1281
+ symbol: string | null;
1282
+ precision: number;
1283
+ isActive: boolean;
1284
+ };
1285
+ pricingAssetId: string;
1286
+ rightsAsset: {
1287
+ id: string;
1288
+ code: string;
1289
+ name: string;
1290
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1291
+ symbol: string | null;
1292
+ precision: number;
1293
+ isActive: boolean;
1294
+ };
1295
+ rightsAssetId: string;
1296
+ rightsPerShare: string;
1297
+ saleEndAt: Date | null;
1298
+ saleStartAt: Date | null;
1299
+ sourcePricingAccountType: {
1300
+ id: string;
1301
+ key: string;
1302
+ name: string;
1303
+ isActive: boolean;
1304
+ };
1305
+ sourcePricingAccountTypeId: string;
1306
+ status: "active" | "draft" | "ended" | "paused";
1307
+ updatedAt: Date;
1308
+ };
1309
+ planId: string;
1310
+ pricePerShareSnapshot: string;
1311
+ pricingAssetIdSnapshot: string;
1312
+ pricingAssetSnapshot: {
1313
+ id: string;
1314
+ code: string;
1315
+ name: string;
1316
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1317
+ symbol: string | null;
1318
+ precision: number;
1319
+ isActive: boolean;
1320
+ };
1321
+ rightsAssetIdSnapshot: string;
1322
+ rightsAssetSnapshot: {
1323
+ id: string;
1324
+ code: string;
1325
+ name: string;
1326
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1327
+ symbol: string | null;
1328
+ precision: number;
1329
+ isActive: boolean;
1330
+ };
1331
+ rightsPerShareSnapshot: string;
1332
+ shares: number;
1333
+ sourcePricingAccount: {
1334
+ id: string;
1335
+ userId: string;
1336
+ assetId: string;
1337
+ ledgerAccountTypeId: string;
1338
+ status: "active" | "disabled" | "frozen";
1339
+ };
1340
+ sourcePricingAccountId: string;
1341
+ startDate: Date;
1342
+ status: "active" | "cancelled" | "matured" | "pending" | "settled";
1343
+ totalPricingAmount: string;
1344
+ totalRightsPrincipal: string;
1345
+ updatedAt: Date;
1346
+ user: {
1347
+ id: string;
1348
+ email: string;
1349
+ username: string | null;
1350
+ displayUsername: string | null;
1351
+ phoneNumber: string | null;
1352
+ banned: boolean | null;
1353
+ };
1354
+ userId: string;
1355
+ };
1356
+ subscriptionId: string;
1357
+ updatedAt: Date;
1358
+ user: {
1359
+ id: string;
1360
+ email: string;
1361
+ username: string | null;
1362
+ displayUsername: string | null;
1363
+ phoneNumber: string | null;
1364
+ banned: boolean | null;
1365
+ };
1366
+ userId: string;
1367
+ }[];
1368
+ pagination: {
1369
+ pageSize: number;
1370
+ pageIndex: number;
1371
+ total: number;
1372
+ totalPages: number;
1373
+ hasNextPage: boolean;
1374
+ };
1375
+ };
1376
+ 401: "Unauthorized";
1377
+ 403: "Forbidden: Admins only";
1378
+ 422: {
1379
+ type: 'validation';
1380
+ on: string;
1381
+ summary?: string;
1382
+ message?: string;
1383
+ found?: unknown;
1384
+ property?: string;
1385
+ expected?: string;
1386
+ };
1387
+ };
1388
+ };
1389
+ };
1390
+ };
1391
+ } & {
1392
+ welfare_cycle: {
1393
+ "maturity-settlements": {
1394
+ get: {
1395
+ body: {};
1396
+ params: {};
1397
+ query: {
1398
+ limit?: number | undefined;
1399
+ offset?: number | undefined;
1400
+ pageIndex?: number | undefined;
1401
+ pageSize?: number | undefined;
1402
+ planId?: string | undefined;
1403
+ status?: "completed" | "failed" | "pending" | undefined;
1404
+ userId?: string | undefined;
1405
+ };
1406
+ headers: {};
1407
+ response: {
1408
+ 200: {
1409
+ data: {
1410
+ createdAt: Date;
1411
+ id: string;
1412
+ idempotencyKey: string;
1413
+ maturityYieldAmount: string;
1414
+ plan: {
1415
+ coverImageUrl: string | null;
1416
+ createdAt: Date;
1417
+ cycleDays: number;
1418
+ dailyPayoutAccountType: {
1419
+ id: string;
1420
+ key: string;
1421
+ name: string;
1422
+ isActive: boolean;
1423
+ };
1424
+ dailyPayoutAccountTypeId: string;
1425
+ dailyYieldRate: string;
1426
+ description: string | null;
1427
+ id: string;
1428
+ maturitySettlementAccountType: {
1429
+ id: string;
1430
+ key: string;
1431
+ name: string;
1432
+ isActive: boolean;
1433
+ };
1434
+ maturitySettlementAccountTypeId: string;
1435
+ maturityYieldRate: string;
1436
+ maxSharesPerOrder: number | null;
1437
+ minShares: number;
1438
+ name: string;
1439
+ pricePerShare: string;
1440
+ pricingAsset: {
1441
+ id: string;
1442
+ code: string;
1443
+ name: string;
1444
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1445
+ symbol: string | null;
1446
+ precision: number;
1447
+ isActive: boolean;
1448
+ };
1449
+ pricingAssetId: string;
1450
+ rightsAsset: {
1451
+ id: string;
1452
+ code: string;
1453
+ name: string;
1454
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1455
+ symbol: string | null;
1456
+ precision: number;
1457
+ isActive: boolean;
1458
+ };
1459
+ rightsAssetId: string;
1460
+ rightsPerShare: string;
1461
+ saleEndAt: Date | null;
1462
+ saleStartAt: Date | null;
1463
+ sourcePricingAccountType: {
1464
+ id: string;
1465
+ key: string;
1466
+ name: string;
1467
+ isActive: boolean;
1468
+ };
1469
+ sourcePricingAccountTypeId: string;
1470
+ status: "active" | "draft" | "ended" | "paused";
1471
+ updatedAt: Date;
1472
+ };
1473
+ planId: string;
1474
+ principalLedgerEntry?: {
1475
+ id: string;
1476
+ bizType: string;
1477
+ amount: string;
1478
+ referenceId: string;
1479
+ referenceType: string;
1480
+ createdAt: Date;
1481
+ } | undefined;
1482
+ principalLedgerEntryId: string | null;
1483
+ principalReturnAmount: string;
1484
+ settlementDate: Date;
1485
+ status: "completed" | "failed" | "pending";
1486
+ subscription: {
1487
+ createdAt: Date;
1488
+ cycleDaysSnapshot: number;
1489
+ dailyPayoutReceiveAccount: {
1490
+ id: string;
1491
+ userId: string;
1492
+ assetId: string;
1493
+ ledgerAccountTypeId: string;
1494
+ status: "active" | "disabled" | "frozen";
1495
+ };
1496
+ dailyPayoutReceiveAccountId: string;
1497
+ dailyYieldRateSnapshot: string;
1498
+ id: string;
1499
+ idempotencyKey: string;
1500
+ lastPayoutDate: Date | null;
1501
+ maturityDate: Date;
1502
+ maturitySettlementReceiveAccount: {
1503
+ id: string;
1504
+ userId: string;
1505
+ assetId: string;
1506
+ ledgerAccountTypeId: string;
1507
+ status: "active" | "disabled" | "frozen";
1508
+ };
1509
+ maturitySettlementReceiveAccountId: string;
1510
+ maturityYieldRateSnapshot: string;
1511
+ nextPayoutDate: Date | null;
1512
+ orderNo: string;
1513
+ plan: {
1514
+ coverImageUrl: string | null;
1515
+ createdAt: Date;
1516
+ cycleDays: number;
1517
+ dailyPayoutAccountType: {
1518
+ id: string;
1519
+ key: string;
1520
+ name: string;
1521
+ isActive: boolean;
1522
+ };
1523
+ dailyPayoutAccountTypeId: string;
1524
+ dailyYieldRate: string;
1525
+ description: string | null;
1526
+ id: string;
1527
+ maturitySettlementAccountType: {
1528
+ id: string;
1529
+ key: string;
1530
+ name: string;
1531
+ isActive: boolean;
1532
+ };
1533
+ maturitySettlementAccountTypeId: string;
1534
+ maturityYieldRate: string;
1535
+ maxSharesPerOrder: number | null;
1536
+ minShares: number;
1537
+ name: string;
1538
+ pricePerShare: string;
1539
+ pricingAsset: {
1540
+ id: string;
1541
+ code: string;
1542
+ name: string;
1543
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1544
+ symbol: string | null;
1545
+ precision: number;
1546
+ isActive: boolean;
1547
+ };
1548
+ pricingAssetId: string;
1549
+ rightsAsset: {
1550
+ id: string;
1551
+ code: string;
1552
+ name: string;
1553
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1554
+ symbol: string | null;
1555
+ precision: number;
1556
+ isActive: boolean;
1557
+ };
1558
+ rightsAssetId: string;
1559
+ rightsPerShare: string;
1560
+ saleEndAt: Date | null;
1561
+ saleStartAt: Date | null;
1562
+ sourcePricingAccountType: {
1563
+ id: string;
1564
+ key: string;
1565
+ name: string;
1566
+ isActive: boolean;
1567
+ };
1568
+ sourcePricingAccountTypeId: string;
1569
+ status: "active" | "draft" | "ended" | "paused";
1570
+ updatedAt: Date;
1571
+ };
1572
+ planId: string;
1573
+ pricePerShareSnapshot: string;
1574
+ pricingAssetIdSnapshot: string;
1575
+ pricingAssetSnapshot: {
1576
+ id: string;
1577
+ code: string;
1578
+ name: string;
1579
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1580
+ symbol: string | null;
1581
+ precision: number;
1582
+ isActive: boolean;
1583
+ };
1584
+ rightsAssetIdSnapshot: string;
1585
+ rightsAssetSnapshot: {
1586
+ id: string;
1587
+ code: string;
1588
+ name: string;
1589
+ category: "CRYPTO" | "FIAT" | "POINT" | "RWA";
1590
+ symbol: string | null;
1591
+ precision: number;
1592
+ isActive: boolean;
1593
+ };
1594
+ rightsPerShareSnapshot: string;
1595
+ shares: number;
1596
+ sourcePricingAccount: {
1597
+ id: string;
1598
+ userId: string;
1599
+ assetId: string;
1600
+ ledgerAccountTypeId: string;
1601
+ status: "active" | "disabled" | "frozen";
1602
+ };
1603
+ sourcePricingAccountId: string;
1604
+ startDate: Date;
1605
+ status: "active" | "cancelled" | "matured" | "pending" | "settled";
1606
+ totalPricingAmount: string;
1607
+ totalRightsPrincipal: string;
1608
+ updatedAt: Date;
1609
+ user: {
1610
+ id: string;
1611
+ email: string;
1612
+ username: string | null;
1613
+ displayUsername: string | null;
1614
+ phoneNumber: string | null;
1615
+ banned: boolean | null;
1616
+ };
1617
+ userId: string;
1618
+ };
1619
+ subscriptionId: string;
1620
+ updatedAt: Date;
1621
+ user: {
1622
+ id: string;
1623
+ email: string;
1624
+ username: string | null;
1625
+ displayUsername: string | null;
1626
+ phoneNumber: string | null;
1627
+ banned: boolean | null;
1628
+ };
1629
+ userId: string;
1630
+ yieldLedgerEntry?: {
1631
+ id: string;
1632
+ bizType: string;
1633
+ amount: string;
1634
+ referenceId: string;
1635
+ referenceType: string;
1636
+ createdAt: Date;
1637
+ } | undefined;
1638
+ yieldLedgerEntryId: string | null;
1639
+ }[];
1640
+ pagination: {
1641
+ pageSize: number;
1642
+ pageIndex: number;
1643
+ total: number;
1644
+ totalPages: number;
1645
+ hasNextPage: boolean;
1646
+ };
1647
+ };
1648
+ 401: "Unauthorized";
1649
+ 403: "Forbidden: Admins only";
1650
+ 422: {
1651
+ type: 'validation';
1652
+ on: string;
1653
+ summary?: string;
1654
+ message?: string;
1655
+ found?: unknown;
1656
+ property?: string;
1657
+ expected?: string;
1658
+ };
1659
+ };
1660
+ };
1661
+ };
1662
+ };
1663
+ } & {
1664
+ welfare_cycle: {
1665
+ jobs: {
1666
+ "run-daily-payout": {
1667
+ post: {
1668
+ body: {
1669
+ subscriptionIds?: string[] | undefined;
1670
+ payoutDate?: Date | undefined;
1671
+ };
1672
+ params: {};
1673
+ query: {};
1674
+ headers: {};
1675
+ response: {
1676
+ 200: {
1677
+ successCount: number;
1678
+ processedIds: string[];
1679
+ };
1680
+ 401: "Unauthorized";
1681
+ 403: "Forbidden: Admins only";
1682
+ 422: {
1683
+ type: 'validation';
1684
+ on: string;
1685
+ summary?: string;
1686
+ message?: string;
1687
+ found?: unknown;
1688
+ property?: string;
1689
+ expected?: string;
1690
+ };
1691
+ };
1692
+ };
1693
+ };
1694
+ };
1695
+ };
1696
+ } & {
1697
+ welfare_cycle: {
1698
+ jobs: {
1699
+ "run-maturity-settlement": {
1700
+ post: {
1701
+ body: {
1702
+ subscriptionIds?: string[] | undefined;
1703
+ settlementDate?: Date | undefined;
1704
+ limit?: number | undefined;
1705
+ };
1706
+ params: {};
1707
+ query: {};
1708
+ headers: {};
1709
+ response: {
1710
+ 200: {
1711
+ successCount: number;
1712
+ processedIds: string[];
1713
+ };
1714
+ 401: "Unauthorized";
1715
+ 403: "Forbidden: Admins only";
1716
+ 422: {
1717
+ type: 'validation';
1718
+ on: string;
1719
+ summary?: string;
1720
+ message?: string;
1721
+ found?: unknown;
1722
+ property?: string;
1723
+ expected?: string;
1724
+ };
1725
+ };
1726
+ };
1727
+ };
1728
+ };
1729
+ };
1730
+ }, {
1731
+ derive: {};
1732
+ resolve: {};
1733
+ schema: {};
1734
+ standaloneSchema: {};
1735
+ response: {};
1736
+ }, {
1737
+ derive: {};
1738
+ resolve: {
1739
+ user: {
1740
+ id: string;
1741
+ createdAt: Date;
1742
+ updatedAt: Date;
1743
+ email: string;
1744
+ emailVerified: boolean;
1745
+ name: string;
1746
+ image?: string | null | undefined;
1747
+ banExpires?: Date | null | undefined;
1748
+ banReason?: string | null | undefined;
1749
+ banned: boolean | null | undefined;
1750
+ displayUsername?: string | null | undefined;
1751
+ phoneNumber?: string | null | undefined;
1752
+ phoneNumberVerified?: boolean | null | undefined;
1753
+ role?: string | null | undefined;
1754
+ twoFactorEnabled: boolean | null | undefined;
1755
+ username?: string | null | undefined;
1756
+ };
1757
+ session: {
1758
+ id: string;
1759
+ createdAt: Date;
1760
+ updatedAt: Date;
1761
+ userId: string;
1762
+ expiresAt: Date;
1763
+ token: string;
1764
+ ipAddress?: string | null | undefined;
1765
+ userAgent?: string | null | undefined;
1766
+ impersonatedBy?: string | null | undefined;
1767
+ };
1768
+ } & {
1769
+ user: {
1770
+ id: string;
1771
+ createdAt: Date;
1772
+ updatedAt: Date;
1773
+ email: string;
1774
+ emailVerified: boolean;
1775
+ name: string;
1776
+ image?: string | null | undefined;
1777
+ banExpires?: Date | null | undefined;
1778
+ banReason?: string | null | undefined;
1779
+ banned: boolean | null | undefined;
1780
+ displayUsername?: string | null | undefined;
1781
+ phoneNumber?: string | null | undefined;
1782
+ phoneNumberVerified?: boolean | null | undefined;
1783
+ role?: string | null | undefined;
1784
+ twoFactorEnabled: boolean | null | undefined;
1785
+ username?: string | null | undefined;
1786
+ };
1787
+ session: {
1788
+ id: string;
1789
+ createdAt: Date;
1790
+ updatedAt: Date;
1791
+ userId: string;
1792
+ expiresAt: Date;
1793
+ token: string;
1794
+ ipAddress?: string | null | undefined;
1795
+ userAgent?: string | null | undefined;
1796
+ impersonatedBy?: string | null | undefined;
1797
+ };
1798
+ };
1799
+ schema: {};
1800
+ standaloneSchema: {};
1801
+ response: {
1802
+ 401: "Unauthorized";
1803
+ 403: "Forbidden: Admins only";
1804
+ };
1805
+ }>;