@r2wa-org/eden 0.0.56 → 0.0.59

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 (151) 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 +16 -98
  9. package/dist/src/asset/user/router.d.ts +69 -75
  10. package/dist/src/asset/user/service.d.ts +42 -42
  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 +3 -0
  22. package/dist/src/asset-price/errors/locales/zh.d.ts +3 -0
  23. package/dist/src/asset-price/internal/service.d.ts +1 -0
  24. package/dist/src/asset-price/user/dto.schemas.d.ts +7 -3
  25. package/dist/src/asset-price/user/router.d.ts +51 -10
  26. package/dist/src/asset-price/user/service.d.ts +13 -1
  27. package/dist/src/asset-type/admin/dto.schemas.d.ts +291 -33
  28. package/dist/src/asset-type/admin/router.d.ts +60 -18
  29. package/dist/src/asset-type/admin/service.d.ts +16 -6
  30. package/dist/src/asset-type/db.schemas.d.ts +6 -6
  31. package/dist/src/asset-type/errors/index.d.ts +6 -0
  32. package/dist/src/asset-type/errors/locales/zh.d.ts +3 -0
  33. package/dist/src/asset-type/internal/service.d.ts +4 -4
  34. package/dist/src/asset-type/permissions.d.ts +1 -1
  35. package/dist/src/asset-type/schema.d.ts +3 -5
  36. package/dist/src/asset-type/user/dto.schemas.d.ts +3 -15
  37. package/dist/src/asset-type/user/router.d.ts +10 -10
  38. package/dist/src/asset-type/user/service.d.ts +1 -1
  39. package/dist/src/auth/better-auth.d.ts +706 -451
  40. package/dist/src/auth/db.schemas.d.ts +27 -407
  41. package/dist/src/auth/permissions.d.ts +20 -20
  42. package/dist/src/auth/roles.d.ts +60 -60
  43. package/dist/src/auth/router.d.ts +6 -6
  44. package/dist/src/auth/schema.d.ts +8 -206
  45. package/dist/src/bank-account/admin/router.d.ts +10 -10
  46. package/dist/src/bank-account/user/router.d.ts +6 -6
  47. package/dist/src/check-in/admin/dto.schemas.d.ts +1 -18
  48. package/dist/src/check-in/admin/router.d.ts +10 -11
  49. package/dist/src/check-in/admin/service.d.ts +0 -1
  50. package/dist/src/check-in/internal/service.d.ts +0 -1
  51. package/dist/src/check-in/user/dto.schemas.d.ts +1 -18
  52. package/dist/src/check-in/user/router.d.ts +8 -9
  53. package/dist/src/check-in/user/service.d.ts +0 -1
  54. package/dist/src/deposit/admin/dto.schemas.d.ts +8 -42
  55. package/dist/src/deposit/admin/router.d.ts +10 -11
  56. package/dist/src/deposit/admin/service.d.ts +0 -2
  57. package/dist/src/deposit/user/dto.schemas.d.ts +8 -42
  58. package/dist/src/deposit/user/router.d.ts +8 -9
  59. package/dist/src/deposit/user/service.d.ts +0 -2
  60. package/dist/src/dynamic-env/admin.router.d.ts +10 -10
  61. package/dist/src/env/server.d.ts +1 -1
  62. package/dist/src/file-storage/admin/router.d.ts +10 -10
  63. package/dist/src/file-storage/share/router.d.ts +8 -8
  64. package/dist/src/file-storage/user/router.d.ts +8 -8
  65. package/dist/src/index.d.ts +1578 -352
  66. package/dist/src/ledger/admin/router.d.ts +10 -10
  67. package/dist/src/ledger/user/router.d.ts +8 -8
  68. package/dist/src/ledger-account/admin/dto.schemas.d.ts +2 -2
  69. package/dist/src/ledger-account/admin/router.d.ts +11 -11
  70. package/dist/src/ledger-account/user/dto.schemas.d.ts +39 -193
  71. package/dist/src/ledger-account/user/router.d.ts +51 -50
  72. package/dist/src/ledger-account/user/service.d.ts +41 -41
  73. package/dist/src/ledger-account-import/admin/router.d.ts +10 -10
  74. package/dist/src/ledger-account-transfer/user/router.d.ts +8 -8
  75. package/dist/src/ledger-account-type/admin/router.d.ts +10 -10
  76. package/dist/src/ledger-account-type/user/router.d.ts +56 -8
  77. package/dist/src/ledger-account-type/user/service.d.ts +25 -0
  78. package/dist/src/market-data/admin/router.d.ts +10 -10
  79. package/dist/src/market-data/user/router.d.ts +8 -8
  80. package/dist/src/market-pricing/admin/router.d.ts +10 -10
  81. package/dist/src/news/admin/dto.schemas.d.ts +6 -6
  82. package/dist/src/news/admin/router.d.ts +10 -10
  83. package/dist/src/news/user/dto.schemas.d.ts +12 -12
  84. package/dist/src/news/user/router.d.ts +8 -8
  85. package/dist/src/news-category/user/router.d.ts +6 -6
  86. package/dist/src/notification/admin/dto.schemas.d.ts +3 -3
  87. package/dist/src/notification/admin/router.d.ts +10 -10
  88. package/dist/src/notification/user/dto.schemas.d.ts +2 -2
  89. package/dist/src/notification/user/router.d.ts +8 -8
  90. package/dist/src/portfolio/index.d.ts +2 -0
  91. package/dist/src/portfolio/internal/index.d.ts +1 -0
  92. package/dist/src/portfolio/internal/service.d.ts +5 -0
  93. package/dist/src/portfolio/user/dto.schemas.d.ts +352 -0
  94. package/dist/src/portfolio/user/index.d.ts +3 -0
  95. package/dist/src/portfolio/user/router.d.ts +659 -0
  96. package/dist/src/portfolio/user/service.d.ts +143 -0
  97. package/dist/src/receipt-method/admin/router.d.ts +10 -10
  98. package/dist/src/receipt-method/user/router.d.ts +6 -6
  99. package/dist/src/referral/admin/dto.schemas.d.ts +2 -36
  100. package/dist/src/referral/admin/router.d.ts +10 -11
  101. package/dist/src/referral/user/dto.schemas.d.ts +2 -36
  102. package/dist/src/referral/user/router.d.ts +8 -9
  103. package/dist/src/referral-depth-config/admin/router.d.ts +10 -10
  104. package/dist/src/server-test/index.d.ts +6 -6
  105. package/dist/src/shipping-address/admin/router.d.ts +10 -10
  106. package/dist/src/shipping-address/user/router.d.ts +6 -6
  107. package/dist/src/team/admin/dto.schemas.d.ts +2 -36
  108. package/dist/src/team/admin/router.d.ts +10 -11
  109. package/dist/src/team/user/dto.schemas.d.ts +5 -90
  110. package/dist/src/team/user/router.d.ts +8 -11
  111. package/dist/src/trade-market/admin/dto.schemas.d.ts +1 -1
  112. package/dist/src/trade-market/admin/router.d.ts +10 -10
  113. package/dist/src/trade-market/user/router.d.ts +8 -8
  114. package/dist/src/transfer/admin/router.d.ts +10 -10
  115. package/dist/src/transfer/admin/service.d.ts +0 -2
  116. package/dist/src/transfer/user/router.d.ts +8 -8
  117. package/dist/src/transfer/user/service.d.ts +0 -2
  118. package/dist/src/user/admin/dto.schemas.d.ts +1 -21
  119. package/dist/src/user/admin/router.d.ts +10 -15
  120. package/dist/src/user/admin/service.d.ts +0 -4
  121. package/dist/src/user/user/router.d.ts +6 -8
  122. package/dist/src/user/user/service.d.ts +0 -2
  123. package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
  124. package/dist/src/user-kyc/admin/router.d.ts +10 -10
  125. package/dist/src/user-kyc/user/router.d.ts +8 -8
  126. package/dist/src/user-security/admin/router.d.ts +10 -10
  127. package/dist/src/user-security/user/router.d.ts +8 -8
  128. package/dist/src/wallet/admin/dto.schemas.d.ts +35 -3
  129. package/dist/src/wallet/admin/router.d.ts +75 -10
  130. package/dist/src/wallet/admin/service.d.ts +46 -8
  131. package/dist/src/wallet/internal/service.d.ts +118 -14
  132. package/dist/src/wallet/user/dto.schemas.d.ts +6 -66
  133. package/dist/src/wallet/user/router.d.ts +9 -69
  134. package/dist/src/wallet/user/service.d.ts +20 -46
  135. package/dist/src/wallet-type/admin/dto.schemas.d.ts +4 -0
  136. package/dist/src/wallet-type/admin/router.d.ts +143 -10
  137. package/dist/src/wallet-type/admin/service.d.ts +51 -0
  138. package/dist/src/wallet-type/errors/index.d.ts +4 -0
  139. package/dist/src/wallet-type/errors/locales/zh.d.ts +4 -0
  140. package/dist/src/wallet-type/internal/service.d.ts +37 -0
  141. package/dist/src/wallet-type/user/router.d.ts +8 -8
  142. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +3 -3
  143. package/dist/src/welfare-cycle/admin/router.d.ts +10 -10
  144. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +1 -0
  145. package/dist/src/welfare-cycle/user/router.d.ts +51 -56
  146. package/dist/src/welfare-cycle/user/service.d.ts +1 -1
  147. package/dist/src/withdraw/admin/router.d.ts +10 -10
  148. package/dist/src/withdraw/user/dto.schemas.d.ts +7 -0
  149. package/dist/src/withdraw/user/router.d.ts +55 -8
  150. package/dist/src/withdraw/user/service.d.ts +20 -1
  151. package/package.json +1 -1
