@r2wa-org/eden 0.0.110 → 0.0.112

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 (53) hide show
  1. package/dist/admin/index.d.ts +1783 -3
  2. package/dist/asset/admin/router.d.ts +1 -13
  3. package/dist/asset-price/user/router.d.ts +13 -1
  4. package/dist/auth/better-auth.d.ts +13 -1
  5. package/dist/auth/permissions.d.ts +11 -1
  6. package/dist/auth/roles.d.ts +30 -0
  7. package/dist/content-video/internal/service.d.ts +2 -2
  8. package/dist/db/schemas.d.ts +2 -0
  9. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  10. package/dist/file-storage/admin/router.d.ts +2 -2
  11. package/dist/file-storage/admin/service.d.ts +2 -2
  12. package/dist/file-storage/db.schemas.d.ts +4 -4
  13. package/dist/file-storage/internal/service.d.ts +1 -1
  14. package/dist/file-storage/s3.client.d.ts +22 -0
  15. package/dist/file-storage/schema.d.ts +3 -3
  16. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  17. package/dist/file-storage/share/router.d.ts +1 -1
  18. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  19. package/dist/file-storage/user/router.d.ts +3 -3
  20. package/dist/file-storage/user/service.d.ts +2 -2
  21. package/dist/index.d.ts +1873 -7
  22. package/dist/live-stream-video/admin/dto.schemas.d.ts +128 -0
  23. package/dist/live-stream-video/admin/router.d.ts +861 -0
  24. package/dist/live-stream-video/admin/service.d.ts +211 -0
  25. package/dist/live-stream-video/db.schemas.d.ts +486 -0
  26. package/dist/live-stream-video/errors/index.d.ts +17 -0
  27. package/dist/live-stream-video/errors/locales/zh.d.ts +16 -0
  28. package/dist/live-stream-video/index.d.ts +8 -0
  29. package/dist/live-stream-video/internal/service.d.ts +108 -0
  30. package/dist/live-stream-video/permissions.d.ts +4 -0
  31. package/dist/live-stream-video/schema.d.ts +257 -0
  32. package/dist/live-stream-video/user/dto.schemas.d.ts +52 -0
  33. package/dist/live-stream-video/user/router.d.ts +482 -0
  34. package/dist/live-stream-video/user/service.d.ts +36 -0
  35. package/dist/meeting-check-in/admin/attendee-reward.dto.schemas.d.ts +269 -0
  36. package/dist/meeting-check-in/admin/attendee-reward.service.d.ts +470 -0
  37. package/dist/meeting-check-in/admin/referral-reward.dto.schemas.d.ts +269 -0
  38. package/dist/meeting-check-in/admin/referral-reward.service.d.ts +470 -0
  39. package/dist/meeting-check-in/admin/reward-response.schemas.d.ts +19 -0
  40. package/dist/meeting-check-in/admin/router.d.ts +4054 -0
  41. package/dist/meeting-check-in/errors/index.d.ts +22 -0
  42. package/dist/meeting-check-in/errors/locales/zh.d.ts +21 -0
  43. package/dist/meeting-check-in/internal/reward-config.service.d.ts +127 -0
  44. package/dist/meeting-check-in/permissions.d.ts +4 -0
  45. package/dist/meeting-check-in/reward.db.schemas.d.ts +1656 -0
  46. package/dist/meeting-check-in/schema.d.ts +884 -0
  47. package/dist/news/admin/router.d.ts +1 -1
  48. package/dist/news/admin/service.d.ts +1 -1
  49. package/dist/news/user/router.d.ts +1 -13
  50. package/dist/news/user/service.d.ts +2 -2
  51. package/dist/trade-market/user/router.d.ts +13 -1
  52. package/dist/transfer/user/router.d.ts +1 -13
  53. package/package.json +1 -1
@@ -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;