@r2wa-org/eden 0.0.48

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 (271) hide show
  1. package/README.md +28 -0
  2. package/dist/src/admin/index.d.ts +4793 -0
  3. package/dist/src/auth/better-auth.d.ts +2915 -0
  4. package/dist/src/auth/better-hooks.d.ts +16 -0
  5. package/dist/src/auth/db.schemas.d.ts +2076 -0
  6. package/dist/src/auth/permissions.d.ts +155 -0
  7. package/dist/src/auth/roles.d.ts +376 -0
  8. package/dist/src/auth/router.d.ts +385 -0
  9. package/dist/src/auth/schema.d.ts +1080 -0
  10. package/dist/src/bank-account/admin.router.d.ts +880 -0
  11. package/dist/src/bank-account/db.schemas.d.ts +1032 -0
  12. package/dist/src/bank-account/dto.schemas.d.ts +572 -0
  13. package/dist/src/bank-account/index.d.ts +8 -0
  14. package/dist/src/bank-account/permissions.d.ts +10 -0
  15. package/dist/src/bank-account/router.d.ts +680 -0
  16. package/dist/src/bank-account/schema.d.ts +535 -0
  17. package/dist/src/bank-account/seed.d.ts +4 -0
  18. package/dist/src/bank-account/service.d.ts +359 -0
  19. package/dist/src/check-in/admin.router.d.ts +533 -0
  20. package/dist/src/check-in/db.schemas.d.ts +312 -0
  21. package/dist/src/check-in/dto.schemas.d.ts +544 -0
  22. package/dist/src/check-in/errors/index.d.ts +13 -0
  23. package/dist/src/check-in/errors/locales/zh.d.ts +10 -0
  24. package/dist/src/check-in/index.d.ts +7 -0
  25. package/dist/src/check-in/permissions.d.ts +6 -0
  26. package/dist/src/check-in/router.d.ts +619 -0
  27. package/dist/src/check-in/schema.d.ts +168 -0
  28. package/dist/src/check-in/service.d.ts +99 -0
  29. package/dist/src/cors/index.d.ts +30 -0
  30. package/dist/src/cron/index.d.ts +76 -0
  31. package/dist/src/db/columns.helpers.d.ts +13 -0
  32. package/dist/src/db/enums.d.ts +1 -0
  33. package/dist/src/db/index.d.ts +4 -0
  34. package/dist/src/db/schemas.d.ts +24 -0
  35. package/dist/src/db/transaction.d.ts +3 -0
  36. package/dist/src/db/typebox.d.ts +19 -0
  37. package/dist/src/deposit/admin.router.d.ts +633 -0
  38. package/dist/src/deposit/db.schemas.d.ts +550 -0
  39. package/dist/src/deposit/dto.schemas.d.ts +707 -0
  40. package/dist/src/deposit/errors/index.d.ts +33 -0
  41. package/dist/src/deposit/errors/locales/zh.d.ts +18 -0
  42. package/dist/src/deposit/index.d.ts +7 -0
  43. package/dist/src/deposit/permissions.d.ts +9 -0
  44. package/dist/src/deposit/router.d.ts +621 -0
  45. package/dist/src/deposit/schema.d.ts +287 -0
  46. package/dist/src/deposit/service.d.ts +278 -0
  47. package/dist/src/dynamic-env/admin.router.d.ts +637 -0
  48. package/dist/src/dynamic-env/cache.d.ts +35 -0
  49. package/dist/src/dynamic-env/db.schemas.d.ts +182 -0
  50. package/dist/src/dynamic-env/dto.schema.d.ts +17 -0
  51. package/dist/src/dynamic-env/index.d.ts +3 -0
  52. package/dist/src/dynamic-env/schema.d.ts +96 -0
  53. package/dist/src/dynamic-env/service.d.ts +93 -0
  54. package/dist/src/eden/index.d.ts +57 -0
  55. package/dist/src/email/index.d.ts +2 -0
  56. package/dist/src/env/client.d.ts +2 -0
  57. package/dist/src/env/index.d.ts +2 -0
  58. package/dist/src/env/server.d.ts +50 -0
  59. package/dist/src/env/typebox-env.d.ts +7 -0
  60. package/dist/src/error/errorcode.d.ts +9 -0
  61. package/dist/src/error/index.d.ts +120 -0
  62. package/dist/src/error/locales/zh.d.ts +2 -0
  63. package/dist/src/error/messages.d.ts +10 -0
  64. package/dist/src/external/dto.schemas.d.ts +173 -0
  65. package/dist/src/external/errors/index.d.ts +13 -0
  66. package/dist/src/external/errors/locales/zh.d.ts +10 -0
  67. package/dist/src/external/index.d.ts +4 -0
  68. package/dist/src/external/router.d.ts +105 -0
  69. package/dist/src/external/service.d.ts +31 -0
  70. package/dist/src/file-storage/admin.router.d.ts +601 -0
  71. package/dist/src/file-storage/db.schemas.d.ts +1026 -0
  72. package/dist/src/file-storage/dto.schemas.d.ts +1238 -0
  73. package/dist/src/file-storage/errors/index.d.ts +19 -0
  74. package/dist/src/file-storage/errors/locales/zh.d.ts +18 -0
  75. package/dist/src/file-storage/index.d.ts +6 -0
  76. package/dist/src/file-storage/permissions.d.ts +5 -0
  77. package/dist/src/file-storage/router.d.ts +588 -0
  78. package/dist/src/file-storage/s3.client.d.ts +284 -0
  79. package/dist/src/file-storage/schema.d.ts +538 -0
  80. package/dist/src/file-storage/service.d.ts +264 -0
  81. package/dist/src/file-storage/share.router.d.ts +564 -0
  82. package/dist/src/index.d.ts +8664 -0
  83. package/dist/src/ledger/admin.router.d.ts +524 -0
  84. package/dist/src/ledger/db.schemas.d.ts +486 -0
  85. package/dist/src/ledger/dto.schemas.d.ts +160 -0
  86. package/dist/src/ledger/errors/index.d.ts +22 -0
  87. package/dist/src/ledger/errors/locales/zh.d.ts +14 -0
  88. package/dist/src/ledger/index.d.ts +6 -0
  89. package/dist/src/ledger/permissions.d.ts +8 -0
  90. package/dist/src/ledger/router.d.ts +486 -0
  91. package/dist/src/ledger/schema.d.ts +259 -0
  92. package/dist/src/ledger/service.d.ts +208 -0
  93. package/dist/src/nanoid/index.d.ts +2 -0
  94. package/dist/src/news/admin.router.d.ts +824 -0
  95. package/dist/src/news/db.schemas.d.ts +1150 -0
  96. package/dist/src/news/dto.schemas.d.ts +233 -0
  97. package/dist/src/news/errors/index.d.ts +20 -0
  98. package/dist/src/news/errors/locales/zh.d.ts +13 -0
  99. package/dist/src/news/index.d.ts +6 -0
  100. package/dist/src/news/permissions.d.ts +4 -0
  101. package/dist/src/news/router.d.ts +620 -0
  102. package/dist/src/news/schema.d.ts +616 -0
  103. package/dist/src/news/service.d.ts +495 -0
  104. package/dist/src/news-category/admin.router.d.ts +207 -0
  105. package/dist/src/news-category/constants.d.ts +1 -0
  106. package/dist/src/news-category/db.schemas.d.ts +324 -0
  107. package/dist/src/news-category/dto.schemas.d.ts +57 -0
  108. package/dist/src/news-category/errors/index.d.ts +19 -0
  109. package/dist/src/news-category/errors/locales/zh.d.ts +13 -0
  110. package/dist/src/news-category/index.d.ts +7 -0
  111. package/dist/src/news-category/permissions.d.ts +4 -0
  112. package/dist/src/news-category/router.d.ts +460 -0
  113. package/dist/src/news-category/schema.d.ts +173 -0
  114. package/dist/src/news-category/seed.d.ts +12 -0
  115. package/dist/src/news-category/service.d.ts +105 -0
  116. package/dist/src/notification/admin.router.d.ts +582 -0
  117. package/dist/src/notification/db.schemas.d.ts +624 -0
  118. package/dist/src/notification/dto.schemas.d.ts +457 -0
  119. package/dist/src/notification/errors/index.d.ts +19 -0
  120. package/dist/src/notification/errors/locales/zh.d.ts +13 -0
  121. package/dist/src/notification/index.d.ts +7 -0
  122. package/dist/src/notification/permissions.d.ts +6 -0
  123. package/dist/src/notification/router.d.ts +626 -0
  124. package/dist/src/notification/schema.d.ts +347 -0
  125. package/dist/src/notification/service.d.ts +195 -0
  126. package/dist/src/receipt-method/admin.router.d.ts +579 -0
  127. package/dist/src/receipt-method/db.schemas.d.ts +380 -0
  128. package/dist/src/receipt-method/dto.schemas.d.ts +418 -0
  129. package/dist/src/receipt-method/index.d.ts +7 -0
  130. package/dist/src/receipt-method/permissions.d.ts +4 -0
  131. package/dist/src/receipt-method/router.d.ts +602 -0
  132. package/dist/src/receipt-method/schema.d.ts +205 -0
  133. package/dist/src/receipt-method/service.d.ts +152 -0
  134. package/dist/src/referral/admin.router.d.ts +562 -0
  135. package/dist/src/referral/db.schemas.d.ts +420 -0
  136. package/dist/src/referral/dto.schemas.d.ts +665 -0
  137. package/dist/src/referral/errors/index.d.ts +14 -0
  138. package/dist/src/referral/errors/locales/zh.d.ts +13 -0
  139. package/dist/src/referral/index.d.ts +6 -0
  140. package/dist/src/referral/permissions.d.ts +8 -0
  141. package/dist/src/referral/router.d.ts +579 -0
  142. package/dist/src/referral/schema.d.ts +235 -0
  143. package/dist/src/referral/service.d.ts +42 -0
  144. package/dist/src/referral-depth-config/admin.router.d.ts +646 -0
  145. package/dist/src/referral-depth-config/db.schemas.d.ts +176 -0
  146. package/dist/src/referral-depth-config/dto.schemas.d.ts +208 -0
  147. package/dist/src/referral-depth-config/errors/index.d.ts +11 -0
  148. package/dist/src/referral-depth-config/errors/locales/zh.d.ts +10 -0
  149. package/dist/src/referral-depth-config/index.d.ts +5 -0
  150. package/dist/src/referral-depth-config/permissions.d.ts +8 -0
  151. package/dist/src/referral-depth-config/schema.d.ts +99 -0
  152. package/dist/src/referral-depth-config/service.d.ts +56 -0
  153. package/dist/src/server-test/errors/index.d.ts +10 -0
  154. package/dist/src/server-test/errors/locales/zh.d.ts +9 -0
  155. package/dist/src/server-test/index.d.ts +486 -0
  156. package/dist/src/shipping-address/admin.router.d.ts +507 -0
  157. package/dist/src/shipping-address/db.schemas.d.ts +278 -0
  158. package/dist/src/shipping-address/dto.schemas.d.ts +303 -0
  159. package/dist/src/shipping-address/index.d.ts +7 -0
  160. package/dist/src/shipping-address/permissions.d.ts +4 -0
  161. package/dist/src/shipping-address/router.d.ts +621 -0
  162. package/dist/src/shipping-address/schema.d.ts +150 -0
  163. package/dist/src/shipping-address/service.d.ts +109 -0
  164. package/dist/src/sms/index.d.ts +5 -0
  165. package/dist/src/subscription/admin.router.d.ts +818 -0
  166. package/dist/src/subscription/cron.d.ts +53 -0
  167. package/dist/src/subscription/db.schemas.d.ts +896 -0
  168. package/dist/src/subscription/dto.schemas.d.ts +1942 -0
  169. package/dist/src/subscription/errors/index.d.ts +21 -0
  170. package/dist/src/subscription/errors/locales/zh.d.ts +20 -0
  171. package/dist/src/subscription/index.d.ts +7 -0
  172. package/dist/src/subscription/permissions.d.ts +5 -0
  173. package/dist/src/subscription/router.d.ts +625 -0
  174. package/dist/src/subscription/schema.d.ts +475 -0
  175. package/dist/src/subscription/service.d.ts +306 -0
  176. package/dist/src/team/admin.router.d.ts +569 -0
  177. package/dist/src/team/dto.schemas.d.ts +2110 -0
  178. package/dist/src/team/errors/index.d.ts +12 -0
  179. package/dist/src/team/errors/locales/zh.d.ts +11 -0
  180. package/dist/src/team/index.d.ts +5 -0
  181. package/dist/src/team/permissions.d.ts +7 -0
  182. package/dist/src/team/router.d.ts +737 -0
  183. package/dist/src/team/service.d.ts +40 -0
  184. package/dist/src/transfer/admin.router.d.ts +595 -0
  185. package/dist/src/transfer/db.schemas.d.ts +318 -0
  186. package/dist/src/transfer/dto.schemas.d.ts +4209 -0
  187. package/dist/src/transfer/errors/index.d.ts +32 -0
  188. package/dist/src/transfer/errors/locales/zh.d.ts +19 -0
  189. package/dist/src/transfer/index.d.ts +8 -0
  190. package/dist/src/transfer/permissions.d.ts +8 -0
  191. package/dist/src/transfer/router.d.ts +597 -0
  192. package/dist/src/transfer/schema.d.ts +169 -0
  193. package/dist/src/transfer/service.d.ts +232 -0
  194. package/dist/src/user/admin.router.d.ts +827 -0
  195. package/dist/src/user/db.schemas.d.ts +1038 -0
  196. package/dist/src/user/dto.schemas.d.ts +1446 -0
  197. package/dist/src/user/errors/index.d.ts +38 -0
  198. package/dist/src/user/errors/locales/zh.d.ts +22 -0
  199. package/dist/src/user/index.d.ts +7 -0
  200. package/dist/src/user/permissions.d.ts +7 -0
  201. package/dist/src/user/router.d.ts +560 -0
  202. package/dist/src/user/schema.d.ts +541 -0
  203. package/dist/src/user/service.d.ts +294 -0
  204. package/dist/src/user-kyc/admin.router.d.ts +669 -0
  205. package/dist/src/user-kyc/db.schemas.d.ts +896 -0
  206. package/dist/src/user-kyc/dto.schemas.d.ts +939 -0
  207. package/dist/src/user-kyc/errors/index.d.ts +21 -0
  208. package/dist/src/user-kyc/errors/locales/zh.d.ts +14 -0
  209. package/dist/src/user-kyc/index.d.ts +8 -0
  210. package/dist/src/user-kyc/permissions.d.ts +6 -0
  211. package/dist/src/user-kyc/router.d.ts +602 -0
  212. package/dist/src/user-kyc/schema.d.ts +474 -0
  213. package/dist/src/user-kyc/service.d.ts +170 -0
  214. package/dist/src/user-security/admin.router.d.ts +493 -0
  215. package/dist/src/user-security/db.schemas.d.ts +414 -0
  216. package/dist/src/user-security/dto.schemas.d.ts +36 -0
  217. package/dist/src/user-security/index.d.ts +6 -0
  218. package/dist/src/user-security/router.d.ts +547 -0
  219. package/dist/src/user-security/schema.d.ts +215 -0
  220. package/dist/src/user-security/service.d.ts +51 -0
  221. package/dist/src/utils/date.d.ts +21 -0
  222. package/dist/src/utils/index.d.ts +4 -0
  223. package/dist/src/utils/order.d.ts +6 -0
  224. package/dist/src/utils/pagination.d.ts +113 -0
  225. package/dist/src/utils/password.d.ts +8 -0
  226. package/dist/src/wallet/admin.router.d.ts +616 -0
  227. package/dist/src/wallet/db.schemas.d.ts +278 -0
  228. package/dist/src/wallet/dto.schemas.d.ts +1690 -0
  229. package/dist/src/wallet/ensure.d.ts +11 -0
  230. package/dist/src/wallet/index.d.ts +6 -0
  231. package/dist/src/wallet/router.d.ts +654 -0
  232. package/dist/src/wallet/schema.d.ts +152 -0
  233. package/dist/src/wallet/service.d.ts +225 -0
  234. package/dist/src/wallet-import/admin.router.d.ts +690 -0
  235. package/dist/src/wallet-import/db.schemas.d.ts +1070 -0
  236. package/dist/src/wallet-import/dto.schemas.d.ts +1119 -0
  237. package/dist/src/wallet-import/errors/index.d.ts +17 -0
  238. package/dist/src/wallet-import/errors/locales/zh.d.ts +16 -0
  239. package/dist/src/wallet-import/index.d.ts +8 -0
  240. package/dist/src/wallet-import/permissions.d.ts +7 -0
  241. package/dist/src/wallet-import/schema.d.ts +566 -0
  242. package/dist/src/wallet-import/service.d.ts +101 -0
  243. package/dist/src/wallet-import/worker.d.ts +1 -0
  244. package/dist/src/wallet-transfer/dto.schemas.d.ts +64 -0
  245. package/dist/src/wallet-transfer/errors/index.d.ts +25 -0
  246. package/dist/src/wallet-transfer/errors/locales/zh.d.ts +16 -0
  247. package/dist/src/wallet-transfer/index.d.ts +4 -0
  248. package/dist/src/wallet-transfer/router.d.ts +465 -0
  249. package/dist/src/wallet-transfer/service.d.ts +26 -0
  250. package/dist/src/wallet-type/admin.router.d.ts +767 -0
  251. package/dist/src/wallet-type/constants.d.ts +4 -0
  252. package/dist/src/wallet-type/db.schemas.d.ts +794 -0
  253. package/dist/src/wallet-type/dto.schemas.d.ts +160 -0
  254. package/dist/src/wallet-type/errors/index.d.ts +25 -0
  255. package/dist/src/wallet-type/errors/locales/zh.d.ts +16 -0
  256. package/dist/src/wallet-type/index.d.ts +7 -0
  257. package/dist/src/wallet-type/permissions.d.ts +5 -0
  258. package/dist/src/wallet-type/schema.d.ts +408 -0
  259. package/dist/src/wallet-type/seed.d.ts +4 -0
  260. package/dist/src/wallet-type/service.d.ts +208 -0
  261. package/dist/src/withdraw/admin.router.d.ts +654 -0
  262. package/dist/src/withdraw/db.schemas.d.ts +516 -0
  263. package/dist/src/withdraw/dto.schemas.d.ts +816 -0
  264. package/dist/src/withdraw/errors/index.d.ts +41 -0
  265. package/dist/src/withdraw/errors/locales/zh.d.ts +22 -0
  266. package/dist/src/withdraw/index.d.ts +7 -0
  267. package/dist/src/withdraw/permissions.d.ts +9 -0
  268. package/dist/src/withdraw/router.d.ts +522 -0
  269. package/dist/src/withdraw/schema.d.ts +272 -0
  270. package/dist/src/withdraw/service.d.ts +143 -0
  271. package/package.json +19 -0