@@ -1,11 +1,16 @@
1
1
  export declare const assetAdminListQuerySchema: import("@sinclair/typebox").TObject<{
2
- isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
2
+ id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
3
+ name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
4
+ code: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
3
5
  category: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TEnum<{
4
6
  FIAT: "FIAT";
5
7
  CRYPTO: "CRYPTO";
6
8
  POINT: "POINT";
7
9
  RWA: "RWA";
8
10
  }>>;
11
+ isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
12
+ typeId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
13
+ keyword: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
9
14
  limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
10
15
  offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
11
16
  pageSize: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
@@ -17,10 +22,11 @@ export declare const assetAdminCodeParamsSchema: import("@sinclair/typebox").TOb
17
22
  }>;
18
23
  export type AssetAdminCodeParamsType = typeof assetAdminCodeParamsSchema.static;
19
24
  export declare const assetAdminItemResponseSchema: import("@sinclair/typebox").TObject<{
25
+ createdAt: import("@sinclair/typebox").TDate;
26
+ updatedAt: import("@sinclair/typebox").TDate;
27
+ symbol: import("@sinclair/typebox").TString;
20
28
  id: import("@sinclair/typebox").TString;
21
29
  name: import("@sinclair/typebox").TString;
22
- isActive: import("@sinclair/typebox").TBoolean;
23
- symbol: import("@sinclair/typebox").TString;
24
30
  code: import("@sinclair/typebox").TString;
25
31
  iconUrl: import("@sinclair/typebox").TString;
26
32
  category: import("@sinclair/typebox").TEnum<{
@@ -29,16 +35,13 @@ export declare const assetAdminItemResponseSchema: import("@sinclair/typebox").T
29
35
  POINT: "POINT";
30
36
  RWA: "RWA";
31
37
  }>;
38
+ isActive: import("@sinclair/typebox").TBoolean;
32
39
  typeId: import("@sinclair/typebox").TString;
33
40
  precision: import("@sinclair/typebox").TInteger;
34
41
  type: import("@sinclair/typebox").TObject<{
35
42
  id: import("@sinclair/typebox").TString;
36
43
  name: import("@sinclair/typebox").TString;
37
- key: import("@sinclair/typebox").TEnum<{
38
- FIAT_CURRENCY: "FIAT_CURRENCY";
39
- STABLE_COIN: "STABLE_COIN";
40
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
41
- }>;
44
+ key: import("@sinclair/typebox").TString;
42
45
  isGasAsset: import("@sinclair/typebox").TBoolean;
43
46
  isActive: import("@sinclair/typebox").TBoolean;
44
47
  }>;
@@ -46,10 +49,11 @@ export declare const assetAdminItemResponseSchema: import("@sinclair/typebox").T
46
49
  export type AssetAdminItemResponseType = typeof assetAdminItemResponseSchema.static;
47
50
  export declare const assetAdminListResponseSchema: import("@sinclair/typebox").TObject<{
48
51
  data: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
52
+ createdAt: import("@sinclair/typebox").TDate;
53
+ updatedAt: import("@sinclair/typebox").TDate;
54
+ symbol: import("@sinclair/typebox").TString;
49
55
  id: import("@sinclair/typebox").TString;
50
56
  name: import("@sinclair/typebox").TString;
51
- isActive: import("@sinclair/typebox").TBoolean;
52
- symbol: import("@sinclair/typebox").TString;
53
57
  code: import("@sinclair/typebox").TString;
54
58
  iconUrl: import("@sinclair/typebox").TString;
55
59
  category: import("@sinclair/typebox").TEnum<{
@@ -58,16 +62,13 @@ export declare const assetAdminListResponseSchema: import("@sinclair/typebox").T
58
62
  POINT: "POINT";
59
63
  RWA: "RWA";
60
64
  }>;
65
+ isActive: import("@sinclair/typebox").TBoolean;
61
66
  typeId: import("@sinclair/typebox").TString;
62
67
  precision: import("@sinclair/typebox").TInteger;
63
68
  type: import("@sinclair/typebox").TObject<{
64
69
  id: import("@sinclair/typebox").TString;
65
70
  name: import("@sinclair/typebox").TString;
66
- key: import("@sinclair/typebox").TEnum<{
67
- FIAT_CURRENCY: "FIAT_CURRENCY";
68
- STABLE_COIN: "STABLE_COIN";
69
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
70
- }>;
71
+ key: import("@sinclair/typebox").TString;
71
72
  isGasAsset: import("@sinclair/typebox").TBoolean;
72
73
  isActive: import("@sinclair/typebox").TBoolean;
73
74
  }>;
@@ -84,10 +85,9 @@ export type AssetAdminListResponseType = typeof assetAdminListResponseSchema.sta
84
85
  export declare const assetAdminResponseSchema: import("@sinclair/typebox").TObject<{
85
86
  createdAt: import("@sinclair/typebox").TDate;
86
87
  updatedAt: import("@sinclair/typebox").TDate;
88
+ symbol: import("@sinclair/typebox").TString;
87
89
  id: import("@sinclair/typebox").TString;
88
90
  name: import("@sinclair/typebox").TString;
89
- isActive: import("@sinclair/typebox").TBoolean;
90
- symbol: import("@sinclair/typebox").TString;
91
91
  code: import("@sinclair/typebox").TString;
92
92
  iconUrl: import("@sinclair/typebox").TString;
93
93
  category: import("@sinclair/typebox").TEnum<{
@@ -96,25 +96,21 @@ export declare const assetAdminResponseSchema: import("@sinclair/typebox").TObje
96
96
  POINT: "POINT";
97
97
  RWA: "RWA";
98
98
  }>;
99
+ isActive: import("@sinclair/typebox").TBoolean;
99
100
  typeId: import("@sinclair/typebox").TString;
100
101
  precision: import("@sinclair/typebox").TInteger;
101
102
  type: import("@sinclair/typebox").TObject<{
102
103
  id: import("@sinclair/typebox").TString;
103
104
  name: import("@sinclair/typebox").TString;
104
- key: import("@sinclair/typebox").TEnum<{
105
- FIAT_CURRENCY: "FIAT_CURRENCY";
106
- STABLE_COIN: "STABLE_COIN";
107
- RWA_VIRTUAL_COIN: "RWA_VIRTUAL_COIN";
108
- }>;
105
+ key: import("@sinclair/typebox").TString;
109
106
  isGasAsset: import("@sinclair/typebox").TBoolean;
110
107
  isActive: import("@sinclair/typebox").TBoolean;
111
108
  }>;
112
109
  }>;
113
110
  export type AssetAdminResponseType = typeof assetAdminResponseSchema.static;
114
111
  export declare const assetAdminCreateSchema: import("@sinclair/typebox").TObject<{
115
- name: import("@sinclair/typebox").TString;
116
- isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
117
112
  symbol: import("@sinclair/typebox").TString;
113
+ name: import("@sinclair/typebox").TString;
118
114
  code: import("@sinclair/typebox").TString;
119
115
  iconUrl: import("@sinclair/typebox").TString;
120
116
  category: import("@sinclair/typebox").TEnum<{
@@ -123,14 +119,15 @@ export declare const assetAdminCreateSchema: import("@sinclair/typebox").TObject
123
119
  POINT: "POINT";
124
120
  RWA: "RWA";
125
121
  }>;
122
+ isActive: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
126
123
  typeId: import("@sinclair/typebox").TString;
127
124
  precision: import("@sinclair/typebox").TInteger;
128
- initialPrice: import("@sinclair/typebox").TObject<{
125
+ initialPrice: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
129
126
  price: import("@sinclair/typebox").TString;
130
127
  quoteAsset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
131
128
  source: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
132
129
  effectiveAt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TDate>;
133
- }>;
130
+ }>>;
134
131
  }>;
135
132
  export type AssetAdminCreateInputType = typeof assetAdminCreateSchema.static;
136
133
  export declare const assetAdminUpdateSchema: import("@sinclair/typebox").TObject<{
@@ -148,3 +145,29 @@ export declare const assetAdminUpdateSchema: import("@sinclair/typebox").TObject
148
145
  precision: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
149
146
  }>;
150
147
  export type AssetAdminUpdateInputType = typeof assetAdminUpdateSchema.static;
148
+ export declare const assetAdminStatusActionResponseSchema: import("@sinclair/typebox").TObject<{
149
+ createdAt: import("@sinclair/typebox").TDate;
150
+ updatedAt: import("@sinclair/typebox").TDate;
151
+ symbol: import("@sinclair/typebox").TString;
152
+ id: import("@sinclair/typebox").TString;
153
+ name: import("@sinclair/typebox").TString;
154
+ code: import("@sinclair/typebox").TString;
155
+ iconUrl: import("@sinclair/typebox").TString;
156
+ category: import("@sinclair/typebox").TEnum<{
157
+ FIAT: "FIAT";
158
+ CRYPTO: "CRYPTO";
159
+ POINT: "POINT";
160
+ RWA: "RWA";
161
+ }>;
162
+ isActive: import("@sinclair/typebox").TBoolean;
163
+ typeId: import("@sinclair/typebox").TString;
164
+ precision: import("@sinclair/typebox").TInteger;
165
+ type: import("@sinclair/typebox").TObject<{
166
+ id: import("@sinclair/typebox").TString;
167
+ name: import("@sinclair/typebox").TString;
168
+ key: import("@sinclair/typebox").TString;
169
+ isGasAsset: import("@sinclair/typebox").TBoolean;
170
+ isActive: import("@sinclair/typebox").TBoolean;
171
+ }>;
172
+ }>;
173
+ export type AssetAdminStatusActionResponseType = typeof assetAdminStatusActionResponseSchema.static;
@@ -41,7 +41,7 @@ export declare const assetAdminRouter: Elysia<"/assets", {
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 assetAdminRouter: Elysia<"/assets", {
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 assetAdminRouter: Elysia<"/assets", {
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 assetAdminRouter: Elysia<"/assets", {
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;
@@ -385,12 +385,17 @@ export declare const assetAdminRouter: Elysia<"/assets", {
385
385
  body: {};
386
386
  params: {};
387
387
  query: {
388
+ id?: string | undefined;
389
+ name?: string | undefined;
390
+ code?: string | undefined;
388
391
  category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
389
392
  isActive?: boolean | undefined;
393
+ typeId?: string | undefined;
390
394
  limit?: number | undefined;
391
395
  offset?: number | undefined;
392
396
  pageSize?: number | undefined;
393
397
  pageIndex?: number | undefined;
398
+ keyword?: string | undefined;
394
399
  };
395
400
  headers: {};
396
401
  response: {
@@ -400,12 +405,14 @@ export declare const assetAdminRouter: Elysia<"/assets", {
400
405
  type: {
401
406
  id: string;
402
407
  name: string;
403
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
408
+ key: string;
404
409
  isGasAsset: boolean;
405
410
  isActive: boolean;
406
411
  };
407
412
  id: string;
408
413
  name: string;
414
+ createdAt: Date;
415
+ updatedAt: Date;
409
416
  code: string;
410
417
  iconUrl: string;
411
418
  category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
@@ -451,7 +458,7 @@ export declare const assetAdminRouter: Elysia<"/assets", {
451
458
  type: {
452
459
  id: string;
453
460
  name: string;
454
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
461
+ key: string;
455
462
  isGasAsset: boolean;
456
463
  isActive: boolean;
457
464
  };
@@ -486,6 +493,12 @@ export declare const assetAdminRouter: Elysia<"/assets", {
486
493
  post: {
487
494
  body: {
488
495
  isActive?: boolean | undefined;
496
+ initialPrice?: {
497
+ quoteAsset?: string | undefined;
498
+ source?: string | undefined;
499
+ effectiveAt?: Date | undefined;
500
+ price: string;
501
+ } | undefined;
489
502
  symbol: string;
490
503
  name: string;
491
504
  code: string;
@@ -493,12 +506,6 @@ export declare const assetAdminRouter: Elysia<"/assets", {
493
506
  category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
494
507
  typeId: string;
495
508
  precision: number;
496
- initialPrice: {
497
- quoteAsset?: string | undefined;
498
- source?: string | undefined;
499
- effectiveAt?: Date | undefined;
500
- price: string;
501
- };
502
509
  };
503
510
  params: {};
504
511
  query: {};
@@ -509,7 +516,7 @@ export declare const assetAdminRouter: Elysia<"/assets", {
509
516
  type: {
510
517
  id: string;
511
518
  name: string;
512
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
519
+ key: string;
513
520
  isGasAsset: boolean;
514
521
  isActive: boolean;
515
522
  };
@@ -562,7 +569,7 @@ export declare const assetAdminRouter: Elysia<"/assets", {
562
569
  type: {
563
570
  id: string;
564
571
  name: string;
565
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
572
+ key: string;
566
573
  isGasAsset: boolean;
567
574
  isActive: boolean;
568
575
  };
@@ -592,6 +599,102 @@ export declare const assetAdminRouter: Elysia<"/assets", {
592
599
  };
593
600
  };
594
601
  };
602
+ } & {
603
+ assets: {
604
+ ":code": {
605
+ enable: {
606
+ post: {
607
+ body: {};
608
+ params: {
609
+ code: string;
610
+ };
611
+ query: {};
612
+ headers: {};
613
+ response: {
614
+ 200: {
615
+ symbol: string;
616
+ type: {
617
+ id: string;
618
+ name: string;
619
+ key: string;
620
+ isGasAsset: boolean;
621
+ isActive: boolean;
622
+ };
623
+ id: string;
624
+ name: string;
625
+ createdAt: Date;
626
+ updatedAt: Date;
627
+ code: string;
628
+ iconUrl: string;
629
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
630
+ isActive: boolean;
631
+ typeId: string;
632
+ precision: number;
633
+ };
634
+ 422: {
635
+ type: "validation";
636
+ on: string;
637
+ summary?: string;
638
+ message?: string;
639
+ found?: unknown;
640
+ property?: string;
641
+ expected?: string;
642
+ };
643
+ 401: "Unauthorized";
644
+ 403: "Forbidden: Admins only";
645
+ };
646
+ };
647
+ };
648
+ };
649
+ };
650
+ } & {
651
+ assets: {
652
+ ":code": {
653
+ disable: {
654
+ post: {
655
+ body: {};
656
+ params: {
657
+ code: string;
658
+ };
659
+ query: {};
660
+ headers: {};
661
+ response: {
662
+ 200: {
663
+ symbol: string;
664
+ type: {
665
+ id: string;
666
+ name: string;
667
+ key: string;
668
+ isGasAsset: boolean;
669
+ isActive: boolean;
670
+ };
671
+ id: string;
672
+ name: string;
673
+ createdAt: Date;
674
+ updatedAt: Date;
675
+ code: string;
676
+ iconUrl: string;
677
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
678
+ isActive: boolean;
679
+ typeId: string;
680
+ precision: number;
681
+ };
682
+ 422: {
683
+ type: "validation";
684
+ on: string;
685
+ summary?: string;
686
+ message?: string;
687
+ found?: unknown;
688
+ property?: string;
689
+ expected?: string;
690
+ };
691
+ 401: "Unauthorized";
692
+ 403: "Forbidden: Admins only";
693
+ };
694
+ };
695
+ };
696
+ };
697
+ };
595
698
  }, {
596
699
  derive: {};
597
700
  resolve: {};
@@ -609,11 +712,11 @@ export declare const assetAdminRouter: Elysia<"/assets", {
609
712
  emailVerified: boolean;
610
713
  name: string;
611
714
  image?: string | null | undefined | undefined;
612
- phoneNumber?: string | null | undefined;
613
- phoneNumberVerified?: boolean | null | undefined;
614
715
  twoFactorEnabled: boolean | null | undefined;
615
716
  username?: string | null | undefined;
616
717
  displayUsername?: string | null | undefined;
718
+ phoneNumber?: string | null | undefined;
719
+ phoneNumberVerified?: boolean | null | undefined;
617
720
  banned: boolean | null | undefined;
618
721
  role?: string | null | undefined;
619
722
  banReason?: string | null | undefined;
@@ -639,11 +742,11 @@ export declare const assetAdminRouter: Elysia<"/assets", {
639
742
  emailVerified: boolean;
640
743
  name: string;
641
744
  image?: string | null | undefined | undefined;
642
- phoneNumber?: string | null | undefined;
643
- phoneNumberVerified?: boolean | null | undefined;
644
745
  twoFactorEnabled: boolean | null | undefined;
645
746
  username?: string | null | undefined;
646
747
  displayUsername?: string | null | undefined;
748
+ phoneNumber?: string | null | undefined;
749
+ phoneNumberVerified?: boolean | null | undefined;
647
750
  banned: boolean | null | undefined;
648
751
  role?: string | null | undefined;
649
752
  banReason?: string | null | undefined;
@@ -3,6 +3,8 @@ import type { AssetAdminCreateInputType, AssetAdminListQueryType, AssetAdminUpda
3
3
  export interface AssetAdminListQueryOptions extends AssetAdminListQueryType {
4
4
  }
5
5
  export declare abstract class AdminAssetService extends BaseAssetService {
6
+ private static buildAdminListWhere;
7
+ private static createInitialPriceInTx;
6
8
  static listAssets(options?: AssetAdminListQueryOptions): Promise<{
7
9
  items: {
8
10
  symbol: string;
@@ -22,7 +24,7 @@ export declare abstract class AdminAssetService extends BaseAssetService {
22
24
  createdAt: Date;
23
25
  updatedAt: Date;
24
26
  description: string | null;
25
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
27
+ key: string;
26
28
  isGasAsset: boolean;
27
29
  isActive: boolean;
28
30
  };
@@ -47,7 +49,7 @@ export declare abstract class AdminAssetService extends BaseAssetService {
47
49
  createdAt: Date;
48
50
  updatedAt: Date;
49
51
  description: string | null;
50
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
52
+ key: string;
51
53
  isGasAsset: boolean;
52
54
  isActive: boolean;
53
55
  };
@@ -70,7 +72,7 @@ export declare abstract class AdminAssetService extends BaseAssetService {
70
72
  createdAt: Date;
71
73
  updatedAt: Date;
72
74
  description: string | null;
73
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
75
+ key: string;
74
76
  isGasAsset: boolean;
75
77
  isActive: boolean;
76
78
  };
@@ -93,7 +95,53 @@ export declare abstract class AdminAssetService extends BaseAssetService {
93
95
  createdAt: Date;
94
96
  updatedAt: Date;
95
97
  description: string | null;
96
- key: "FIAT_CURRENCY" | "STABLE_COIN" | "RWA_VIRTUAL_COIN";
98
+ key: string;
99
+ isGasAsset: boolean;
100
+ isActive: boolean;
101
+ };
102
+ }>;
103
+ static enableAsset(code: string): Promise<{
104
+ symbol: string;
105
+ id: string;
106
+ name: string;
107
+ createdAt: Date;
108
+ updatedAt: Date;
109
+ code: string;
110
+ iconUrl: string;
111
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
112
+ isActive: boolean;
113
+ typeId: string;
114
+ precision: number;
115
+ type: {
116
+ id: string;
117
+ name: string;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ description: string | null;
121
+ key: string;
122
+ isGasAsset: boolean;
123
+ isActive: boolean;
124
+ };
125
+ }>;
126
+ static disableAsset(code: string): Promise<{
127
+ symbol: string;
128
+ id: string;
129
+ name: string;
130
+ createdAt: Date;
131
+ updatedAt: Date;
132
+ code: string;
133
+ iconUrl: string;
134
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
135
+ isActive: boolean;
136
+ typeId: string;
137
+ precision: number;
138
+ type: {
139
+ id: string;
140
+ name: string;
141
+ createdAt: Date;
142
+ updatedAt: Date;
143
+ description: string | null;
144
+ key: string;
97
145
  isGasAsset: boolean;
98
146
  isActive: boolean;
99
147
  };