@r2wa-org/eden 0.0.97 → 0.0.100

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 (89) hide show
  1. package/dist/admin/index.d.ts +1460 -86
  2. package/dist/asset/admin/router.d.ts +1 -13
  3. package/dist/asset-convert-product/admin/dto.schemas.d.ts +8 -0
  4. package/dist/asset-convert-product/admin/router.d.ts +25 -13
  5. package/dist/asset-convert-product/admin/service.d.ts +12 -12
  6. package/dist/auth/better-auth.d.ts +19 -1
  7. package/dist/auth/i18n/zh.d.ts +100 -0
  8. package/dist/auth/permissions.d.ts +16 -1
  9. package/dist/auth/roles.d.ts +45 -0
  10. package/dist/check-in/admin/reward.dto.schemas.d.ts +294 -0
  11. package/dist/check-in/admin/reward.router.d.ts +1192 -0
  12. package/dist/check-in/admin/reward.service.d.ts +479 -0
  13. package/dist/check-in/admin/router.d.ts +745 -0
  14. package/dist/check-in/errors/index.d.ts +9 -0
  15. package/dist/check-in/errors/locales/zh.d.ts +9 -0
  16. package/dist/check-in/index.d.ts +5 -0
  17. package/dist/check-in/internal/reward-config.service.d.ts +66 -0
  18. package/dist/check-in/permissions.d.ts +2 -0
  19. package/dist/check-in/reward.db.schemas.d.ts +896 -0
  20. package/dist/check-in/reward.schema.d.ts +477 -0
  21. package/dist/content-video/admin/dto.schemas.d.ts +128 -0
  22. package/dist/content-video/admin/router.d.ts +861 -0
  23. package/dist/content-video/admin/service.d.ts +211 -0
  24. package/dist/content-video/db.schemas.d.ts +486 -0
  25. package/dist/content-video/errors/index.d.ts +17 -0
  26. package/dist/content-video/errors/locales/zh.d.ts +16 -0
  27. package/dist/content-video/index.d.ts +8 -0
  28. package/dist/content-video/internal/service.d.ts +106 -0
  29. package/dist/content-video/permissions.d.ts +4 -0
  30. package/dist/content-video/schema.d.ts +257 -0
  31. package/dist/content-video/user/dto.schemas.d.ts +52 -0
  32. package/dist/content-video/user/router.d.ts +494 -0
  33. package/dist/content-video/user/service.d.ts +36 -0
  34. package/dist/db/schemas.d.ts +2 -0
  35. package/dist/file-storage/admin/dto.schemas.d.ts +4 -0
  36. package/dist/file-storage/admin/router.d.ts +2 -2
  37. package/dist/file-storage/admin/service.d.ts +2 -2
  38. package/dist/file-storage/db.schemas.d.ts +4 -4
  39. package/dist/file-storage/internal/service.d.ts +1 -1
  40. package/dist/file-storage/s3.client.d.ts +22 -0
  41. package/dist/file-storage/schema.d.ts +3 -3
  42. package/dist/file-storage/share/dto.schemas.d.ts +1 -0
  43. package/dist/file-storage/share/router.d.ts +1 -1
  44. package/dist/file-storage/user/dto.schemas.d.ts +6 -4
  45. package/dist/file-storage/user/router.d.ts +3 -3
  46. package/dist/file-storage/user/service.d.ts +2 -2
  47. package/dist/index.d.ts +1875 -215
  48. package/dist/ledger/admin/dto.schemas.d.ts +8 -0
  49. package/dist/ledger/admin/router.d.ts +4 -4
  50. package/dist/ledger/db.schemas.d.ts +8 -8
  51. package/dist/ledger/schema.d.ts +6 -6
  52. package/dist/ledger/user/dto.schemas.d.ts +8 -8
  53. package/dist/ledger/user/router.d.ts +2 -2
  54. package/dist/ledger/user/service.d.ts +2 -2
  55. package/dist/ledger-account-type/admin/router.d.ts +1 -13
  56. package/dist/lock-activity/admin/dto.schemas.d.ts +16 -0
  57. package/dist/lock-activity/admin/participation.dto.schemas.d.ts +52 -0
  58. package/dist/lock-activity/admin/reward.service.d.ts +48 -0
  59. package/dist/lock-activity/admin/router.d.ts +127 -0
  60. package/dist/lock-activity/admin/service.d.ts +134 -8
  61. package/dist/lock-activity/constants.d.ts +2 -0
  62. package/dist/lock-activity/cron.d.ts +6 -0
  63. package/dist/lock-activity/db.schemas.d.ts +34 -0
  64. package/dist/lock-activity/errors/index.d.ts +3 -0
  65. package/dist/lock-activity/errors/locales/zh.d.ts +3 -0
  66. package/dist/lock-activity/internal/reward.service.d.ts +15 -0
  67. package/dist/lock-activity/internal/service.d.ts +41 -0
  68. package/dist/lock-activity/schema.d.ts +18 -0
  69. package/dist/lock-activity/shared.dto.schemas.d.ts +7 -0
  70. package/dist/lock-activity/user/dto.schemas.d.ts +24 -0
  71. package/dist/lock-activity/user/router.d.ts +16 -0
  72. package/dist/lock-activity/user/service.d.ts +39 -3
  73. package/dist/news/admin/dto.schemas.d.ts +26 -26
  74. package/dist/news/admin/router.d.ts +25 -25
  75. package/dist/news/admin/service.d.ts +4 -1
  76. package/dist/news/user/service.d.ts +2 -2
  77. package/dist/referral/admin/dto.schemas.d.ts +597 -0
  78. package/dist/referral/admin/router.d.ts +565 -0
  79. package/dist/referral/admin/service.d.ts +6 -0
  80. package/dist/referral/errors/index.d.ts +15 -0
  81. package/dist/referral/errors/locales/zh.d.ts +14 -0
  82. package/dist/referral/index.d.ts +10 -0
  83. package/dist/referral/internal/service.d.ts +23 -0
  84. package/dist/referral/user/dto.schemas.d.ts +602 -0
  85. package/dist/referral/user/router.d.ts +606 -0
  86. package/dist/referral/user/service.d.ts +21 -0
  87. package/dist/user/internal/avatar.service.d.ts +42 -0
  88. package/dist/withdraw/user/router.d.ts +1 -13
  89. package/package.json +1 -1
