@r2wa-org/eden 0.0.72 → 0.0.79

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 (741) hide show
  1. package/dist/admin/index.d.ts +2256 -213
  2. package/dist/admin-user/admin/dto.schemas.d.ts +3 -3
  3. package/dist/admin-user/admin/errors/index.d.ts +4 -0
  4. package/dist/admin-user/admin/errors/locales/zh.d.ts +1 -0
  5. package/dist/app-version/admin/dto.schemas.d.ts +99 -0
  6. package/dist/{src/wallet-type → app-version}/admin/router.d.ts +150 -135
  7. package/dist/app-version/admin/service.d.ts +105 -0
  8. package/dist/{src/referral → app-version}/db.schemas.d.ts +159 -131
  9. package/dist/{src/referral → app-version}/schema.d.ts +89 -88
  10. package/dist/asset/admin/dto.schemas.d.ts +3 -7
  11. package/dist/asset/admin/router.d.ts +2 -8
  12. package/dist/asset/admin/service.d.ts +1 -6
  13. package/dist/asset/errors/index.d.ts +2 -0
  14. package/dist/asset/errors/locales/zh.d.ts +1 -0
  15. package/dist/asset/user/dto.schemas.d.ts +0 -2
  16. package/dist/asset/user/router.d.ts +0 -3
  17. package/dist/asset/user/service.d.ts +0 -3
  18. package/dist/asset-convert-product/admin/service.d.ts +1 -0
  19. package/dist/asset-convert-product/errors/index.d.ts +1 -0
  20. package/dist/asset-convert-product/errors/locales/zh.d.ts +1 -0
  21. package/dist/asset-convert-product/user/dto.schemas.d.ts +119 -84
  22. package/dist/asset-convert-product/user/router.d.ts +21 -0
  23. package/dist/asset-convert-product/user/service.d.ts +39 -0
  24. package/dist/asset-type/admin/dto.schemas.d.ts +0 -53
  25. package/dist/asset-type/admin/router.d.ts +0 -6
  26. package/dist/asset-type/admin/service.d.ts +0 -4
  27. package/dist/asset-type/db.schemas.d.ts +0 -34
  28. package/dist/asset-type/schema.d.ts +0 -17
  29. package/dist/asset-type/seed.d.ts +0 -3
  30. package/dist/asset-type/user/dto.schemas.d.ts +0 -2
  31. package/dist/asset-type/user/router.d.ts +0 -1
  32. package/dist/asset-type/user/service.d.ts +0 -1
  33. package/dist/auth/db.schemas.d.ts +8 -8
  34. package/dist/auth/schema.d.ts +4 -4
  35. package/dist/bank-account/admin/dto.schemas.d.ts +47 -2
  36. package/dist/bank-account/admin/router.d.ts +32 -0
  37. package/dist/bank-account/admin/service.d.ts +88 -15
  38. package/dist/check-in/admin/dto.schemas.d.ts +1 -1
  39. package/dist/check-in/user/dto.schemas.d.ts +1 -1
  40. package/dist/db/schemas.d.ts +1 -0
  41. package/dist/deposit/admin/dto.schemas.d.ts +2 -2
  42. package/dist/deposit/user/dto.schemas.d.ts +2 -2
  43. package/dist/env/server.d.ts +1 -0
  44. package/dist/{src/cors/index.d.ts → http-access-log.d.ts} +4 -4
  45. package/dist/index.d.ts +2591 -358
  46. package/dist/ledger/admin/dto.schemas.d.ts +353 -688
  47. package/dist/ledger/admin/router.d.ts +81 -0
  48. package/dist/ledger/admin/service.d.ts +2 -135
  49. package/dist/ledger/schema.d.ts +1 -0
  50. package/dist/ledger-account/admin/dto.schemas.d.ts +132 -516
  51. package/dist/ledger-account/admin/router.d.ts +69 -0
  52. package/dist/ledger-account/admin/service.d.ts +54 -0
  53. package/dist/market-data/admin/dto.schemas.d.ts +597 -64
  54. package/dist/market-data/admin/router.d.ts +30 -4
  55. package/dist/market-data/admin/service.d.ts +26 -0
  56. package/dist/market-data/errors/index.d.ts +1 -0
  57. package/dist/market-data/errors/locales/zh.d.ts +1 -0
  58. package/dist/market-data/user/dto.schemas.d.ts +81 -0
  59. package/dist/market-data/user/router.d.ts +172 -0
  60. package/dist/market-data/user/service.d.ts +12 -1
  61. package/dist/market-pricing/admin/dto.schemas.d.ts +602 -64
  62. package/dist/market-pricing/admin/router.d.ts +173 -17
  63. package/dist/market-pricing/admin/service.d.ts +172 -15
  64. package/dist/news/admin/service.d.ts +1 -0
  65. package/dist/news-category/admin/dto.schemas.d.ts +4 -4
  66. package/dist/news-category/admin/router.d.ts +2 -2
  67. package/dist/news-category/admin/service.d.ts +1 -0
  68. package/dist/news-category/errors/index.d.ts +2 -0
  69. package/dist/news-category/errors/locales/zh.d.ts +1 -0
  70. package/dist/operations-overview/admin/dto.schemas.d.ts +41 -0
  71. package/dist/{src/transfer → operations-overview}/admin/router.d.ts +37 -26
  72. package/dist/operations-overview/admin/service.d.ts +4 -0
  73. package/dist/receipt-method/admin/dto.schemas.d.ts +48 -378
  74. package/dist/receipt-method/admin/router.d.ts +16 -0
  75. package/dist/receipt-method/admin/service.d.ts +36 -0
  76. package/dist/referral/admin/dto.schemas.d.ts +6 -2
  77. package/dist/referral/admin/router.d.ts +1 -6
  78. package/dist/referral/admin/service.d.ts +1 -1
  79. package/dist/referral/errors/index.d.ts +1 -0
  80. package/dist/referral/errors/locales/zh.d.ts +1 -0
  81. package/dist/referral/user/dto.schemas.d.ts +2 -2
  82. package/dist/team/admin/dto.schemas.d.ts +1678 -253
  83. package/dist/team/admin/router.d.ts +82 -1
  84. package/dist/team/admin/service.d.ts +2 -2
  85. package/dist/team/errors/index.d.ts +1 -0
  86. package/dist/team/errors/locales/zh.d.ts +1 -0
  87. package/dist/team/user/dto.schemas.d.ts +5 -5
  88. package/dist/trade-market/admin/dto.schemas.d.ts +4079 -77
  89. package/dist/trade-market/admin/router.d.ts +486 -0
  90. package/dist/trade-market/admin/service.d.ts +488 -0
  91. package/dist/trade-market/errors/index.d.ts +1 -0
  92. package/dist/trade-market/errors/locales/zh.d.ts +1 -0
  93. package/dist/trade-market/internal/service.d.ts +325 -0
  94. package/dist/trade-market/user/service.d.ts +324 -0
  95. package/dist/user/admin/dto.schemas.d.ts +1 -1
  96. package/dist/welfare-cycle/admin/dto.schemas.d.ts +1080 -1561
  97. package/dist/welfare-cycle/admin/router.d.ts +748 -2
  98. package/dist/welfare-cycle/admin/service.d.ts +828 -40
  99. package/dist/welfare-cycle/errors/index.d.ts +2 -0
  100. package/dist/welfare-cycle/errors/locales/zh.d.ts +2 -0
  101. package/dist/welfare-cycle/user/dto.schemas.d.ts +1 -0
  102. package/dist/welfare-cycle/user/router.d.ts +1 -0
  103. package/dist/welfare-cycle/user/service.d.ts +1 -0
  104. package/dist/withdraw/errors/index.d.ts +2 -0
  105. package/dist/withdraw/errors/locales/zh.d.ts +1 -0
  106. package/dist/withdraw/user/dto.schemas.d.ts +2 -2
  107. package/dist/withdraw/user/router.d.ts +2 -2
  108. package/dist/withdraw/user/service.d.ts +1 -0
  109. package/package.json +3 -3
  110. package/dist/src/account/admin.router.d.ts +0 -548
  111. package/dist/src/account/db.schemas.d.ts +0 -346
  112. package/dist/src/account/dto.schemas.d.ts +0 -414
  113. package/dist/src/account/index.d.ts +0 -7
  114. package/dist/src/account/router.d.ts +0 -509
  115. package/dist/src/account/schema.d.ts +0 -190
  116. package/dist/src/account/seed.d.ts +0 -1
  117. package/dist/src/account/service.d.ts +0 -139
  118. package/dist/src/account-type/admin.router.d.ts +0 -495
  119. package/dist/src/account-type/db.schemas.d.ts +0 -380
  120. package/dist/src/account-type/dto.schemas.d.ts +0 -28
  121. package/dist/src/account-type/index.d.ts +0 -7
  122. package/dist/src/account-type/router.d.ts +0 -460
  123. package/dist/src/account-type/schema.d.ts +0 -201
  124. package/dist/src/account-type/seed.d.ts +0 -1
  125. package/dist/src/account-type/service.d.ts +0 -52
  126. package/dist/src/admin/admin/dto.schemas.d.ts +0 -880
  127. package/dist/src/admin/admin/errors/index.d.ts +0 -15
  128. package/dist/src/admin/admin/errors/locales/zh.d.ts +0 -14
  129. package/dist/src/admin/admin/router.d.ts +0 -657
  130. package/dist/src/admin/admin/service.d.ts +0 -60
  131. package/dist/src/admin/index.d.ts +0 -8385
  132. package/dist/src/admin/user/dto.schemas.d.ts +0 -600
  133. package/dist/src/admin/user/router.d.ts +0 -82
  134. package/dist/src/admin/user/service.d.ts +0 -31
  135. package/dist/src/admin-user/admin/dto.schemas.d.ts +0 -878
  136. package/dist/src/admin-user/admin/errors/index.d.ts +0 -16
  137. package/dist/src/admin-user/admin/errors/locales/zh.d.ts +0 -15
  138. package/dist/src/admin-user/admin/router.d.ts +0 -655
  139. package/dist/src/admin-user/admin/service.d.ts +0 -60
  140. package/dist/src/asset/admin/dto.schemas.d.ts +0 -168
  141. package/dist/src/asset/admin/router.d.ts +0 -768
  142. package/dist/src/asset/admin/service.d.ts +0 -149
  143. package/dist/src/asset/admin.router.d.ts +0 -661
  144. package/dist/src/asset/db.schemas.d.ts +0 -380
  145. package/dist/src/asset/dto.schemas.d.ts +0 -139
  146. package/dist/src/asset/errors/index.d.ts +0 -31
  147. package/dist/src/asset/errors/locales/zh.d.ts +0 -19
  148. package/dist/src/asset/index.d.ts +0 -11
  149. package/dist/src/asset/internal/service.d.ts +0 -16
  150. package/dist/src/asset/permissions.d.ts +0 -4
  151. package/dist/src/asset/router.d.ts +0 -480
  152. package/dist/src/asset/schema.d.ts +0 -209
  153. package/dist/src/asset/seed.d.ts +0 -1
  154. package/dist/src/asset/service.d.ts +0 -160
  155. package/dist/src/asset/user/dto.schemas.d.ts +0 -80
  156. package/dist/src/asset/user/router.d.ts +0 -570
  157. package/dist/src/asset/user/service.d.ts +0 -78
  158. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +0 -823
  159. package/dist/src/asset-convert-product/admin/router.d.ts +0 -1586
  160. package/dist/src/asset-convert-product/admin/service.d.ts +0 -813
  161. package/dist/src/asset-convert-product/db.schemas.d.ts +0 -1270
  162. package/dist/src/asset-convert-product/errors/index.d.ts +0 -31
  163. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +0 -30
  164. package/dist/src/asset-convert-product/index.d.ts +0 -8
  165. package/dist/src/asset-convert-product/internal/service.d.ts +0 -2
  166. package/dist/src/asset-convert-product/permissions.d.ts +0 -5
  167. package/dist/src/asset-convert-product/schema.d.ts +0 -688
  168. package/dist/src/asset-convert-product/user/dto.schemas.d.ts +0 -1054
  169. package/dist/src/asset-convert-product/user/router.d.ts +0 -776
  170. package/dist/src/asset-convert-product/user/service.d.ts +0 -374
  171. package/dist/src/asset-price/admin/dto.schemas.d.ts +0 -102
  172. package/dist/src/asset-price/admin/router.d.ts +0 -658
  173. package/dist/src/asset-price/admin/service.d.ts +0 -82
  174. package/dist/src/asset-price/constants.d.ts +0 -2
  175. package/dist/src/asset-price/db.schemas.d.ts +0 -358
  176. package/dist/src/asset-price/errors/index.d.ts +0 -20
  177. package/dist/src/asset-price/errors/locales/zh.d.ts +0 -19
  178. package/dist/src/asset-price/index.d.ts +0 -12
  179. package/dist/src/asset-price/internal/service.d.ts +0 -14
  180. package/dist/src/asset-price/permissions.d.ts +0 -6
  181. package/dist/src/asset-price/schema.d.ts +0 -191
  182. package/dist/src/asset-price/seed.d.ts +0 -1
  183. package/dist/src/asset-price/user/dto.schemas.d.ts +0 -45
  184. package/dist/src/asset-price/user/router.d.ts +0 -512
  185. package/dist/src/asset-price/user/service.d.ts +0 -26
  186. package/dist/src/asset-type/admin/dto.schemas.d.ts +0 -457
  187. package/dist/src/asset-type/admin/router.d.ts +0 -623
  188. package/dist/src/asset-type/admin/service.d.ts +0 -49
  189. package/dist/src/asset-type/admin.router.d.ts +0 -584
  190. package/dist/src/asset-type/db.schemas.d.ts +0 -278
  191. package/dist/src/asset-type/dto.schemas.d.ts +0 -178
  192. package/dist/src/asset-type/errors/index.d.ts +0 -27
  193. package/dist/src/asset-type/errors/locales/zh.d.ts +0 -17
  194. package/dist/src/asset-type/index.d.ts +0 -11
  195. package/dist/src/asset-type/internal/service.d.ts +0 -9
  196. package/dist/src/asset-type/permissions.d.ts +0 -4
  197. package/dist/src/asset-type/router.d.ts +0 -472
  198. package/dist/src/asset-type/schema.d.ts +0 -150
  199. package/dist/src/asset-type/seed.d.ts +0 -22
  200. package/dist/src/asset-type/service.d.ts +0 -59
  201. package/dist/src/asset-type/share/dto.schemas.d.ts +0 -178
  202. package/dist/src/asset-type/user/dto.schemas.d.ts +0 -37
  203. package/dist/src/asset-type/user/router.d.ts +0 -472
  204. package/dist/src/asset-type/user/service.d.ts +0 -19
  205. package/dist/src/auth/better-auth.d.ts +0 -3282
  206. package/dist/src/auth/better-hooks.d.ts +0 -23
  207. package/dist/src/auth/db.schemas.d.ts +0 -1696
  208. package/dist/src/auth/permissions.d.ts +0 -235
  209. package/dist/src/auth/roles.d.ts +0 -725
  210. package/dist/src/auth/router.d.ts +0 -385
  211. package/dist/src/auth/schema.d.ts +0 -882
  212. package/dist/src/bank-account/admin/dto.schemas.d.ts +0 -479
  213. package/dist/src/bank-account/admin/router.d.ts +0 -877
  214. package/dist/src/bank-account/admin/service.d.ts +0 -148
  215. package/dist/src/bank-account/admin.router.d.ts +0 -880
  216. package/dist/src/bank-account/db.schemas.d.ts +0 -1032
  217. package/dist/src/bank-account/dto.schemas.d.ts +0 -572
  218. package/dist/src/bank-account/errors/index.d.ts +0 -13
  219. package/dist/src/bank-account/errors/locales/zh.d.ts +0 -12
  220. package/dist/src/bank-account/index.d.ts +0 -8
  221. package/dist/src/bank-account/internal/service.d.ts +0 -51
  222. package/dist/src/bank-account/permissions.d.ts +0 -10
  223. package/dist/src/bank-account/router.d.ts +0 -680
  224. package/dist/src/bank-account/schema.d.ts +0 -535
  225. package/dist/src/bank-account/seed.d.ts +0 -4
  226. package/dist/src/bank-account/service.d.ts +0 -359
  227. package/dist/src/bank-account/user/dto.schemas.d.ts +0 -458
  228. package/dist/src/bank-account/user/router.d.ts +0 -680
  229. package/dist/src/bank-account/user/service.d.ts +0 -133
  230. package/dist/src/check-in/admin/dto.schemas.d.ts +0 -312
  231. package/dist/src/check-in/admin/router.d.ts +0 -526
  232. package/dist/src/check-in/admin/service.d.ts +0 -38
  233. package/dist/src/check-in/admin.router.d.ts +0 -533
  234. package/dist/src/check-in/db.schemas.d.ts +0 -312
  235. package/dist/src/check-in/dto.schemas.d.ts +0 -544
  236. package/dist/src/check-in/errors/index.d.ts +0 -13
  237. package/dist/src/check-in/errors/locales/zh.d.ts +0 -10
  238. package/dist/src/check-in/index.d.ts +0 -7
  239. package/dist/src/check-in/internal/service.d.ts +0 -51
  240. package/dist/src/check-in/permissions.d.ts +0 -6
  241. package/dist/src/check-in/router.d.ts +0 -619
  242. package/dist/src/check-in/schema.d.ts +0 -168
  243. package/dist/src/check-in/service.d.ts +0 -99
  244. package/dist/src/check-in/user/dto.schemas.d.ts +0 -503
  245. package/dist/src/check-in/user/router.d.ts +0 -615
  246. package/dist/src/check-in/user/service.d.ts +0 -49
  247. package/dist/src/cron/index.d.ts +0 -10
  248. package/dist/src/db/columns.helpers.d.ts +0 -13
  249. package/dist/src/db/enums.d.ts +0 -1
  250. package/dist/src/db/index.d.ts +0 -4
  251. package/dist/src/db/schemas.d.ts +0 -33
  252. package/dist/src/db/transaction.d.ts +0 -3
  253. package/dist/src/db/typebox.d.ts +0 -19
  254. package/dist/src/deposit/admin/dto.schemas.d.ts +0 -649
  255. package/dist/src/deposit/admin/router.d.ts +0 -638
  256. package/dist/src/deposit/admin/service.d.ts +0 -127
  257. package/dist/src/deposit/admin.router.d.ts +0 -642
  258. package/dist/src/deposit/db.schemas.d.ts +0 -652
  259. package/dist/src/deposit/dto.schemas.d.ts +0 -715
  260. package/dist/src/deposit/errors/index.d.ts +0 -45
  261. package/dist/src/deposit/errors/locales/zh.d.ts +0 -24
  262. package/dist/src/deposit/index.d.ts +0 -7
  263. package/dist/src/deposit/internal/service.d.ts +0 -8
  264. package/dist/src/deposit/permissions.d.ts +0 -9
  265. package/dist/src/deposit/router.d.ts +0 -632
  266. package/dist/src/deposit/schema.d.ts +0 -340
  267. package/dist/src/deposit/service.d.ts +0 -298
  268. package/dist/src/deposit/user/dto.schemas.d.ts +0 -655
  269. package/dist/src/deposit/user/router.d.ts +0 -681
  270. package/dist/src/deposit/user/service.d.ts +0 -148
  271. package/dist/src/dynamic-env/admin.router.d.ts +0 -620
  272. package/dist/src/dynamic-env/cache.d.ts +0 -35
  273. package/dist/src/dynamic-env/db.schemas.d.ts +0 -182
  274. package/dist/src/dynamic-env/dto.schema.d.ts +0 -17
  275. package/dist/src/dynamic-env/errors/index.d.ts +0 -11
  276. package/dist/src/dynamic-env/errors/locales/zh.d.ts +0 -10
  277. package/dist/src/dynamic-env/index.d.ts +0 -3
  278. package/dist/src/dynamic-env/schema.d.ts +0 -96
  279. package/dist/src/dynamic-env/service.d.ts +0 -93
  280. package/dist/src/eden/index.d.ts +0 -57
  281. package/dist/src/email/index.d.ts +0 -2
  282. package/dist/src/env/client.d.ts +0 -2
  283. package/dist/src/env/index.d.ts +0 -2
  284. package/dist/src/env/server.d.ts +0 -49
  285. package/dist/src/env/typebox-env.d.ts +0 -7
  286. package/dist/src/error/errorcode.d.ts +0 -9
  287. package/dist/src/error/index.d.ts +0 -120
  288. package/dist/src/error/locales/zh.d.ts +0 -2
  289. package/dist/src/error/messages.d.ts +0 -10
  290. package/dist/src/external/dto.schemas.d.ts +0 -173
  291. package/dist/src/external/errors/index.d.ts +0 -13
  292. package/dist/src/external/errors/locales/zh.d.ts +0 -10
  293. package/dist/src/external/index.d.ts +0 -4
  294. package/dist/src/external/router.d.ts +0 -105
  295. package/dist/src/external/service.d.ts +0 -31
  296. package/dist/src/file-storage/admin/dto.schemas.d.ts +0 -209
  297. package/dist/src/file-storage/admin/router.d.ts +0 -598
  298. package/dist/src/file-storage/admin/service.d.ts +0 -89
  299. package/dist/src/file-storage/admin.router.d.ts +0 -601
  300. package/dist/src/file-storage/db.schemas.d.ts +0 -1026
  301. package/dist/src/file-storage/dto.schemas.d.ts +0 -1238
  302. package/dist/src/file-storage/errors/index.d.ts +0 -19
  303. package/dist/src/file-storage/errors/locales/zh.d.ts +0 -18
  304. package/dist/src/file-storage/index.d.ts +0 -7
  305. package/dist/src/file-storage/internal/service.d.ts +0 -66
  306. package/dist/src/file-storage/permissions.d.ts +0 -5
  307. package/dist/src/file-storage/router.d.ts +0 -588
  308. package/dist/src/file-storage/s3.client.d.ts +0 -284
  309. package/dist/src/file-storage/schema.d.ts +0 -538
  310. package/dist/src/file-storage/service.d.ts +0 -264
  311. package/dist/src/file-storage/share/dto.schemas.d.ts +0 -68
  312. package/dist/src/file-storage/share/router.d.ts +0 -561
  313. package/dist/src/file-storage/share.router.d.ts +0 -564
  314. package/dist/src/file-storage/user/dto.schemas.d.ts +0 -1100
  315. package/dist/src/file-storage/user/router.d.ts +0 -585
  316. package/dist/src/file-storage/user/service.d.ts +0 -80
  317. package/dist/src/index.d.ts +0 -14029
  318. package/dist/src/ledger/admin/dto.schemas.d.ts +0 -796
  319. package/dist/src/ledger/admin/router.d.ts +0 -527
  320. package/dist/src/ledger/admin/service.d.ts +0 -155
  321. package/dist/src/ledger/admin.router.d.ts +0 -527
  322. package/dist/src/ledger/db.schemas.d.ts +0 -694
  323. package/dist/src/ledger/dto.schemas.d.ts +0 -712
  324. package/dist/src/ledger/errors/index.d.ts +0 -38
  325. package/dist/src/ledger/errors/locales/zh.d.ts +0 -22
  326. package/dist/src/ledger/index.d.ts +0 -6
  327. package/dist/src/ledger/internal/service.d.ts +0 -36
  328. package/dist/src/ledger/permissions.d.ts +0 -8
  329. package/dist/src/ledger/router.d.ts +0 -487
  330. package/dist/src/ledger/schema.d.ts +0 -364
  331. package/dist/src/ledger/service.d.ts +0 -462
  332. package/dist/src/ledger/user/dto.schemas.d.ts +0 -712
  333. package/dist/src/ledger/user/router.d.ts +0 -487
  334. package/dist/src/ledger/user/service.d.ts +0 -146
  335. package/dist/src/ledger-account/admin/dto.schemas.d.ts +0 -642
  336. package/dist/src/ledger-account/admin/router.d.ts +0 -688
  337. package/dist/src/ledger-account/admin/service.d.ts +0 -184
  338. package/dist/src/ledger-account/admin.router.d.ts +0 -591
  339. package/dist/src/ledger-account/db.schemas.d.ts +0 -346
  340. package/dist/src/ledger-account/dto.schemas.d.ts +0 -559
  341. package/dist/src/ledger-account/errors/index.d.ts +0 -18
  342. package/dist/src/ledger-account/errors/locales/zh.d.ts +0 -17
  343. package/dist/src/ledger-account/index.d.ts +0 -8
  344. package/dist/src/ledger-account/internal/service.d.ts +0 -44
  345. package/dist/src/ledger-account/permissions.d.ts +0 -4
  346. package/dist/src/ledger-account/router.d.ts +0 -426
  347. package/dist/src/ledger-account/schema.d.ts +0 -190
  348. package/dist/src/ledger-account/seed.d.ts +0 -1
  349. package/dist/src/ledger-account/service.d.ts +0 -200
  350. package/dist/src/ledger-account/user/dto.schemas.d.ts +0 -590
  351. package/dist/src/ledger-account/user/router.d.ts +0 -602
  352. package/dist/src/ledger-account/user/service.d.ts +0 -154
  353. package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +0 -1255
  354. package/dist/src/ledger-account-import/admin/router.d.ts +0 -691
  355. package/dist/src/ledger-account-import/admin/service.d.ts +0 -92
  356. package/dist/src/ledger-account-import/admin.router.d.ts +0 -694
  357. package/dist/src/ledger-account-import/db.schemas.d.ts +0 -1206
  358. package/dist/src/ledger-account-import/dto.schemas.d.ts +0 -1255
  359. package/dist/src/ledger-account-import/errors/index.d.ts +0 -18
  360. package/dist/src/ledger-account-import/errors/locales/zh.d.ts +0 -17
  361. package/dist/src/ledger-account-import/index.d.ts +0 -8
  362. package/dist/src/ledger-account-import/internal/service.d.ts +0 -13
  363. package/dist/src/ledger-account-import/permissions.d.ts +0 -7
  364. package/dist/src/ledger-account-import/schema.d.ts +0 -636
  365. package/dist/src/ledger-account-import/service.d.ts +0 -105
  366. package/dist/src/ledger-account-import/user/service.d.ts +0 -3
  367. package/dist/src/ledger-account-import/worker.d.ts +0 -1
  368. package/dist/src/ledger-account-transfer/admin/service.d.ts +0 -3
  369. package/dist/src/ledger-account-transfer/dto.schemas.d.ts +0 -22
  370. package/dist/src/ledger-account-transfer/errors/index.d.ts +0 -23
  371. package/dist/src/ledger-account-transfer/errors/locales/zh.d.ts +0 -15
  372. package/dist/src/ledger-account-transfer/index.d.ts +0 -6
  373. package/dist/src/ledger-account-transfer/internal/service.d.ts +0 -8
  374. package/dist/src/ledger-account-transfer/router.d.ts +0 -469
  375. package/dist/src/ledger-account-transfer/service.d.ts +0 -26
  376. package/dist/src/ledger-account-transfer/user/dto.schemas.d.ts +0 -20
  377. package/dist/src/ledger-account-transfer/user/router.d.ts +0 -466
  378. package/dist/src/ledger-account-transfer/user/service.d.ts +0 -16
  379. package/dist/src/ledger-account-type/admin/dto.schemas.d.ts +0 -509
  380. package/dist/src/ledger-account-type/admin/router.d.ts +0 -708
  381. package/dist/src/ledger-account-type/admin/service.d.ts +0 -109
  382. package/dist/src/ledger-account-type/admin.router.d.ts +0 -711
  383. package/dist/src/ledger-account-type/db.schemas.d.ts +0 -788
  384. package/dist/src/ledger-account-type/dto.schemas.d.ts +0 -509
  385. package/dist/src/ledger-account-type/errors/index.d.ts +0 -18
  386. package/dist/src/ledger-account-type/errors/locales/zh.d.ts +0 -17
  387. package/dist/src/ledger-account-type/index.d.ts +0 -9
  388. package/dist/src/ledger-account-type/internal/service.d.ts +0 -8
  389. package/dist/src/ledger-account-type/permissions.d.ts +0 -4
  390. package/dist/src/ledger-account-type/router.d.ts +0 -486
  391. package/dist/src/ledger-account-type/schema.d.ts +0 -405
  392. package/dist/src/ledger-account-type/seed.d.ts +0 -1
  393. package/dist/src/ledger-account-type/service.d.ts +0 -147
  394. package/dist/src/ledger-account-type/user/dto.schemas.d.ts +0 -509
  395. package/dist/src/ledger-account-type/user/router.d.ts +0 -534
  396. package/dist/src/ledger-account-type/user/service.d.ts +0 -59
  397. package/dist/src/market-data/admin/dto.schemas.d.ts +0 -291
  398. package/dist/src/market-data/admin/router.d.ts +0 -606
  399. package/dist/src/market-data/admin/service.d.ts +0 -52
  400. package/dist/src/market-data/cron.d.ts +0 -6
  401. package/dist/src/market-data/db.schemas.d.ts +0 -516
  402. package/dist/src/market-data/errors/index.d.ts +0 -12
  403. package/dist/src/market-data/errors/locales/zh.d.ts +0 -11
  404. package/dist/src/market-data/index.d.ts +0 -8
  405. package/dist/src/market-data/internal/service.d.ts +0 -77
  406. package/dist/src/market-data/permissions.d.ts +0 -6
  407. package/dist/src/market-data/schema.d.ts +0 -270
  408. package/dist/src/market-data/user/dto.schemas.d.ts +0 -289
  409. package/dist/src/market-data/user/router.d.ts +0 -521
  410. package/dist/src/market-data/user/service.d.ts +0 -30
  411. package/dist/src/market-pricing/admin/dto.schemas.d.ts +0 -322
  412. package/dist/src/market-pricing/admin/router.d.ts +0 -832
  413. package/dist/src/market-pricing/admin/service.d.ts +0 -129
  414. package/dist/src/market-pricing/cron.d.ts +0 -6
  415. package/dist/src/market-pricing/db.schemas.d.ts +0 -828
  416. package/dist/src/market-pricing/errors/index.d.ts +0 -14
  417. package/dist/src/market-pricing/errors/locales/zh.d.ts +0 -13
  418. package/dist/src/market-pricing/internal/service.d.ts +0 -35
  419. package/dist/src/market-pricing/permissions.d.ts +0 -4
  420. package/dist/src/market-pricing/schema.d.ts +0 -434
  421. package/dist/src/nanoid/index.d.ts +0 -2
  422. package/dist/src/news/admin/dto.schemas.d.ts +0 -159
  423. package/dist/src/news/admin/router.d.ts +0 -818
  424. package/dist/src/news/admin/service.d.ts +0 -220
  425. package/dist/src/news/admin.router.d.ts +0 -824
  426. package/dist/src/news/db.schemas.d.ts +0 -1150
  427. package/dist/src/news/dto.schemas.d.ts +0 -233
  428. package/dist/src/news/errors/index.d.ts +0 -20
  429. package/dist/src/news/errors/locales/zh.d.ts +0 -13
  430. package/dist/src/news/index.d.ts +0 -7
  431. package/dist/src/news/internal/service.d.ts +0 -7
  432. package/dist/src/news/permissions.d.ts +0 -4
  433. package/dist/src/news/router.d.ts +0 -620
  434. package/dist/src/news/schema.d.ts +0 -616
  435. package/dist/src/news/service.d.ts +0 -495
  436. package/dist/src/news/user/dto.schemas.d.ts +0 -178
  437. package/dist/src/news/user/router.d.ts +0 -617
  438. package/dist/src/news/user/service.d.ts +0 -228
  439. package/dist/src/news-category/admin/dto.schemas.d.ts +0 -52
  440. package/dist/src/news-category/admin/router.d.ts +0 -204
  441. package/dist/src/news-category/admin/service.d.ts +0 -54
  442. package/dist/src/news-category/admin.router.d.ts +0 -207
  443. package/dist/src/news-category/constants.d.ts +0 -1
  444. package/dist/src/news-category/db.schemas.d.ts +0 -324
  445. package/dist/src/news-category/dto.schemas.d.ts +0 -57
  446. package/dist/src/news-category/errors/index.d.ts +0 -19
  447. package/dist/src/news-category/errors/locales/zh.d.ts +0 -13
  448. package/dist/src/news-category/index.d.ts +0 -8
  449. package/dist/src/news-category/internal/service.d.ts +0 -5
  450. package/dist/src/news-category/permissions.d.ts +0 -4
  451. package/dist/src/news-category/router.d.ts +0 -460
  452. package/dist/src/news-category/schema.d.ts +0 -173
  453. package/dist/src/news-category/seed.d.ts +0 -12
  454. package/dist/src/news-category/service.d.ts +0 -105
  455. package/dist/src/news-category/user/dto.schemas.d.ts +0 -55
  456. package/dist/src/news-category/user/router.d.ts +0 -457
  457. package/dist/src/news-category/user/service.d.ts +0 -25
  458. package/dist/src/notification/admin/dto.schemas.d.ts +0 -432
  459. package/dist/src/notification/admin/router.d.ts +0 -576
  460. package/dist/src/notification/admin/service.d.ts +0 -43
  461. package/dist/src/notification/admin.router.d.ts +0 -582
  462. package/dist/src/notification/db.schemas.d.ts +0 -624
  463. package/dist/src/notification/dto.schemas.d.ts +0 -457
  464. package/dist/src/notification/errors/index.d.ts +0 -19
  465. package/dist/src/notification/errors/locales/zh.d.ts +0 -13
  466. package/dist/src/notification/index.d.ts +0 -7
  467. package/dist/src/notification/internal/service.d.ts +0 -28
  468. package/dist/src/notification/permissions.d.ts +0 -6
  469. package/dist/src/notification/router.d.ts +0 -626
  470. package/dist/src/notification/schema.d.ts +0 -347
  471. package/dist/src/notification/service.d.ts +0 -195
  472. package/dist/src/notification/user/dto.schemas.d.ts +0 -411
  473. package/dist/src/notification/user/router.d.ts +0 -632
  474. package/dist/src/notification/user/service.d.ts +0 -82
  475. package/dist/src/portfolio/index.d.ts +0 -2
  476. package/dist/src/portfolio/internal/index.d.ts +0 -1
  477. package/dist/src/portfolio/internal/service.d.ts +0 -5
  478. package/dist/src/portfolio/user/dto.schemas.d.ts +0 -352
  479. package/dist/src/portfolio/user/index.d.ts +0 -3
  480. package/dist/src/portfolio/user/router.d.ts +0 -659
  481. package/dist/src/portfolio/user/service.d.ts +0 -143
  482. package/dist/src/receipt-method/admin/dto.schemas.d.ts +0 -392
  483. package/dist/src/receipt-method/admin/router.d.ts +0 -576
  484. package/dist/src/receipt-method/admin/service.d.ts +0 -46
  485. package/dist/src/receipt-method/admin.router.d.ts +0 -579
  486. package/dist/src/receipt-method/db.schemas.d.ts +0 -380
  487. package/dist/src/receipt-method/dto.schemas.d.ts +0 -418
  488. package/dist/src/receipt-method/errors/index.d.ts +0 -17
  489. package/dist/src/receipt-method/errors/locales/zh.d.ts +0 -16
  490. package/dist/src/receipt-method/index.d.ts +0 -7
  491. package/dist/src/receipt-method/internal/service.d.ts +0 -33
  492. package/dist/src/receipt-method/permissions.d.ts +0 -4
  493. package/dist/src/receipt-method/router.d.ts +0 -602
  494. package/dist/src/receipt-method/schema.d.ts +0 -205
  495. package/dist/src/receipt-method/service.d.ts +0 -152
  496. package/dist/src/receipt-method/user/dto.schemas.d.ts +0 -417
  497. package/dist/src/receipt-method/user/router.d.ts +0 -602
  498. package/dist/src/receipt-method/user/service.d.ts +0 -73
  499. package/dist/src/referral/admin/dto.schemas.d.ts +0 -593
  500. package/dist/src/referral/admin/router.d.ts +0 -558
  501. package/dist/src/referral/admin/service.d.ts +0 -6
  502. package/dist/src/referral/admin.router.d.ts +0 -562
  503. package/dist/src/referral/dto.schemas.d.ts +0 -665
  504. package/dist/src/referral/errors/index.d.ts +0 -14
  505. package/dist/src/referral/errors/locales/zh.d.ts +0 -13
  506. package/dist/src/referral/index.d.ts +0 -9
  507. package/dist/src/referral/internal/service.d.ts +0 -23
  508. package/dist/src/referral/permissions.d.ts +0 -8
  509. package/dist/src/referral/router.d.ts +0 -579
  510. package/dist/src/referral/service.d.ts +0 -42
  511. package/dist/src/referral/user/dto.schemas.d.ts +0 -602
  512. package/dist/src/referral/user/router.d.ts +0 -578
  513. package/dist/src/referral/user/service.d.ts +0 -21
  514. package/dist/src/referral-depth-config/admin/dto.schemas.d.ts +0 -203
  515. package/dist/src/referral-depth-config/admin/router.d.ts +0 -643
  516. package/dist/src/referral-depth-config/admin/service.d.ts +0 -38
  517. package/dist/src/referral-depth-config/admin.router.d.ts +0 -646
  518. package/dist/src/referral-depth-config/db.schemas.d.ts +0 -176
  519. package/dist/src/referral-depth-config/dto.schemas.d.ts +0 -208
  520. package/dist/src/referral-depth-config/errors/index.d.ts +0 -11
  521. package/dist/src/referral-depth-config/errors/locales/zh.d.ts +0 -10
  522. package/dist/src/referral-depth-config/index.d.ts +0 -5
  523. package/dist/src/referral-depth-config/internal/service.d.ts +0 -4
  524. package/dist/src/referral-depth-config/permissions.d.ts +0 -8
  525. package/dist/src/referral-depth-config/schema.d.ts +0 -99
  526. package/dist/src/referral-depth-config/service.d.ts +0 -56
  527. package/dist/src/server-test/errors/index.d.ts +0 -10
  528. package/dist/src/server-test/errors/locales/zh.d.ts +0 -9
  529. package/dist/src/server-test/index.d.ts +0 -486
  530. package/dist/src/shipping-address/admin/dto.schemas.d.ts +0 -289
  531. package/dist/src/shipping-address/admin/router.d.ts +0 -504
  532. package/dist/src/shipping-address/admin/service.d.ts +0 -17
  533. package/dist/src/shipping-address/admin.router.d.ts +0 -507
  534. package/dist/src/shipping-address/db.schemas.d.ts +0 -278
  535. package/dist/src/shipping-address/dto.schemas.d.ts +0 -303
  536. package/dist/src/shipping-address/errors/index.d.ts +0 -12
  537. package/dist/src/shipping-address/errors/locales/zh.d.ts +0 -11
  538. package/dist/src/shipping-address/index.d.ts +0 -7
  539. package/dist/src/shipping-address/internal/service.d.ts +0 -15
  540. package/dist/src/shipping-address/permissions.d.ts +0 -4
  541. package/dist/src/shipping-address/router.d.ts +0 -621
  542. package/dist/src/shipping-address/schema.d.ts +0 -150
  543. package/dist/src/shipping-address/service.d.ts +0 -109
  544. package/dist/src/shipping-address/user/dto.schemas.d.ts +0 -303
  545. package/dist/src/shipping-address/user/router.d.ts +0 -621
  546. package/dist/src/shipping-address/user/service.d.ts +0 -68
  547. package/dist/src/sms/index.d.ts +0 -5
  548. package/dist/src/subscription/admin.router.d.ts +0 -818
  549. package/dist/src/subscription/cron.d.ts +0 -53
  550. package/dist/src/subscription/db.schemas.d.ts +0 -896
  551. package/dist/src/subscription/dto.schemas.d.ts +0 -1942
  552. package/dist/src/subscription/errors/index.d.ts +0 -21
  553. package/dist/src/subscription/errors/locales/zh.d.ts +0 -20
  554. package/dist/src/subscription/index.d.ts +0 -7
  555. package/dist/src/subscription/permissions.d.ts +0 -5
  556. package/dist/src/subscription/router.d.ts +0 -625
  557. package/dist/src/subscription/schema.d.ts +0 -475
  558. package/dist/src/subscription/service.d.ts +0 -306
  559. package/dist/src/team/admin/dto.schemas.d.ts +0 -773
  560. package/dist/src/team/admin/router.d.ts +0 -565
  561. package/dist/src/team/admin/service.d.ts +0 -6
  562. package/dist/src/team/admin.router.d.ts +0 -569
  563. package/dist/src/team/dto.schemas.d.ts +0 -2110
  564. package/dist/src/team/errors/index.d.ts +0 -12
  565. package/dist/src/team/errors/locales/zh.d.ts +0 -11
  566. package/dist/src/team/index.d.ts +0 -8
  567. package/dist/src/team/internal/service.d.ts +0 -6
  568. package/dist/src/team/permissions.d.ts +0 -7
  569. package/dist/src/team/router.d.ts +0 -737
  570. package/dist/src/team/service.d.ts +0 -40
  571. package/dist/src/team/user/dto.schemas.d.ts +0 -1987
  572. package/dist/src/team/user/router.d.ts +0 -734
  573. package/dist/src/team/user/service.d.ts +0 -10
  574. package/dist/src/trade-market/admin/dto.schemas.d.ts +0 -762
  575. package/dist/src/trade-market/admin/router.d.ts +0 -848
  576. package/dist/src/trade-market/admin/service.d.ts +0 -158
  577. package/dist/src/trade-market/db.schemas.d.ts +0 -1338
  578. package/dist/src/trade-market/errors/index.d.ts +0 -22
  579. package/dist/src/trade-market/errors/locales/zh.d.ts +0 -21
  580. package/dist/src/trade-market/index.d.ts +0 -8
  581. package/dist/src/trade-market/internal/service.d.ts +0 -239
  582. package/dist/src/trade-market/permissions.d.ts +0 -5
  583. package/dist/src/trade-market/schema.d.ts +0 -708
  584. package/dist/src/trade-market/user/dto.schemas.d.ts +0 -1394
  585. package/dist/src/trade-market/user/router.d.ts +0 -754
  586. package/dist/src/trade-market/user/service.d.ts +0 -147
  587. package/dist/src/transfer/admin/dto.schemas.d.ts +0 -396
  588. package/dist/src/transfer/admin/service.d.ts +0 -56
  589. package/dist/src/transfer/admin.router.d.ts +0 -509
  590. package/dist/src/transfer/db.schemas.d.ts +0 -386
  591. package/dist/src/transfer/dto.schemas.d.ts +0 -628
  592. package/dist/src/transfer/errors/index.d.ts +0 -32
  593. package/dist/src/transfer/errors/locales/zh.d.ts +0 -19
  594. package/dist/src/transfer/index.d.ts +0 -11
  595. package/dist/src/transfer/internal/service.d.ts +0 -8
  596. package/dist/src/transfer/permissions.d.ts +0 -8
  597. package/dist/src/transfer/router.d.ts +0 -514
  598. package/dist/src/transfer/schema.d.ts +0 -204
  599. package/dist/src/transfer/service.d.ts +0 -133
  600. package/dist/src/transfer/user/dto.schemas.d.ts +0 -416
  601. package/dist/src/transfer/user/router.d.ts +0 -514
  602. package/dist/src/transfer/user/service.d.ts +0 -67
  603. package/dist/src/user/admin/dto.schemas.d.ts +0 -1439
  604. package/dist/src/user/admin/router.d.ts +0 -853
  605. package/dist/src/user/admin/service.d.ts +0 -164
  606. package/dist/src/user/admin.router.d.ts +0 -827
  607. package/dist/src/user/db.schemas.d.ts +0 -1038
  608. package/dist/src/user/dto.schemas.d.ts +0 -1446
  609. package/dist/src/user/errors/index.d.ts +0 -40
  610. package/dist/src/user/errors/locales/zh.d.ts +0 -23
  611. package/dist/src/user/index.d.ts +0 -9
  612. package/dist/src/user/internal/service.d.ts +0 -22
  613. package/dist/src/user/permissions.d.ts +0 -7
  614. package/dist/src/user/router.d.ts +0 -560
  615. package/dist/src/user/schema.d.ts +0 -541
  616. package/dist/src/user/service.d.ts +0 -294
  617. package/dist/src/user/user/dto.schemas.d.ts +0 -14
  618. package/dist/src/user/user/router.d.ts +0 -558
  619. package/dist/src/user/user/service.d.ts +0 -89
  620. package/dist/src/user-kyc/admin/dto.schemas.d.ts +0 -625
  621. package/dist/src/user-kyc/admin/router.d.ts +0 -666
  622. package/dist/src/user-kyc/admin/service.d.ts +0 -89
  623. package/dist/src/user-kyc/admin.router.d.ts +0 -669
  624. package/dist/src/user-kyc/db.schemas.d.ts +0 -896
  625. package/dist/src/user-kyc/dto.schemas.d.ts +0 -939
  626. package/dist/src/user-kyc/errors/index.d.ts +0 -21
  627. package/dist/src/user-kyc/errors/locales/zh.d.ts +0 -14
  628. package/dist/src/user-kyc/index.d.ts +0 -10
  629. package/dist/src/user-kyc/internal/service.d.ts +0 -9
  630. package/dist/src/user-kyc/permissions.d.ts +0 -6
  631. package/dist/src/user-kyc/router.d.ts +0 -602
  632. package/dist/src/user-kyc/schema.d.ts +0 -474
  633. package/dist/src/user-kyc/service.d.ts +0 -170
  634. package/dist/src/user-kyc/user/dto.schemas.d.ts +0 -314
  635. package/dist/src/user-kyc/user/router.d.ts +0 -602
  636. package/dist/src/user-kyc/user/service.d.ts +0 -64
  637. package/dist/src/user-security/admin/dto.schemas.d.ts +0 -8
  638. package/dist/src/user-security/admin/router.d.ts +0 -490
  639. package/dist/src/user-security/admin/service.d.ts +0 -6
  640. package/dist/src/user-security/admin.router.d.ts +0 -493
  641. package/dist/src/user-security/db.schemas.d.ts +0 -414
  642. package/dist/src/user-security/dto.schemas.d.ts +0 -36
  643. package/dist/src/user-security/index.d.ts +0 -8
  644. package/dist/src/user-security/internal/service.d.ts +0 -15
  645. package/dist/src/user-security/router.d.ts +0 -547
  646. package/dist/src/user-security/schema.d.ts +0 -215
  647. package/dist/src/user-security/service.d.ts +0 -51
  648. package/dist/src/user-security/user/dto.schemas.d.ts +0 -21
  649. package/dist/src/user-security/user/router.d.ts +0 -547
  650. package/dist/src/user-security/user/service.d.ts +0 -15
  651. package/dist/src/utils/date.d.ts +0 -21
  652. package/dist/src/utils/index.d.ts +0 -4
  653. package/dist/src/utils/order.d.ts +0 -6
  654. package/dist/src/utils/pagination.d.ts +0 -113
  655. package/dist/src/utils/password.d.ts +0 -8
  656. package/dist/src/wallet/admin/dto.schemas.d.ts +0 -349
  657. package/dist/src/wallet/admin/router.d.ts +0 -581
  658. package/dist/src/wallet/admin/service.d.ts +0 -65
  659. package/dist/src/wallet/admin.router.d.ts +0 -519
  660. package/dist/src/wallet/db.schemas.d.ts +0 -278
  661. package/dist/src/wallet/dto.schemas.d.ts +0 -317
  662. package/dist/src/wallet/ensure.d.ts +0 -11
  663. package/dist/src/wallet/errors/index.d.ts +0 -10
  664. package/dist/src/wallet/errors/locales/zh.d.ts +0 -9
  665. package/dist/src/wallet/index.d.ts +0 -11
  666. package/dist/src/wallet/internal/service.d.ts +0 -177
  667. package/dist/src/wallet/permissions.d.ts +0 -8
  668. package/dist/src/wallet/router.d.ts +0 -484
  669. package/dist/src/wallet/schema.d.ts +0 -152
  670. package/dist/src/wallet/seed.d.ts +0 -1
  671. package/dist/src/wallet/service.d.ts +0 -100
  672. package/dist/src/wallet/user/dto.schemas.d.ts +0 -372
  673. package/dist/src/wallet/user/router.d.ts +0 -544
  674. package/dist/src/wallet/user/service.d.ts +0 -75
  675. package/dist/src/wallet-import/admin.router.d.ts +0 -694
  676. package/dist/src/wallet-import/db.schemas.d.ts +0 -1206
  677. package/dist/src/wallet-import/dto.schemas.d.ts +0 -1255
  678. package/dist/src/wallet-import/errors/index.d.ts +0 -18
  679. package/dist/src/wallet-import/errors/locales/zh.d.ts +0 -17
  680. package/dist/src/wallet-import/index.d.ts +0 -8
  681. package/dist/src/wallet-import/permissions.d.ts +0 -7
  682. package/dist/src/wallet-import/schema.d.ts +0 -636
  683. package/dist/src/wallet-import/service.d.ts +0 -105
  684. package/dist/src/wallet-import/worker.d.ts +0 -1
  685. package/dist/src/wallet-transfer/dto.schemas.d.ts +0 -22
  686. package/dist/src/wallet-transfer/errors/index.d.ts +0 -23
  687. package/dist/src/wallet-transfer/errors/locales/zh.d.ts +0 -15
  688. package/dist/src/wallet-transfer/index.d.ts +0 -4
  689. package/dist/src/wallet-transfer/router.d.ts +0 -469
  690. package/dist/src/wallet-transfer/service.d.ts +0 -26
  691. package/dist/src/wallet-type/admin/dto.schemas.d.ts +0 -83
  692. package/dist/src/wallet-type/admin/service.d.ts +0 -109
  693. package/dist/src/wallet-type/admin.router.d.ts +0 -611
  694. package/dist/src/wallet-type/constants.d.ts +0 -4
  695. package/dist/src/wallet-type/db.schemas.d.ts +0 -278
  696. package/dist/src/wallet-type/dto.schemas.d.ts +0 -79
  697. package/dist/src/wallet-type/errors/index.d.ts +0 -15
  698. package/dist/src/wallet-type/errors/locales/zh.d.ts +0 -14
  699. package/dist/src/wallet-type/index.d.ts +0 -10
  700. package/dist/src/wallet-type/internal/service.d.ts +0 -256
  701. package/dist/src/wallet-type/permissions.d.ts +0 -4
  702. package/dist/src/wallet-type/router.d.ts +0 -481
  703. package/dist/src/wallet-type/schema.d.ts +0 -199
  704. package/dist/src/wallet-type/seed.d.ts +0 -1
  705. package/dist/src/wallet-type/service.d.ts +0 -243
  706. package/dist/src/wallet-type/user/dto.schemas.d.ts +0 -62
  707. package/dist/src/wallet-type/user/router.d.ts +0 -481
  708. package/dist/src/wallet-type/user/service.d.ts +0 -24
  709. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +0 -1723
  710. package/dist/src/welfare-cycle/admin/router.d.ts +0 -1059
  711. package/dist/src/welfare-cycle/admin/service.d.ts +0 -243
  712. package/dist/src/welfare-cycle/cron.d.ts +0 -7
  713. package/dist/src/welfare-cycle/db.schemas.d.ts +0 -2404
  714. package/dist/src/welfare-cycle/errors/index.d.ts +0 -25
  715. package/dist/src/welfare-cycle/errors/locales/zh.d.ts +0 -24
  716. package/dist/src/welfare-cycle/index.d.ts +0 -7
  717. package/dist/src/welfare-cycle/internal/service.d.ts +0 -135
  718. package/dist/src/welfare-cycle/permissions.d.ts +0 -6
  719. package/dist/src/welfare-cycle/schema.d.ts +0 -1272
  720. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +0 -2072
  721. package/dist/src/welfare-cycle/user/router.d.ts +0 -807
  722. package/dist/src/welfare-cycle/user/service.d.ts +0 -191
  723. package/dist/src/withdraw/admin/dto.schemas.d.ts +0 -902
  724. package/dist/src/withdraw/admin/router.d.ts +0 -659
  725. package/dist/src/withdraw/admin/service.d.ts +0 -83
  726. package/dist/src/withdraw/admin.router.d.ts +0 -662
  727. package/dist/src/withdraw/db.schemas.d.ts +0 -584
  728. package/dist/src/withdraw/dto.schemas.d.ts +0 -919
  729. package/dist/src/withdraw/errors/index.d.ts +0 -43
  730. package/dist/src/withdraw/errors/locales/zh.d.ts +0 -23
  731. package/dist/src/withdraw/index.d.ts +0 -8
  732. package/dist/src/withdraw/internal/index.d.ts +0 -1
  733. package/dist/src/withdraw/internal/service.d.ts +0 -10
  734. package/dist/src/withdraw/permissions.d.ts +0 -9
  735. package/dist/src/withdraw/router.d.ts +0 -529
  736. package/dist/src/withdraw/schema.d.ts +0 -307
  737. package/dist/src/withdraw/service.d.ts +0 -153
  738. package/dist/src/withdraw/user/dto.schemas.d.ts +0 -1508
  739. package/dist/src/withdraw/user/index.d.ts +0 -3
  740. package/dist/src/withdraw/user/router.d.ts +0 -649
  741. package/dist/src/withdraw/user/service.d.ts +0 -65
