@r2wa-org/eden 0.0.57 → 0.0.60

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 (62) hide show
  1. package/dist/src/admin/admin/dto.schemas.d.ts +8 -0
  2. package/dist/src/admin/admin/errors/index.d.ts +1 -0
  3. package/dist/src/admin/admin/errors/locales/zh.d.ts +1 -0
  4. package/dist/src/admin/admin/router.d.ts +31 -0
  5. package/dist/src/admin/admin/service.d.ts +3 -0
  6. package/dist/src/admin/index.d.ts +158 -34
  7. package/dist/src/asset/user/dto.schemas.d.ts +9 -83
  8. package/dist/src/asset/user/router.d.ts +60 -66
  9. package/dist/src/asset/user/service.d.ts +41 -41
  10. package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +44 -12
  11. package/dist/src/asset-convert-product/admin/router.d.ts +83 -23
  12. package/dist/src/asset-convert-product/admin/service.d.ts +73 -17
  13. package/dist/src/asset-convert-product/db.schemas.d.ts +76 -8
  14. package/dist/src/asset-convert-product/errors/index.d.ts +4 -0
  15. package/dist/src/asset-convert-product/errors/locales/zh.d.ts +4 -0
  16. package/dist/src/asset-convert-product/internal/service.d.ts +4 -3
  17. package/dist/src/asset-convert-product/schema.d.ts +41 -6
  18. package/dist/src/asset-convert-product/user/dto.schemas.d.ts +264 -14
  19. package/dist/src/asset-convert-product/user/router.d.ts +10 -8
  20. package/dist/src/asset-convert-product/user/service.d.ts +9 -5
  21. package/dist/src/asset-price/errors/index.d.ts +1 -0
  22. package/dist/src/asset-price/errors/locales/zh.d.ts +1 -0
  23. package/dist/src/asset-price/user/dto.schemas.d.ts +7 -3
  24. package/dist/src/asset-price/user/router.d.ts +43 -2
  25. package/dist/src/asset-price/user/service.d.ts +13 -1
  26. package/dist/src/index.d.ts +701 -291
  27. package/dist/src/ledger-account/admin/router.d.ts +1 -1
  28. package/dist/src/ledger-account/user/dto.schemas.d.ts +44 -193
  29. package/dist/src/ledger-account/user/router.d.ts +104 -42
  30. package/dist/src/ledger-account/user/service.d.ts +90 -40
  31. package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +6 -6
  32. package/dist/src/ledger-account-import/admin/router.d.ts +9 -9
  33. package/dist/src/ledger-account-import/admin/service.d.ts +7 -7
  34. package/dist/src/ledger-account-import/db.schemas.d.ts +4 -4
  35. package/dist/src/ledger-account-import/schema.d.ts +2 -2
  36. package/dist/src/ledger-account-type/user/router.d.ts +48 -0
  37. package/dist/src/ledger-account-type/user/service.d.ts +25 -0
  38. package/dist/src/portfolio/index.d.ts +2 -0
  39. package/dist/src/portfolio/internal/index.d.ts +1 -0
  40. package/dist/src/portfolio/internal/service.d.ts +5 -0
  41. package/dist/src/portfolio/user/dto.schemas.d.ts +352 -0
  42. package/dist/src/portfolio/user/index.d.ts +3 -0
  43. package/dist/src/portfolio/user/router.d.ts +659 -0
  44. package/dist/src/portfolio/user/service.d.ts +143 -0
  45. package/dist/src/wallet/user/dto.schemas.d.ts +4 -66
  46. package/dist/src/wallet/user/router.d.ts +1 -62
  47. package/dist/src/wallet/user/service.d.ts +3 -39
  48. package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +95 -2
  49. package/dist/src/welfare-cycle/admin/router.d.ts +34 -1
  50. package/dist/src/welfare-cycle/admin/service.d.ts +26 -1
  51. package/dist/src/welfare-cycle/db.schemas.d.ts +174 -4
  52. package/dist/src/welfare-cycle/errors/index.d.ts +6 -0
  53. package/dist/src/welfare-cycle/errors/locales/zh.d.ts +6 -0
  54. package/dist/src/welfare-cycle/internal/service.d.ts +41 -3
  55. package/dist/src/welfare-cycle/schema.d.ts +92 -3
  56. package/dist/src/welfare-cycle/user/dto.schemas.d.ts +106 -6
  57. package/dist/src/welfare-cycle/user/router.d.ts +14 -5
  58. package/dist/src/welfare-cycle/user/service.d.ts +14 -3
  59. package/dist/src/withdraw/user/dto.schemas.d.ts +599 -0
  60. package/dist/src/withdraw/user/router.d.ts +73 -0
  61. package/dist/src/withdraw/user/service.d.ts +2 -1
  62. package/package.json +1 -1
@@ -874,6 +874,37 @@ declare const app: Elysia<"/api", {
874
874
  };
875
875
  };
876
876
  };
877
+ } & {
878
+ admin_users: {
879
+ ":userId": {
880
+ unban: {
881
+ post: {
882
+ body: {};
883
+ params: {
884
+ userId: string;
885
+ };
886
+ query: {};
887
+ headers: {};
888
+ response: {
889
+ 200: {
890
+ success: boolean;
891
+ };
892
+ 422: {
893
+ type: "validation";
894
+ on: string;
895
+ summary?: string;
896
+ message?: string;
897
+ found?: unknown;
898
+ property?: string;
899
+ expected?: string;
900
+ };
901
+ 401: "Unauthorized";
902
+ 403: "Forbidden: Admins only";
903
+ };
904
+ };
905
+ };
906
+ };
907
+ };
877
908
  };