@@ -1876,19 +1876,19 @@ export declare const adminRouter: Elysia<"/admin", {
1876
1876
  createdAt: Date;
1877
1877
  creditLedgerEntry?: {
1878
1878
  id: string;
1879
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
1879
+ bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
1880
1880
  amount: string;
1881
1881
  referenceId: string;
1882
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
1882
+ referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
1883
1883
  createdAt: Date;
1884
1884
  } | undefined;
1885
1885
  creditLedgerEntryId: string | null;
1886
1886
  debitLedgerEntry?: {
1887
1887
  id: string;
1888
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
1888
+ bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
1889
1889
  amount: string;
1890
1890
  referenceId: string;
1891
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
1891
+ referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
1892
1892
  createdAt: Date;
1893
1893
  } | undefined;
1894
1894
  debitLedgerEntryId: string | null;
@@ -2047,19 +2047,19 @@ export declare const adminRouter: Elysia<"/admin", {
2047
2047
  createdAt: Date;
2048
2048
  creditLedgerEntry?: {
2049
2049
  id: string;
2050
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2050
+ bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2051
2051
  amount: string;
2052
2052
  referenceId: string;
2053
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2053
+ referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2054
2054
  createdAt: Date;
2055
2055
  } | undefined;
2056
2056
  creditLedgerEntryId: string | null;
2057
2057
  debitLedgerEntry?: {
2058
2058
  id: string;
2059
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2059
+ bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2060
2060
  amount: string;
2061
2061
  referenceId: string;
2062
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2062
+ referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2063
2063
  createdAt: Date;
2064
2064
  } | undefined;
2065
2065
  debitLedgerEntryId: string | null;
@@ -2212,19 +2212,19 @@ export declare const adminRouter: Elysia<"/admin", {
2212
2212
  createdAt: Date;
2213
2213
  creditLedgerEntry?: {
2214
2214
  id: string;
2215
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2215
+ bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2216
2216
  amount: string;
2217
2217
  referenceId: string;
2218
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2218
+ referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2219
2219
  createdAt: Date;
2220
2220
  } | undefined;
2221
2221
  creditLedgerEntryId: string | null;
2222
2222
  debitLedgerEntry?: {
2223
2223
  id: string;
2224
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2224
+ bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
2225
2225
  amount: string;
2226
2226
  referenceId: string;
2227
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2227
+ referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
2228
2228
  createdAt: Date;
2229
2229
  } | undefined;
2230
2230
  debitLedgerEntryId: string | null;
@@ -4046,6 +4046,745 @@ export declare const adminRouter: Elysia<"/admin", {
4046
4046
  } & {
4047
4047
  admin: {
4048
4048
  checkIns: {};
4049
+ } & {
4050
+ checkIns: {
4051
+ "reward-plans": {};
4052
+ } & {
4053
+ "reward-plans": {
4054
+ post: {
4055
+ body: {
4056
+ checkInType?: "app" | "meeting" | undefined;
4057
+ dailyPayoutAccountTypeId: string;
4058
+ dailyRewardAmount: string;
4059
+ dailyRewardCategory?: string | undefined;
4060
+ isEnabled?: boolean | undefined;
4061
+ name: string;
4062
+ rewardAssetId: string;
4063
+ rules?: {
4064
+ ruleType: "consecutive" | "cumulative";
4065
+ thresholdDays: number;
4066
+ rewardAmount: string;
4067
+ rewardCategory?: string | undefined;
4068
+ payoutAccountTypeId: string;
4069
+ isEnabled?: boolean | undefined;
4070
+ sortOrder?: number | undefined;
4071
+ }[] | undefined;
4072
+ sortOrder?: number | undefined;
4073
+ };
4074
+ params: {};
4075
+ query: {};
4076
+ headers: {};
4077
+ response: {
4078
+ 200: {
4079
+ checkInType: "app" | "meeting";
4080
+ createdAt: Date;
4081
+ createdBy: string;
4082
+ creator: {
4083
+ id: string;
4084
+ name: string;
4085
+ email: string;
4086
+ } | null;
4087
+ dailyPayoutAccountType: {
4088
+ id: string;
4089
+ key: string;
4090
+ name: string;
4091
+ isActive: boolean;
4092
+ };
4093
+ dailyPayoutAccountTypeId: string;
4094
+ dailyRewardAmount: string;
4095
+ dailyRewardCategory: string;
4096
+ id: string;
4097
+ isEnabled: boolean;
4098
+ name: string;
4099
+ rewardAsset: {
4100
+ id: string;
4101
+ code: string;
4102
+ name: string;
4103
+ symbol: string | null;
4104
+ precision: number;
4105
+ isActive: boolean;
4106
+ };
4107
+ rewardAssetId: string;
4108
+ rules: {
4109
+ createdAt: Date;
4110
+ createdBy: string;
4111
+ creator: {
4112
+ id: string;
4113
+ name: string;
4114
+ email: string;
4115
+ } | null;
4116
+ id: string;
4117
+ isEnabled: boolean;
4118
+ payoutAccountType: {
4119
+ id: string;
4120
+ key: string;
4121
+ name: string;
4122
+ isActive: boolean;
4123
+ };
4124
+ payoutAccountTypeId: string;
4125
+ planId: string;
4126
+ rewardAmount: string;
4127
+ rewardCategory: string;
4128
+ ruleType: "consecutive" | "cumulative";
4129
+ sortOrder: number;
4130
+ thresholdDays: number;
4131
+ updatedAt: Date;
4132
+ updatedBy: string | null;
4133
+ updater: {
4134
+ id: string;
4135
+ name: string;
4136
+ email: string;
4137
+ } | null;
4138
+ }[];
4139
+ sortOrder: number;
4140
+ updatedAt: Date;
4141
+ updatedBy: string | null;
4142
+ updater: {
4143
+ id: string;
4144
+ name: string;
4145
+ email: string;
4146
+ } | null;
4147
+ };
4148
+ 401: "Unauthorized";
4149
+ 403: "Forbidden: Admins only";
4150
+ 422: {
4151
+ type: 'validation';
4152
+ on: string;
4153
+ summary?: string;
4154
+ message?: string;
4155
+ found?: unknown;
4156
+ property?: string;
4157
+ expected?: string;
4158
+ };
4159
+ };
4160
+ };
4161
+ };
4162
+ } & {
4163
+ "reward-plans": {
4164
+ get: {
4165
+ body: {};
4166
+ params: {};
4167
+ query: {
4168
+ checkInType?: "app" | "meeting" | undefined;
4169
+ isEnabled?: boolean | undefined;
4170
+ keyword?: string | undefined;
4171
+ limit?: number | undefined;
4172
+ offset?: number | undefined;
4173
+ pageIndex?: number | undefined;
4174
+ pageSize?: number | undefined;
4175
+ };
4176
+ headers: {};
4177
+ response: {
4178
+ 200: {
4179
+ data: {
4180
+ checkInType: "app" | "meeting";
4181
+ createdAt: Date;
4182
+ createdBy: string;
4183
+ creator: {
4184
+ id: string;
4185
+ name: string;
4186
+ email: string;
4187
+ } | null;
4188
+ dailyPayoutAccountType: {
4189
+ id: string;
4190
+ key: string;
4191
+ name: string;
4192
+ isActive: boolean;
4193
+ };
4194
+ dailyPayoutAccountTypeId: string;
4195
+ dailyRewardAmount: string;
4196
+ dailyRewardCategory: string;
4197
+ id: string;
4198
+ isEnabled: boolean;
4199
+ name: string;
4200
+ rewardAsset: {
4201
+ id: string;
4202
+ code: string;
4203
+ name: string;
4204
+ symbol: string | null;
4205
+ precision: number;
4206
+ isActive: boolean;
4207
+ };
4208
+ rewardAssetId: string;
4209
+ ruleCount: number;
4210
+ sortOrder: number;
4211
+ updatedAt: Date;
4212
+ updatedBy: string | null;
4213
+ updater: {
4214
+ id: string;
4215
+ name: string;
4216
+ email: string;
4217
+ } | null;
4218
+ }[];
4219
+ pagination: {
4220
+ pageSize: number;
4221
+ pageIndex: number;
4222
+ total: number;
4223
+ totalPages: number;
4224
+ hasNextPage: boolean;
4225
+ };
4226
+ };
4227
+ 401: "Unauthorized";
4228
+ 403: "Forbidden: Admins only";
4229
+ 422: {
4230
+ type: 'validation';
4231
+ on: string;
4232
+ summary?: string;
4233
+ message?: string;
4234
+ found?: unknown;
4235
+ property?: string;
4236
+ expected?: string;
4237
+ };
4238
+ };
4239
+ };
4240
+ };
4241
+ } & {
4242
+ "reward-plans": {
4243
+ ":id": {
4244
+ get: {
4245
+ body: {};
4246
+ params: {
4247
+ id: string;
4248
+ };
4249
+ query: {};
4250
+ headers: {};
4251
+ response: {
4252
+ 200: {
4253
+ checkInType: "app" | "meeting";
4254
+ createdAt: Date;
4255
+ createdBy: string;
4256
+ creator: {
4257
+ id: string;
4258
+ name: string;
4259
+ email: string;
4260
+ } | null;
4261
+ dailyPayoutAccountType: {
4262
+ id: string;
4263
+ key: string;
4264
+ name: string;
4265
+ isActive: boolean;
4266
+ };
4267
+ dailyPayoutAccountTypeId: string;
4268
+ dailyRewardAmount: string;
4269
+ dailyRewardCategory: string;
4270
+ id: string;
4271
+ isEnabled: boolean;
4272
+ name: string;
4273
+ rewardAsset: {
4274
+ id: string;
4275
+ code: string;
4276
+ name: string;
4277
+ symbol: string | null;
4278
+ precision: number;
4279
+ isActive: boolean;
4280
+ };
4281
+ rewardAssetId: string;
4282
+ rules: {
4283
+ createdAt: Date;
4284
+ createdBy: string;
4285
+ creator: {
4286
+ id: string;
4287
+ name: string;
4288
+ email: string;
4289
+ } | null;
4290
+ id: string;
4291
+ isEnabled: boolean;
4292
+ payoutAccountType: {
4293
+ id: string;
4294
+ key: string;
4295
+ name: string;
4296
+ isActive: boolean;
4297
+ };
4298
+ payoutAccountTypeId: string;
4299
+ planId: string;
4300
+ rewardAmount: string;
4301
+ rewardCategory: string;
4302
+ ruleType: "consecutive" | "cumulative";
4303
+ sortOrder: number;
4304
+ thresholdDays: number;
4305
+ updatedAt: Date;
4306
+ updatedBy: string | null;
4307
+ updater: {
4308
+ id: string;
4309
+ name: string;
4310
+ email: string;
4311
+ } | null;
4312
+ }[];
4313
+ sortOrder: number;
4314
+ updatedAt: Date;
4315
+ updatedBy: string | null;
4316
+ updater: {
4317
+ id: string;
4318
+ name: string;
4319
+ email: string;
4320
+ } | null;
4321
+ };
4322
+ 401: "Unauthorized";
4323
+ 403: "Forbidden: Admins only";
4324
+ 422: {
4325
+ type: 'validation';
4326
+ on: string;
4327
+ summary?: string;
4328
+ message?: string;
4329
+ found?: unknown;
4330
+ property?: string;
4331
+ expected?: string;
4332
+ };
4333
+ };
4334
+ };
4335
+ };
4336
+ };
4337
+ } & {
4338
+ "reward-plans": {
4339
+ ":id": {
4340
+ patch: {
4341
+ body: {
4342
+ name?: string | undefined;
4343
+ rewardAssetId?: string | undefined;
4344
+ dailyRewardAmount?: string | undefined;
4345
+ dailyRewardCategory?: string | undefined;
4346
+ dailyPayoutAccountTypeId?: string | undefined;
4347
+ checkInType?: "app" | "meeting" | undefined;
4348
+ isEnabled?: boolean | undefined;
4349
+ sortOrder?: number | undefined;
4350
+ };
4351
+ params: {
4352
+ id: string;
4353
+ };
4354
+ query: {};
4355
+ headers: {};
4356
+ response: {
4357
+ 200: {
4358
+ checkInType: "app" | "meeting";
4359
+ createdAt: Date;
4360
+ createdBy: string;
4361
+ creator: {
4362
+ id: string;
4363
+ name: string;
4364
+ email: string;
4365
+ } | null;
4366
+ dailyPayoutAccountType: {
4367
+ id: string;
4368
+ key: string;
4369
+ name: string;
4370
+ isActive: boolean;
4371
+ };
4372
+ dailyPayoutAccountTypeId: string;
4373
+ dailyRewardAmount: string;
4374
+ dailyRewardCategory: string;
4375
+ id: string;
4376
+ isEnabled: boolean;
4377
+ name: string;
4378
+ rewardAsset: {
4379
+ id: string;
4380
+ code: string;
4381
+ name: string;
4382
+ symbol: string | null;
4383
+ precision: number;
4384
+ isActive: boolean;
4385
+ };
4386
+ rewardAssetId: string;
4387
+ rules: {
4388
+ createdAt: Date;
4389
+ createdBy: string;
4390
+ creator: {
4391
+ id: string;
4392
+ name: string;
4393
+ email: string;
4394
+ } | null;
4395
+ id: string;
4396
+ isEnabled: boolean;
4397
+ payoutAccountType: {
4398
+ id: string;
4399
+ key: string;
4400
+ name: string;
4401
+ isActive: boolean;
4402
+ };
4403
+ payoutAccountTypeId: string;
4404
+ planId: string;
4405
+ rewardAmount: string;
4406
+ rewardCategory: string;
4407
+ ruleType: "consecutive" | "cumulative";
4408
+ sortOrder: number;
4409
+ thresholdDays: number;
4410
+ updatedAt: Date;
4411
+ updatedBy: string | null;
4412
+ updater: {
4413
+ id: string;
4414
+ name: string;
4415
+ email: string;
4416
+ } | null;
4417
+ }[];
4418
+ sortOrder: number;
4419
+ updatedAt: Date;
4420
+ updatedBy: string | null;
4421
+ updater: {
4422
+ id: string;
4423
+ name: string;
4424
+ email: string;
4425
+ } | null;
4426
+ };
4427
+ 401: "Unauthorized";
4428
+ 403: "Forbidden: Admins only";
4429
+ 422: {
4430
+ type: 'validation';
4431
+ on: string;
4432
+ summary?: string;
4433
+ message?: string;
4434
+ found?: unknown;
4435
+ property?: string;
4436
+ expected?: string;
4437
+ };
4438
+ };
4439
+ };
4440
+ };
4441
+ };
4442
+ } & {
4443
+ "reward-plans": {
4444
+ ":id": {
4445
+ delete: {
4446
+ body: {};
4447
+ params: {
4448
+ id: string;
4449
+ };
4450
+ query: {};
4451
+ headers: {};
4452
+ response: {
4453
+ 200: {
4454
+ success: boolean;
4455
+ };
4456
+ 401: "Unauthorized";
4457
+ 403: "Forbidden: Admins only";
4458
+ 422: {
4459
+ type: 'validation';
4460
+ on: string;
4461
+ summary?: string;
4462
+ message?: string;
4463
+ found?: unknown;
4464
+ property?: string;
4465
+ expected?: string;
4466
+ };
4467
+ };
4468
+ };
4469
+ };
4470
+ };
4471
+ } & {
4472
+ "reward-plans": {
4473
+ ":id": {
4474
+ rules: {
4475
+ post: {
4476
+ body: {
4477
+ ruleType: "consecutive" | "cumulative";
4478
+ thresholdDays: number;
4479
+ rewardAmount: string;
4480
+ rewardCategory?: string | undefined;
4481
+ payoutAccountTypeId: string;
4482
+ isEnabled?: boolean | undefined;
4483
+ sortOrder?: number | undefined;
4484
+ };
4485
+ params: {
4486
+ id: string;
4487
+ };
4488
+ query: {};
4489
+ headers: {};
4490
+ response: {
4491
+ 200: {
4492
+ checkInType: "app" | "meeting";
4493
+ createdAt: Date;
4494
+ createdBy: string;
4495
+ creator: {
4496
+ id: string;
4497
+ name: string;
4498
+ email: string;
4499
+ } | null;
4500
+ dailyPayoutAccountType: {
4501
+ id: string;
4502
+ key: string;
4503
+ name: string;
4504
+ isActive: boolean;
4505
+ };
4506
+ dailyPayoutAccountTypeId: string;
4507
+ dailyRewardAmount: string;
4508
+ dailyRewardCategory: string;
4509
+ id: string;
4510
+ isEnabled: boolean;
4511
+ name: string;
4512
+ rewardAsset: {
4513
+ id: string;
4514
+ code: string;
4515
+ name: string;
4516
+ symbol: string | null;
4517
+ precision: number;
4518
+ isActive: boolean;
4519
+ };
4520
+ rewardAssetId: string;
4521
+ rules: {
4522
+ createdAt: Date;
4523
+ createdBy: string;
4524
+ creator: {
4525
+ id: string;
4526
+ name: string;
4527
+ email: string;
4528
+ } | null;
4529
+ id: string;
4530
+ isEnabled: boolean;
4531
+ payoutAccountType: {
4532
+ id: string;
4533
+ key: string;
4534
+ name: string;
4535
+ isActive: boolean;
4536
+ };
4537
+ payoutAccountTypeId: string;
4538
+ planId: string;
4539
+ rewardAmount: string;
4540
+ rewardCategory: string;
4541
+ ruleType: "consecutive" | "cumulative";
4542
+ sortOrder: number;
4543
+ thresholdDays: number;
4544
+ updatedAt: Date;
4545
+ updatedBy: string | null;
4546
+ updater: {
4547
+ id: string;
4548
+ name: string;
4549
+ email: string;
4550
+ } | null;
4551
+ }[];
4552
+ sortOrder: number;
4553
+ updatedAt: Date;
4554
+ updatedBy: string | null;
4555
+ updater: {
4556
+ id: string;
4557
+ name: string;
4558
+ email: string;
4559
+ } | null;
4560
+ };
4561
+ 401: "Unauthorized";
4562
+ 403: "Forbidden: Admins only";
4563
+ 422: {
4564
+ type: 'validation';
4565
+ on: string;
4566
+ summary?: string;
4567
+ message?: string;
4568
+ found?: unknown;
4569
+ property?: string;
4570
+ expected?: string;
4571
+ };
4572
+ };
4573
+ };
4574
+ };
4575
+ };
4576
+ };
4577
+ } & {
4578
+ "reward-plans": {
4579
+ ":id": {
4580
+ rules: {
4581
+ ":ruleId": {
4582
+ patch: {
4583
+ body: {
4584
+ ruleType?: "consecutive" | "cumulative" | undefined;
4585
+ thresholdDays?: number | undefined;
4586
+ rewardAmount?: string | undefined;
4587
+ rewardCategory?: string | undefined;
4588
+ payoutAccountTypeId?: string | undefined;
4589
+ isEnabled?: boolean | undefined;
4590
+ sortOrder?: number | undefined;
4591
+ };
4592
+ params: {
4593
+ id: string;
4594
+ ruleId: string;
4595
+ };
4596
+ query: {};
4597
+ headers: {};
4598
+ response: {
4599
+ 200: {
4600
+ checkInType: "app" | "meeting";
4601
+ createdAt: Date;
4602
+ createdBy: string;
4603
+ creator: {
4604
+ id: string;
4605
+ name: string;
4606
+ email: string;
4607
+ } | null;
4608
+ dailyPayoutAccountType: {
4609
+ id: string;
4610
+ key: string;
4611
+ name: string;
4612
+ isActive: boolean;
4613
+ };
4614
+ dailyPayoutAccountTypeId: string;
4615
+ dailyRewardAmount: string;
4616
+ dailyRewardCategory: string;
4617
+ id: string;
4618
+ isEnabled: boolean;
4619
+ name: string;
4620
+ rewardAsset: {
4621
+ id: string;
4622
+ code: string;
4623
+ name: string;
4624
+ symbol: string | null;
4625
+ precision: number;
4626
+ isActive: boolean;
4627
+ };
4628
+ rewardAssetId: string;
4629
+ rules: {
4630
+ createdAt: Date;
4631
+ createdBy: string;
4632
+ creator: {
4633
+ id: string;
4634
+ name: string;
4635
+ email: string;
4636
+ } | null;
4637
+ id: string;
4638
+ isEnabled: boolean;
4639
+ payoutAccountType: {
4640
+ id: string;
4641
+ key: string;
4642
+ name: string;
4643
+ isActive: boolean;
4644
+ };
4645
+ payoutAccountTypeId: string;
4646
+ planId: string;
4647
+ rewardAmount: string;
4648
+ rewardCategory: string;
4649
+ ruleType: "consecutive" | "cumulative";
4650
+ sortOrder: number;
4651
+ thresholdDays: number;
4652
+ updatedAt: Date;
4653
+ updatedBy: string | null;
4654
+ updater: {
4655
+ id: string;
4656
+ name: string;
4657
+ email: string;
4658
+ } | null;
4659
+ }[];
4660
+ sortOrder: number;
4661
+ updatedAt: Date;
4662
+ updatedBy: string | null;
4663
+ updater: {
4664
+ id: string;
4665
+ name: string;
4666
+ email: string;
4667
+ } | null;
4668
+ };
4669
+ 401: "Unauthorized";
4670
+ 403: "Forbidden: Admins only";
4671
+ 422: {
4672
+ type: 'validation';
4673
+ on: string;
4674
+ summary?: string;
4675
+ message?: string;
4676
+ found?: unknown;
4677
+ property?: string;
4678
+ expected?: string;
4679
+ };
4680
+ };
4681
+ };
4682
+ };
4683
+ };
4684
+ };
4685
+ };
4686
+ } & {
4687
+ "reward-plans": {
4688
+ ":id": {
4689
+ rules: {
4690
+ ":ruleId": {
4691
+ delete: {
4692
+ body: {};
4693
+ params: {
4694
+ id: string;
4695
+ ruleId: string;
4696
+ };
4697
+ query: {};
4698
+ headers: {};
4699
+ response: {
4700
+ 200: {
4701
+ checkInType: "app" | "meeting";
4702
+ createdAt: Date;
4703
+ createdBy: string;
4704
+ creator: {
4705
+ id: string;
4706
+ name: string;
4707
+ email: string;
4708
+ } | null;
4709
+ dailyPayoutAccountType: {
4710
+ id: string;
4711
+ key: string;
4712
+ name: string;
4713
+ isActive: boolean;
4714
+ };
4715
+ dailyPayoutAccountTypeId: string;
4716
+ dailyRewardAmount: string;
4717
+ dailyRewardCategory: string;
4718
+ id: string;
4719
+ isEnabled: boolean;
4720
+ name: string;
4721
+ rewardAsset: {
4722
+ id: string;
4723
+ code: string;
4724
+ name: string;
4725
+ symbol: string | null;
4726
+ precision: number;
4727
+ isActive: boolean;
4728
+ };
4729
+ rewardAssetId: string;
4730
+ rules: {
4731
+ createdAt: Date;
4732
+ createdBy: string;
4733
+ creator: {
4734
+ id: string;
4735
+ name: string;
4736
+ email: string;
4737
+ } | null;
4738
+ id: string;
4739
+ isEnabled: boolean;
4740
+ payoutAccountType: {
4741
+ id: string;
4742
+ key: string;
4743
+ name: string;
4744
+ isActive: boolean;
4745
+ };
4746
+ payoutAccountTypeId: string;
4747
+ planId: string;
4748
+ rewardAmount: string;
4749
+ rewardCategory: string;
4750
+ ruleType: "consecutive" | "cumulative";
4751
+ sortOrder: number;
4752
+ thresholdDays: number;
4753
+ updatedAt: Date;
4754
+ updatedBy: string | null;
4755
+ updater: {
4756
+ id: string;
4757
+ name: string;
4758
+ email: string;
4759
+ } | null;
4760
+ }[];
4761
+ sortOrder: number;
4762
+ updatedAt: Date;
4763
+ updatedBy: string | null;
4764
+ updater: {
4765
+ id: string;
4766
+ name: string;
4767
+ email: string;
4768
+ } | null;
4769
+ };
4770
+ 401: "Unauthorized";
4771
+ 403: "Forbidden: Admins only";
4772
+ 422: {
4773
+ type: 'validation';
4774
+ on: string;
4775
+ summary?: string;
4776
+ message?: string;
4777
+ found?: unknown;
4778
+ property?: string;
4779
+ expected?: string;
4780
+ };
4781
+ };
4782
+ };
4783
+ };
4784
+ };
4785
+ };
4786
+ };
4787
+ };
4049
4788
  } & {
4050
4789
  checkIns: {
4051
4790
  get: {
@@ -4366,7 +5105,7 @@ export declare const adminRouter: Elysia<"/admin", {
4366
5105
  query: {
4367
5106
  accountId?: string | undefined;
4368
5107
  assetId?: string | undefined;
4369
- bizType?: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release" | undefined;
5108
+ bizType?: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release" | undefined;
4370
5109
  changeDirection?: "decrease" | "increase" | undefined;
4371
5110
  endDate?: Date | undefined;
4372
5111
  limit?: number | undefined;
@@ -4375,7 +5114,7 @@ export declare const adminRouter: Elysia<"/admin", {
4375
5114
  pageIndex?: number | undefined;
4376
5115
  pageSize?: number | undefined;
4377
5116
  referenceId?: string | undefined;
4378
- referenceType?: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order" | undefined;
5117
+ referenceType?: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order" | undefined;
4379
5118
  startDate?: Date | undefined;
4380
5119
  userId?: string | undefined;
4381
5120
  };
@@ -4394,7 +5133,7 @@ export declare const adminRouter: Elysia<"/admin", {
4394
5133
  isActive: boolean;
4395
5134
  };
4396
5135
  assetId: string;
4397
- bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
5136
+ bizType: "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "deposit_credit" | "internal_transfer_in" | "internal_transfer_out" | "lock_activity_reward_payout" | "manual_decrease" | "manual_increase" | "trade_market_buy_base_transfer" | "trade_market_buy_quote_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer" | "transfer_in" | "transfer_out" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_principal_return" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_subscribe_transfer" | "withdraw_debit" | "withdraw_freeze" | "withdraw_release";
4398
5137
  createdAt: Date;
4399
5138
  fromAccount?: {
4400
5139
  asset: {
@@ -4446,7 +5185,7 @@ export declare const adminRouter: Elysia<"/admin", {
4446
5185
  } | undefined;
4447
5186
  operatorId: string | null;
4448
5187
  referenceId: string;
4449
- referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
5188
+ referenceType: "asset_convert_order" | "deposit_order" | "internal_transfer_order" | "lock_activity_participation" | "manual_adjustment" | "trade_market_order" | "transfer_order" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "welfare_cycle_subscription" | "withdraw_order";
4450
5189
  toAccount?: {
4451
5190
  asset: {
4452
5191
  id: string;
@@ -5982,6 +6721,106 @@ export declare const adminRouter: Elysia<"/admin", {
5982
6721
  };
5983
6722
  };
5984
6723
  };
6724
+ } & {
6725
+ admin: {
6726
+ referrals: {};
6727
+ } & {
6728
+ referrals: {
6729
+ summary: {
6730
+ get: {
6731
+ body: {};
6732
+ params: {};
6733
+ query: {
6734
+ referralCode?: string | undefined;
6735
+ };
6736
+ headers: {};
6737
+ response: {
6738
+ 200: {
6739
+ level1Count: number;
6740
+ level2Count: number;
6741
+ level3Count: number;
6742
+ referralCode: string;
6743
+ referredBy?: string | undefined;
6744
+ totalCount: number;
6745
+ userId: string;
6746
+ };
6747
+ 401: "Unauthorized";
6748
+ 403: "Forbidden: Admins only";
6749
+ 422: {
6750
+ type: 'validation';
6751
+ on: string;
6752
+ summary?: string;
6753
+ message?: string;
6754
+ found?: unknown;
6755
+ property?: string;
6756
+ expected?: string;
6757
+ };
6758
+ };
6759
+ };
6760
+ };
6761
+ };
6762
+ } & {
6763
+ referrals: {
6764
+ members: {
6765
+ get: {
6766
+ body: {};
6767
+ params: {};
6768
+ query: {
6769
+ limit?: number | undefined;
6770
+ maxDepth?: number | undefined;
6771
+ offset?: number | undefined;
6772
+ pageIndex?: number | undefined;
6773
+ pageSize?: number | undefined;
6774
+ referralCode: string;
6775
+ };
6776
+ headers: {};
6777
+ response: {
6778
+ 200: {
6779
+ data: {
6780
+ depth: number;
6781
+ user: {
6782
+ id: string;
6783
+ name: string;
6784
+ email: string;
6785
+ emailVerified: boolean;
6786
+ image: string | null;
6787
+ createdAt: Date;
6788
+ updatedAt: Date;
6789
+ twoFactorEnabled: boolean | null;
6790
+ username: string | null;
6791
+ displayUsername: string | null;
6792
+ phoneNumber: string | null;
6793
+ phoneNumberVerified: boolean | null;
6794
+ role: string | null;
6795
+ banned: boolean | null;
6796
+ banReason: string | null;
6797
+ banExpires: Date | null;
6798
+ };
6799
+ }[];
6800
+ pagination: {
6801
+ pageSize: number;
6802
+ pageIndex: number;
6803
+ total: number;
6804
+ totalPages: number;
6805
+ hasNextPage: boolean;
6806
+ };
6807
+ };
6808
+ 401: "Unauthorized";
6809
+ 403: "Forbidden: Admins only";
6810
+ 422: {
6811
+ type: 'validation';
6812
+ on: string;
6813
+ summary?: string;
6814
+ message?: string;
6815
+ found?: unknown;
6816
+ property?: string;
6817
+ expected?: string;
6818
+ };
6819
+ };
6820
+ };
6821
+ };
6822
+ };
6823
+ };
5985
6824
  } & {
5986
6825
  admin: {
5987
6826
  referrals: {
@@ -7085,22 +7924,22 @@ export declare const adminRouter: Elysia<"/admin", {
7085
7924
  news: {
7086
7925
  post: {
7087
7926
  body: {
7088
- title: string;
7089
- summary?: string | null | undefined;
7090
- content: string;
7927
+ attachmentIds?: string[] | null | undefined;
7091
7928
  categoryId?: string | undefined;
7092
- status?: "archived" | "draft" | "published" | undefined;
7093
- scope?: string[] | undefined;
7094
- isPinned?: boolean | undefined;
7095
- isHot?: boolean | undefined;
7929
+ content: string;
7930
+ expiresAt?: string | Date | null | undefined;
7931
+ externalUrl?: string | null | undefined;
7096
7932
  hasVideo?: boolean | undefined;
7097
- sortOrder?: number | undefined;
7933
+ isHot?: boolean | undefined;
7934
+ isPinned?: boolean | undefined;
7935
+ publishedAt?: string | Date | null | undefined;
7098
7936
  requireReadConfirmation?: boolean | undefined;
7099
- externalUrl?: string | null | undefined;
7100
- publishedAt?: Date | null | undefined;
7101
- expiresAt?: Date | null | undefined;
7937
+ scope?: string[] | undefined;
7938
+ sortOrder?: number | undefined;
7939
+ status?: "archived" | "draft" | "published" | undefined;
7940
+ summary?: string | null | undefined;
7102
7941
  thumbnailId?: string | null | undefined;
7103
- attachmentIds?: string[] | null | undefined;
7942
+ title: string;
7104
7943
  };
7105
7944
  params: {};
7106
7945
  query: {};
@@ -7241,7 +8080,7 @@ export declare const adminRouter: Elysia<"/admin", {
7241
8080
  archivedAt: Date | null;
7242
8081
  businessId: string | null;
7243
8082
  businessMetadata: string | null;
7244
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
8083
+ 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";
7245
8084
  createdAt: Date;
7246
8085
  deletedAt: Date | null;
7247
8086
  downloadCount: number | null;
@@ -7271,51 +8110,356 @@ export declare const adminRouter: Elysia<"/admin", {
7271
8110
  thumbnailId: string | null;
7272
8111
  title: string;
7273
8112
  updatedAt: Date;
7274
- viewCount: number;
7275
- };
7276
- 401: "Unauthorized";
7277
- 403: "Forbidden: Admins only";
7278
- 422: {
7279
- type: 'validation';
7280
- on: string;
7281
- summary?: string;
7282
- message?: string;
7283
- found?: unknown;
7284
- property?: string;
7285
- expected?: string;
8113
+ viewCount: number;
8114
+ };
8115
+ 401: "Unauthorized";
8116
+ 403: "Forbidden: Admins only";
8117
+ 422: {
8118
+ type: 'validation';
8119
+ on: string;
8120
+ summary?: string;
8121
+ message?: string;
8122
+ found?: unknown;
8123
+ property?: string;
8124
+ expected?: string;
8125
+ };
8126
+ };
8127
+ };
8128
+ };
8129
+ };
8130
+ } & {
8131
+ news: {
8132
+ ":id": {
8133
+ patch: {
8134
+ body: {
8135
+ attachmentIds?: string[] | null | undefined;
8136
+ categoryId?: string | undefined;
8137
+ content?: string | undefined;
8138
+ expiresAt?: string | Date | null | undefined;
8139
+ externalUrl?: string | null | undefined;
8140
+ hasVideo?: boolean | undefined;
8141
+ isHot?: boolean | undefined;
8142
+ isPinned?: boolean | undefined;
8143
+ publishedAt?: string | Date | null | undefined;
8144
+ requireReadConfirmation?: boolean | undefined;
8145
+ scope?: string[] | undefined;
8146
+ sortOrder?: number | undefined;
8147
+ status?: "archived" | "draft" | "published" | undefined;
8148
+ summary?: string | null | undefined;
8149
+ thumbnailId?: string | null | undefined;
8150
+ title?: string | undefined;
8151
+ };
8152
+ params: {
8153
+ id: string;
8154
+ };
8155
+ query: {};
8156
+ headers: {};
8157
+ response: {
8158
+ 401: "Unauthorized";
8159
+ 403: "Forbidden: Admins only";
8160
+ 422: {
8161
+ type: 'validation';
8162
+ on: string;
8163
+ summary?: string;
8164
+ message?: string;
8165
+ found?: unknown;
8166
+ property?: string;
8167
+ expected?: string;
8168
+ };
8169
+ };
8170
+ };
8171
+ };
8172
+ };
8173
+ } & {
8174
+ news: {
8175
+ ":id": {
8176
+ delete: {
8177
+ body: {};
8178
+ params: {
8179
+ id: string;
8180
+ };
8181
+ query: {};
8182
+ headers: {};
8183
+ response: {
8184
+ 200: {
8185
+ success: boolean;
8186
+ };
8187
+ 401: "Unauthorized";
8188
+ 403: "Forbidden: Admins only";
8189
+ 422: {
8190
+ type: 'validation';
8191
+ on: string;
8192
+ summary?: string;
8193
+ message?: string;
8194
+ found?: unknown;
8195
+ property?: string;
8196
+ expected?: string;
8197
+ };
8198
+ };
8199
+ };
8200
+ };
8201
+ };
8202
+ } & {
8203
+ news: {
8204
+ ":id": {
8205
+ pin: {
8206
+ post: {
8207
+ body: {
8208
+ isPinned: boolean;
8209
+ sortOrder?: number | undefined;
8210
+ };
8211
+ params: {
8212
+ id: string;
8213
+ };
8214
+ query: {};
8215
+ headers: {};
8216
+ response: {
8217
+ 401: "Unauthorized";
8218
+ 403: "Forbidden: Admins only";
8219
+ 422: {
8220
+ type: 'validation';
8221
+ on: string;
8222
+ summary?: string;
8223
+ message?: string;
8224
+ found?: unknown;
8225
+ property?: string;
8226
+ expected?: string;
8227
+ };
8228
+ };
8229
+ };
8230
+ };
8231
+ };
8232
+ };
8233
+ } & {
8234
+ news: {
8235
+ ":id": {
8236
+ hot: {
8237
+ post: {
8238
+ body: {
8239
+ isHot: boolean;
8240
+ };
8241
+ params: {
8242
+ id: string;
8243
+ };
8244
+ query: {};
8245
+ headers: {};
8246
+ response: {
8247
+ 401: "Unauthorized";
8248
+ 403: "Forbidden: Admins only";
8249
+ 422: {
8250
+ type: 'validation';
8251
+ on: string;
8252
+ summary?: string;
8253
+ message?: string;
8254
+ found?: unknown;
8255
+ property?: string;
8256
+ expected?: string;
8257
+ };
8258
+ };
8259
+ };
8260
+ };
8261
+ };
8262
+ };
8263
+ } & {
8264
+ news: {
8265
+ stats: {
8266
+ get: {
8267
+ body: {};
8268
+ params: {};
8269
+ query: {};
8270
+ headers: {};
8271
+ response: {
8272
+ 200: {
8273
+ total: number;
8274
+ published: number;
8275
+ pinned: number;
8276
+ requireConfirmation: number;
8277
+ };
8278
+ 401: "Unauthorized";
8279
+ 403: "Forbidden: Admins only";
8280
+ };
8281
+ };
8282
+ };
8283
+ };
8284
+ };
8285
+ } & {
8286
+ admin: {
8287
+ content_videos: {};
8288
+ } & {
8289
+ content_videos: {
8290
+ post: {
8291
+ body: {
8292
+ coverFileId?: string | undefined;
8293
+ description?: string | null | undefined;
8294
+ durationSeconds?: number | null | undefined;
8295
+ isEnabled?: boolean | undefined;
8296
+ publishedAt?: string | Date | null | undefined;
8297
+ sortOrder?: number | undefined;
8298
+ status?: "archived" | "draft" | "published" | undefined;
8299
+ title: string;
8300
+ videoFileId: string;
8301
+ };
8302
+ params: {};
8303
+ query: {};
8304
+ headers: {};
8305
+ response: {
8306
+ 200: {
8307
+ coverFile?: {
8308
+ id: string;
8309
+ fileName: string | null;
8310
+ mimeType: string | null;
8311
+ fileSize: number | null;
8312
+ publicUrl: string | null;
8313
+ } | undefined;
8314
+ coverFileId: string | null;
8315
+ coverUrl?: string | undefined;
8316
+ createdAt: Date;
8317
+ createdBy: string;
8318
+ description: string | null;
8319
+ durationSeconds: number | null;
8320
+ id: string;
8321
+ isEnabled: boolean;
8322
+ publishedAt: Date | null;
8323
+ sortOrder: number;
8324
+ status: "archived" | "draft" | "published";
8325
+ title: string;
8326
+ updatedAt: Date;
8327
+ videoFile?: {
8328
+ id: string;
8329
+ fileName: string | null;
8330
+ mimeType: string | null;
8331
+ fileSize: number | null;
8332
+ publicUrl: string | null;
8333
+ } | undefined;
8334
+ videoFileId: string;
8335
+ videoUrl?: string | undefined;
8336
+ };
8337
+ 401: "Unauthorized";
8338
+ 403: "Forbidden: Admins only";
8339
+ 422: {
8340
+ type: 'validation';
8341
+ on: string;
8342
+ summary?: string;
8343
+ message?: string;
8344
+ found?: unknown;
8345
+ property?: string;
8346
+ expected?: string;
8347
+ };
8348
+ };
8349
+ };
8350
+ };
8351
+ } & {
8352
+ content_videos: {
8353
+ get: {
8354
+ body: {};
8355
+ params: {};
8356
+ query: {
8357
+ isEnabled?: boolean | undefined;
8358
+ keyword?: string | undefined;
8359
+ limit?: number | undefined;
8360
+ offset?: number | undefined;
8361
+ pageIndex?: number | undefined;
8362
+ pageSize?: number | undefined;
8363
+ status?: "archived" | "draft" | "published" | undefined;
8364
+ };
8365
+ headers: {};
8366
+ response: {
8367
+ 200: {
8368
+ data: {
8369
+ coverFile?: {
8370
+ id: string;
8371
+ fileName: string | null;
8372
+ mimeType: string | null;
8373
+ fileSize: number | null;
8374
+ publicUrl: string | null;
8375
+ } | undefined;
8376
+ coverFileId: string | null;
8377
+ coverUrl?: string | undefined;
8378
+ createdAt: Date;
8379
+ createdBy: string;
8380
+ description: string | null;
8381
+ durationSeconds: number | null;
8382
+ id: string;
8383
+ isEnabled: boolean;
8384
+ publishedAt: Date | null;
8385
+ sortOrder: number;
8386
+ status: "archived" | "draft" | "published";
8387
+ title: string;
8388
+ updatedAt: Date;
8389
+ videoFile?: {
8390
+ id: string;
8391
+ fileName: string | null;
8392
+ mimeType: string | null;
8393
+ fileSize: number | null;
8394
+ publicUrl: string | null;
8395
+ } | undefined;
8396
+ videoFileId: string;
8397
+ videoUrl?: string | undefined;
8398
+ }[];
8399
+ pagination: {
8400
+ pageSize: number;
8401
+ pageIndex: number;
8402
+ total: number;
8403
+ totalPages: number;
8404
+ hasNextPage: boolean;
7286
8405
  };
7287
8406
  };
8407
+ 401: "Unauthorized";
8408
+ 403: "Forbidden: Admins only";
8409
+ 422: {
8410
+ type: 'validation';
8411
+ on: string;
8412
+ summary?: string;
8413
+ message?: string;
8414
+ found?: unknown;
8415
+ property?: string;
8416
+ expected?: string;
8417
+ };
7288
8418
  };
7289
8419
  };
7290
8420
  };
7291
8421
  } & {
7292
- news: {
8422
+ content_videos: {
7293
8423
  ":id": {
7294
- patch: {
7295
- body: {
7296
- title?: string | undefined;
7297
- summary?: string | null | undefined;
7298
- content?: string | undefined;
7299
- categoryId?: string | undefined;
7300
- status?: "archived" | "draft" | "published" | undefined;
7301
- scope?: string[] | undefined;
7302
- isPinned?: boolean | undefined;
7303
- isHot?: boolean | undefined;
7304
- hasVideo?: boolean | undefined;
7305
- sortOrder?: number | undefined;
7306
- requireReadConfirmation?: boolean | undefined;
7307
- externalUrl?: string | null | undefined;
7308
- publishedAt?: Date | null | undefined;
7309
- expiresAt?: Date | null | undefined;
7310
- thumbnailId?: string | null | undefined;
7311
- attachmentIds?: string[] | null | undefined;
7312
- };
8424
+ get: {
8425
+ body: {};
7313
8426
  params: {
7314
8427
  id: string;
7315
8428
  };
7316
8429
  query: {};
7317
8430
  headers: {};
7318
8431
  response: {
8432
+ 200: {
8433
+ coverFile?: {
8434
+ id: string;
8435
+ fileName: string | null;
8436
+ mimeType: string | null;
8437
+ fileSize: number | null;
8438
+ publicUrl: string | null;
8439
+ } | undefined;
8440
+ coverFileId: string | null;
8441
+ coverUrl?: string | undefined;
8442
+ createdAt: Date;
8443
+ createdBy: string;
8444
+ description: string | null;
8445
+ durationSeconds: number | null;
8446
+ id: string;
8447
+ isEnabled: boolean;
8448
+ publishedAt: Date | null;
8449
+ sortOrder: number;
8450
+ status: "archived" | "draft" | "published";
8451
+ title: string;
8452
+ updatedAt: Date;
8453
+ videoFile?: {
8454
+ id: string;
8455
+ fileName: string | null;
8456
+ mimeType: string | null;
8457
+ fileSize: number | null;
8458
+ publicUrl: string | null;
8459
+ } | undefined;
8460
+ videoFileId: string;
8461
+ videoUrl?: string | undefined;
8462
+ };
7319
8463
  401: "Unauthorized";
7320
8464
  403: "Forbidden: Admins only";
7321
8465
  422: {
@@ -7332,10 +8476,20 @@ export declare const adminRouter: Elysia<"/admin", {
7332
8476
  };
7333
8477
  };
7334
8478
  } & {
7335
- news: {
8479
+ content_videos: {
7336
8480
  ":id": {
7337
- delete: {
7338
- body: {};
8481
+ patch: {
8482
+ body: {
8483
+ coverFileId?: string | undefined;
8484
+ description?: string | null | undefined;
8485
+ durationSeconds?: number | null | undefined;
8486
+ isEnabled?: boolean | undefined;
8487
+ publishedAt?: string | Date | null | undefined;
8488
+ sortOrder?: number | undefined;
8489
+ status?: "archived" | "draft" | "published" | undefined;
8490
+ title?: string | undefined;
8491
+ videoFileId?: string | undefined;
8492
+ };
7339
8493
  params: {
7340
8494
  id: string;
7341
8495
  };
@@ -7343,7 +8497,35 @@ export declare const adminRouter: Elysia<"/admin", {
7343
8497
  headers: {};
7344
8498
  response: {
7345
8499
  200: {
7346
- success: boolean;
8500
+ coverFile?: {
8501
+ id: string;
8502
+ fileName: string | null;
8503
+ mimeType: string | null;
8504
+ fileSize: number | null;
8505
+ publicUrl: string | null;
8506
+ } | undefined;
8507
+ coverFileId: string | null;
8508
+ coverUrl?: string | undefined;
8509
+ createdAt: Date;
8510
+ createdBy: string;
8511
+ description: string | null;
8512
+ durationSeconds: number | null;
8513
+ id: string;
8514
+ isEnabled: boolean;
8515
+ publishedAt: Date | null;
8516
+ sortOrder: number;
8517
+ status: "archived" | "draft" | "published";
8518
+ title: string;
8519
+ updatedAt: Date;
8520
+ videoFile?: {
8521
+ id: string;
8522
+ fileName: string | null;
8523
+ mimeType: string | null;
8524
+ fileSize: number | null;
8525
+ publicUrl: string | null;
8526
+ } | undefined;
8527
+ videoFileId: string;
8528
+ videoUrl?: string | undefined;
7347
8529
  };
7348
8530
  401: "Unauthorized";
7349
8531
  403: "Forbidden: Admins only";
@@ -7361,20 +8543,48 @@ export declare const adminRouter: Elysia<"/admin", {
7361
8543
  };
7362
8544
  };
7363
8545
  } & {
7364
- news: {
8546
+ content_videos: {
7365
8547
  ":id": {
7366
- pin: {
8548
+ publish: {
7367
8549
  post: {
7368
- body: {
7369
- isPinned: boolean;
7370
- sortOrder?: number | undefined;
7371
- };
8550
+ body: {};
7372
8551
  params: {
7373
8552
  id: string;
7374
8553
  };
7375
8554
  query: {};
7376
8555
  headers: {};
7377
8556
  response: {
8557
+ 200: {
8558
+ coverFile?: {
8559
+ id: string;
8560
+ fileName: string | null;
8561
+ mimeType: string | null;
8562
+ fileSize: number | null;
8563
+ publicUrl: string | null;
8564
+ } | undefined;
8565
+ coverFileId: string | null;
8566
+ coverUrl?: string | undefined;
8567
+ createdAt: Date;
8568
+ createdBy: string;
8569
+ description: string | null;
8570
+ durationSeconds: number | null;
8571
+ id: string;
8572
+ isEnabled: boolean;
8573
+ publishedAt: Date | null;
8574
+ sortOrder: number;
8575
+ status: "archived" | "draft" | "published";
8576
+ title: string;
8577
+ updatedAt: Date;
8578
+ videoFile?: {
8579
+ id: string;
8580
+ fileName: string | null;
8581
+ mimeType: string | null;
8582
+ fileSize: number | null;
8583
+ publicUrl: string | null;
8584
+ } | undefined;
8585
+ videoFileId: string;
8586
+ videoUrl?: string | undefined;
8587
+ };
7378
8588
  401: "Unauthorized";
7379
8589
  403: "Forbidden: Admins only";
7380
8590
  422: {
@@ -7392,19 +8602,48 @@ export declare const adminRouter: Elysia<"/admin", {
7392
8602
  };
7393
8603
  };
7394
8604
  } & {
7395
- news: {
8605
+ content_videos: {
7396
8606
  ":id": {
7397
- hot: {
8607
+ archive: {
7398
8608
  post: {
7399
- body: {
7400
- isHot: boolean;
7401
- };
8609
+ body: {};
7402
8610
  params: {
7403
8611
  id: string;
7404
8612
  };
7405
8613
  query: {};
7406
8614
  headers: {};
7407
8615
  response: {
8616
+ 200: {
8617
+ coverFile?: {
8618
+ id: string;
8619
+ fileName: string | null;
8620
+ mimeType: string | null;
8621
+ fileSize: number | null;
8622
+ publicUrl: string | null;
8623
+ } | undefined;
8624
+ coverFileId: string | null;
8625
+ coverUrl?: string | undefined;
8626
+ createdAt: Date;
8627
+ createdBy: string;
8628
+ description: string | null;
8629
+ durationSeconds: number | null;
8630
+ id: string;
8631
+ isEnabled: boolean;
8632
+ publishedAt: Date | null;
8633
+ sortOrder: number;
8634
+ status: "archived" | "draft" | "published";
8635
+ title: string;
8636
+ updatedAt: Date;
8637
+ videoFile?: {
8638
+ id: string;
8639
+ fileName: string | null;
8640
+ mimeType: string | null;
8641
+ fileSize: number | null;
8642
+ publicUrl: string | null;
8643
+ } | undefined;
8644
+ videoFileId: string;
8645
+ videoUrl?: string | undefined;
8646
+ };
7408
8647
  401: "Unauthorized";
7409
8648
  403: "Forbidden: Admins only";
7410
8649
  422: {
@@ -7422,22 +8661,30 @@ export declare const adminRouter: Elysia<"/admin", {
7422
8661
  };
7423
8662
  };
7424
8663
  } & {
7425
- news: {
7426
- stats: {
7427
- get: {
8664
+ content_videos: {
8665
+ ":id": {
8666
+ delete: {
7428
8667
  body: {};
7429
- params: {};
8668
+ params: {
8669
+ id: string;
8670
+ };
7430
8671
  query: {};
7431
8672
  headers: {};
7432
8673
  response: {
7433
8674
  200: {
7434
- total: number;
7435
- published: number;
7436
- pinned: number;
7437
- requireConfirmation: number;
8675
+ success: boolean;
7438
8676
  };
7439
8677
  401: "Unauthorized";
7440
8678
  403: "Forbidden: Admins only";
8679
+ 422: {
8680
+ type: 'validation';
8681
+ on: string;
8682
+ summary?: string;
8683
+ message?: string;
8684
+ found?: unknown;
8685
+ property?: string;
8686
+ expected?: string;
8687
+ };
7441
8688
  };
7442
8689
  };
7443
8690
  };
@@ -7851,7 +9098,7 @@ export declare const adminRouter: Elysia<"/admin", {
7851
9098
  offset?: number | undefined;
7852
9099
  pageSize?: number | undefined;
7853
9100
  pageIndex?: number | undefined;
7854
- businessType?: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt" | undefined;
9101
+ 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;
7855
9102
  businessId?: string | undefined;
7856
9103
  status?: "active" | "archived" | "pending_deletion" | "uploading" | null | undefined;
7857
9104
  accessControl?: "private" | "public" | "restricted" | null | undefined;
@@ -7865,7 +9112,7 @@ export declare const adminRouter: Elysia<"/admin", {
7865
9112
  archivedAt: Date | null;
7866
9113
  businessId: string | null;
7867
9114
  businessMetadata: string | null;
7868
- businessType: "avatar" | "bank_verification" | "contract" | "cover_image" | "export_report" | "financial_report" | "kyc_document" | "ledger_account_import" | "news_attachment" | "notification_attachment" | "other" | "transaction_receipt";
9115
+ 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";
7869
9116
  createdAt: Date;
7870
9117
  deletedAt: Date | null;
7871
9118
  downloadCount: number | null;
@@ -9331,6 +10578,14 @@ export declare const adminRouter: Elysia<"/admin", {
9331
10578
  headers: {};
9332
10579
  response: {
9333
10580
  200: {
10581
+ coverImageFile?: {
10582
+ id: string;
10583
+ fileName: string | null;
10584
+ mimeType: string | null;
10585
+ fileSize: number | null;
10586
+ publicUrl: string | null;
10587
+ } | undefined;
10588
+ coverImageFileId: string | null;
9334
10589
  coverImageUrl: string;
9335
10590
  createdAt: Date;
9336
10591
  description: string | null;
@@ -9399,6 +10654,14 @@ export declare const adminRouter: Elysia<"/admin", {
9399
10654
  headers: {};
9400
10655
  response: {
9401
10656
  200: {
10657
+ coverImageFile?: {
10658
+ id: string;
10659
+ fileName: string | null;
10660
+ mimeType: string | null;
10661
+ fileSize: number | null;
10662
+ publicUrl: string | null;
10663
+ } | undefined;
10664
+ coverImageFileId: string | null;
9402
10665
  coverImageUrl: string;
9403
10666
  createdAt: Date;
9404
10667
  description: string | null;
@@ -9457,6 +10720,14 @@ export declare const adminRouter: Elysia<"/admin", {
9457
10720
  headers: {};
9458
10721
  response: {
9459
10722
  200: {
10723
+ coverImageFile?: {
10724
+ id: string;
10725
+ fileName: string | null;
10726
+ mimeType: string | null;
10727
+ fileSize: number | null;
10728
+ publicUrl: string | null;
10729
+ } | undefined;
10730
+ coverImageFileId: string | null;
9460
10731
  coverImageUrl: string;
9461
10732
  createdAt: Date;
9462
10733
  description: string | null;
@@ -9521,6 +10792,14 @@ export declare const adminRouter: Elysia<"/admin", {
9521
10792
  response: {
9522
10793
  200: {
9523
10794
  data: {
10795
+ coverImageFile?: {
10796
+ id: string;
10797
+ fileName: string | null;
10798
+ mimeType: string | null;
10799
+ fileSize: number | null;
10800
+ publicUrl: string | null;
10801
+ } | undefined;
10802
+ coverImageFileId: string | null;
9524
10803
  coverImageUrl: string;
9525
10804
  createdAt: Date;
9526
10805
  description: string | null;
@@ -9587,6 +10866,14 @@ export declare const adminRouter: Elysia<"/admin", {
9587
10866
  headers: {};
9588
10867
  response: {
9589
10868
  200: {
10869
+ coverImageFile?: {
10870
+ id: string;
10871
+ fileName: string | null;
10872
+ mimeType: string | null;
10873
+ fileSize: number | null;
10874
+ publicUrl: string | null;
10875
+ } | undefined;
10876
+ coverImageFileId: string | null;
9590
10877
  coverImageUrl: string;
9591
10878
  createdAt: Date;
9592
10879
  description: string | null;
@@ -9647,6 +10934,14 @@ export declare const adminRouter: Elysia<"/admin", {
9647
10934
  headers: {};
9648
10935
  response: {
9649
10936
  200: {
10937
+ coverImageFile?: {
10938
+ id: string;
10939
+ fileName: string | null;
10940
+ mimeType: string | null;
10941
+ fileSize: number | null;
10942
+ publicUrl: string | null;
10943
+ } | undefined;
10944
+ coverImageFileId: string | null;
9650
10945
  coverImageUrl: string;
9651
10946
  createdAt: Date;
9652
10947
  description: string | null;
@@ -9707,6 +11002,14 @@ export declare const adminRouter: Elysia<"/admin", {
9707
11002
  headers: {};
9708
11003
  response: {
9709
11004
  200: {
11005
+ coverImageFile?: {
11006
+ id: string;
11007
+ fileName: string | null;
11008
+ mimeType: string | null;
11009
+ fileSize: number | null;
11010
+ publicUrl: string | null;
11011
+ } | undefined;
11012
+ coverImageFileId: string | null;
9710
11013
  coverImageUrl: string;
9711
11014
  createdAt: Date;
9712
11015
  description: string | null;
@@ -10125,6 +11428,77 @@ export declare const adminRouter: Elysia<"/admin", {
10125
11428
  };
10126
11429
  };
10127
11430
  };
11431
+ } & {
11432
+ lock_activity: {
11433
+ participations: {
11434
+ ":id": {
11435
+ "issue-reward": {
11436
+ post: {
11437
+ body: {};
11438
+ params: {
11439
+ id: string;
11440
+ };
11441
+ query: {};
11442
+ headers: {};
11443
+ response: {
11444
+ 200: {
11445
+ activity: {
11446
+ id: string;
11447
+ title: string;
11448
+ startAt: Date;
11449
+ endAt: Date;
11450
+ status: "active" | "cancelled" | "draft" | "ended";
11451
+ };
11452
+ activityId: string;
11453
+ adminRemark: string | null;
11454
+ createdAt: Date;
11455
+ id: string;
11456
+ inviteCode: string;
11457
+ inviter?: {
11458
+ id: string;
11459
+ email: string;
11460
+ username: string | null;
11461
+ } | undefined;
11462
+ inviterMatched: boolean;
11463
+ inviterUserId: string | null;
11464
+ isIdempotent: boolean;
11465
+ ledgerEntryId: string;
11466
+ rejectReason: string | null;
11467
+ reviewedAt: Date | null;
11468
+ rewardAmount: string;
11469
+ rewardIssuedAt: Date | null;
11470
+ status: "rejected" | "reward_issued" | "submitted" | "under_review";
11471
+ submittedAt: Date;
11472
+ updatedAt: Date;
11473
+ user: {
11474
+ id: string;
11475
+ email: string;
11476
+ username: string | null;
11477
+ profile?: {
11478
+ uid: string;
11479
+ country: string | null;
11480
+ referralCode: string | null;
11481
+ } | undefined;
11482
+ };
11483
+ userId: string;
11484
+ };
11485
+ 401: "Unauthorized";
11486
+ 403: "Forbidden: Admins only";
11487
+ 422: {
11488
+ type: 'validation';
11489
+ on: string;
11490
+ summary?: string;
11491
+ message?: string;
11492
+ found?: unknown;
11493
+ property?: string;
11494
+ expected?: string;
11495
+ };
11496
+ };
11497
+ };
11498
+ };
11499
+ };
11500
+ };
11501
+ };
10128
11502
  };
10129
11503
  } & {
10130
11504
  admin: {