@@ -0,0 +1,1238 @@
1
+ import type { PaginationInput } from "../utils/pagination";
2
+ export declare const generateUploadUrlSchema: import("@sinclair/typebox").TObject<{
3
+ fileName: import("@sinclair/typebox").TString;
4
+ fileSize: import("@sinclair/typebox").TInteger;
5
+ businessType: import("@sinclair/typebox").TEnum<{
6
+ other: "other";
7
+ kyc_document: "kyc_document";
8
+ contract: "contract";
9
+ financial_report: "financial_report";
10
+ wallet_import: "wallet_import";
11
+ avatar: "avatar";
12
+ cover_image: "cover_image";
13
+ notification_attachment: "notification_attachment";
14
+ transaction_receipt: "transaction_receipt";
15
+ export_report: "export_report";
16
+ bank_verification: "bank_verification";
17
+ news_attachment: "news_attachment";
18
+ }>;
19
+ fileExtension: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
20
+ mimeType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
21
+ businessId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
22
+ businessMetadata: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
23
+ accessControl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
24
+ private: "private";
25
+ restricted: "restricted";
26
+ public: "public";
27
+ }>, import("@sinclair/typebox").TNull]>>;
28
+ expiresIn: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
29
+ }>;
30
+ export type GenerateUploadUrlInput = typeof generateUploadUrlSchema.static;
31
+ export declare const confirmUploadSchema: import("@sinclair/typebox").TObject<{
32
+ fileId: import("@sinclair/typebox").TString;
33
+ fileHash: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
34
+ }>;
35
+ export type ConfirmUploadInput = typeof confirmUploadSchema.static;
36
+ export declare const uploadUrlResponseSchema: import("@sinclair/typebox").TObject<{
37
+ fileId: import("@sinclair/typebox").TString;
38
+ uploadUrl: import("@sinclair/typebox").TString;
39
+ method: import("@sinclair/typebox").TLiteral<"PUT">;
40
+ headers: import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>;
41
+ publicUrl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
42
+ mimeType: import("@sinclair/typebox").TString;
43
+ expiresIn: import("@sinclair/typebox").TInteger;
44
+ expiresAt: import("@sinclair/typebox").TInteger;
45
+ }>;
46
+ export type UploadUrlResponse = typeof uploadUrlResponseSchema.static;
47
+ export declare const generateAccessUrlSchema: import("@sinclair/typebox").TObject<{
48
+ fileId: import("@sinclair/typebox").TString;
49
+ expiresIn: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
50
+ }>;
51
+ export type GenerateAccessUrlInput = typeof generateAccessUrlSchema.static;
52
+ export declare const generateBatchAccessUrlsSchema: import("@sinclair/typebox").TObject<{
53
+ fileIds: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
54
+ expiresIn: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
55
+ }>;
56
+ export type GenerateBatchAccessUrlsInput = typeof generateBatchAccessUrlsSchema.static;
57
+ export declare const batchFileAccessUrlItemSchema: import("@sinclair/typebox").TObject<{
58
+ id: import("@sinclair/typebox").TString;
59
+ url: import("@sinclair/typebox").TString;
60
+ fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
61
+ expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
62
+ }>;
63
+ export type BatchFileAccessUrlsResponse = Array<typeof batchFileAccessUrlItemSchema.static>;
64
+ export declare const fileAccessUrlResponseSchema: import("@sinclair/typebox").TObject<{
65
+ id: import("@sinclair/typebox").TString;
66
+ url: import("@sinclair/typebox").TString;
67
+ fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
68
+ expiresAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
69
+ }>;
70
+ export declare const listFilesSchema: import("@sinclair/typebox").TObject<{
71
+ businessType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
72
+ other: "other";
73
+ kyc_document: "kyc_document";
74
+ contract: "contract";
75
+ financial_report: "financial_report";
76
+ wallet_import: "wallet_import";
77
+ avatar: "avatar";
78
+ cover_image: "cover_image";
79
+ notification_attachment: "notification_attachment";
80
+ transaction_receipt: "transaction_receipt";
81
+ export_report: "export_report";
82
+ bank_verification: "bank_verification";
83
+ news_attachment: "news_attachment";
84
+ }>>;
85
+ businessId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
86
+ status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
87
+ uploading: "uploading";
88
+ active: "active";
89
+ archived: "archived";
90
+ pending_deletion: "pending_deletion";
91
+ }>, import("@sinclair/typebox").TNull]>>;
92
+ accessControl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
93
+ private: "private";
94
+ restricted: "restricted";
95
+ public: "public";
96
+ }>, import("@sinclair/typebox").TNull]>>;
97
+ isVerified: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
98
+ }>;
99
+ export type ListFilesInput = typeof listFilesSchema.static & PaginationInput;
100
+ export declare const listUserFilesQuerySchema: import("@sinclair/typebox").TObject<{
101
+ businessType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
102
+ other: "other";
103
+ kyc_document: "kyc_document";
104
+ contract: "contract";
105
+ financial_report: "financial_report";
106
+ wallet_import: "wallet_import";
107
+ avatar: "avatar";
108
+ cover_image: "cover_image";
109
+ notification_attachment: "notification_attachment";
110
+ transaction_receipt: "transaction_receipt";
111
+ export_report: "export_report";
112
+ bank_verification: "bank_verification";
113
+ news_attachment: "news_attachment";
114
+ }>>;
115
+ businessId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
116
+ status: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
117
+ uploading: "uploading";
118
+ active: "active";
119
+ archived: "archived";
120
+ pending_deletion: "pending_deletion";
121
+ }>, import("@sinclair/typebox").TNull]>>;
122
+ accessControl: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
123
+ private: "private";
124
+ restricted: "restricted";
125
+ public: "public";
126
+ }>, import("@sinclair/typebox").TNull]>>;
127
+ isVerified: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
128
+ limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
129
+ offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
130
+ pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
131
+ pageIndex: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
132
+ }>;
133
+ export declare const listUserFilesResponseSchema: import("@sinclair/typebox").TObject<{
134
+ data: import("@sinclair/typebox").TArray<import("drizzle-typebox").BuildSchema<"select", {
135
+ deletedAt: import("drizzle-orm/pg-core").PgColumn<{
136
+ name: "deleted_at";
137
+ tableName: "file_storage";
138
+ dataType: "date";
139
+ columnType: "PgTimestamp";
140
+ data: Date;
141
+ driverParam: string;
142
+ notNull: false;
143
+ hasDefault: false;
144
+ isPrimaryKey: false;
145
+ isAutoincrement: false;
146
+ hasRuntimeDefault: false;
147
+ enumValues: undefined;
148
+ baseColumn: never;
149
+ identity: undefined;
150
+ generated: undefined;
151
+ }, {}, {}>;
152
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
153
+ name: "created_at";
154
+ tableName: "file_storage";
155
+ dataType: "date";
156
+ columnType: "PgTimestamp";
157
+ data: Date;
158
+ driverParam: string;
159
+ notNull: true;
160
+ hasDefault: true;
161
+ isPrimaryKey: false;
162
+ isAutoincrement: false;
163
+ hasRuntimeDefault: false;
164
+ enumValues: undefined;
165
+ baseColumn: never;
166
+ identity: undefined;
167
+ generated: undefined;
168
+ }, {}, {}>;
169
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
170
+ name: "updated_at";
171
+ tableName: "file_storage";
172
+ dataType: "date";
173
+ columnType: "PgTimestamp";
174
+ data: Date;
175
+ driverParam: string;
176
+ notNull: true;
177
+ hasDefault: true;
178
+ isPrimaryKey: false;
179
+ isAutoincrement: false;
180
+ hasRuntimeDefault: false;
181
+ enumValues: undefined;
182
+ baseColumn: never;
183
+ identity: undefined;
184
+ generated: undefined;
185
+ }, {}, {}>;
186
+ id: import("drizzle-orm/pg-core").PgColumn<{
187
+ name: "id";
188
+ tableName: "file_storage";
189
+ dataType: "string";
190
+ columnType: "PgText";
191
+ data: string;
192
+ driverParam: string;
193
+ notNull: true;
194
+ hasDefault: true;
195
+ isPrimaryKey: true;
196
+ isAutoincrement: false;
197
+ hasRuntimeDefault: false;
198
+ enumValues: [string, ...string[]];
199
+ baseColumn: never;
200
+ identity: undefined;
201
+ generated: undefined;
202
+ }, {}, {}>;
203
+ fileName: import("drizzle-orm/pg-core").PgColumn<{
204
+ name: "file_name";
205
+ tableName: "file_storage";
206
+ dataType: "string";
207
+ columnType: "PgText";
208
+ data: string;
209
+ driverParam: string;
210
+ notNull: false;
211
+ hasDefault: false;
212
+ isPrimaryKey: false;
213
+ isAutoincrement: false;
214
+ hasRuntimeDefault: false;
215
+ enumValues: [string, ...string[]];
216
+ baseColumn: never;
217
+ identity: undefined;
218
+ generated: undefined;
219
+ }, {}, {}>;
220
+ fileSize: import("drizzle-orm/pg-core").PgColumn<{
221
+ name: "file_size";
222
+ tableName: "file_storage";
223
+ dataType: "number";
224
+ columnType: "PgInteger";
225
+ data: number;
226
+ driverParam: string | number;
227
+ notNull: false;
228
+ hasDefault: false;
229
+ isPrimaryKey: false;
230
+ isAutoincrement: false;
231
+ hasRuntimeDefault: false;
232
+ enumValues: undefined;
233
+ baseColumn: never;
234
+ identity: undefined;
235
+ generated: undefined;
236
+ }, {}, {}>;
237
+ mimeType: import("drizzle-orm/pg-core").PgColumn<{
238
+ name: "mime_type";
239
+ tableName: "file_storage";
240
+ dataType: "string";
241
+ columnType: "PgText";
242
+ data: string;
243
+ driverParam: string;
244
+ notNull: false;
245
+ hasDefault: false;
246
+ isPrimaryKey: false;
247
+ isAutoincrement: false;
248
+ hasRuntimeDefault: false;
249
+ enumValues: [string, ...string[]];
250
+ baseColumn: never;
251
+ identity: undefined;
252
+ generated: undefined;
253
+ }, {}, {}>;
254
+ fileExtension: import("drizzle-orm/pg-core").PgColumn<{
255
+ name: "file_extension";
256
+ tableName: "file_storage";
257
+ dataType: "string";
258
+ columnType: "PgText";
259
+ data: string;
260
+ driverParam: string;
261
+ notNull: false;
262
+ hasDefault: false;
263
+ isPrimaryKey: false;
264
+ isAutoincrement: false;
265
+ hasRuntimeDefault: false;
266
+ enumValues: [string, ...string[]];
267
+ baseColumn: never;
268
+ identity: undefined;
269
+ generated: undefined;
270
+ }, {}, {}>;
271
+ fileHash: import("drizzle-orm/pg-core").PgColumn<{
272
+ name: "file_hash";
273
+ tableName: "file_storage";
274
+ dataType: "string";
275
+ columnType: "PgText";
276
+ data: string;
277
+ driverParam: string;
278
+ notNull: false;
279
+ hasDefault: false;
280
+ isPrimaryKey: false;
281
+ isAutoincrement: false;
282
+ hasRuntimeDefault: false;
283
+ enumValues: [string, ...string[]];
284
+ baseColumn: never;
285
+ identity: undefined;
286
+ generated: undefined;
287
+ }, {}, {}>;
288
+ s3Bucket: import("drizzle-orm/pg-core").PgColumn<{
289
+ name: "s3_bucket";
290
+ tableName: "file_storage";
291
+ dataType: "string";
292
+ columnType: "PgText";
293
+ data: string;
294
+ driverParam: string;
295
+ notNull: true;
296
+ hasDefault: false;
297
+ isPrimaryKey: false;
298
+ isAutoincrement: false;
299
+ hasRuntimeDefault: false;
300
+ enumValues: [string, ...string[]];
301
+ baseColumn: never;
302
+ identity: undefined;
303
+ generated: undefined;
304
+ }, {}, {}>;
305
+ s3Key: import("drizzle-orm/pg-core").PgColumn<{
306
+ name: "s3_key";
307
+ tableName: "file_storage";
308
+ dataType: "string";
309
+ columnType: "PgText";
310
+ data: string;
311
+ driverParam: string;
312
+ notNull: true;
313
+ hasDefault: false;
314
+ isPrimaryKey: false;
315
+ isAutoincrement: false;
316
+ hasRuntimeDefault: false;
317
+ enumValues: [string, ...string[]];
318
+ baseColumn: never;
319
+ identity: undefined;
320
+ generated: undefined;
321
+ }, {}, {}>;
322
+ s3Region: import("drizzle-orm/pg-core").PgColumn<{
323
+ name: "s3_region";
324
+ tableName: "file_storage";
325
+ dataType: "string";
326
+ columnType: "PgText";
327
+ data: string;
328
+ driverParam: string;
329
+ notNull: true;
330
+ hasDefault: false;
331
+ isPrimaryKey: false;
332
+ isAutoincrement: false;
333
+ hasRuntimeDefault: false;
334
+ enumValues: [string, ...string[]];
335
+ baseColumn: never;
336
+ identity: undefined;
337
+ generated: undefined;
338
+ }, {}, {}>;
339
+ s3ETag: import("drizzle-orm/pg-core").PgColumn<{
340
+ name: "s3_etag";
341
+ tableName: "file_storage";
342
+ dataType: "string";
343
+ columnType: "PgText";
344
+ data: string;
345
+ driverParam: string;
346
+ notNull: false;
347
+ hasDefault: false;
348
+ isPrimaryKey: false;
349
+ isAutoincrement: false;
350
+ hasRuntimeDefault: false;
351
+ enumValues: [string, ...string[]];
352
+ baseColumn: never;
353
+ identity: undefined;
354
+ generated: undefined;
355
+ }, {}, {}>;
356
+ businessType: import("drizzle-orm/pg-core").PgColumn<{
357
+ name: "business_type";
358
+ tableName: "file_storage";
359
+ dataType: "string";
360
+ columnType: "PgEnumColumn";
361
+ data: "other" | "kyc_document" | "contract" | "financial_report" | "wallet_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
362
+ driverParam: string;
363
+ notNull: true;
364
+ hasDefault: false;
365
+ isPrimaryKey: false;
366
+ isAutoincrement: false;
367
+ hasRuntimeDefault: false;
368
+ enumValues: ["kyc_document", "contract", "financial_report", "wallet_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
369
+ baseColumn: never;
370
+ identity: undefined;
371
+ generated: undefined;
372
+ }, {}, {}>;
373
+ businessId: import("drizzle-orm/pg-core").PgColumn<{
374
+ name: "business_id";
375
+ tableName: "file_storage";
376
+ dataType: "string";
377
+ columnType: "PgText";
378
+ data: string;
379
+ driverParam: string;
380
+ notNull: false;
381
+ hasDefault: false;
382
+ isPrimaryKey: false;
383
+ isAutoincrement: false;
384
+ hasRuntimeDefault: false;
385
+ enumValues: [string, ...string[]];
386
+ baseColumn: never;
387
+ identity: undefined;
388
+ generated: undefined;
389
+ }, {}, {}>;
390
+ businessMetadata: import("drizzle-orm/pg-core").PgColumn<{
391
+ name: "business_metadata";
392
+ tableName: "file_storage";
393
+ dataType: "string";
394
+ columnType: "PgText";
395
+ data: string;
396
+ driverParam: string;
397
+ notNull: false;
398
+ hasDefault: false;
399
+ isPrimaryKey: false;
400
+ isAutoincrement: false;
401
+ hasRuntimeDefault: false;
402
+ enumValues: [string, ...string[]];
403
+ baseColumn: never;
404
+ identity: undefined;
405
+ generated: undefined;
406
+ }, {}, {}>;
407
+ ownerId: import("drizzle-orm/pg-core").PgColumn<{
408
+ name: "owner_id";
409
+ tableName: "file_storage";
410
+ dataType: "string";
411
+ columnType: "PgText";
412
+ data: string;
413
+ driverParam: string;
414
+ notNull: true;
415
+ hasDefault: false;
416
+ isPrimaryKey: false;
417
+ isAutoincrement: false;
418
+ hasRuntimeDefault: false;
419
+ enumValues: [string, ...string[]];
420
+ baseColumn: never;
421
+ identity: undefined;
422
+ generated: undefined;
423
+ }, {}, {}>;
424
+ accessControl: import("drizzle-orm/pg-core").PgColumn<{
425
+ name: "access_control";
426
+ tableName: "file_storage";
427
+ dataType: "string";
428
+ columnType: "PgEnumColumn";
429
+ data: "private" | "restricted" | "public";
430
+ driverParam: string;
431
+ notNull: false;
432
+ hasDefault: true;
433
+ isPrimaryKey: false;
434
+ isAutoincrement: false;
435
+ hasRuntimeDefault: false;
436
+ enumValues: ["private", "restricted", "public"];
437
+ baseColumn: never;
438
+ identity: undefined;
439
+ generated: undefined;
440
+ }, {}, {}>;
441
+ status: import("drizzle-orm/pg-core").PgColumn<{
442
+ name: "status";
443
+ tableName: "file_storage";
444
+ dataType: "string";
445
+ columnType: "PgEnumColumn";
446
+ data: "uploading" | "active" | "archived" | "pending_deletion";
447
+ driverParam: string;
448
+ notNull: false;
449
+ hasDefault: true;
450
+ isPrimaryKey: false;
451
+ isAutoincrement: false;
452
+ hasRuntimeDefault: false;
453
+ enumValues: ["uploading", "active", "archived", "pending_deletion"];
454
+ baseColumn: never;
455
+ identity: undefined;
456
+ generated: undefined;
457
+ }, {}, {}>;
458
+ publicUrl: import("drizzle-orm/pg-core").PgColumn<{
459
+ name: "public_url";
460
+ tableName: "file_storage";
461
+ dataType: "string";
462
+ columnType: "PgText";
463
+ data: string;
464
+ driverParam: string;
465
+ notNull: false;
466
+ hasDefault: false;
467
+ isPrimaryKey: false;
468
+ isAutoincrement: false;
469
+ hasRuntimeDefault: false;
470
+ enumValues: [string, ...string[]];
471
+ baseColumn: never;
472
+ identity: undefined;
473
+ generated: undefined;
474
+ }, {}, {}>;
475
+ thumbnailUrl: import("drizzle-orm/pg-core").PgColumn<{
476
+ name: "thumbnail_url";
477
+ tableName: "file_storage";
478
+ dataType: "string";
479
+ columnType: "PgText";
480
+ data: string;
481
+ driverParam: string;
482
+ notNull: false;
483
+ hasDefault: false;
484
+ isPrimaryKey: false;
485
+ isAutoincrement: false;
486
+ hasRuntimeDefault: false;
487
+ enumValues: [string, ...string[]];
488
+ baseColumn: never;
489
+ identity: undefined;
490
+ generated: undefined;
491
+ }, {}, {}>;
492
+ archivedAt: import("drizzle-orm/pg-core").PgColumn<{
493
+ name: "archived_at";
494
+ tableName: "file_storage";
495
+ dataType: "date";
496
+ columnType: "PgTimestamp";
497
+ data: Date;
498
+ driverParam: string;
499
+ notNull: false;
500
+ hasDefault: false;
501
+ isPrimaryKey: false;
502
+ isAutoincrement: false;
503
+ hasRuntimeDefault: false;
504
+ enumValues: undefined;
505
+ baseColumn: never;
506
+ identity: undefined;
507
+ generated: undefined;
508
+ }, {}, {}>;
509
+ uploadCompletedAt: import("drizzle-orm/pg-core").PgColumn<{
510
+ name: "upload_completed_at";
511
+ tableName: "file_storage";
512
+ dataType: "date";
513
+ columnType: "PgTimestamp";
514
+ data: Date;
515
+ driverParam: string;
516
+ notNull: false;
517
+ hasDefault: false;
518
+ isPrimaryKey: false;
519
+ isAutoincrement: false;
520
+ hasRuntimeDefault: false;
521
+ enumValues: undefined;
522
+ baseColumn: never;
523
+ identity: undefined;
524
+ generated: undefined;
525
+ }, {}, {}>;
526
+ uploadIpAddress: import("drizzle-orm/pg-core").PgColumn<{
527
+ name: "upload_ip_address";
528
+ tableName: "file_storage";
529
+ dataType: "string";
530
+ columnType: "PgText";
531
+ data: string;
532
+ driverParam: string;
533
+ notNull: false;
534
+ hasDefault: false;
535
+ isPrimaryKey: false;
536
+ isAutoincrement: false;
537
+ hasRuntimeDefault: false;
538
+ enumValues: [string, ...string[]];
539
+ baseColumn: never;
540
+ identity: undefined;
541
+ generated: undefined;
542
+ }, {}, {}>;
543
+ downloadCount: import("drizzle-orm/pg-core").PgColumn<{
544
+ name: "download_count";
545
+ tableName: "file_storage";
546
+ dataType: "number";
547
+ columnType: "PgInteger";
548
+ data: number;
549
+ driverParam: string | number;
550
+ notNull: false;
551
+ hasDefault: true;
552
+ isPrimaryKey: false;
553
+ isAutoincrement: false;
554
+ hasRuntimeDefault: false;
555
+ enumValues: undefined;
556
+ baseColumn: never;
557
+ identity: undefined;
558
+ generated: undefined;
559
+ }, {}, {}>;
560
+ lastDownloadedAt: import("drizzle-orm/pg-core").PgColumn<{
561
+ name: "last_downloaded_at";
562
+ tableName: "file_storage";
563
+ dataType: "date";
564
+ columnType: "PgTimestamp";
565
+ data: Date;
566
+ driverParam: string;
567
+ notNull: false;
568
+ hasDefault: false;
569
+ isPrimaryKey: false;
570
+ isAutoincrement: false;
571
+ hasRuntimeDefault: false;
572
+ enumValues: undefined;
573
+ baseColumn: never;
574
+ identity: undefined;
575
+ generated: undefined;
576
+ }, {}, {}>;
577
+ isVerified: import("drizzle-orm/pg-core").PgColumn<{
578
+ name: "is_verified";
579
+ tableName: "file_storage";
580
+ dataType: "boolean";
581
+ columnType: "PgBoolean";
582
+ data: boolean;
583
+ driverParam: boolean;
584
+ notNull: false;
585
+ hasDefault: true;
586
+ isPrimaryKey: false;
587
+ isAutoincrement: false;
588
+ hasRuntimeDefault: false;
589
+ enumValues: undefined;
590
+ baseColumn: never;
591
+ identity: undefined;
592
+ generated: undefined;
593
+ }, {}, {}>;
594
+ verifiedBy: import("drizzle-orm/pg-core").PgColumn<{
595
+ name: "verified_by";
596
+ tableName: "file_storage";
597
+ dataType: "string";
598
+ columnType: "PgText";
599
+ data: string;
600
+ driverParam: string;
601
+ notNull: false;
602
+ hasDefault: false;
603
+ isPrimaryKey: false;
604
+ isAutoincrement: false;
605
+ hasRuntimeDefault: false;
606
+ enumValues: [string, ...string[]];
607
+ baseColumn: never;
608
+ identity: undefined;
609
+ generated: undefined;
610
+ }, {}, {}>;
611
+ verifiedAt: import("drizzle-orm/pg-core").PgColumn<{
612
+ name: "verified_at";
613
+ tableName: "file_storage";
614
+ dataType: "date";
615
+ columnType: "PgTimestamp";
616
+ data: Date;
617
+ driverParam: string;
618
+ notNull: false;
619
+ hasDefault: false;
620
+ isPrimaryKey: false;
621
+ isAutoincrement: false;
622
+ hasRuntimeDefault: false;
623
+ enumValues: undefined;
624
+ baseColumn: never;
625
+ identity: undefined;
626
+ generated: undefined;
627
+ }, {}, {}>;
628
+ verificationNote: import("drizzle-orm/pg-core").PgColumn<{
629
+ name: "verification_note";
630
+ tableName: "file_storage";
631
+ dataType: "string";
632
+ columnType: "PgText";
633
+ data: string;
634
+ driverParam: string;
635
+ notNull: false;
636
+ hasDefault: false;
637
+ isPrimaryKey: false;
638
+ isAutoincrement: false;
639
+ hasRuntimeDefault: false;
640
+ enumValues: [string, ...string[]];
641
+ baseColumn: never;
642
+ identity: undefined;
643
+ generated: undefined;
644
+ }, {}, {}>;
645
+ }, undefined>>;
646
+ pagination: import("@sinclair/typebox").TObject<{
647
+ pageSize: import("@sinclair/typebox").TNumber;
648
+ pageIndex: import("@sinclair/typebox").TNumber;
649
+ total: import("@sinclair/typebox").TNumber;
650
+ totalPages: import("@sinclair/typebox").TNumber;
651
+ hasNextPage: import("@sinclair/typebox").TBoolean;
652
+ }>;
653
+ }>;
654
+ export declare const getFileByIdParamsSchema: import("@sinclair/typebox").TObject<{
655
+ id: import("@sinclair/typebox").TString;
656
+ }>;
657
+ export declare const getFileByIdResponseSchema: import("drizzle-typebox").BuildSchema<"select", {
658
+ deletedAt: import("drizzle-orm/pg-core").PgColumn<{
659
+ name: "deleted_at";
660
+ tableName: "file_storage";
661
+ dataType: "date";
662
+ columnType: "PgTimestamp";
663
+ data: Date;
664
+ driverParam: string;
665
+ notNull: false;
666
+ hasDefault: false;
667
+ isPrimaryKey: false;
668
+ isAutoincrement: false;
669
+ hasRuntimeDefault: false;
670
+ enumValues: undefined;
671
+ baseColumn: never;
672
+ identity: undefined;
673
+ generated: undefined;
674
+ }, {}, {}>;
675
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
676
+ name: "created_at";
677
+ tableName: "file_storage";
678
+ dataType: "date";
679
+ columnType: "PgTimestamp";
680
+ data: Date;
681
+ driverParam: string;
682
+ notNull: true;
683
+ hasDefault: true;
684
+ isPrimaryKey: false;
685
+ isAutoincrement: false;
686
+ hasRuntimeDefault: false;
687
+ enumValues: undefined;
688
+ baseColumn: never;
689
+ identity: undefined;
690
+ generated: undefined;
691
+ }, {}, {}>;
692
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
693
+ name: "updated_at";
694
+ tableName: "file_storage";
695
+ dataType: "date";
696
+ columnType: "PgTimestamp";
697
+ data: Date;
698
+ driverParam: string;
699
+ notNull: true;
700
+ hasDefault: true;
701
+ isPrimaryKey: false;
702
+ isAutoincrement: false;
703
+ hasRuntimeDefault: false;
704
+ enumValues: undefined;
705
+ baseColumn: never;
706
+ identity: undefined;
707
+ generated: undefined;
708
+ }, {}, {}>;
709
+ id: import("drizzle-orm/pg-core").PgColumn<{
710
+ name: "id";
711
+ tableName: "file_storage";
712
+ dataType: "string";
713
+ columnType: "PgText";
714
+ data: string;
715
+ driverParam: string;
716
+ notNull: true;
717
+ hasDefault: true;
718
+ isPrimaryKey: true;
719
+ isAutoincrement: false;
720
+ hasRuntimeDefault: false;
721
+ enumValues: [string, ...string[]];
722
+ baseColumn: never;
723
+ identity: undefined;
724
+ generated: undefined;
725
+ }, {}, {}>;
726
+ fileName: import("drizzle-orm/pg-core").PgColumn<{
727
+ name: "file_name";
728
+ tableName: "file_storage";
729
+ dataType: "string";
730
+ columnType: "PgText";
731
+ data: string;
732
+ driverParam: string;
733
+ notNull: false;
734
+ hasDefault: false;
735
+ isPrimaryKey: false;
736
+ isAutoincrement: false;
737
+ hasRuntimeDefault: false;
738
+ enumValues: [string, ...string[]];
739
+ baseColumn: never;
740
+ identity: undefined;
741
+ generated: undefined;
742
+ }, {}, {}>;
743
+ fileSize: import("drizzle-orm/pg-core").PgColumn<{
744
+ name: "file_size";
745
+ tableName: "file_storage";
746
+ dataType: "number";
747
+ columnType: "PgInteger";
748
+ data: number;
749
+ driverParam: string | number;
750
+ notNull: false;
751
+ hasDefault: false;
752
+ isPrimaryKey: false;
753
+ isAutoincrement: false;
754
+ hasRuntimeDefault: false;
755
+ enumValues: undefined;
756
+ baseColumn: never;
757
+ identity: undefined;
758
+ generated: undefined;
759
+ }, {}, {}>;
760
+ mimeType: import("drizzle-orm/pg-core").PgColumn<{
761
+ name: "mime_type";
762
+ tableName: "file_storage";
763
+ dataType: "string";
764
+ columnType: "PgText";
765
+ data: string;
766
+ driverParam: string;
767
+ notNull: false;
768
+ hasDefault: false;
769
+ isPrimaryKey: false;
770
+ isAutoincrement: false;
771
+ hasRuntimeDefault: false;
772
+ enumValues: [string, ...string[]];
773
+ baseColumn: never;
774
+ identity: undefined;
775
+ generated: undefined;
776
+ }, {}, {}>;
777
+ fileExtension: import("drizzle-orm/pg-core").PgColumn<{
778
+ name: "file_extension";
779
+ tableName: "file_storage";
780
+ dataType: "string";
781
+ columnType: "PgText";
782
+ data: string;
783
+ driverParam: string;
784
+ notNull: false;
785
+ hasDefault: false;
786
+ isPrimaryKey: false;
787
+ isAutoincrement: false;
788
+ hasRuntimeDefault: false;
789
+ enumValues: [string, ...string[]];
790
+ baseColumn: never;
791
+ identity: undefined;
792
+ generated: undefined;
793
+ }, {}, {}>;
794
+ fileHash: import("drizzle-orm/pg-core").PgColumn<{
795
+ name: "file_hash";
796
+ tableName: "file_storage";
797
+ dataType: "string";
798
+ columnType: "PgText";
799
+ data: string;
800
+ driverParam: string;
801
+ notNull: false;
802
+ hasDefault: false;
803
+ isPrimaryKey: false;
804
+ isAutoincrement: false;
805
+ hasRuntimeDefault: false;
806
+ enumValues: [string, ...string[]];
807
+ baseColumn: never;
808
+ identity: undefined;
809
+ generated: undefined;
810
+ }, {}, {}>;
811
+ s3Bucket: import("drizzle-orm/pg-core").PgColumn<{
812
+ name: "s3_bucket";
813
+ tableName: "file_storage";
814
+ dataType: "string";
815
+ columnType: "PgText";
816
+ data: string;
817
+ driverParam: string;
818
+ notNull: true;
819
+ hasDefault: false;
820
+ isPrimaryKey: false;
821
+ isAutoincrement: false;
822
+ hasRuntimeDefault: false;
823
+ enumValues: [string, ...string[]];
824
+ baseColumn: never;
825
+ identity: undefined;
826
+ generated: undefined;
827
+ }, {}, {}>;
828
+ s3Key: import("drizzle-orm/pg-core").PgColumn<{
829
+ name: "s3_key";
830
+ tableName: "file_storage";
831
+ dataType: "string";
832
+ columnType: "PgText";
833
+ data: string;
834
+ driverParam: string;
835
+ notNull: true;
836
+ hasDefault: false;
837
+ isPrimaryKey: false;
838
+ isAutoincrement: false;
839
+ hasRuntimeDefault: false;
840
+ enumValues: [string, ...string[]];
841
+ baseColumn: never;
842
+ identity: undefined;
843
+ generated: undefined;
844
+ }, {}, {}>;
845
+ s3Region: import("drizzle-orm/pg-core").PgColumn<{
846
+ name: "s3_region";
847
+ tableName: "file_storage";
848
+ dataType: "string";
849
+ columnType: "PgText";
850
+ data: string;
851
+ driverParam: string;
852
+ notNull: true;
853
+ hasDefault: false;
854
+ isPrimaryKey: false;
855
+ isAutoincrement: false;
856
+ hasRuntimeDefault: false;
857
+ enumValues: [string, ...string[]];
858
+ baseColumn: never;
859
+ identity: undefined;
860
+ generated: undefined;
861
+ }, {}, {}>;
862
+ s3ETag: import("drizzle-orm/pg-core").PgColumn<{
863
+ name: "s3_etag";
864
+ tableName: "file_storage";
865
+ dataType: "string";
866
+ columnType: "PgText";
867
+ data: string;
868
+ driverParam: string;
869
+ notNull: false;
870
+ hasDefault: false;
871
+ isPrimaryKey: false;
872
+ isAutoincrement: false;
873
+ hasRuntimeDefault: false;
874
+ enumValues: [string, ...string[]];
875
+ baseColumn: never;
876
+ identity: undefined;
877
+ generated: undefined;
878
+ }, {}, {}>;
879
+ businessType: import("drizzle-orm/pg-core").PgColumn<{
880
+ name: "business_type";
881
+ tableName: "file_storage";
882
+ dataType: "string";
883
+ columnType: "PgEnumColumn";
884
+ data: "other" | "kyc_document" | "contract" | "financial_report" | "wallet_import" | "avatar" | "cover_image" | "notification_attachment" | "transaction_receipt" | "export_report" | "bank_verification" | "news_attachment";
885
+ driverParam: string;
886
+ notNull: true;
887
+ hasDefault: false;
888
+ isPrimaryKey: false;
889
+ isAutoincrement: false;
890
+ hasRuntimeDefault: false;
891
+ enumValues: ["kyc_document", "contract", "financial_report", "wallet_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "other"];
892
+ baseColumn: never;
893
+ identity: undefined;
894
+ generated: undefined;
895
+ }, {}, {}>;
896
+ businessId: import("drizzle-orm/pg-core").PgColumn<{
897
+ name: "business_id";
898
+ tableName: "file_storage";
899
+ dataType: "string";
900
+ columnType: "PgText";
901
+ data: string;
902
+ driverParam: string;
903
+ notNull: false;
904
+ hasDefault: false;
905
+ isPrimaryKey: false;
906
+ isAutoincrement: false;
907
+ hasRuntimeDefault: false;
908
+ enumValues: [string, ...string[]];
909
+ baseColumn: never;
910
+ identity: undefined;
911
+ generated: undefined;
912
+ }, {}, {}>;
913
+ businessMetadata: import("drizzle-orm/pg-core").PgColumn<{
914
+ name: "business_metadata";
915
+ tableName: "file_storage";
916
+ dataType: "string";
917
+ columnType: "PgText";
918
+ data: string;
919
+ driverParam: string;
920
+ notNull: false;
921
+ hasDefault: false;
922
+ isPrimaryKey: false;
923
+ isAutoincrement: false;
924
+ hasRuntimeDefault: false;
925
+ enumValues: [string, ...string[]];
926
+ baseColumn: never;
927
+ identity: undefined;
928
+ generated: undefined;
929
+ }, {}, {}>;
930
+ ownerId: import("drizzle-orm/pg-core").PgColumn<{
931
+ name: "owner_id";
932
+ tableName: "file_storage";
933
+ dataType: "string";
934
+ columnType: "PgText";
935
+ data: string;
936
+ driverParam: string;
937
+ notNull: true;
938
+ hasDefault: false;
939
+ isPrimaryKey: false;
940
+ isAutoincrement: false;
941
+ hasRuntimeDefault: false;
942
+ enumValues: [string, ...string[]];
943
+ baseColumn: never;
944
+ identity: undefined;
945
+ generated: undefined;
946
+ }, {}, {}>;
947
+ accessControl: import("drizzle-orm/pg-core").PgColumn<{
948
+ name: "access_control";
949
+ tableName: "file_storage";
950
+ dataType: "string";
951
+ columnType: "PgEnumColumn";
952
+ data: "private" | "restricted" | "public";
953
+ driverParam: string;
954
+ notNull: false;
955
+ hasDefault: true;
956
+ isPrimaryKey: false;
957
+ isAutoincrement: false;
958
+ hasRuntimeDefault: false;
959
+ enumValues: ["private", "restricted", "public"];
960
+ baseColumn: never;
961
+ identity: undefined;
962
+ generated: undefined;
963
+ }, {}, {}>;
964
+ status: import("drizzle-orm/pg-core").PgColumn<{
965
+ name: "status";
966
+ tableName: "file_storage";
967
+ dataType: "string";
968
+ columnType: "PgEnumColumn";
969
+ data: "uploading" | "active" | "archived" | "pending_deletion";
970
+ driverParam: string;
971
+ notNull: false;
972
+ hasDefault: true;
973
+ isPrimaryKey: false;
974
+ isAutoincrement: false;
975
+ hasRuntimeDefault: false;
976
+ enumValues: ["uploading", "active", "archived", "pending_deletion"];
977
+ baseColumn: never;
978
+ identity: undefined;
979
+ generated: undefined;
980
+ }, {}, {}>;
981
+ publicUrl: import("drizzle-orm/pg-core").PgColumn<{
982
+ name: "public_url";
983
+ tableName: "file_storage";
984
+ dataType: "string";
985
+ columnType: "PgText";
986
+ data: string;
987
+ driverParam: string;
988
+ notNull: false;
989
+ hasDefault: false;
990
+ isPrimaryKey: false;
991
+ isAutoincrement: false;
992
+ hasRuntimeDefault: false;
993
+ enumValues: [string, ...string[]];
994
+ baseColumn: never;
995
+ identity: undefined;
996
+ generated: undefined;
997
+ }, {}, {}>;
998
+ thumbnailUrl: import("drizzle-orm/pg-core").PgColumn<{
999
+ name: "thumbnail_url";
1000
+ tableName: "file_storage";
1001
+ dataType: "string";
1002
+ columnType: "PgText";
1003
+ data: string;
1004
+ driverParam: string;
1005
+ notNull: false;
1006
+ hasDefault: false;
1007
+ isPrimaryKey: false;
1008
+ isAutoincrement: false;
1009
+ hasRuntimeDefault: false;
1010
+ enumValues: [string, ...string[]];
1011
+ baseColumn: never;
1012
+ identity: undefined;
1013
+ generated: undefined;
1014
+ }, {}, {}>;
1015
+ archivedAt: import("drizzle-orm/pg-core").PgColumn<{
1016
+ name: "archived_at";
1017
+ tableName: "file_storage";
1018
+ dataType: "date";
1019
+ columnType: "PgTimestamp";
1020
+ data: Date;
1021
+ driverParam: string;
1022
+ notNull: false;
1023
+ hasDefault: false;
1024
+ isPrimaryKey: false;
1025
+ isAutoincrement: false;
1026
+ hasRuntimeDefault: false;
1027
+ enumValues: undefined;
1028
+ baseColumn: never;
1029
+ identity: undefined;
1030
+ generated: undefined;
1031
+ }, {}, {}>;
1032
+ uploadCompletedAt: import("drizzle-orm/pg-core").PgColumn<{
1033
+ name: "upload_completed_at";
1034
+ tableName: "file_storage";
1035
+ dataType: "date";
1036
+ columnType: "PgTimestamp";
1037
+ data: Date;
1038
+ driverParam: string;
1039
+ notNull: false;
1040
+ hasDefault: false;
1041
+ isPrimaryKey: false;
1042
+ isAutoincrement: false;
1043
+ hasRuntimeDefault: false;
1044
+ enumValues: undefined;
1045
+ baseColumn: never;
1046
+ identity: undefined;
1047
+ generated: undefined;
1048
+ }, {}, {}>;
1049
+ uploadIpAddress: import("drizzle-orm/pg-core").PgColumn<{
1050
+ name: "upload_ip_address";
1051
+ tableName: "file_storage";
1052
+ dataType: "string";
1053
+ columnType: "PgText";
1054
+ data: string;
1055
+ driverParam: string;
1056
+ notNull: false;
1057
+ hasDefault: false;
1058
+ isPrimaryKey: false;
1059
+ isAutoincrement: false;
1060
+ hasRuntimeDefault: false;
1061
+ enumValues: [string, ...string[]];
1062
+ baseColumn: never;
1063
+ identity: undefined;
1064
+ generated: undefined;
1065
+ }, {}, {}>;
1066
+ downloadCount: import("drizzle-orm/pg-core").PgColumn<{
1067
+ name: "download_count";
1068
+ tableName: "file_storage";
1069
+ dataType: "number";
1070
+ columnType: "PgInteger";
1071
+ data: number;
1072
+ driverParam: string | number;
1073
+ notNull: false;
1074
+ hasDefault: true;
1075
+ isPrimaryKey: false;
1076
+ isAutoincrement: false;
1077
+ hasRuntimeDefault: false;
1078
+ enumValues: undefined;
1079
+ baseColumn: never;
1080
+ identity: undefined;
1081
+ generated: undefined;
1082
+ }, {}, {}>;
1083
+ lastDownloadedAt: import("drizzle-orm/pg-core").PgColumn<{
1084
+ name: "last_downloaded_at";
1085
+ tableName: "file_storage";
1086
+ dataType: "date";
1087
+ columnType: "PgTimestamp";
1088
+ data: Date;
1089
+ driverParam: string;
1090
+ notNull: false;
1091
+ hasDefault: false;
1092
+ isPrimaryKey: false;
1093
+ isAutoincrement: false;
1094
+ hasRuntimeDefault: false;
1095
+ enumValues: undefined;
1096
+ baseColumn: never;
1097
+ identity: undefined;
1098
+ generated: undefined;
1099
+ }, {}, {}>;
1100
+ isVerified: import("drizzle-orm/pg-core").PgColumn<{
1101
+ name: "is_verified";
1102
+ tableName: "file_storage";
1103
+ dataType: "boolean";
1104
+ columnType: "PgBoolean";
1105
+ data: boolean;
1106
+ driverParam: boolean;
1107
+ notNull: false;
1108
+ hasDefault: true;
1109
+ isPrimaryKey: false;
1110
+ isAutoincrement: false;
1111
+ hasRuntimeDefault: false;
1112
+ enumValues: undefined;
1113
+ baseColumn: never;
1114
+ identity: undefined;
1115
+ generated: undefined;
1116
+ }, {}, {}>;
1117
+ verifiedBy: import("drizzle-orm/pg-core").PgColumn<{
1118
+ name: "verified_by";
1119
+ tableName: "file_storage";
1120
+ dataType: "string";
1121
+ columnType: "PgText";
1122
+ data: string;
1123
+ driverParam: string;
1124
+ notNull: false;
1125
+ hasDefault: false;
1126
+ isPrimaryKey: false;
1127
+ isAutoincrement: false;
1128
+ hasRuntimeDefault: false;
1129
+ enumValues: [string, ...string[]];
1130
+ baseColumn: never;
1131
+ identity: undefined;
1132
+ generated: undefined;
1133
+ }, {}, {}>;
1134
+ verifiedAt: import("drizzle-orm/pg-core").PgColumn<{
1135
+ name: "verified_at";
1136
+ tableName: "file_storage";
1137
+ dataType: "date";
1138
+ columnType: "PgTimestamp";
1139
+ data: Date;
1140
+ driverParam: string;
1141
+ notNull: false;
1142
+ hasDefault: false;
1143
+ isPrimaryKey: false;
1144
+ isAutoincrement: false;
1145
+ hasRuntimeDefault: false;
1146
+ enumValues: undefined;
1147
+ baseColumn: never;
1148
+ identity: undefined;
1149
+ generated: undefined;
1150
+ }, {}, {}>;
1151
+ verificationNote: import("drizzle-orm/pg-core").PgColumn<{
1152
+ name: "verification_note";
1153
+ tableName: "file_storage";
1154
+ dataType: "string";
1155
+ columnType: "PgText";
1156
+ data: string;
1157
+ driverParam: string;
1158
+ notNull: false;
1159
+ hasDefault: false;
1160
+ isPrimaryKey: false;
1161
+ isAutoincrement: false;
1162
+ hasRuntimeDefault: false;
1163
+ enumValues: [string, ...string[]];
1164
+ baseColumn: never;
1165
+ identity: undefined;
1166
+ generated: undefined;
1167
+ }, {}, {}>;
1168
+ }, undefined>;
1169
+ export declare const fileStorageWithRelationsSchema: import("@sinclair/typebox").TObject<{
1170
+ createdAt: import("@sinclair/typebox").TDate;
1171
+ updatedAt: import("@sinclair/typebox").TDate;
1172
+ id: import("@sinclair/typebox").TString;
1173
+ deletedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
1174
+ isVerified: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TBoolean, import("@sinclair/typebox").TNull]>;
1175
+ verifiedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
1176
+ status: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
1177
+ uploading: "uploading";
1178
+ active: "active";
1179
+ archived: "archived";
1180
+ pending_deletion: "pending_deletion";
1181
+ }>, import("@sinclair/typebox").TNull]>;
1182
+ fileName: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1183
+ fileSize: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
1184
+ mimeType: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1185
+ fileExtension: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1186
+ fileHash: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1187
+ s3Bucket: import("@sinclair/typebox").TString;
1188
+ s3Key: import("@sinclair/typebox").TString;
1189
+ s3Region: import("@sinclair/typebox").TString;
1190
+ s3ETag: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1191
+ businessType: import("@sinclair/typebox").TEnum<{
1192
+ other: "other";
1193
+ kyc_document: "kyc_document";
1194
+ contract: "contract";
1195
+ financial_report: "financial_report";
1196
+ wallet_import: "wallet_import";
1197
+ avatar: "avatar";
1198
+ cover_image: "cover_image";
1199
+ notification_attachment: "notification_attachment";
1200
+ transaction_receipt: "transaction_receipt";
1201
+ export_report: "export_report";
1202
+ bank_verification: "bank_verification";
1203
+ news_attachment: "news_attachment";
1204
+ }>;
1205
+ businessId: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1206
+ businessMetadata: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1207
+ ownerId: import("@sinclair/typebox").TString;
1208
+ accessControl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TEnum<{
1209
+ private: "private";
1210
+ restricted: "restricted";
1211
+ public: "public";
1212
+ }>, import("@sinclair/typebox").TNull]>;
1213
+ publicUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1214
+ thumbnailUrl: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1215
+ archivedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
1216
+ uploadCompletedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
1217
+ uploadIpAddress: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1218
+ downloadCount: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
1219
+ lastDownloadedAt: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TDate, import("@sinclair/typebox").TNull]>;
1220
+ verifiedBy: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1221
+ verificationNote: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1222
+ owner: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
1223
+ id: import("@sinclair/typebox").TString;
1224
+ name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1225
+ email: import("@sinclair/typebox").TString;
1226
+ }>>;
1227
+ verifier: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TObject<{
1228
+ id: import("@sinclair/typebox").TString;
1229
+ name: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
1230
+ }>, import("@sinclair/typebox").TNull]>>;
1231
+ }>;
1232
+ export type FileStorageWithRelations = typeof fileStorageWithRelationsSchema.static;
1233
+ export declare const verifyFileSchema: import("@sinclair/typebox").TObject<{
1234
+ fileId: import("@sinclair/typebox").TString;
1235
+ isVerified: import("@sinclair/typebox").TBoolean;
1236
+ verificationNote: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1237
+ }>;
1238
+ export type VerifyFileInput = typeof verifyFileSchema.static;