@r2wa-org/eden 0.0.104 → 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 (54) hide show
  1. package/dist/admin/index.d.ts +427 -19
  2. package/dist/asset-convert-product/admin/dto.schemas.d.ts +12 -0
  3. package/dist/asset-convert-product/admin/router.d.ts +12 -12
  4. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  5. package/dist/auth/better-auth.d.ts +7 -1
  6. package/dist/auth/permissions.d.ts +6 -1
  7. package/dist/auth/roles.d.ts +15 -0
  8. package/dist/check-in/user/router.d.ts +1 -13
  9. package/dist/content-video/internal/service.d.ts +2 -2
  10. package/dist/db/schemas.d.ts +1 -0
  11. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  12. package/dist/file-storage/admin/router.d.ts +2 -2
  13. package/dist/file-storage/admin/service.d.ts +2 -2
  14. package/dist/file-storage/db.schemas.d.ts +4 -4
  15. package/dist/file-storage/internal/service.d.ts +1 -1
  16. package/dist/file-storage/s3.client.d.ts +22 -0
  17. package/dist/file-storage/schema.d.ts +3 -3
  18. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  19. package/dist/file-storage/share/router.d.ts +1 -1
  20. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  21. package/dist/file-storage/user/router.d.ts +4 -16
  22. package/dist/file-storage/user/service.d.ts +2 -2
  23. package/dist/index.d.ts +519 -25
  24. package/dist/ledger/admin/dto.schemas.d.ts +12 -0
  25. package/dist/ledger/admin/router.d.ts +4 -4
  26. package/dist/ledger/db.schemas.d.ts +8 -8
  27. package/dist/ledger/schema.d.ts +6 -6
  28. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  29. package/dist/ledger/user/router.d.ts +2 -2
  30. package/dist/ledger/user/service.d.ts +2 -2
  31. package/dist/live-stream-video/admin/dto.schemas.d.ts +128 -0
  32. package/dist/live-stream-video/admin/router.d.ts +861 -0
  33. package/dist/live-stream-video/admin/service.d.ts +211 -0
  34. package/dist/live-stream-video/db.schemas.d.ts +486 -0
  35. package/dist/live-stream-video/errors/index.d.ts +17 -0
  36. package/dist/live-stream-video/errors/locales/zh.d.ts +16 -0
  37. package/dist/live-stream-video/index.d.ts +8 -0
  38. package/dist/live-stream-video/internal/service.d.ts +108 -0
  39. package/dist/live-stream-video/permissions.d.ts +4 -0
  40. package/dist/live-stream-video/schema.d.ts +257 -0
  41. package/dist/live-stream-video/user/dto.schemas.d.ts +52 -0
  42. package/dist/live-stream-video/user/router.d.ts +482 -0
  43. package/dist/live-stream-video/user/service.d.ts +36 -0
  44. package/dist/news/admin/router.d.ts +1 -1
  45. package/dist/news/admin/service.d.ts +1 -1
  46. package/dist/news/user/service.d.ts +2 -2
  47. package/dist/server-test/index.d.ts +13 -1
  48. package/dist/team/milestone-reward/admin/reward.router.d.ts +13 -1
  49. package/dist/team/milestone-reward/admin/reward.service.d.ts +0 -1
  50. package/dist/team/milestone-reward/internal/reward.service.d.ts +33 -0
  51. package/dist/team/milestone-reward/schema.d.ts +288 -0
  52. package/dist/trade-market/admin/router.d.ts +13 -1
  53. package/dist/welfare-cycle/admin/router.d.ts +1 -13
  54. package/package.json +1 -1
@@ -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;
@@ -35,19 +35,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
35
35
  headers: import("elysia").HTTPHeaders;
36
36
  status?: number | keyof import("elysia").StatusMap;
37
37
  redirect?: string;
38
- cookie?: Record<string, {
39
- domain?: string | undefined;
40
- expires?: Date | undefined;
41
- httpOnly?: boolean | undefined;
42
- maxAge?: number | undefined;
43
- path?: string | undefined;
44
- priority?: 'low' | 'medium' | 'high' | undefined;
45
- partitioned?: boolean | undefined;
46
- sameSite?: true | false | 'lax' | 'strict' | 'none' | undefined;
47
- secure?: boolean | undefined;
48
- secrets?: string | null | (string | null)[];
49
- value?: unknown;
50
- }>;
38
+ cookie?: Record<string, import("elysia/cookies").ElysiaCookie>;
51
39
  };
52
40
  path: string;
53
41
  route: string;
@@ -402,7 +390,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
402
390
  offset?: number | undefined;
403
391
  pageSize?: number | undefined;
404
392
  pageIndex?: number | undefined;
405
- 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;
406
394
  businessId?: string | undefined;
407
395
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
408
396
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -425,7 +413,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
425
413
  s3Key: string;
426
414
  s3Region: string;
427
415
  s3ETag: string | null;
428
- 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";
429
417
  businessId: string | null;
430
418
  businessMetadata: string | null;
431
419
  ownerId: string;
@@ -490,7 +478,7 @@ export declare const fileStorageRouter: Elysia<"/file_storage", {
490
478
  s3Key: string;
491
479
  s3Region: string;
492
480
  s3ETag: string | null;
493
- 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";
494
482
  businessId: string | null;
495
483
  businessMetadata: string | null;
496
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;