@r2wa-org/eden 0.0.56 → 0.0.57

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 (139) hide show
  1. package/dist/src/admin/admin/dto.schemas.d.ts +3 -54
  2. package/dist/src/admin/admin/router.d.ts +10 -12
  3. package/dist/src/admin/admin/service.d.ts +0 -2
  4. package/dist/src/admin/index.d.ts +1043 -54
  5. package/dist/src/asset/admin/dto.schemas.d.ts +49 -26
  6. package/dist/src/asset/admin/router.d.ts +123 -20
  7. package/dist/src/asset/admin/service.d.ts +52 -4
  8. package/dist/src/asset/user/dto.schemas.d.ts +7 -15
  9. package/dist/src/asset/user/router.d.ts +9 -9
  10. package/dist/src/asset/user/service.d.ts +1 -1
  11. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +459 -566
  12. package/dist/src/asset-convert-product/admin/router.d.ts +564 -22
  13. package/dist/src/asset-convert-product/admin/service.d.ts +419 -12
  14. package/dist/src/asset-convert-product/errors/index.d.ts +7 -0
  15. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +7 -0
  16. package/dist/src/asset-convert-product/permissions.d.ts +2 -2
  17. package/dist/src/asset-convert-product/user/router.d.ts +8 -8
  18. package/dist/src/asset-price/admin/dto.schemas.d.ts +99 -352
  19. package/dist/src/asset-price/admin/router.d.ts +125 -10
  20. package/dist/src/asset-price/admin/service.d.ts +157 -0
  21. package/dist/src/asset-price/errors/index.d.ts +2 -0
  22. package/dist/src/asset-price/errors/locales/zh.d.ts +2 -0
  23. package/dist/src/asset-price/internal/service.d.ts +1 -0
  24. package/dist/src/asset-price/user/router.d.ts +8 -8
  25. package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
  26. package/dist/src/asset-type/admin/router.d.ts +60 -18
  27. package/dist/src/asset-type/admin/service.d.ts +16 -6
  28. package/dist/src/asset-type/db.schemas.d.ts +6 -6
  29. package/dist/src/asset-type/errors/index.d.ts +6 -0
  30. package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
  31. package/dist/src/asset-type/internal/service.d.ts +4 -4
  32. package/dist/src/asset-type/permissions.d.ts +1 -1
  33. package/dist/src/asset-type/schema.d.ts +3 -5
  34. package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
  35. package/dist/src/asset-type/user/router.d.ts +10 -10
  36. package/dist/src/asset-type/user/service.d.ts +1 -1
  37. package/dist/src/auth/better-auth.d.ts +706 -451
  38. package/dist/src/auth/db.schemas.d.ts +27 -407
  39. package/dist/src/auth/permissions.d.ts +20 -20
  40. package/dist/src/auth/roles.d.ts +60 -60
  41. package/dist/src/auth/router.d.ts +6 -6
  42. package/dist/src/auth/schema.d.ts +8 -206
  43. package/dist/src/bank-account/admin/router.d.ts +10 -10
  44. package/dist/src/bank-account/user/router.d.ts +6 -6
  45. package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
  46. package/dist/src/check-in/admin/router.d.ts +10 -11
  47. package/dist/src/check-in/admin/service.d.ts +0 -1
  48. package/dist/src/check-in/internal/service.d.ts +0 -1
  49. package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
  50. package/dist/src/check-in/user/router.d.ts +8 -9
  51. package/dist/src/check-in/user/service.d.ts +0 -1
  52. package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
  53. package/dist/src/deposit/admin/router.d.ts +10 -11
  54. package/dist/src/deposit/admin/service.d.ts +0 -2
  55. package/dist/src/deposit/user/dto.schemas.d.ts +8 -42
  56. package/dist/src/deposit/user/router.d.ts +8 -9
  57. package/dist/src/deposit/user/service.d.ts +0 -2
  58. package/dist/src/dynamic-env/admin.router.d.ts +10 -10
  59. package/dist/src/env/server.d.ts +1 -1
  60. package/dist/src/file-storage/admin/router.d.ts +10 -10
  61. package/dist/src/file-storage/share/router.d.ts +8 -8
  62. package/dist/src/file-storage/user/router.d.ts +8 -8
  63. package/dist/src/index.d.ts +1161 -137
  64. package/dist/src/ledger/admin/router.d.ts +10 -10
  65. package/dist/src/ledger/user/router.d.ts +8 -8
  66. package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
  67. package/dist/src/ledger-account/admin/router.d.ts +11 -11
  68. package/dist/src/ledger-account/user/router.d.ts +8 -8
  69. package/dist/src/ledger-account-import/admin/router.d.ts +10 -10
  70. package/dist/src/ledger-account-transfer/user/router.d.ts +8 -8
  71. package/dist/src/ledger-account-type/admin/router.d.ts +10 -10
  72. package/dist/src/ledger-account-type/user/router.d.ts +8 -8
  73. package/dist/src/market-data/admin/router.d.ts +10 -10
  74. package/dist/src/market-data/user/router.d.ts +8 -8
  75. package/dist/src/market-pricing/admin/router.d.ts +10 -10
  76. package/dist/src/news/admin/dto.schemas.d.ts +6 -6
  77. package/dist/src/news/admin/router.d.ts +10 -10
  78. package/dist/src/news/user/dto.schemas.d.ts +12 -12
  79. package/dist/src/news/user/router.d.ts +8 -8
  80. package/dist/src/news-category/user/router.d.ts +6 -6
  81. package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
  82. package/dist/src/notification/admin/router.d.ts +10 -10
  83. package/dist/src/notification/user/dto.schemas.d.ts +2 -2
  84. package/dist/src/notification/user/router.d.ts +8 -8
  85. package/dist/src/receipt-method/admin/router.d.ts +10 -10
  86. package/dist/src/receipt-method/user/router.d.ts +6 -6
  87. package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
  88. package/dist/src/referral/admin/router.d.ts +10 -11
  89. package/dist/src/referral/user/dto.schemas.d.ts +2 -36
  90. package/dist/src/referral/user/router.d.ts +8 -9
  91. package/dist/src/referral-depth-config/admin/router.d.ts +10 -10
  92. package/dist/src/server-test/index.d.ts +6 -6
  93. package/dist/src/shipping-address/admin/router.d.ts +10 -10
  94. package/dist/src/shipping-address/user/router.d.ts +6 -6
  95. package/dist/src/team/admin/dto.schemas.d.ts +2 -36
  96. package/dist/src/team/admin/router.d.ts +10 -11
  97. package/dist/src/team/user/dto.schemas.d.ts +5 -90
  98. package/dist/src/team/user/router.d.ts +8 -11
  99. package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
  100. package/dist/src/trade-market/admin/router.d.ts +10 -10
  101. package/dist/src/trade-market/user/router.d.ts +8 -8
  102. package/dist/src/transfer/admin/router.d.ts +10 -10
  103. package/dist/src/transfer/admin/service.d.ts +0 -2
  104. package/dist/src/transfer/user/router.d.ts +8 -8
  105. package/dist/src/transfer/user/service.d.ts +0 -2
  106. package/dist/src/user/admin/dto.schemas.d.ts +1 -21
  107. package/dist/src/user/admin/router.d.ts +10 -15
  108. package/dist/src/user/admin/service.d.ts +0 -4
  109. package/dist/src/user/user/router.d.ts +6 -8
  110. package/dist/src/user/user/service.d.ts +0 -2
  111. package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
  112. package/dist/src/user-kyc/admin/router.d.ts +10 -10
  113. package/dist/src/user-kyc/user/router.d.ts +8 -8
  114. package/dist/src/user-security/admin/router.d.ts +10 -10
  115. package/dist/src/user-security/user/router.d.ts +8 -8
  116. package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
  117. package/dist/src/wallet/admin/router.d.ts +75 -10
  118. package/dist/src/wallet/admin/service.d.ts +46 -8
  119. package/dist/src/wallet/internal/service.d.ts +118 -14
  120. package/dist/src/wallet/user/dto.schemas.d.ts +4 -2
  121. package/dist/src/wallet/user/router.d.ts +10 -9
  122. package/dist/src/wallet/user/service.d.ts +18 -8
  123. package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
  124. package/dist/src/wallet-type/admin/router.d.ts +143 -10
  125. package/dist/src/wallet-type/admin/service.d.ts +51 -0
  126. package/dist/src/wallet-type/errors/index.d.ts +4 -0
  127. package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
  128. package/dist/src/wallet-type/internal/service.d.ts +37 -0
  129. package/dist/src/wallet-type/user/router.d.ts +8 -8
  130. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
  131. package/dist/src/welfare-cycle/admin/router.d.ts +10 -10
  132. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
  133. package/dist/src/welfare-cycle/user/router.d.ts +51 -56
  134. package/dist/src/welfare-cycle/user/service.d.ts +1 -1
  135. package/dist/src/withdraw/admin/router.d.ts +10 -10
  136. package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
  137. package/dist/src/withdraw/user/router.d.ts +55 -8
  138. package/dist/src/withdraw/user/service.d.ts +20 -1
  139. package/package.json +1 -1