@@ -1,3282 +0,0 @@
1
- import * as roles from "./roles";
2
- /**
3
- * 显式类型注解绕过 TS2742(AnonymousOptions 未从 better-auth/plugins 公共入口导出)
4
- * TODO: 待 better-auth 修复后移除 ReturnType 注解
5
- * @see https://github.com/better-auth/better-auth/issues?q=AnonymousOptions
6
- */
7
- export declare const auth: import("better-auth").Auth<{
8
- database: (options: import("better-auth").BetterAuthOptions) => import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
9
- databaseHooks: {
10
- user: {
11
- create: {
12
- after: (user: {
13
- id: string;
14
- createdAt: Date;
15
- updatedAt: Date;
16
- email: string;
17
- emailVerified: boolean;
18
- name: string;
19
- image?: string | null | undefined;
20
- } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null) => Promise<void>;
21
- };
22
- };
23
- };
24
- user: {
25
- changeEmail: {
26
- enabled: true;
27
- sendChangeEmailConfirmation: ({ user, newEmail, url, token }: {
28
- user: import("better-auth").User;
29
- newEmail: string;
30
- url: string;
31
- token: string;
32
- }, request: Request | undefined) => Promise<void>;
33
- updateEmailWithoutVerification: true;
34
- };
35
- };
36
- hooks: {
37
- before: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
38
- };
39
- emailAndPassword: {
40
- enabled: true;
41
- autoSignIn: true;
42
- sendResetPassword: ({ user, url, token }: {
43
- user: import("better-auth").User;
44
- url: string;
45
- token: string;
46
- }, request: Request | undefined) => Promise<void>;
47
- };
48
- emailVerification: {
49
- afterEmailVerification(user: {
50
- id: string;
51
- createdAt: Date;
52
- updatedAt: Date;
53
- email: string;
54
- emailVerified: boolean;
55
- name: string;
56
- image?: string | null | undefined;
57
- }, request: Request | undefined): Promise<void>;
58
- sendOnSignUp: true;
59
- sendVerificationEmail: ({ user, url, token }: {
60
- user: import("better-auth").User;
61
- url: string;
62
- token: string;
63
- }, request: Request | undefined) => Promise<void>;
64
- };
65
- trustedOrigins: string[];
66
- advanced: {
67
- cookiePrefix: string;
68
- crossSubDomainCookies: {
69
- enabled: boolean;
70
- domain: string;
71
- };
72
- };
73
- disablePaths: string[];
74
- appName: string;
75
- plugins: [{
76
- id: "i18n";
77
- version: string;
78
- hooks: {
79
- after: {
80
- matcher: () => true;
81
- handler: (inputContext: {
82
- body?: undefined;
83
- } & {
84
- query?: Record<string, any> | undefined;
85
- } & {
86
- request?: Request;
87
- } & {
88
- headers?: HeadersInit;
89
- } & {
90
- asResponse?: boolean;
91
- returnHeaders?: boolean;
92
- use?: any[];
93
- }) => Promise<void>;
94
- }[];
95
- };
96
- options: {
97
- translations: {
98
- [x: string]: import("@better-auth/i18n").TranslationDictionary;
99
- };
100
- defaultLocale: string;
101
- detection: import("@better-auth/i18n").LocaleDetectionStrategy[];
102
- localeCookie: string;
103
- userLocaleField: string;
104
- getLocale?: ((ctx: import("better-auth").GenericEndpointContext) => string | Promise<string | null> | null) | undefined;
105
- };
106
- }, {
107
- id: "bearer";
108
- version: string;
109
- hooks: {
110
- before: {
111
- matcher(context: import("better-auth").HookEndpointContext): boolean;
112
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
113
- context: {
114
- headers: Headers;
115
- };
116
- } | undefined>;
117
- }[];
118
- after: {
119
- matcher(context: import("better-auth").HookEndpointContext): true;
120
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
121
- }[];
122
- };
123
- options: import("better-auth/plugins").BearerOptions | undefined;
124
- }, {
125
- id: "two-factor";
126
- version: string;
127
- endpoints: {
128
- enableTwoFactor: import("better-call").StrictEndpoint<"/two-factor/enable", {
129
- method: "POST";
130
- body: import("zod").ZodObject<{
131
- password: import("zod").ZodOptional<import("zod").ZodString>;
132
- issuer: import("zod").ZodOptional<import("zod").ZodString>;
133
- }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
134
- password: import("zod").ZodString;
135
- issuer: import("zod").ZodOptional<import("zod").ZodString>;
136
- }, import("zod/v4/core").$strip>;
137
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
138
- session: {
139
- session: Record<string, any> & {
140
- id: string;
141
- createdAt: Date;
142
- updatedAt: Date;
143
- userId: string;
144
- expiresAt: Date;
145
- token: string;
146
- ipAddress?: string | null | undefined;
147
- userAgent?: string | null | undefined;
148
- };
149
- user: Record<string, any> & {
150
- id: string;
151
- createdAt: Date;
152
- updatedAt: Date;
153
- email: string;
154
- emailVerified: boolean;
155
- name: string;
156
- image?: string | null | undefined;
157
- };
158
- };
159
- }>)[];
160
- metadata: {
161
- openapi: {
162
- summary: string;
163
- description: string;
164
- responses: {
165
- 200: {
166
- description: string;
167
- content: {
168
- "application/json": {
169
- schema: {
170
- type: "object";
171
- properties: {
172
- totpURI: {
173
- type: string;
174
- description: string;
175
- };
176
- backupCodes: {
177
- type: string;
178
- items: {
179
- type: string;
180
- };
181
- description: string;
182
- };
183
- };
184
- };
185
- };
186
- };
187
- };
188
- };
189
- };
190
- };
191
- }, {
192
- totpURI: string;
193
- backupCodes: string[];
194
- }>;
195
- disableTwoFactor: import("better-call").StrictEndpoint<"/two-factor/disable", {
196
- method: "POST";
197
- body: import("zod").ZodObject<{
198
- password: import("zod").ZodOptional<import("zod").ZodString>;
199
- }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
200
- password: import("zod").ZodString;
201
- }, import("zod/v4/core").$strip>;
202
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
203
- session: {
204
- session: Record<string, any> & {
205
- id: string;
206
- createdAt: Date;
207
- updatedAt: Date;
208
- userId: string;
209
- expiresAt: Date;
210
- token: string;
211
- ipAddress?: string | null | undefined;
212
- userAgent?: string | null | undefined;
213
- };
214
- user: Record<string, any> & {
215
- id: string;
216
- createdAt: Date;
217
- updatedAt: Date;
218
- email: string;
219
- emailVerified: boolean;
220
- name: string;
221
- image?: string | null | undefined;
222
- };
223
- };
224
- }>)[];
225
- metadata: {
226
- openapi: {
227
- summary: string;
228
- description: string;
229
- responses: {
230
- 200: {
231
- description: string;
232
- content: {
233
- "application/json": {
234
- schema: {
235
- type: "object";
236
- properties: {
237
- status: {
238
- type: string;
239
- };
240
- };
241
- };
242
- };
243
- };
244
- };
245
- };
246
- };
247
- };
248
- }, {
249
- status: boolean;
250
- }>;
251
- verifyBackupCode: import("better-call").StrictEndpoint<"/two-factor/verify-backup-code", {
252
- method: "POST";
253
- body: import("zod").ZodObject<{
254
- code: import("zod").ZodString;
255
- disableSession: import("zod").ZodOptional<import("zod").ZodBoolean>;
256
- trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
257
- }, import("zod/v4/core").$strip>;
258
- metadata: {
259
- openapi: {
260
- description: string;
261
- responses: {
262
- "200": {
263
- description: string;
264
- content: {
265
- "application/json": {
266
- schema: {
267
- type: "object";
268
- properties: {
269
- user: {
270
- type: string;
271
- properties: {
272
- id: {
273
- type: string;
274
- description: string;
275
- };
276
- email: {
277
- type: string;
278
- format: string;
279
- nullable: boolean;
280
- description: string;
281
- };
282
- emailVerified: {
283
- type: string;
284
- nullable: boolean;
285
- description: string;
286
- };
287
- name: {
288
- type: string;
289
- nullable: boolean;
290
- description: string;
291
- };
292
- image: {
293
- type: string;
294
- format: string;
295
- nullable: boolean;
296
- description: string;
297
- };
298
- twoFactorEnabled: {
299
- type: string;
300
- description: string;
301
- };
302
- createdAt: {
303
- type: string;
304
- format: string;
305
- description: string;
306
- };
307
- updatedAt: {
308
- type: string;
309
- format: string;
310
- description: string;
311
- };
312
- };
313
- required: string[];
314
- description: string;
315
- };
316
- session: {
317
- type: string;
318
- properties: {
319
- token: {
320
- type: string;
321
- description: string;
322
- };
323
- userId: {
324
- type: string;
325
- description: string;
326
- };
327
- createdAt: {
328
- type: string;
329
- format: string;
330
- description: string;
331
- };
332
- expiresAt: {
333
- type: string;
334
- format: string;
335
- description: string;
336
- };
337
- };
338
- required: string[];
339
- description: string;
340
- };
341
- };
342
- required: string[];
343
- };
344
- };
345
- };
346
- };
347
- };
348
- };
349
- };
350
- }, {
351
- token: string | undefined;
352
- user: (Record<string, any> & {
353
- id: string;
354
- createdAt: Date;
355
- updatedAt: Date;
356
- email: string;
357
- emailVerified: boolean;
358
- name: string;
359
- image?: string | null | undefined;
360
- }) | import("better-auth/plugins").UserWithTwoFactor;
361
- }>;
362
- generateBackupCodes: import("better-call").StrictEndpoint<"/two-factor/generate-backup-codes", {
363
- method: "POST";
364
- body: import("zod").ZodObject<{
365
- password: import("zod").ZodOptional<import("zod").ZodString>;
366
- }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
367
- password: import("zod").ZodString;
368
- }, import("zod/v4/core").$strip>;
369
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
370
- session: {
371
- session: Record<string, any> & {
372
- id: string;
373
- createdAt: Date;
374
- updatedAt: Date;
375
- userId: string;
376
- expiresAt: Date;
377
- token: string;
378
- ipAddress?: string | null | undefined;
379
- userAgent?: string | null | undefined;
380
- };
381
- user: Record<string, any> & {
382
- id: string;
383
- createdAt: Date;
384
- updatedAt: Date;
385
- email: string;
386
- emailVerified: boolean;
387
- name: string;
388
- image?: string | null | undefined;
389
- };
390
- };
391
- }>)[];
392
- metadata: {
393
- openapi: {
394
- description: string;
395
- responses: {
396
- "200": {
397
- description: string;
398
- content: {
399
- "application/json": {
400
- schema: {
401
- type: "object";
402
- properties: {
403
- status: {
404
- type: string;
405
- description: string;
406
- enum: boolean[];
407
- };
408
- backupCodes: {
409
- type: string;
410
- items: {
411
- type: string;
412
- };
413
- description: string;
414
- };
415
- };
416
- required: string[];
417
- };
418
- };
419
- };
420
- };
421
- };
422
- };
423
- };
424
- }, {
425
- status: boolean;
426
- backupCodes: string[];
427
- }>;
428
- viewBackupCodes: import("better-call").StrictEndpoint<string, {
429
- method: "POST";
430
- body: import("zod").ZodObject<{
431
- userId: import("zod").ZodCoercedString<unknown>;
432
- }, import("zod/v4/core").$strip>;
433
- }, {
434
- status: boolean;
435
- backupCodes: string[];
436
- }>;
437
- sendTwoFactorOTP: import("better-call").StrictEndpoint<"/two-factor/send-otp", {
438
- method: "POST";
439
- body: import("zod").ZodOptional<import("zod").ZodObject<{
440
- trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
441
- }, import("zod/v4/core").$strip>>;
442
- metadata: {
443
- openapi: {
444
- summary: string;
445
- description: string;
446
- responses: {
447
- 200: {
448
- description: string;
449
- content: {
450
- "application/json": {
451
- schema: {
452
- type: "object";
453
- properties: {
454
- status: {
455
- type: string;
456
- };
457
- };
458
- };
459
- };
460
- };
461
- };
462
- };
463
- };
464
- };
465
- }, {
466
- status: boolean;
467
- }>;
468
- verifyTwoFactorOTP: import("better-call").StrictEndpoint<"/two-factor/verify-otp", {
469
- method: "POST";
470
- body: import("zod").ZodObject<{
471
- code: import("zod").ZodString;
472
- trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
473
- }, import("zod/v4/core").$strip>;
474
- metadata: {
475
- openapi: {
476
- summary: string;
477
- description: string;
478
- responses: {
479
- "200": {
480
- description: string;
481
- content: {
482
- "application/json": {
483
- schema: {
484
- type: "object";
485
- properties: {
486
- token: {
487
- type: string;
488
- description: string;
489
- };
490
- user: {
491
- type: string;
492
- properties: {
493
- id: {
494
- type: string;
495
- description: string;
496
- };
497
- email: {
498
- type: string;
499
- format: string;
500
- nullable: boolean;
501
- description: string;
502
- };
503
- emailVerified: {
504
- type: string;
505
- nullable: boolean;
506
- description: string;
507
- };
508
- name: {
509
- type: string;
510
- nullable: boolean;
511
- description: string;
512
- };
513
- image: {
514
- type: string;
515
- format: string;
516
- nullable: boolean;
517
- description: string;
518
- };
519
- createdAt: {
520
- type: string;
521
- format: string;
522
- description: string;
523
- };
524
- updatedAt: {
525
- type: string;
526
- format: string;
527
- description: string;
528
- };
529
- };
530
- required: string[];
531
- description: string;
532
- };
533
- };
534
- required: string[];
535
- };
536
- };
537
- };
538
- };
539
- };
540
- };
541
- };
542
- }, {
543
- token: string;
544
- user: import("better-auth/plugins").UserWithTwoFactor;
545
- } | {
546
- token: string;
547
- user: Record<string, any> & {
548
- id: string;
549
- createdAt: Date;
550
- updatedAt: Date;
551
- email: string;
552
- emailVerified: boolean;
553
- name: string;
554
- image?: string | null | undefined;
555
- };
556
- }>;
557
- generateTOTP: import("better-call").StrictEndpoint<string, {
558
- method: "POST";
559
- body: import("zod").ZodObject<{
560
- secret: import("zod").ZodString;
561
- }, import("zod/v4/core").$strip>;
562
- metadata: {
563
- openapi: {
564
- summary: string;
565
- description: string;
566
- responses: {
567
- 200: {
568
- description: string;
569
- content: {
570
- "application/json": {
571
- schema: {
572
- type: "object";
573
- properties: {
574
- code: {
575
- type: string;
576
- };
577
- };
578
- };
579
- };
580
- };
581
- };
582
- };
583
- };
584
- };
585
- }, {
586
- code: string;
587
- }>;
588
- getTOTPURI: import("better-call").StrictEndpoint<"/two-factor/get-totp-uri", {
589
- method: "POST";
590
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
591
- session: {
592
- session: Record<string, any> & {
593
- id: string;
594
- createdAt: Date;
595
- updatedAt: Date;
596
- userId: string;
597
- expiresAt: Date;
598
- token: string;
599
- ipAddress?: string | null | undefined;
600
- userAgent?: string | null | undefined;
601
- };
602
- user: Record<string, any> & {
603
- id: string;
604
- createdAt: Date;
605
- updatedAt: Date;
606
- email: string;
607
- emailVerified: boolean;
608
- name: string;
609
- image?: string | null | undefined;
610
- };
611
- };
612
- }>)[];
613
- body: import("zod").ZodObject<{
614
- password: import("zod").ZodOptional<import("zod").ZodString>;
615
- }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
616
- password: import("zod").ZodString;
617
- }, import("zod/v4/core").$strip>;
618
- metadata: {
619
- openapi: {
620
- summary: string;
621
- description: string;
622
- responses: {
623
- 200: {
624
- description: string;
625
- content: {
626
- "application/json": {
627
- schema: {
628
- type: "object";
629
- properties: {
630
- totpURI: {
631
- type: string;
632
- };
633
- };
634
- };
635
- };
636
- };
637
- };
638
- };
639
- };
640
- };
641
- }, {
642
- totpURI: string;
643
- }>;
644
- verifyTOTP: import("better-call").StrictEndpoint<"/two-factor/verify-totp", {
645
- method: "POST";
646
- body: import("zod").ZodObject<{
647
- code: import("zod").ZodString;
648
- trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
649
- }, import("zod/v4/core").$strip>;
650
- metadata: {
651
- openapi: {
652
- summary: string;
653
- description: string;
654
- responses: {
655
- 200: {
656
- description: string;
657
- content: {
658
- "application/json": {
659
- schema: {
660
- type: "object";
661
- properties: {
662
- status: {
663
- type: string;
664
- };
665
- };
666
- };
667
- };
668
- };
669
- };
670
- };
671
- };
672
- };
673
- }, {
674
- token: string;
675
- user: import("better-auth/plugins").UserWithTwoFactor;
676
- } | {
677
- token: string;
678
- user: Record<string, any> & {
679
- id: string;
680
- createdAt: Date;
681
- updatedAt: Date;
682
- email: string;
683
- emailVerified: boolean;
684
- name: string;
685
- image?: string | null | undefined;
686
- };
687
- }>;
688
- };
689
- options: NoInfer<import("better-auth/plugins").TwoFactorOptions>;
690
- hooks: {
691
- after: {
692
- matcher(context: import("better-auth").HookEndpointContext): boolean;
693
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
694
- twoFactorRedirect: boolean;
695
- twoFactorMethods: string[];
696
- } | undefined>;
697
- }[];
698
- };
699
- schema: {
700
- user: {
701
- fields: {
702
- twoFactorEnabled: {
703
- type: "boolean";
704
- required: false;
705
- defaultValue: false;
706
- input: false;
707
- };
708
- };
709
- };
710
- twoFactor: {
711
- fields: {
712
- secret: {
713
- type: "string";
714
- required: true;
715
- returned: false;
716
- index: true;
717
- };
718
- backupCodes: {
719
- type: "string";
720
- required: true;
721
- returned: false;
722
- };
723
- userId: {
724
- type: "string";
725
- required: true;
726
- returned: false;
727
- references: {
728
- model: string;
729
- field: string;
730
- };
731
- index: true;
732
- };
733
- verified: {
734
- type: "boolean";
735
- required: false;
736
- defaultValue: true;
737
- input: false;
738
- };
739
- };
740
- };
741
- };
742
- rateLimit: {
743
- pathMatcher(path: string): boolean;
744
- window: number;
745
- max: number;
746
- }[];
747
- $ERROR_CODES: {
748
- OTP_NOT_ENABLED: import("better-auth").RawError<"OTP_NOT_ENABLED">;
749
- OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
750
- TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
751
- TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
752
- BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
753
- INVALID_BACKUP_CODE: import("better-auth").RawError<"INVALID_BACKUP_CODE">;
754
- INVALID_CODE: import("better-auth").RawError<"INVALID_CODE">;
755
- TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: import("better-auth").RawError<"TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE">;
756
- INVALID_TWO_FACTOR_COOKIE: import("better-auth").RawError<"INVALID_TWO_FACTOR_COOKIE">;
757
- };
758
- }, {
759
- id: "username";
760
- version: string;
761
- init(ctx: import("better-auth").AuthContext): {
762
- options: {
763
- databaseHooks: {
764
- user: {
765
- create: {
766
- before(user: {
767
- id: string;
768
- createdAt: Date;
769
- updatedAt: Date;
770
- email: string;
771
- emailVerified: boolean;
772
- name: string;
773
- image?: string | null | undefined;
774
- } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
775
- data: {
776
- displayUsername?: string | undefined;
777
- username?: string | undefined;
778
- id: string;
779
- createdAt: Date;
780
- updatedAt: Date;
781
- email: string;
782
- emailVerified: boolean;
783
- name: string;
784
- image?: string | null | undefined;
785
- };
786
- }>;
787
- };
788
- update: {
789
- before(user: Partial<{
790
- id: string;
791
- createdAt: Date;
792
- updatedAt: Date;
793
- email: string;
794
- emailVerified: boolean;
795
- name: string;
796
- image?: string | null | undefined;
797
- }> & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
798
- data: {
799
- displayUsername?: string | undefined;
800
- username?: string | undefined;
801
- id?: string | undefined;
802
- createdAt?: Date | undefined;
803
- updatedAt?: Date | undefined;
804
- email?: string | undefined;
805
- emailVerified?: boolean | undefined;
806
- name?: string | undefined;
807
- image?: string | null | undefined;
808
- };
809
- }>;
810
- };
811
- };
812
- };
813
- };
814
- };
815
- endpoints: {
816
- signInUsername: import("better-call").StrictEndpoint<"/sign-in/username", {
817
- method: "POST";
818
- body: import("zod").ZodObject<{
819
- username: import("zod").ZodString;
820
- password: import("zod").ZodString;
821
- rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
822
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
823
- }, import("zod/v4/core").$strip>;
824
- metadata: {
825
- openapi: {
826
- summary: string;
827
- description: string;
828
- responses: {
829
- 200: {
830
- description: string;
831
- content: {
832
- "application/json": {
833
- schema: {
834
- type: "object";
835
- properties: {
836
- token: {
837
- type: string;
838
- description: string;
839
- };
840
- user: {
841
- $ref: string;
842
- };
843
- };
844
- required: string[];
845
- };
846
- };
847
- };
848
- };
849
- 422: {
850
- description: string;
851
- content: {
852
- "application/json": {
853
- schema: {
854
- type: "object";
855
- properties: {
856
- message: {
857
- type: string;
858
- };
859
- };
860
- };
861
- };
862
- };
863
- };
864
- };
865
- };
866
- };
867
- }, {
868
- token: string;
869
- user: {
870
- id: string;
871
- createdAt: Date;
872
- updatedAt: Date;
873
- email: string;
874
- emailVerified: boolean;
875
- name: string;
876
- image?: string | null | undefined;
877
- } & {
878
- username: string;
879
- displayUsername: string;
880
- };
881
- }>;
882
- isUsernameAvailable: import("better-call").StrictEndpoint<"/is-username-available", {
883
- method: "POST";
884
- body: import("zod").ZodObject<{
885
- username: import("zod").ZodString;
886
- }, import("zod/v4/core").$strip>;
887
- }, {
888
- available: boolean;
889
- }>;
890
- };
891
- schema: {
892
- user: {
893
- fields: {
894
- username: {
895
- type: "string";
896
- required: false;
897
- sortable: true;
898
- unique: true;
899
- returned: true;
900
- transform: {
901
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
902
- };
903
- };
904
- displayUsername: {
905
- type: "string";
906
- required: false;
907
- transform: {
908
- input(value: import("better-auth").DBPrimitive): string | number | boolean | Date | Record<string, unknown> | unknown[] | null | undefined;
909
- };
910
- };
911
- };
912
- };
913
- };
914
- hooks: {
915
- before: {
916
- matcher(context: import("better-auth").HookEndpointContext): boolean;
917
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
918
- }[];
919
- };
920
- options: import("better-auth/plugins").UsernameOptions | undefined;
921
- $ERROR_CODES: {
922
- EMAIL_NOT_VERIFIED: import("better-auth").RawError<"EMAIL_NOT_VERIFIED">;
923
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
924
- INVALID_USERNAME_OR_PASSWORD: import("better-auth").RawError<"INVALID_USERNAME_OR_PASSWORD">;
925
- USERNAME_IS_ALREADY_TAKEN: import("better-auth").RawError<"USERNAME_IS_ALREADY_TAKEN">;
926
- USERNAME_TOO_SHORT: import("better-auth").RawError<"USERNAME_TOO_SHORT">;
927
- USERNAME_TOO_LONG: import("better-auth").RawError<"USERNAME_TOO_LONG">;
928
- INVALID_USERNAME: import("better-auth").RawError<"INVALID_USERNAME">;
929
- INVALID_DISPLAY_USERNAME: import("better-auth").RawError<"INVALID_DISPLAY_USERNAME">;
930
- };
931
- }, {
932
- id: "phone-number";
933
- version: string;
934
- hooks: {
935
- before: {
936
- matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
937
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<never>;
938
- }[];
939
- };
940
- endpoints: {
941
- signInPhoneNumber: import("better-call").StrictEndpoint<"/sign-in/phone-number", {
942
- method: "POST";
943
- body: import("zod").ZodObject<{
944
- phoneNumber: import("zod").ZodString;
945
- password: import("zod").ZodString;
946
- rememberMe: import("zod").ZodOptional<import("zod").ZodBoolean>;
947
- }, import("zod/v4/core").$strip>;
948
- metadata: {
949
- openapi: {
950
- summary: string;
951
- description: string;
952
- responses: {
953
- 200: {
954
- description: string;
955
- content: {
956
- "application/json": {
957
- schema: {
958
- type: "object";
959
- properties: {
960
- user: {
961
- $ref: string;
962
- };
963
- session: {
964
- $ref: string;
965
- };
966
- };
967
- };
968
- };
969
- };
970
- };
971
- 400: {
972
- description: string;
973
- };
974
- };
975
- };
976
- };
977
- }, {
978
- token: string;
979
- user: import("better-auth/plugins").UserWithPhoneNumber;
980
- }>;
981
- sendPhoneNumberOTP: import("better-call").StrictEndpoint<"/phone-number/send-otp", {
982
- method: "POST";
983
- body: import("zod").ZodObject<{
984
- phoneNumber: import("zod").ZodString;
985
- }, import("zod/v4/core").$strip>;
986
- metadata: {
987
- openapi: {
988
- summary: string;
989
- description: string;
990
- responses: {
991
- 200: {
992
- description: string;
993
- content: {
994
- "application/json": {
995
- schema: {
996
- type: "object";
997
- properties: {
998
- message: {
999
- type: string;
1000
- };
1001
- };
1002
- };
1003
- };
1004
- };
1005
- };
1006
- };
1007
- };
1008
- };
1009
- }, {
1010
- message: string;
1011
- }>;
1012
- verifyPhoneNumber: import("better-call").StrictEndpoint<"/phone-number/verify", {
1013
- method: "POST";
1014
- body: import("zod").ZodIntersection<import("zod").ZodObject<{
1015
- phoneNumber: import("zod").ZodString;
1016
- code: import("zod").ZodString;
1017
- disableSession: import("zod").ZodOptional<import("zod").ZodBoolean>;
1018
- updatePhoneNumber: import("zod").ZodOptional<import("zod").ZodBoolean>;
1019
- }, import("zod/v4/core").$strip>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
1020
- metadata: {
1021
- openapi: {
1022
- summary: string;
1023
- description: string;
1024
- responses: {
1025
- "200": {
1026
- description: string;
1027
- content: {
1028
- "application/json": {
1029
- schema: {
1030
- type: "object";
1031
- properties: {
1032
- status: {
1033
- type: string;
1034
- description: string;
1035
- enum: boolean[];
1036
- };
1037
- token: {
1038
- type: string;
1039
- nullable: boolean;
1040
- description: string;
1041
- };
1042
- user: {
1043
- type: string;
1044
- nullable: boolean;
1045
- properties: {
1046
- id: {
1047
- type: string;
1048
- description: string;
1049
- };
1050
- email: {
1051
- type: string;
1052
- format: string;
1053
- nullable: boolean;
1054
- description: string;
1055
- };
1056
- emailVerified: {
1057
- type: string;
1058
- nullable: boolean;
1059
- description: string;
1060
- };
1061
- name: {
1062
- type: string;
1063
- nullable: boolean;
1064
- description: string;
1065
- };
1066
- image: {
1067
- type: string;
1068
- format: string;
1069
- nullable: boolean;
1070
- description: string;
1071
- };
1072
- phoneNumber: {
1073
- type: string;
1074
- description: string;
1075
- };
1076
- phoneNumberVerified: {
1077
- type: string;
1078
- description: string;
1079
- };
1080
- createdAt: {
1081
- type: string;
1082
- format: string;
1083
- description: string;
1084
- };
1085
- updatedAt: {
1086
- type: string;
1087
- format: string;
1088
- description: string;
1089
- };
1090
- };
1091
- required: string[];
1092
- description: string;
1093
- };
1094
- };
1095
- required: string[];
1096
- };
1097
- };
1098
- };
1099
- };
1100
- 400: {
1101
- description: string;
1102
- };
1103
- };
1104
- };
1105
- };
1106
- }, {
1107
- status: boolean;
1108
- token: string;
1109
- user: {
1110
- id: string;
1111
- createdAt: Date;
1112
- updatedAt: Date;
1113
- email: string;
1114
- emailVerified: boolean;
1115
- name: string;
1116
- image?: string | null | undefined;
1117
- } & import("better-auth/plugins").UserWithPhoneNumber;
1118
- } | {
1119
- status: boolean;
1120
- token: null;
1121
- user: import("better-auth/plugins").UserWithPhoneNumber;
1122
- }>;
1123
- requestPasswordResetPhoneNumber: import("better-call").StrictEndpoint<"/phone-number/request-password-reset", {
1124
- method: "POST";
1125
- body: import("zod").ZodObject<{
1126
- phoneNumber: import("zod").ZodString;
1127
- }, import("zod/v4/core").$strip>;
1128
- metadata: {
1129
- openapi: {
1130
- description: string;
1131
- responses: {
1132
- "200": {
1133
- description: string;
1134
- content: {
1135
- "application/json": {
1136
- schema: {
1137
- type: "object";
1138
- properties: {
1139
- status: {
1140
- type: string;
1141
- description: string;
1142
- enum: boolean[];
1143
- };
1144
- };
1145
- required: string[];
1146
- };
1147
- };
1148
- };
1149
- };
1150
- };
1151
- };
1152
- };
1153
- }, {
1154
- status: boolean;
1155
- }>;
1156
- resetPasswordPhoneNumber: import("better-call").StrictEndpoint<"/phone-number/reset-password", {
1157
- method: "POST";
1158
- body: import("zod").ZodObject<{
1159
- otp: import("zod").ZodString;
1160
- phoneNumber: import("zod").ZodString;
1161
- newPassword: import("zod").ZodString;
1162
- }, import("zod/v4/core").$strip>;
1163
- metadata: {
1164
- openapi: {
1165
- description: string;
1166
- responses: {
1167
- "200": {
1168
- description: string;
1169
- content: {
1170
- "application/json": {
1171
- schema: {
1172
- type: "object";
1173
- properties: {
1174
- status: {
1175
- type: string;
1176
- description: string;
1177
- enum: boolean[];
1178
- };
1179
- };
1180
- required: string[];
1181
- };
1182
- };
1183
- };
1184
- };
1185
- };
1186
- };
1187
- };
1188
- }, {
1189
- status: boolean;
1190
- }>;
1191
- };
1192
- schema: {
1193
- user: {
1194
- fields: {
1195
- phoneNumber: {
1196
- type: "string";
1197
- required: false;
1198
- unique: true;
1199
- sortable: true;
1200
- returned: true;
1201
- };
1202
- phoneNumberVerified: {
1203
- type: "boolean";
1204
- required: false;
1205
- returned: true;
1206
- input: false;
1207
- };
1208
- };
1209
- };
1210
- };
1211
- rateLimit: {
1212
- pathMatcher(path: string): boolean;
1213
- window: number;
1214
- max: number;
1215
- }[];
1216
- options: import("better-auth/plugins").PhoneNumberOptions | undefined;
1217
- $ERROR_CODES: {
1218
- OTP_EXPIRED: import("better-auth").RawError<"OTP_EXPIRED">;
1219
- INVALID_OTP: import("better-auth").RawError<"INVALID_OTP">;
1220
- TOO_MANY_ATTEMPTS: import("better-auth").RawError<"TOO_MANY_ATTEMPTS">;
1221
- INVALID_PHONE_NUMBER: import("better-auth").RawError<"INVALID_PHONE_NUMBER">;
1222
- PHONE_NUMBER_EXIST: import("better-auth").RawError<"PHONE_NUMBER_EXIST">;
1223
- PHONE_NUMBER_NOT_EXIST: import("better-auth").RawError<"PHONE_NUMBER_NOT_EXIST">;
1224
- INVALID_PHONE_NUMBER_OR_PASSWORD: import("better-auth").RawError<"INVALID_PHONE_NUMBER_OR_PASSWORD">;
1225
- UNEXPECTED_ERROR: import("better-auth").RawError<"UNEXPECTED_ERROR">;
1226
- OTP_NOT_FOUND: import("better-auth").RawError<"OTP_NOT_FOUND">;
1227
- PHONE_NUMBER_NOT_VERIFIED: import("better-auth").RawError<"PHONE_NUMBER_NOT_VERIFIED">;
1228
- PHONE_NUMBER_CANNOT_BE_UPDATED: import("better-auth").RawError<"PHONE_NUMBER_CANNOT_BE_UPDATED">;
1229
- SEND_OTP_NOT_IMPLEMENTED: import("better-auth").RawError<"SEND_OTP_NOT_IMPLEMENTED">;
1230
- };
1231
- }, {
1232
- id: "magic-link";
1233
- version: string;
1234
- endpoints: {
1235
- signInMagicLink: import("better-call").StrictEndpoint<"/sign-in/magic-link", {
1236
- method: "POST";
1237
- requireHeaders: true;
1238
- body: import("zod").ZodObject<{
1239
- email: import("zod").ZodEmail;
1240
- name: import("zod").ZodOptional<import("zod").ZodString>;
1241
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1242
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1243
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1244
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
1245
- }, import("zod/v4/core").$strip>;
1246
- metadata: {
1247
- openapi: {
1248
- operationId: string;
1249
- description: string;
1250
- responses: {
1251
- 200: {
1252
- description: string;
1253
- content: {
1254
- "application/json": {
1255
- schema: {
1256
- type: "object";
1257
- properties: {
1258
- status: {
1259
- type: string;
1260
- };
1261
- };
1262
- };
1263
- };
1264
- };
1265
- };
1266
- };
1267
- };
1268
- };
1269
- }, {
1270
- status: boolean;
1271
- }>;
1272
- magicLinkVerify: import("better-call").StrictEndpoint<"/magic-link/verify", {
1273
- method: "GET";
1274
- query: import("zod").ZodObject<{
1275
- token: import("zod").ZodString;
1276
- callbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1277
- errorCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1278
- newUserCallbackURL: import("zod").ZodOptional<import("zod").ZodString>;
1279
- }, import("zod/v4/core").$strip>;
1280
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>)[];
1281
- requireHeaders: true;
1282
- metadata: {
1283
- openapi: {
1284
- operationId: string;
1285
- description: string;
1286
- responses: {
1287
- 200: {
1288
- description: string;
1289
- content: {
1290
- "application/json": {
1291
- schema: {
1292
- type: "object";
1293
- properties: {
1294
- session: {
1295
- $ref: string;
1296
- };
1297
- user: {
1298
- $ref: string;
1299
- };
1300
- };
1301
- };
1302
- };
1303
- };
1304
- };
1305
- };
1306
- };
1307
- };
1308
- }, {
1309
- token: string;
1310
- user: {
1311
- id: string;
1312
- createdAt: Date;
1313
- updatedAt: Date;
1314
- email: string;
1315
- emailVerified: boolean;
1316
- name: string;
1317
- image?: string | null | undefined;
1318
- };
1319
- session: {
1320
- id: string;
1321
- createdAt: Date;
1322
- updatedAt: Date;
1323
- userId: string;
1324
- expiresAt: Date;
1325
- token: string;
1326
- ipAddress?: string | null | undefined;
1327
- userAgent?: string | null | undefined;
1328
- };
1329
- }>;
1330
- };
1331
- rateLimit: {
1332
- pathMatcher(path: string): boolean;
1333
- window: number;
1334
- max: number;
1335
- }[];
1336
- options: import("better-auth/plugins").MagicLinkOptions;
1337
- }, {
1338
- id: "email-otp";
1339
- version: string;
1340
- init(ctx: import("better-auth").AuthContext): {
1341
- options: {
1342
- emailVerification: {
1343
- sendVerificationEmail(data: {
1344
- user: import("better-auth").User;
1345
- url: string;
1346
- token: string;
1347
- }, request: Request | undefined): Promise<void>;
1348
- };
1349
- };
1350
- } | undefined;
1351
- endpoints: {
1352
- sendVerificationOTP: import("better-call").StrictEndpoint<"/email-otp/send-verification-otp", {
1353
- method: "POST";
1354
- body: import("zod").ZodObject<{
1355
- email: import("zod").ZodString;
1356
- type: import("zod").ZodEnum<{
1357
- "sign-in": "sign-in";
1358
- "change-email": "change-email";
1359
- "email-verification": "email-verification";
1360
- "forget-password": "forget-password";
1361
- }>;
1362
- }, import("zod/v4/core").$strip>;
1363
- metadata: {
1364
- openapi: {
1365
- operationId: string;
1366
- description: string;
1367
- responses: {
1368
- 200: {
1369
- description: string;
1370
- content: {
1371
- "application/json": {
1372
- schema: {
1373
- type: "object";
1374
- properties: {
1375
- success: {
1376
- type: string;
1377
- };
1378
- };
1379
- };
1380
- };
1381
- };
1382
- };
1383
- };
1384
- };
1385
- };
1386
- }, {
1387
- success: boolean;
1388
- }>;
1389
- createVerificationOTP: import("better-call").StrictEndpoint<string, {
1390
- method: "POST";
1391
- body: import("zod").ZodObject<{
1392
- email: import("zod").ZodString;
1393
- type: import("zod").ZodEnum<{
1394
- "sign-in": "sign-in";
1395
- "change-email": "change-email";
1396
- "email-verification": "email-verification";
1397
- "forget-password": "forget-password";
1398
- }>;
1399
- }, import("zod/v4/core").$strip>;
1400
- metadata: {
1401
- openapi: {
1402
- operationId: string;
1403
- description: string;
1404
- responses: {
1405
- 200: {
1406
- description: string;
1407
- content: {
1408
- "application/json": {
1409
- schema: {
1410
- type: "string";
1411
- };
1412
- };
1413
- };
1414
- };
1415
- };
1416
- };
1417
- };
1418
- }, string>;
1419
- getVerificationOTP: import("better-call").StrictEndpoint<string, {
1420
- method: "GET";
1421
- query: import("zod").ZodObject<{
1422
- email: import("zod").ZodString;
1423
- type: import("zod").ZodEnum<{
1424
- "sign-in": "sign-in";
1425
- "change-email": "change-email";
1426
- "email-verification": "email-verification";
1427
- "forget-password": "forget-password";
1428
- }>;
1429
- }, import("zod/v4/core").$strip>;
1430
- metadata: {
1431
- openapi: {
1432
- operationId: string;
1433
- description: string;
1434
- responses: {
1435
- "200": {
1436
- description: string;
1437
- content: {
1438
- "application/json": {
1439
- schema: {
1440
- type: "object";
1441
- properties: {
1442
- otp: {
1443
- type: string;
1444
- nullable: boolean;
1445
- description: string;
1446
- };
1447
- };
1448
- required: string[];
1449
- };
1450
- };
1451
- };
1452
- };
1453
- };
1454
- };
1455
- };
1456
- }, {
1457
- otp: null;
1458
- } | {
1459
- otp: string;
1460
- }>;
1461
- checkVerificationOTP: import("better-call").StrictEndpoint<"/email-otp/check-verification-otp", {
1462
- method: "POST";
1463
- body: import("zod").ZodObject<{
1464
- email: import("zod").ZodString;
1465
- type: import("zod").ZodEnum<{
1466
- "sign-in": "sign-in";
1467
- "change-email": "change-email";
1468
- "email-verification": "email-verification";
1469
- "forget-password": "forget-password";
1470
- }>;
1471
- otp: import("zod").ZodString;
1472
- }, import("zod/v4/core").$strip>;
1473
- metadata: {
1474
- openapi: {
1475
- operationId: string;
1476
- description: string;
1477
- responses: {
1478
- 200: {
1479
- description: string;
1480
- content: {
1481
- "application/json": {
1482
- schema: {
1483
- type: "object";
1484
- properties: {
1485
- success: {
1486
- type: string;
1487
- };
1488
- };
1489
- };
1490
- };
1491
- };
1492
- };
1493
- };
1494
- };
1495
- };
1496
- }, {
1497
- success: boolean;
1498
- }>;
1499
- verifyEmailOTP: import("better-call").StrictEndpoint<"/email-otp/verify-email", {
1500
- method: "POST";
1501
- body: import("zod").ZodObject<{
1502
- email: import("zod").ZodString;
1503
- otp: import("zod").ZodString;
1504
- }, import("zod/v4/core").$strip>;
1505
- metadata: {
1506
- openapi: {
1507
- description: string;
1508
- responses: {
1509
- 200: {
1510
- description: string;
1511
- content: {
1512
- "application/json": {
1513
- schema: {
1514
- type: "object";
1515
- properties: {
1516
- status: {
1517
- type: string;
1518
- description: string;
1519
- enum: boolean[];
1520
- };
1521
- token: {
1522
- type: string;
1523
- nullable: boolean;
1524
- description: string;
1525
- };
1526
- user: {
1527
- $ref: string;
1528
- };
1529
- };
1530
- required: string[];
1531
- };
1532
- };
1533
- };
1534
- };
1535
- };
1536
- };
1537
- };
1538
- }, {
1539
- status: boolean;
1540
- token: string;
1541
- user: {
1542
- id: string;
1543
- createdAt: Date;
1544
- updatedAt: Date;
1545
- email: string;
1546
- emailVerified: boolean;
1547
- name: string;
1548
- image?: string | null | undefined;
1549
- } & Record<string, any>;
1550
- } | {
1551
- status: boolean;
1552
- token: null;
1553
- user: {
1554
- id: string;
1555
- createdAt: Date;
1556
- updatedAt: Date;
1557
- email: string;
1558
- emailVerified: boolean;
1559
- name: string;
1560
- image?: string | null | undefined;
1561
- } & Record<string, any>;
1562
- }>;
1563
- signInEmailOTP: import("better-call").StrictEndpoint<"/sign-in/email-otp", {
1564
- method: "POST";
1565
- body: import("zod").ZodIntersection<import("zod").ZodObject<{
1566
- email: import("zod").ZodString;
1567
- otp: import("zod").ZodString;
1568
- name: import("zod").ZodOptional<import("zod").ZodString>;
1569
- image: import("zod").ZodOptional<import("zod").ZodString>;
1570
- }, import("zod/v4/core").$strip>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
1571
- metadata: {
1572
- openapi: {
1573
- operationId: string;
1574
- description: string;
1575
- responses: {
1576
- 200: {
1577
- description: string;
1578
- content: {
1579
- "application/json": {
1580
- schema: {
1581
- type: "object";
1582
- properties: {
1583
- token: {
1584
- type: string;
1585
- description: string;
1586
- };
1587
- user: {
1588
- $ref: string;
1589
- };
1590
- };
1591
- required: string[];
1592
- };
1593
- };
1594
- };
1595
- };
1596
- };
1597
- };
1598
- };
1599
- }, {
1600
- token: string;
1601
- user: {
1602
- id: string;
1603
- createdAt: Date;
1604
- updatedAt: Date;
1605
- email: string;
1606
- emailVerified: boolean;
1607
- name: string;
1608
- image?: string | null | undefined;
1609
- };
1610
- }>;
1611
- requestPasswordResetEmailOTP: import("better-call").StrictEndpoint<"/email-otp/request-password-reset", {
1612
- method: "POST";
1613
- body: import("zod").ZodObject<{
1614
- email: import("zod").ZodString;
1615
- }, import("zod/v4/core").$strip>;
1616
- metadata: {
1617
- openapi: {
1618
- operationId: string;
1619
- description: string;
1620
- responses: {
1621
- 200: {
1622
- description: string;
1623
- content: {
1624
- "application/json": {
1625
- schema: {
1626
- type: "object";
1627
- properties: {
1628
- success: {
1629
- type: string;
1630
- description: string;
1631
- };
1632
- };
1633
- };
1634
- };
1635
- };
1636
- };
1637
- };
1638
- };
1639
- };
1640
- }, {
1641
- success: boolean;
1642
- }>;
1643
- forgetPasswordEmailOTP: import("better-call").StrictEndpoint<"/forget-password/email-otp", {
1644
- method: "POST";
1645
- body: import("zod").ZodObject<{
1646
- email: import("zod").ZodString;
1647
- }, import("zod/v4/core").$strip>;
1648
- metadata: {
1649
- openapi: {
1650
- operationId: string;
1651
- description: string;
1652
- responses: {
1653
- 200: {
1654
- description: string;
1655
- content: {
1656
- "application/json": {
1657
- schema: {
1658
- type: "object";
1659
- properties: {
1660
- success: {
1661
- type: string;
1662
- description: string;
1663
- };
1664
- };
1665
- };
1666
- };
1667
- };
1668
- };
1669
- };
1670
- };
1671
- };
1672
- }, {
1673
- success: boolean;
1674
- }>;
1675
- resetPasswordEmailOTP: import("better-call").StrictEndpoint<"/email-otp/reset-password", {
1676
- method: "POST";
1677
- body: import("zod").ZodObject<{
1678
- email: import("zod").ZodString;
1679
- otp: import("zod").ZodString;
1680
- password: import("zod").ZodString;
1681
- }, import("zod/v4/core").$strip>;
1682
- metadata: {
1683
- openapi: {
1684
- operationId: string;
1685
- description: string;
1686
- responses: {
1687
- 200: {
1688
- description: string;
1689
- content: {
1690
- "application/json": {
1691
- schema: {
1692
- type: "object";
1693
- properties: {
1694
- success: {
1695
- type: string;
1696
- };
1697
- };
1698
- };
1699
- };
1700
- };
1701
- };
1702
- };
1703
- };
1704
- };
1705
- }, {
1706
- success: boolean;
1707
- }>;
1708
- requestEmailChangeEmailOTP: import("better-call").StrictEndpoint<"/email-otp/request-email-change", {
1709
- method: "POST";
1710
- body: import("zod").ZodObject<{
1711
- newEmail: import("zod").ZodString;
1712
- otp: import("zod").ZodOptional<import("zod").ZodString>;
1713
- }, import("zod/v4/core").$strip>;
1714
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1715
- session: {
1716
- session: Record<string, any> & {
1717
- id: string;
1718
- createdAt: Date;
1719
- updatedAt: Date;
1720
- userId: string;
1721
- expiresAt: Date;
1722
- token: string;
1723
- ipAddress?: string | null | undefined;
1724
- userAgent?: string | null | undefined;
1725
- };
1726
- user: Record<string, any> & {
1727
- id: string;
1728
- createdAt: Date;
1729
- updatedAt: Date;
1730
- email: string;
1731
- emailVerified: boolean;
1732
- name: string;
1733
- image?: string | null | undefined;
1734
- };
1735
- };
1736
- }>)[];
1737
- metadata: {
1738
- openapi: {
1739
- operationId: string;
1740
- description: string;
1741
- responses: {
1742
- 200: {
1743
- description: string;
1744
- content: {
1745
- "application/json": {
1746
- schema: {
1747
- type: "object";
1748
- properties: {
1749
- success: {
1750
- type: string;
1751
- };
1752
- };
1753
- };
1754
- };
1755
- };
1756
- };
1757
- };
1758
- };
1759
- };
1760
- }, {
1761
- success: boolean;
1762
- }>;
1763
- changeEmailEmailOTP: import("better-call").StrictEndpoint<"/email-otp/change-email", {
1764
- method: "POST";
1765
- body: import("zod").ZodObject<{
1766
- newEmail: import("zod").ZodString;
1767
- otp: import("zod").ZodString;
1768
- }, import("zod/v4/core").$strip>;
1769
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1770
- session: {
1771
- session: Record<string, any> & {
1772
- id: string;
1773
- createdAt: Date;
1774
- updatedAt: Date;
1775
- userId: string;
1776
- expiresAt: Date;
1777
- token: string;
1778
- ipAddress?: string | null | undefined;
1779
- userAgent?: string | null | undefined;
1780
- };
1781
- user: Record<string, any> & {
1782
- id: string;
1783
- createdAt: Date;
1784
- updatedAt: Date;
1785
- email: string;
1786
- emailVerified: boolean;
1787
- name: string;
1788
- image?: string | null | undefined;
1789
- };
1790
- };
1791
- }>)[];
1792
- metadata: {
1793
- openapi: {
1794
- operationId: string;
1795
- description: string;
1796
- responses: {
1797
- 200: {
1798
- description: string;
1799
- content: {
1800
- "application/json": {
1801
- schema: {
1802
- type: "object";
1803
- properties: {
1804
- success: {
1805
- type: string;
1806
- };
1807
- };
1808
- };
1809
- };
1810
- };
1811
- };
1812
- };
1813
- };
1814
- };
1815
- }, {
1816
- success: boolean;
1817
- }>;
1818
- };
1819
- hooks: {
1820
- after: {
1821
- matcher(context: import("better-auth").HookEndpointContext): boolean;
1822
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
1823
- }[];
1824
- };
1825
- rateLimit: ({
1826
- pathMatcher(path: string): path is "/email-otp/send-verification-otp";
1827
- window: number;
1828
- max: number;
1829
- } | {
1830
- pathMatcher(path: string): path is "/email-otp/check-verification-otp";
1831
- window: number;
1832
- max: number;
1833
- } | {
1834
- pathMatcher(path: string): path is "/email-otp/verify-email";
1835
- window: number;
1836
- max: number;
1837
- } | {
1838
- pathMatcher(path: string): path is "/sign-in/email-otp";
1839
- window: number;
1840
- max: number;
1841
- } | {
1842
- pathMatcher(path: string): path is "/email-otp/request-password-reset";
1843
- window: number;
1844
- max: number;
1845
- } | {
1846
- pathMatcher(path: string): path is "/email-otp/reset-password";
1847
- window: number;
1848
- max: number;
1849
- } | {
1850
- pathMatcher(path: string): path is "/forget-password/email-otp";
1851
- window: number;
1852
- max: number;
1853
- } | {
1854
- pathMatcher(path: string): path is "/email-otp/request-email-change";
1855
- window: number;
1856
- max: number;
1857
- } | {
1858
- pathMatcher(path: string): path is "/email-otp/change-email";
1859
- window: number;
1860
- max: number;
1861
- })[];
1862
- options: import("better-auth/plugins").EmailOTPOptions;
1863
- $ERROR_CODES: {
1864
- OTP_EXPIRED: import("better-auth").RawError<"OTP_EXPIRED">;
1865
- INVALID_OTP: import("better-auth").RawError<"INVALID_OTP">;
1866
- TOO_MANY_ATTEMPTS: import("better-auth").RawError<"TOO_MANY_ATTEMPTS">;
1867
- };
1868
- }, {
1869
- id: "admin";
1870
- version: string;
1871
- init(): {
1872
- options: {
1873
- databaseHooks: {
1874
- user: {
1875
- create: {
1876
- before(user: {
1877
- id: string;
1878
- createdAt: Date;
1879
- updatedAt: Date;
1880
- email: string;
1881
- emailVerified: boolean;
1882
- name: string;
1883
- image?: string | null | undefined;
1884
- } & Record<string, unknown>): Promise<{
1885
- data: {
1886
- id: string;
1887
- createdAt: Date;
1888
- updatedAt: Date;
1889
- email: string;
1890
- emailVerified: boolean;
1891
- name: string;
1892
- image?: string | null | undefined;
1893
- role: string;
1894
- };
1895
- }>;
1896
- };
1897
- };
1898
- session: {
1899
- create: {
1900
- before(session: {
1901
- id: string;
1902
- createdAt: Date;
1903
- updatedAt: Date;
1904
- userId: string;
1905
- expiresAt: Date;
1906
- token: string;
1907
- ipAddress?: string | null | undefined;
1908
- userAgent?: string | null | undefined;
1909
- } & Record<string, unknown>, ctx: import("better-auth").GenericEndpointContext | null): Promise<void>;
1910
- };
1911
- };
1912
- };
1913
- };
1914
- };
1915
- hooks: {
1916
- after: {
1917
- matcher(context: import("better-auth").HookEndpointContext): boolean;
1918
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<import("better-auth/plugins").SessionWithImpersonatedBy[] | undefined>;
1919
- }[];
1920
- };
1921
- endpoints: {
1922
- setRole: import("better-call").StrictEndpoint<"/admin/set-role", {
1923
- method: "POST";
1924
- body: import("zod").ZodObject<{
1925
- userId: import("zod").ZodCoercedString<unknown>;
1926
- role: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>;
1927
- }, import("zod/v4/core").$strip>;
1928
- requireHeaders: true;
1929
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1930
- session: {
1931
- user: import("better-auth/plugins").UserWithRole;
1932
- session: {
1933
- id: string;
1934
- createdAt: Date;
1935
- updatedAt: Date;
1936
- userId: string;
1937
- expiresAt: Date;
1938
- token: string;
1939
- ipAddress?: string | null | undefined;
1940
- userAgent?: string | null | undefined;
1941
- };
1942
- };
1943
- }>)[];
1944
- metadata: {
1945
- openapi: {
1946
- operationId: string;
1947
- summary: string;
1948
- description: string;
1949
- responses: {
1950
- 200: {
1951
- description: string;
1952
- content: {
1953
- "application/json": {
1954
- schema: {
1955
- type: "object";
1956
- properties: {
1957
- user: {
1958
- $ref: string;
1959
- };
1960
- };
1961
- };
1962
- };
1963
- };
1964
- };
1965
- };
1966
- };
1967
- $Infer: {
1968
- body: {
1969
- userId: string;
1970
- role: "user" | "admin" | "superAdmin" | "authAdmin" | "authUser" | ("user" | "admin" | "superAdmin" | "authAdmin" | "authUser")[];
1971
- };
1972
- };
1973
- };
1974
- }, {
1975
- user: import("better-auth/plugins").UserWithRole;
1976
- }>;
1977
- getUser: import("better-call").StrictEndpoint<"/admin/get-user", {
1978
- method: "GET";
1979
- query: import("zod").ZodObject<{
1980
- id: import("zod").ZodString;
1981
- }, import("zod/v4/core").$strip>;
1982
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
1983
- session: {
1984
- user: import("better-auth/plugins").UserWithRole;
1985
- session: {
1986
- id: string;
1987
- createdAt: Date;
1988
- updatedAt: Date;
1989
- userId: string;
1990
- expiresAt: Date;
1991
- token: string;
1992
- ipAddress?: string | null | undefined;
1993
- userAgent?: string | null | undefined;
1994
- };
1995
- };
1996
- }>)[];
1997
- metadata: {
1998
- openapi: {
1999
- operationId: string;
2000
- summary: string;
2001
- description: string;
2002
- responses: {
2003
- 200: {
2004
- description: string;
2005
- content: {
2006
- "application/json": {
2007
- schema: {
2008
- type: "object";
2009
- properties: {
2010
- user: {
2011
- $ref: string;
2012
- };
2013
- };
2014
- };
2015
- };
2016
- };
2017
- };
2018
- };
2019
- };
2020
- };
2021
- }, import("better-auth/plugins").UserWithRole>;
2022
- createUser: import("better-call").StrictEndpoint<"/admin/create-user", {
2023
- method: "POST";
2024
- body: import("zod").ZodObject<{
2025
- email: import("zod").ZodString;
2026
- password: import("zod").ZodOptional<import("zod").ZodString>;
2027
- name: import("zod").ZodString;
2028
- role: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>>;
2029
- data: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
2030
- }, import("zod/v4/core").$strip>;
2031
- metadata: {
2032
- openapi: {
2033
- operationId: string;
2034
- summary: string;
2035
- description: string;
2036
- responses: {
2037
- 200: {
2038
- description: string;
2039
- content: {
2040
- "application/json": {
2041
- schema: {
2042
- type: "object";
2043
- properties: {
2044
- user: {
2045
- $ref: string;
2046
- };
2047
- };
2048
- };
2049
- };
2050
- };
2051
- };
2052
- };
2053
- };
2054
- $Infer: {
2055
- body: {
2056
- email: string;
2057
- password?: string | undefined;
2058
- name: string;
2059
- role?: "user" | "admin" | "superAdmin" | "authAdmin" | "authUser" | ("user" | "admin" | "superAdmin" | "authAdmin" | "authUser")[] | undefined;
2060
- data?: Record<string, any> | undefined;
2061
- };
2062
- };
2063
- };
2064
- }, {
2065
- user: import("better-auth/plugins").UserWithRole;
2066
- }>;
2067
- adminUpdateUser: import("better-call").StrictEndpoint<"/admin/update-user", {
2068
- method: "POST";
2069
- body: import("zod").ZodObject<{
2070
- userId: import("zod").ZodCoercedString<unknown>;
2071
- data: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
2072
- }, import("zod/v4/core").$strip>;
2073
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2074
- session: {
2075
- user: import("better-auth/plugins").UserWithRole;
2076
- session: {
2077
- id: string;
2078
- createdAt: Date;
2079
- updatedAt: Date;
2080
- userId: string;
2081
- expiresAt: Date;
2082
- token: string;
2083
- ipAddress?: string | null | undefined;
2084
- userAgent?: string | null | undefined;
2085
- };
2086
- };
2087
- }>)[];
2088
- metadata: {
2089
- openapi: {
2090
- operationId: string;
2091
- summary: string;
2092
- description: string;
2093
- responses: {
2094
- 200: {
2095
- description: string;
2096
- content: {
2097
- "application/json": {
2098
- schema: {
2099
- type: "object";
2100
- properties: {
2101
- user: {
2102
- $ref: string;
2103
- };
2104
- };
2105
- };
2106
- };
2107
- };
2108
- };
2109
- };
2110
- };
2111
- };
2112
- }, import("better-auth/plugins").UserWithRole>;
2113
- listUsers: import("better-call").StrictEndpoint<"/admin/list-users", {
2114
- method: "GET";
2115
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2116
- session: {
2117
- user: import("better-auth/plugins").UserWithRole;
2118
- session: {
2119
- id: string;
2120
- createdAt: Date;
2121
- updatedAt: Date;
2122
- userId: string;
2123
- expiresAt: Date;
2124
- token: string;
2125
- ipAddress?: string | null | undefined;
2126
- userAgent?: string | null | undefined;
2127
- };
2128
- };
2129
- }>)[];
2130
- query: import("zod").ZodObject<{
2131
- searchValue: import("zod").ZodOptional<import("zod").ZodString>;
2132
- searchField: import("zod").ZodOptional<import("zod").ZodEnum<{
2133
- email: "email";
2134
- name: "name";
2135
- }>>;
2136
- searchOperator: import("zod").ZodOptional<import("zod").ZodEnum<{
2137
- contains: "contains";
2138
- starts_with: "starts_with";
2139
- ends_with: "ends_with";
2140
- }>>;
2141
- limit: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
2142
- offset: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>>;
2143
- sortBy: import("zod").ZodOptional<import("zod").ZodString>;
2144
- sortDirection: import("zod").ZodOptional<import("zod").ZodEnum<{
2145
- asc: "asc";
2146
- desc: "desc";
2147
- }>>;
2148
- filterField: import("zod").ZodOptional<import("zod").ZodString>;
2149
- filterValue: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBoolean]>, import("zod").ZodArray<import("zod").ZodString>]>, import("zod").ZodArray<import("zod").ZodNumber>]>>;
2150
- filterOperator: import("zod").ZodOptional<import("zod").ZodEnum<{
2151
- eq: "eq";
2152
- ne: "ne";
2153
- gt: "gt";
2154
- gte: "gte";
2155
- lt: "lt";
2156
- lte: "lte";
2157
- in: "in";
2158
- not_in: "not_in";
2159
- contains: "contains";
2160
- starts_with: "starts_with";
2161
- ends_with: "ends_with";
2162
- }>>;
2163
- }, import("zod/v4/core").$strip>;
2164
- metadata: {
2165
- openapi: {
2166
- operationId: string;
2167
- summary: string;
2168
- description: string;
2169
- responses: {
2170
- 200: {
2171
- description: string;
2172
- content: {
2173
- "application/json": {
2174
- schema: {
2175
- type: "object";
2176
- properties: {
2177
- users: {
2178
- type: string;
2179
- items: {
2180
- $ref: string;
2181
- };
2182
- };
2183
- total: {
2184
- type: string;
2185
- };
2186
- limit: {
2187
- type: string;
2188
- };
2189
- offset: {
2190
- type: string;
2191
- };
2192
- };
2193
- required: string[];
2194
- };
2195
- };
2196
- };
2197
- };
2198
- };
2199
- };
2200
- };
2201
- }, {
2202
- users: import("better-auth/plugins").UserWithRole[];
2203
- total: number;
2204
- }>;
2205
- listUserSessions: import("better-call").StrictEndpoint<"/admin/list-user-sessions", {
2206
- method: "POST";
2207
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2208
- session: {
2209
- user: import("better-auth/plugins").UserWithRole;
2210
- session: {
2211
- id: string;
2212
- createdAt: Date;
2213
- updatedAt: Date;
2214
- userId: string;
2215
- expiresAt: Date;
2216
- token: string;
2217
- ipAddress?: string | null | undefined;
2218
- userAgent?: string | null | undefined;
2219
- };
2220
- };
2221
- }>)[];
2222
- body: import("zod").ZodObject<{
2223
- userId: import("zod").ZodCoercedString<unknown>;
2224
- }, import("zod/v4/core").$strip>;
2225
- metadata: {
2226
- openapi: {
2227
- operationId: string;
2228
- summary: string;
2229
- description: string;
2230
- responses: {
2231
- 200: {
2232
- description: string;
2233
- content: {
2234
- "application/json": {
2235
- schema: {
2236
- type: "object";
2237
- properties: {
2238
- sessions: {
2239
- type: string;
2240
- items: {
2241
- $ref: string;
2242
- };
2243
- };
2244
- };
2245
- };
2246
- };
2247
- };
2248
- };
2249
- };
2250
- };
2251
- };
2252
- }, {
2253
- sessions: import("better-auth/plugins").SessionWithImpersonatedBy[];
2254
- }>;
2255
- unbanUser: import("better-call").StrictEndpoint<"/admin/unban-user", {
2256
- method: "POST";
2257
- body: import("zod").ZodObject<{
2258
- userId: import("zod").ZodCoercedString<unknown>;
2259
- }, import("zod/v4/core").$strip>;
2260
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2261
- session: {
2262
- user: import("better-auth/plugins").UserWithRole;
2263
- session: {
2264
- id: string;
2265
- createdAt: Date;
2266
- updatedAt: Date;
2267
- userId: string;
2268
- expiresAt: Date;
2269
- token: string;
2270
- ipAddress?: string | null | undefined;
2271
- userAgent?: string | null | undefined;
2272
- };
2273
- };
2274
- }>)[];
2275
- metadata: {
2276
- openapi: {
2277
- operationId: string;
2278
- summary: string;
2279
- description: string;
2280
- responses: {
2281
- 200: {
2282
- description: string;
2283
- content: {
2284
- "application/json": {
2285
- schema: {
2286
- type: "object";
2287
- properties: {
2288
- user: {
2289
- $ref: string;
2290
- };
2291
- };
2292
- };
2293
- };
2294
- };
2295
- };
2296
- };
2297
- };
2298
- };
2299
- }, {
2300
- user: import("better-auth/plugins").UserWithRole;
2301
- }>;
2302
- banUser: import("better-call").StrictEndpoint<"/admin/ban-user", {
2303
- method: "POST";
2304
- body: import("zod").ZodObject<{
2305
- userId: import("zod").ZodCoercedString<unknown>;
2306
- banReason: import("zod").ZodOptional<import("zod").ZodString>;
2307
- banExpiresIn: import("zod").ZodOptional<import("zod").ZodNumber>;
2308
- }, import("zod/v4/core").$strip>;
2309
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2310
- session: {
2311
- user: import("better-auth/plugins").UserWithRole;
2312
- session: {
2313
- id: string;
2314
- createdAt: Date;
2315
- updatedAt: Date;
2316
- userId: string;
2317
- expiresAt: Date;
2318
- token: string;
2319
- ipAddress?: string | null | undefined;
2320
- userAgent?: string | null | undefined;
2321
- };
2322
- };
2323
- }>)[];
2324
- metadata: {
2325
- openapi: {
2326
- operationId: string;
2327
- summary: string;
2328
- description: string;
2329
- responses: {
2330
- 200: {
2331
- description: string;
2332
- content: {
2333
- "application/json": {
2334
- schema: {
2335
- type: "object";
2336
- properties: {
2337
- user: {
2338
- $ref: string;
2339
- };
2340
- };
2341
- };
2342
- };
2343
- };
2344
- };
2345
- };
2346
- };
2347
- };
2348
- }, {
2349
- user: import("better-auth/plugins").UserWithRole;
2350
- }>;
2351
- impersonateUser: import("better-call").StrictEndpoint<"/admin/impersonate-user", {
2352
- method: "POST";
2353
- body: import("zod").ZodObject<{
2354
- userId: import("zod").ZodCoercedString<unknown>;
2355
- }, import("zod/v4/core").$strip>;
2356
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2357
- session: {
2358
- user: import("better-auth/plugins").UserWithRole;
2359
- session: {
2360
- id: string;
2361
- createdAt: Date;
2362
- updatedAt: Date;
2363
- userId: string;
2364
- expiresAt: Date;
2365
- token: string;
2366
- ipAddress?: string | null | undefined;
2367
- userAgent?: string | null | undefined;
2368
- };
2369
- };
2370
- }>)[];
2371
- metadata: {
2372
- openapi: {
2373
- operationId: string;
2374
- summary: string;
2375
- description: string;
2376
- responses: {
2377
- 200: {
2378
- description: string;
2379
- content: {
2380
- "application/json": {
2381
- schema: {
2382
- type: "object";
2383
- properties: {
2384
- session: {
2385
- $ref: string;
2386
- };
2387
- user: {
2388
- $ref: string;
2389
- };
2390
- };
2391
- };
2392
- };
2393
- };
2394
- };
2395
- };
2396
- };
2397
- };
2398
- }, {
2399
- session: {
2400
- id: string;
2401
- createdAt: Date;
2402
- updatedAt: Date;
2403
- userId: string;
2404
- expiresAt: Date;
2405
- token: string;
2406
- ipAddress?: string | null | undefined;
2407
- userAgent?: string | null | undefined;
2408
- };
2409
- user: import("better-auth/plugins").UserWithRole;
2410
- }>;
2411
- stopImpersonating: import("better-call").StrictEndpoint<"/admin/stop-impersonating", {
2412
- method: "POST";
2413
- requireHeaders: true;
2414
- }, {
2415
- session: {
2416
- id: string;
2417
- createdAt: Date;
2418
- updatedAt: Date;
2419
- userId: string;
2420
- expiresAt: Date;
2421
- token: string;
2422
- ipAddress?: string | null | undefined;
2423
- userAgent?: string | null | undefined;
2424
- } & Record<string, any>;
2425
- user: {
2426
- id: string;
2427
- createdAt: Date;
2428
- updatedAt: Date;
2429
- email: string;
2430
- emailVerified: boolean;
2431
- name: string;
2432
- image?: string | null | undefined;
2433
- } & Record<string, any>;
2434
- }>;
2435
- revokeUserSession: import("better-call").StrictEndpoint<"/admin/revoke-user-session", {
2436
- method: "POST";
2437
- body: import("zod").ZodObject<{
2438
- sessionToken: import("zod").ZodString;
2439
- }, import("zod/v4/core").$strip>;
2440
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2441
- session: {
2442
- user: import("better-auth/plugins").UserWithRole;
2443
- session: {
2444
- id: string;
2445
- createdAt: Date;
2446
- updatedAt: Date;
2447
- userId: string;
2448
- expiresAt: Date;
2449
- token: string;
2450
- ipAddress?: string | null | undefined;
2451
- userAgent?: string | null | undefined;
2452
- };
2453
- };
2454
- }>)[];
2455
- metadata: {
2456
- openapi: {
2457
- operationId: string;
2458
- summary: string;
2459
- description: string;
2460
- responses: {
2461
- 200: {
2462
- description: string;
2463
- content: {
2464
- "application/json": {
2465
- schema: {
2466
- type: "object";
2467
- properties: {
2468
- success: {
2469
- type: string;
2470
- };
2471
- };
2472
- };
2473
- };
2474
- };
2475
- };
2476
- };
2477
- };
2478
- };
2479
- }, {
2480
- success: boolean;
2481
- }>;
2482
- revokeUserSessions: import("better-call").StrictEndpoint<"/admin/revoke-user-sessions", {
2483
- method: "POST";
2484
- body: import("zod").ZodObject<{
2485
- userId: import("zod").ZodCoercedString<unknown>;
2486
- }, import("zod/v4/core").$strip>;
2487
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2488
- session: {
2489
- user: import("better-auth/plugins").UserWithRole;
2490
- session: {
2491
- id: string;
2492
- createdAt: Date;
2493
- updatedAt: Date;
2494
- userId: string;
2495
- expiresAt: Date;
2496
- token: string;
2497
- ipAddress?: string | null | undefined;
2498
- userAgent?: string | null | undefined;
2499
- };
2500
- };
2501
- }>)[];
2502
- metadata: {
2503
- openapi: {
2504
- operationId: string;
2505
- summary: string;
2506
- description: string;
2507
- responses: {
2508
- 200: {
2509
- description: string;
2510
- content: {
2511
- "application/json": {
2512
- schema: {
2513
- type: "object";
2514
- properties: {
2515
- success: {
2516
- type: string;
2517
- };
2518
- };
2519
- };
2520
- };
2521
- };
2522
- };
2523
- };
2524
- };
2525
- };
2526
- }, {
2527
- success: boolean;
2528
- }>;
2529
- removeUser: import("better-call").StrictEndpoint<"/admin/remove-user", {
2530
- method: "POST";
2531
- body: import("zod").ZodObject<{
2532
- userId: import("zod").ZodCoercedString<unknown>;
2533
- }, import("zod/v4/core").$strip>;
2534
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2535
- session: {
2536
- user: import("better-auth/plugins").UserWithRole;
2537
- session: {
2538
- id: string;
2539
- createdAt: Date;
2540
- updatedAt: Date;
2541
- userId: string;
2542
- expiresAt: Date;
2543
- token: string;
2544
- ipAddress?: string | null | undefined;
2545
- userAgent?: string | null | undefined;
2546
- };
2547
- };
2548
- }>)[];
2549
- metadata: {
2550
- openapi: {
2551
- operationId: string;
2552
- summary: string;
2553
- description: string;
2554
- responses: {
2555
- 200: {
2556
- description: string;
2557
- content: {
2558
- "application/json": {
2559
- schema: {
2560
- type: "object";
2561
- properties: {
2562
- success: {
2563
- type: string;
2564
- };
2565
- };
2566
- };
2567
- };
2568
- };
2569
- };
2570
- };
2571
- };
2572
- };
2573
- }, {
2574
- success: boolean;
2575
- }>;
2576
- setUserPassword: import("better-call").StrictEndpoint<"/admin/set-user-password", {
2577
- method: "POST";
2578
- body: import("zod").ZodObject<{
2579
- newPassword: import("zod").ZodString;
2580
- userId: import("zod").ZodCoercedString<unknown>;
2581
- }, import("zod/v4/core").$strip>;
2582
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
2583
- session: {
2584
- user: import("better-auth/plugins").UserWithRole;
2585
- session: {
2586
- id: string;
2587
- createdAt: Date;
2588
- updatedAt: Date;
2589
- userId: string;
2590
- expiresAt: Date;
2591
- token: string;
2592
- ipAddress?: string | null | undefined;
2593
- userAgent?: string | null | undefined;
2594
- };
2595
- };
2596
- }>)[];
2597
- metadata: {
2598
- openapi: {
2599
- operationId: string;
2600
- summary: string;
2601
- description: string;
2602
- responses: {
2603
- 200: {
2604
- description: string;
2605
- content: {
2606
- "application/json": {
2607
- schema: {
2608
- type: "object";
2609
- properties: {
2610
- status: {
2611
- type: string;
2612
- };
2613
- };
2614
- };
2615
- };
2616
- };
2617
- };
2618
- };
2619
- };
2620
- };
2621
- }, {
2622
- status: boolean;
2623
- }>;
2624
- userHasPermission: import("better-call").StrictEndpoint<"/admin/has-permission", {
2625
- method: "POST";
2626
- body: import("zod").ZodIntersection<import("zod").ZodObject<{
2627
- userId: import("zod").ZodOptional<import("zod").ZodCoercedString<unknown>>;
2628
- role: import("zod").ZodOptional<import("zod").ZodString>;
2629
- }, import("zod/v4/core").$strip>, import("zod").ZodXor<readonly [import("zod").ZodObject<{
2630
- permission: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
2631
- }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
2632
- permissions: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>>;
2633
- }, import("zod/v4/core").$strip>]>>;
2634
- metadata: {
2635
- openapi: {
2636
- description: string;
2637
- requestBody: {
2638
- content: {
2639
- "application/json": {
2640
- schema: {
2641
- type: "object";
2642
- properties: {
2643
- permissions: {
2644
- type: string;
2645
- description: string;
2646
- };
2647
- };
2648
- required: string[];
2649
- };
2650
- };
2651
- };
2652
- };
2653
- responses: {
2654
- "200": {
2655
- description: string;
2656
- content: {
2657
- "application/json": {
2658
- schema: {
2659
- type: "object";
2660
- properties: {
2661
- error: {
2662
- type: string;
2663
- };
2664
- success: {
2665
- type: string;
2666
- };
2667
- };
2668
- required: string[];
2669
- };
2670
- };
2671
- };
2672
- };
2673
- };
2674
- };
2675
- $Infer: {
2676
- body: {
2677
- permissions: {
2678
- readonly "welfare_cycle:plan"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2679
- readonly "welfare_cycle:subscription"?: ("read" | "list" | "create")[] | undefined;
2680
- readonly "welfare_cycle:payout"?: ("read" | "list" | "create")[] | undefined;
2681
- readonly "ledger_account:import"?: ("read" | "list" | "create")[] | undefined;
2682
- readonly "wallet:container"?: ("read" | "list")[] | undefined;
2683
- readonly "wallet:type"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2684
- readonly "news:news"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2685
- readonly "news:category"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2686
- readonly "trade_market:market"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2687
- readonly "trade_market:order"?: ("read" | "list" | "create")[] | undefined;
2688
- readonly "transfer:order"?: ("read" | "list" | "create")[] | undefined;
2689
- readonly "team:member"?: ("read" | "list" | "stats")[] | undefined;
2690
- readonly "referral:depth-config"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2691
- readonly "referral:relation"?: ("read" | "list" | "bind")[] | undefined;
2692
- readonly "shipping_address:item"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2693
- readonly "receipt_method:item"?: ("read" | "list" | "create" | "update" | "delete")[] | undefined;
2694
- readonly "notification:notification"?: ("read" | "list" | "update")[] | undefined;
2695
- readonly "notification:admin"?: ("read" | "list" | "create" | "stats")[] | undefined;
2696
- readonly "withdraw:manage"?: ("read" | "create")[] | undefined;
2697
- readonly "withdraw:review"?: ("read" | "approve" | "reject" | "paid")[] | undefined;
2698
- readonly "market_data:ticker"?: ("read" | "latest")[] | undefined;
2699
- readonly "market_data:kline"?: ("read" | "list")[] | undefined;
2700
- readonly "market_data:admin"?: ("read" | "list" | "run")[] | undefined;
2701
- readonly "market_pricing:strategy"?: ("read" | "list" | "create" | "update" | "run" | "delete")[] | undefined;
2702
- readonly "ledger:entry"?: ("read" | "list" | "view_all" | "adjust")[] | undefined;
2703
- readonly "ledger-account:type"?: ("read" | "list" | "create" | "update")[] | undefined;
2704
- readonly "ledger-account:account"?: ("read" | "list" | "update")[] | undefined;
2705
- readonly "deposit:order"?: ("read" | "list" | "create" | "update")[] | undefined;
2706
- readonly "deposit:review"?: ("read" | "list" | "update")[] | undefined;
2707
- readonly "checkIn:checkIn"?: ("read" | "list" | "create")[] | undefined;
2708
- readonly "checkIn:admin"?: ("read" | "list")[] | undefined;
2709
- readonly "kyc:method"?: ("read" | "create" | "update")[] | undefined;
2710
- readonly "kyc:admin"?: ("read" | "list" | "approve" | "reject")[] | undefined;
2711
- readonly "user:profile"?: ("read" | "update")[] | undefined;
2712
- readonly "user:referral"?: "bind"[] | undefined;
2713
- readonly "admin:user-profile"?: ("read" | "list" | "update")[] | undefined;
2714
- readonly "asset_price:price"?: ("read" | "list" | "latest")[] | undefined;
2715
- readonly "asset_price:admin"?: ("read" | "list" | "create" | "latest")[] | undefined;
2716
- readonly "asset-type:type"?: ("read" | "list" | "create" | "update")[] | undefined;
2717
- readonly "asset_convert_product:product"?: ("read" | "list" | "create" | "update")[] | undefined;
2718
- readonly "asset_convert_product:order"?: ("read" | "list")[] | undefined;
2719
- readonly "asset:item"?: ("read" | "list" | "create" | "update")[] | undefined;
2720
- readonly user?: ("list" | "create" | "update" | "delete" | "set-role" | "ban" | "impersonate" | "impersonate-admins" | "set-password" | "get")[] | undefined;
2721
- readonly session?: ("list" | "delete" | "revoke")[] | undefined;
2722
- };
2723
- } & {
2724
- userId?: string | undefined;
2725
- role?: "user" | "admin" | "superAdmin" | "authAdmin" | "authUser" | undefined;
2726
- };
2727
- };
2728
- };
2729
- }, {
2730
- error: null;
2731
- success: boolean;
2732
- }>;
2733
- };
2734
- $ERROR_CODES: {
2735
- USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL: import("better-auth").RawError<"USER_ALREADY_EXISTS_USE_ANOTHER_EMAIL">;
2736
- FAILED_TO_CREATE_USER: import("better-auth").RawError<"FAILED_TO_CREATE_USER">;
2737
- USER_ALREADY_EXISTS: import("better-auth").RawError<"USER_ALREADY_EXISTS">;
2738
- YOU_CANNOT_BAN_YOURSELF: import("better-auth").RawError<"YOU_CANNOT_BAN_YOURSELF">;
2739
- YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE">;
2740
- YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS">;
2741
- YOU_ARE_NOT_ALLOWED_TO_LIST_USERS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_LIST_USERS">;
2742
- YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS">;
2743
- YOU_ARE_NOT_ALLOWED_TO_BAN_USERS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_BAN_USERS">;
2744
- YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS">;
2745
- YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS">;
2746
- YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS">;
2747
- YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD">;
2748
- BANNED_USER: import("better-auth").RawError<"BANNED_USER">;
2749
- YOU_ARE_NOT_ALLOWED_TO_GET_USER: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_GET_USER">;
2750
- NO_DATA_TO_UPDATE: import("better-auth").RawError<"NO_DATA_TO_UPDATE">;
2751
- YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_UPDATE_USERS">;
2752
- YOU_CANNOT_REMOVE_YOURSELF: import("better-auth").RawError<"YOU_CANNOT_REMOVE_YOURSELF">;
2753
- YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE: import("better-auth").RawError<"YOU_ARE_NOT_ALLOWED_TO_SET_NON_EXISTENT_VALUE">;
2754
- YOU_CANNOT_IMPERSONATE_ADMINS: import("better-auth").RawError<"YOU_CANNOT_IMPERSONATE_ADMINS">;
2755
- INVALID_ROLE_TYPE: import("better-auth").RawError<"INVALID_ROLE_TYPE">;
2756
- };
2757
- schema: {
2758
- user: {
2759
- fields: {
2760
- role: {
2761
- type: "string";
2762
- required: false;
2763
- input: false;
2764
- };
2765
- banned: {
2766
- type: "boolean";
2767
- defaultValue: false;
2768
- required: false;
2769
- input: false;
2770
- };
2771
- banReason: {
2772
- type: "string";
2773
- required: false;
2774
- input: false;
2775
- };
2776
- banExpires: {
2777
- type: "date";
2778
- required: false;
2779
- input: false;
2780
- };
2781
- };
2782
- };
2783
- session: {
2784
- fields: {
2785
- impersonatedBy: {
2786
- type: "string";
2787
- required: false;
2788
- };
2789
- };
2790
- };
2791
- };
2792
- options: NoInfer<{
2793
- ac: {
2794
- newRole<K extends "user" | "session" | "welfare_cycle:plan" | "welfare_cycle:subscription" | "welfare_cycle:payout" | "ledger_account:import" | "wallet:container" | "wallet:type" | "news:news" | "news:category" | "trade_market:market" | "trade_market:order" | "transfer:order" | "team:member" | "referral:depth-config" | "referral:relation" | "shipping_address:item" | "receipt_method:item" | "notification:notification" | "notification:admin" | "withdraw:manage" | "withdraw:review" | "market_data:ticker" | "market_data:kline" | "market_data:admin" | "market_pricing:strategy" | "ledger:entry" | "ledger-account:type" | "ledger-account:account" | "deposit:order" | "deposit:review" | "checkIn:checkIn" | "checkIn:admin" | "kyc:method" | "kyc:admin" | "user:profile" | "user:referral" | "admin:user-profile" | "asset_price:price" | "asset_price:admin" | "asset-type:type" | "asset_convert_product:product" | "asset_convert_product:order" | "asset:item">(statements: import("better-auth/plugins").Subset<K, {
2795
- readonly "welfare_cycle:plan": readonly ["create", "read", "update", "delete", "list"];
2796
- readonly "welfare_cycle:subscription": readonly ["create", "read", "list"];
2797
- readonly "welfare_cycle:payout": readonly ["create", "read", "list"];
2798
- readonly "ledger_account:import": readonly ["create", "read", "list"];
2799
- readonly "wallet:container": readonly ["read", "list"];
2800
- readonly "wallet:type": readonly ["create", "read", "update", "delete", "list"];
2801
- readonly "news:news": readonly ["create", "read", "update", "delete", "list"];
2802
- readonly "news:category": readonly ["create", "read", "update", "delete", "list"];
2803
- readonly "trade_market:market": readonly ["create", "read", "update", "delete", "list"];
2804
- readonly "trade_market:order": readonly ["create", "read", "list"];
2805
- readonly "transfer:order": readonly ["create", "read", "list"];
2806
- readonly "team:member": readonly ["read", "list", "stats"];
2807
- readonly "referral:depth-config": readonly ["create", "read", "update", "delete", "list"];
2808
- readonly "referral:relation": readonly ["bind", "read", "list"];
2809
- readonly "shipping_address:item": readonly ["create", "read", "update", "delete", "list"];
2810
- readonly "receipt_method:item": readonly ["create", "read", "update", "delete", "list"];
2811
- readonly "notification:notification": readonly ["read", "update", "list"];
2812
- readonly "notification:admin": readonly ["create", "read", "list", "stats"];
2813
- readonly "withdraw:manage": readonly ["create", "read"];
2814
- readonly "withdraw:review": readonly ["read", "approve", "reject", "paid"];
2815
- readonly "market_data:ticker": readonly ["read", "latest"];
2816
- readonly "market_data:kline": readonly ["read", "list"];
2817
- readonly "market_data:admin": readonly ["read", "list", "run"];
2818
- readonly "market_pricing:strategy": readonly ["create", "read", "update", "delete", "list", "run"];
2819
- readonly "ledger:entry": readonly ["read", "list", "view_all", "adjust"];
2820
- readonly "ledger-account:type": readonly ["create", "read", "update", "list"];
2821
- readonly "ledger-account:account": readonly ["read", "update", "list"];
2822
- readonly "deposit:order": readonly ["create", "read", "update", "list"];
2823
- readonly "deposit:review": readonly ["read", "update", "list"];
2824
- readonly "checkIn:checkIn": readonly ["create", "read", "list"];
2825
- readonly "checkIn:admin": readonly ["read", "list"];
2826
- readonly "kyc:method": readonly ["create", "read", "update"];
2827
- readonly "kyc:admin": readonly ["read", "list", "approve", "reject"];
2828
- readonly "user:profile": readonly ["read", "update"];
2829
- readonly "user:referral": readonly ["bind"];
2830
- readonly "admin:user-profile": readonly ["read", "update", "list"];
2831
- readonly "asset_price:price": readonly ["read", "list", "latest"];
2832
- readonly "asset_price:admin": readonly ["create", "read", "list", "latest"];
2833
- readonly "asset-type:type": readonly ["create", "read", "update", "list"];
2834
- readonly "asset_convert_product:product": readonly ["create", "read", "update", "list"];
2835
- readonly "asset_convert_product:order": readonly ["read", "list"];
2836
- readonly "asset:item": readonly ["create", "read", "update", "list"];
2837
- readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
2838
- readonly session: readonly ["list", "revoke", "delete"];
2839
- }>): {
2840
- authorize<K_1 extends K>(request: K_1 extends infer T extends K_2 ? { [key in T]?: import("better-auth/plugins").Subset<K, {
2841
- readonly "welfare_cycle:plan": readonly ["create", "read", "update", "delete", "list"];
2842
- readonly "welfare_cycle:subscription": readonly ["create", "read", "list"];
2843
- readonly "welfare_cycle:payout": readonly ["create", "read", "list"];
2844
- readonly "ledger_account:import": readonly ["create", "read", "list"];
2845
- readonly "wallet:container": readonly ["read", "list"];
2846
- readonly "wallet:type": readonly ["create", "read", "update", "delete", "list"];
2847
- readonly "news:news": readonly ["create", "read", "update", "delete", "list"];
2848
- readonly "news:category": readonly ["create", "read", "update", "delete", "list"];
2849
- readonly "trade_market:market": readonly ["create", "read", "update", "delete", "list"];
2850
- readonly "trade_market:order": readonly ["create", "read", "list"];
2851
- readonly "transfer:order": readonly ["create", "read", "list"];
2852
- readonly "team:member": readonly ["read", "list", "stats"];
2853
- readonly "referral:depth-config": readonly ["create", "read", "update", "delete", "list"];
2854
- readonly "referral:relation": readonly ["bind", "read", "list"];
2855
- readonly "shipping_address:item": readonly ["create", "read", "update", "delete", "list"];
2856
- readonly "receipt_method:item": readonly ["create", "read", "update", "delete", "list"];
2857
- readonly "notification:notification": readonly ["read", "update", "list"];
2858
- readonly "notification:admin": readonly ["create", "read", "list", "stats"];
2859
- readonly "withdraw:manage": readonly ["create", "read"];
2860
- readonly "withdraw:review": readonly ["read", "approve", "reject", "paid"];
2861
- readonly "market_data:ticker": readonly ["read", "latest"];
2862
- readonly "market_data:kline": readonly ["read", "list"];
2863
- readonly "market_data:admin": readonly ["read", "list", "run"];
2864
- readonly "market_pricing:strategy": readonly ["create", "read", "update", "delete", "list", "run"];
2865
- readonly "ledger:entry": readonly ["read", "list", "view_all", "adjust"];
2866
- readonly "ledger-account:type": readonly ["create", "read", "update", "list"];
2867
- readonly "ledger-account:account": readonly ["read", "update", "list"];
2868
- readonly "deposit:order": readonly ["create", "read", "update", "list"];
2869
- readonly "deposit:review": readonly ["read", "update", "list"];
2870
- readonly "checkIn:checkIn": readonly ["create", "read", "list"];
2871
- readonly "checkIn:admin": readonly ["read", "list"];
2872
- readonly "kyc:method": readonly ["create", "read", "update"];
2873
- readonly "kyc:admin": readonly ["read", "list", "approve", "reject"];
2874
- readonly "user:profile": readonly ["read", "update"];
2875
- readonly "user:referral": readonly ["bind"];
2876
- readonly "admin:user-profile": readonly ["read", "update", "list"];
2877
- readonly "asset_price:price": readonly ["read", "list", "latest"];
2878
- readonly "asset_price:admin": readonly ["create", "read", "list", "latest"];
2879
- readonly "asset-type:type": readonly ["create", "read", "update", "list"];
2880
- readonly "asset_convert_product:product": readonly ["create", "read", "update", "list"];
2881
- readonly "asset_convert_product:order": readonly ["read", "list"];
2882
- readonly "asset:item": readonly ["create", "read", "update", "list"];
2883
- readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
2884
- readonly session: readonly ["list", "revoke", "delete"];
2885
- }>[key] | {
2886
- actions: import("better-auth/plugins").Subset<K, {
2887
- readonly "welfare_cycle:plan": readonly ["create", "read", "update", "delete", "list"];
2888
- readonly "welfare_cycle:subscription": readonly ["create", "read", "list"];
2889
- readonly "welfare_cycle:payout": readonly ["create", "read", "list"];
2890
- readonly "ledger_account:import": readonly ["create", "read", "list"];
2891
- readonly "wallet:container": readonly ["read", "list"];
2892
- readonly "wallet:type": readonly ["create", "read", "update", "delete", "list"];
2893
- readonly "news:news": readonly ["create", "read", "update", "delete", "list"];
2894
- readonly "news:category": readonly ["create", "read", "update", "delete", "list"];
2895
- readonly "trade_market:market": readonly ["create", "read", "update", "delete", "list"];
2896
- readonly "trade_market:order": readonly ["create", "read", "list"];
2897
- readonly "transfer:order": readonly ["create", "read", "list"];
2898
- readonly "team:member": readonly ["read", "list", "stats"];
2899
- readonly "referral:depth-config": readonly ["create", "read", "update", "delete", "list"];
2900
- readonly "referral:relation": readonly ["bind", "read", "list"];
2901
- readonly "shipping_address:item": readonly ["create", "read", "update", "delete", "list"];
2902
- readonly "receipt_method:item": readonly ["create", "read", "update", "delete", "list"];
2903
- readonly "notification:notification": readonly ["read", "update", "list"];
2904
- readonly "notification:admin": readonly ["create", "read", "list", "stats"];
2905
- readonly "withdraw:manage": readonly ["create", "read"];
2906
- readonly "withdraw:review": readonly ["read", "approve", "reject", "paid"];
2907
- readonly "market_data:ticker": readonly ["read", "latest"];
2908
- readonly "market_data:kline": readonly ["read", "list"];
2909
- readonly "market_data:admin": readonly ["read", "list", "run"];
2910
- readonly "market_pricing:strategy": readonly ["create", "read", "update", "delete", "list", "run"];
2911
- readonly "ledger:entry": readonly ["read", "list", "view_all", "adjust"];
2912
- readonly "ledger-account:type": readonly ["create", "read", "update", "list"];
2913
- readonly "ledger-account:account": readonly ["read", "update", "list"];
2914
- readonly "deposit:order": readonly ["create", "read", "update", "list"];
2915
- readonly "deposit:review": readonly ["read", "update", "list"];
2916
- readonly "checkIn:checkIn": readonly ["create", "read", "list"];
2917
- readonly "checkIn:admin": readonly ["read", "list"];
2918
- readonly "kyc:method": readonly ["create", "read", "update"];
2919
- readonly "kyc:admin": readonly ["read", "list", "approve", "reject"];
2920
- readonly "user:profile": readonly ["read", "update"];
2921
- readonly "user:referral": readonly ["bind"];
2922
- readonly "admin:user-profile": readonly ["read", "update", "list"];
2923
- readonly "asset_price:price": readonly ["read", "list", "latest"];
2924
- readonly "asset_price:admin": readonly ["create", "read", "list", "latest"];
2925
- readonly "asset-type:type": readonly ["create", "read", "update", "list"];
2926
- readonly "asset_convert_product:product": readonly ["create", "read", "update", "list"];
2927
- readonly "asset_convert_product:order": readonly ["read", "list"];
2928
- readonly "asset:item": readonly ["create", "read", "update", "list"];
2929
- readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
2930
- readonly session: readonly ["list", "revoke", "delete"];
2931
- }>[key];
2932
- connector: "OR" | "AND";
2933
- } | undefined; } : never, connector?: "OR" | "AND"): import("better-auth/plugins").AuthorizeResponse;
2934
- statements: import("better-auth/plugins").Subset<K, {
2935
- readonly "welfare_cycle:plan": readonly ["create", "read", "update", "delete", "list"];
2936
- readonly "welfare_cycle:subscription": readonly ["create", "read", "list"];
2937
- readonly "welfare_cycle:payout": readonly ["create", "read", "list"];
2938
- readonly "ledger_account:import": readonly ["create", "read", "list"];
2939
- readonly "wallet:container": readonly ["read", "list"];
2940
- readonly "wallet:type": readonly ["create", "read", "update", "delete", "list"];
2941
- readonly "news:news": readonly ["create", "read", "update", "delete", "list"];
2942
- readonly "news:category": readonly ["create", "read", "update", "delete", "list"];
2943
- readonly "trade_market:market": readonly ["create", "read", "update", "delete", "list"];
2944
- readonly "trade_market:order": readonly ["create", "read", "list"];
2945
- readonly "transfer:order": readonly ["create", "read", "list"];
2946
- readonly "team:member": readonly ["read", "list", "stats"];
2947
- readonly "referral:depth-config": readonly ["create", "read", "update", "delete", "list"];
2948
- readonly "referral:relation": readonly ["bind", "read", "list"];
2949
- readonly "shipping_address:item": readonly ["create", "read", "update", "delete", "list"];
2950
- readonly "receipt_method:item": readonly ["create", "read", "update", "delete", "list"];
2951
- readonly "notification:notification": readonly ["read", "update", "list"];
2952
- readonly "notification:admin": readonly ["create", "read", "list", "stats"];
2953
- readonly "withdraw:manage": readonly ["create", "read"];
2954
- readonly "withdraw:review": readonly ["read", "approve", "reject", "paid"];
2955
- readonly "market_data:ticker": readonly ["read", "latest"];
2956
- readonly "market_data:kline": readonly ["read", "list"];
2957
- readonly "market_data:admin": readonly ["read", "list", "run"];
2958
- readonly "market_pricing:strategy": readonly ["create", "read", "update", "delete", "list", "run"];
2959
- readonly "ledger:entry": readonly ["read", "list", "view_all", "adjust"];
2960
- readonly "ledger-account:type": readonly ["create", "read", "update", "list"];
2961
- readonly "ledger-account:account": readonly ["read", "update", "list"];
2962
- readonly "deposit:order": readonly ["create", "read", "update", "list"];
2963
- readonly "deposit:review": readonly ["read", "update", "list"];
2964
- readonly "checkIn:checkIn": readonly ["create", "read", "list"];
2965
- readonly "checkIn:admin": readonly ["read", "list"];
2966
- readonly "kyc:method": readonly ["create", "read", "update"];
2967
- readonly "kyc:admin": readonly ["read", "list", "approve", "reject"];
2968
- readonly "user:profile": readonly ["read", "update"];
2969
- readonly "user:referral": readonly ["bind"];
2970
- readonly "admin:user-profile": readonly ["read", "update", "list"];
2971
- readonly "asset_price:price": readonly ["read", "list", "latest"];
2972
- readonly "asset_price:admin": readonly ["create", "read", "list", "latest"];
2973
- readonly "asset-type:type": readonly ["create", "read", "update", "list"];
2974
- readonly "asset_convert_product:product": readonly ["create", "read", "update", "list"];
2975
- readonly "asset_convert_product:order": readonly ["read", "list"];
2976
- readonly "asset:item": readonly ["create", "read", "update", "list"];
2977
- readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
2978
- readonly session: readonly ["list", "revoke", "delete"];
2979
- }>;
2980
- };
2981
- statements: {
2982
- readonly "welfare_cycle:plan": readonly ["create", "read", "update", "delete", "list"];
2983
- readonly "welfare_cycle:subscription": readonly ["create", "read", "list"];
2984
- readonly "welfare_cycle:payout": readonly ["create", "read", "list"];
2985
- readonly "ledger_account:import": readonly ["create", "read", "list"];
2986
- readonly "wallet:container": readonly ["read", "list"];
2987
- readonly "wallet:type": readonly ["create", "read", "update", "delete", "list"];
2988
- readonly "news:news": readonly ["create", "read", "update", "delete", "list"];
2989
- readonly "news:category": readonly ["create", "read", "update", "delete", "list"];
2990
- readonly "trade_market:market": readonly ["create", "read", "update", "delete", "list"];
2991
- readonly "trade_market:order": readonly ["create", "read", "list"];
2992
- readonly "transfer:order": readonly ["create", "read", "list"];
2993
- readonly "team:member": readonly ["read", "list", "stats"];
2994
- readonly "referral:depth-config": readonly ["create", "read", "update", "delete", "list"];
2995
- readonly "referral:relation": readonly ["bind", "read", "list"];
2996
- readonly "shipping_address:item": readonly ["create", "read", "update", "delete", "list"];
2997
- readonly "receipt_method:item": readonly ["create", "read", "update", "delete", "list"];
2998
- readonly "notification:notification": readonly ["read", "update", "list"];
2999
- readonly "notification:admin": readonly ["create", "read", "list", "stats"];
3000
- readonly "withdraw:manage": readonly ["create", "read"];
3001
- readonly "withdraw:review": readonly ["read", "approve", "reject", "paid"];
3002
- readonly "market_data:ticker": readonly ["read", "latest"];
3003
- readonly "market_data:kline": readonly ["read", "list"];
3004
- readonly "market_data:admin": readonly ["read", "list", "run"];
3005
- readonly "market_pricing:strategy": readonly ["create", "read", "update", "delete", "list", "run"];
3006
- readonly "ledger:entry": readonly ["read", "list", "view_all", "adjust"];
3007
- readonly "ledger-account:type": readonly ["create", "read", "update", "list"];
3008
- readonly "ledger-account:account": readonly ["read", "update", "list"];
3009
- readonly "deposit:order": readonly ["create", "read", "update", "list"];
3010
- readonly "deposit:review": readonly ["read", "update", "list"];
3011
- readonly "checkIn:checkIn": readonly ["create", "read", "list"];
3012
- readonly "checkIn:admin": readonly ["read", "list"];
3013
- readonly "kyc:method": readonly ["create", "read", "update"];
3014
- readonly "kyc:admin": readonly ["read", "list", "approve", "reject"];
3015
- readonly "user:profile": readonly ["read", "update"];
3016
- readonly "user:referral": readonly ["bind"];
3017
- readonly "admin:user-profile": readonly ["read", "update", "list"];
3018
- readonly "asset_price:price": readonly ["read", "list", "latest"];
3019
- readonly "asset_price:admin": readonly ["create", "read", "list", "latest"];
3020
- readonly "asset-type:type": readonly ["create", "read", "update", "list"];
3021
- readonly "asset_convert_product:product": readonly ["create", "read", "update", "list"];
3022
- readonly "asset_convert_product:order": readonly ["read", "list"];
3023
- readonly "asset:item": readonly ["create", "read", "update", "list"];
3024
- readonly user: readonly ["create", "list", "set-role", "ban", "impersonate", "impersonate-admins", "delete", "set-password", "get", "update"];
3025
- readonly session: readonly ["list", "revoke", "delete"];
3026
- };
3027
- };
3028
- roles: typeof roles;
3029
- defaultRole: string;
3030
- adminRoles: string[];
3031
- }>;
3032
- }, {
3033
- id: "last-login-method";
3034
- version: string;
3035
- init(ctx: import("better-auth").AuthContext): {
3036
- options: {
3037
- databaseHooks: {
3038
- user: {
3039
- create: {
3040
- before(user: {
3041
- id: string;
3042
- createdAt: Date;
3043
- updatedAt: Date;
3044
- email: string;
3045
- emailVerified: boolean;
3046
- name: string;
3047
- image?: string | null | undefined;
3048
- } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<{
3049
- data: {
3050
- lastLoginMethod: any;
3051
- id: string;
3052
- createdAt: Date;
3053
- updatedAt: Date;
3054
- email: string;
3055
- emailVerified: boolean;
3056
- name: string;
3057
- image?: string | null | undefined;
3058
- };
3059
- } | undefined>;
3060
- };
3061
- };
3062
- session: {
3063
- create: {
3064
- after(session: {
3065
- id: string;
3066
- createdAt: Date;
3067
- updatedAt: Date;
3068
- userId: string;
3069
- expiresAt: Date;
3070
- token: string;
3071
- ipAddress?: string | null | undefined;
3072
- userAgent?: string | null | undefined;
3073
- } & Record<string, unknown>, context: import("better-auth").GenericEndpointContext | null): Promise<void>;
3074
- };
3075
- };
3076
- };
3077
- };
3078
- };
3079
- hooks: {
3080
- after: {
3081
- matcher(): true;
3082
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
3083
- }[];
3084
- };
3085
- schema: undefined;
3086
- options: NoInfer<import("better-auth/plugins").LastLoginMethodOptions>;
3087
- }, {
3088
- id: "multi-session";
3089
- version: string;
3090
- endpoints: {
3091
- listDeviceSessions: import("better-call").StrictEndpoint<"/multi-session/list-device-sessions", {
3092
- method: "GET";
3093
- requireHeaders: true;
3094
- }, {
3095
- session: {
3096
- id: string;
3097
- createdAt: Date;
3098
- updatedAt: Date;
3099
- userId: string;
3100
- expiresAt: Date;
3101
- token: string;
3102
- ipAddress?: string | null | undefined;
3103
- userAgent?: string | null | undefined;
3104
- };
3105
- user: {
3106
- id: string;
3107
- createdAt: Date;
3108
- updatedAt: Date;
3109
- email: string;
3110
- emailVerified: boolean;
3111
- name: string;
3112
- image?: string | null | undefined;
3113
- };
3114
- }[]>;
3115
- setActiveSession: import("better-call").StrictEndpoint<"/multi-session/set-active", {
3116
- method: "POST";
3117
- body: import("zod").ZodObject<{
3118
- sessionToken: import("zod").ZodString;
3119
- }, import("zod/v4/core").$strip>;
3120
- requireHeaders: true;
3121
- metadata: {
3122
- openapi: {
3123
- description: string;
3124
- responses: {
3125
- 200: {
3126
- description: string;
3127
- content: {
3128
- "application/json": {
3129
- schema: {
3130
- type: "object";
3131
- properties: {
3132
- session: {
3133
- $ref: string;
3134
- };
3135
- };
3136
- };
3137
- };
3138
- };
3139
- };
3140
- };
3141
- };
3142
- };
3143
- }, {
3144
- session: {
3145
- id: string;
3146
- createdAt: Date;
3147
- updatedAt: Date;
3148
- userId: string;
3149
- expiresAt: Date;
3150
- token: string;
3151
- ipAddress?: string | null | undefined;
3152
- userAgent?: string | null | undefined;
3153
- } & Record<string, any>;
3154
- user: {
3155
- id: string;
3156
- createdAt: Date;
3157
- updatedAt: Date;
3158
- email: string;
3159
- emailVerified: boolean;
3160
- name: string;
3161
- image?: string | null | undefined;
3162
- } & Record<string, any>;
3163
- }>;
3164
- revokeDeviceSession: import("better-call").StrictEndpoint<"/multi-session/revoke", {
3165
- method: "POST";
3166
- body: import("zod").ZodObject<{
3167
- sessionToken: import("zod").ZodString;
3168
- }, import("zod/v4/core").$strip>;
3169
- requireHeaders: true;
3170
- use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
3171
- session: {
3172
- session: Record<string, any> & {
3173
- id: string;
3174
- createdAt: Date;
3175
- updatedAt: Date;
3176
- userId: string;
3177
- expiresAt: Date;
3178
- token: string;
3179
- ipAddress?: string | null | undefined;
3180
- userAgent?: string | null | undefined;
3181
- };
3182
- user: Record<string, any> & {
3183
- id: string;
3184
- createdAt: Date;
3185
- updatedAt: Date;
3186
- email: string;
3187
- emailVerified: boolean;
3188
- name: string;
3189
- image?: string | null | undefined;
3190
- };
3191
- };
3192
- }>)[];
3193
- metadata: {
3194
- openapi: {
3195
- description: string;
3196
- responses: {
3197
- 200: {
3198
- description: string;
3199
- content: {
3200
- "application/json": {
3201
- schema: {
3202
- type: "object";
3203
- properties: {
3204
- status: {
3205
- type: string;
3206
- };
3207
- };
3208
- };
3209
- };
3210
- };
3211
- };
3212
- };
3213
- };
3214
- };
3215
- }, {
3216
- status: boolean;
3217
- }>;
3218
- };
3219
- hooks: {
3220
- after: {
3221
- matcher: (context: import("better-auth").HookEndpointContext) => boolean;
3222
- handler: (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>;
3223
- }[];
3224
- };
3225
- options: import("better-auth/plugins").MultiSessionConfig | undefined;
3226
- $ERROR_CODES: {
3227
- INVALID_SESSION_TOKEN: import("better-auth").RawError<"INVALID_SESSION_TOKEN">;
3228
- };
3229
- }, {
3230
- id: "open-api";
3231
- version: string;
3232
- endpoints: {
3233
- generateOpenAPISchema: import("better-call").StrictEndpoint<"/open-api/generate-schema", {
3234
- method: "GET";
3235
- }, {
3236
- openapi: string;
3237
- info: {
3238
- title: string;
3239
- description: string;
3240
- version: string;
3241
- };
3242
- components: {
3243
- securitySchemes: {
3244
- apiKeyCookie: {
3245
- type: string;
3246
- in: string;
3247
- name: string;
3248
- description: string;
3249
- };
3250
- bearerAuth: {
3251
- type: string;
3252
- scheme: string;
3253
- description: string;
3254
- };
3255
- };
3256
- schemas: {
3257
- [x: string]: import("better-auth/plugins").OpenAPIModelSchema;
3258
- };
3259
- };
3260
- security: {
3261
- apiKeyCookie: never[];
3262
- bearerAuth: never[];
3263
- }[];
3264
- servers: {
3265
- url: string;
3266
- }[];
3267
- tags: {
3268
- name: string;
3269
- description: string;
3270
- }[];
3271
- paths: Record<string, import("better-auth/plugins").Path>;
3272
- }>;
3273
- openAPIReference: import("better-call").StrictEndpoint<import("better-auth").LiteralString | "/reference", {
3274
- method: "GET";
3275
- metadata: {
3276
- readonly scope: "server";
3277
- };
3278
- }, Response>;
3279
- };
3280
- options: NoInfer<import("better-auth/plugins").OpenAPIOptions>;
3281
- }];
3282
- }>;