@r2wa-org/eden 0.0.110 → 0.0.111

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 (42) hide show
  1. package/dist/admin/index.d.ts +411 -3
  2. package/dist/asset/admin/router.d.ts +1 -13
  3. package/dist/auth/better-auth.d.ts +7 -1
  4. package/dist/auth/permissions.d.ts +6 -1
  5. package/dist/auth/roles.d.ts +15 -0
  6. package/dist/content-video/internal/service.d.ts +2 -2
  7. package/dist/db/schemas.d.ts +1 -0
  8. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  9. package/dist/file-storage/admin/router.d.ts +2 -2
  10. package/dist/file-storage/admin/service.d.ts +2 -2
  11. package/dist/file-storage/db.schemas.d.ts +4 -4
  12. package/dist/file-storage/internal/service.d.ts +1 -1
  13. package/dist/file-storage/s3.client.d.ts +22 -0
  14. package/dist/file-storage/schema.d.ts +3 -3
  15. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  16. package/dist/file-storage/share/router.d.ts +1 -1
  17. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  18. package/dist/file-storage/user/router.d.ts +3 -3
  19. package/dist/file-storage/user/service.d.ts +2 -2
  20. package/dist/index.d.ts +501 -7
  21. package/dist/live-stream-video/admin/dto.schemas.d.ts +128 -0
  22. package/dist/live-stream-video/admin/router.d.ts +861 -0
  23. package/dist/live-stream-video/admin/service.d.ts +211 -0
  24. package/dist/live-stream-video/db.schemas.d.ts +486 -0
  25. package/dist/live-stream-video/errors/index.d.ts +17 -0
  26. package/dist/live-stream-video/errors/locales/zh.d.ts +16 -0
  27. package/dist/live-stream-video/index.d.ts +8 -0
  28. package/dist/live-stream-video/internal/service.d.ts +108 -0
  29. package/dist/live-stream-video/permissions.d.ts +4 -0
  30. package/dist/live-stream-video/schema.d.ts +257 -0
  31. package/dist/live-stream-video/user/dto.schemas.d.ts +52 -0
  32. package/dist/live-stream-video/user/router.d.ts +482 -0
  33. package/dist/live-stream-video/user/service.d.ts +36 -0
  34. package/dist/news/admin/router.d.ts +1 -1
  35. package/dist/news/admin/service.d.ts +1 -1
  36. package/dist/news/user/router.d.ts +1 -13
  37. package/dist/news/user/service.d.ts +2 -2
  38. package/dist/server-test/index.d.ts +13 -1
  39. package/dist/team/milestone-reward/admin/reward.router.d.ts +13 -1
  40. package/dist/trade-market/admin/router.d.ts +13 -1
  41. package/dist/transfer/user/router.d.ts +1 -13
  42. package/package.json +1 -1