878
909
  } & {
879
910
  admin: {
@@ -1628,8 +1659,10 @@ declare const app: Elysia<"/api", {
1628
1659
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1629
1660
  targetAssetId: string;
1630
1661
  payAssetId: string;
1631
- defaultReceiveAccountTypeId: string;
1662
+ payAccountTypeId: string;
1663
+ receiveAccountTypeId: string;
1632
1664
  minPayAmount: string;
1665
+ settlementMode: "available" | "locked";
1633
1666
  };
1634
1667
  params: {};
1635
1668
  query: {};
@@ -1645,8 +1678,10 @@ declare const app: Elysia<"/api", {
1645
1678
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1646
1679
  targetAssetId: string;
1647
1680
  payAssetId: string;
1648
- defaultReceiveAccountTypeId: string;
1681
+ payAccountTypeId: string;
1682
+ receiveAccountTypeId: string;
1649
1683
  minPayAmount: string;
1684
+ settlementMode: "available" | "locked";
1650
1685
  targetAssetInfo: {
1651
1686
  symbol: string;
1652
1687
  id: string;
@@ -1663,7 +1698,13 @@ declare const app: Elysia<"/api", {
1663
1698
  isActive: boolean;
1664
1699
  precision: number;
1665
1700
  };
1666
- defaultReceiveAccountTypeInfo: {
1701
+ payAccountTypeInfo: {
1702
+ id: string;
1703
+ name: string;
1704
+ key: string;
1705
+ isActive: boolean;
1706
+ };
1707
+ receiveAccountTypeInfo: {
1667
1708
  id: string;
1668
1709
  name: string;
1669
1710
  key: string;
@@ -1697,8 +1738,10 @@ declare const app: Elysia<"/api", {
1697
1738
  productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
1698
1739
  targetAssetId?: string | undefined;
1699
1740
  payAssetId?: string | undefined;
1700
- defaultReceiveAccountTypeId?: string | undefined;
1741
+ payAccountTypeId?: string | undefined;
1742
+ receiveAccountTypeId?: string | undefined;
1701
1743
  minPayAmount?: string | undefined;
1744
+ settlementMode?: "available" | "locked" | undefined;
1702
1745
  };
1703
1746
  params: {
1704
1747
  id: string;
@@ -1716,8 +1759,10 @@ declare const app: Elysia<"/api", {
1716
1759
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1717
1760
  targetAssetId: string;
1718
1761
  payAssetId: string;
1719
- defaultReceiveAccountTypeId: string;
1762
+ payAccountTypeId: string;
1763
+ receiveAccountTypeId: string;
1720
1764
  minPayAmount: string;
1765
+ settlementMode: "available" | "locked";
1721
1766
  targetAssetInfo: {
1722
1767
  symbol: string;
1723
1768
  id: string;
@@ -1734,7 +1779,13 @@ declare const app: Elysia<"/api", {
1734
1779
  isActive: boolean;
1735
1780
  precision: number;
1736
1781
  };
1737
- defaultReceiveAccountTypeInfo: {
1782
+ payAccountTypeInfo: {
1783
+ id: string;
1784
+ name: string;
1785
+ key: string;
1786
+ isActive: boolean;
1787
+ };
1788
+ receiveAccountTypeInfo: {
1738
1789
  id: string;
1739
1790
  name: string;
1740
1791
  key: string;
@@ -1780,8 +1831,10 @@ declare const app: Elysia<"/api", {
1780
1831
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1781
1832
  targetAssetId: string;
1782
1833
  payAssetId: string;
1783
- defaultReceiveAccountTypeId: string;
1834
+ payAccountTypeId: string;
1835
+ receiveAccountTypeId: string;
1784
1836
  minPayAmount: string;
1837
+ settlementMode: "available" | "locked";
1785
1838
  targetAssetInfo: {
1786
1839
  symbol: string;
1787
1840
  id: string;
@@ -1798,7 +1851,13 @@ declare const app: Elysia<"/api", {
1798
1851
  isActive: boolean;
1799
1852
  precision: number;
1800
1853
  };
1801
- defaultReceiveAccountTypeInfo: {
1854
+ payAccountTypeInfo: {
1855
+ id: string;
1856
+ name: string;
1857
+ key: string;
1858
+ isActive: boolean;
1859
+ };
1860
+ receiveAccountTypeInfo: {
1802
1861
  id: string;
1803
1862
  name: string;
1804
1863
  key: string;
@@ -1845,8 +1904,10 @@ declare const app: Elysia<"/api", {
1845
1904
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1846
1905
  targetAssetId: string;
1847
1906
  payAssetId: string;
1848
- defaultReceiveAccountTypeId: string;
1907
+ payAccountTypeId: string;
1908
+ receiveAccountTypeId: string;
1849
1909
  minPayAmount: string;
1910
+ settlementMode: "available" | "locked";
1850
1911
  targetAssetInfo: {
1851
1912
  symbol: string;
1852
1913
  id: string;
@@ -1863,7 +1924,13 @@ declare const app: Elysia<"/api", {
1863
1924
  isActive: boolean;
1864
1925
  precision: number;
1865
1926
  };
1866
- defaultReceiveAccountTypeInfo: {
1927
+ payAccountTypeInfo: {
1928
+ id: string;
1929
+ name: string;
1930
+ key: string;
1931
+ isActive: boolean;
1932
+ };
1933
+ receiveAccountTypeInfo: {
1867
1934
  id: string;
1868
1935
  name: string;
1869
1936
  key: string;
@@ -1910,8 +1977,10 @@ declare const app: Elysia<"/api", {
1910
1977
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1911
1978
  targetAssetId: string;
1912
1979
  payAssetId: string;
1913
- defaultReceiveAccountTypeId: string;
1980
+ payAccountTypeId: string;
1981
+ receiveAccountTypeId: string;
1914
1982
  minPayAmount: string;
1983
+ settlementMode: "available" | "locked";
1915
1984
  targetAssetInfo: {
1916
1985
  symbol: string;
1917
1986
  id: string;
@@ -1928,7 +1997,13 @@ declare const app: Elysia<"/api", {
1928
1997
  isActive: boolean;
1929
1998
  precision: number;
1930
1999
  };
1931
- defaultReceiveAccountTypeInfo: {
2000
+ payAccountTypeInfo: {
2001
+ id: string;
2002
+ name: string;
2003
+ key: string;
2004
+ isActive: boolean;
2005
+ };
2006
+ receiveAccountTypeInfo: {
1932
2007
  id: string;
1933
2008
  name: string;
1934
2009
  key: string;
@@ -1974,8 +2049,10 @@ declare const app: Elysia<"/api", {
1974
2049
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
1975
2050
  targetAssetId: string;
1976
2051
  payAssetId: string;
1977
- defaultReceiveAccountTypeId: string;
2052
+ payAccountTypeId: string;
2053
+ receiveAccountTypeId: string;
1978
2054
  minPayAmount: string;
2055
+ settlementMode: "available" | "locked";
1979
2056
  targetAssetInfo: {
1980
2057
  symbol: string;
1981
2058
  id: string;
@@ -1992,7 +2069,13 @@ declare const app: Elysia<"/api", {
1992
2069
  isActive: boolean;
1993
2070
  precision: number;
1994
2071
  };
1995
- defaultReceiveAccountTypeInfo: {
2072
+ payAccountTypeInfo: {
2073
+ id: string;
2074
+ name: string;
2075
+ key: string;
2076
+ isActive: boolean;
2077
+ };
2078
+ receiveAccountTypeInfo: {
1996
2079
  id: string;
1997
2080
  name: string;
1998
2081
  key: string;
@@ -2028,7 +2111,9 @@ declare const app: Elysia<"/api", {
2028
2111
  productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
2029
2112
  targetAssetId?: string | undefined;
2030
2113
  payAssetId?: string | undefined;
2031
- defaultReceiveAccountTypeId?: string | undefined;
2114
+ payAccountTypeId?: string | undefined;
2115
+ receiveAccountTypeId?: string | undefined;
2116
+ settlementMode?: "available" | "locked" | undefined;
2032
2117
  limit?: number | undefined;
2033
2118
  offset?: number | undefined;
2034
2119
  pageSize?: number | undefined;
@@ -2051,8 +2136,10 @@ declare const app: Elysia<"/api", {
2051
2136
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
2052
2137
  targetAssetId: string;
2053
2138
  payAssetId: string;
2054
- defaultReceiveAccountTypeId: string;
2139
+ payAccountTypeId: string;
2140
+ receiveAccountTypeId: string;
2055
2141
  minPayAmount: string;
2142
+ settlementMode: "available" | "locked";
2056
2143
  targetAssetInfo: {
2057
2144
  symbol: string;
2058
2145
  id: string;
@@ -2069,7 +2156,13 @@ declare const app: Elysia<"/api", {
2069
2156
  isActive: boolean;
2070
2157
  precision: number;
2071
2158
  };
2072
- defaultReceiveAccountTypeInfo: {
2159
+ payAccountTypeInfo: {
2160
+ id: string;
2161
+ name: string;
2162
+ key: string;
2163
+ isActive: boolean;
2164
+ };
2165
+ receiveAccountTypeInfo: {
2073
2166
  id: string;
2074
2167
  name: string;
2075
2168
  key: string;
@@ -2108,13 +2201,12 @@ declare const app: Elysia<"/api", {
2108
2201
  query: {
2109
2202
  id?: string | undefined;
2110
2203
  userId?: string | undefined;
2111
- status?: "created" | "completed" | "failed" | undefined;
2204
+ status?: "created" | "completed" | undefined;
2112
2205
  idempotencyKey?: string | undefined;
2113
2206
  orderNo?: string | undefined;
2114
2207
  productId?: string | undefined;
2115
2208
  sourcePayAccountId?: string | undefined;
2116
2209
  receiveAccountId?: string | undefined;
2117
- failureCode?: string | null | undefined;
2118
2210
  limit?: number | undefined;
2119
2211
  offset?: number | undefined;
2120
2212
  pageSize?: number | undefined;
@@ -2142,7 +2234,7 @@ declare const app: Elysia<"/api", {
2142
2234
  createdAt: Date;
2143
2235
  updatedAt: Date;
2144
2236
  userId: string;
2145
- status: "created" | "completed" | "failed";
2237
+ status: "created" | "completed";
2146
2238
  idempotencyKey: string;
2147
2239
  orderNo: string;
2148
2240
  productId: string;
@@ -2263,7 +2355,7 @@ declare const app: Elysia<"/api", {
2263
2355
  createdAt: Date;
2264
2356
  updatedAt: Date;
2265
2357
  userId: string;
2266
- status: "created" | "completed" | "failed";
2358
+ status: "created" | "completed";
2267
2359
  idempotencyKey: string;
2268
2360
  orderNo: string;
2269
2361
  productId: string;
@@ -2378,7 +2470,7 @@ declare const app: Elysia<"/api", {
2378
2470
  createdAt: Date;
2379
2471
  updatedAt: Date;
2380
2472
  userId: string;
2381
- status: "created" | "completed" | "failed";
2473
+ status: "created" | "completed";
2382
2474
  idempotencyKey: string;
2383
2475
  orderNo: string;
2384
2476
  productId: string;
@@ -2482,7 +2574,6 @@ declare const app: Elysia<"/api", {
2482
2574
  totalCount: number;
2483
2575
  createdCount: number;
2484
2576
  completedCount: number;
2485
- failedCount: number;
2486
2577
  totalPayAmount: string;
2487
2578
  totalTargetAmount: string;
2488
2579
  };
@@ -3551,8 +3642,8 @@ declare const app: Elysia<"/api", {
3551
3642
  response: {
3552
3643
  200: {
3553
3644
  totalCount: number;
3554
- failedCount: number;
3555
3645
  successCount: number;
3646
+ failedCount: number;
3556
3647
  results: {
3557
3648
  accountId?: string | undefined;
3558
3649
  ledgerEntryId?: string | undefined;
@@ -4095,9 +4186,9 @@ declare const app: Elysia<"/api", {
4095
4186
  id: string;
4096
4187
  createdAt: Date;
4097
4188
  updatedAt: Date;
4098
- status: "pending" | "failed" | "running" | "success";
4099
- failed: number;
4189
+ status: "pending" | "running" | "success" | "failed";
4100
4190
  success: number;
4191
+ failed: number;
4101
4192
  ignored: number;
4102
4193
  fileId: string;
4103
4194
  total: number;
@@ -4128,7 +4219,7 @@ declare const app: Elysia<"/api", {
4128
4219
  body: {};
4129
4220
  params: {};
4130
4221
  query: {
4131
- status?: "pending" | "failed" | "running" | "success" | undefined;
4222
+ status?: "pending" | "running" | "success" | "failed" | undefined;
4132
4223
  limit?: number | undefined;
4133
4224
  offset?: number | undefined;
4134
4225
  pageSize?: number | undefined;
@@ -4142,9 +4233,9 @@ declare const app: Elysia<"/api", {
4142
4233
  id: string;
4143
4234
  createdAt: Date;
4144
4235
  updatedAt: Date;
4145
- status: "pending" | "failed" | "running" | "success";
4146
- failed: number;
4236
+ status: "pending" | "running" | "success" | "failed";
4147
4237
  success: number;
4238
+ failed: number;
4148
4239
  ignored: number;
4149
4240
  fileId: string;
4150
4241
  total: number;
@@ -4193,9 +4284,9 @@ declare const app: Elysia<"/api", {
4193
4284
  id: string;
4194
4285
  createdAt: Date;
4195
4286
  updatedAt: Date;
4196
- status: "pending" | "failed" | "running" | "success";
4197
- failed: number;
4287
+ status: "pending" | "running" | "success" | "failed";
4198
4288
  success: number;
4289
+ failed: number;
4199
4290
  ignored: number;
4200
4291
  fileId: string;
4201
4292
  total: number;
@@ -4231,7 +4322,7 @@ declare const app: Elysia<"/api", {
4231
4322
  id: string;
4232
4323
  };
4233
4324
  query: {
4234
- status?: "failed" | "success" | "ignored" | undefined;
4325
+ status?: "success" | "failed" | "ignored" | undefined;
4235
4326
  limit?: number | undefined;
4236
4327
  offset?: number | undefined;
4237
4328
  pageSize?: number | undefined;
@@ -4247,7 +4338,7 @@ declare const app: Elysia<"/api", {
4247
4338
  updatedAt: Date;
4248
4339
  phoneNumber: string | null;
4249
4340
  userId: string | null;
4250
- status: "failed" | "success" | "ignored";
4341
+ status: "success" | "failed" | "ignored";
4251
4342
  assetId: string | null;
4252
4343
  ledgerAccountTypeId: string | null;
4253
4344
  amount: string | null;
@@ -7153,6 +7244,7 @@ declare const app: Elysia<"/api", {
7153
7244
  body: {
7154
7245
  description?: string | null | undefined;
7155
7246
  status?: "active" | "draft" | "paused" | "ended" | undefined;
7247
+ coverImageUrl?: string | null | undefined;
7156
7248
  minShares?: number | undefined;
7157
7249
  maxSharesPerOrder?: number | null | undefined;
7158
7250
  saleStartAt?: Date | null | undefined;
@@ -7160,6 +7252,9 @@ declare const app: Elysia<"/api", {
7160
7252
  name: string;
7161
7253
  rightsAssetId: string;
7162
7254
  pricingAssetId: string;
7255
+ sourcePricingAccountTypeId: string;
7256
+ dailyPayoutAccountTypeId: string;
7257
+ maturitySettlementAccountTypeId: string;
7163
7258
  pricePerShare: string;
7164
7259
  rightsPerShare: string;
7165
7260
  cycleDays: number;
@@ -7177,8 +7272,12 @@ declare const app: Elysia<"/api", {
7177
7272
  updatedAt: Date;
7178
7273
  description: string | null;
7179
7274
  status: "active" | "draft" | "paused" | "ended";
7275
+ coverImageUrl: string | null;
7180
7276
  rightsAssetId: string;
7181
7277
  pricingAssetId: string;
7278
+ sourcePricingAccountTypeId: string;
7279
+ dailyPayoutAccountTypeId: string;
7280
+ maturitySettlementAccountTypeId: string;
7182
7281
  pricePerShare: string;
7183
7282
  rightsPerShare: string;
7184
7283
  cycleDays: number;
@@ -7213,8 +7312,12 @@ declare const app: Elysia<"/api", {
7213
7312
  name?: string | undefined;
7214
7313
  description?: string | null | undefined;
7215
7314
  status?: "active" | "draft" | "paused" | "ended" | undefined;
7315
+ coverImageUrl?: string | null | undefined;
7216
7316
  rightsAssetId?: string | undefined;
7217
7317
  pricingAssetId?: string | undefined;
7318
+ sourcePricingAccountTypeId?: string | undefined;
7319
+ dailyPayoutAccountTypeId?: string | undefined;
7320
+ maturitySettlementAccountTypeId?: string | undefined;
7218
7321
  pricePerShare?: string | undefined;
7219
7322
  rightsPerShare?: string | undefined;
7220
7323
  cycleDays?: number | undefined;
@@ -7237,8 +7340,12 @@ declare const app: Elysia<"/api", {
7237
7340
  id: string;
7238
7341
  name: string;
7239
7342
  description: string | null;
7343
+ coverImageUrl: string | null;
7240
7344
  rightsAssetId: string;
7241
7345
  pricingAssetId: string;
7346
+ sourcePricingAccountTypeId: string;
7347
+ dailyPayoutAccountTypeId: string;
7348
+ maturitySettlementAccountTypeId: string;
7242
7349
  pricePerShare: string;
7243
7350
  rightsPerShare: string;
7244
7351
  cycleDays: number;
@@ -7285,8 +7392,12 @@ declare const app: Elysia<"/api", {
7285
7392
  id: string;
7286
7393
  name: string;
7287
7394
  description: string | null;
7395
+ coverImageUrl: string | null;
7288
7396
  rightsAssetId: string;
7289
7397
  pricingAssetId: string;
7398
+ sourcePricingAccountTypeId: string;
7399
+ dailyPayoutAccountTypeId: string;
7400
+ maturitySettlementAccountTypeId: string;
7290
7401
  pricePerShare: string;
7291
7402
  rightsPerShare: string;
7292
7403
  cycleDays: number;
@@ -7334,8 +7445,12 @@ declare const app: Elysia<"/api", {
7334
7445
  id: string;
7335
7446
  name: string;
7336
7447
  description: string | null;
7448
+ coverImageUrl: string | null;
7337
7449
  rightsAssetId: string;
7338
7450
  pricingAssetId: string;
7451
+ sourcePricingAccountTypeId: string;
7452
+ dailyPayoutAccountTypeId: string;
7453
+ maturitySettlementAccountTypeId: string;
7339
7454
  pricePerShare: string;
7340
7455
  rightsPerShare: string;
7341
7456
  cycleDays: number;
@@ -7383,8 +7498,12 @@ declare const app: Elysia<"/api", {
7383
7498
  id: string;
7384
7499
  name: string;
7385
7500
  description: string | null;
7501
+ coverImageUrl: string | null;
7386
7502
  rightsAssetId: string;
7387
7503
  pricingAssetId: string;
7504
+ sourcePricingAccountTypeId: string;
7505
+ dailyPayoutAccountTypeId: string;
7506
+ maturitySettlementAccountTypeId: string;
7388
7507
  pricePerShare: string;
7389
7508
  rightsPerShare: string;
7390
7509
  cycleDays: number;
@@ -7436,8 +7555,12 @@ declare const app: Elysia<"/api", {
7436
7555
  updatedAt: Date;
7437
7556
  description: string | null;
7438
7557
  status: "active" | "draft" | "paused" | "ended";
7558
+ coverImageUrl: string | null;
7439
7559
  rightsAssetId: string;
7440
7560
  pricingAssetId: string;
7561
+ sourcePricingAccountTypeId: string;
7562
+ dailyPayoutAccountTypeId: string;
7563
+ maturitySettlementAccountTypeId: string;
7441
7564
  pricePerShare: string;
7442
7565
  rightsPerShare: string;
7443
7566
  cycleDays: number;
@@ -7499,7 +7622,8 @@ declare const app: Elysia<"/api", {
7499
7622
  orderNo: string;
7500
7623
  planId: string;
7501
7624
  sourcePricingAccountId: string;
7502
- rightsReceiveAccountId: string;
7625
+ dailyPayoutReceiveAccountId: string;
7626
+ maturitySettlementReceiveAccountId: string;
7503
7627
  shares: number;
7504
7628
  totalPricingAmount: string;
7505
7629
  totalRightsPrincipal: string;
@@ -8836,84 +8960,45 @@ declare const app: Elysia<"/api", {
8836
8960
  };
8837
8961
  } & {
8838
8962
  api: {
8839
- assets: {};
8840
- } & {
8841
- assets: {
8842
- get: {
8843
- body: {};
8844
- params: {};
8845
- query: {
8846
- category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
8847
- isActive?: boolean | undefined;
8848
- limit?: number | undefined;
8849
- offset?: number | undefined;
8850
- pageSize?: number | undefined;
8851
- pageIndex?: number | undefined;
8852
- };
8853
- headers: {};
8854
- response: {
8855
- 200: {
8856
- data: {
8857
- symbol: string;
8858
- type: {
8859
- id: string;
8860
- name: string;
8861
- key: string;
8862
- isGasAsset: boolean;
8863
- isActive: boolean;
8864
- };
8865
- id: string;
8866
- name: string;
8867
- code: string;
8868
- iconUrl: string;
8869
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
8870
- isActive: boolean;
8871
- typeId: string;
8872
- precision: number;
8873
- }[];
8874
- pagination: {
8875
- total: number;
8876
- pageSize: number;
8877
- pageIndex: number;
8878
- totalPages: number;
8879
- hasNextPage: boolean;
8880
- };
8881
- };
8882
- 422: {
8883
- type: "validation";
8884
- on: string;
8885
- summary?: string;
8886
- message?: string;
8887
- found?: unknown;
8888
- property?: string;
8889
- expected?: string;
8890
- };
8891
- 401: "Unauthorized";
8892
- };
8893
- };
8894
- };
8963
+ portfolio: {};
8895
8964
  } & {
8896
- assets: {
8897
- holdings: {
8965
+ portfolio: {
8966
+ overview: {
8898
8967
  get: {
8899
8968
  body: {};
8900
8969
  params: {};
8901
8970
  query: {
8902
8971
  quoteAsset?: string | undefined;
8903
- ledgerAccountId?: string | undefined;
8904
- walletId?: string | undefined;
8905
8972
  };
8906
8973
  headers: {};
8907
8974
  response: {
8908
8975
  200: {
8909
- items: {
8910
- assetId: string;
8911
- assetCode: string;
8976
+ quoteAsset: string;
8977
+ overview: {
8978
+ totalValuation: string;
8979
+ };
8980
+ walletView: {
8981
+ id: string;
8982
+ name: string;
8983
+ isActive: boolean;
8984
+ walletTypeId: string;
8985
+ isPrimary: boolean;
8986
+ }[];
8987
+ accountTypeView: {
8988
+ id: string;
8989
+ name: string;
8990
+ key: string;
8991
+ accountCount: number;
8992
+ totalValuation: string;
8993
+ }[];
8994
+ assetView: {
8995
+ id: string;
8996
+ name: string;
8997
+ code: string;
8998
+ iconUrl: string;
8912
8999
  totalValuation: string;
8913
- assetName: string;
8914
9000
  quantity: string;
8915
9001
  }[];
8916
- quoteAsset: string;
8917
9002
  };
8918
9003
  422: {
8919
9004
  type: "validation";
@@ -8930,81 +9015,350 @@ declare const app: Elysia<"/api", {
8930
9015
  };
8931
9016
  };
8932
9017
  } & {
8933
- assets: {
8934
- ":assetId": {
8935
- overview: {
8936
- get: {
8937
- body: {};
8938
- params: {
8939
- assetId: string;
8940
- };
8941
- query: {
8942
- quoteAsset?: string | undefined;
8943
- days?: number | undefined;
8944
- };
8945
- headers: {};
8946
- response: {
8947
- 200: {
8948
- asset: {
8949
- symbol: string;
8950
- id: string;
8951
- name: string;
8952
- code: string;
8953
- iconUrl: string;
8954
- category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
8955
- isActive: boolean;
8956
- precision: number;
8957
- };
8958
- quoteAsset: string;
8959
- totalValuation: string;
8960
- quantity: string;
8961
- curve: {
8962
- at: Date;
8963
- value: string;
8964
- }[];
8965
- accountDistribution: {
8966
- ledgerAccountTypeId: string;
8967
- ledgerAccountId: string;
8968
- quantity: string;
8969
- ledgerAccountTypeKey: string;
8970
- ledgerAccountTypeName: string;
8971
- valuation: string;
8972
- proportion: string;
8973
- }[];
9018
+ portfolio: {
9019
+ "account-types": {
9020
+ ":accountTypeKey": {
9021
+ overview: {
9022
+ get: {
9023
+ body: {};
9024
+ params: {
9025
+ accountTypeKey: string;
8974
9026
  };
8975
- 422: {
8976
- type: "validation";
8977
- on: string;
8978
- summary?: string;
8979
- message?: string;
8980
- found?: unknown;
8981
- property?: string;
8982
- expected?: string;
9027
+ query: {
9028
+ quoteAsset?: string | undefined;
9029
+ };
9030
+ headers: {};
9031
+ response: {
9032
+ 200: {
9033
+ accounts: {
9034
+ id: string;
9035
+ userId: string;
9036
+ status: "active" | "frozen" | "disabled";
9037
+ asset: {
9038
+ id: string;
9039
+ name: string;
9040
+ code: string;
9041
+ iconUrl: string;
9042
+ };
9043
+ assetId: string;
9044
+ ledgerAccountTypeId: string;
9045
+ available: string;
9046
+ locked: string;
9047
+ totalValuation: string;
9048
+ quantity: string;
9049
+ accountType: {
9050
+ id: string;
9051
+ name: string;
9052
+ key: string;
9053
+ };
9054
+ }[];
9055
+ quoteAsset: string;
9056
+ overview: {
9057
+ totalValuation: string;
9058
+ };
9059
+ accountType: {
9060
+ id: string;
9061
+ name: string;
9062
+ key: string;
9063
+ };
9064
+ };
9065
+ 422: {
9066
+ type: "validation";
9067
+ on: string;
9068
+ summary?: string;
9069
+ message?: string;
9070
+ found?: unknown;
9071
+ property?: string;
9072
+ expected?: string;
9073
+ };
9074
+ 401: "Unauthorized";
8983
9075
  };
8984
- 401: "Unauthorized";
8985
9076
  };
8986
9077
  };
8987
9078
  };
8988
9079
  };
8989
9080
  };
8990
- };
8991
- } & {
8992
- api: {
8993
- asset_convert_product: {};
8994
9081
  } & {
8995
- asset_convert_product: {
8996
- products: {
8997
- get: {
8998
- body: {};
8999
- params: {};
9000
- query: {
9001
- status?: "active" | "draft" | "paused" | "ended" | undefined;
9002
- productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
9003
- limit?: number | undefined;
9004
- offset?: number | undefined;
9005
- pageSize?: number | undefined;
9006
- pageIndex?: number | undefined;
9007
- };
9082
+ portfolio: {
9083
+ assets: {
9084
+ ":assetId": {
9085
+ overview: {
9086
+ get: {
9087
+ body: {};
9088
+ params: {
9089
+ assetId: string;
9090
+ };
9091
+ query: {
9092
+ quoteAsset?: string | undefined;
9093
+ accountTypeKey?: string | undefined;
9094
+ days?: number | undefined;
9095
+ };
9096
+ headers: {};
9097
+ response: {
9098
+ 200: {
9099
+ asset: {
9100
+ symbol: string;
9101
+ id: string;
9102
+ name: string;
9103
+ code: string;
9104
+ iconUrl: string;
9105
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
9106
+ isActive: boolean;
9107
+ precision: number;
9108
+ };
9109
+ quoteAsset: string;
9110
+ totalValuation: string;
9111
+ quantity: string;
9112
+ curve: {
9113
+ at: Date;
9114
+ value: string;
9115
+ }[];
9116
+ accountDistribution: {
9117
+ ledgerAccountTypeId: string;
9118
+ ledgerAccountId: string;
9119
+ quantity: string;
9120
+ ledgerAccountTypeKey: string;
9121
+ ledgerAccountTypeName: string;
9122
+ valuation: string;
9123
+ proportion: string;
9124
+ }[];
9125
+ };
9126
+ 422: {
9127
+ type: "validation";
9128
+ on: string;
9129
+ summary?: string;
9130
+ message?: string;
9131
+ found?: unknown;
9132
+ property?: string;
9133
+ expected?: string;
9134
+ };
9135
+ 401: "Unauthorized";
9136
+ };
9137
+ };
9138
+ };
9139
+ };
9140
+ };
9141
+ };
9142
+ } & {
9143
+ portfolio: {
9144
+ accounts: {
9145
+ ":id": {
9146
+ overview: {
9147
+ get: {
9148
+ body: {};
9149
+ params: {
9150
+ id: string;
9151
+ };
9152
+ query: {
9153
+ quoteAsset?: string | undefined;
9154
+ };
9155
+ headers: {};
9156
+ response: {
9157
+ 200: {
9158
+ quoteAsset: string;
9159
+ ledgerAccountType: {
9160
+ id: string;
9161
+ name: string;
9162
+ description: string | null;
9163
+ key: string;
9164
+ };
9165
+ ledgerAccount: {
9166
+ id: string;
9167
+ createdAt: Date;
9168
+ updatedAt: Date;
9169
+ userId: string;
9170
+ status: "active" | "frozen" | "disabled";
9171
+ assetId: string;
9172
+ ledgerAccountTypeId: string;
9173
+ available: string;
9174
+ locked: string;
9175
+ version: number;
9176
+ };
9177
+ overview: {
9178
+ totalValuation: string;
9179
+ };
9180
+ };
9181
+ 422: {
9182
+ type: "validation";
9183
+ on: string;
9184
+ summary?: string;
9185
+ message?: string;
9186
+ found?: unknown;
9187
+ property?: string;
9188
+ expected?: string;
9189
+ };
9190
+ 401: "Unauthorized";
9191
+ };
9192
+ };
9193
+ };
9194
+ };
9195
+ };
9196
+ };
9197
+ };
9198
+ } & {
9199
+ api: {
9200
+ assets: {};
9201
+ } & {
9202
+ assets: {
9203
+ get: {
9204
+ body: {};
9205
+ params: {};
9206
+ query: {
9207
+ category?: "FIAT" | "CRYPTO" | "POINT" | "RWA" | undefined;
9208
+ isActive?: boolean | undefined;
9209
+ typeId?: string | undefined;
9210
+ limit?: number | undefined;
9211
+ offset?: number | undefined;
9212
+ pageSize?: number | undefined;
9213
+ pageIndex?: number | undefined;
9214
+ };
9215
+ headers: {};
9216
+ response: {
9217
+ 200: {
9218
+ data: {
9219
+ symbol: string;
9220
+ type: {
9221
+ id: string;
9222
+ name: string;
9223
+ key: string;
9224
+ isGasAsset: boolean;
9225
+ isActive: boolean;
9226
+ };
9227
+ id: string;
9228
+ name: string;
9229
+ code: string;
9230
+ iconUrl: string;
9231
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
9232
+ isActive: boolean;
9233
+ typeId: string;
9234
+ precision: number;
9235
+ }[];
9236
+ pagination: {
9237
+ total: number;
9238
+ pageSize: number;
9239
+ pageIndex: number;
9240
+ totalPages: number;
9241
+ hasNextPage: boolean;
9242
+ };
9243
+ };
9244
+ 422: {
9245
+ type: "validation";
9246
+ on: string;
9247
+ summary?: string;
9248
+ message?: string;
9249
+ found?: unknown;
9250
+ property?: string;
9251
+ expected?: string;
9252
+ };
9253
+ 401: "Unauthorized";
9254
+ };
9255
+ };
9256
+ };
9257
+ } & {
9258
+ assets: {
9259
+ code: {
9260
+ ":code": {
9261
+ get: {
9262
+ body: {};
9263
+ params: {
9264
+ code: string;
9265
+ };
9266
+ query: {};
9267
+ headers: {};
9268
+ response: {
9269
+ 200: {
9270
+ symbol: string;
9271
+ type: {
9272
+ id: string;
9273
+ name: string;
9274
+ key: string;
9275
+ isGasAsset: boolean;
9276
+ isActive: boolean;
9277
+ };
9278
+ id: string;
9279
+ name: string;
9280
+ code: string;
9281
+ iconUrl: string;
9282
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
9283
+ isActive: boolean;
9284
+ typeId: string;
9285
+ precision: number;
9286
+ };
9287
+ 422: {
9288
+ type: "validation";
9289
+ on: string;
9290
+ summary?: string;
9291
+ message?: string;
9292
+ found?: unknown;
9293
+ property?: string;
9294
+ expected?: string;
9295
+ };
9296
+ 401: "Unauthorized";
9297
+ };
9298
+ };
9299
+ };
9300
+ };
9301
+ };
9302
+ } & {
9303
+ assets: {
9304
+ ":id": {
9305
+ get: {
9306
+ body: {};
9307
+ params: {
9308
+ id: string;
9309
+ };
9310
+ query: {};
9311
+ headers: {};
9312
+ response: {
9313
+ 200: {
9314
+ symbol: string;
9315
+ type: {
9316
+ id: string;
9317
+ name: string;
9318
+ key: string;
9319
+ isGasAsset: boolean;
9320
+ isActive: boolean;
9321
+ };
9322
+ id: string;
9323
+ name: string;
9324
+ code: string;
9325
+ iconUrl: string;
9326
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
9327
+ isActive: boolean;
9328
+ typeId: string;
9329
+ precision: number;
9330
+ };
9331
+ 422: {
9332
+ type: "validation";
9333
+ on: string;
9334
+ summary?: string;
9335
+ message?: string;
9336
+ found?: unknown;
9337
+ property?: string;
9338
+ expected?: string;
9339
+ };
9340
+ 401: "Unauthorized";
9341
+ };
9342
+ };
9343
+ };
9344
+ };
9345
+ };
9346
+ } & {
9347
+ api: {
9348
+ asset_convert_product: {};
9349
+ } & {
9350
+ asset_convert_product: {
9351
+ products: {
9352
+ get: {
9353
+ body: {};
9354
+ params: {};
9355
+ query: {
9356
+ productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
9357
+ limit?: number | undefined;
9358
+ offset?: number | undefined;
9359
+ pageSize?: number | undefined;
9360
+ pageIndex?: number | undefined;
9361
+ };
9008
9362
  headers: {};
9009
9363
  response: {
9010
9364
  200: {
@@ -9018,8 +9372,10 @@ declare const app: Elysia<"/api", {
9018
9372
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
9019
9373
  targetAssetId: string;
9020
9374
  payAssetId: string;
9021
- defaultReceiveAccountTypeId: string;
9375
+ payAccountTypeId: string;
9376
+ receiveAccountTypeId: string;
9022
9377
  minPayAmount: string;
9378
+ settlementMode: "available" | "locked";
9023
9379
  }[];
9024
9380
  pagination: {
9025
9381
  total: number;
@@ -9065,8 +9421,10 @@ declare const app: Elysia<"/api", {
9065
9421
  productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
9066
9422
  targetAssetId: string;
9067
9423
  payAssetId: string;
9068
- defaultReceiveAccountTypeId: string;
9424
+ payAccountTypeId: string;
9425
+ receiveAccountTypeId: string;
9069
9426
  minPayAmount: string;
9427
+ settlementMode: "available" | "locked";
9070
9428
  };
9071
9429
  422: {
9072
9430
  type: "validation";
@@ -9091,7 +9449,6 @@ declare const app: Elysia<"/api", {
9091
9449
  idempotencyKey: string;
9092
9450
  productId: string;
9093
9451
  payAmount: string;
9094
- sourcePayAccountId: string;
9095
9452
  };
9096
9453
  params: {};
9097
9454
  query: {};
@@ -9102,7 +9459,7 @@ declare const app: Elysia<"/api", {
9102
9459
  createdAt: Date;
9103
9460
  updatedAt: Date;
9104
9461
  userId: string;
9105
- status: "created" | "completed" | "failed";
9462
+ status: "created" | "completed";
9106
9463
  idempotencyKey: string;
9107
9464
  orderNo: string;
9108
9465
  productId: string;
@@ -9142,7 +9499,7 @@ declare const app: Elysia<"/api", {
9142
9499
  body: {};
9143
9500
  params: {};
9144
9501
  query: {
9145
- status?: "created" | "completed" | "failed" | undefined;
9502
+ status?: "created" | "completed" | undefined;
9146
9503
  limit?: number | undefined;
9147
9504
  offset?: number | undefined;
9148
9505
  pageSize?: number | undefined;
@@ -9156,7 +9513,7 @@ declare const app: Elysia<"/api", {
9156
9513
  createdAt: Date;
9157
9514
  updatedAt: Date;
9158
9515
  userId: string;
9159
- status: "created" | "completed" | "failed";
9516
+ status: "created" | "completed";
9160
9517
  idempotencyKey: string;
9161
9518
  orderNo: string;
9162
9519
  productId: string;
@@ -9214,7 +9571,7 @@ declare const app: Elysia<"/api", {
9214
9571
  createdAt: Date;
9215
9572
  updatedAt: Date;
9216
9573
  userId: string;
9217
- status: "created" | "completed" | "failed";
9574
+ status: "created" | "completed";
9218
9575
  idempotencyKey: string;
9219
9576
  orderNo: string;
9220
9577
  productId: string;
@@ -9258,8 +9615,6 @@ declare const app: Elysia<"/api", {
9258
9615
  body: {};
9259
9616
  params: {};
9260
9617
  query: {
9261
- baseAsset?: string | undefined;
9262
- quoteAsset?: string | undefined;
9263
9618
  source?: string | undefined;
9264
9619
  startDate?: Date | undefined;
9265
9620
  limit?: number | undefined;
@@ -9267,6 +9622,8 @@ declare const app: Elysia<"/api", {
9267
9622
  pageSize?: number | undefined;
9268
9623
  pageIndex?: number | undefined;
9269
9624
  endDate?: Date | undefined;
9625
+ baseAsset: string;
9626
+ quoteAsset: string;
9270
9627
  };
9271
9628
  headers: {};
9272
9629
  response: {
@@ -9304,6 +9661,47 @@ declare const app: Elysia<"/api", {
9304
9661
  };
9305
9662
  };
9306
9663
  };
9664
+ } & {
9665
+ asset_prices: {
9666
+ latest: {
9667
+ cny: {
9668
+ ":baseAsset": {
9669
+ get: {
9670
+ body: {};
9671
+ params: {
9672
+ baseAsset: string;
9673
+ };
9674
+ query: {};
9675
+ headers: {};
9676
+ response: {
9677
+ 200: {
9678
+ id: string;
9679
+ createdAt: Date;
9680
+ updatedAt: Date;
9681
+ baseAssetId: string;
9682
+ baseAsset: string;
9683
+ quoteAssetId: string;
9684
+ quoteAsset: string;
9685
+ price: string;
9686
+ source: string;
9687
+ effectiveAt: Date;
9688
+ };
9689
+ 422: {
9690
+ type: "validation";
9691
+ on: string;
9692
+ summary?: string;
9693
+ message?: string;
9694
+ found?: unknown;
9695
+ property?: string;
9696
+ expected?: string;
9697
+ };
9698
+ 401: "Unauthorized";
9699
+ };
9700
+ };
9701
+ };
9702
+ };
9703
+ };
9704
+ };
9307
9705
  } & {
9308
9706
  asset_prices: {
9309
9707
  latest: {
@@ -9514,67 +9912,6 @@ declare const app: Elysia<"/api", {
9514
9912
  };
9515
9913
  };
9516
9914
  };
9517
- } & {
9518
- finance: {
9519
- overview: {
9520
- get: {
9521
- body: {};
9522
- params: {};
9523
- query: {
9524
- quoteAsset?: string | undefined;
9525
- };
9526
- headers: {};
9527
- response: {
9528
- 200: {
9529
- quoteAsset: string;
9530
- overview: {
9531
- totalValuation: string;
9532
- };
9533
- walletView: {
9534
- isActive: boolean;
9535
- walletTypeId: string;
9536
- isPrimary: boolean;
9537
- totalValuation: string;
9538
- walletId: string;
9539
- walletTypeKey: string;
9540
- walletName: string;
9541
- walletTypeName: string;
9542
- }[];
9543
- accountView: {
9544
- status: string;
9545
- assetId: string;
9546
- ledgerAccountTypeId: string;
9547
- assetCode: string;
9548
- ledgerAccountId: string;
9549
- totalValuation: string;
9550
- assetName: string;
9551
- quantity: string;
9552
- ledgerAccountTypeKey: string;
9553
- ledgerAccountTypeName: string;
9554
- }[];
9555
- assetView: {
9556
- iconUrl: string;
9557
- assetId: string;
9558
- assetCode: string;
9559
- totalValuation: string;
9560
- assetName: string;
9561
- quantity: string;
9562
- }[];
9563
- };
9564
- 422: {
9565
- type: "validation";
9566
- on: string;
9567
- summary?: string;
9568
- message?: string;
9569
- found?: unknown;
9570
- property?: string;
9571
- expected?: string;
9572
- };
9573
- 401: "Unauthorized";
9574
- };
9575
- };
9576
- };
9577
- };
9578
9915
  } & {
9579
9916
  wallets: {
9580
9917
  ":walletId": {
@@ -9617,10 +9954,10 @@ declare const app: Elysia<"/api", {
9617
9954
  assetCode: string;
9618
9955
  ledgerAccountId: string;
9619
9956
  totalValuation: string;
9620
- assetName: string;
9621
9957
  quantity: string;
9622
9958
  ledgerAccountTypeKey: string;
9623
9959
  ledgerAccountTypeName: string;
9960
+ assetName: string;
9624
9961
  }[];
9625
9962
  };
9626
9963
  422: {
@@ -9702,59 +10039,50 @@ declare const app: Elysia<"/api", {
9702
10039
  };
9703
10040
  };
9704
10041
  };
9705
- };
9706
- } & {
9707
- api: {
9708
- ledger_accounts: {};
9709
10042
  } & {
9710
- ledger_accounts: {
9711
- ":id": {
9712
- overview: {
9713
- get: {
9714
- body: {};
9715
- params: {
10043
+ ledger_account_types: {
10044
+ ":key": {
10045
+ get: {
10046
+ body: {};
10047
+ params: {
10048
+ key: string;
10049
+ };
10050
+ query: {};
10051
+ headers: {};
10052
+ response: {
10053
+ 200: {
9716
10054
  id: string;
10055
+ name: string;
10056
+ description: string | null;
10057
+ key: string;
10058
+ isActive: boolean;
10059
+ allowDeposit: boolean;
10060
+ allowWithdraw: boolean;
10061
+ minWithdrawAmount: string;
10062
+ maxWithdrawAmount: string;
10063
+ allowTransfer: boolean;
10064
+ minTransferAmount: string;
10065
+ maxTransferAmount: string;
10066
+ allowInternalTransfer: boolean;
10067
+ allowInternalReceiveTransfer: boolean;
10068
+ minInternalTransferAmount: string;
10069
+ maxInternalTransferAmount: string;
10070
+ internalTransferRatio: string;
10071
+ allowTransaction: boolean;
10072
+ hasExpiry: boolean;
10073
+ expiryDays: number | null;
10074
+ sortOrder: number;
9717
10075
  };
9718
- query: {
9719
- quoteAsset?: string | undefined;
9720
- };
9721
- headers: {};
9722
- response: {
9723
- 200: {
9724
- quoteAsset: string;
9725
- ledgerAccountType: {
9726
- id: string;
9727
- name: string;
9728
- description: string | null;
9729
- key: string;
9730
- };
9731
- ledgerAccount: {
9732
- id: string;
9733
- createdAt: Date;
9734
- updatedAt: Date;
9735
- userId: string;
9736
- status: "active" | "frozen" | "disabled";
9737
- assetId: string;
9738
- ledgerAccountTypeId: string;
9739
- available: string;
9740
- locked: string;
9741
- version: number;
9742
- };
9743
- overview: {
9744
- totalValuation: string;
9745
- };
9746
- };
9747
- 422: {
9748
- type: "validation";
9749
- on: string;
9750
- summary?: string;
9751
- message?: string;
9752
- found?: unknown;
9753
- property?: string;
9754
- expected?: string;
9755
- };
9756
- 401: "Unauthorized";
10076
+ 422: {
10077
+ type: "validation";
10078
+ on: string;
10079
+ summary?: string;
10080
+ message?: string;
10081
+ found?: unknown;
10082
+ property?: string;
10083
+ expected?: string;
9757
10084
  };
10085
+ 401: "Unauthorized";
9758
10086
  };
9759
10087
  };
9760
10088
  };
@@ -11131,6 +11459,79 @@ declare const app: Elysia<"/api", {
11131
11459
  } & {
11132
11460
  api: {
11133
11461
  withdraw: {};
11462
+ } & {
11463
+ withdraw: {
11464
+ direct_cny_account: {
11465
+ get: {
11466
+ body: {};
11467
+ params: {};
11468
+ query: {};
11469
+ headers: {};
11470
+ response: {
11471
+ 200: {
11472
+ id: string;
11473
+ createdAt: Date;
11474
+ updatedAt: Date;
11475
+ userId: string;
11476
+ status: "active" | "frozen" | "disabled";
11477
+ asset: {
11478
+ symbol: string;
11479
+ id: string;
11480
+ name: string;
11481
+ createdAt: Date;
11482
+ updatedAt: Date;
11483
+ code: string;
11484
+ iconUrl: string;
11485
+ category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
11486
+ isActive: boolean;
11487
+ typeId: string;
11488
+ precision: number;
11489
+ };
11490
+ assetId: string;
11491
+ ledgerAccountTypeId: string;
11492
+ available: string;
11493
+ locked: string;
11494
+ version: number;
11495
+ ledgerAccountType: {
11496
+ id: string;
11497
+ name: string;
11498
+ createdAt: Date;
11499
+ updatedAt: Date;
11500
+ description: string | null;
11501
+ key: string;
11502
+ isActive: boolean;
11503
+ allowDeposit: boolean;
11504
+ allowWithdraw: boolean;
11505
+ minWithdrawAmount: string;
11506
+ maxWithdrawAmount: string;
11507
+ allowTransfer: boolean;
11508
+ minTransferAmount: string;
11509
+ maxTransferAmount: string;
11510
+ allowInternalTransfer: boolean;
11511
+ allowInternalReceiveTransfer: boolean;
11512
+ minInternalTransferAmount: string;
11513
+ maxInternalTransferAmount: string;
11514
+ internalTransferRatio: string;
11515
+ allowTransaction: boolean;
11516
+ hasExpiry: boolean;
11517
+ expiryDays: number | null;
11518
+ sortOrder: number;
11519
+ };
11520
+ };
11521
+ 422: {
11522
+ type: "validation";
11523
+ on: string;
11524
+ summary?: string;
11525
+ message?: string;
11526
+ found?: unknown;
11527
+ property?: string;
11528
+ expected?: string;
11529
+ };
11530
+ 401: "Unauthorized";
11531
+ };
11532
+ };
11533
+ };
11534
+ };
11134
11535
  } & {
11135
11536
  withdraw: {
11136
11537
  ledger_account: {
@@ -12836,8 +13237,12 @@ declare const app: Elysia<"/api", {
12836
13237
  updatedAt: Date;
12837
13238
  description: string | null;
12838
13239
  status: "active" | "draft" | "paused" | "ended";
13240
+ coverImageUrl: string | null;
12839
13241
  rightsAssetId: string;
12840
13242
  pricingAssetId: string;
13243
+ sourcePricingAccountTypeId: string;
13244
+ dailyPayoutAccountTypeId: string;
13245
+ maturitySettlementAccountTypeId: string;
12841
13246
  pricePerShare: string;
12842
13247
  rightsPerShare: string;
12843
13248
  cycleDays: number;
@@ -12889,8 +13294,12 @@ declare const app: Elysia<"/api", {
12889
13294
  updatedAt: Date;
12890
13295
  description: string | null;
12891
13296
  status: "active" | "draft" | "paused" | "ended";
13297
+ coverImageUrl: string | null;
12892
13298
  rightsAssetId: string;
12893
13299
  pricingAssetId: string;
13300
+ sourcePricingAccountTypeId: string;
13301
+ dailyPayoutAccountTypeId: string;
13302
+ maturitySettlementAccountTypeId: string;
12894
13303
  pricePerShare: string;
12895
13304
  rightsPerShare: string;
12896
13305
  cycleDays: number;
@@ -12923,8 +13332,6 @@ declare const app: Elysia<"/api", {
12923
13332
  body: {
12924
13333
  idempotencyKey: string;
12925
13334
  planId: string;
12926
- sourcePricingAccountId: string;
12927
- rightsReceiveAccountId: string;
12928
13335
  shares: number;
12929
13336
  };
12930
13337
  params: {};
@@ -12941,7 +13348,8 @@ declare const app: Elysia<"/api", {
12941
13348
  orderNo: string;
12942
13349
  planId: string;
12943
13350
  sourcePricingAccountId: string;
12944
- rightsReceiveAccountId: string;
13351
+ dailyPayoutReceiveAccountId: string;
13352
+ maturitySettlementReceiveAccountId: string;
12945
13353
  shares: number;
12946
13354
  totalPricingAmount: string;
12947
13355
  totalRightsPrincipal: string;
@@ -12998,7 +13406,8 @@ declare const app: Elysia<"/api", {
12998
13406
  orderNo: string;
12999
13407
  planId: string;
13000
13408
  sourcePricingAccountId: string;
13001
- rightsReceiveAccountId: string;
13409
+ dailyPayoutReceiveAccountId: string;
13410
+ maturitySettlementReceiveAccountId: string;
13002
13411
  shares: number;
13003
13412
  totalPricingAmount: string;
13004
13413
  totalRightsPrincipal: string;
@@ -13058,7 +13467,8 @@ declare const app: Elysia<"/api", {
13058
13467
  orderNo: string;
13059
13468
  planId: string;
13060
13469
  sourcePricingAccountId: string;
13061
- rightsReceiveAccountId: string;
13470
+ dailyPayoutReceiveAccountId: string;
13471
+ maturitySettlementReceiveAccountId: string;
13062
13472
  shares: number;
13063
13473
  totalPricingAmount: string;
13064
13474
  totalRightsPrincipal: string;