@r2wa-org/eden 0.0.88 → 0.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (333) hide show
  1. package/dist/admin/index.d.ts +2812 -2786
  2. package/dist/admin-user/admin/errors/index.d.ts +8 -8
  3. package/dist/admin-user/admin/router.d.ts +141 -141
  4. package/dist/admin-user/admin/service.d.ts +20 -20
  5. package/dist/app-version/admin/dto.schemas.d.ts +23 -23
  6. package/dist/app-version/admin/router.d.ts +160 -160
  7. package/dist/app-version/admin/service.d.ts +20 -20
  8. package/dist/app-version/db.schemas.d.ts +20 -20
  9. package/dist/app-version/index.d.ts +5 -0
  10. package/dist/app-version/schema.d.ts +11 -11
  11. package/dist/app-version/user/dto.schemas.d.ts +40 -0
  12. package/dist/app-version/user/router.d.ts +67 -0
  13. package/dist/app-version/user/service.d.ts +22 -0
  14. package/dist/asset/admin/dto.schemas.d.ts +70 -70
  15. package/dist/asset/admin/router.d.ts +215 -215
  16. package/dist/asset/admin/service.d.ts +66 -66
  17. package/dist/asset/db.schemas.d.ts +2 -2
  18. package/dist/asset/errors/index.d.ts +12 -12
  19. package/dist/asset/permissions.d.ts +1 -1
  20. package/dist/asset/schema.d.ts +2 -2
  21. package/dist/asset/user/dto.schemas.d.ts +31 -31
  22. package/dist/asset/user/router.d.ts +155 -155
  23. package/dist/asset/user/service.d.ts +33 -33
  24. package/dist/asset-convert-product/admin/dto.schemas.d.ts +495 -495
  25. package/dist/asset-convert-product/admin/router.d.ts +598 -598
  26. package/dist/asset-convert-product/admin/service.d.ts +457 -457
  27. package/dist/asset-convert-product/db.schemas.d.ts +6 -6
  28. package/dist/asset-convert-product/errors/index.d.ts +23 -23
  29. package/dist/asset-convert-product/permissions.d.ts +2 -2
  30. package/dist/asset-convert-product/schema.d.ts +5 -5
  31. package/dist/asset-convert-product/user/dto.schemas.d.ts +127 -127
  32. package/dist/asset-convert-product/user/router.d.ts +209 -209
  33. package/dist/asset-convert-product/user/service.d.ts +186 -186
  34. package/dist/asset-price/admin/dto.schemas.d.ts +26 -26
  35. package/dist/asset-price/admin/router.d.ts +187 -187
  36. package/dist/asset-price/admin/service.d.ts +16 -16
  37. package/dist/asset-price/constants.d.ts +2 -2
  38. package/dist/asset-price/errors/index.d.ts +11 -11
  39. package/dist/asset-price/internal/service.d.ts +7 -7
  40. package/dist/asset-price/permissions.d.ts +2 -2
  41. package/dist/asset-price/schema.d.ts +1 -1
  42. package/dist/asset-price/user/dto.schemas.d.ts +4 -4
  43. package/dist/asset-price/user/router.d.ts +133 -133
  44. package/dist/asset-type/admin/dto.schemas.d.ts +4 -4
  45. package/dist/asset-type/admin/router.d.ts +155 -155
  46. package/dist/asset-type/admin/service.d.ts +16 -16
  47. package/dist/asset-type/errors/index.d.ts +9 -9
  48. package/dist/asset-type/permissions.d.ts +1 -1
  49. package/dist/asset-type/schema.d.ts +1 -1
  50. package/dist/asset-type/seed.d.ts +9 -9
  51. package/dist/asset-type/user/dto.schemas.d.ts +5 -5
  52. package/dist/asset-type/user/router.d.ts +130 -130
  53. package/dist/asset-type/user/service.d.ts +4 -4
  54. package/dist/auth/better-auth.d.ts +267 -300
  55. package/dist/auth/permissions.d.ts +216 -216
  56. package/dist/auth/roles.d.ts +665 -665
  57. package/dist/auth/router.d.ts +116 -116
  58. package/dist/auth/schema.d.ts +5 -5
  59. package/dist/bank-account/admin/dto.schemas.d.ts +75 -75
  60. package/dist/bank-account/admin/router.d.ts +241 -241
  61. package/dist/bank-account/admin/service.d.ts +112 -112
  62. package/dist/bank-account/db.schemas.d.ts +40 -40
  63. package/dist/bank-account/errors/index.d.ts +4 -4
  64. package/dist/bank-account/internal/service.d.ts +14 -14
  65. package/dist/bank-account/permissions.d.ts +3 -3
  66. package/dist/bank-account/schema.d.ts +22 -22
  67. package/dist/bank-account/user/dto.schemas.d.ts +38 -38
  68. package/dist/bank-account/user/router.d.ts +150 -150
  69. package/dist/bank-account/user/service.d.ts +36 -36
  70. package/dist/check-in/admin/dto.schemas.d.ts +11 -11
  71. package/dist/check-in/admin/router.d.ts +147 -147
  72. package/dist/check-in/admin/service.d.ts +20 -19
  73. package/dist/check-in/db.schemas.d.ts +248 -4
  74. package/dist/check-in/errors/index.d.ts +8 -2
  75. package/dist/check-in/errors/locales/zh.d.ts +3 -0
  76. package/dist/check-in/internal/service.d.ts +18 -18
  77. package/dist/check-in/permissions.d.ts +2 -2
  78. package/dist/check-in/schema.d.ts +135 -3
  79. package/dist/check-in/user/dto.schemas.d.ts +144 -15
  80. package/dist/check-in/user/router.d.ts +158 -182
  81. package/dist/check-in/user/service.d.ts +52 -28
  82. package/dist/db/columns.helpers.d.ts +1 -1
  83. package/dist/deposit/admin/dto.schemas.d.ts +40 -40
  84. package/dist/deposit/admin/router.d.ts +160 -160
  85. package/dist/deposit/admin/service.d.ts +46 -46
  86. package/dist/deposit/db.schemas.d.ts +2 -2
  87. package/dist/deposit/errors/index.d.ts +16 -16
  88. package/dist/deposit/permissions.d.ts +2 -2
  89. package/dist/deposit/schema.d.ts +2 -2
  90. package/dist/deposit/user/dto.schemas.d.ts +40 -40
  91. package/dist/deposit/user/router.d.ts +180 -180
  92. package/dist/deposit/user/service.d.ts +69 -69
  93. package/dist/dynamic-env/admin.router.d.ts +137 -137
  94. package/dist/dynamic-env/cache.d.ts +0 -6
  95. package/dist/dynamic-env/errors/index.d.ts +2 -2
  96. package/dist/dynamic-env/schema.d.ts +1 -1
  97. package/dist/env/server.d.ts +12 -12
  98. package/dist/error/index.d.ts +1 -1
  99. package/dist/external/dto.schemas.d.ts +2 -2
  100. package/dist/external/errors/index.d.ts +2 -2
  101. package/dist/external/router.d.ts +6 -6
  102. package/dist/external/service.d.ts +6 -6
  103. package/dist/file-storage/admin/dto.schemas.d.ts +106 -106
  104. package/dist/file-storage/admin/router.d.ts +183 -171
  105. package/dist/file-storage/admin/service.d.ts +27 -27
  106. package/dist/file-storage/db.schemas.d.ts +26 -26
  107. package/dist/file-storage/errors/index.d.ts +10 -10
  108. package/dist/file-storage/internal/service.d.ts +9 -9
  109. package/dist/file-storage/permissions.d.ts +2 -2
  110. package/dist/file-storage/s3.client.d.ts +48 -48
  111. package/dist/file-storage/schema.d.ts +14 -14
  112. package/dist/file-storage/share/dto.schemas.d.ts +8 -8
  113. package/dist/file-storage/share/router.d.ts +145 -145
  114. package/dist/file-storage/user/dto.schemas.d.ts +48 -48
  115. package/dist/file-storage/user/router.d.ts +141 -141
  116. package/dist/file-storage/user/service.d.ts +36 -36
  117. package/dist/index.d.ts +3830 -3769
  118. package/dist/ledger/admin/dto.schemas.d.ts +270 -270
  119. package/dist/ledger/admin/router.d.ts +207 -207
  120. package/dist/ledger/db.schemas.d.ts +4 -4
  121. package/dist/ledger/errors/index.d.ts +14 -14
  122. package/dist/ledger/permissions.d.ts +1 -1
  123. package/dist/ledger/schema.d.ts +3 -3
  124. package/dist/ledger/user/dto.schemas.d.ts +5 -5
  125. package/dist/ledger/user/router.d.ts +130 -130
  126. package/dist/ledger/user/service.d.ts +93 -93
  127. package/dist/ledger-account/admin/dto.schemas.d.ts +83 -83
  128. package/dist/ledger-account/admin/router.d.ts +222 -222
  129. package/dist/ledger-account/admin/service.d.ts +149 -149
  130. package/dist/ledger-account/db.schemas.d.ts +2 -2
  131. package/dist/ledger-account/errors/index.d.ts +9 -9
  132. package/dist/ledger-account/internal/service.d.ts +7 -7
  133. package/dist/ledger-account/permissions.d.ts +1 -1
  134. package/dist/ledger-account/schema.d.ts +2 -2
  135. package/dist/ledger-account/user/dto.schemas.d.ts +23 -23
  136. package/dist/ledger-account/user/router.d.ts +168 -168
  137. package/dist/ledger-account/user/service.d.ts +100 -100
  138. package/dist/ledger-account-import/admin/dto.schemas.d.ts +6 -6
  139. package/dist/ledger-account-import/admin/router.d.ts +169 -169
  140. package/dist/ledger-account-import/admin/service.d.ts +43 -43
  141. package/dist/ledger-account-import/db.schemas.d.ts +4 -4
  142. package/dist/ledger-account-import/errors/index.d.ts +9 -9
  143. package/dist/ledger-account-import/permissions.d.ts +1 -1
  144. package/dist/ledger-account-import/schema.d.ts +4 -4
  145. package/dist/ledger-account-transfer/errors/index.d.ts +7 -7
  146. package/dist/ledger-account-transfer/user/router.d.ts +132 -132
  147. package/dist/ledger-account-type/admin/dto.schemas.d.ts +9 -9
  148. package/dist/ledger-account-type/admin/router.d.ts +157 -157
  149. package/dist/ledger-account-type/admin/service.d.ts +68 -68
  150. package/dist/ledger-account-type/errors/index.d.ts +9 -9
  151. package/dist/ledger-account-type/permissions.d.ts +1 -1
  152. package/dist/ledger-account-type/schema.d.ts +1 -1
  153. package/dist/ledger-account-type/user/dto.schemas.d.ts +9 -9
  154. package/dist/ledger-account-type/user/router.d.ts +133 -133
  155. package/dist/ledger-account-type/user/service.d.ts +34 -34
  156. package/dist/market-data/admin/dto.schemas.d.ts +4 -4
  157. package/dist/market-data/admin/router.d.ts +150 -150
  158. package/dist/market-data/admin/service.d.ts +11 -11
  159. package/dist/market-data/errors/index.d.ts +4 -4
  160. package/dist/market-data/internal/service.d.ts +19 -19
  161. package/dist/market-data/permissions.d.ts +3 -3
  162. package/dist/market-data/resolutions.d.ts +2 -2
  163. package/dist/market-data/schema.d.ts +1 -1
  164. package/dist/market-pricing/admin/dto.schemas.d.ts +88 -88
  165. package/dist/market-pricing/admin/router.d.ts +332 -320
  166. package/dist/market-pricing/admin/service.d.ts +97 -97
  167. package/dist/market-pricing/db.schemas.d.ts +6 -6
  168. package/dist/market-pricing/defaults.d.ts +11 -11
  169. package/dist/market-pricing/errors/index.d.ts +26 -26
  170. package/dist/market-pricing/internal/service.d.ts +3 -3
  171. package/dist/market-pricing/permissions.d.ts +1 -1
  172. package/dist/market-pricing/schema.d.ts +5 -5
  173. package/dist/news/admin/dto.schemas.d.ts +67 -67
  174. package/dist/news/admin/router.d.ts +226 -226
  175. package/dist/news/admin/service.d.ts +89 -89
  176. package/dist/news/db.schemas.d.ts +28 -28
  177. package/dist/news/errors/index.d.ts +5 -5
  178. package/dist/news/permissions.d.ts +1 -1
  179. package/dist/news/schema.d.ts +17 -17
  180. package/dist/news/user/dto.schemas.d.ts +84 -84
  181. package/dist/news/user/router.d.ts +184 -184
  182. package/dist/news/user/service.d.ts +143 -143
  183. package/dist/news-category/admin/dto.schemas.d.ts +10 -10
  184. package/dist/news-category/admin/router.d.ts +24 -24
  185. package/dist/news-category/admin/service.d.ts +15 -15
  186. package/dist/news-category/errors/index.d.ts +6 -6
  187. package/dist/news-category/permissions.d.ts +1 -1
  188. package/dist/news-category/schema.d.ts +1 -1
  189. package/dist/news-category/seed.d.ts +3 -3
  190. package/dist/news-category/user/dto.schemas.d.ts +8 -8
  191. package/dist/news-category/user/router.d.ts +127 -127
  192. package/dist/news-category/user/service.d.ts +10 -10
  193. package/dist/notification/admin/dto.schemas.d.ts +45 -45
  194. package/dist/notification/admin/router.d.ts +155 -155
  195. package/dist/notification/admin/service.d.ts +13 -13
  196. package/dist/notification/db.schemas.d.ts +6 -6
  197. package/dist/notification/errors/index.d.ts +5 -5
  198. package/dist/notification/internal/service.d.ts +7 -7
  199. package/dist/notification/permissions.d.ts +2 -2
  200. package/dist/notification/schema.d.ts +5 -5
  201. package/dist/notification/user/dto.schemas.d.ts +34 -34
  202. package/dist/notification/user/router.d.ts +161 -161
  203. package/dist/notification/user/service.d.ts +38 -38
  204. package/dist/operations-overview/admin/router.d.ts +137 -137
  205. package/dist/portfolio/user/dto.schemas.d.ts +38 -38
  206. package/dist/portfolio/user/router.d.ts +173 -173
  207. package/dist/portfolio/user/service.d.ts +27 -27
  208. package/dist/receipt-method/admin/dto.schemas.d.ts +20 -20
  209. package/dist/receipt-method/admin/router.d.ts +160 -160
  210. package/dist/receipt-method/admin/service.d.ts +46 -46
  211. package/dist/receipt-method/db.schemas.d.ts +2 -2
  212. package/dist/receipt-method/errors/index.d.ts +8 -8
  213. package/dist/receipt-method/permissions.d.ts +1 -1
  214. package/dist/receipt-method/schema.d.ts +2 -2
  215. package/dist/receipt-method/user/dto.schemas.d.ts +6 -6
  216. package/dist/receipt-method/user/router.d.ts +138 -138
  217. package/dist/receipt-method/user/service.d.ts +33 -33
  218. package/dist/referral/admin/dto.schemas.d.ts +6 -6
  219. package/dist/referral/admin/router.d.ts +143 -143
  220. package/dist/referral/errors/index.d.ts +6 -6
  221. package/dist/referral/permissions.d.ts +1 -1
  222. package/dist/referral/schema.d.ts +2 -2
  223. package/dist/referral/user/dto.schemas.d.ts +2 -2
  224. package/dist/referral/user/router.d.ts +137 -137
  225. package/dist/referral-depth-config/admin/dto.schemas.d.ts +1 -1
  226. package/dist/referral-depth-config/admin/router.d.ts +156 -144
  227. package/dist/referral-depth-config/admin/service.d.ts +6 -6
  228. package/dist/referral-depth-config/errors/index.d.ts +2 -2
  229. package/dist/referral-depth-config/permissions.d.ts +1 -1
  230. package/dist/referral-depth-config/schema.d.ts +1 -1
  231. package/dist/server-test/errors/index.d.ts +1 -1
  232. package/dist/server-test/index.d.ts +117 -117
  233. package/dist/shipping-address/admin/router.d.ts +138 -138
  234. package/dist/shipping-address/admin/service.d.ts +5 -5
  235. package/dist/shipping-address/errors/index.d.ts +3 -3
  236. package/dist/shipping-address/permissions.d.ts +1 -1
  237. package/dist/shipping-address/schema.d.ts +1 -1
  238. package/dist/shipping-address/user/dto.schemas.d.ts +4 -4
  239. package/dist/shipping-address/user/router.d.ts +142 -142
  240. package/dist/shipping-address/user/service.d.ts +20 -20
  241. package/dist/team/admin/dto.schemas.d.ts +728 -728
  242. package/dist/team/admin/router.d.ts +187 -187
  243. package/dist/team/errors/index.d.ts +4 -4
  244. package/dist/team/permissions.d.ts +1 -1
  245. package/dist/team/user/dto.schemas.d.ts +206 -206
  246. package/dist/team/user/router.d.ts +170 -170
  247. package/dist/trade-market/admin/dto.schemas.d.ts +439 -630
  248. package/dist/trade-market/admin/router.d.ts +281 -255
  249. package/dist/trade-market/admin/service.d.ts +131 -105
  250. package/dist/trade-market/db.schemas.d.ts +4 -4
  251. package/dist/trade-market/errors/index.d.ts +15 -15
  252. package/dist/trade-market/internal/service.d.ts +149 -130
  253. package/dist/trade-market/permissions.d.ts +2 -2
  254. package/dist/trade-market/schema.d.ts +4 -4
  255. package/dist/trade-market/user/dto.schemas.d.ts +208 -444
  256. package/dist/trade-market/user/router.d.ts +242 -223
  257. package/dist/trade-market/user/service.d.ts +141 -122
  258. package/dist/transfer/admin/router.d.ts +140 -140
  259. package/dist/transfer/admin/service.d.ts +27 -27
  260. package/dist/transfer/errors/index.d.ts +11 -11
  261. package/dist/transfer/permissions.d.ts +1 -1
  262. package/dist/transfer/schema.d.ts +1 -1
  263. package/dist/transfer/user/router.d.ts +140 -140
  264. package/dist/transfer/user/service.d.ts +27 -27
  265. package/dist/udf/router.d.ts +136 -136
  266. package/dist/udf/service.d.ts +1 -1
  267. package/dist/user/admin/dto.schemas.d.ts +363 -363
  268. package/dist/user/admin/router.d.ts +256 -256
  269. package/dist/user/admin/service.d.ts +50 -50
  270. package/dist/user/db.schemas.d.ts +62 -62
  271. package/dist/user/errors/index.d.ts +15 -15
  272. package/dist/user/internal/service.d.ts +8 -8
  273. package/dist/user/permissions.d.ts +3 -3
  274. package/dist/user/schema.d.ts +34 -34
  275. package/dist/user/user/dto.schemas.d.ts +1 -1
  276. package/dist/user/user/router.d.ts +148 -148
  277. package/dist/user/user/service.d.ts +35 -35
  278. package/dist/user-kyc/admin/dto.schemas.d.ts +34 -34
  279. package/dist/user-kyc/admin/router.d.ts +157 -157
  280. package/dist/user-kyc/admin/service.d.ts +20 -20
  281. package/dist/user-kyc/db.schemas.d.ts +46 -46
  282. package/dist/user-kyc/errors/index.d.ts +6 -6
  283. package/dist/user-kyc/permissions.d.ts +2 -2
  284. package/dist/user-kyc/schema.d.ts +25 -25
  285. package/dist/user-kyc/user/dto.schemas.d.ts +13 -13
  286. package/dist/user-kyc/user/router.d.ts +146 -146
  287. package/dist/user-kyc/user/service.d.ts +14 -14
  288. package/dist/user-security/admin/router.d.ts +133 -133
  289. package/dist/user-security/db.schemas.d.ts +20 -20
  290. package/dist/user-security/schema.d.ts +11 -11
  291. package/dist/user-security/user/router.d.ts +129 -129
  292. package/dist/wallet/admin/dto.schemas.d.ts +15 -15
  293. package/dist/wallet/admin/router.d.ts +159 -159
  294. package/dist/wallet/admin/service.d.ts +18 -18
  295. package/dist/wallet/errors/index.d.ts +1 -1
  296. package/dist/wallet/internal/service.d.ts +45 -45
  297. package/dist/wallet/permissions.d.ts +1 -1
  298. package/dist/wallet/schema.d.ts +1 -1
  299. package/dist/wallet/user/dto.schemas.d.ts +10 -10
  300. package/dist/wallet/user/router.d.ts +147 -147
  301. package/dist/wallet/user/service.d.ts +10 -10
  302. package/dist/wallet-type/admin/dto.schemas.d.ts +27 -27
  303. package/dist/wallet-type/admin/router.d.ts +201 -201
  304. package/dist/wallet-type/admin/service.d.ts +22 -22
  305. package/dist/wallet-type/errors/index.d.ts +6 -6
  306. package/dist/wallet-type/internal/service.d.ts +111 -111
  307. package/dist/wallet-type/permissions.d.ts +1 -1
  308. package/dist/wallet-type/schema.d.ts +2 -2
  309. package/dist/wallet-type/user/dto.schemas.d.ts +21 -21
  310. package/dist/wallet-type/user/router.d.ts +137 -137
  311. package/dist/wallet-type/user/service.d.ts +7 -7
  312. package/dist/welfare-cycle/admin/dto.schemas.d.ts +723 -723
  313. package/dist/welfare-cycle/admin/router.d.ts +788 -788
  314. package/dist/welfare-cycle/admin/service.d.ts +706 -706
  315. package/dist/welfare-cycle/db.schemas.d.ts +8 -8
  316. package/dist/welfare-cycle/errors/index.d.ts +18 -18
  317. package/dist/welfare-cycle/internal/service.d.ts +84 -84
  318. package/dist/welfare-cycle/permissions.d.ts +3 -3
  319. package/dist/welfare-cycle/schema.d.ts +8 -8
  320. package/dist/welfare-cycle/user/dto.schemas.d.ts +22 -22
  321. package/dist/welfare-cycle/user/router.d.ts +173 -173
  322. package/dist/welfare-cycle/user/service.d.ts +95 -95
  323. package/dist/withdraw/admin/dto.schemas.d.ts +3 -3
  324. package/dist/withdraw/admin/router.d.ts +171 -171
  325. package/dist/withdraw/admin/service.d.ts +15 -15
  326. package/dist/withdraw/db.schemas.d.ts +2 -2
  327. package/dist/withdraw/errors/index.d.ts +16 -16
  328. package/dist/withdraw/permissions.d.ts +2 -2
  329. package/dist/withdraw/schema.d.ts +2 -2
  330. package/dist/withdraw/user/dto.schemas.d.ts +18 -18
  331. package/dist/withdraw/user/router.d.ts +176 -176
  332. package/dist/withdraw/user/service.d.ts +36 -36
  333. package/package.json +7 -9