@@ -20,6 +20,7 @@ export declare const authAdmin: {
20
20
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
21
21
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
22
22
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
23
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
23
24
  readonly 'market_data:ticker': readonly ['read', 'latest'];
24
25
  readonly 'market_data:kline': readonly ['read', 'list'];
25
26
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -73,6 +74,7 @@ export declare const authAdmin: {
73
74
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
74
75
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
75
76
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
77
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
76
78
  readonly 'market_data:ticker': readonly ['read', 'latest'];
77
79
  readonly 'market_data:kline': readonly ['read', 'list'];
78
80
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -125,6 +127,7 @@ export declare const authAdmin: {
125
127
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
126
128
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
127
129
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
130
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
128
131
  readonly 'market_data:ticker': readonly ['read', 'latest'];
129
132
  readonly 'market_data:kline': readonly ['read', 'list'];
130
133
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -180,6 +183,7 @@ export declare const authUser: {
180
183
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
181
184
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
182
185
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
186
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
183
187
  readonly 'market_data:ticker': readonly ['read', 'latest'];
184
188
  readonly 'market_data:kline': readonly ['read', 'list'];
185
189
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -233,6 +237,7 @@ export declare const authUser: {
233
237
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
234
238
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
235
239
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
240
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
236
241
  readonly 'market_data:ticker': readonly ['read', 'latest'];
237
242
  readonly 'market_data:kline': readonly ['read', 'list'];
238
243
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -285,6 +290,7 @@ export declare const authUser: {
285
290
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
286
291
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
287
292
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
293
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
288
294
  readonly 'market_data:ticker': readonly ['read', 'latest'];
289
295
  readonly 'market_data:kline': readonly ['read', 'list'];
290
296
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -345,6 +351,7 @@ export declare const superAdmin: {
345
351
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
346
352
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
347
353
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
354
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
348
355
  readonly 'market_data:ticker': readonly ['read', 'latest'];
349
356
  readonly 'market_data:kline': readonly ['read', 'list'];
350
357
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -398,6 +405,7 @@ export declare const superAdmin: {
398
405
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
399
406
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
400
407
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
408
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
401
409
  readonly 'market_data:ticker': readonly ['read', 'latest'];
402
410
  readonly 'market_data:kline': readonly ['read', 'list'];
403
411
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -450,6 +458,7 @@ export declare const superAdmin: {
450
458
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
451
459
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
452
460
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
461
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
453
462
  readonly 'market_data:ticker': readonly ['read', 'latest'];
454
463
  readonly 'market_data:kline': readonly ['read', 'list'];
455
464
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -510,6 +519,7 @@ export declare const user: {
510
519
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
511
520
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
512
521
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
522
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
513
523
  readonly 'market_data:ticker': readonly ['read', 'latest'];
514
524
  readonly 'market_data:kline': readonly ['read', 'list'];
515
525
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -563,6 +573,7 @@ export declare const user: {
563
573
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
564
574
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
565
575
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
576
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
566
577
  readonly 'market_data:ticker': readonly ['read', 'latest'];
567
578
  readonly 'market_data:kline': readonly ['read', 'list'];
568
579
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -615,6 +626,7 @@ export declare const user: {
615
626
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
616
627
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
617
628
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
629
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
618
630
  readonly 'market_data:ticker': readonly ['read', 'latest'];
619
631
  readonly 'market_data:kline': readonly ['read', 'list'];
620
632
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -675,6 +687,7 @@ export declare const admin: {
675
687
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
676
688
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
677
689
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
690
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
678
691
  readonly 'market_data:ticker': readonly ['read', 'latest'];
679
692
  readonly 'market_data:kline': readonly ['read', 'list'];
680
693
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -728,6 +741,7 @@ export declare const admin: {
728
741
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
729
742
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
730
743
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
744
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
731
745
  readonly 'market_data:ticker': readonly ['read', 'latest'];
732
746
  readonly 'market_data:kline': readonly ['read', 'list'];
733
747
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -780,6 +794,7 @@ export declare const admin: {
780
794
  readonly 'ledger-account:type': readonly ['create', 'read', 'update', 'list'];
781
795
  readonly 'ledger-account:account': readonly ['read', 'update', 'list'];
782
796
  readonly 'ledger:entry': readonly ['read', 'list', 'view_all', 'adjust'];
797
+ readonly 'live_stream_video:video': readonly ['create', 'read', 'update', 'delete', 'list'];
783
798
  readonly 'market_data:ticker': readonly ['read', 'latest'];
784
799
  readonly 'market_data:kline': readonly ['read', 'list'];
785
800
  readonly 'market_data:admin': readonly ['read', 'list', 'run'];
@@ -10,7 +10,7 @@ export declare abstract class InternalContentVideoService {
10
10
  archivedAt: Date | null;
11
11
  businessId: string | null;
12
12
  businessMetadata: string | null;
13
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
13
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
14
14
  createdAt: Date;
15
15
  deletedAt: Date | null;
16
16
  downloadCount: number | null;
@@ -45,7 +45,7 @@ export declare abstract class InternalContentVideoService {
45
45
  archivedAt: Date | null;
46
46
  businessId: string | null;
47
47
  businessMetadata: string | null;
48
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
48
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
49
49
  createdAt: Date;
50
50
  deletedAt: Date | null;
51
51
  downloadCount: number | null;
@@ -37,3 +37,4 @@ export * from '../welfare-cycle/schema';
37
37
  export * from '../lock-activity/schema';
38
38
  export * from '../lock-activity/participation.schema';
39
39
  export * from '../content-video/schema';
40
+ export * from '../live-stream-video/schema';
@@ -9,6 +9,7 @@ export declare const listAdminFilesFilterSchema: import("@sinclair/typebox").TOb
9
9
  financial_report: "financial_report";
10
10
  kyc_document: "kyc_document";
11
11
  ledger_account_import: "ledger_account_import";
12
+ live_stream_video: "live_stream_video";
12
13
  news_attachment: "news_attachment";
13
14
  notification_attachment: "notification_attachment";
14
15
  other: "other";
@@ -44,6 +45,7 @@ export declare const listAdminFilesQuerySchema: import("@sinclair/typebox").TObj
44
45
  financial_report: "financial_report";
45
46
  kyc_document: "kyc_document";
46
47
  ledger_account_import: "ledger_account_import";
48
+ live_stream_video: "live_stream_video";
47
49
  news_attachment: "news_attachment";
48
50
  notification_attachment: "notification_attachment";
49
51
  other: "other";
@@ -83,6 +85,7 @@ export declare const fileStorageWithRelationsSchema: import("@sinclair/typebox")
83
85
  financial_report: "financial_report";
84
86
  kyc_document: "kyc_document";
85
87
  ledger_account_import: "ledger_account_import";
88
+ live_stream_video: "live_stream_video";
86
89
  news_attachment: "news_attachment";
87
90
  notification_attachment: "notification_attachment";
88
91
  other: "other";
@@ -149,6 +152,7 @@ export declare const listAdminFilesResponseSchema: import("@sinclair/typebox").T
149
152
  financial_report: "financial_report";
150
153
  kyc_document: "kyc_document";
151
154
  ledger_account_import: "ledger_account_import";
155
+ live_stream_video: "live_stream_video";
152
156
  news_attachment: "news_attachment";
153
157
  notification_attachment: "notification_attachment";
154
158
  other: "other";
@@ -417,7 +417,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
417
417
  offset?: number | undefined;
418
418
  pageSize?: number | undefined;
419
419
  pageIndex?: number | undefined;
420
- businessType?: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
420
+ businessType?: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
421
421
  businessId?: string | undefined;
422
422
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
423
423
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -431,7 +431,7 @@ export declare const fileStorageAdminRouter: Elysia<"/file_storage", {
431
431
  archivedAt: Date | null;
432
432
  businessId: string | null;
433
433
  businessMetadata: string | null;
434
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
434
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
435
435
  createdAt: Date;
436
436
  deletedAt: Date | null;
437
437
  downloadCount: number | null;
@@ -15,7 +15,7 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
15
15
  s3Key: string;
16
16
  s3Region: string;
17
17
  s3ETag: string | null;
18
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
18
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
19
19
  businessId: string | null;
20
20
  businessMetadata: string | null;
21
21
  ownerId: string;
@@ -39,7 +39,7 @@ export declare abstract class AdminFileStorageService extends BaseFileStorageSer
39
39
  archivedAt: Date | null;
40
40
  businessId: string | null;
41
41
  businessMetadata: string | null;
42
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
42
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
43
43
  createdAt: Date;
44
44
  deletedAt: Date | null;
45
45
  downloadCount: number | null;
@@ -225,14 +225,14 @@ export declare const fileStorageSelectSchema: import("drizzle-typebox").BuildSch
225
225
  tableName: "file_storage";
226
226
  dataType: "string";
227
227
  columnType: "PgEnumColumn";
228
- data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
228
+ data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
229
229
  driverParam: string;
230
230
  notNull: true;
231
231
  hasDefault: false;
232
232
  isPrimaryKey: false;
233
233
  isAutoincrement: false;
234
234
  hasRuntimeDefault: false;
235
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"];
235
+ enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "live_stream_video", "other"];
236
236
  baseColumn: never;
237
237
  identity: undefined;
238
238
  generated: undefined;
@@ -738,14 +738,14 @@ export declare const fileStorageInsertSchema: import("drizzle-typebox").BuildSch
738
738
  tableName: "file_storage";
739
739
  dataType: "string";
740
740
  columnType: "PgEnumColumn";
741
- data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
741
+ data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
742
742
  driverParam: string;
743
743
  notNull: true;
744
744
  hasDefault: false;
745
745
  isPrimaryKey: false;
746
746
  isAutoincrement: false;
747
747
  hasRuntimeDefault: false;
748
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"];
748
+ enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "live_stream_video", "other"];
749
749
  baseColumn: never;
750
750
  identity: undefined;
751
751
  generated: undefined;
@@ -33,7 +33,7 @@ export declare abstract class InternalFileStorageService extends BaseFileStorage
33
33
  s3Key: string;
34
34
  s3Region: string;
35
35
  s3ETag: string | null;
36
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
36
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
37
37
  businessId: string | null;
38
38
  businessMetadata: string | null;
39
39
  ownerId: string;
@@ -196,6 +196,17 @@ export declare const BUSINESS_TYPE_CONFIG: {
196
196
  };
197
197
  readonly description: 'App \u5C55\u793A\u89C6\u9891';
198
198
  };
199
+ readonly live_stream_video: {
200
+ readonly defaultAccessControl: 'public';
201
+ readonly maxSize: number;
202
+ readonly allowedMimeTypes: readonly ["video/mp4", "video/webm", "video/quicktime"];
203
+ readonly mimeTypeLimits: {
204
+ readonly 'video/mp4': number;
205
+ readonly 'video/webm': number;
206
+ readonly 'video/quicktime': number;
207
+ };
208
+ readonly description: '\u76F4\u64AD\u89C6\u9891';
209
+ };
199
210
  readonly other: {
200
211
  readonly defaultAccessControl: 'private';
201
212
  readonly maxSize: number;
@@ -296,6 +307,17 @@ export declare function getBusinessTypeConfig<T extends BusinessType>(businessTy
296
307
  };
297
308
  readonly description: 'App \u5C55\u793A\u89C6\u9891';
298
309
  };
310
+ readonly live_stream_video: {
311
+ readonly defaultAccessControl: 'public';
312
+ readonly maxSize: number;
313
+ readonly allowedMimeTypes: readonly ["video/mp4", "video/webm", "video/quicktime"];
314
+ readonly mimeTypeLimits: {
315
+ readonly 'video/mp4': number;
316
+ readonly 'video/webm': number;
317
+ readonly 'video/quicktime': number;
318
+ };
319
+ readonly description: '\u76F4\u64AD\u89C6\u9891';
320
+ };
299
321
  readonly other: {
300
322
  readonly defaultAccessControl: 'private';
301
323
  readonly maxSize: number;
@@ -2,7 +2,7 @@
2
2
  * 文件业务类型枚举
3
3
  * 按业务场景分类,便于权限控制和生命周期管理
4
4
  */
5
- export declare const fileBusinessTypeEnum: import("drizzle-orm/pg-core").PgEnum<["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"]>;
5
+ export declare const fileBusinessTypeEnum: import("drizzle-orm/pg-core").PgEnum<["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "live_stream_video", "other"]>;
6
6
  /**
7
7
  * 文件访问控制枚举
8
8
  */
@@ -245,14 +245,14 @@ 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: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
248
+ data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
249
249
  driverParam: string;
250
250
  notNull: true;
251
251
  hasDefault: false;
252
252
  isPrimaryKey: false;
253
253
  isAutoincrement: false;
254
254
  hasRuntimeDefault: false;
255
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"];
255
+ enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "live_stream_video", "other"];
256
256
  baseColumn: never;
257
257
  identity: undefined;
258
258
  generated: undefined;
@@ -11,6 +11,7 @@ export declare const generateUploadUrlSchema: import("@sinclair/typebox").TObjec
11
11
  financial_report: "financial_report";
12
12
  kyc_document: "kyc_document";
13
13
  ledger_account_import: "ledger_account_import";
14
+ live_stream_video: "live_stream_video";
14
15
  news_attachment: "news_attachment";
15
16
  notification_attachment: "notification_attachment";
16
17
  other: "other";
@@ -386,7 +386,7 @@ export declare const fileStorageShareRouter: Elysia<"/file_storage", {
386
386
  body: {
387
387
  fileName: string;
388
388
  fileSize: number;
389
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
389
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
390
390
  fileExtension?: string | undefined;
391
391
  mimeType?: string | undefined;
392
392
  businessId?: string | undefined;
@@ -9,6 +9,7 @@ export declare const listUserFilesFilterSchema: import("@sinclair/typebox").TObj
9
9
  financial_report: "financial_report";
10
10
  kyc_document: "kyc_document";
11
11
  ledger_account_import: "ledger_account_import";
12
+ live_stream_video: "live_stream_video";
12
13
  news_attachment: "news_attachment";
13
14
  notification_attachment: "notification_attachment";
14
15
  other: "other";
@@ -44,6 +45,7 @@ export declare const listUserFilesQuerySchema: import("@sinclair/typebox").TObje
44
45
  financial_report: "financial_report";
45
46
  kyc_document: "kyc_document";
46
47
  ledger_account_import: "ledger_account_import";
48
+ live_stream_video: "live_stream_video";
47
49
  news_attachment: "news_attachment";
48
50
  notification_attachment: "notification_attachment";
49
51
  other: "other";
@@ -292,14 +294,14 @@ export declare const listUserFilesResponseSchema: import("@sinclair/typebox").TO
292
294
  tableName: "file_storage";
293
295
  dataType: "string";
294
296
  columnType: "PgEnumColumn";
295
- data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
297
+ data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
296
298
  driverParam: string;
297
299
  notNull: true;
298
300
  hasDefault: false;
299
301
  isPrimaryKey: false;
300
302
  isAutoincrement: false;
301
303
  hasRuntimeDefault: false;
302
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"];
304
+ enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "live_stream_video", "other"];
303
305
  baseColumn: never;
304
306
  identity: undefined;
305
307
  generated: undefined;
@@ -815,14 +817,14 @@ export declare const getFileByIdResponseSchema: import("drizzle-typebox").BuildS
815
817
  tableName: "file_storage";
816
818
  dataType: "string";
817
819
  columnType: "PgEnumColumn";
818
- data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
820
+ data: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
819
821
  driverParam: string;
820
822
  notNull: true;
821
823
  hasDefault: false;
822
824
  isPrimaryKey: false;
823
825
  isAutoincrement: false;
824
826
  hasRuntimeDefault: false;
825
- enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "other"];
827
+ enumValues: ["kyc_document", "contract", "financial_report", "ledger_account_import", "avatar", "cover_image", "notification_attachment", "transaction_receipt", "export_report", "bank_verification", "news_attachment", "app_video", "live_stream_video", "other"];
826
828
  baseColumn: never;
827
829
  identity: undefined;
828
830
  generated: undefined;
@@ -390,7 +390,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
390
390
  offset?: number | undefined;
391
391
  pageSize?: number | undefined;
392
392
  pageIndex?: number | undefined;
393
- businessType?: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
393
+ businessType?: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
394
394
  businessId?: string | undefined;
395
395
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
396
396
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -413,7 +413,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
413
413
  s3Key: string;
414
414
  s3Region: string;
415
415
  s3ETag: string | null;
416
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
416
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
417
417
  businessId: string | null;
418
418
  businessMetadata: string | null;
419
419
  ownerId: string;
@@ -478,7 +478,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
478
478
  s3Key: string;
479
479
  s3Region: string;
480
480
  s3ETag: string | null;
481
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
481
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
482
482
  businessId: string | null;
483
483
  businessMetadata: string | null;
484
484
  ownerId: string;
@@ -7,7 +7,7 @@ export declare abstract class UserFileStorageService extends BaseFileStorageServ
7
7
  archivedAt: Date | null;
8
8
  businessId: string | null;
9
9
  businessMetadata: string | null;
10
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
10
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
11
11
  createdAt: Date;
12
12
  deletedAt: Date | null;
13
13
  downloadCount: number | null;
@@ -47,7 +47,7 @@ export declare abstract class UserFileStorageService extends BaseFileStorageServ
47
47
  archivedAt: Date | null;
48
48
  businessId: string | null;
49
49
  businessMetadata: string | null;
50
- businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
50
+ businessType: "app_video" | "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "live_stream_video" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
51
51
  createdAt: Date;
52
52
  deletedAt: Date | null;
53
53
  downloadCount: number | null;