@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
package/dist/index.d.ts CHANGED
@@ -570,7 +570,7 @@ declare const app: Elysia<"/api", {
570
570
  body: {
571
571
  fileName: string;
572
572
  fileSize: number;
573
- 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";
573
+ 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";
574
574
  fileExtension?: string | undefined;
575
575
  mimeType?: string | undefined;
576
576
  businessId?: string | undefined;
@@ -9013,7 +9013,7 @@ declare const app: Elysia<"/api", {
9013
9013
  archivedAt: Date | null;
9014
9014
  businessId: string | null;
9015
9015
  businessMetadata: string | null;
9016
- 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";
9016
+ 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";
9017
9017
  createdAt: Date;
9018
9018
  deletedAt: Date | null;
9019
9019
  downloadCount: number | null;
@@ -9623,6 +9623,414 @@ declare const app: Elysia<"/api", {
9623
9623
  };
9624
9624
  };
9625
9625
  };
9626
+ } & {
9627
+ admin: {
9628
+ live_stream_videos: {};
9629
+ } & {
9630
+ live_stream_videos: {
9631
+ post: {
9632
+ body: {
9633
+ coverFileId?: string | undefined;
9634
+ description?: string | null | undefined;
9635
+ durationSeconds?: number | null | undefined;
9636
+ isEnabled?: boolean | undefined;
9637
+ publishedAt?: string | Date | null | undefined;
9638
+ sortOrder?: number | undefined;
9639
+ status?: "archived" | "draft" | "published" | undefined;
9640
+ title: string;
9641
+ videoFileId: string;
9642
+ };
9643
+ params: {};
9644
+ query: {};
9645
+ headers: {};
9646
+ response: {
9647
+ 200: {
9648
+ coverFile?: {
9649
+ id: string;
9650
+ fileName: string | null;
9651
+ mimeType: string | null;
9652
+ fileSize: number | null;
9653
+ publicUrl: string | null;
9654
+ } | undefined;
9655
+ coverFileId: string | null;
9656
+ coverUrl?: string | undefined;
9657
+ createdAt: Date;
9658
+ createdBy: string;
9659
+ description: string | null;
9660
+ durationSeconds: number | null;
9661
+ id: string;
9662
+ isEnabled: boolean;
9663
+ publishedAt: Date | null;
9664
+ sortOrder: number;
9665
+ status: "archived" | "draft" | "published";
9666
+ title: string;
9667
+ updatedAt: Date;
9668
+ videoFile?: {
9669
+ id: string;
9670
+ fileName: string | null;
9671
+ mimeType: string | null;
9672
+ fileSize: number | null;
9673
+ publicUrl: string | null;
9674
+ } | undefined;
9675
+ videoFileId: string;
9676
+ videoUrl?: string | undefined;
9677
+ };
9678
+ 401: "Unauthorized";
9679
+ 403: "Forbidden: Admins only";
9680
+ 422: {
9681
+ type: 'validation';
9682
+ on: string;
9683
+ summary?: string;
9684
+ message?: string;
9685
+ found?: unknown;
9686
+ property?: string;
9687
+ expected?: string;
9688
+ };
9689
+ };
9690
+ };
9691
+ };
9692
+ } & {
9693
+ live_stream_videos: {
9694
+ get: {
9695
+ body: {};
9696
+ params: {};
9697
+ query: {
9698
+ isEnabled?: boolean | undefined;
9699
+ keyword?: string | undefined;
9700
+ limit?: number | undefined;
9701
+ offset?: number | undefined;
9702
+ pageIndex?: number | undefined;
9703
+ pageSize?: number | undefined;
9704
+ status?: "archived" | "draft" | "published" | undefined;
9705
+ };
9706
+ headers: {};
9707
+ response: {
9708
+ 200: {
9709
+ data: {
9710
+ coverFile?: {
9711
+ id: string;
9712
+ fileName: string | null;
9713
+ mimeType: string | null;
9714
+ fileSize: number | null;
9715
+ publicUrl: string | null;
9716
+ } | undefined;
9717
+ coverFileId: string | null;
9718
+ coverUrl?: string | undefined;
9719
+ createdAt: Date;
9720
+ createdBy: string;
9721
+ description: string | null;
9722
+ durationSeconds: number | null;
9723
+ id: string;
9724
+ isEnabled: boolean;
9725
+ publishedAt: Date | null;
9726
+ sortOrder: number;
9727
+ status: "archived" | "draft" | "published";
9728
+ title: string;
9729
+ updatedAt: Date;
9730
+ videoFile?: {
9731
+ id: string;
9732
+ fileName: string | null;
9733
+ mimeType: string | null;
9734
+ fileSize: number | null;
9735
+ publicUrl: string | null;
9736
+ } | undefined;
9737
+ videoFileId: string;
9738
+ videoUrl?: string | undefined;
9739
+ }[];
9740
+ pagination: {
9741
+ pageSize: number;
9742
+ pageIndex: number;
9743
+ total: number;
9744
+ totalPages: number;
9745
+ hasNextPage: boolean;
9746
+ };
9747
+ };
9748
+ 401: "Unauthorized";
9749
+ 403: "Forbidden: Admins only";
9750
+ 422: {
9751
+ type: 'validation';
9752
+ on: string;
9753
+ summary?: string;
9754
+ message?: string;
9755
+ found?: unknown;
9756
+ property?: string;
9757
+ expected?: string;
9758
+ };
9759
+ };
9760
+ };
9761
+ };
9762
+ } & {
9763
+ live_stream_videos: {
9764
+ ":id": {
9765
+ get: {
9766
+ body: {};
9767
+ params: {
9768
+ id: string;
9769
+ };
9770
+ query: {};
9771
+ headers: {};
9772
+ response: {
9773
+ 200: {
9774
+ coverFile?: {
9775
+ id: string;
9776
+ fileName: string | null;
9777
+ mimeType: string | null;
9778
+ fileSize: number | null;
9779
+ publicUrl: string | null;
9780
+ } | undefined;
9781
+ coverFileId: string | null;
9782
+ coverUrl?: string | undefined;
9783
+ createdAt: Date;
9784
+ createdBy: string;
9785
+ description: string | null;
9786
+ durationSeconds: number | null;
9787
+ id: string;
9788
+ isEnabled: boolean;
9789
+ publishedAt: Date | null;
9790
+ sortOrder: number;
9791
+ status: "archived" | "draft" | "published";
9792
+ title: string;
9793
+ updatedAt: Date;
9794
+ videoFile?: {
9795
+ id: string;
9796
+ fileName: string | null;
9797
+ mimeType: string | null;
9798
+ fileSize: number | null;
9799
+ publicUrl: string | null;
9800
+ } | undefined;
9801
+ videoFileId: string;
9802
+ videoUrl?: string | undefined;
9803
+ };
9804
+ 401: "Unauthorized";
9805
+ 403: "Forbidden: Admins only";
9806
+ 422: {
9807
+ type: 'validation';
9808
+ on: string;
9809
+ summary?: string;
9810
+ message?: string;
9811
+ found?: unknown;
9812
+ property?: string;
9813
+ expected?: string;
9814
+ };
9815
+ };
9816
+ };
9817
+ };
9818
+ };
9819
+ } & {
9820
+ live_stream_videos: {
9821
+ ":id": {
9822
+ patch: {
9823
+ body: {
9824
+ coverFileId?: string | undefined;
9825
+ description?: string | null | undefined;
9826
+ durationSeconds?: number | null | undefined;
9827
+ isEnabled?: boolean | undefined;
9828
+ publishedAt?: string | Date | null | undefined;
9829
+ sortOrder?: number | undefined;
9830
+ status?: "archived" | "draft" | "published" | undefined;
9831
+ title?: string | undefined;
9832
+ videoFileId?: string | undefined;
9833
+ };
9834
+ params: {
9835
+ id: string;
9836
+ };
9837
+ query: {};
9838
+ headers: {};
9839
+ response: {
9840
+ 200: {
9841
+ coverFile?: {
9842
+ id: string;
9843
+ fileName: string | null;
9844
+ mimeType: string | null;
9845
+ fileSize: number | null;
9846
+ publicUrl: string | null;
9847
+ } | undefined;
9848
+ coverFileId: string | null;
9849
+ coverUrl?: string | undefined;
9850
+ createdAt: Date;
9851
+ createdBy: string;
9852
+ description: string | null;
9853
+ durationSeconds: number | null;
9854
+ id: string;
9855
+ isEnabled: boolean;
9856
+ publishedAt: Date | null;
9857
+ sortOrder: number;
9858
+ status: "archived" | "draft" | "published";
9859
+ title: string;
9860
+ updatedAt: Date;
9861
+ videoFile?: {
9862
+ id: string;
9863
+ fileName: string | null;
9864
+ mimeType: string | null;
9865
+ fileSize: number | null;
9866
+ publicUrl: string | null;
9867
+ } | undefined;
9868
+ videoFileId: string;
9869
+ videoUrl?: string | undefined;
9870
+ };
9871
+ 401: "Unauthorized";
9872
+ 403: "Forbidden: Admins only";
9873
+ 422: {
9874
+ type: 'validation';
9875
+ on: string;
9876
+ summary?: string;
9877
+ message?: string;
9878
+ found?: unknown;
9879
+ property?: string;
9880
+ expected?: string;
9881
+ };
9882
+ };
9883
+ };
9884
+ };
9885
+ };
9886
+ } & {
9887
+ live_stream_videos: {
9888
+ ":id": {
9889
+ publish: {
9890
+ post: {
9891
+ body: {};
9892
+ params: {
9893
+ id: string;
9894
+ };
9895
+ query: {};
9896
+ headers: {};
9897
+ response: {
9898
+ 200: {
9899
+ coverFile?: {
9900
+ id: string;
9901
+ fileName: string | null;
9902
+ mimeType: string | null;
9903
+ fileSize: number | null;
9904
+ publicUrl: string | null;
9905
+ } | undefined;
9906
+ coverFileId: string | null;
9907
+ coverUrl?: string | undefined;
9908
+ createdAt: Date;
9909
+ createdBy: string;
9910
+ description: string | null;
9911
+ durationSeconds: number | null;
9912
+ id: string;
9913
+ isEnabled: boolean;
9914
+ publishedAt: Date | null;
9915
+ sortOrder: number;
9916
+ status: "archived" | "draft" | "published";
9917
+ title: string;
9918
+ updatedAt: Date;
9919
+ videoFile?: {
9920
+ id: string;
9921
+ fileName: string | null;
9922
+ mimeType: string | null;
9923
+ fileSize: number | null;
9924
+ publicUrl: string | null;
9925
+ } | undefined;
9926
+ videoFileId: string;
9927
+ videoUrl?: string | undefined;
9928
+ };
9929
+ 401: "Unauthorized";
9930
+ 403: "Forbidden: Admins only";
9931
+ 422: {
9932
+ type: 'validation';
9933
+ on: string;
9934
+ summary?: string;
9935
+ message?: string;
9936
+ found?: unknown;
9937
+ property?: string;
9938
+ expected?: string;
9939
+ };
9940
+ };
9941
+ };
9942
+ };
9943
+ };
9944
+ };
9945
+ } & {
9946
+ live_stream_videos: {
9947
+ ":id": {
9948
+ archive: {
9949
+ post: {
9950
+ body: {};
9951
+ params: {
9952
+ id: string;
9953
+ };
9954
+ query: {};
9955
+ headers: {};
9956
+ response: {
9957
+ 200: {
9958
+ coverFile?: {
9959
+ id: string;
9960
+ fileName: string | null;
9961
+ mimeType: string | null;
9962
+ fileSize: number | null;
9963
+ publicUrl: string | null;
9964
+ } | undefined;
9965
+ coverFileId: string | null;
9966
+ coverUrl?: string | undefined;
9967
+ createdAt: Date;
9968
+ createdBy: string;
9969
+ description: string | null;
9970
+ durationSeconds: number | null;
9971
+ id: string;
9972
+ isEnabled: boolean;
9973
+ publishedAt: Date | null;
9974
+ sortOrder: number;
9975
+ status: "archived" | "draft" | "published";
9976
+ title: string;
9977
+ updatedAt: Date;
9978
+ videoFile?: {
9979
+ id: string;
9980
+ fileName: string | null;
9981
+ mimeType: string | null;
9982
+ fileSize: number | null;
9983
+ publicUrl: string | null;
9984
+ } | undefined;
9985
+ videoFileId: string;
9986
+ videoUrl?: string | undefined;
9987
+ };
9988
+ 401: "Unauthorized";
9989
+ 403: "Forbidden: Admins only";
9990
+ 422: {
9991
+ type: 'validation';
9992
+ on: string;
9993
+ summary?: string;
9994
+ message?: string;
9995
+ found?: unknown;
9996
+ property?: string;
9997
+ expected?: string;
9998
+ };
9999
+ };
10000
+ };
10001
+ };
10002
+ };
10003
+ };
10004
+ } & {
10005
+ live_stream_videos: {
10006
+ ":id": {
10007
+ delete: {
10008
+ body: {};
10009
+ params: {
10010
+ id: string;
10011
+ };
10012
+ query: {};
10013
+ headers: {};
10014
+ response: {
10015
+ 200: {
10016
+ success: boolean;
10017
+ };
10018
+ 401: "Unauthorized";
10019
+ 403: "Forbidden: Admins only";
10020
+ 422: {
10021
+ type: 'validation';
10022
+ on: string;
10023
+ summary?: string;
10024
+ message?: string;
10025
+ found?: unknown;
10026
+ property?: string;
10027
+ expected?: string;
10028
+ };
10029
+ };
10030
+ };
10031
+ };
10032
+ };
10033
+ };
9626
10034
  } & {
9627
10035
  admin: {
9628
10036
  operations_overview: {};
@@ -10031,7 +10439,7 @@ declare const app: Elysia<"/api", {
10031
10439
  offset?: number | undefined;
10032
10440
  pageSize?: number | undefined;
10033
10441
  pageIndex?: number | undefined;
10034
- 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;
10442
+ 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;
10035
10443
  businessId?: string | undefined;
10036
10444
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
10037
10445
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -10045,7 +10453,7 @@ declare const app: Elysia<"/api", {
10045
10453
  archivedAt: Date | null;
10046
10454
  businessId: string | null;
10047
10455
  businessMetadata: string | null;
10048
- 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";
10456
+ 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";
10049
10457
  createdAt: Date;
10050
10458
  deletedAt: Date | null;
10051
10459
  downloadCount: number | null;
@@ -18275,6 +18683,92 @@ declare const app: Elysia<"/api", {
18275
18683
  };
18276
18684
  };
18277
18685
  };
18686
+ } & {
18687
+ api: {
18688
+ live_stream_videos: {};
18689
+ } & {
18690
+ live_stream_videos: {
18691
+ get: {
18692
+ body: {};
18693
+ params: {};
18694
+ query: {
18695
+ limit?: number | undefined;
18696
+ offset?: number | undefined;
18697
+ pageSize?: number | undefined;
18698
+ pageIndex?: number | undefined;
18699
+ };
18700
+ headers: {};
18701
+ response: {
18702
+ 200: {
18703
+ data: {
18704
+ id: string;
18705
+ title: string;
18706
+ description?: string | undefined;
18707
+ videoUrl: string;
18708
+ coverUrl?: string | undefined;
18709
+ mimeType?: string | undefined;
18710
+ fileSize?: number | undefined;
18711
+ durationSeconds?: number | undefined;
18712
+ sortOrder: number;
18713
+ publishedAt?: Date | undefined;
18714
+ }[];
18715
+ pagination: {
18716
+ pageSize: number;
18717
+ pageIndex: number;
18718
+ total: number;
18719
+ totalPages: number;
18720
+ hasNextPage: boolean;
18721
+ };
18722
+ };
18723
+ 422: {
18724
+ type: 'validation';
18725
+ on: string;
18726
+ summary?: string;
18727
+ message?: string;
18728
+ found?: unknown;
18729
+ property?: string;
18730
+ expected?: string;
18731
+ };
18732
+ };
18733
+ };
18734
+ };
18735
+ } & {
18736
+ live_stream_videos: {
18737
+ ":id": {
18738
+ get: {
18739
+ body: {};
18740
+ params: {
18741
+ id: string;
18742
+ };
18743
+ query: {};
18744
+ headers: {};
18745
+ response: {
18746
+ 200: {
18747
+ id: string;
18748
+ title: string;
18749
+ description?: string | undefined;
18750
+ videoUrl: string;
18751
+ coverUrl?: string | undefined;
18752
+ mimeType?: string | undefined;
18753
+ fileSize?: number | undefined;
18754
+ durationSeconds?: number | undefined;
18755
+ sortOrder: number;
18756
+ publishedAt?: Date | undefined;
18757
+ };
18758
+ 422: {
18759
+ type: 'validation';
18760
+ on: string;
18761
+ summary?: string;
18762
+ message?: string;
18763
+ found?: unknown;
18764
+ property?: string;
18765
+ expected?: string;
18766
+ };
18767
+ };
18768
+ };
18769
+ };
18770
+ };
18771
+ };
18278
18772
  } & {
18279
18773
  api: {
18280
18774
  file_storage: {};
@@ -18289,7 +18783,7 @@ declare const app: Elysia<"/api", {
18289
18783
  offset?: number | undefined;
18290
18784
  pageSize?: number | undefined;
18291
18785
  pageIndex?: number | undefined;
18292
- 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;
18786
+ 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;
18293
18787
  businessId?: string | undefined;
18294
18788
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
18295
18789
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -18312,7 +18806,7 @@ declare const app: Elysia<"/api", {
18312
18806
  s3Key: string;
18313
18807
  s3Region: string;
18314
18808
  s3ETag: string | null;
18315
- 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";
18809
+ 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";
18316
18810
  businessId: string | null;
18317
18811
  businessMetadata: string | null;
18318
18812
  ownerId: string;
@@ -18377,7 +18871,7 @@ declare const app: Elysia<"/api", {
18377
18871
  s3Key: string;
18378
18872
  s3Region: string;
18379
18873
  s3ETag: string | null;
18380
- 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";
18874
+ 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";
18381
18875
  businessId: string | null;
18382
18876
  businessMetadata: string | null;
18383
18877
  ownerId: string;