@@ -41,7 +41,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -965,11 +965,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
965
965
  emailVerified: boolean;
966
966
  name: string;
967
967
  image?: string | null | undefined | undefined;
968
- phoneNumber?: string | null | undefined;
969
- phoneNumberVerified?: boolean | null | undefined;
970
968
  twoFactorEnabled: boolean | null | undefined;
971
969
  username?: string | null | undefined;
972
970
  displayUsername?: string | null | undefined;
971
+ phoneNumber?: string | null | undefined;
972
+ phoneNumberVerified?: boolean | null | undefined;
973
973
  banned: boolean | null | undefined;
974
974
  role?: string | null | undefined;
975
975
  banReason?: string | null | undefined;
@@ -995,11 +995,11 @@ export declare const welfareCycleAdminRouter: Elysia<"/welfare_cycle", {
995
995
  emailVerified: boolean;
996
996
  name: string;
997
997
  image?: string | null | undefined | undefined;
998
- phoneNumber?: string | null | undefined;
999
- phoneNumberVerified?: boolean | null | undefined;
1000
998
  twoFactorEnabled: boolean | null | undefined;
1001
999
  username?: string | null | undefined;
1002
1000
  displayUsername?: string | null | undefined;
1001
+ phoneNumber?: string | null | undefined;
1002
+ phoneNumberVerified?: boolean | null | undefined;
1003
1003
  banned: boolean | null | undefined;
1004
1004
  role?: string | null | undefined;
1005
1005
  banReason?: string | null | undefined;
@@ -1172,6 +1172,7 @@ export declare const welfareCycleDailyPayoutListQuerySchema: import("@sinclair/t
1172
1172
  completed: "completed";
1173
1173
  failed: "failed";
1174
1174
  }>>;
1175
+ subscriptionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
1175
1176
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1176
1177
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
1177
1178
  pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -41,7 +41,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -657,57 +657,52 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
657
657
  };