@@ -2,9 +2,9 @@ import type { ListAdminFilesQueryInput, VerifyFileInput } from './dto.schemas';
2
2
  import { BaseFileStorageService } from '../internal/service';
3
3
  export declare abstract class AdminFileStorageService extends BaseFileStorageService {
4
4
  static verifyFile(input: VerifyFileInput, adminId: string): Promise<{
5
- deletedAt: Date | null;
6
5
  createdAt: Date;
7
6
  updatedAt: Date;
7
+ deletedAt: Date | null;
8
8
  id: string;
9
9
  fileName: string | null;
10
10
  fileSize: number | null;
@@ -15,12 +15,12 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
15
15
  s3Key: string;
16
16
  s3Region: string;
17
17
  s3ETag: string | null;
18
- businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
18
+ businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
19
19
  businessId: string | null;
20
20
  businessMetadata: string | null;
21
21
  ownerId: string;
22
- accessControl: "private" | "restricted" | "public" | null;
23
- status: "uploading" | "active" | "archived" | "pending_deletion" | null;
22
+ accessControl: "private" | "public" | "restricted" | null;
23
+ status: "active" | "archived" | "pending_deletion" | "uploading" | null;
24
24
  publicUrl: string | null;
25
25
  thumbnailUrl: string | null;
26
26
  archivedAt: Date | null;
@@ -35,41 +35,41 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
35
35
  } | undefined>;
36
36
  static listAllFiles(filters: ListAdminFilesQueryInput): Promise<{
37
37
  data: {
38
- id: string;
38
+ accessControl: "private" | "public" | "restricted" | null;
39
+ archivedAt: Date | null;
40
+ businessId: string | null;
41
+ businessMetadata: string | null;
42
+ businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
39
43
  createdAt: Date;
40
- updatedAt: Date;
41
44
  deletedAt: Date | null;
45
+ downloadCount: number | null;
46
+ fileExtension: string | null;
47
+ fileHash: string | null;
42
48
  fileName: string | null;
43
49
  fileSize: number | null;
50
+ id: string;
51
+ isVerified: boolean | null;
52
+ lastDownloadedAt: Date | null;
44
53
  mimeType: string | null;
45
- fileExtension: string | null;
46
- fileHash: string | null;
54
+ owner: {
55
+ email: string;
56
+ id: string;
57
+ name: string;
58
+ };
59
+ ownerId: string;
60
+ publicUrl: string | null;
47
61
  s3Bucket: string;
62
+ s3ETag: string | null;
48
63
  s3Key: string;
49
64
  s3Region: string;
50
- s3ETag: string | null;
51
- businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
52
- businessId: string | null;
53
- businessMetadata: string | null;
54
- ownerId: string;
55
- accessControl: "private" | "restricted" | "public" | null;
56
- status: "uploading" | "active" | "archived" | "pending_deletion" | null;
57
- publicUrl: string | null;
65
+ status: "active" | "archived" | "pending_deletion" | "uploading" | null;
58
66
  thumbnailUrl: string | null;
59
- archivedAt: Date | null;
67
+ updatedAt: Date;
60
68
  uploadCompletedAt: Date | null;
61
69
  uploadIpAddress: string | null;
62
- downloadCount: number | null;
63
- lastDownloadedAt: Date | null;
64
- isVerified: boolean | null;
65
- verifiedBy: string | null;
66
- verifiedAt: Date | null;
67
70
  verificationNote: string | null;
68
- owner: {
69
- email: string;
70
- id: string;
71
- name: string;
72
- };
71
+ verifiedAt: Date | null;
72
+ verifiedBy: string | null;
73
73
  verifier: {
74
74
  id: string;
75
75
  name: string;
@@ -1,13 +1,13 @@
1
1
  export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSchema<"select", {
2
- deletedAt: import("drizzle-orm/pg-core").PgColumn<{
3
- name: "deleted_at";
2
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
3
+ name: "created_at";
4
4
  tableName: "file_storage";
5
5
  dataType: "date";
6
6
  columnType: "PgTimestamp";
7
7
  data: Date;
8
8
  driverParam: string;
9
- notNull: false;
10
- hasDefault: false;
9
+ notNull: true;
10
+ hasDefault: true;
11
11
  isPrimaryKey: false;
12
12
  isAutoincrement: false;
13
13
  hasRuntimeDefault: false;
@@ -16,8 +16,8 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
16
16
  identity: undefined;
17
17
  generated: undefined;
18
18
  }, {}, {}>;
19
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
20
- name: "created_at";
19
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
20
+ name: "updated_at";
21
21
  tableName: "file_storage";
22
22
  dataType: "date";
23
23
  columnType: "PgTimestamp";
@@ -33,15 +33,15 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
33
33
  identity: undefined;
34
34
  generated: undefined;
35
35
  }, {}, {}>;
36
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
37
- name: "updated_at";
36
+ deletedAt: import("drizzle-orm/pg-core").PgColumn<{
37
+ name: "deleted_at";
38
38
  tableName: "file_storage";
39
39
  dataType: "date";
40
40
  columnType: "PgTimestamp";
41
41
  data: Date;
42
42
  driverParam: string;
43
- notNull: true;
44
- hasDefault: true;
43
+ notNull: false;
44
+ hasDefault: false;
45
45
  isPrimaryKey: false;
46
46
  isAutoincrement: false;
47
47
  hasRuntimeDefault: false;
@@ -225,7 +225,7 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
225
225
  tableName: "file_storage";
226
226
  dataType: "string";
227
227
  columnType: "PgEnumColumn";
228
- data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
228
+ data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
229
229
  driverParam: string;
230
230
  notNull: true;
231
231
  hasDefault: false;
@@ -293,7 +293,7 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
293
293
  tableName: "file_storage";
294
294
  dataType: "string";
295
295
  columnType: "PgEnumColumn";
296
- data: "private" | "restricted" | "public";
296
+ data: "private" | "public" | "restricted";
297
297
  driverParam: string;
298
298
  notNull: false;
299
299
  hasDefault: true;
@@ -310,7 +310,7 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
310
310
  tableName: "file_storage";
311
311
  dataType: "string";
312
312
  columnType: "PgEnumColumn";
313
- data: "uploading" | "active" | "archived" | "pending_deletion";
313
+ data: "active" | "archived" | "pending_deletion" | "uploading";
314
314
  driverParam: string;
315
315
  notNull: false;
316
316
  hasDefault: true;
@@ -512,15 +512,15 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
512
512
  }, undefined>;
513
513
  export type FileStorageSelectSchemaType = typeof fileStorageSelectSchema.static;
514
514
  export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSchema<"insert", {
515
- deletedAt: import("drizzle-orm/pg-core").PgColumn<{
516
- name: "deleted_at";
515
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
516
+ name: "created_at";
517
517
  tableName: "file_storage";
518
518
  dataType: "date";
519
519
  columnType: "PgTimestamp";
520
520
  data: Date;
521
521
  driverParam: string;
522
- notNull: false;
523
- hasDefault: false;
522
+ notNull: true;
523
+ hasDefault: true;
524
524
  isPrimaryKey: false;
525
525
  isAutoincrement: false;
526
526
  hasRuntimeDefault: false;
@@ -529,8 +529,8 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
529
529
  identity: undefined;
530
530
  generated: undefined;
531
531
  }, {}, {}>;
532
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
533
- name: "created_at";
532
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
533
+ name: "updated_at";
534
534
  tableName: "file_storage";
535
535
  dataType: "date";
536
536
  columnType: "PgTimestamp";
@@ -546,15 +546,15 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
546
546
  identity: undefined;
547
547
  generated: undefined;
548
548
  }, {}, {}>;
549
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
550
- name: "updated_at";
549
+ deletedAt: import("drizzle-orm/pg-core").PgColumn<{
550
+ name: "deleted_at";
551
551
  tableName: "file_storage";
552
552
  dataType: "date";
553
553
  columnType: "PgTimestamp";
554
554
  data: Date;
555
555
  driverParam: string;
556
- notNull: true;
557
- hasDefault: true;
556
+ notNull: false;
557
+ hasDefault: false;
558
558
  isPrimaryKey: false;
559
559
  isAutoincrement: false;
560
560
  hasRuntimeDefault: false;
@@ -738,7 +738,7 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
738
738
  tableName: "file_storage";
739
739
  dataType: "string";
740
740
  columnType: "PgEnumColumn";
741
- data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
741
+ data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
742
742
  driverParam: string;
743
743
  notNull: true;
744
744
  hasDefault: false;
@@ -806,7 +806,7 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
806
806
  tableName: "file_storage";
807
807
  dataType: "string";
808
808
  columnType: "PgEnumColumn";
809
- data: "private" | "restricted" | "public";
809
+ data: "private" | "public" | "restricted";
810
810
  driverParam: string;
811
811
  notNull: false;
812
812
  hasDefault: true;
@@ -823,7 +823,7 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
823
823
  tableName: "file_storage";
824
824
  dataType: "string";
825
825
  columnType: "PgEnumColumn";
826
- data: "uploading" | "active" | "archived" | "pending_deletion";
826
+ data: "active" | "archived" | "pending_deletion" | "uploading";
827
827
  driverParam: string;
828
828
  notNull: false;
829
829
  hasDefault: true;
@@ -1,15 +1,15 @@
1
1
  export * from './locales/zh';
2
2
  export declare const FileStorageErrorCodes: {
3
- readonly FILE_SIZE_EXCEEDED: "FILE_SIZE_EXCEEDED";
4
- readonly FILE_TYPE_NOT_ALLOWED: "FILE_TYPE_NOT_ALLOWED";
5
- readonly FILE_CREATE_FAILED: "FILE_CREATE_FAILED";
6
- readonly FILE_NOT_FOUND: "FILE_NOT_FOUND";
7
- readonly FILE_ALREADY_CONFIRMED: "FILE_ALREADY_CONFIRMED";
8
- readonly FILE_UPLOAD_NOT_COMPLETED: "FILE_UPLOAD_NOT_COMPLETED";
9
- readonly FILE_ACCESS_DENIED: "FILE_ACCESS_DENIED";
10
- readonly FILE_NOT_ACTIVE: "FILE_NOT_ACTIVE";
11
- readonly FILE_DELETE_FAILED: "FILE_DELETE_FAILED";
12
- readonly FILE_UPDATE_FAILED: "FILE_UPDATE_FAILED";
3
+ readonly FILE_SIZE_EXCEEDED: 'FILE_SIZE_EXCEEDED';
4
+ readonly FILE_TYPE_NOT_ALLOWED: 'FILE_TYPE_NOT_ALLOWED';
5
+ readonly FILE_CREATE_FAILED: 'FILE_CREATE_FAILED';
6
+ readonly FILE_NOT_FOUND: 'FILE_NOT_FOUND';
7
+ readonly FILE_ALREADY_CONFIRMED: 'FILE_ALREADY_CONFIRMED';
8
+ readonly FILE_UPLOAD_NOT_COMPLETED: 'FILE_UPLOAD_NOT_COMPLETED';
9
+ readonly FILE_ACCESS_DENIED: 'FILE_ACCESS_DENIED';
10
+ readonly FILE_NOT_ACTIVE: 'FILE_NOT_ACTIVE';
11
+ readonly FILE_DELETE_FAILED: 'FILE_DELETE_FAILED';
12
+ readonly FILE_UPDATE_FAILED: 'FILE_UPDATE_FAILED';
13
13
  };
14
14
  type FileStorageErrorCodesType = typeof FileStorageErrorCodes;
15
15
  export type FileStorageErrorCode = keyof FileStorageErrorCodesType;
@@ -10,7 +10,7 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
10
10
  static generateUploadUrl(input: GenerateUploadUrlInput, userId: string): Promise<{
11
11
  readonly fileId: string;
12
12
  readonly uploadUrl: string;
13
- readonly method: "PUT";
13
+ readonly method: 'PUT';
14
14
  readonly headers: {
15
15
  readonly 'Content-Type': string;
16
16
  };
@@ -20,9 +20,9 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
20
20
  readonly expiresAt: number;
21
21
  }>;
22
22
  static confirmUpload(input: ConfirmUploadInput, userId: string): Promise<{
23
- deletedAt: Date | null;
24
23
  createdAt: Date;
25
24
  updatedAt: Date;
25
+ deletedAt: Date | null;
26
26
  id: string;
27
27
  fileName: string | null;
28
28
  fileSize: number | null;
@@ -33,12 +33,12 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
33
33
  s3Key: string;
34
34
  s3Region: string;
35
35
  s3ETag: string | null;
36
- businessType: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
36
+ businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
37
37
  businessId: string | null;
38
38
  businessMetadata: string | null;
39
39
  ownerId: string;
40
- accessControl: "private" | "restricted" | "public" | null;
41
- status: "uploading" | "active" | "archived" | "pending_deletion" | null;
40
+ accessControl: "private" | "public" | "restricted" | null;
41
+ status: "active" | "archived" | "pending_deletion" | "uploading" | null;
42
42
  publicUrl: string | null;
43
43
  thumbnailUrl: string | null;
44
44
  archivedAt: Date | null;
@@ -52,15 +52,15 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
52
52
  verificationNote: string | null;
53
53
  } | undefined>;
54
54
  static generateAccessUrl(input: GenerateAccessUrlInput, userId: string): Promise<{
55
- expiresAt?: number | undefined;
56
55
  id: string;
57
- fileName: string | null;
58
56
  url: string;
57
+ fileName: string | null;
58
+ expiresAt?: number | undefined;
59
59
  }>;
60
60
  static generateBatchAccessUrls(input: GenerateBatchAccessUrlsInput, userId: string): Promise<{
61
- expiresAt?: number | undefined;
62
61
  id: string;
63
- fileName: string | null;
64
62
  url: string;
63
+ fileName: string | null;
64
+ expiresAt?: number | undefined;
65
65
  }[]>;
66
66
  }
@@ -1,5 +1,5 @@
1
1
  export declare const fileStoragePermissions: {
2
- readonly 'file_storage:file': readonly ["create", "read", "update", "delete", "list"];
3
- readonly 'file_storage:admin': readonly ["verify", "list_all", "permanent_delete"];
2
+ readonly 'file_storage:file': readonly ['create', 'read', 'update', 'delete', 'list'];
3
+ readonly 'file_storage:admin': readonly ['verify', 'list_all', 'permanent_delete'];
4
4
  };
5
5
  export type FileStoragePermission = keyof typeof fileStoragePermissions;
@@ -112,7 +112,7 @@ export declare function validateMimeType(mimeType: string, allowedTypes: readonl
112
112
  */
113
113
  export declare const BUSINESS_TYPE_CONFIG: {
114
114
  readonly kyc_document: {
115
- readonly defaultAccessControl: "private";
115
+ readonly defaultAccessControl: 'private';
116
116
  readonly maxSize: number;
117
117
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png", "image/jpg"];
118
118
  readonly mimeTypeLimits: {
@@ -120,76 +120,76 @@ export declare const BUSINESS_TYPE_CONFIG: {
120
120
  readonly 'image/png': number;
121
121
  readonly 'image/jpg': number;
122
122
  };
123
- readonly description: "KYC 文档(身份证明、地址证明等)";
123
+ readonly description: 'KYC \u6587\u6863\uFF08\u8EAB\u4EFD\u8BC1\u660E\u3001\u5730\u5740\u8BC1\u660E\u7B49\uFF09';
124
124
  };
125
125
  readonly contract: {
126
- readonly defaultAccessControl: "private";
126
+ readonly defaultAccessControl: 'private';
127
127
  readonly maxSize: number;
128
128
  readonly allowedMimeTypes: readonly ["application/pdf"];
129
- readonly description: "合同文件";
129
+ readonly description: '\u5408\u540C\u6587\u4EF6';
130
130
  };
131
131
  readonly financial_report: {
132
- readonly defaultAccessControl: "private";
132
+ readonly defaultAccessControl: 'private';
133
133
  readonly maxSize: number;
134
134
  readonly allowedMimeTypes: readonly ["application/pdf", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
135
- readonly description: "财务报表";
135
+ readonly description: '\u8D22\u52A1\u62A5\u8868';
136
136
  };
137
137
  readonly ledger_account_import: {
138
- readonly defaultAccessControl: "private";
138
+ readonly defaultAccessControl: 'private';
139
139
  readonly maxSize: number;
140
140
  readonly allowedMimeTypes: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
141
- readonly description: "用户账户导入文件";
141
+ readonly description: '\u7528\u6237\u8D26\u6237\u5BFC\u5165\u6587\u4EF6';
142
142
  };
143
143
  readonly avatar: {
144
- readonly defaultAccessControl: "public";
144
+ readonly defaultAccessControl: 'public';
145
145
  readonly maxSize: number;
146
146
  readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
147
147
  readonly mimeTypeLimits: {
148
148
  readonly 'image/webp': number;
149
149
  };
150
- readonly description: "用户头像";
150
+ readonly description: '\u7528\u6237\u5934\u50CF';
151
151
  };
152
152
  readonly cover_image: {
153
- readonly defaultAccessControl: "public";
153
+ readonly defaultAccessControl: 'public';
154
154
  readonly maxSize: number;
155
155
  readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
156
- readonly description: "封面图片";
156
+ readonly description: '\u5C01\u9762\u56FE\u7247';
157
157
  };
158
158
  readonly notification_attachment: {
159
- readonly defaultAccessControl: "restricted";
159
+ readonly defaultAccessControl: 'restricted';
160
160
  readonly maxSize: number;
161
161
  readonly allowedMimeTypes: readonly ["application/pdf", "image/*", "application/zip"];
162
- readonly description: "通知附件";
162
+ readonly description: '\u901A\u77E5\u9644\u4EF6';
163
163
  };
164
164
  readonly transaction_receipt: {
165
- readonly defaultAccessControl: "private";
165
+ readonly defaultAccessControl: 'private';
166
166
  readonly maxSize: number;
167
167
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
168
- readonly description: "交易回执";
168
+ readonly description: '\u4EA4\u6613\u56DE\u6267';
169
169
  };
170
170
  readonly export_report: {
171
- readonly defaultAccessControl: "restricted";
171
+ readonly defaultAccessControl: 'restricted';
172
172
  readonly maxSize: number;
173
173
  readonly allowedMimeTypes: readonly ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/csv"];
174
- readonly description: "导出的报表";
174
+ readonly description: '\u5BFC\u51FA\u7684\u62A5\u8868';
175
175
  };
176
176
  readonly bank_verification: {
177
- readonly defaultAccessControl: "private";
177
+ readonly defaultAccessControl: 'private';
178
178
  readonly maxSize: number;
179
179
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
180
- readonly description: "银行验证文件";
180
+ readonly description: '\u94F6\u884C\u9A8C\u8BC1\u6587\u4EF6';
181
181
  };
182
182
  readonly news_attachment: {
183
- readonly defaultAccessControl: "public";
183
+ readonly defaultAccessControl: 'public';
184
184
  readonly maxSize: number;
185
185
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
186
- readonly description: "新闻附件";
186
+ readonly description: '\u65B0\u95FB\u9644\u4EF6';
187
187
  };
188
188
  readonly other: {
189
- readonly defaultAccessControl: "private";
189
+ readonly defaultAccessControl: 'private';
190
190
  readonly maxSize: number;
191
191
  readonly allowedMimeTypes: readonly ["*/*"];
192
- readonly description: "其他";
192
+ readonly description: '\u5176\u4ED6';
193
193
  };
194
194
  };
195
195
  /**
@@ -201,7 +201,7 @@ export type BusinessType = keyof typeof BUSINESS_TYPE_CONFIG;
201
201
  */
202
202
  export declare function getBusinessTypeConfig<T extends BusinessType>(businessType: T): {
203
203
  readonly kyc_document: {
204
- readonly defaultAccessControl: "private";
204
+ readonly defaultAccessControl: 'private';
205
205
  readonly maxSize: number;
206
206
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png", "image/jpg"];
207
207
  readonly mimeTypeLimits: {
@@ -209,76 +209,76 @@ export declare function getBusinessTypeConfig<T extends BusinessType>(businessTy
209
209
  readonly 'image/png': number;
210
210
  readonly 'image/jpg': number;
211
211
  };
212
- readonly description: "KYC 文档(身份证明、地址证明等)";
212
+ readonly description: 'KYC \u6587\u6863\uFF08\u8EAB\u4EFD\u8BC1\u660E\u3001\u5730\u5740\u8BC1\u660E\u7B49\uFF09';
213
213
  };
214
214
  readonly contract: {
215
- readonly defaultAccessControl: "private";
215
+ readonly defaultAccessControl: 'private';
216
216
  readonly maxSize: number;
217
217
  readonly allowedMimeTypes: readonly ["application/pdf"];
218
- readonly description: "合同文件";
218
+ readonly description: '\u5408\u540C\u6587\u4EF6';
219
219
  };
220
220
  readonly financial_report: {
221
- readonly defaultAccessControl: "private";
221
+ readonly defaultAccessControl: 'private';
222
222
  readonly maxSize: number;
223
223
  readonly allowedMimeTypes: readonly ["application/pdf", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
224
- readonly description: "财务报表";
224
+ readonly description: '\u8D22\u52A1\u62A5\u8868';
225
225
  };
226
226
  readonly ledger_account_import: {
227
- readonly defaultAccessControl: "private";
227
+ readonly defaultAccessControl: 'private';
228
228
  readonly maxSize: number;
229
229
  readonly allowedMimeTypes: readonly ["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"];
230
- readonly description: "用户账户导入文件";
230
+ readonly description: '\u7528\u6237\u8D26\u6237\u5BFC\u5165\u6587\u4EF6';
231
231
  };
232
232
  readonly avatar: {
233
- readonly defaultAccessControl: "public";
233
+ readonly defaultAccessControl: 'public';
234
234
  readonly maxSize: number;
235
235
  readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
236
236
  readonly mimeTypeLimits: {
237
237
  readonly 'image/webp': number;
238
238
  };
239
- readonly description: "用户头像";
239
+ readonly description: '\u7528\u6237\u5934\u50CF';
240
240
  };
241
241
  readonly cover_image: {
242
- readonly defaultAccessControl: "public";
242
+ readonly defaultAccessControl: 'public';
243
243
  readonly maxSize: number;
244
244
  readonly allowedMimeTypes: readonly ["image/jpeg", "image/png", "image/jpg", "image/webp"];
245
- readonly description: "封面图片";
245
+ readonly description: '\u5C01\u9762\u56FE\u7247';
246
246
  };
247
247
  readonly notification_attachment: {
248
- readonly defaultAccessControl: "restricted";
248
+ readonly defaultAccessControl: 'restricted';
249
249
  readonly maxSize: number;
250
250
  readonly allowedMimeTypes: readonly ["application/pdf", "image/*", "application/zip"];
251
- readonly description: "通知附件";
251
+ readonly description: '\u901A\u77E5\u9644\u4EF6';
252
252
  };
253
253
  readonly transaction_receipt: {
254
- readonly defaultAccessControl: "private";
254
+ readonly defaultAccessControl: 'private';
255
255
  readonly maxSize: number;
256
256
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
257
- readonly description: "交易回执";
257
+ readonly description: '\u4EA4\u6613\u56DE\u6267';
258
258
  };
259
259
  readonly export_report: {
260
- readonly defaultAccessControl: "restricted";
260
+ readonly defaultAccessControl: 'restricted';
261
261
  readonly maxSize: number;
262
262
  readonly allowedMimeTypes: readonly ["application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/csv"];
263
- readonly description: "导出的报表";
263
+ readonly description: '\u5BFC\u51FA\u7684\u62A5\u8868';
264
264
  };
265
265
  readonly bank_verification: {
266
- readonly defaultAccessControl: "private";
266
+ readonly defaultAccessControl: 'private';
267
267
  readonly maxSize: number;
268
268
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
269
- readonly description: "银行验证文件";
269
+ readonly description: '\u94F6\u884C\u9A8C\u8BC1\u6587\u4EF6';
270
270
  };
271
271
  readonly news_attachment: {
272
- readonly defaultAccessControl: "public";
272
+ readonly defaultAccessControl: 'public';
273
273
  readonly maxSize: number;
274
274
  readonly allowedMimeTypes: readonly ["application/pdf", "image/jpeg", "image/png"];
275
- readonly description: "新闻附件";
275
+ readonly description: '\u65B0\u95FB\u9644\u4EF6';
276
276
  };
277
277
  readonly other: {
278
- readonly defaultAccessControl: "private";
278
+ readonly defaultAccessControl: 'private';
279
279
  readonly maxSize: number;
280
280
  readonly allowedMimeTypes: readonly ["*/*"];
281
- readonly description: "其他";
281
+ readonly description: '\u5176\u4ED6';
282
282
  };
283
283
  }[T];
284
284
  export {};
@@ -19,15 +19,15 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
19
19
  name: "file_storage";
20
20
  schema: undefined;
21
21
  columns: {
22
- deletedAt: import("drizzle-orm/pg-core").PgColumn<{
23
- name: "deleted_at";
22
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
23
+ name: "created_at";
24
24
  tableName: "file_storage";
25
25
  dataType: "date";
26
26
  columnType: "PgTimestamp";
27
27
  data: Date;
28
28
  driverParam: string;
29
- notNull: false;
30
- hasDefault: false;
29
+ notNull: true;
30
+ hasDefault: true;
31
31
  isPrimaryKey: false;
32
32
  isAutoincrement: false;
33
33
  hasRuntimeDefault: false;
@@ -36,8 +36,8 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
36
36
  identity: undefined;
37
37
  generated: undefined;
38
38
  }, {}, {}>;
39
- createdAt: import("drizzle-orm/pg-core").PgColumn<{
40
- name: "created_at";
39
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
40
+ name: "updated_at";
41
41
  tableName: "file_storage";
42
42
  dataType: "date";
43
43
  columnType: "PgTimestamp";
@@ -53,15 +53,15 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
53
53
  identity: undefined;
54
54
  generated: undefined;
55
55
  }, {}, {}>;
56
- updatedAt: import("drizzle-orm/pg-core").PgColumn<{
57
- name: "updated_at";
56
+ deletedAt: import("drizzle-orm/pg-core").PgColumn<{
57
+ name: "deleted_at";
58
58
  tableName: "file_storage";
59
59
  dataType: "date";
60
60
  columnType: "PgTimestamp";
61
61
  data: Date;
62
62
  driverParam: string;
63
- notNull: true;
64
- hasDefault: true;
63
+ notNull: false;
64
+ hasDefault: false;
65
65
  isPrimaryKey: false;
66
66
  isAutoincrement: false;
67
67
  hasRuntimeDefault: false;
@@ -245,7 +245,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
245
245
  tableName: "file_storage";
246
246
  dataType: "string";
247
247
  columnType: "PgEnumColumn";
248
- data: "other" | "kyc_document" | "contract" | "financial_report" | "ledger_account_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
248
+ data: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
249
249
  driverParam: string;
250
250
  notNull: true;
251
251
  hasDefault: false;
@@ -313,7 +313,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
313
313
  tableName: "file_storage";
314
314
  dataType: "string";
315
315
  columnType: "PgEnumColumn";
316
- data: "private" | "restricted" | "public";
316
+ data: "private" | "public" | "restricted";
317
317
  driverParam: string;
318
318
  notNull: false;
319
319
  hasDefault: true;
@@ -330,7 +330,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
330
330
  tableName: "file_storage";
331
331
  dataType: "string";
332
332
  columnType: "PgEnumColumn";
333
- data: "uploading" | "active" | "archived" | "pending_deletion";
333
+ data: "active" | "archived" | "pending_deletion" | "uploading";
334
334
  driverParam: string;
335
335
  notNull: false;
336
336
  hasDefault: true;
@@ -530,7 +530,7 @@ export declare const fileStorage: import("drizzle-orm/pg-core").PgTableWithColum
530
530
  generated: undefined;
531
531
  }, {}, {}>;
532
532
  };
533
- dialect: "pg";
533
+ dialect: 'pg';
534
534
  }>;
535
535
  export declare const fileStorageRelations: import("drizzle-orm").Relations<"file_storage", {
536
536
  owner: import("drizzle-orm").One<"user", true>;