658
658
  } & {
659
659
  welfare_cycle: {
660
- subscriptions: {
661
- ":id": {
662
- "daily-payouts": {
663
- get: {
664
- body: {};
665
- params: {
660
+ "daily-payouts": {
661
+ get: {
662
+ body: {};
663
+ params: {};
664
+ query: {
665
+ status?: "pending" | "completed" | "failed" | undefined;
666
+ subscriptionId?: string | undefined;
667
+ limit?: number | undefined;
668
+ offset?: number | undefined;
669
+ pageSize?: number | undefined;
670
+ pageIndex?: number | undefined;
671
+ };
672
+ headers: {};
673
+ response: {
674
+ 200: {
675
+ data: {
666
676
  id: string;
667
- };
668
- query: {
669
- status?: "pending" | "completed" | "failed" | undefined;
670
- limit?: number | undefined;
671
- offset?: number | undefined;
672
- pageSize?: number | undefined;
673
- pageIndex?: number | undefined;
674
- };
675
- headers: {};
676
- response: {
677
- 200: {
678
- data: {
679
- id: string;
680
- createdAt: Date;
681
- updatedAt: Date;
682
- userId: string;
683
- status: "pending" | "completed" | "failed";
684
- amount: string;
685
- idempotencyKey: string;
686
- ledgerEntryId: string | null;
687
- planId: string;
688
- subscriptionId: string;
689
- payoutDate: string;
690
- }[];
691
- pagination: {
692
- total: number;
693
- pageSize: number;
694
- pageIndex: number;
695
- totalPages: number;
696
- hasNextPage: boolean;
697
- };
698
- };
699
- 422: {
700
- type: "validation";
701
- on: string;
702
- summary?: string;
703
- message?: string;
704
- found?: unknown;
705
- property?: string;
706
- expected?: string;
707
- };
708
- 401: "Unauthorized";
677
+ createdAt: Date;
678
+ updatedAt: Date;
679
+ userId: string;
680
+ status: "pending" | "completed" | "failed";
681
+ amount: string;
682
+ idempotencyKey: string;
683
+ ledgerEntryId: string | null;
684
+ planId: string;
685
+ subscriptionId: string;
686
+ payoutDate: string;
687
+ }[];
688
+ pagination: {
689
+ total: number;
690
+ pageSize: number;
691
+ pageIndex: number;
692
+ totalPages: number;
693
+ hasNextPage: boolean;
709
694
  };
710
695
  };
696
+ 422: {
697
+ type: "validation";
698
+ on: string;
699
+ summary?: string;
700
+ message?: string;
701
+ found?: unknown;
702
+ property?: string;
703
+ expected?: string;
704
+ };
705
+ 401: "Unauthorized";
711
706
  };
712
707
  };
713
708
  };
@@ -773,11 +768,11 @@ export declare const welfareCycleRouter: Elysia<"/welfare_cycle", {
773
768
  emailVerified: boolean;
774
769
  name: string;
775
770
  image?: string | null | undefined | undefined;
776
- phoneNumber?: string | null | undefined;
777
- phoneNumberVerified?: boolean | null | undefined;
778
771
  twoFactorEnabled: boolean | null | undefined;
779
772
  username?: string | null | undefined;
780
773
  displayUsername?: string | null | undefined;
774
+ phoneNumber?: string | null | undefined;
775
+ phoneNumberVerified?: boolean | null | undefined;
781
776
  banned: boolean | null | undefined;
782
777
  role?: string | null | undefined;
783
778
  banReason?: string | null | undefined;
@@ -135,7 +135,7 @@ export declare abstract class UserWelfareCycleService extends BaseWelfareCycleSe
135
135
  nextPayoutDate: Date | null;
136
136
  lastPayoutDate: Date | null;
137
137
  }>;
138
- static listDailyPayouts(userId: string, subscriptionId: string, filters?: WelfareCycleDailyPayoutListQueryType): Promise<{
138
+ static listDailyPayouts(userId: string, filters?: WelfareCycleDailyPayoutListQueryType): Promise<{
139
139
  data: {
140
140
  id: string;
141
141
  createdAt: Date;
@@ -41,7 +41,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -598,11 +598,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
598
598
  emailVerified: boolean;
599
599
  name: string;
600
600
  image?: string | null | undefined | undefined;
601
- phoneNumber?: string | null | undefined;
602
- phoneNumberVerified?: boolean | null | undefined;
603
601
  twoFactorEnabled: boolean | null | undefined;
604
602
  username?: string | null | undefined;
605
603
  displayUsername?: string | null | undefined;
604
+ phoneNumber?: string | null | undefined;
605
+ phoneNumberVerified?: boolean | null | undefined;
606
606
  banned: boolean | null | undefined;
607
607
  role?: string | null | undefined;
608
608
  banReason?: string | null | undefined;
@@ -628,11 +628,11 @@ export declare const withdrawAdminRouter: Elysia<"/withdraw", {
628
628
  emailVerified: boolean;
629
629
  name: string;
630
630
  image?: string | null | undefined | undefined;
631
- phoneNumber?: string | null | undefined;
632
- phoneNumberVerified?: boolean | null | undefined;
633
631
  twoFactorEnabled: boolean | null | undefined;
634
632
  username?: string | null | undefined;
635
633
  displayUsername?: string | null | undefined;
634
+ phoneNumber?: string | null | undefined;
635
+ phoneNumberVerified?: boolean | null | undefined;
636
636
  banned: boolean | null | undefined;
637
637
  role?: string | null | undefined;
638
638
  banReason?: string | null | undefined;
@@ -600,6 +600,13 @@ export declare const ledgerAccountWithdrawCreateInputSchema: import("@sinclair/t
600
600
  transactionPassword: import("@sinclair/typebox").TString;
601
601
  }>;
602
602
  export type LedgerAccountWithdrawCreateInputType = typeof ledgerAccountWithdrawCreateInputSchema.static;
603
+ export declare const directCnyWithdrawCreateInputSchema: import("@sinclair/typebox").TObject<{
604
+ receiptMethodId: import("@sinclair/typebox").TString;
605
+ amount: import("@sinclair/typebox").TString;
606
+ idempotencyKey: import("@sinclair/typebox").TString;
607
+ transactionPassword: import("@sinclair/typebox").TString;
608
+ }>;
609
+ export type DirectCnyWithdrawCreateInputType = typeof directCnyWithdrawCreateInputSchema.static;
603
610
  export declare const withdrawUserListQuerySchema: import("@sinclair/typebox").TObject<{
604
611
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
605
612
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -41,7 +41,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
41
41
  route: string;
42
42
  request: Request;
43
43
  store: {};
44
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
44
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
45
45
  readonly 100: "Continue";
46
46
  readonly 101: "Switching Protocols";
47
47
  readonly 102: "Processing";
@@ -175,11 +175,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
175
175
  emailVerified: boolean;
176
176
  name: string;
177
177
  image?: string | null | undefined | undefined;
178
- phoneNumber?: string | null | undefined;
179
- phoneNumberVerified?: boolean | null | undefined;
180
178
  twoFactorEnabled: boolean | null | undefined;
181
179
  username?: string | null | undefined;
182
180
  displayUsername?: string | null | undefined;
181
+ phoneNumber?: string | null | undefined;
182
+ phoneNumberVerified?: boolean | null | undefined;
183
183
  banned: boolean | null | undefined;
184
184
  role?: string | null | undefined;
185
185
  banReason?: string | null | undefined;
@@ -217,7 +217,7 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
217
217
  route: string;
218
218
  request: Request;
219
219
  store: {};
220
- status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 400 | 422 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
220
+ status: <const Code extends number | keyof import("elysia").StatusMap, const T = Code extends 100 | 500 | 418 | 200 | 422 | 400 | 101 | 102 | 103 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 300 | 301 | 302 | 303 | 304 | 307 | 308 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | 420 ? {
221
221
  readonly 100: "Continue";
222
222
  readonly 101: "Switching Protocols";
223
223
  readonly 102: "Processing";
@@ -351,11 +351,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
351
351
  emailVerified: boolean;
352
352
  name: string;
353
353
  image?: string | null | undefined | undefined;
354
- phoneNumber?: string | null | undefined;
355
- phoneNumberVerified?: boolean | null | undefined;
356
354
  twoFactorEnabled: boolean | null | undefined;
357
355
  username?: string | null | undefined;
358
356
  displayUsername?: string | null | undefined;
357
+ phoneNumber?: string | null | undefined;
358
+ phoneNumberVerified?: boolean | null | undefined;
359
359
  banned: boolean | null | undefined;
360
360
  role?: string | null | undefined;
361
361
  banReason?: string | null | undefined;
@@ -427,6 +427,53 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
427
427
  };
428
428
  };
429
429
  };
430
+ } & {
431
+ withdraw: {
432
+ direct_cny_balance: {
433
+ post: {
434
+ body: {
435
+ amount: string;
436
+ idempotencyKey: string;
437
+ receiptMethodId: string;
438
+ transactionPassword: string;
439
+ };
440
+ params: {};
441
+ query: {};
442
+ headers: {};
443
+ response: {
444
+ 200: {
445
+ id: string;
446
+ createdAt: Date;
447
+ updatedAt: Date;
448
+ userId: string;
449
+ status: "rejected" | "completed" | "pending_review" | "pending_payout";
450
+ reviewedAt: Date | null;
451
+ reviewedBy: string | null;
452
+ assetId: string | null;
453
+ amount: string;
454
+ idempotencyKey: string;
455
+ orderNo: string;
456
+ reviewNote: string | null;
457
+ sourceAccountId: string | null;
458
+ receiptMethodId: string;
459
+ rejectReason: string | null;
460
+ paidBy: string | null;
461
+ paidAt: Date | null;
462
+ };
463
+ 422: {
464
+ type: "validation";
465
+ on: string;
466
+ summary?: string;
467
+ message?: string;
468
+ found?: unknown;
469
+ property?: string;
470
+ expected?: string;
471
+ };
472
+ 401: "Unauthorized";
473
+ };
474
+ };
475
+ };
476
+ };
430
477
  } & {
431
478
  withdraw: {
432
479
  get: {
@@ -499,11 +546,11 @@ export declare const withdrawRouter: Elysia<"/withdraw", {
499
546
  emailVerified: boolean;
500
547
  name: string;
501
548
  image?: string | null | undefined | undefined;
502
- phoneNumber?: string | null | undefined;
503
- phoneNumberVerified?: boolean | null | undefined;
504
549
  twoFactorEnabled: boolean | null | undefined;
505
550
  username?: string | null | undefined;
506
551
  displayUsername?: string | null | undefined;
552
+ phoneNumber?: string | null | undefined;
553
+ phoneNumberVerified?: boolean | null | undefined;
507
554
  banned: boolean | null | undefined;
508
555
  role?: string | null | undefined;
509
556
  banReason?: string | null | undefined;
@@ -1,6 +1,25 @@
1
1
  import { InternalWithdrawService } from "../internal/service";
2
- import type { LedgerAccountWithdrawCreateInputType, WithdrawUserListQueryType } from "./dto.schemas";
2
+ import type { DirectCnyWithdrawCreateInputType, LedgerAccountWithdrawCreateInputType, WithdrawUserListQueryType } from "./dto.schemas";
3
3
  export declare abstract class UserWithdrawService extends InternalWithdrawService {
4
+ static createDirectCnyWithdrawOrder(userId: string, input: DirectCnyWithdrawCreateInputType): Promise<{
5
+ id: string;
6
+ createdAt: Date;
7
+ updatedAt: Date;
8
+ userId: string;
9
+ status: "rejected" | "completed" | "pending_review" | "pending_payout";
10
+ reviewedAt: Date | null;
11
+ reviewedBy: string | null;
12
+ assetId: string | null;
13
+ amount: string;
14
+ idempotencyKey: string;
15
+ orderNo: string;
16
+ reviewNote: string | null;
17
+ sourceAccountId: string | null;
18
+ receiptMethodId: string;
19
+ rejectReason: string | null;
20
+ paidBy: string | null;
21
+ paidAt: Date | null;
22
+ }>;
4
23
  static createLedgerAccountWithdrawOrder(userId: string, input: LedgerAccountWithdrawCreateInputType): Promise<{
5
24
  id: string;
6
25
  createdAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@r2wa-org/eden",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "description": "Elysia API type definitions for Eden Treaty",
5
5
  "types": "./dist/src/index.d.ts",
6
6
  "files": [