@r2wa-org/eden 0.0.51 → 0.0.54
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.
- package/dist/src/admin/index.d.ts +1863 -589
- package/dist/src/asset-convert-product/admin/dto.schemas.d.ts +658 -0
- package/dist/src/asset-convert-product/admin/router.d.ts +803 -0
- package/dist/src/asset-convert-product/admin/service.d.ts +125 -0
- package/dist/src/asset-convert-product/db.schemas.d.ts +1134 -0
- package/dist/src/asset-convert-product/errors/index.d.ts +19 -0
- package/dist/src/asset-convert-product/errors/locales/zh.d.ts +18 -0
- package/dist/src/asset-convert-product/index.d.ts +8 -0
- package/dist/src/asset-convert-product/internal/service.d.ts +66 -0
- package/dist/src/asset-convert-product/permissions.d.ts +5 -0
- package/dist/src/asset-convert-product/schema.d.ts +619 -0
- package/dist/src/asset-convert-product/user/dto.schemas.d.ts +1000 -0
- package/dist/src/asset-convert-product/user/router.d.ts +683 -0
- package/dist/src/asset-convert-product/user/service.d.ts +120 -0
- package/dist/src/auth/better-auth.d.ts +59 -3
- package/dist/src/auth/permissions.d.ts +41 -1
- package/dist/src/auth/roles.d.ts +120 -0
- package/dist/src/cron/index.d.ts +13 -1
- package/dist/src/db/schemas.d.ts +4 -0
- package/dist/src/deposit/admin/dto.schemas.d.ts +6 -6
- package/dist/src/deposit/user/dto.schemas.d.ts +6 -6
- package/dist/src/file-storage/admin/dto.schemas.d.ts +6 -6
- package/dist/src/index.d.ts +2811 -845
- package/dist/src/ledger/admin/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/admin/router.d.ts +2 -2
- package/dist/src/ledger/admin/service.d.ts +2 -2
- package/dist/src/ledger/db.schemas.d.ts +8 -8
- package/dist/src/ledger/internal/service.d.ts +2 -2
- package/dist/src/ledger/schema.d.ts +6 -6
- package/dist/src/ledger/user/dto.schemas.d.ts +8 -8
- package/dist/src/ledger/user/router.d.ts +2 -2
- package/dist/src/ledger/user/service.d.ts +2 -2
- package/dist/src/ledger-account-import/admin/dto.schemas.d.ts +6 -6
- package/dist/src/ledger-account-import/admin/router.d.ts +9 -9
- package/dist/src/ledger-account-import/admin/service.d.ts +7 -7
- package/dist/src/ledger-account-import/db.schemas.d.ts +4 -4
- package/dist/src/ledger-account-import/schema.d.ts +2 -2
- package/dist/src/ledger-account-transfer/user/router.d.ts +1 -1
- package/dist/src/market-data/admin/dto.schemas.d.ts +291 -0
- package/dist/src/market-data/admin/router.d.ts +609 -0
- package/dist/src/market-data/admin/service.d.ts +52 -0
- package/dist/src/market-data/cron.d.ts +57 -0
- package/dist/src/market-data/db.schemas.d.ts +516 -0
- package/dist/src/market-data/errors/index.d.ts +12 -0
- package/dist/src/market-data/errors/locales/zh.d.ts +11 -0
- package/dist/src/market-data/index.d.ts +8 -0
- package/dist/src/market-data/internal/service.d.ts +77 -0
- package/dist/src/market-data/permissions.d.ts +6 -0
- package/dist/src/market-data/schema.d.ts +270 -0
- package/dist/src/market-data/user/dto.schemas.d.ts +289 -0
- package/dist/src/market-data/user/router.d.ts +521 -0
- package/dist/src/market-data/user/service.d.ts +30 -0
- package/dist/src/market-pricing/admin/dto.schemas.d.ts +322 -0
- package/dist/src/market-pricing/admin/router.d.ts +835 -0
- package/dist/src/market-pricing/admin/service.d.ts +129 -0
- package/dist/src/market-pricing/cron.d.ts +57 -0
- package/dist/src/market-pricing/db.schemas.d.ts +828 -0
- package/dist/src/market-pricing/errors/index.d.ts +14 -0
- package/dist/src/market-pricing/errors/locales/zh.d.ts +13 -0
- package/dist/src/market-pricing/internal/service.d.ts +35 -0
- package/dist/src/market-pricing/permissions.d.ts +4 -0
- package/dist/src/market-pricing/schema.d.ts +434 -0
- package/dist/src/news/admin/dto.schemas.d.ts +6 -6
- package/dist/src/news/user/dto.schemas.d.ts +12 -12
- package/dist/src/notification/admin/dto.schemas.d.ts +8 -8
- package/dist/src/notification/user/dto.schemas.d.ts +8 -8
- package/dist/src/trade-market/admin/dto.schemas.d.ts +762 -0
- package/dist/src/trade-market/admin/router.d.ts +851 -0
- package/dist/src/trade-market/admin/service.d.ts +158 -0
- package/dist/src/trade-market/db.schemas.d.ts +1338 -0
- package/dist/src/trade-market/errors/index.d.ts +22 -0
- package/dist/src/trade-market/errors/locales/zh.d.ts +21 -0
- package/dist/src/trade-market/index.d.ts +8 -0
- package/dist/src/trade-market/internal/service.d.ts +239 -0
- package/dist/src/trade-market/permissions.d.ts +5 -0
- package/dist/src/trade-market/schema.d.ts +708 -0
- package/dist/src/trade-market/user/dto.schemas.d.ts +1394 -0
- package/dist/src/trade-market/user/router.d.ts +754 -0
- package/dist/src/trade-market/user/service.d.ts +147 -0
- package/dist/src/transfer/user/router.d.ts +1 -1
- package/dist/src/user-kyc/admin/dto.schemas.d.ts +1 -1
- package/dist/src/wallet/admin/dto.schemas.d.ts +3 -3
- package/dist/src/wallet/user/dto.schemas.d.ts +2 -2
- package/dist/src/welfare-cycle/admin/dto.schemas.d.ts +7 -7
- package/dist/src/welfare-cycle/admin/router.d.ts +4 -4
- package/dist/src/welfare-cycle/admin/service.d.ts +2 -2
- package/dist/src/welfare-cycle/cron.d.ts +58 -0
- package/dist/src/welfare-cycle/db.schemas.d.ts +4 -4
- package/dist/src/welfare-cycle/internal/service.d.ts +2 -2
- package/dist/src/welfare-cycle/schema.d.ts +2 -2
- package/dist/src/welfare-cycle/user/dto.schemas.d.ts +3 -3
- package/dist/src/welfare-cycle/user/router.d.ts +3 -3
- package/dist/src/welfare-cycle/user/service.d.ts +2 -2
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -1408,6 +1408,353 @@ declare const app: Elysia<"/api", {
|
|
|
1408
1408
|
};
|
|
1409
1409
|
};
|
|
1410
1410
|
};
|
|
1411
|
+
} & {
|
|
1412
|
+
admin: {
|
|
1413
|
+
asset_convert_product: {};
|
|
1414
|
+
} & {
|
|
1415
|
+
asset_convert_product: {
|
|
1416
|
+
products: {
|
|
1417
|
+
post: {
|
|
1418
|
+
body: {
|
|
1419
|
+
description?: string | null | undefined;
|
|
1420
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1421
|
+
name: string;
|
|
1422
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1423
|
+
targetAssetId: string;
|
|
1424
|
+
payAssetId: string;
|
|
1425
|
+
defaultReceiveAccountTypeId: string;
|
|
1426
|
+
minPayAmount: string;
|
|
1427
|
+
};
|
|
1428
|
+
params: {};
|
|
1429
|
+
query: unknown;
|
|
1430
|
+
headers: unknown;
|
|
1431
|
+
response: {
|
|
1432
|
+
200: {
|
|
1433
|
+
id: string;
|
|
1434
|
+
name: string;
|
|
1435
|
+
createdAt: Date;
|
|
1436
|
+
updatedAt: Date;
|
|
1437
|
+
description: string | null;
|
|
1438
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1439
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1440
|
+
targetAssetId: string;
|
|
1441
|
+
payAssetId: string;
|
|
1442
|
+
defaultReceiveAccountTypeId: string;
|
|
1443
|
+
minPayAmount: string;
|
|
1444
|
+
};
|
|
1445
|
+
422: {
|
|
1446
|
+
type: "validation";
|
|
1447
|
+
on: string;
|
|
1448
|
+
summary?: string;
|
|
1449
|
+
message?: string;
|
|
1450
|
+
found?: unknown;
|
|
1451
|
+
property?: string;
|
|
1452
|
+
expected?: string;
|
|
1453
|
+
};
|
|
1454
|
+
401: "Unauthorized";
|
|
1455
|
+
403: "Forbidden: Admins only";
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
} & {
|
|
1461
|
+
asset_convert_product: {
|
|
1462
|
+
products: {
|
|
1463
|
+
":id": {
|
|
1464
|
+
patch: {
|
|
1465
|
+
body: {
|
|
1466
|
+
name?: string | undefined;
|
|
1467
|
+
description?: string | null | undefined;
|
|
1468
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1469
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
1470
|
+
targetAssetId?: string | undefined;
|
|
1471
|
+
payAssetId?: string | undefined;
|
|
1472
|
+
defaultReceiveAccountTypeId?: string | undefined;
|
|
1473
|
+
minPayAmount?: string | undefined;
|
|
1474
|
+
};
|
|
1475
|
+
params: {
|
|
1476
|
+
id: string;
|
|
1477
|
+
};
|
|
1478
|
+
query: unknown;
|
|
1479
|
+
headers: unknown;
|
|
1480
|
+
response: {
|
|
1481
|
+
200: {
|
|
1482
|
+
createdAt: Date;
|
|
1483
|
+
updatedAt: Date;
|
|
1484
|
+
id: string;
|
|
1485
|
+
name: string;
|
|
1486
|
+
description: string | null;
|
|
1487
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1488
|
+
targetAssetId: string;
|
|
1489
|
+
payAssetId: string;
|
|
1490
|
+
defaultReceiveAccountTypeId: string;
|
|
1491
|
+
minPayAmount: string;
|
|
1492
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1493
|
+
};
|
|
1494
|
+
422: {
|
|
1495
|
+
type: "validation";
|
|
1496
|
+
on: string;
|
|
1497
|
+
summary?: string;
|
|
1498
|
+
message?: string;
|
|
1499
|
+
found?: unknown;
|
|
1500
|
+
property?: string;
|
|
1501
|
+
expected?: string;
|
|
1502
|
+
};
|
|
1503
|
+
401: "Unauthorized";
|
|
1504
|
+
403: "Forbidden: Admins only";
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
};
|
|
1510
|
+
} & {
|
|
1511
|
+
asset_convert_product: {
|
|
1512
|
+
products: {
|
|
1513
|
+
":id": {
|
|
1514
|
+
activate: {
|
|
1515
|
+
post: {
|
|
1516
|
+
body: unknown;
|
|
1517
|
+
params: {
|
|
1518
|
+
id: string;
|
|
1519
|
+
};
|
|
1520
|
+
query: unknown;
|
|
1521
|
+
headers: unknown;
|
|
1522
|
+
response: {
|
|
1523
|
+
200: {
|
|
1524
|
+
createdAt: Date;
|
|
1525
|
+
updatedAt: Date;
|
|
1526
|
+
id: string;
|
|
1527
|
+
name: string;
|
|
1528
|
+
description: string | null;
|
|
1529
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1530
|
+
targetAssetId: string;
|
|
1531
|
+
payAssetId: string;
|
|
1532
|
+
defaultReceiveAccountTypeId: string;
|
|
1533
|
+
minPayAmount: string;
|
|
1534
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1535
|
+
};
|
|
1536
|
+
422: {
|
|
1537
|
+
type: "validation";
|
|
1538
|
+
on: string;
|
|
1539
|
+
summary?: string;
|
|
1540
|
+
message?: string;
|
|
1541
|
+
found?: unknown;
|
|
1542
|
+
property?: string;
|
|
1543
|
+
expected?: string;
|
|
1544
|
+
};
|
|
1545
|
+
401: "Unauthorized";
|
|
1546
|
+
403: "Forbidden: Admins only";
|
|
1547
|
+
};
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
};
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
} & {
|
|
1554
|
+
asset_convert_product: {
|
|
1555
|
+
products: {
|
|
1556
|
+
":id": {
|
|
1557
|
+
pause: {
|
|
1558
|
+
post: {
|
|
1559
|
+
body: unknown;
|
|
1560
|
+
params: {
|
|
1561
|
+
id: string;
|
|
1562
|
+
};
|
|
1563
|
+
query: unknown;
|
|
1564
|
+
headers: unknown;
|
|
1565
|
+
response: {
|
|
1566
|
+
200: {
|
|
1567
|
+
createdAt: Date;
|
|
1568
|
+
updatedAt: Date;
|
|
1569
|
+
id: string;
|
|
1570
|
+
name: string;
|
|
1571
|
+
description: string | null;
|
|
1572
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1573
|
+
targetAssetId: string;
|
|
1574
|
+
payAssetId: string;
|
|
1575
|
+
defaultReceiveAccountTypeId: string;
|
|
1576
|
+
minPayAmount: string;
|
|
1577
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1578
|
+
};
|
|
1579
|
+
422: {
|
|
1580
|
+
type: "validation";
|
|
1581
|
+
on: string;
|
|
1582
|
+
summary?: string;
|
|
1583
|
+
message?: string;
|
|
1584
|
+
found?: unknown;
|
|
1585
|
+
property?: string;
|
|
1586
|
+
expected?: string;
|
|
1587
|
+
};
|
|
1588
|
+
401: "Unauthorized";
|
|
1589
|
+
403: "Forbidden: Admins only";
|
|
1590
|
+
};
|
|
1591
|
+
};
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
};
|
|
1595
|
+
};
|
|
1596
|
+
} & {
|
|
1597
|
+
asset_convert_product: {
|
|
1598
|
+
products: {
|
|
1599
|
+
":id": {
|
|
1600
|
+
end: {
|
|
1601
|
+
post: {
|
|
1602
|
+
body: unknown;
|
|
1603
|
+
params: {
|
|
1604
|
+
id: string;
|
|
1605
|
+
};
|
|
1606
|
+
query: unknown;
|
|
1607
|
+
headers: unknown;
|
|
1608
|
+
response: {
|
|
1609
|
+
200: {
|
|
1610
|
+
createdAt: Date;
|
|
1611
|
+
updatedAt: Date;
|
|
1612
|
+
id: string;
|
|
1613
|
+
name: string;
|
|
1614
|
+
description: string | null;
|
|
1615
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1616
|
+
targetAssetId: string;
|
|
1617
|
+
payAssetId: string;
|
|
1618
|
+
defaultReceiveAccountTypeId: string;
|
|
1619
|
+
minPayAmount: string;
|
|
1620
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1621
|
+
};
|
|
1622
|
+
422: {
|
|
1623
|
+
type: "validation";
|
|
1624
|
+
on: string;
|
|
1625
|
+
summary?: string;
|
|
1626
|
+
message?: string;
|
|
1627
|
+
found?: unknown;
|
|
1628
|
+
property?: string;
|
|
1629
|
+
expected?: string;
|
|
1630
|
+
};
|
|
1631
|
+
401: "Unauthorized";
|
|
1632
|
+
403: "Forbidden: Admins only";
|
|
1633
|
+
};
|
|
1634
|
+
};
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
} & {
|
|
1640
|
+
asset_convert_product: {
|
|
1641
|
+
products: {
|
|
1642
|
+
get: {
|
|
1643
|
+
body: unknown;
|
|
1644
|
+
params: {};
|
|
1645
|
+
query: {
|
|
1646
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
1647
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
1648
|
+
limit?: number | undefined;
|
|
1649
|
+
offset?: number | undefined;
|
|
1650
|
+
pageSize?: number | undefined;
|
|
1651
|
+
pageIndex?: number | undefined;
|
|
1652
|
+
};
|
|
1653
|
+
headers: unknown;
|
|
1654
|
+
response: {
|
|
1655
|
+
200: {
|
|
1656
|
+
data: {
|
|
1657
|
+
id: string;
|
|
1658
|
+
name: string;
|
|
1659
|
+
createdAt: Date;
|
|
1660
|
+
updatedAt: Date;
|
|
1661
|
+
description: string | null;
|
|
1662
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
1663
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
1664
|
+
targetAssetId: string;
|
|
1665
|
+
payAssetId: string;
|
|
1666
|
+
defaultReceiveAccountTypeId: string;
|
|
1667
|
+
minPayAmount: string;
|
|
1668
|
+
}[];
|
|
1669
|
+
pagination: {
|
|
1670
|
+
total: number;
|
|
1671
|
+
pageSize: number;
|
|
1672
|
+
pageIndex: number;
|
|
1673
|
+
totalPages: number;
|
|
1674
|
+
hasNextPage: boolean;
|
|
1675
|
+
};
|
|
1676
|
+
};
|
|
1677
|
+
422: {
|
|
1678
|
+
type: "validation";
|
|
1679
|
+
on: string;
|
|
1680
|
+
summary?: string;
|
|
1681
|
+
message?: string;
|
|
1682
|
+
found?: unknown;
|
|
1683
|
+
property?: string;
|
|
1684
|
+
expected?: string;
|
|
1685
|
+
};
|
|
1686
|
+
401: "Unauthorized";
|
|
1687
|
+
403: "Forbidden: Admins only";
|
|
1688
|
+
};
|
|
1689
|
+
};
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
} & {
|
|
1693
|
+
asset_convert_product: {
|
|
1694
|
+
orders: {
|
|
1695
|
+
get: {
|
|
1696
|
+
body: unknown;
|
|
1697
|
+
params: {};
|
|
1698
|
+
query: {
|
|
1699
|
+
userId?: string | undefined;
|
|
1700
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
1701
|
+
productId?: string | undefined;
|
|
1702
|
+
limit?: number | undefined;
|
|
1703
|
+
offset?: number | undefined;
|
|
1704
|
+
pageSize?: number | undefined;
|
|
1705
|
+
pageIndex?: number | undefined;
|
|
1706
|
+
};
|
|
1707
|
+
headers: unknown;
|
|
1708
|
+
response: {
|
|
1709
|
+
200: {
|
|
1710
|
+
data: {
|
|
1711
|
+
id: string;
|
|
1712
|
+
createdAt: Date;
|
|
1713
|
+
updatedAt: Date;
|
|
1714
|
+
userId: string;
|
|
1715
|
+
status: "created" | "completed" | "failed";
|
|
1716
|
+
idempotencyKey: string;
|
|
1717
|
+
orderNo: string;
|
|
1718
|
+
productId: string;
|
|
1719
|
+
payAssetIdSnapshot: string;
|
|
1720
|
+
targetAssetIdSnapshot: string;
|
|
1721
|
+
quoteAssetIdSnapshot: string;
|
|
1722
|
+
priceSnapshot: string;
|
|
1723
|
+
priceEffectiveAtSnapshot: Date;
|
|
1724
|
+
payAmount: string;
|
|
1725
|
+
sourcePayAccountId: string;
|
|
1726
|
+
targetAmount: string;
|
|
1727
|
+
settlementModeSnapshot: "available" | "locked";
|
|
1728
|
+
receiveAccountId: string;
|
|
1729
|
+
debitLedgerEntryId: string | null;
|
|
1730
|
+
creditLedgerEntryId: string | null;
|
|
1731
|
+
failureCode: string | null;
|
|
1732
|
+
failureReason: string | null;
|
|
1733
|
+
}[];
|
|
1734
|
+
pagination: {
|
|
1735
|
+
total: number;
|
|
1736
|
+
pageSize: number;
|
|
1737
|
+
pageIndex: number;
|
|
1738
|
+
totalPages: number;
|
|
1739
|
+
hasNextPage: boolean;
|
|
1740
|
+
};
|
|
1741
|
+
};
|
|
1742
|
+
422: {
|
|
1743
|
+
type: "validation";
|
|
1744
|
+
on: string;
|
|
1745
|
+
summary?: string;
|
|
1746
|
+
message?: string;
|
|
1747
|
+
found?: unknown;
|
|
1748
|
+
property?: string;
|
|
1749
|
+
expected?: string;
|
|
1750
|
+
};
|
|
1751
|
+
401: "Unauthorized";
|
|
1752
|
+
403: "Forbidden: Admins only";
|
|
1753
|
+
};
|
|
1754
|
+
};
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1411
1758
|
} & {
|
|
1412
1759
|
admin: {
|
|
1413
1760
|
asset_types: {};
|
|
@@ -2590,35 +2937,285 @@ declare const app: Elysia<"/api", {
|
|
|
2590
2937
|
};
|
|
2591
2938
|
};
|
|
2592
2939
|
} & {
|
|
2593
|
-
bank_account: {
|
|
2594
|
-
banks: {
|
|
2940
|
+
bank_account: {
|
|
2941
|
+
banks: {
|
|
2942
|
+
":id": {
|
|
2943
|
+
patch: {
|
|
2944
|
+
body: {
|
|
2945
|
+
isActive?: boolean | null | undefined;
|
|
2946
|
+
sortOrder?: number | null | undefined;
|
|
2947
|
+
bankCode?: string | undefined;
|
|
2948
|
+
swiftCode?: string | null | undefined;
|
|
2949
|
+
nameCn?: string | undefined;
|
|
2950
|
+
nameEn?: string | undefined;
|
|
2951
|
+
};
|
|
2952
|
+
params: {
|
|
2953
|
+
id: string;
|
|
2954
|
+
};
|
|
2955
|
+
query: {};
|
|
2956
|
+
headers: {};
|
|
2957
|
+
response: {
|
|
2958
|
+
200: {
|
|
2959
|
+
id: string;
|
|
2960
|
+
createdAt: Date;
|
|
2961
|
+
updatedAt: Date;
|
|
2962
|
+
deletedAt: Date | null;
|
|
2963
|
+
isActive: boolean | null;
|
|
2964
|
+
sortOrder: number | null;
|
|
2965
|
+
bankCode: string;
|
|
2966
|
+
swiftCode: string | null;
|
|
2967
|
+
nameCn: string;
|
|
2968
|
+
nameEn: string;
|
|
2969
|
+
};
|
|
2970
|
+
422: {
|
|
2971
|
+
type: "validation";
|
|
2972
|
+
on: string;
|
|
2973
|
+
summary?: string;
|
|
2974
|
+
message?: string;
|
|
2975
|
+
found?: unknown;
|
|
2976
|
+
property?: string;
|
|
2977
|
+
expected?: string;
|
|
2978
|
+
};
|
|
2979
|
+
401: "Unauthorized";
|
|
2980
|
+
403: "Forbidden: Admins only";
|
|
2981
|
+
};
|
|
2982
|
+
};
|
|
2983
|
+
};
|
|
2984
|
+
};
|
|
2985
|
+
};
|
|
2986
|
+
} & {
|
|
2987
|
+
bank_account: {
|
|
2988
|
+
banks: {
|
|
2989
|
+
":id": {
|
|
2990
|
+
delete: {
|
|
2991
|
+
body: {};
|
|
2992
|
+
params: {
|
|
2993
|
+
id: string;
|
|
2994
|
+
};
|
|
2995
|
+
query: {};
|
|
2996
|
+
headers: {};
|
|
2997
|
+
response: {
|
|
2998
|
+
200: {
|
|
2999
|
+
success: boolean;
|
|
3000
|
+
};
|
|
3001
|
+
422: {
|
|
3002
|
+
type: "validation";
|
|
3003
|
+
on: string;
|
|
3004
|
+
summary?: string;
|
|
3005
|
+
message?: string;
|
|
3006
|
+
found?: unknown;
|
|
3007
|
+
property?: string;
|
|
3008
|
+
expected?: string;
|
|
3009
|
+
};
|
|
3010
|
+
401: "Unauthorized";
|
|
3011
|
+
403: "Forbidden: Admins only";
|
|
3012
|
+
};
|
|
3013
|
+
};
|
|
3014
|
+
};
|
|
3015
|
+
};
|
|
3016
|
+
};
|
|
3017
|
+
};
|
|
3018
|
+
} & {
|
|
3019
|
+
admin: {
|
|
3020
|
+
checkIns: {};
|
|
3021
|
+
} & {
|
|
3022
|
+
checkIns: {
|
|
3023
|
+
get: {
|
|
3024
|
+
body: unknown;
|
|
3025
|
+
params: {};
|
|
3026
|
+
query: {
|
|
3027
|
+
userId?: string | undefined;
|
|
3028
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
3029
|
+
startDate?: Date | undefined;
|
|
3030
|
+
limit?: number | undefined;
|
|
3031
|
+
offset?: number | undefined;
|
|
3032
|
+
pageSize?: number | undefined;
|
|
3033
|
+
pageIndex?: number | undefined;
|
|
3034
|
+
endDate?: Date | undefined;
|
|
3035
|
+
};
|
|
3036
|
+
headers: unknown;
|
|
3037
|
+
response: {
|
|
3038
|
+
200: {
|
|
3039
|
+
data: {
|
|
3040
|
+
user: {
|
|
3041
|
+
email: string;
|
|
3042
|
+
id: string;
|
|
3043
|
+
name: string;
|
|
3044
|
+
emailVerified: boolean;
|
|
3045
|
+
image: string | null;
|
|
3046
|
+
createdAt: Date;
|
|
3047
|
+
updatedAt: Date;
|
|
3048
|
+
twoFactorEnabled: boolean | null;
|
|
3049
|
+
username: string | null;
|
|
3050
|
+
displayUsername: string | null;
|
|
3051
|
+
isAnonymous: boolean | null;
|
|
3052
|
+
phoneNumber: string | null;
|
|
3053
|
+
phoneNumberVerified: boolean | null;
|
|
3054
|
+
role: string | null;
|
|
3055
|
+
banned: boolean | null;
|
|
3056
|
+
banReason: string | null;
|
|
3057
|
+
banExpires: Date | null;
|
|
3058
|
+
};
|
|
3059
|
+
id: string;
|
|
3060
|
+
createdAt: Date;
|
|
3061
|
+
updatedAt: Date;
|
|
3062
|
+
userId: string;
|
|
3063
|
+
checkInType: "app" | "meeting";
|
|
3064
|
+
checkInAt: Date;
|
|
3065
|
+
checkInTimezone: string | null;
|
|
3066
|
+
checkInOffsetMinutes: number | null;
|
|
3067
|
+
checkInLocalDate: string | null;
|
|
3068
|
+
}[];
|
|
3069
|
+
pagination: {
|
|
3070
|
+
total: number;
|
|
3071
|
+
pageSize: number;
|
|
3072
|
+
pageIndex: number;
|
|
3073
|
+
totalPages: number;
|
|
3074
|
+
hasNextPage: boolean;
|
|
3075
|
+
};
|
|
3076
|
+
};
|
|
3077
|
+
422: {
|
|
3078
|
+
type: "validation";
|
|
3079
|
+
on: string;
|
|
3080
|
+
summary?: string;
|
|
3081
|
+
message?: string;
|
|
3082
|
+
found?: unknown;
|
|
3083
|
+
property?: string;
|
|
3084
|
+
expected?: string;
|
|
3085
|
+
};
|
|
3086
|
+
401: "Unauthorized";
|
|
3087
|
+
403: "Forbidden: Admins only";
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
};
|
|
3091
|
+
};
|
|
3092
|
+
} & {
|
|
3093
|
+
admin: {
|
|
3094
|
+
ledger_account_import: {};
|
|
3095
|
+
} & {
|
|
3096
|
+
ledger_account_import: {
|
|
3097
|
+
jobs: {
|
|
3098
|
+
post: {
|
|
3099
|
+
body: {
|
|
3100
|
+
fileId: string;
|
|
3101
|
+
};
|
|
3102
|
+
params: {};
|
|
3103
|
+
query: unknown;
|
|
3104
|
+
headers: unknown;
|
|
3105
|
+
response: {
|
|
3106
|
+
200: {
|
|
3107
|
+
error: string | null;
|
|
3108
|
+
id: string;
|
|
3109
|
+
createdAt: Date;
|
|
3110
|
+
updatedAt: Date;
|
|
3111
|
+
status: "pending" | "failed" | "running" | "success";
|
|
3112
|
+
failed: number;
|
|
3113
|
+
success: number;
|
|
3114
|
+
ignored: number;
|
|
3115
|
+
fileId: string;
|
|
3116
|
+
total: number;
|
|
3117
|
+
processed: number;
|
|
3118
|
+
createdBy: string;
|
|
3119
|
+
startedAt: Date | null;
|
|
3120
|
+
finishedAt: Date | null;
|
|
3121
|
+
};
|
|
3122
|
+
422: {
|
|
3123
|
+
type: "validation";
|
|
3124
|
+
on: string;
|
|
3125
|
+
summary?: string;
|
|
3126
|
+
message?: string;
|
|
3127
|
+
found?: unknown;
|
|
3128
|
+
property?: string;
|
|
3129
|
+
expected?: string;
|
|
3130
|
+
};
|
|
3131
|
+
401: "Unauthorized";
|
|
3132
|
+
403: "Forbidden: Admins only";
|
|
3133
|
+
};
|
|
3134
|
+
};
|
|
3135
|
+
};
|
|
3136
|
+
};
|
|
3137
|
+
} & {
|
|
3138
|
+
ledger_account_import: {
|
|
3139
|
+
jobs: {
|
|
3140
|
+
get: {
|
|
3141
|
+
body: unknown;
|
|
3142
|
+
params: {};
|
|
3143
|
+
query: {
|
|
3144
|
+
status?: "pending" | "failed" | "running" | "success" | undefined;
|
|
3145
|
+
limit?: number | undefined;
|
|
3146
|
+
offset?: number | undefined;
|
|
3147
|
+
pageSize?: number | undefined;
|
|
3148
|
+
pageIndex?: number | undefined;
|
|
3149
|
+
};
|
|
3150
|
+
headers: unknown;
|
|
3151
|
+
response: {
|
|
3152
|
+
200: {
|
|
3153
|
+
data: {
|
|
3154
|
+
error: string | null;
|
|
3155
|
+
id: string;
|
|
3156
|
+
createdAt: Date;
|
|
3157
|
+
updatedAt: Date;
|
|
3158
|
+
status: "pending" | "failed" | "running" | "success";
|
|
3159
|
+
failed: number;
|
|
3160
|
+
success: number;
|
|
3161
|
+
ignored: number;
|
|
3162
|
+
fileId: string;
|
|
3163
|
+
total: number;
|
|
3164
|
+
processed: number;
|
|
3165
|
+
createdBy: string;
|
|
3166
|
+
startedAt: Date | null;
|
|
3167
|
+
finishedAt: Date | null;
|
|
3168
|
+
}[];
|
|
3169
|
+
pagination: {
|
|
3170
|
+
total: number;
|
|
3171
|
+
pageSize: number;
|
|
3172
|
+
pageIndex: number;
|
|
3173
|
+
totalPages: number;
|
|
3174
|
+
hasNextPage: boolean;
|
|
3175
|
+
};
|
|
3176
|
+
};
|
|
3177
|
+
422: {
|
|
3178
|
+
type: "validation";
|
|
3179
|
+
on: string;
|
|
3180
|
+
summary?: string;
|
|
3181
|
+
message?: string;
|
|
3182
|
+
found?: unknown;
|
|
3183
|
+
property?: string;
|
|
3184
|
+
expected?: string;
|
|
3185
|
+
};
|
|
3186
|
+
401: "Unauthorized";
|
|
3187
|
+
403: "Forbidden: Admins only";
|
|
3188
|
+
};
|
|
3189
|
+
};
|
|
3190
|
+
};
|
|
3191
|
+
};
|
|
3192
|
+
} & {
|
|
3193
|
+
ledger_account_import: {
|
|
3194
|
+
jobs: {
|
|
2595
3195
|
":id": {
|
|
2596
|
-
|
|
2597
|
-
body:
|
|
2598
|
-
isActive?: boolean | null | undefined;
|
|
2599
|
-
sortOrder?: number | null | undefined;
|
|
2600
|
-
bankCode?: string | undefined;
|
|
2601
|
-
swiftCode?: string | null | undefined;
|
|
2602
|
-
nameCn?: string | undefined;
|
|
2603
|
-
nameEn?: string | undefined;
|
|
2604
|
-
};
|
|
3196
|
+
get: {
|
|
3197
|
+
body: unknown;
|
|
2605
3198
|
params: {
|
|
2606
3199
|
id: string;
|
|
2607
3200
|
};
|
|
2608
|
-
query:
|
|
2609
|
-
headers:
|
|
3201
|
+
query: unknown;
|
|
3202
|
+
headers: unknown;
|
|
2610
3203
|
response: {
|
|
2611
3204
|
200: {
|
|
3205
|
+
error: string | null;
|
|
2612
3206
|
id: string;
|
|
2613
3207
|
createdAt: Date;
|
|
2614
3208
|
updatedAt: Date;
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
3209
|
+
status: "pending" | "failed" | "running" | "success";
|
|
3210
|
+
failed: number;
|
|
3211
|
+
success: number;
|
|
3212
|
+
ignored: number;
|
|
3213
|
+
fileId: string;
|
|
3214
|
+
total: number;
|
|
3215
|
+
processed: number;
|
|
3216
|
+
createdBy: string;
|
|
3217
|
+
startedAt: Date | null;
|
|
3218
|
+
finishedAt: Date | null;
|
|
2622
3219
|
};
|
|
2623
3220
|
422: {
|
|
2624
3221
|
type: "validation";
|
|
@@ -2637,32 +3234,94 @@ declare const app: Elysia<"/api", {
|
|
|
2637
3234
|
};
|
|
2638
3235
|
};
|
|
2639
3236
|
} & {
|
|
2640
|
-
|
|
2641
|
-
|
|
3237
|
+
ledger_account_import: {
|
|
3238
|
+
jobs: {
|
|
2642
3239
|
":id": {
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
query: {};
|
|
2649
|
-
headers: {};
|
|
2650
|
-
response: {
|
|
2651
|
-
200: {
|
|
2652
|
-
success: boolean;
|
|
3240
|
+
items: {
|
|
3241
|
+
get: {
|
|
3242
|
+
body: unknown;
|
|
3243
|
+
params: {
|
|
3244
|
+
id: string;
|
|
2653
3245
|
};
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
property?: string;
|
|
2661
|
-
expected?: string;
|
|
3246
|
+
query: {
|
|
3247
|
+
status?: "failed" | "success" | "ignored" | undefined;
|
|
3248
|
+
limit?: number | undefined;
|
|
3249
|
+
offset?: number | undefined;
|
|
3250
|
+
pageSize?: number | undefined;
|
|
3251
|
+
pageIndex?: number | undefined;
|
|
2662
3252
|
};
|
|
2663
|
-
|
|
2664
|
-
|
|
3253
|
+
headers: unknown;
|
|
3254
|
+
response: {
|
|
3255
|
+
200: {
|
|
3256
|
+
data: {
|
|
3257
|
+
error: string | null;
|
|
3258
|
+
id: string;
|
|
3259
|
+
createdAt: Date;
|
|
3260
|
+
updatedAt: Date;
|
|
3261
|
+
phoneNumber: string | null;
|
|
3262
|
+
userId: string | null;
|
|
3263
|
+
status: "failed" | "success" | "ignored";
|
|
3264
|
+
assetId: string | null;
|
|
3265
|
+
ledgerAccountTypeId: string | null;
|
|
3266
|
+
amount: string | null;
|
|
3267
|
+
referenceId: string | null;
|
|
3268
|
+
memo: string | null;
|
|
3269
|
+
jobId: string;
|
|
3270
|
+
rowNumber: number;
|
|
3271
|
+
assetCode: string | null;
|
|
3272
|
+
assetCodeRaw: string | null;
|
|
3273
|
+
accountTypeKey: string | null;
|
|
3274
|
+
accountTypeKeyRaw: string | null;
|
|
3275
|
+
ledgerAccountId: string | null;
|
|
3276
|
+
ledgerEntryId: string | null;
|
|
3277
|
+
isIdempotent: boolean;
|
|
3278
|
+
}[];
|
|
3279
|
+
pagination: {
|
|
3280
|
+
total: number;
|
|
3281
|
+
pageSize: number;
|
|
3282
|
+
pageIndex: number;
|
|
3283
|
+
totalPages: number;
|
|
3284
|
+
hasNextPage: boolean;
|
|
3285
|
+
};
|
|
3286
|
+
};
|
|
3287
|
+
422: {
|
|
3288
|
+
type: "validation";
|
|
3289
|
+
on: string;
|
|
3290
|
+
summary?: string;
|
|
3291
|
+
message?: string;
|
|
3292
|
+
found?: unknown;
|
|
3293
|
+
property?: string;
|
|
3294
|
+
expected?: string;
|
|
3295
|
+
};
|
|
3296
|
+
401: "Unauthorized";
|
|
3297
|
+
403: "Forbidden: Admins only";
|
|
3298
|
+
};
|
|
3299
|
+
};
|
|
3300
|
+
};
|
|
3301
|
+
};
|
|
3302
|
+
};
|
|
3303
|
+
};
|
|
3304
|
+
} & {
|
|
3305
|
+
ledger_account_import: {
|
|
3306
|
+
template: {
|
|
3307
|
+
get: {
|
|
3308
|
+
body: unknown;
|
|
3309
|
+
params: {};
|
|
3310
|
+
query: unknown;
|
|
3311
|
+
headers: unknown;
|
|
3312
|
+
response: {
|
|
3313
|
+
200: ArrayBuffer;
|
|
3314
|
+
422: {
|
|
3315
|
+
type: "validation";
|
|
3316
|
+
on: string;
|
|
3317
|
+
summary?: string;
|
|
3318
|
+
message?: string;
|
|
3319
|
+
found?: unknown;
|
|
3320
|
+
property?: string;
|
|
3321
|
+
expected?: string;
|
|
2665
3322
|
};
|
|
3323
|
+
401: "Unauthorized";
|
|
3324
|
+
403: "Forbidden: Admins only";
|
|
2666
3325
|
};
|
|
2667
3326
|
};
|
|
2668
3327
|
};
|
|
@@ -2670,107 +3329,112 @@ declare const app: Elysia<"/api", {
|
|
|
2670
3329
|
};
|
|
2671
3330
|
} & {
|
|
2672
3331
|
admin: {
|
|
2673
|
-
|
|
3332
|
+
ledger: {};
|
|
2674
3333
|
} & {
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
user: {
|
|
2694
|
-
email: string;
|
|
3334
|
+
ledger: {
|
|
3335
|
+
entries: {
|
|
3336
|
+
get: {
|
|
3337
|
+
body: unknown;
|
|
3338
|
+
params: {};
|
|
3339
|
+
query: {
|
|
3340
|
+
accountId?: string | undefined;
|
|
3341
|
+
assetId?: string | undefined;
|
|
3342
|
+
limit?: number | undefined;
|
|
3343
|
+
offset?: number | undefined;
|
|
3344
|
+
pageSize?: number | undefined;
|
|
3345
|
+
pageIndex?: number | undefined;
|
|
3346
|
+
userId: string;
|
|
3347
|
+
};
|
|
3348
|
+
headers: unknown;
|
|
3349
|
+
response: {
|
|
3350
|
+
200: {
|
|
3351
|
+
data: {
|
|
2695
3352
|
id: string;
|
|
2696
|
-
name: string;
|
|
2697
|
-
emailVerified: boolean;
|
|
2698
|
-
image: string | null;
|
|
2699
3353
|
createdAt: Date;
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
3354
|
+
assetId: string;
|
|
3355
|
+
fromAccountId: string | null;
|
|
3356
|
+
toAccountId: string | null;
|
|
3357
|
+
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
3358
|
+
amount: string;
|
|
3359
|
+
fromAvailableBefore: string | null;
|
|
3360
|
+
fromAvailableAfter: string | null;
|
|
3361
|
+
fromLockedBefore: string | null;
|
|
3362
|
+
fromLockedAfter: string | null;
|
|
3363
|
+
toAvailableBefore: string | null;
|
|
3364
|
+
toAvailableAfter: string | null;
|
|
3365
|
+
toLockedBefore: string | null;
|
|
3366
|
+
toLockedAfter: string | null;
|
|
3367
|
+
referenceId: string;
|
|
3368
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
3369
|
+
idempotencyKey: string;
|
|
3370
|
+
operatorId: string | null;
|
|
3371
|
+
memo: string | null;
|
|
3372
|
+
}[];
|
|
3373
|
+
pagination: {
|
|
3374
|
+
total: number;
|
|
3375
|
+
pageSize: number;
|
|
3376
|
+
pageIndex: number;
|
|
3377
|
+
totalPages: number;
|
|
3378
|
+
hasNextPage: boolean;
|
|
2711
3379
|
};
|
|
2712
|
-
id: string;
|
|
2713
|
-
createdAt: Date;
|
|
2714
|
-
updatedAt: Date;
|
|
2715
|
-
userId: string;
|
|
2716
|
-
checkInType: "app" | "meeting";
|
|
2717
|
-
checkInAt: Date;
|
|
2718
|
-
checkInTimezone: string | null;
|
|
2719
|
-
checkInOffsetMinutes: number | null;
|
|
2720
|
-
checkInLocalDate: string | null;
|
|
2721
|
-
}[];
|
|
2722
|
-
pagination: {
|
|
2723
|
-
total: number;
|
|
2724
|
-
pageSize: number;
|
|
2725
|
-
pageIndex: number;
|
|
2726
|
-
totalPages: number;
|
|
2727
|
-
hasNextPage: boolean;
|
|
2728
3380
|
};
|
|
3381
|
+
422: {
|
|
3382
|
+
type: "validation";
|
|
3383
|
+
on: string;
|
|
3384
|
+
summary?: string;
|
|
3385
|
+
message?: string;
|
|
3386
|
+
found?: unknown;
|
|
3387
|
+
property?: string;
|
|
3388
|
+
expected?: string;
|
|
3389
|
+
};
|
|
3390
|
+
401: "Unauthorized";
|
|
3391
|
+
403: "Forbidden: Admins only";
|
|
2729
3392
|
};
|
|
2730
|
-
422: {
|
|
2731
|
-
type: "validation";
|
|
2732
|
-
on: string;
|
|
2733
|
-
summary?: string;
|
|
2734
|
-
message?: string;
|
|
2735
|
-
found?: unknown;
|
|
2736
|
-
property?: string;
|
|
2737
|
-
expected?: string;
|
|
2738
|
-
};
|
|
2739
|
-
401: "Unauthorized";
|
|
2740
|
-
403: "Forbidden: Admins only";
|
|
2741
3393
|
};
|
|
2742
3394
|
};
|
|
2743
3395
|
};
|
|
2744
3396
|
};
|
|
2745
3397
|
} & {
|
|
2746
3398
|
admin: {
|
|
2747
|
-
|
|
3399
|
+
market_pricing: {};
|
|
2748
3400
|
} & {
|
|
2749
|
-
|
|
2750
|
-
|
|
3401
|
+
market_pricing: {
|
|
3402
|
+
strategies: {
|
|
2751
3403
|
post: {
|
|
2752
3404
|
body: {
|
|
2753
|
-
|
|
3405
|
+
source?: string | undefined;
|
|
3406
|
+
strategyType?: "random_walk" | undefined;
|
|
3407
|
+
driftBps?: string | undefined;
|
|
3408
|
+
minPrice?: string | null | undefined;
|
|
3409
|
+
maxPrice?: string | null | undefined;
|
|
3410
|
+
intervalSeconds?: number | undefined;
|
|
3411
|
+
maxStepBps?: string | undefined;
|
|
3412
|
+
fallbackPrice?: string | undefined;
|
|
3413
|
+
isEnabled?: boolean | undefined;
|
|
3414
|
+
name: string;
|
|
3415
|
+
baseAssetId: string;
|
|
3416
|
+
quoteAssetId: string;
|
|
2754
3417
|
};
|
|
2755
3418
|
params: {};
|
|
2756
3419
|
query: unknown;
|
|
2757
3420
|
headers: unknown;
|
|
2758
3421
|
response: {
|
|
2759
3422
|
200: {
|
|
2760
|
-
error: string | null;
|
|
2761
3423
|
id: string;
|
|
3424
|
+
name: string;
|
|
2762
3425
|
createdAt: Date;
|
|
2763
3426
|
updatedAt: Date;
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
3427
|
+
baseAssetId: string;
|
|
3428
|
+
quoteAssetId: string;
|
|
3429
|
+
source: string;
|
|
3430
|
+
strategyType: "random_walk";
|
|
3431
|
+
driftBps: string;
|
|
3432
|
+
minPrice: string | null;
|
|
3433
|
+
maxPrice: string | null;
|
|
3434
|
+
intervalSeconds: number;
|
|
3435
|
+
maxStepBps: string;
|
|
3436
|
+
fallbackPrice: string;
|
|
3437
|
+
isEnabled: boolean;
|
|
2774
3438
|
};
|
|
2775
3439
|
422: {
|
|
2776
3440
|
type: "validation";
|
|
@@ -2788,13 +3452,167 @@ declare const app: Elysia<"/api", {
|
|
|
2788
3452
|
};
|
|
2789
3453
|
};
|
|
2790
3454
|
} & {
|
|
2791
|
-
|
|
2792
|
-
|
|
3455
|
+
market_pricing: {
|
|
3456
|
+
strategies: {
|
|
3457
|
+
":id": {
|
|
3458
|
+
patch: {
|
|
3459
|
+
body: {
|
|
3460
|
+
name?: string | undefined;
|
|
3461
|
+
baseAssetId?: string | undefined;
|
|
3462
|
+
quoteAssetId?: string | undefined;
|
|
3463
|
+
source?: string | undefined;
|
|
3464
|
+
strategyType?: "random_walk" | undefined;
|
|
3465
|
+
driftBps?: string | undefined;
|
|
3466
|
+
minPrice?: string | null | undefined;
|
|
3467
|
+
maxPrice?: string | null | undefined;
|
|
3468
|
+
intervalSeconds?: number | undefined;
|
|
3469
|
+
maxStepBps?: string | undefined;
|
|
3470
|
+
fallbackPrice?: string | undefined;
|
|
3471
|
+
isEnabled?: boolean | undefined;
|
|
3472
|
+
};
|
|
3473
|
+
params: {
|
|
3474
|
+
id: string;
|
|
3475
|
+
};
|
|
3476
|
+
query: unknown;
|
|
3477
|
+
headers: unknown;
|
|
3478
|
+
response: {
|
|
3479
|
+
200: {
|
|
3480
|
+
createdAt: Date;
|
|
3481
|
+
updatedAt: Date;
|
|
3482
|
+
id: string;
|
|
3483
|
+
name: string;
|
|
3484
|
+
baseAssetId: string;
|
|
3485
|
+
quoteAssetId: string;
|
|
3486
|
+
strategyType: "random_walk";
|
|
3487
|
+
driftBps: string;
|
|
3488
|
+
minPrice: string | null;
|
|
3489
|
+
maxPrice: string | null;
|
|
3490
|
+
source: string;
|
|
3491
|
+
intervalSeconds: number;
|
|
3492
|
+
maxStepBps: string;
|
|
3493
|
+
fallbackPrice: string;
|
|
3494
|
+
isEnabled: boolean;
|
|
3495
|
+
};
|
|
3496
|
+
422: {
|
|
3497
|
+
type: "validation";
|
|
3498
|
+
on: string;
|
|
3499
|
+
summary?: string;
|
|
3500
|
+
message?: string;
|
|
3501
|
+
found?: unknown;
|
|
3502
|
+
property?: string;
|
|
3503
|
+
expected?: string;
|
|
3504
|
+
};
|
|
3505
|
+
401: "Unauthorized";
|
|
3506
|
+
403: "Forbidden: Admins only";
|
|
3507
|
+
};
|
|
3508
|
+
};
|
|
3509
|
+
};
|
|
3510
|
+
};
|
|
3511
|
+
};
|
|
3512
|
+
} & {
|
|
3513
|
+
market_pricing: {
|
|
3514
|
+
strategies: {
|
|
3515
|
+
":id": {
|
|
3516
|
+
enable: {
|
|
3517
|
+
post: {
|
|
3518
|
+
body: unknown;
|
|
3519
|
+
params: {
|
|
3520
|
+
id: string;
|
|
3521
|
+
};
|
|
3522
|
+
query: unknown;
|
|
3523
|
+
headers: unknown;
|
|
3524
|
+
response: {
|
|
3525
|
+
200: {
|
|
3526
|
+
createdAt: Date;
|
|
3527
|
+
updatedAt: Date;
|
|
3528
|
+
id: string;
|
|
3529
|
+
name: string;
|
|
3530
|
+
baseAssetId: string;
|
|
3531
|
+
quoteAssetId: string;
|
|
3532
|
+
strategyType: "random_walk";
|
|
3533
|
+
driftBps: string;
|
|
3534
|
+
minPrice: string | null;
|
|
3535
|
+
maxPrice: string | null;
|
|
3536
|
+
source: string;
|
|
3537
|
+
intervalSeconds: number;
|
|
3538
|
+
maxStepBps: string;
|
|
3539
|
+
fallbackPrice: string;
|
|
3540
|
+
isEnabled: boolean;
|
|
3541
|
+
};
|
|
3542
|
+
422: {
|
|
3543
|
+
type: "validation";
|
|
3544
|
+
on: string;
|
|
3545
|
+
summary?: string;
|
|
3546
|
+
message?: string;
|
|
3547
|
+
found?: unknown;
|
|
3548
|
+
property?: string;
|
|
3549
|
+
expected?: string;
|
|
3550
|
+
};
|
|
3551
|
+
401: "Unauthorized";
|
|
3552
|
+
403: "Forbidden: Admins only";
|
|
3553
|
+
};
|
|
3554
|
+
};
|
|
3555
|
+
};
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3558
|
+
};
|
|
3559
|
+
} & {
|
|
3560
|
+
market_pricing: {
|
|
3561
|
+
strategies: {
|
|
3562
|
+
":id": {
|
|
3563
|
+
disable: {
|
|
3564
|
+
post: {
|
|
3565
|
+
body: unknown;
|
|
3566
|
+
params: {
|
|
3567
|
+
id: string;
|
|
3568
|
+
};
|
|
3569
|
+
query: unknown;
|
|
3570
|
+
headers: unknown;
|
|
3571
|
+
response: {
|
|
3572
|
+
200: {
|
|
3573
|
+
createdAt: Date;
|
|
3574
|
+
updatedAt: Date;
|
|
3575
|
+
id: string;
|
|
3576
|
+
name: string;
|
|
3577
|
+
baseAssetId: string;
|
|
3578
|
+
quoteAssetId: string;
|
|
3579
|
+
strategyType: "random_walk";
|
|
3580
|
+
driftBps: string;
|
|
3581
|
+
minPrice: string | null;
|
|
3582
|
+
maxPrice: string | null;
|
|
3583
|
+
source: string;
|
|
3584
|
+
intervalSeconds: number;
|
|
3585
|
+
maxStepBps: string;
|
|
3586
|
+
fallbackPrice: string;
|
|
3587
|
+
isEnabled: boolean;
|
|
3588
|
+
};
|
|
3589
|
+
422: {
|
|
3590
|
+
type: "validation";
|
|
3591
|
+
on: string;
|
|
3592
|
+
summary?: string;
|
|
3593
|
+
message?: string;
|
|
3594
|
+
found?: unknown;
|
|
3595
|
+
property?: string;
|
|
3596
|
+
expected?: string;
|
|
3597
|
+
};
|
|
3598
|
+
401: "Unauthorized";
|
|
3599
|
+
403: "Forbidden: Admins only";
|
|
3600
|
+
};
|
|
3601
|
+
};
|
|
3602
|
+
};
|
|
3603
|
+
};
|
|
3604
|
+
};
|
|
3605
|
+
};
|
|
3606
|
+
} & {
|
|
3607
|
+
market_pricing: {
|
|
3608
|
+
strategies: {
|
|
2793
3609
|
get: {
|
|
2794
3610
|
body: unknown;
|
|
2795
3611
|
params: {};
|
|
2796
3612
|
query: {
|
|
2797
|
-
|
|
3613
|
+
baseAssetId?: string | undefined;
|
|
3614
|
+
quoteAssetId?: string | undefined;
|
|
3615
|
+
isEnabled?: boolean | undefined;
|
|
2798
3616
|
limit?: number | undefined;
|
|
2799
3617
|
offset?: number | undefined;
|
|
2800
3618
|
pageSize?: number | undefined;
|
|
@@ -2804,20 +3622,21 @@ declare const app: Elysia<"/api", {
|
|
|
2804
3622
|
response: {
|
|
2805
3623
|
200: {
|
|
2806
3624
|
data: {
|
|
2807
|
-
error: string | null;
|
|
2808
3625
|
id: string;
|
|
3626
|
+
name: string;
|
|
2809
3627
|
createdAt: Date;
|
|
2810
3628
|
updatedAt: Date;
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
3629
|
+
baseAssetId: string;
|
|
3630
|
+
quoteAssetId: string;
|
|
3631
|
+
source: string;
|
|
3632
|
+
strategyType: "random_walk";
|
|
3633
|
+
driftBps: string;
|
|
3634
|
+
minPrice: string | null;
|
|
3635
|
+
maxPrice: string | null;
|
|
3636
|
+
intervalSeconds: number;
|
|
3637
|
+
maxStepBps: string;
|
|
3638
|
+
fallbackPrice: string;
|
|
3639
|
+
isEnabled: boolean;
|
|
2821
3640
|
}[];
|
|
2822
3641
|
pagination: {
|
|
2823
3642
|
total: number;
|
|
@@ -2843,8 +3662,8 @@ declare const app: Elysia<"/api", {
|
|
|
2843
3662
|
};
|
|
2844
3663
|
};
|
|
2845
3664
|
} & {
|
|
2846
|
-
|
|
2847
|
-
|
|
3665
|
+
market_pricing: {
|
|
3666
|
+
strategies: {
|
|
2848
3667
|
":id": {
|
|
2849
3668
|
get: {
|
|
2850
3669
|
body: unknown;
|
|
@@ -2855,20 +3674,21 @@ declare const app: Elysia<"/api", {
|
|
|
2855
3674
|
headers: unknown;
|
|
2856
3675
|
response: {
|
|
2857
3676
|
200: {
|
|
2858
|
-
error: string | null;
|
|
2859
3677
|
id: string;
|
|
3678
|
+
name: string;
|
|
2860
3679
|
createdAt: Date;
|
|
2861
3680
|
updatedAt: Date;
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
3681
|
+
baseAssetId: string;
|
|
3682
|
+
quoteAssetId: string;
|
|
3683
|
+
source: string;
|
|
3684
|
+
strategyType: "random_walk";
|
|
3685
|
+
driftBps: string;
|
|
3686
|
+
minPrice: string | null;
|
|
3687
|
+
maxPrice: string | null;
|
|
3688
|
+
intervalSeconds: number;
|
|
3689
|
+
maxStepBps: string;
|
|
3690
|
+
fallbackPrice: string;
|
|
3691
|
+
isEnabled: boolean;
|
|
2872
3692
|
};
|
|
2873
3693
|
422: {
|
|
2874
3694
|
type: "validation";
|
|
@@ -2887,55 +3707,23 @@ declare const app: Elysia<"/api", {
|
|
|
2887
3707
|
};
|
|
2888
3708
|
};
|
|
2889
3709
|
} & {
|
|
2890
|
-
|
|
2891
|
-
|
|
3710
|
+
market_pricing: {
|
|
3711
|
+
strategies: {
|
|
2892
3712
|
":id": {
|
|
2893
|
-
|
|
2894
|
-
|
|
3713
|
+
"run-now": {
|
|
3714
|
+
post: {
|
|
2895
3715
|
body: unknown;
|
|
2896
3716
|
params: {
|
|
2897
3717
|
id: string;
|
|
2898
3718
|
};
|
|
2899
|
-
query:
|
|
2900
|
-
status?: "success" | "failed" | "ignored" | undefined;
|
|
2901
|
-
limit?: number | undefined;
|
|
2902
|
-
offset?: number | undefined;
|
|
2903
|
-
pageSize?: number | undefined;
|
|
2904
|
-
pageIndex?: number | undefined;
|
|
2905
|
-
};
|
|
3719
|
+
query: unknown;
|
|
2906
3720
|
headers: unknown;
|
|
2907
3721
|
response: {
|
|
2908
3722
|
200: {
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
updatedAt: Date;
|
|
2914
|
-
phoneNumber: string | null;
|
|
2915
|
-
userId: string | null;
|
|
2916
|
-
status: "success" | "failed" | "ignored";
|
|
2917
|
-
assetId: string | null;
|
|
2918
|
-
ledgerAccountTypeId: string | null;
|
|
2919
|
-
amount: string | null;
|
|
2920
|
-
referenceId: string | null;
|
|
2921
|
-
memo: string | null;
|
|
2922
|
-
jobId: string;
|
|
2923
|
-
rowNumber: number;
|
|
2924
|
-
assetCode: string | null;
|
|
2925
|
-
assetCodeRaw: string | null;
|
|
2926
|
-
accountTypeKey: string | null;
|
|
2927
|
-
accountTypeKeyRaw: string | null;
|
|
2928
|
-
ledgerAccountId: string | null;
|
|
2929
|
-
ledgerEntryId: string | null;
|
|
2930
|
-
isIdempotent: boolean;
|
|
2931
|
-
}[];
|
|
2932
|
-
pagination: {
|
|
2933
|
-
total: number;
|
|
2934
|
-
pageSize: number;
|
|
2935
|
-
pageIndex: number;
|
|
2936
|
-
totalPages: number;
|
|
2937
|
-
hasNextPage: boolean;
|
|
2938
|
-
};
|
|
3723
|
+
price: string;
|
|
3724
|
+
effectiveAt: Date;
|
|
3725
|
+
created: boolean;
|
|
3726
|
+
strategyId: string;
|
|
2939
3727
|
};
|
|
2940
3728
|
422: {
|
|
2941
3729
|
type: "validation";
|
|
@@ -2946,102 +3734,193 @@ declare const app: Elysia<"/api", {
|
|
|
2946
3734
|
property?: string;
|
|
2947
3735
|
expected?: string;
|
|
2948
3736
|
};
|
|
2949
|
-
401: "Unauthorized";
|
|
2950
|
-
403: "Forbidden: Admins only";
|
|
3737
|
+
401: "Unauthorized";
|
|
3738
|
+
403: "Forbidden: Admins only";
|
|
3739
|
+
};
|
|
3740
|
+
};
|
|
3741
|
+
};
|
|
3742
|
+
};
|
|
3743
|
+
};
|
|
3744
|
+
};
|
|
3745
|
+
} & {
|
|
3746
|
+
market_pricing: {
|
|
3747
|
+
jobs: {
|
|
3748
|
+
"run-enabled": {
|
|
3749
|
+
post: {
|
|
3750
|
+
body: unknown;
|
|
3751
|
+
params: {};
|
|
3752
|
+
query: unknown;
|
|
3753
|
+
headers: unknown;
|
|
3754
|
+
response: {
|
|
3755
|
+
200: {
|
|
3756
|
+
successCount: number;
|
|
3757
|
+
failedStrategyIds: string[];
|
|
3758
|
+
};
|
|
3759
|
+
422: {
|
|
3760
|
+
type: "validation";
|
|
3761
|
+
on: string;
|
|
3762
|
+
summary?: string;
|
|
3763
|
+
message?: string;
|
|
3764
|
+
found?: unknown;
|
|
3765
|
+
property?: string;
|
|
3766
|
+
expected?: string;
|
|
3767
|
+
};
|
|
3768
|
+
401: "Unauthorized";
|
|
3769
|
+
403: "Forbidden: Admins only";
|
|
3770
|
+
};
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
};
|
|
3774
|
+
};
|
|
3775
|
+
};
|
|
3776
|
+
} & {
|
|
3777
|
+
admin: {
|
|
3778
|
+
market_data: {};
|
|
3779
|
+
} & {
|
|
3780
|
+
market_data: {
|
|
3781
|
+
klines: {
|
|
3782
|
+
"1m": {
|
|
3783
|
+
get: {
|
|
3784
|
+
body: unknown;
|
|
3785
|
+
params: {};
|
|
3786
|
+
query: {
|
|
3787
|
+
source?: string | undefined;
|
|
3788
|
+
startDate?: Date | undefined;
|
|
3789
|
+
limit?: number | undefined;
|
|
3790
|
+
offset?: number | undefined;
|
|
3791
|
+
pageSize?: number | undefined;
|
|
3792
|
+
pageIndex?: number | undefined;
|
|
3793
|
+
endDate?: Date | undefined;
|
|
3794
|
+
baseAsset: string;
|
|
3795
|
+
quoteAsset: string;
|
|
3796
|
+
};
|
|
3797
|
+
headers: unknown;
|
|
3798
|
+
response: {
|
|
3799
|
+
200: {
|
|
3800
|
+
data: {
|
|
3801
|
+
id: string;
|
|
3802
|
+
createdAt: Date;
|
|
3803
|
+
updatedAt: Date;
|
|
3804
|
+
baseAssetId: string;
|
|
3805
|
+
baseAsset: string;
|
|
3806
|
+
quoteAssetId: string;
|
|
3807
|
+
quoteAsset: string;
|
|
3808
|
+
source: string;
|
|
3809
|
+
low: string;
|
|
3810
|
+
high: string;
|
|
3811
|
+
bucketAt: Date;
|
|
3812
|
+
open: string;
|
|
3813
|
+
close: string;
|
|
3814
|
+
tickCount: number;
|
|
3815
|
+
volume: string;
|
|
3816
|
+
}[];
|
|
3817
|
+
pagination: {
|
|
3818
|
+
total: number;
|
|
3819
|
+
pageSize: number;
|
|
3820
|
+
pageIndex: number;
|
|
3821
|
+
totalPages: number;
|
|
3822
|
+
hasNextPage: boolean;
|
|
3823
|
+
};
|
|
2951
3824
|
};
|
|
3825
|
+
422: {
|
|
3826
|
+
type: "validation";
|
|
3827
|
+
on: string;
|
|
3828
|
+
summary?: string;
|
|
3829
|
+
message?: string;
|
|
3830
|
+
found?: unknown;
|
|
3831
|
+
property?: string;
|
|
3832
|
+
expected?: string;
|
|
3833
|
+
};
|
|
3834
|
+
401: "Unauthorized";
|
|
3835
|
+
403: "Forbidden: Admins only";
|
|
2952
3836
|
};
|
|
2953
3837
|
};
|
|
2954
3838
|
};
|
|
2955
3839
|
};
|
|
2956
3840
|
};
|
|
2957
3841
|
} & {
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
3842
|
+
market_data: {
|
|
3843
|
+
jobs: {
|
|
3844
|
+
aggregate: {
|
|
3845
|
+
"1m": {
|
|
3846
|
+
"run-one": {
|
|
3847
|
+
post: {
|
|
3848
|
+
body: {
|
|
3849
|
+
source?: string | undefined;
|
|
3850
|
+
bucketAt?: Date | undefined;
|
|
3851
|
+
baseAsset: string;
|
|
3852
|
+
quoteAsset: string;
|
|
3853
|
+
};
|
|
3854
|
+
params: {};
|
|
3855
|
+
query: unknown;
|
|
3856
|
+
headers: unknown;
|
|
3857
|
+
response: {
|
|
3858
|
+
200: {
|
|
3859
|
+
id: string;
|
|
3860
|
+
createdAt: Date;
|
|
3861
|
+
updatedAt: Date;
|
|
3862
|
+
baseAssetId: string;
|
|
3863
|
+
baseAsset: string;
|
|
3864
|
+
quoteAssetId: string;
|
|
3865
|
+
quoteAsset: string;
|
|
3866
|
+
source: string;
|
|
3867
|
+
low: string;
|
|
3868
|
+
high: string;
|
|
3869
|
+
bucketAt: Date;
|
|
3870
|
+
open: string;
|
|
3871
|
+
close: string;
|
|
3872
|
+
tickCount: number;
|
|
3873
|
+
volume: string;
|
|
3874
|
+
} | null;
|
|
3875
|
+
422: {
|
|
3876
|
+
type: "validation";
|
|
3877
|
+
on: string;
|
|
3878
|
+
summary?: string;
|
|
3879
|
+
message?: string;
|
|
3880
|
+
found?: unknown;
|
|
3881
|
+
property?: string;
|
|
3882
|
+
expected?: string;
|
|
3883
|
+
};
|
|
3884
|
+
401: "Unauthorized";
|
|
3885
|
+
403: "Forbidden: Admins only";
|
|
3886
|
+
};
|
|
3887
|
+
};
|
|
2975
3888
|
};
|
|
2976
|
-
401: "Unauthorized";
|
|
2977
|
-
403: "Forbidden: Admins only";
|
|
2978
3889
|
};
|
|
2979
3890
|
};
|
|
2980
3891
|
};
|
|
2981
3892
|
};
|
|
2982
|
-
};
|
|
2983
|
-
} & {
|
|
2984
|
-
admin: {
|
|
2985
|
-
ledger: {};
|
|
2986
3893
|
} & {
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
fromLockedAfter: string | null;
|
|
3016
|
-
toAvailableBefore: string | null;
|
|
3017
|
-
toAvailableAfter: string | null;
|
|
3018
|
-
toLockedBefore: string | null;
|
|
3019
|
-
toLockedAfter: string | null;
|
|
3020
|
-
referenceId: string;
|
|
3021
|
-
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement";
|
|
3022
|
-
idempotencyKey: string;
|
|
3023
|
-
operatorId: string | null;
|
|
3024
|
-
memo: string | null;
|
|
3025
|
-
}[];
|
|
3026
|
-
pagination: {
|
|
3027
|
-
total: number;
|
|
3028
|
-
pageSize: number;
|
|
3029
|
-
pageIndex: number;
|
|
3030
|
-
totalPages: number;
|
|
3031
|
-
hasNextPage: boolean;
|
|
3894
|
+
market_data: {
|
|
3895
|
+
jobs: {
|
|
3896
|
+
aggregate: {
|
|
3897
|
+
"1m": {
|
|
3898
|
+
"run-enabled": {
|
|
3899
|
+
post: {
|
|
3900
|
+
body: unknown;
|
|
3901
|
+
params: {};
|
|
3902
|
+
query: unknown;
|
|
3903
|
+
headers: unknown;
|
|
3904
|
+
response: {
|
|
3905
|
+
200: {
|
|
3906
|
+
bucketAt: Date;
|
|
3907
|
+
successCount: number;
|
|
3908
|
+
failedPairs: string[];
|
|
3909
|
+
};
|
|
3910
|
+
422: {
|
|
3911
|
+
type: "validation";
|
|
3912
|
+
on: string;
|
|
3913
|
+
summary?: string;
|
|
3914
|
+
message?: string;
|
|
3915
|
+
found?: unknown;
|
|
3916
|
+
property?: string;
|
|
3917
|
+
expected?: string;
|
|
3918
|
+
};
|
|
3919
|
+
401: "Unauthorized";
|
|
3920
|
+
403: "Forbidden: Admins only";
|
|
3921
|
+
};
|
|
3032
3922
|
};
|
|
3033
3923
|
};
|
|
3034
|
-
422: {
|
|
3035
|
-
type: "validation";
|
|
3036
|
-
on: string;
|
|
3037
|
-
summary?: string;
|
|
3038
|
-
message?: string;
|
|
3039
|
-
found?: unknown;
|
|
3040
|
-
property?: string;
|
|
3041
|
-
expected?: string;
|
|
3042
|
-
};
|
|
3043
|
-
401: "Unauthorized";
|
|
3044
|
-
403: "Forbidden: Admins only";
|
|
3045
3924
|
};
|
|
3046
3925
|
};
|
|
3047
3926
|
};
|
|
@@ -3587,12 +4466,131 @@ declare const app: Elysia<"/api", {
|
|
|
3587
4466
|
createdAt: Date;
|
|
3588
4467
|
updatedAt: Date;
|
|
3589
4468
|
userId: string;
|
|
3590
|
-
bankName: string | null;
|
|
3591
|
-
fullName: string;
|
|
3592
|
-
bankBranchName: string | null;
|
|
3593
|
-
bankCardNumber: string | null;
|
|
3594
|
-
alipayName: string | null;
|
|
3595
|
-
alipayAccount: string | null;
|
|
4469
|
+
bankName: string | null;
|
|
4470
|
+
fullName: string;
|
|
4471
|
+
bankBranchName: string | null;
|
|
4472
|
+
bankCardNumber: string | null;
|
|
4473
|
+
alipayName: string | null;
|
|
4474
|
+
alipayAccount: string | null;
|
|
4475
|
+
}[];
|
|
4476
|
+
pagination: {
|
|
4477
|
+
total: number;
|
|
4478
|
+
pageSize: number;
|
|
4479
|
+
pageIndex: number;
|
|
4480
|
+
totalPages: number;
|
|
4481
|
+
hasNextPage: boolean;
|
|
4482
|
+
};
|
|
4483
|
+
};
|
|
4484
|
+
422: {
|
|
4485
|
+
type: "validation";
|
|
4486
|
+
on: string;
|
|
4487
|
+
summary?: string;
|
|
4488
|
+
message?: string;
|
|
4489
|
+
found?: unknown;
|
|
4490
|
+
property?: string;
|
|
4491
|
+
expected?: string;
|
|
4492
|
+
};
|
|
4493
|
+
401: "Unauthorized";
|
|
4494
|
+
403: "Forbidden: Admins only";
|
|
4495
|
+
};
|
|
4496
|
+
};
|
|
4497
|
+
};
|
|
4498
|
+
} & {
|
|
4499
|
+
receipt_method: {
|
|
4500
|
+
":id": {
|
|
4501
|
+
delete: {
|
|
4502
|
+
body: {};
|
|
4503
|
+
params: {
|
|
4504
|
+
id: string;
|
|
4505
|
+
};
|
|
4506
|
+
query: {};
|
|
4507
|
+
headers: {};
|
|
4508
|
+
response: {
|
|
4509
|
+
200: {
|
|
4510
|
+
success: boolean;
|
|
4511
|
+
};
|
|
4512
|
+
422: {
|
|
4513
|
+
type: "validation";
|
|
4514
|
+
on: string;
|
|
4515
|
+
summary?: string;
|
|
4516
|
+
message?: string;
|
|
4517
|
+
found?: unknown;
|
|
4518
|
+
property?: string;
|
|
4519
|
+
expected?: string;
|
|
4520
|
+
};
|
|
4521
|
+
401: "Unauthorized";
|
|
4522
|
+
403: "Forbidden: Admins only";
|
|
4523
|
+
};
|
|
4524
|
+
};
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
4527
|
+
} & {
|
|
4528
|
+
receipt_method: {
|
|
4529
|
+
":id": {
|
|
4530
|
+
get: {
|
|
4531
|
+
body: {};
|
|
4532
|
+
params: {
|
|
4533
|
+
id: string;
|
|
4534
|
+
};
|
|
4535
|
+
query: {};
|
|
4536
|
+
headers: {};
|
|
4537
|
+
response: {
|
|
4538
|
+
200: {
|
|
4539
|
+
type: "bank_card" | "alipay";
|
|
4540
|
+
id: string;
|
|
4541
|
+
createdAt: Date;
|
|
4542
|
+
updatedAt: Date;
|
|
4543
|
+
userId: string;
|
|
4544
|
+
bankName: string | null;
|
|
4545
|
+
fullName: string;
|
|
4546
|
+
bankBranchName: string | null;
|
|
4547
|
+
bankCardNumber: string | null;
|
|
4548
|
+
alipayName: string | null;
|
|
4549
|
+
alipayAccount: string | null;
|
|
4550
|
+
};
|
|
4551
|
+
422: {
|
|
4552
|
+
type: "validation";
|
|
4553
|
+
on: string;
|
|
4554
|
+
summary?: string;
|
|
4555
|
+
message?: string;
|
|
4556
|
+
found?: unknown;
|
|
4557
|
+
property?: string;
|
|
4558
|
+
expected?: string;
|
|
4559
|
+
};
|
|
4560
|
+
401: "Unauthorized";
|
|
4561
|
+
403: "Forbidden: Admins only";
|
|
4562
|
+
};
|
|
4563
|
+
};
|
|
4564
|
+
};
|
|
4565
|
+
};
|
|
4566
|
+
};
|
|
4567
|
+
} & {
|
|
4568
|
+
admin: {
|
|
4569
|
+
shipping_address: {};
|
|
4570
|
+
} & {
|
|
4571
|
+
shipping_address: {
|
|
4572
|
+
get: {
|
|
4573
|
+
body: {};
|
|
4574
|
+
params: {};
|
|
4575
|
+
query: {
|
|
4576
|
+
userId?: string | undefined;
|
|
4577
|
+
limit?: number | undefined;
|
|
4578
|
+
offset?: number | undefined;
|
|
4579
|
+
pageSize?: number | undefined;
|
|
4580
|
+
pageIndex?: number | undefined;
|
|
4581
|
+
};
|
|
4582
|
+
headers: {};
|
|
4583
|
+
response: {
|
|
4584
|
+
200: {
|
|
4585
|
+
data: {
|
|
4586
|
+
id: string;
|
|
4587
|
+
createdAt: Date;
|
|
4588
|
+
updatedAt: Date;
|
|
4589
|
+
phoneNumber: string;
|
|
4590
|
+
userId: string;
|
|
4591
|
+
isDefault: boolean;
|
|
4592
|
+
recipientName: string;
|
|
4593
|
+
detailAddress: string;
|
|
3596
4594
|
}[];
|
|
3597
4595
|
pagination: {
|
|
3598
4596
|
total: number;
|
|
@@ -3616,19 +4614,34 @@ declare const app: Elysia<"/api", {
|
|
|
3616
4614
|
};
|
|
3617
4615
|
};
|
|
3618
4616
|
};
|
|
4617
|
+
};
|
|
4618
|
+
} & {
|
|
4619
|
+
admin: {
|
|
4620
|
+
referrals: {};
|
|
3619
4621
|
} & {
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
body:
|
|
3624
|
-
params: {
|
|
3625
|
-
|
|
4622
|
+
referrals: {
|
|
4623
|
+
summary: {
|
|
4624
|
+
get: {
|
|
4625
|
+
body: unknown;
|
|
4626
|
+
params: {};
|
|
4627
|
+
query: {
|
|
4628
|
+
limit?: number | undefined;
|
|
4629
|
+
offset?: number | undefined;
|
|
4630
|
+
pageSize?: number | undefined;
|
|
4631
|
+
pageIndex?: number | undefined;
|
|
4632
|
+
maxDepth?: number | undefined;
|
|
4633
|
+
referralCode: string;
|
|
3626
4634
|
};
|
|
3627
|
-
|
|
3628
|
-
headers: {};
|
|
4635
|
+
headers: unknown;
|
|
3629
4636
|
response: {
|
|
3630
4637
|
200: {
|
|
3631
|
-
|
|
4638
|
+
referredBy?: string | undefined;
|
|
4639
|
+
userId: string;
|
|
4640
|
+
referralCode: string;
|
|
4641
|
+
totalCount: number;
|
|
4642
|
+
level1Count: number;
|
|
4643
|
+
level2Count: number;
|
|
4644
|
+
level3Count: number;
|
|
3632
4645
|
};
|
|
3633
4646
|
422: {
|
|
3634
4647
|
type: "validation";
|
|
@@ -3646,28 +4659,137 @@ declare const app: Elysia<"/api", {
|
|
|
3646
4659
|
};
|
|
3647
4660
|
};
|
|
3648
4661
|
} & {
|
|
3649
|
-
|
|
3650
|
-
|
|
4662
|
+
referrals: {
|
|
4663
|
+
members: {
|
|
3651
4664
|
get: {
|
|
3652
|
-
body:
|
|
3653
|
-
params: {
|
|
3654
|
-
|
|
4665
|
+
body: unknown;
|
|
4666
|
+
params: {};
|
|
4667
|
+
query: {
|
|
4668
|
+
limit?: number | undefined;
|
|
4669
|
+
offset?: number | undefined;
|
|
4670
|
+
pageSize?: number | undefined;
|
|
4671
|
+
pageIndex?: number | undefined;
|
|
4672
|
+
maxDepth?: number | undefined;
|
|
4673
|
+
referralCode: string;
|
|
3655
4674
|
};
|
|
3656
|
-
|
|
3657
|
-
|
|
4675
|
+
headers: unknown;
|
|
4676
|
+
response: {
|
|
4677
|
+
200: {
|
|
4678
|
+
data: {
|
|
4679
|
+
user: {
|
|
4680
|
+
email: string;
|
|
4681
|
+
id: string;
|
|
4682
|
+
name: string;
|
|
4683
|
+
emailVerified: boolean;
|
|
4684
|
+
image: string | null;
|
|
4685
|
+
createdAt: Date;
|
|
4686
|
+
updatedAt: Date;
|
|
4687
|
+
twoFactorEnabled: boolean | null;
|
|
4688
|
+
username: string | null;
|
|
4689
|
+
displayUsername: string | null;
|
|
4690
|
+
isAnonymous: boolean | null;
|
|
4691
|
+
phoneNumber: string | null;
|
|
4692
|
+
phoneNumberVerified: boolean | null;
|
|
4693
|
+
role: string | null;
|
|
4694
|
+
banned: boolean | null;
|
|
4695
|
+
banReason: string | null;
|
|
4696
|
+
banExpires: Date | null;
|
|
4697
|
+
};
|
|
4698
|
+
depth: number;
|
|
4699
|
+
}[];
|
|
4700
|
+
pagination: {
|
|
4701
|
+
total: number;
|
|
4702
|
+
pageSize: number;
|
|
4703
|
+
pageIndex: number;
|
|
4704
|
+
totalPages: number;
|
|
4705
|
+
hasNextPage: boolean;
|
|
4706
|
+
};
|
|
4707
|
+
};
|
|
4708
|
+
422: {
|
|
4709
|
+
type: "validation";
|
|
4710
|
+
on: string;
|
|
4711
|
+
summary?: string;
|
|
4712
|
+
message?: string;
|
|
4713
|
+
found?: unknown;
|
|
4714
|
+
property?: string;
|
|
4715
|
+
expected?: string;
|
|
4716
|
+
};
|
|
4717
|
+
401: "Unauthorized";
|
|
4718
|
+
403: "Forbidden: Admins only";
|
|
4719
|
+
};
|
|
4720
|
+
};
|
|
4721
|
+
};
|
|
4722
|
+
};
|
|
4723
|
+
};
|
|
4724
|
+
} & {
|
|
4725
|
+
admin: {
|
|
4726
|
+
referrals: {
|
|
4727
|
+
"depth-configs": {};
|
|
4728
|
+
};
|
|
4729
|
+
} & {
|
|
4730
|
+
referrals: {
|
|
4731
|
+
"depth-configs": {
|
|
4732
|
+
post: {
|
|
4733
|
+
body: {
|
|
4734
|
+
depth: number;
|
|
4735
|
+
commissionRate: string;
|
|
4736
|
+
};
|
|
4737
|
+
params: {};
|
|
4738
|
+
query: unknown;
|
|
4739
|
+
headers: unknown;
|
|
3658
4740
|
response: {
|
|
3659
4741
|
200: {
|
|
3660
|
-
type: "bank_card" | "alipay";
|
|
3661
4742
|
id: string;
|
|
3662
4743
|
createdAt: Date;
|
|
3663
4744
|
updatedAt: Date;
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
4745
|
+
depth: number;
|
|
4746
|
+
commissionRate: string;
|
|
4747
|
+
};
|
|
4748
|
+
422: {
|
|
4749
|
+
type: "validation";
|
|
4750
|
+
on: string;
|
|
4751
|
+
summary?: string;
|
|
4752
|
+
message?: string;
|
|
4753
|
+
found?: unknown;
|
|
4754
|
+
property?: string;
|
|
4755
|
+
expected?: string;
|
|
4756
|
+
};
|
|
4757
|
+
401: "Unauthorized";
|
|
4758
|
+
403: "Forbidden: Admins only";
|
|
4759
|
+
};
|
|
4760
|
+
};
|
|
4761
|
+
};
|
|
4762
|
+
};
|
|
4763
|
+
} & {
|
|
4764
|
+
referrals: {
|
|
4765
|
+
"depth-configs": {
|
|
4766
|
+
get: {
|
|
4767
|
+
body: unknown;
|
|
4768
|
+
params: {};
|
|
4769
|
+
query: {
|
|
4770
|
+
depth?: number | undefined;
|
|
4771
|
+
limit?: number | undefined;
|
|
4772
|
+
offset?: number | undefined;
|
|
4773
|
+
pageSize?: number | undefined;
|
|
4774
|
+
pageIndex?: number | undefined;
|
|
4775
|
+
};
|
|
4776
|
+
headers: unknown;
|
|
4777
|
+
response: {
|
|
4778
|
+
200: {
|
|
4779
|
+
data: {
|
|
4780
|
+
id: string;
|
|
4781
|
+
createdAt: Date;
|
|
4782
|
+
updatedAt: Date;
|
|
4783
|
+
depth: number;
|
|
4784
|
+
commissionRate: string;
|
|
4785
|
+
}[];
|
|
4786
|
+
pagination: {
|
|
4787
|
+
total: number;
|
|
4788
|
+
pageSize: number;
|
|
4789
|
+
pageIndex: number;
|
|
4790
|
+
totalPages: number;
|
|
4791
|
+
hasNextPage: boolean;
|
|
4792
|
+
};
|
|
3671
4793
|
};
|
|
3672
4794
|
422: {
|
|
3673
4795
|
type: "validation";
|
|
@@ -3678,85 +4800,132 @@ declare const app: Elysia<"/api", {
|
|
|
3678
4800
|
property?: string;
|
|
3679
4801
|
expected?: string;
|
|
3680
4802
|
};
|
|
3681
|
-
401: "Unauthorized";
|
|
3682
|
-
403: "Forbidden: Admins only";
|
|
4803
|
+
401: "Unauthorized";
|
|
4804
|
+
403: "Forbidden: Admins only";
|
|
4805
|
+
};
|
|
4806
|
+
};
|
|
4807
|
+
};
|
|
4808
|
+
};
|
|
4809
|
+
} & {
|
|
4810
|
+
referrals: {
|
|
4811
|
+
"depth-configs": {
|
|
4812
|
+
":id": {
|
|
4813
|
+
get: {
|
|
4814
|
+
body: unknown;
|
|
4815
|
+
params: {
|
|
4816
|
+
id: string;
|
|
4817
|
+
};
|
|
4818
|
+
query: unknown;
|
|
4819
|
+
headers: unknown;
|
|
4820
|
+
response: {
|
|
4821
|
+
200: {
|
|
4822
|
+
id: string;
|
|
4823
|
+
createdAt: Date;
|
|
4824
|
+
updatedAt: Date;
|
|
4825
|
+
depth: number;
|
|
4826
|
+
commissionRate: string;
|
|
4827
|
+
};
|
|
4828
|
+
422: {
|
|
4829
|
+
type: "validation";
|
|
4830
|
+
on: string;
|
|
4831
|
+
summary?: string;
|
|
4832
|
+
message?: string;
|
|
4833
|
+
found?: unknown;
|
|
4834
|
+
property?: string;
|
|
4835
|
+
expected?: string;
|
|
4836
|
+
};
|
|
4837
|
+
401: "Unauthorized";
|
|
4838
|
+
403: "Forbidden: Admins only";
|
|
4839
|
+
};
|
|
4840
|
+
};
|
|
4841
|
+
};
|
|
4842
|
+
};
|
|
4843
|
+
};
|
|
4844
|
+
} & {
|
|
4845
|
+
referrals: {
|
|
4846
|
+
"depth-configs": {
|
|
4847
|
+
":id": {
|
|
4848
|
+
patch: {
|
|
4849
|
+
body: {
|
|
4850
|
+
depth?: number | undefined;
|
|
4851
|
+
commissionRate?: string | undefined;
|
|
4852
|
+
};
|
|
4853
|
+
params: {
|
|
4854
|
+
id: string;
|
|
4855
|
+
};
|
|
4856
|
+
query: unknown;
|
|
4857
|
+
headers: unknown;
|
|
4858
|
+
response: {
|
|
4859
|
+
200: {
|
|
4860
|
+
id: string;
|
|
4861
|
+
createdAt: Date;
|
|
4862
|
+
updatedAt: Date;
|
|
4863
|
+
depth: number;
|
|
4864
|
+
commissionRate: string;
|
|
4865
|
+
};
|
|
4866
|
+
422: {
|
|
4867
|
+
type: "validation";
|
|
4868
|
+
on: string;
|
|
4869
|
+
summary?: string;
|
|
4870
|
+
message?: string;
|
|
4871
|
+
found?: unknown;
|
|
4872
|
+
property?: string;
|
|
4873
|
+
expected?: string;
|
|
4874
|
+
};
|
|
4875
|
+
401: "Unauthorized";
|
|
4876
|
+
403: "Forbidden: Admins only";
|
|
4877
|
+
};
|
|
3683
4878
|
};
|
|
3684
4879
|
};
|
|
3685
4880
|
};
|
|
3686
4881
|
};
|
|
3687
|
-
};
|
|
3688
|
-
} & {
|
|
3689
|
-
admin: {
|
|
3690
|
-
shipping_address: {};
|
|
3691
4882
|
} & {
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
limit?: number | undefined;
|
|
3699
|
-
offset?: number | undefined;
|
|
3700
|
-
pageSize?: number | undefined;
|
|
3701
|
-
pageIndex?: number | undefined;
|
|
3702
|
-
};
|
|
3703
|
-
headers: {};
|
|
3704
|
-
response: {
|
|
3705
|
-
200: {
|
|
3706
|
-
data: {
|
|
4883
|
+
referrals: {
|
|
4884
|
+
"depth-configs": {
|
|
4885
|
+
":id": {
|
|
4886
|
+
delete: {
|
|
4887
|
+
body: unknown;
|
|
4888
|
+
params: {
|
|
3707
4889
|
id: string;
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
4890
|
+
};
|
|
4891
|
+
query: unknown;
|
|
4892
|
+
headers: unknown;
|
|
4893
|
+
response: {
|
|
4894
|
+
200: {
|
|
4895
|
+
success: boolean;
|
|
4896
|
+
};
|
|
4897
|
+
422: {
|
|
4898
|
+
type: "validation";
|
|
4899
|
+
on: string;
|
|
4900
|
+
summary?: string;
|
|
4901
|
+
message?: string;
|
|
4902
|
+
found?: unknown;
|
|
4903
|
+
property?: string;
|
|
4904
|
+
expected?: string;
|
|
4905
|
+
};
|
|
4906
|
+
401: "Unauthorized";
|
|
4907
|
+
403: "Forbidden: Admins only";
|
|
3722
4908
|
};
|
|
3723
4909
|
};
|
|
3724
|
-
422: {
|
|
3725
|
-
type: "validation";
|
|
3726
|
-
on: string;
|
|
3727
|
-
summary?: string;
|
|
3728
|
-
message?: string;
|
|
3729
|
-
found?: unknown;
|
|
3730
|
-
property?: string;
|
|
3731
|
-
expected?: string;
|
|
3732
|
-
};
|
|
3733
|
-
401: "Unauthorized";
|
|
3734
|
-
403: "Forbidden: Admins only";
|
|
3735
4910
|
};
|
|
3736
4911
|
};
|
|
3737
4912
|
};
|
|
3738
4913
|
};
|
|
3739
4914
|
} & {
|
|
3740
4915
|
admin: {
|
|
3741
|
-
|
|
4916
|
+
team: {};
|
|
3742
4917
|
} & {
|
|
3743
|
-
|
|
4918
|
+
team: {
|
|
3744
4919
|
summary: {
|
|
3745
4920
|
get: {
|
|
3746
4921
|
body: unknown;
|
|
3747
4922
|
params: {};
|
|
3748
4923
|
query: {
|
|
3749
|
-
limit?: number | undefined;
|
|
3750
|
-
offset?: number | undefined;
|
|
3751
|
-
pageSize?: number | undefined;
|
|
3752
|
-
pageIndex?: number | undefined;
|
|
3753
|
-
maxDepth?: number | undefined;
|
|
3754
4924
|
referralCode: string;
|
|
3755
4925
|
};
|
|
3756
4926
|
headers: unknown;
|
|
3757
4927
|
response: {
|
|
3758
4928
|
200: {
|
|
3759
|
-
referredBy?: string | undefined;
|
|
3760
4929
|
userId: string;
|
|
3761
4930
|
referralCode: string;
|
|
3762
4931
|
totalCount: number;
|
|
@@ -3780,24 +4949,30 @@ declare const app: Elysia<"/api", {
|
|
|
3780
4949
|
};
|
|
3781
4950
|
};
|
|
3782
4951
|
} & {
|
|
3783
|
-
|
|
4952
|
+
team: {
|
|
3784
4953
|
members: {
|
|
3785
4954
|
get: {
|
|
3786
4955
|
body: unknown;
|
|
3787
4956
|
params: {};
|
|
3788
4957
|
query: {
|
|
4958
|
+
depth?: number | undefined;
|
|
3789
4959
|
limit?: number | undefined;
|
|
3790
4960
|
offset?: number | undefined;
|
|
3791
4961
|
pageSize?: number | undefined;
|
|
3792
4962
|
pageIndex?: number | undefined;
|
|
3793
|
-
maxDepth?: number | undefined;
|
|
3794
4963
|
referralCode: string;
|
|
3795
4964
|
};
|
|
3796
4965
|
headers: unknown;
|
|
3797
4966
|
response: {
|
|
3798
4967
|
200: {
|
|
3799
4968
|
data: {
|
|
3800
|
-
|
|
4969
|
+
id: string;
|
|
4970
|
+
createdAt: Date;
|
|
4971
|
+
updatedAt: Date;
|
|
4972
|
+
depth: number;
|
|
4973
|
+
ancestorId: string;
|
|
4974
|
+
descendantId: string;
|
|
4975
|
+
descendant: {
|
|
3801
4976
|
email: string;
|
|
3802
4977
|
id: string;
|
|
3803
4978
|
name: string;
|
|
@@ -3816,7 +4991,14 @@ declare const app: Elysia<"/api", {
|
|
|
3816
4991
|
banReason: string | null;
|
|
3817
4992
|
banExpires: Date | null;
|
|
3818
4993
|
};
|
|
3819
|
-
|
|
4994
|
+
depthConfig: {
|
|
4995
|
+
id: string;
|
|
4996
|
+
createdAt: Date;
|
|
4997
|
+
updatedAt: Date;
|
|
4998
|
+
depth: number;
|
|
4999
|
+
commissionRate: string;
|
|
5000
|
+
} | null;
|
|
5001
|
+
directCount: number;
|
|
3820
5002
|
}[];
|
|
3821
5003
|
pagination: {
|
|
3822
5004
|
total: number;
|
|
@@ -3844,132 +5026,138 @@ declare const app: Elysia<"/api", {
|
|
|
3844
5026
|
};
|
|
3845
5027
|
} & {
|
|
3846
5028
|
admin: {
|
|
3847
|
-
|
|
3848
|
-
"depth-configs": {};
|
|
3849
|
-
};
|
|
5029
|
+
transfer: {};
|
|
3850
5030
|
} & {
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
5031
|
+
transfer: {
|
|
5032
|
+
get: {
|
|
5033
|
+
body: unknown;
|
|
5034
|
+
params: {};
|
|
5035
|
+
query: {
|
|
5036
|
+
limit?: number | undefined;
|
|
5037
|
+
offset?: number | undefined;
|
|
5038
|
+
pageSize?: number | undefined;
|
|
5039
|
+
pageIndex?: number | undefined;
|
|
5040
|
+
};
|
|
5041
|
+
headers: unknown;
|
|
5042
|
+
response: {
|
|
5043
|
+
200: {
|
|
5044
|
+
data: {
|
|
3863
5045
|
id: string;
|
|
3864
5046
|
createdAt: Date;
|
|
3865
5047
|
updatedAt: Date;
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
5048
|
+
assetId: string | null;
|
|
5049
|
+
amount: string;
|
|
5050
|
+
idempotencyKey: string;
|
|
5051
|
+
orderNo: string;
|
|
5052
|
+
targetAccountId: string | null;
|
|
5053
|
+
sourceAccountId: string | null;
|
|
5054
|
+
sourceUserId: string;
|
|
5055
|
+
targetUserId: string;
|
|
5056
|
+
}[];
|
|
5057
|
+
pagination: {
|
|
5058
|
+
total: number;
|
|
5059
|
+
pageSize: number;
|
|
5060
|
+
pageIndex: number;
|
|
5061
|
+
totalPages: number;
|
|
5062
|
+
hasNextPage: boolean;
|
|
3877
5063
|
};
|
|
3878
|
-
401: "Unauthorized";
|
|
3879
|
-
403: "Forbidden: Admins only";
|
|
3880
5064
|
};
|
|
5065
|
+
422: {
|
|
5066
|
+
type: "validation";
|
|
5067
|
+
on: string;
|
|
5068
|
+
summary?: string;
|
|
5069
|
+
message?: string;
|
|
5070
|
+
found?: unknown;
|
|
5071
|
+
property?: string;
|
|
5072
|
+
expected?: string;
|
|
5073
|
+
};
|
|
5074
|
+
401: "Unauthorized";
|
|
5075
|
+
403: "Forbidden: Admins only";
|
|
3881
5076
|
};
|
|
3882
5077
|
};
|
|
3883
5078
|
};
|
|
5079
|
+
};
|
|
5080
|
+
} & {
|
|
5081
|
+
admin: {
|
|
5082
|
+
trade_market: {};
|
|
3884
5083
|
} & {
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
body:
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
5084
|
+
trade_market: {
|
|
5085
|
+
markets: {
|
|
5086
|
+
post: {
|
|
5087
|
+
body: {
|
|
5088
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5089
|
+
pricingSource?: string | undefined;
|
|
5090
|
+
isBuyEnabled?: boolean | undefined;
|
|
5091
|
+
isSellEnabled?: boolean | undefined;
|
|
5092
|
+
maxBaseAmount?: string | null | undefined;
|
|
5093
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
5094
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
5095
|
+
maxSlippageBps?: string | undefined;
|
|
5096
|
+
name: string;
|
|
5097
|
+
baseAssetId: string;
|
|
5098
|
+
quoteAssetId: string;
|
|
5099
|
+
systemBaseAccountId: string;
|
|
5100
|
+
systemQuoteAccountId: string;
|
|
5101
|
+
minBaseAmount: string;
|
|
3896
5102
|
};
|
|
5103
|
+
params: {};
|
|
5104
|
+
query: unknown;
|
|
3897
5105
|
headers: unknown;
|
|
3898
5106
|
response: {
|
|
3899
5107
|
200: {
|
|
3900
|
-
data: {
|
|
3901
|
-
id: string;
|
|
3902
|
-
createdAt: Date;
|
|
3903
|
-
updatedAt: Date;
|
|
3904
|
-
depth: number;
|
|
3905
|
-
commissionRate: string;
|
|
3906
|
-
}[];
|
|
3907
|
-
pagination: {
|
|
3908
|
-
total: number;
|
|
3909
|
-
pageSize: number;
|
|
3910
|
-
pageIndex: number;
|
|
3911
|
-
totalPages: number;
|
|
3912
|
-
hasNextPage: boolean;
|
|
3913
|
-
};
|
|
3914
|
-
};
|
|
3915
|
-
422: {
|
|
3916
|
-
type: "validation";
|
|
3917
|
-
on: string;
|
|
3918
|
-
summary?: string;
|
|
3919
|
-
message?: string;
|
|
3920
|
-
found?: unknown;
|
|
3921
|
-
property?: string;
|
|
3922
|
-
expected?: string;
|
|
3923
|
-
};
|
|
3924
|
-
401: "Unauthorized";
|
|
3925
|
-
403: "Forbidden: Admins only";
|
|
3926
|
-
};
|
|
3927
|
-
};
|
|
3928
|
-
};
|
|
3929
|
-
};
|
|
3930
|
-
} & {
|
|
3931
|
-
referrals: {
|
|
3932
|
-
"depth-configs": {
|
|
3933
|
-
":id": {
|
|
3934
|
-
get: {
|
|
3935
|
-
body: unknown;
|
|
3936
|
-
params: {
|
|
3937
5108
|
id: string;
|
|
5109
|
+
name: string;
|
|
5110
|
+
createdAt: Date;
|
|
5111
|
+
updatedAt: Date;
|
|
5112
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5113
|
+
baseAssetId: string;
|
|
5114
|
+
quoteAssetId: string;
|
|
5115
|
+
pricingSource: string;
|
|
5116
|
+
systemBaseAccountId: string;
|
|
5117
|
+
systemQuoteAccountId: string;
|
|
5118
|
+
isBuyEnabled: boolean;
|
|
5119
|
+
isSellEnabled: boolean;
|
|
5120
|
+
minBaseAmount: string;
|
|
5121
|
+
maxBaseAmount: string | null;
|
|
5122
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5123
|
+
dailyUserSellBaseLimit: string | null;
|
|
5124
|
+
maxSlippageBps: string;
|
|
5125
|
+
};
|
|
5126
|
+
422: {
|
|
5127
|
+
type: "validation";
|
|
5128
|
+
on: string;
|
|
5129
|
+
summary?: string;
|
|
5130
|
+
message?: string;
|
|
5131
|
+
found?: unknown;
|
|
5132
|
+
property?: string;
|
|
5133
|
+
expected?: string;
|
|
3938
5134
|
};
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
response: {
|
|
3942
|
-
200: {
|
|
3943
|
-
id: string;
|
|
3944
|
-
createdAt: Date;
|
|
3945
|
-
updatedAt: Date;
|
|
3946
|
-
depth: number;
|
|
3947
|
-
commissionRate: string;
|
|
3948
|
-
};
|
|
3949
|
-
422: {
|
|
3950
|
-
type: "validation";
|
|
3951
|
-
on: string;
|
|
3952
|
-
summary?: string;
|
|
3953
|
-
message?: string;
|
|
3954
|
-
found?: unknown;
|
|
3955
|
-
property?: string;
|
|
3956
|
-
expected?: string;
|
|
3957
|
-
};
|
|
3958
|
-
401: "Unauthorized";
|
|
3959
|
-
403: "Forbidden: Admins only";
|
|
3960
|
-
};
|
|
5135
|
+
401: "Unauthorized";
|
|
5136
|
+
403: "Forbidden: Admins only";
|
|
3961
5137
|
};
|
|
3962
5138
|
};
|
|
3963
5139
|
};
|
|
3964
5140
|
};
|
|
3965
5141
|
} & {
|
|
3966
|
-
|
|
3967
|
-
|
|
5142
|
+
trade_market: {
|
|
5143
|
+
markets: {
|
|
3968
5144
|
":id": {
|
|
3969
5145
|
patch: {
|
|
3970
5146
|
body: {
|
|
3971
|
-
|
|
3972
|
-
|
|
5147
|
+
name?: string | undefined;
|
|
5148
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
5149
|
+
baseAssetId?: string | undefined;
|
|
5150
|
+
quoteAssetId?: string | undefined;
|
|
5151
|
+
pricingSource?: string | undefined;
|
|
5152
|
+
systemBaseAccountId?: string | undefined;
|
|
5153
|
+
systemQuoteAccountId?: string | undefined;
|
|
5154
|
+
isBuyEnabled?: boolean | undefined;
|
|
5155
|
+
isSellEnabled?: boolean | undefined;
|
|
5156
|
+
minBaseAmount?: string | undefined;
|
|
5157
|
+
maxBaseAmount?: string | null | undefined;
|
|
5158
|
+
dailyUserBuyBaseLimit?: string | null | undefined;
|
|
5159
|
+
dailyUserSellBaseLimit?: string | null | undefined;
|
|
5160
|
+
maxSlippageBps?: string | undefined;
|
|
3973
5161
|
};
|
|
3974
5162
|
params: {
|
|
3975
5163
|
id: string;
|
|
@@ -3979,10 +5167,22 @@ declare const app: Elysia<"/api", {
|
|
|
3979
5167
|
response: {
|
|
3980
5168
|
200: {
|
|
3981
5169
|
id: string;
|
|
5170
|
+
name: string;
|
|
3982
5171
|
createdAt: Date;
|
|
3983
5172
|
updatedAt: Date;
|
|
3984
|
-
|
|
3985
|
-
|
|
5173
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5174
|
+
baseAssetId: string;
|
|
5175
|
+
quoteAssetId: string;
|
|
5176
|
+
pricingSource: string;
|
|
5177
|
+
systemBaseAccountId: string;
|
|
5178
|
+
systemQuoteAccountId: string;
|
|
5179
|
+
isBuyEnabled: boolean;
|
|
5180
|
+
isSellEnabled: boolean;
|
|
5181
|
+
minBaseAmount: string;
|
|
5182
|
+
maxBaseAmount: string | null;
|
|
5183
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5184
|
+
dailyUserSellBaseLimit: string | null;
|
|
5185
|
+
maxSlippageBps: string;
|
|
3986
5186
|
};
|
|
3987
5187
|
422: {
|
|
3988
5188
|
type: "validation";
|
|
@@ -4001,125 +5201,186 @@ declare const app: Elysia<"/api", {
|
|
|
4001
5201
|
};
|
|
4002
5202
|
};
|
|
4003
5203
|
} & {
|
|
4004
|
-
|
|
4005
|
-
|
|
5204
|
+
trade_market: {
|
|
5205
|
+
markets: {
|
|
4006
5206
|
":id": {
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
query: unknown;
|
|
4013
|
-
headers: unknown;
|
|
4014
|
-
response: {
|
|
4015
|
-
200: {
|
|
4016
|
-
success: boolean;
|
|
5207
|
+
activate: {
|
|
5208
|
+
post: {
|
|
5209
|
+
body: unknown;
|
|
5210
|
+
params: {
|
|
5211
|
+
id: string;
|
|
4017
5212
|
};
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
5213
|
+
query: unknown;
|
|
5214
|
+
headers: unknown;
|
|
5215
|
+
response: {
|
|
5216
|
+
200: {
|
|
5217
|
+
createdAt: Date;
|
|
5218
|
+
updatedAt: Date;
|
|
5219
|
+
id: string;
|
|
5220
|
+
name: string;
|
|
5221
|
+
baseAssetId: string;
|
|
5222
|
+
quoteAssetId: string;
|
|
5223
|
+
pricingSource: string;
|
|
5224
|
+
systemBaseAccountId: string;
|
|
5225
|
+
systemQuoteAccountId: string;
|
|
5226
|
+
isBuyEnabled: boolean;
|
|
5227
|
+
isSellEnabled: boolean;
|
|
5228
|
+
minBaseAmount: string;
|
|
5229
|
+
maxBaseAmount: string | null;
|
|
5230
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5231
|
+
dailyUserSellBaseLimit: string | null;
|
|
5232
|
+
maxSlippageBps: string;
|
|
5233
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5234
|
+
};
|
|
5235
|
+
422: {
|
|
5236
|
+
type: "validation";
|
|
5237
|
+
on: string;
|
|
5238
|
+
summary?: string;
|
|
5239
|
+
message?: string;
|
|
5240
|
+
found?: unknown;
|
|
5241
|
+
property?: string;
|
|
5242
|
+
expected?: string;
|
|
5243
|
+
};
|
|
5244
|
+
401: "Unauthorized";
|
|
5245
|
+
403: "Forbidden: Admins only";
|
|
4026
5246
|
};
|
|
4027
|
-
401: "Unauthorized";
|
|
4028
|
-
403: "Forbidden: Admins only";
|
|
4029
5247
|
};
|
|
4030
5248
|
};
|
|
4031
5249
|
};
|
|
4032
5250
|
};
|
|
4033
5251
|
};
|
|
4034
|
-
};
|
|
4035
|
-
} & {
|
|
4036
|
-
admin: {
|
|
4037
|
-
team: {};
|
|
4038
5252
|
} & {
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
5253
|
+
trade_market: {
|
|
5254
|
+
markets: {
|
|
5255
|
+
":id": {
|
|
5256
|
+
pause: {
|
|
5257
|
+
post: {
|
|
5258
|
+
body: unknown;
|
|
5259
|
+
params: {
|
|
5260
|
+
id: string;
|
|
5261
|
+
};
|
|
5262
|
+
query: unknown;
|
|
5263
|
+
headers: unknown;
|
|
5264
|
+
response: {
|
|
5265
|
+
200: {
|
|
5266
|
+
createdAt: Date;
|
|
5267
|
+
updatedAt: Date;
|
|
5268
|
+
id: string;
|
|
5269
|
+
name: string;
|
|
5270
|
+
baseAssetId: string;
|
|
5271
|
+
quoteAssetId: string;
|
|
5272
|
+
pricingSource: string;
|
|
5273
|
+
systemBaseAccountId: string;
|
|
5274
|
+
systemQuoteAccountId: string;
|
|
5275
|
+
isBuyEnabled: boolean;
|
|
5276
|
+
isSellEnabled: boolean;
|
|
5277
|
+
minBaseAmount: string;
|
|
5278
|
+
maxBaseAmount: string | null;
|
|
5279
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5280
|
+
dailyUserSellBaseLimit: string | null;
|
|
5281
|
+
maxSlippageBps: string;
|
|
5282
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5283
|
+
};
|
|
5284
|
+
422: {
|
|
5285
|
+
type: "validation";
|
|
5286
|
+
on: string;
|
|
5287
|
+
summary?: string;
|
|
5288
|
+
message?: string;
|
|
5289
|
+
found?: unknown;
|
|
5290
|
+
property?: string;
|
|
5291
|
+
expected?: string;
|
|
5292
|
+
};
|
|
5293
|
+
401: "Unauthorized";
|
|
5294
|
+
403: "Forbidden: Admins only";
|
|
5295
|
+
};
|
|
4056
5296
|
};
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
5297
|
+
};
|
|
5298
|
+
};
|
|
5299
|
+
};
|
|
5300
|
+
};
|
|
5301
|
+
} & {
|
|
5302
|
+
trade_market: {
|
|
5303
|
+
markets: {
|
|
5304
|
+
":id": {
|
|
5305
|
+
end: {
|
|
5306
|
+
post: {
|
|
5307
|
+
body: unknown;
|
|
5308
|
+
params: {
|
|
5309
|
+
id: string;
|
|
5310
|
+
};
|
|
5311
|
+
query: unknown;
|
|
5312
|
+
headers: unknown;
|
|
5313
|
+
response: {
|
|
5314
|
+
200: {
|
|
5315
|
+
createdAt: Date;
|
|
5316
|
+
updatedAt: Date;
|
|
5317
|
+
id: string;
|
|
5318
|
+
name: string;
|
|
5319
|
+
baseAssetId: string;
|
|
5320
|
+
quoteAssetId: string;
|
|
5321
|
+
pricingSource: string;
|
|
5322
|
+
systemBaseAccountId: string;
|
|
5323
|
+
systemQuoteAccountId: string;
|
|
5324
|
+
isBuyEnabled: boolean;
|
|
5325
|
+
isSellEnabled: boolean;
|
|
5326
|
+
minBaseAmount: string;
|
|
5327
|
+
maxBaseAmount: string | null;
|
|
5328
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5329
|
+
dailyUserSellBaseLimit: string | null;
|
|
5330
|
+
maxSlippageBps: string;
|
|
5331
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5332
|
+
};
|
|
5333
|
+
422: {
|
|
5334
|
+
type: "validation";
|
|
5335
|
+
on: string;
|
|
5336
|
+
summary?: string;
|
|
5337
|
+
message?: string;
|
|
5338
|
+
found?: unknown;
|
|
5339
|
+
property?: string;
|
|
5340
|
+
expected?: string;
|
|
5341
|
+
};
|
|
5342
|
+
401: "Unauthorized";
|
|
5343
|
+
403: "Forbidden: Admins only";
|
|
5344
|
+
};
|
|
4065
5345
|
};
|
|
4066
|
-
401: "Unauthorized";
|
|
4067
|
-
403: "Forbidden: Admins only";
|
|
4068
5346
|
};
|
|
4069
5347
|
};
|
|
4070
5348
|
};
|
|
4071
5349
|
};
|
|
4072
5350
|
} & {
|
|
4073
|
-
|
|
4074
|
-
|
|
5351
|
+
trade_market: {
|
|
5352
|
+
markets: {
|
|
4075
5353
|
get: {
|
|
4076
5354
|
body: unknown;
|
|
4077
5355
|
params: {};
|
|
4078
5356
|
query: {
|
|
4079
|
-
|
|
5357
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
4080
5358
|
limit?: number | undefined;
|
|
4081
5359
|
offset?: number | undefined;
|
|
4082
5360
|
pageSize?: number | undefined;
|
|
4083
5361
|
pageIndex?: number | undefined;
|
|
4084
|
-
referralCode: string;
|
|
4085
5362
|
};
|
|
4086
5363
|
headers: unknown;
|
|
4087
5364
|
response: {
|
|
4088
5365
|
200: {
|
|
4089
5366
|
data: {
|
|
4090
5367
|
id: string;
|
|
5368
|
+
name: string;
|
|
4091
5369
|
createdAt: Date;
|
|
4092
5370
|
updatedAt: Date;
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
displayUsername: string | null;
|
|
4107
|
-
isAnonymous: boolean | null;
|
|
4108
|
-
phoneNumber: string | null;
|
|
4109
|
-
phoneNumberVerified: boolean | null;
|
|
4110
|
-
role: string | null;
|
|
4111
|
-
banned: boolean | null;
|
|
4112
|
-
banReason: string | null;
|
|
4113
|
-
banExpires: Date | null;
|
|
4114
|
-
};
|
|
4115
|
-
depthConfig: {
|
|
4116
|
-
id: string;
|
|
4117
|
-
createdAt: Date;
|
|
4118
|
-
updatedAt: Date;
|
|
4119
|
-
depth: number;
|
|
4120
|
-
commissionRate: string;
|
|
4121
|
-
} | null;
|
|
4122
|
-
directCount: number;
|
|
5371
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
5372
|
+
baseAssetId: string;
|
|
5373
|
+
quoteAssetId: string;
|
|
5374
|
+
pricingSource: string;
|
|
5375
|
+
systemBaseAccountId: string;
|
|
5376
|
+
systemQuoteAccountId: string;
|
|
5377
|
+
isBuyEnabled: boolean;
|
|
5378
|
+
isSellEnabled: boolean;
|
|
5379
|
+
minBaseAmount: string;
|
|
5380
|
+
maxBaseAmount: string | null;
|
|
5381
|
+
dailyUserBuyBaseLimit: string | null;
|
|
5382
|
+
dailyUserSellBaseLimit: string | null;
|
|
5383
|
+
maxSlippageBps: string;
|
|
4123
5384
|
}[];
|
|
4124
5385
|
pagination: {
|
|
4125
5386
|
total: number;
|
|
@@ -4144,56 +5405,69 @@ declare const app: Elysia<"/api", {
|
|
|
4144
5405
|
};
|
|
4145
5406
|
};
|
|
4146
5407
|
};
|
|
4147
|
-
};
|
|
4148
|
-
} & {
|
|
4149
|
-
admin: {
|
|
4150
|
-
transfer: {};
|
|
4151
5408
|
} & {
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
id: string;
|
|
4167
|
-
createdAt: Date;
|
|
4168
|
-
updatedAt: Date;
|
|
4169
|
-
assetId: string | null;
|
|
4170
|
-
amount: string;
|
|
4171
|
-
idempotencyKey: string;
|
|
4172
|
-
orderNo: string;
|
|
4173
|
-
targetAccountId: string | null;
|
|
4174
|
-
sourceAccountId: string | null;
|
|
4175
|
-
sourceUserId: string;
|
|
4176
|
-
targetUserId: string;
|
|
4177
|
-
}[];
|
|
4178
|
-
pagination: {
|
|
4179
|
-
total: number;
|
|
4180
|
-
pageSize: number;
|
|
4181
|
-
pageIndex: number;
|
|
4182
|
-
totalPages: number;
|
|
4183
|
-
hasNextPage: boolean;
|
|
4184
|
-
};
|
|
5409
|
+
trade_market: {
|
|
5410
|
+
orders: {
|
|
5411
|
+
get: {
|
|
5412
|
+
body: unknown;
|
|
5413
|
+
params: {};
|
|
5414
|
+
query: {
|
|
5415
|
+
userId?: string | undefined;
|
|
5416
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
5417
|
+
marketId?: string | undefined;
|
|
5418
|
+
side?: "buy" | "sell" | undefined;
|
|
5419
|
+
limit?: number | undefined;
|
|
5420
|
+
offset?: number | undefined;
|
|
5421
|
+
pageSize?: number | undefined;
|
|
5422
|
+
pageIndex?: number | undefined;
|
|
4185
5423
|
};
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
5424
|
+
headers: unknown;
|
|
5425
|
+
response: {
|
|
5426
|
+
200: {
|
|
5427
|
+
data: {
|
|
5428
|
+
id: string;
|
|
5429
|
+
createdAt: Date;
|
|
5430
|
+
updatedAt: Date;
|
|
5431
|
+
userId: string;
|
|
5432
|
+
status: "created" | "completed" | "failed";
|
|
5433
|
+
idempotencyKey: string;
|
|
5434
|
+
orderNo: string;
|
|
5435
|
+
priceSnapshot: string;
|
|
5436
|
+
priceEffectiveAtSnapshot: Date;
|
|
5437
|
+
failureCode: string | null;
|
|
5438
|
+
failureReason: string | null;
|
|
5439
|
+
marketId: string;
|
|
5440
|
+
side: "buy" | "sell";
|
|
5441
|
+
baseAmount: string;
|
|
5442
|
+
quoteAmount: string;
|
|
5443
|
+
pricingSourceSnapshot: string;
|
|
5444
|
+
userBaseAccountId: string;
|
|
5445
|
+
userQuoteAccountId: string;
|
|
5446
|
+
systemBaseAccountIdSnapshot: string;
|
|
5447
|
+
systemQuoteAccountIdSnapshot: string;
|
|
5448
|
+
userDebitLedgerEntryId: string | null;
|
|
5449
|
+
userCreditLedgerEntryId: string | null;
|
|
5450
|
+
}[];
|
|
5451
|
+
pagination: {
|
|
5452
|
+
total: number;
|
|
5453
|
+
pageSize: number;
|
|
5454
|
+
pageIndex: number;
|
|
5455
|
+
totalPages: number;
|
|
5456
|
+
hasNextPage: boolean;
|
|
5457
|
+
};
|
|
5458
|
+
};
|
|
5459
|
+
422: {
|
|
5460
|
+
type: "validation";
|
|
5461
|
+
on: string;
|
|
5462
|
+
summary?: string;
|
|
5463
|
+
message?: string;
|
|
5464
|
+
found?: unknown;
|
|
5465
|
+
property?: string;
|
|
5466
|
+
expected?: string;
|
|
5467
|
+
};
|
|
5468
|
+
401: "Unauthorized";
|
|
5469
|
+
403: "Forbidden: Admins only";
|
|
4194
5470
|
};
|
|
4195
|
-
401: "Unauthorized";
|
|
4196
|
-
403: "Forbidden: Admins only";
|
|
4197
5471
|
};
|
|
4198
5472
|
};
|
|
4199
5473
|
};
|
|
@@ -5288,7 +6562,7 @@ declare const app: Elysia<"/api", {
|
|
|
5288
6562
|
params: {};
|
|
5289
6563
|
query: {
|
|
5290
6564
|
userId?: string | undefined;
|
|
5291
|
-
status?: "pending" | "
|
|
6565
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
5292
6566
|
planId?: string | undefined;
|
|
5293
6567
|
limit?: number | undefined;
|
|
5294
6568
|
offset?: number | undefined;
|
|
@@ -5303,7 +6577,7 @@ declare const app: Elysia<"/api", {
|
|
|
5303
6577
|
createdAt: Date;
|
|
5304
6578
|
updatedAt: Date;
|
|
5305
6579
|
userId: string;
|
|
5306
|
-
status: "pending" | "
|
|
6580
|
+
status: "pending" | "completed" | "failed";
|
|
5307
6581
|
amount: string;
|
|
5308
6582
|
idempotencyKey: string;
|
|
5309
6583
|
ledgerEntryId: string | null;
|
|
@@ -5342,7 +6616,7 @@ declare const app: Elysia<"/api", {
|
|
|
5342
6616
|
params: {};
|
|
5343
6617
|
query: {
|
|
5344
6618
|
userId?: string | undefined;
|
|
5345
|
-
status?: "pending" | "
|
|
6619
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
5346
6620
|
planId?: string | undefined;
|
|
5347
6621
|
limit?: number | undefined;
|
|
5348
6622
|
offset?: number | undefined;
|
|
@@ -5357,7 +6631,7 @@ declare const app: Elysia<"/api", {
|
|
|
5357
6631
|
createdAt: Date;
|
|
5358
6632
|
updatedAt: Date;
|
|
5359
6633
|
userId: string;
|
|
5360
|
-
status: "pending" | "
|
|
6634
|
+
status: "pending" | "completed" | "failed";
|
|
5361
6635
|
idempotencyKey: string;
|
|
5362
6636
|
planId: string;
|
|
5363
6637
|
subscriptionId: string;
|
|
@@ -6679,47 +7953,308 @@ declare const app: Elysia<"/api", {
|
|
|
6679
7953
|
};
|
|
6680
7954
|
};
|
|
6681
7955
|
} & {
|
|
6682
|
-
assets: {
|
|
6683
|
-
":assetId": {
|
|
6684
|
-
overview: {
|
|
7956
|
+
assets: {
|
|
7957
|
+
":assetId": {
|
|
7958
|
+
overview: {
|
|
7959
|
+
get: {
|
|
7960
|
+
body: unknown;
|
|
7961
|
+
params: {
|
|
7962
|
+
assetId: string;
|
|
7963
|
+
};
|
|
7964
|
+
query: {
|
|
7965
|
+
quoteAsset?: string | undefined;
|
|
7966
|
+
days?: number | undefined;
|
|
7967
|
+
};
|
|
7968
|
+
headers: unknown;
|
|
7969
|
+
response: {
|
|
7970
|
+
200: {
|
|
7971
|
+
asset: {
|
|
7972
|
+
symbol: string;
|
|
7973
|
+
id: string;
|
|
7974
|
+
name: string;
|
|
7975
|
+
code: string;
|
|
7976
|
+
iconUrl: string;
|
|
7977
|
+
category: "FIAT" | "CRYPTO" | "POINT" | "RWA";
|
|
7978
|
+
isActive: boolean;
|
|
7979
|
+
precision: number;
|
|
7980
|
+
};
|
|
7981
|
+
quoteAsset: string;
|
|
7982
|
+
totalValuation: string;
|
|
7983
|
+
quantity: string;
|
|
7984
|
+
curve: {
|
|
7985
|
+
at: Date;
|
|
7986
|
+
value: string;
|
|
7987
|
+
}[];
|
|
7988
|
+
accountDistribution: {
|
|
7989
|
+
ledgerAccountTypeId: string;
|
|
7990
|
+
ledgerAccountId: string;
|
|
7991
|
+
quantity: string;
|
|
7992
|
+
ledgerAccountTypeKey: string;
|
|
7993
|
+
ledgerAccountTypeName: string;
|
|
7994
|
+
valuation: string;
|
|
7995
|
+
proportion: string;
|
|
7996
|
+
}[];
|
|
7997
|
+
};
|
|
7998
|
+
422: {
|
|
7999
|
+
type: "validation";
|
|
8000
|
+
on: string;
|
|
8001
|
+
summary?: string;
|
|
8002
|
+
message?: string;
|
|
8003
|
+
found?: unknown;
|
|
8004
|
+
property?: string;
|
|
8005
|
+
expected?: string;
|
|
8006
|
+
};
|
|
8007
|
+
401: "Unauthorized";
|
|
8008
|
+
};
|
|
8009
|
+
};
|
|
8010
|
+
};
|
|
8011
|
+
};
|
|
8012
|
+
};
|
|
8013
|
+
};
|
|
8014
|
+
} & {
|
|
8015
|
+
api: {
|
|
8016
|
+
asset_convert_product: {};
|
|
8017
|
+
} & {
|
|
8018
|
+
asset_convert_product: {
|
|
8019
|
+
products: {
|
|
8020
|
+
get: {
|
|
8021
|
+
body: unknown;
|
|
8022
|
+
params: {};
|
|
8023
|
+
query: {
|
|
8024
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
8025
|
+
productCategoryKey?: "gold" | "gov_bond" | "real_estate" | "corporate_credit" | undefined;
|
|
8026
|
+
limit?: number | undefined;
|
|
8027
|
+
offset?: number | undefined;
|
|
8028
|
+
pageSize?: number | undefined;
|
|
8029
|
+
pageIndex?: number | undefined;
|
|
8030
|
+
};
|
|
8031
|
+
headers: unknown;
|
|
8032
|
+
response: {
|
|
8033
|
+
200: {
|
|
8034
|
+
data: {
|
|
8035
|
+
id: string;
|
|
8036
|
+
name: string;
|
|
8037
|
+
createdAt: Date;
|
|
8038
|
+
updatedAt: Date;
|
|
8039
|
+
description: string | null;
|
|
8040
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
8041
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
8042
|
+
targetAssetId: string;
|
|
8043
|
+
payAssetId: string;
|
|
8044
|
+
defaultReceiveAccountTypeId: string;
|
|
8045
|
+
minPayAmount: string;
|
|
8046
|
+
}[];
|
|
8047
|
+
pagination: {
|
|
8048
|
+
total: number;
|
|
8049
|
+
pageSize: number;
|
|
8050
|
+
pageIndex: number;
|
|
8051
|
+
totalPages: number;
|
|
8052
|
+
hasNextPage: boolean;
|
|
8053
|
+
};
|
|
8054
|
+
};
|
|
8055
|
+
422: {
|
|
8056
|
+
type: "validation";
|
|
8057
|
+
on: string;
|
|
8058
|
+
summary?: string;
|
|
8059
|
+
message?: string;
|
|
8060
|
+
found?: unknown;
|
|
8061
|
+
property?: string;
|
|
8062
|
+
expected?: string;
|
|
8063
|
+
};
|
|
8064
|
+
401: "Unauthorized";
|
|
8065
|
+
};
|
|
8066
|
+
};
|
|
8067
|
+
};
|
|
8068
|
+
};
|
|
8069
|
+
} & {
|
|
8070
|
+
asset_convert_product: {
|
|
8071
|
+
products: {
|
|
8072
|
+
":id": {
|
|
8073
|
+
get: {
|
|
8074
|
+
body: unknown;
|
|
8075
|
+
params: {
|
|
8076
|
+
id: string;
|
|
8077
|
+
};
|
|
8078
|
+
query: unknown;
|
|
8079
|
+
headers: unknown;
|
|
8080
|
+
response: {
|
|
8081
|
+
200: {
|
|
8082
|
+
id: string;
|
|
8083
|
+
name: string;
|
|
8084
|
+
createdAt: Date;
|
|
8085
|
+
updatedAt: Date;
|
|
8086
|
+
description: string | null;
|
|
8087
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
8088
|
+
productCategoryKey: "gold" | "gov_bond" | "real_estate" | "corporate_credit";
|
|
8089
|
+
targetAssetId: string;
|
|
8090
|
+
payAssetId: string;
|
|
8091
|
+
defaultReceiveAccountTypeId: string;
|
|
8092
|
+
minPayAmount: string;
|
|
8093
|
+
};
|
|
8094
|
+
422: {
|
|
8095
|
+
type: "validation";
|
|
8096
|
+
on: string;
|
|
8097
|
+
summary?: string;
|
|
8098
|
+
message?: string;
|
|
8099
|
+
found?: unknown;
|
|
8100
|
+
property?: string;
|
|
8101
|
+
expected?: string;
|
|
8102
|
+
};
|
|
8103
|
+
401: "Unauthorized";
|
|
8104
|
+
};
|
|
8105
|
+
};
|
|
8106
|
+
};
|
|
8107
|
+
};
|
|
8108
|
+
};
|
|
8109
|
+
} & {
|
|
8110
|
+
asset_convert_product: {
|
|
8111
|
+
orders: {
|
|
8112
|
+
post: {
|
|
8113
|
+
body: {
|
|
8114
|
+
idempotencyKey: string;
|
|
8115
|
+
productId: string;
|
|
8116
|
+
payAmount: string;
|
|
8117
|
+
sourcePayAccountId: string;
|
|
8118
|
+
};
|
|
8119
|
+
params: {};
|
|
8120
|
+
query: unknown;
|
|
8121
|
+
headers: unknown;
|
|
8122
|
+
response: {
|
|
8123
|
+
200: {
|
|
8124
|
+
id: string;
|
|
8125
|
+
createdAt: Date;
|
|
8126
|
+
updatedAt: Date;
|
|
8127
|
+
userId: string;
|
|
8128
|
+
status: "created" | "completed" | "failed";
|
|
8129
|
+
idempotencyKey: string;
|
|
8130
|
+
orderNo: string;
|
|
8131
|
+
productId: string;
|
|
8132
|
+
payAssetIdSnapshot: string;
|
|
8133
|
+
targetAssetIdSnapshot: string;
|
|
8134
|
+
quoteAssetIdSnapshot: string;
|
|
8135
|
+
priceSnapshot: string;
|
|
8136
|
+
priceEffectiveAtSnapshot: Date;
|
|
8137
|
+
payAmount: string;
|
|
8138
|
+
sourcePayAccountId: string;
|
|
8139
|
+
targetAmount: string;
|
|
8140
|
+
settlementModeSnapshot: "available" | "locked";
|
|
8141
|
+
receiveAccountId: string;
|
|
8142
|
+
debitLedgerEntryId: string | null;
|
|
8143
|
+
creditLedgerEntryId: string | null;
|
|
8144
|
+
failureCode: string | null;
|
|
8145
|
+
failureReason: string | null;
|
|
8146
|
+
};
|
|
8147
|
+
422: {
|
|
8148
|
+
type: "validation";
|
|
8149
|
+
on: string;
|
|
8150
|
+
summary?: string;
|
|
8151
|
+
message?: string;
|
|
8152
|
+
found?: unknown;
|
|
8153
|
+
property?: string;
|
|
8154
|
+
expected?: string;
|
|
8155
|
+
};
|
|
8156
|
+
401: "Unauthorized";
|
|
8157
|
+
};
|
|
8158
|
+
};
|
|
8159
|
+
};
|
|
8160
|
+
};
|
|
8161
|
+
} & {
|
|
8162
|
+
asset_convert_product: {
|
|
8163
|
+
orders: {
|
|
8164
|
+
get: {
|
|
8165
|
+
body: unknown;
|
|
8166
|
+
params: {};
|
|
8167
|
+
query: {
|
|
8168
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
8169
|
+
limit?: number | undefined;
|
|
8170
|
+
offset?: number | undefined;
|
|
8171
|
+
pageSize?: number | undefined;
|
|
8172
|
+
pageIndex?: number | undefined;
|
|
8173
|
+
};
|
|
8174
|
+
headers: unknown;
|
|
8175
|
+
response: {
|
|
8176
|
+
200: {
|
|
8177
|
+
data: {
|
|
8178
|
+
id: string;
|
|
8179
|
+
createdAt: Date;
|
|
8180
|
+
updatedAt: Date;
|
|
8181
|
+
userId: string;
|
|
8182
|
+
status: "created" | "completed" | "failed";
|
|
8183
|
+
idempotencyKey: string;
|
|
8184
|
+
orderNo: string;
|
|
8185
|
+
productId: string;
|
|
8186
|
+
payAssetIdSnapshot: string;
|
|
8187
|
+
targetAssetIdSnapshot: string;
|
|
8188
|
+
quoteAssetIdSnapshot: string;
|
|
8189
|
+
priceSnapshot: string;
|
|
8190
|
+
priceEffectiveAtSnapshot: Date;
|
|
8191
|
+
payAmount: string;
|
|
8192
|
+
sourcePayAccountId: string;
|
|
8193
|
+
targetAmount: string;
|
|
8194
|
+
settlementModeSnapshot: "available" | "locked";
|
|
8195
|
+
receiveAccountId: string;
|
|
8196
|
+
debitLedgerEntryId: string | null;
|
|
8197
|
+
creditLedgerEntryId: string | null;
|
|
8198
|
+
failureCode: string | null;
|
|
8199
|
+
failureReason: string | null;
|
|
8200
|
+
}[];
|
|
8201
|
+
pagination: {
|
|
8202
|
+
total: number;
|
|
8203
|
+
pageSize: number;
|
|
8204
|
+
pageIndex: number;
|
|
8205
|
+
totalPages: number;
|
|
8206
|
+
hasNextPage: boolean;
|
|
8207
|
+
};
|
|
8208
|
+
};
|
|
8209
|
+
422: {
|
|
8210
|
+
type: "validation";
|
|
8211
|
+
on: string;
|
|
8212
|
+
summary?: string;
|
|
8213
|
+
message?: string;
|
|
8214
|
+
found?: unknown;
|
|
8215
|
+
property?: string;
|
|
8216
|
+
expected?: string;
|
|
8217
|
+
};
|
|
8218
|
+
401: "Unauthorized";
|
|
8219
|
+
};
|
|
8220
|
+
};
|
|
8221
|
+
};
|
|
8222
|
+
};
|
|
8223
|
+
} & {
|
|
8224
|
+
asset_convert_product: {
|
|
8225
|
+
orders: {
|
|
8226
|
+
":id": {
|
|
6685
8227
|
get: {
|
|
6686
8228
|
body: unknown;
|
|
6687
8229
|
params: {
|
|
6688
|
-
|
|
6689
|
-
};
|
|
6690
|
-
query: {
|
|
6691
|
-
quoteAsset?: string | undefined;
|
|
6692
|
-
days?: number | undefined;
|
|
8230
|
+
id: string;
|
|
6693
8231
|
};
|
|
8232
|
+
query: unknown;
|
|
6694
8233
|
headers: unknown;
|
|
6695
8234
|
response: {
|
|
6696
8235
|
200: {
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
ledgerAccountTypeName: string;
|
|
6720
|
-
valuation: string;
|
|
6721
|
-
proportion: string;
|
|
6722
|
-
}[];
|
|
8236
|
+
id: string;
|
|
8237
|
+
createdAt: Date;
|
|
8238
|
+
updatedAt: Date;
|
|
8239
|
+
userId: string;
|
|
8240
|
+
status: "created" | "completed" | "failed";
|
|
8241
|
+
idempotencyKey: string;
|
|
8242
|
+
orderNo: string;
|
|
8243
|
+
productId: string;
|
|
8244
|
+
payAssetIdSnapshot: string;
|
|
8245
|
+
targetAssetIdSnapshot: string;
|
|
8246
|
+
quoteAssetIdSnapshot: string;
|
|
8247
|
+
priceSnapshot: string;
|
|
8248
|
+
priceEffectiveAtSnapshot: Date;
|
|
8249
|
+
payAmount: string;
|
|
8250
|
+
sourcePayAccountId: string;
|
|
8251
|
+
targetAmount: string;
|
|
8252
|
+
settlementModeSnapshot: "available" | "locked";
|
|
8253
|
+
receiveAccountId: string;
|
|
8254
|
+
debitLedgerEntryId: string | null;
|
|
8255
|
+
creditLedgerEntryId: string | null;
|
|
8256
|
+
failureCode: string | null;
|
|
8257
|
+
failureReason: string | null;
|
|
6723
8258
|
};
|
|
6724
8259
|
422: {
|
|
6725
8260
|
type: "validation";
|
|
@@ -7533,88 +9068,271 @@ declare const app: Elysia<"/api", {
|
|
|
7533
9068
|
};
|
|
7534
9069
|
} & {
|
|
7535
9070
|
api: {
|
|
7536
|
-
checkIns: {};
|
|
7537
|
-
} & {
|
|
7538
|
-
checkIns: {
|
|
7539
|
-
post: {
|
|
7540
|
-
body: {
|
|
7541
|
-
timezone?: string | undefined;
|
|
7542
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
7543
|
-
};
|
|
7544
|
-
params: {};
|
|
7545
|
-
query: unknown;
|
|
7546
|
-
headers: unknown;
|
|
7547
|
-
response: {
|
|
7548
|
-
200: {
|
|
7549
|
-
id: string;
|
|
7550
|
-
createdAt: Date;
|
|
7551
|
-
updatedAt: Date;
|
|
7552
|
-
userId: string;
|
|
7553
|
-
checkInType: "app" | "meeting";
|
|
7554
|
-
checkInAt: Date;
|
|
7555
|
-
checkInTimezone: string | null;
|
|
7556
|
-
checkInOffsetMinutes: number | null;
|
|
7557
|
-
checkInLocalDate: string | null;
|
|
7558
|
-
};
|
|
7559
|
-
422: {
|
|
7560
|
-
type: "validation";
|
|
7561
|
-
on: string;
|
|
7562
|
-
summary?: string;
|
|
7563
|
-
message?: string;
|
|
7564
|
-
found?: unknown;
|
|
7565
|
-
property?: string;
|
|
7566
|
-
expected?: string;
|
|
7567
|
-
};
|
|
7568
|
-
401: "Unauthorized";
|
|
7569
|
-
};
|
|
7570
|
-
};
|
|
7571
|
-
};
|
|
9071
|
+
checkIns: {};
|
|
9072
|
+
} & {
|
|
9073
|
+
checkIns: {
|
|
9074
|
+
post: {
|
|
9075
|
+
body: {
|
|
9076
|
+
timezone?: string | undefined;
|
|
9077
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9078
|
+
};
|
|
9079
|
+
params: {};
|
|
9080
|
+
query: unknown;
|
|
9081
|
+
headers: unknown;
|
|
9082
|
+
response: {
|
|
9083
|
+
200: {
|
|
9084
|
+
id: string;
|
|
9085
|
+
createdAt: Date;
|
|
9086
|
+
updatedAt: Date;
|
|
9087
|
+
userId: string;
|
|
9088
|
+
checkInType: "app" | "meeting";
|
|
9089
|
+
checkInAt: Date;
|
|
9090
|
+
checkInTimezone: string | null;
|
|
9091
|
+
checkInOffsetMinutes: number | null;
|
|
9092
|
+
checkInLocalDate: string | null;
|
|
9093
|
+
};
|
|
9094
|
+
422: {
|
|
9095
|
+
type: "validation";
|
|
9096
|
+
on: string;
|
|
9097
|
+
summary?: string;
|
|
9098
|
+
message?: string;
|
|
9099
|
+
found?: unknown;
|
|
9100
|
+
property?: string;
|
|
9101
|
+
expected?: string;
|
|
9102
|
+
};
|
|
9103
|
+
401: "Unauthorized";
|
|
9104
|
+
};
|
|
9105
|
+
};
|
|
9106
|
+
};
|
|
9107
|
+
} & {
|
|
9108
|
+
checkIns: {
|
|
9109
|
+
get: {
|
|
9110
|
+
body: unknown;
|
|
9111
|
+
params: {};
|
|
9112
|
+
query: {
|
|
9113
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9114
|
+
startDate?: Date | undefined;
|
|
9115
|
+
limit?: number | undefined;
|
|
9116
|
+
offset?: number | undefined;
|
|
9117
|
+
pageSize?: number | undefined;
|
|
9118
|
+
pageIndex?: number | undefined;
|
|
9119
|
+
endDate?: Date | undefined;
|
|
9120
|
+
};
|
|
9121
|
+
headers: unknown;
|
|
9122
|
+
response: {
|
|
9123
|
+
200: {
|
|
9124
|
+
data: {
|
|
9125
|
+
user: {
|
|
9126
|
+
email: string;
|
|
9127
|
+
id: string;
|
|
9128
|
+
name: string;
|
|
9129
|
+
emailVerified: boolean;
|
|
9130
|
+
image: string | null;
|
|
9131
|
+
createdAt: Date;
|
|
9132
|
+
updatedAt: Date;
|
|
9133
|
+
twoFactorEnabled: boolean | null;
|
|
9134
|
+
username: string | null;
|
|
9135
|
+
displayUsername: string | null;
|
|
9136
|
+
isAnonymous: boolean | null;
|
|
9137
|
+
phoneNumber: string | null;
|
|
9138
|
+
phoneNumberVerified: boolean | null;
|
|
9139
|
+
role: string | null;
|
|
9140
|
+
banned: boolean | null;
|
|
9141
|
+
banReason: string | null;
|
|
9142
|
+
banExpires: Date | null;
|
|
9143
|
+
};
|
|
9144
|
+
id: string;
|
|
9145
|
+
createdAt: Date;
|
|
9146
|
+
updatedAt: Date;
|
|
9147
|
+
userId: string;
|
|
9148
|
+
checkInType: "app" | "meeting";
|
|
9149
|
+
checkInAt: Date;
|
|
9150
|
+
checkInTimezone: string | null;
|
|
9151
|
+
checkInOffsetMinutes: number | null;
|
|
9152
|
+
checkInLocalDate: string | null;
|
|
9153
|
+
}[];
|
|
9154
|
+
pagination: {
|
|
9155
|
+
total: number;
|
|
9156
|
+
pageSize: number;
|
|
9157
|
+
pageIndex: number;
|
|
9158
|
+
totalPages: number;
|
|
9159
|
+
hasNextPage: boolean;
|
|
9160
|
+
};
|
|
9161
|
+
};
|
|
9162
|
+
422: {
|
|
9163
|
+
type: "validation";
|
|
9164
|
+
on: string;
|
|
9165
|
+
summary?: string;
|
|
9166
|
+
message?: string;
|
|
9167
|
+
found?: unknown;
|
|
9168
|
+
property?: string;
|
|
9169
|
+
expected?: string;
|
|
9170
|
+
};
|
|
9171
|
+
401: "Unauthorized";
|
|
9172
|
+
};
|
|
9173
|
+
};
|
|
9174
|
+
};
|
|
9175
|
+
} & {
|
|
9176
|
+
checkIns: {
|
|
9177
|
+
total_days: {
|
|
9178
|
+
get: {
|
|
9179
|
+
body: unknown;
|
|
9180
|
+
params: {};
|
|
9181
|
+
query: {
|
|
9182
|
+
timezone?: string | undefined;
|
|
9183
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9184
|
+
};
|
|
9185
|
+
headers: unknown;
|
|
9186
|
+
response: {
|
|
9187
|
+
200: {
|
|
9188
|
+
totalDays: number;
|
|
9189
|
+
};
|
|
9190
|
+
422: {
|
|
9191
|
+
type: "validation";
|
|
9192
|
+
on: string;
|
|
9193
|
+
summary?: string;
|
|
9194
|
+
message?: string;
|
|
9195
|
+
found?: unknown;
|
|
9196
|
+
property?: string;
|
|
9197
|
+
expected?: string;
|
|
9198
|
+
};
|
|
9199
|
+
401: "Unauthorized";
|
|
9200
|
+
};
|
|
9201
|
+
};
|
|
9202
|
+
};
|
|
9203
|
+
};
|
|
9204
|
+
} & {
|
|
9205
|
+
checkIns: {
|
|
9206
|
+
current_streak: {
|
|
9207
|
+
get: {
|
|
9208
|
+
body: unknown;
|
|
9209
|
+
params: {};
|
|
9210
|
+
query: {
|
|
9211
|
+
timezone?: string | undefined;
|
|
9212
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9213
|
+
};
|
|
9214
|
+
headers: unknown;
|
|
9215
|
+
response: {
|
|
9216
|
+
200: {
|
|
9217
|
+
currentStreakDays: number;
|
|
9218
|
+
};
|
|
9219
|
+
422: {
|
|
9220
|
+
type: "validation";
|
|
9221
|
+
on: string;
|
|
9222
|
+
summary?: string;
|
|
9223
|
+
message?: string;
|
|
9224
|
+
found?: unknown;
|
|
9225
|
+
property?: string;
|
|
9226
|
+
expected?: string;
|
|
9227
|
+
};
|
|
9228
|
+
401: "Unauthorized";
|
|
9229
|
+
};
|
|
9230
|
+
};
|
|
9231
|
+
};
|
|
9232
|
+
};
|
|
9233
|
+
} & {
|
|
9234
|
+
checkIns: {
|
|
9235
|
+
today: {
|
|
9236
|
+
get: {
|
|
9237
|
+
body: unknown;
|
|
9238
|
+
params: {};
|
|
9239
|
+
query: {
|
|
9240
|
+
checkInType?: "app" | "meeting" | undefined;
|
|
9241
|
+
timezone: string;
|
|
9242
|
+
};
|
|
9243
|
+
headers: unknown;
|
|
9244
|
+
response: {
|
|
9245
|
+
200: {
|
|
9246
|
+
checkedInToday: boolean;
|
|
9247
|
+
};
|
|
9248
|
+
422: {
|
|
9249
|
+
type: "validation";
|
|
9250
|
+
on: string;
|
|
9251
|
+
summary?: string;
|
|
9252
|
+
message?: string;
|
|
9253
|
+
found?: unknown;
|
|
9254
|
+
property?: string;
|
|
9255
|
+
expected?: string;
|
|
9256
|
+
};
|
|
9257
|
+
401: "Unauthorized";
|
|
9258
|
+
};
|
|
9259
|
+
};
|
|
9260
|
+
};
|
|
9261
|
+
};
|
|
9262
|
+
};
|
|
9263
|
+
} & {
|
|
9264
|
+
api: {
|
|
9265
|
+
ledger_account_transfer: {};
|
|
9266
|
+
} & {
|
|
9267
|
+
ledger_account_transfer: {
|
|
9268
|
+
ledger_account: {
|
|
9269
|
+
post: {
|
|
9270
|
+
body: {
|
|
9271
|
+
amount: string;
|
|
9272
|
+
targetAccountId: string;
|
|
9273
|
+
sourceAccountId: string;
|
|
9274
|
+
transactionPassword: string;
|
|
9275
|
+
};
|
|
9276
|
+
params: {};
|
|
9277
|
+
query: unknown;
|
|
9278
|
+
headers: unknown;
|
|
9279
|
+
response: {
|
|
9280
|
+
200: {
|
|
9281
|
+
isIdempotent?: boolean | undefined;
|
|
9282
|
+
targetLedgerEntryId?: string | undefined;
|
|
9283
|
+
assetId: string;
|
|
9284
|
+
referenceId: string;
|
|
9285
|
+
targetAmount: string;
|
|
9286
|
+
targetAccountId: string;
|
|
9287
|
+
sourceAccountId: string;
|
|
9288
|
+
sourceAmount: string;
|
|
9289
|
+
transferRatio: string;
|
|
9290
|
+
sourceLedgerEntryId: string;
|
|
9291
|
+
};
|
|
9292
|
+
422: {
|
|
9293
|
+
type: "validation";
|
|
9294
|
+
on: string;
|
|
9295
|
+
summary?: string;
|
|
9296
|
+
message?: string;
|
|
9297
|
+
found?: unknown;
|
|
9298
|
+
property?: string;
|
|
9299
|
+
expected?: string;
|
|
9300
|
+
};
|
|
9301
|
+
401: "Unauthorized";
|
|
9302
|
+
};
|
|
9303
|
+
};
|
|
9304
|
+
};
|
|
9305
|
+
};
|
|
9306
|
+
};
|
|
9307
|
+
} & {
|
|
9308
|
+
api: {
|
|
9309
|
+
transfer: {};
|
|
7572
9310
|
} & {
|
|
7573
|
-
|
|
9311
|
+
transfer: {
|
|
7574
9312
|
get: {
|
|
7575
9313
|
body: unknown;
|
|
7576
9314
|
params: {};
|
|
7577
9315
|
query: {
|
|
7578
|
-
checkInType?: "app" | "meeting" | undefined;
|
|
7579
|
-
startDate?: Date | undefined;
|
|
7580
9316
|
limit?: number | undefined;
|
|
7581
9317
|
offset?: number | undefined;
|
|
7582
9318
|
pageSize?: number | undefined;
|
|
7583
9319
|
pageIndex?: number | undefined;
|
|
7584
|
-
endDate?: Date | undefined;
|
|
7585
9320
|
};
|
|
7586
9321
|
headers: unknown;
|
|
7587
9322
|
response: {
|
|
7588
9323
|
200: {
|
|
7589
9324
|
data: {
|
|
7590
|
-
user: {
|
|
7591
|
-
email: string;
|
|
7592
|
-
id: string;
|
|
7593
|
-
name: string;
|
|
7594
|
-
emailVerified: boolean;
|
|
7595
|
-
image: string | null;
|
|
7596
|
-
createdAt: Date;
|
|
7597
|
-
updatedAt: Date;
|
|
7598
|
-
twoFactorEnabled: boolean | null;
|
|
7599
|
-
username: string | null;
|
|
7600
|
-
displayUsername: string | null;
|
|
7601
|
-
isAnonymous: boolean | null;
|
|
7602
|
-
phoneNumber: string | null;
|
|
7603
|
-
phoneNumberVerified: boolean | null;
|
|
7604
|
-
role: string | null;
|
|
7605
|
-
banned: boolean | null;
|
|
7606
|
-
banReason: string | null;
|
|
7607
|
-
banExpires: Date | null;
|
|
7608
|
-
};
|
|
7609
9325
|
id: string;
|
|
7610
9326
|
createdAt: Date;
|
|
7611
9327
|
updatedAt: Date;
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
9328
|
+
assetId: string | null;
|
|
9329
|
+
amount: string;
|
|
9330
|
+
idempotencyKey: string;
|
|
9331
|
+
orderNo: string;
|
|
9332
|
+
targetAccountId: string | null;
|
|
9333
|
+
sourceAccountId: string | null;
|
|
9334
|
+
sourceUserId: string;
|
|
9335
|
+
targetUserId: string;
|
|
7618
9336
|
}[];
|
|
7619
9337
|
pagination: {
|
|
7620
9338
|
total: number;
|
|
@@ -7638,19 +9356,30 @@ declare const app: Elysia<"/api", {
|
|
|
7638
9356
|
};
|
|
7639
9357
|
};
|
|
7640
9358
|
} & {
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
body:
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
9359
|
+
transfer: {
|
|
9360
|
+
ledger_account: {
|
|
9361
|
+
post: {
|
|
9362
|
+
body: {
|
|
9363
|
+
amount: string;
|
|
9364
|
+
idempotencyKey: string;
|
|
9365
|
+
targetAccountId: string;
|
|
9366
|
+
sourceAccountId: string;
|
|
9367
|
+
transactionPassword: string;
|
|
7649
9368
|
};
|
|
9369
|
+
params: {};
|
|
9370
|
+
query: unknown;
|
|
7650
9371
|
headers: unknown;
|
|
7651
9372
|
response: {
|
|
7652
9373
|
200: {
|
|
7653
|
-
|
|
9374
|
+
id: string;
|
|
9375
|
+
assetId: string | null;
|
|
9376
|
+
amount: string;
|
|
9377
|
+
orderNo: string;
|
|
9378
|
+
ledgerEntryId: string;
|
|
9379
|
+
targetAccountId: string | null;
|
|
9380
|
+
sourceAccountId: string | null;
|
|
9381
|
+
sourceUserId: string;
|
|
9382
|
+
targetUserId: string;
|
|
7654
9383
|
};
|
|
7655
9384
|
422: {
|
|
7656
9385
|
type: "validation";
|
|
@@ -7666,20 +9395,52 @@ declare const app: Elysia<"/api", {
|
|
|
7666
9395
|
};
|
|
7667
9396
|
};
|
|
7668
9397
|
};
|
|
9398
|
+
};
|
|
9399
|
+
} & {
|
|
9400
|
+
api: {
|
|
9401
|
+
trade_market: {};
|
|
7669
9402
|
} & {
|
|
7670
|
-
|
|
7671
|
-
|
|
9403
|
+
trade_market: {
|
|
9404
|
+
markets: {
|
|
7672
9405
|
get: {
|
|
7673
9406
|
body: unknown;
|
|
7674
9407
|
params: {};
|
|
7675
9408
|
query: {
|
|
7676
|
-
|
|
7677
|
-
|
|
9409
|
+
status?: "active" | "draft" | "paused" | "ended" | undefined;
|
|
9410
|
+
limit?: number | undefined;
|
|
9411
|
+
offset?: number | undefined;
|
|
9412
|
+
pageSize?: number | undefined;
|
|
9413
|
+
pageIndex?: number | undefined;
|
|
7678
9414
|
};
|
|
7679
9415
|
headers: unknown;
|
|
7680
9416
|
response: {
|
|
7681
9417
|
200: {
|
|
7682
|
-
|
|
9418
|
+
data: {
|
|
9419
|
+
id: string;
|
|
9420
|
+
name: string;
|
|
9421
|
+
createdAt: Date;
|
|
9422
|
+
updatedAt: Date;
|
|
9423
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
9424
|
+
baseAssetId: string;
|
|
9425
|
+
quoteAssetId: string;
|
|
9426
|
+
pricingSource: string;
|
|
9427
|
+
systemBaseAccountId: string;
|
|
9428
|
+
systemQuoteAccountId: string;
|
|
9429
|
+
isBuyEnabled: boolean;
|
|
9430
|
+
isSellEnabled: boolean;
|
|
9431
|
+
minBaseAmount: string;
|
|
9432
|
+
maxBaseAmount: string | null;
|
|
9433
|
+
dailyUserBuyBaseLimit: string | null;
|
|
9434
|
+
dailyUserSellBaseLimit: string | null;
|
|
9435
|
+
maxSlippageBps: string;
|
|
9436
|
+
}[];
|
|
9437
|
+
pagination: {
|
|
9438
|
+
total: number;
|
|
9439
|
+
pageSize: number;
|
|
9440
|
+
pageIndex: number;
|
|
9441
|
+
totalPages: number;
|
|
9442
|
+
hasNextPage: boolean;
|
|
9443
|
+
};
|
|
7683
9444
|
};
|
|
7684
9445
|
422: {
|
|
7685
9446
|
type: "validation";
|
|
@@ -7696,63 +9457,210 @@ declare const app: Elysia<"/api", {
|
|
|
7696
9457
|
};
|
|
7697
9458
|
};
|
|
7698
9459
|
} & {
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
9460
|
+
trade_market: {
|
|
9461
|
+
markets: {
|
|
9462
|
+
":id": {
|
|
9463
|
+
get: {
|
|
9464
|
+
body: unknown;
|
|
9465
|
+
params: {
|
|
9466
|
+
id: string;
|
|
9467
|
+
};
|
|
9468
|
+
query: unknown;
|
|
9469
|
+
headers: unknown;
|
|
9470
|
+
response: {
|
|
9471
|
+
200: {
|
|
9472
|
+
id: string;
|
|
9473
|
+
name: string;
|
|
9474
|
+
createdAt: Date;
|
|
9475
|
+
updatedAt: Date;
|
|
9476
|
+
status: "active" | "draft" | "paused" | "ended";
|
|
9477
|
+
baseAssetId: string;
|
|
9478
|
+
quoteAssetId: string;
|
|
9479
|
+
pricingSource: string;
|
|
9480
|
+
systemBaseAccountId: string;
|
|
9481
|
+
systemQuoteAccountId: string;
|
|
9482
|
+
isBuyEnabled: boolean;
|
|
9483
|
+
isSellEnabled: boolean;
|
|
9484
|
+
minBaseAmount: string;
|
|
9485
|
+
maxBaseAmount: string | null;
|
|
9486
|
+
dailyUserBuyBaseLimit: string | null;
|
|
9487
|
+
dailyUserSellBaseLimit: string | null;
|
|
9488
|
+
maxSlippageBps: string;
|
|
9489
|
+
};
|
|
9490
|
+
422: {
|
|
9491
|
+
type: "validation";
|
|
9492
|
+
on: string;
|
|
9493
|
+
summary?: string;
|
|
9494
|
+
message?: string;
|
|
9495
|
+
found?: unknown;
|
|
9496
|
+
property?: string;
|
|
9497
|
+
expected?: string;
|
|
9498
|
+
};
|
|
9499
|
+
401: "Unauthorized";
|
|
9500
|
+
};
|
|
7707
9501
|
};
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
9502
|
+
};
|
|
9503
|
+
};
|
|
9504
|
+
};
|
|
9505
|
+
} & {
|
|
9506
|
+
trade_market: {
|
|
9507
|
+
orders: {
|
|
9508
|
+
"market-buy": {
|
|
9509
|
+
post: {
|
|
9510
|
+
body: {
|
|
9511
|
+
idempotencyKey: string;
|
|
9512
|
+
marketId: string;
|
|
9513
|
+
baseAmount: string;
|
|
9514
|
+
userBaseAccountId: string;
|
|
9515
|
+
userQuoteAccountId: string;
|
|
7712
9516
|
};
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
9517
|
+
params: {};
|
|
9518
|
+
query: unknown;
|
|
9519
|
+
headers: unknown;
|
|
9520
|
+
response: {
|
|
9521
|
+
200: {
|
|
9522
|
+
id: string;
|
|
9523
|
+
createdAt: Date;
|
|
9524
|
+
updatedAt: Date;
|
|
9525
|
+
userId: string;
|
|
9526
|
+
status: "created" | "completed" | "failed";
|
|
9527
|
+
idempotencyKey: string;
|
|
9528
|
+
orderNo: string;
|
|
9529
|
+
priceSnapshot: string;
|
|
9530
|
+
priceEffectiveAtSnapshot: Date;
|
|
9531
|
+
failureCode: string | null;
|
|
9532
|
+
failureReason: string | null;
|
|
9533
|
+
marketId: string;
|
|
9534
|
+
side: "buy" | "sell";
|
|
9535
|
+
baseAmount: string;
|
|
9536
|
+
quoteAmount: string;
|
|
9537
|
+
pricingSourceSnapshot: string;
|
|
9538
|
+
userBaseAccountId: string;
|
|
9539
|
+
userQuoteAccountId: string;
|
|
9540
|
+
systemBaseAccountIdSnapshot: string;
|
|
9541
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9542
|
+
userDebitLedgerEntryId: string | null;
|
|
9543
|
+
userCreditLedgerEntryId: string | null;
|
|
9544
|
+
};
|
|
9545
|
+
422: {
|
|
9546
|
+
type: "validation";
|
|
9547
|
+
on: string;
|
|
9548
|
+
summary?: string;
|
|
9549
|
+
message?: string;
|
|
9550
|
+
found?: unknown;
|
|
9551
|
+
property?: string;
|
|
9552
|
+
expected?: string;
|
|
9553
|
+
};
|
|
9554
|
+
401: "Unauthorized";
|
|
9555
|
+
};
|
|
9556
|
+
};
|
|
9557
|
+
};
|
|
9558
|
+
};
|
|
9559
|
+
};
|
|
9560
|
+
} & {
|
|
9561
|
+
trade_market: {
|
|
9562
|
+
orders: {
|
|
9563
|
+
"market-sell": {
|
|
9564
|
+
post: {
|
|
9565
|
+
body: {
|
|
9566
|
+
idempotencyKey: string;
|
|
9567
|
+
marketId: string;
|
|
9568
|
+
baseAmount: string;
|
|
9569
|
+
userBaseAccountId: string;
|
|
9570
|
+
userQuoteAccountId: string;
|
|
9571
|
+
};
|
|
9572
|
+
params: {};
|
|
9573
|
+
query: unknown;
|
|
9574
|
+
headers: unknown;
|
|
9575
|
+
response: {
|
|
9576
|
+
200: {
|
|
9577
|
+
id: string;
|
|
9578
|
+
createdAt: Date;
|
|
9579
|
+
updatedAt: Date;
|
|
9580
|
+
userId: string;
|
|
9581
|
+
status: "created" | "completed" | "failed";
|
|
9582
|
+
idempotencyKey: string;
|
|
9583
|
+
orderNo: string;
|
|
9584
|
+
priceSnapshot: string;
|
|
9585
|
+
priceEffectiveAtSnapshot: Date;
|
|
9586
|
+
failureCode: string | null;
|
|
9587
|
+
failureReason: string | null;
|
|
9588
|
+
marketId: string;
|
|
9589
|
+
side: "buy" | "sell";
|
|
9590
|
+
baseAmount: string;
|
|
9591
|
+
quoteAmount: string;
|
|
9592
|
+
pricingSourceSnapshot: string;
|
|
9593
|
+
userBaseAccountId: string;
|
|
9594
|
+
userQuoteAccountId: string;
|
|
9595
|
+
systemBaseAccountIdSnapshot: string;
|
|
9596
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9597
|
+
userDebitLedgerEntryId: string | null;
|
|
9598
|
+
userCreditLedgerEntryId: string | null;
|
|
9599
|
+
};
|
|
9600
|
+
422: {
|
|
9601
|
+
type: "validation";
|
|
9602
|
+
on: string;
|
|
9603
|
+
summary?: string;
|
|
9604
|
+
message?: string;
|
|
9605
|
+
found?: unknown;
|
|
9606
|
+
property?: string;
|
|
9607
|
+
expected?: string;
|
|
9608
|
+
};
|
|
9609
|
+
401: "Unauthorized";
|
|
7721
9610
|
};
|
|
7722
|
-
401: "Unauthorized";
|
|
7723
9611
|
};
|
|
7724
9612
|
};
|
|
7725
9613
|
};
|
|
7726
9614
|
};
|
|
7727
|
-
};
|
|
7728
|
-
} & {
|
|
7729
|
-
api: {
|
|
7730
|
-
ledger_account_transfer: {};
|
|
7731
9615
|
} & {
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
body:
|
|
7736
|
-
amount: string;
|
|
7737
|
-
targetAccountId: string;
|
|
7738
|
-
sourceAccountId: string;
|
|
7739
|
-
transactionPassword: string;
|
|
7740
|
-
};
|
|
9616
|
+
trade_market: {
|
|
9617
|
+
orders: {
|
|
9618
|
+
get: {
|
|
9619
|
+
body: unknown;
|
|
7741
9620
|
params: {};
|
|
7742
|
-
query:
|
|
9621
|
+
query: {
|
|
9622
|
+
status?: "created" | "completed" | "failed" | undefined;
|
|
9623
|
+
marketId?: string | undefined;
|
|
9624
|
+
side?: "buy" | "sell" | undefined;
|
|
9625
|
+
limit?: number | undefined;
|
|
9626
|
+
offset?: number | undefined;
|
|
9627
|
+
pageSize?: number | undefined;
|
|
9628
|
+
pageIndex?: number | undefined;
|
|
9629
|
+
};
|
|
7743
9630
|
headers: unknown;
|
|
7744
9631
|
response: {
|
|
7745
9632
|
200: {
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
9633
|
+
data: {
|
|
9634
|
+
id: string;
|
|
9635
|
+
createdAt: Date;
|
|
9636
|
+
updatedAt: Date;
|
|
9637
|
+
userId: string;
|
|
9638
|
+
status: "created" | "completed" | "failed";
|
|
9639
|
+
idempotencyKey: string;
|
|
9640
|
+
orderNo: string;
|
|
9641
|
+
priceSnapshot: string;
|
|
9642
|
+
priceEffectiveAtSnapshot: Date;
|
|
9643
|
+
failureCode: string | null;
|
|
9644
|
+
failureReason: string | null;
|
|
9645
|
+
marketId: string;
|
|
9646
|
+
side: "buy" | "sell";
|
|
9647
|
+
baseAmount: string;
|
|
9648
|
+
quoteAmount: string;
|
|
9649
|
+
pricingSourceSnapshot: string;
|
|
9650
|
+
userBaseAccountId: string;
|
|
9651
|
+
userQuoteAccountId: string;
|
|
9652
|
+
systemBaseAccountIdSnapshot: string;
|
|
9653
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9654
|
+
userDebitLedgerEntryId: string | null;
|
|
9655
|
+
userCreditLedgerEntryId: string | null;
|
|
9656
|
+
}[];
|
|
9657
|
+
pagination: {
|
|
9658
|
+
total: number;
|
|
9659
|
+
pageSize: number;
|
|
9660
|
+
pageIndex: number;
|
|
9661
|
+
totalPages: number;
|
|
9662
|
+
hasNextPage: boolean;
|
|
9663
|
+
};
|
|
7756
9664
|
};
|
|
7757
9665
|
422: {
|
|
7758
9666
|
type: "validation";
|
|
@@ -7768,94 +9676,53 @@ declare const app: Elysia<"/api", {
|
|
|
7768
9676
|
};
|
|
7769
9677
|
};
|
|
7770
9678
|
};
|
|
7771
|
-
};
|
|
7772
|
-
} & {
|
|
7773
|
-
api: {
|
|
7774
|
-
transfer: {};
|
|
7775
|
-
} & {
|
|
7776
|
-
transfer: {
|
|
7777
|
-
get: {
|
|
7778
|
-
body: unknown;
|
|
7779
|
-
params: {};
|
|
7780
|
-
query: {
|
|
7781
|
-
limit?: number | undefined;
|
|
7782
|
-
offset?: number | undefined;
|
|
7783
|
-
pageSize?: number | undefined;
|
|
7784
|
-
pageIndex?: number | undefined;
|
|
7785
|
-
};
|
|
7786
|
-
headers: unknown;
|
|
7787
|
-
response: {
|
|
7788
|
-
200: {
|
|
7789
|
-
data: {
|
|
7790
|
-
id: string;
|
|
7791
|
-
createdAt: Date;
|
|
7792
|
-
updatedAt: Date;
|
|
7793
|
-
assetId: string | null;
|
|
7794
|
-
amount: string;
|
|
7795
|
-
idempotencyKey: string;
|
|
7796
|
-
orderNo: string;
|
|
7797
|
-
targetAccountId: string | null;
|
|
7798
|
-
sourceAccountId: string | null;
|
|
7799
|
-
sourceUserId: string;
|
|
7800
|
-
targetUserId: string;
|
|
7801
|
-
}[];
|
|
7802
|
-
pagination: {
|
|
7803
|
-
total: number;
|
|
7804
|
-
pageSize: number;
|
|
7805
|
-
pageIndex: number;
|
|
7806
|
-
totalPages: number;
|
|
7807
|
-
hasNextPage: boolean;
|
|
7808
|
-
};
|
|
7809
|
-
};
|
|
7810
|
-
422: {
|
|
7811
|
-
type: "validation";
|
|
7812
|
-
on: string;
|
|
7813
|
-
summary?: string;
|
|
7814
|
-
message?: string;
|
|
7815
|
-
found?: unknown;
|
|
7816
|
-
property?: string;
|
|
7817
|
-
expected?: string;
|
|
7818
|
-
};
|
|
7819
|
-
401: "Unauthorized";
|
|
7820
|
-
};
|
|
7821
|
-
};
|
|
7822
|
-
};
|
|
7823
9679
|
} & {
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
targetAccountId: string;
|
|
7831
|
-
sourceAccountId: string;
|
|
7832
|
-
transactionPassword: string;
|
|
7833
|
-
};
|
|
7834
|
-
params: {};
|
|
7835
|
-
query: unknown;
|
|
7836
|
-
headers: unknown;
|
|
7837
|
-
response: {
|
|
7838
|
-
200: {
|
|
9680
|
+
trade_market: {
|
|
9681
|
+
orders: {
|
|
9682
|
+
":id": {
|
|
9683
|
+
get: {
|
|
9684
|
+
body: unknown;
|
|
9685
|
+
params: {
|
|
7839
9686
|
id: string;
|
|
7840
|
-
assetId: string | null;
|
|
7841
|
-
amount: string;
|
|
7842
|
-
ledgerEntryId: string;
|
|
7843
|
-
orderNo: string;
|
|
7844
|
-
targetAccountId: string | null;
|
|
7845
|
-
sourceAccountId: string | null;
|
|
7846
|
-
sourceUserId: string;
|
|
7847
|
-
targetUserId: string;
|
|
7848
9687
|
};
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7856
|
-
|
|
9688
|
+
query: unknown;
|
|
9689
|
+
headers: unknown;
|
|
9690
|
+
response: {
|
|
9691
|
+
200: {
|
|
9692
|
+
id: string;
|
|
9693
|
+
createdAt: Date;
|
|
9694
|
+
updatedAt: Date;
|
|
9695
|
+
userId: string;
|
|
9696
|
+
status: "created" | "completed" | "failed";
|
|
9697
|
+
idempotencyKey: string;
|
|
9698
|
+
orderNo: string;
|
|
9699
|
+
priceSnapshot: string;
|
|
9700
|
+
priceEffectiveAtSnapshot: Date;
|
|
9701
|
+
failureCode: string | null;
|
|
9702
|
+
failureReason: string | null;
|
|
9703
|
+
marketId: string;
|
|
9704
|
+
side: "buy" | "sell";
|
|
9705
|
+
baseAmount: string;
|
|
9706
|
+
quoteAmount: string;
|
|
9707
|
+
pricingSourceSnapshot: string;
|
|
9708
|
+
userBaseAccountId: string;
|
|
9709
|
+
userQuoteAccountId: string;
|
|
9710
|
+
systemBaseAccountIdSnapshot: string;
|
|
9711
|
+
systemQuoteAccountIdSnapshot: string;
|
|
9712
|
+
userDebitLedgerEntryId: string | null;
|
|
9713
|
+
userCreditLedgerEntryId: string | null;
|
|
9714
|
+
};
|
|
9715
|
+
422: {
|
|
9716
|
+
type: "validation";
|
|
9717
|
+
on: string;
|
|
9718
|
+
summary?: string;
|
|
9719
|
+
message?: string;
|
|
9720
|
+
found?: unknown;
|
|
9721
|
+
property?: string;
|
|
9722
|
+
expected?: string;
|
|
9723
|
+
};
|
|
9724
|
+
401: "Unauthorized";
|
|
7857
9725
|
};
|
|
7858
|
-
401: "Unauthorized";
|
|
7859
9726
|
};
|
|
7860
9727
|
};
|
|
7861
9728
|
};
|
|
@@ -7887,7 +9754,7 @@ declare const app: Elysia<"/api", {
|
|
|
7887
9754
|
assetId: string;
|
|
7888
9755
|
fromAccountId: string | null;
|
|
7889
9756
|
toAccountId: string | null;
|
|
7890
|
-
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return";
|
|
9757
|
+
bizType: "deposit_credit" | "withdraw_freeze" | "withdraw_release" | "withdraw_debit" | "transfer_out" | "transfer_in" | "internal_transfer_out" | "internal_transfer_in" | "manual_increase" | "manual_decrease" | "welfare_cycle_subscribe_transfer" | "welfare_cycle_daily_yield_payout" | "welfare_cycle_maturity_yield_payout" | "welfare_cycle_maturity_principal_return" | "asset_convert_order_pay_debit" | "asset_convert_order_target_credit" | "trade_market_buy_quote_transfer" | "trade_market_buy_base_transfer" | "trade_market_sell_base_transfer" | "trade_market_sell_quote_transfer";
|
|
7891
9758
|
amount: string;
|
|
7892
9759
|
fromAvailableBefore: string | null;
|
|
7893
9760
|
fromAvailableAfter: string | null;
|
|
@@ -7898,7 +9765,7 @@ declare const app: Elysia<"/api", {
|
|
|
7898
9765
|
toLockedBefore: string | null;
|
|
7899
9766
|
toLockedAfter: string | null;
|
|
7900
9767
|
referenceId: string;
|
|
7901
|
-
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement";
|
|
9768
|
+
referenceType: "deposit_order" | "withdraw_order" | "transfer_order" | "internal_transfer_order" | "manual_adjustment" | "welfare_cycle_subscription" | "welfare_cycle_daily_payout" | "welfare_cycle_maturity_settlement" | "asset_convert_order" | "trade_market_order";
|
|
7902
9769
|
idempotencyKey: string;
|
|
7903
9770
|
operatorId: string | null;
|
|
7904
9771
|
memo: string | null;
|
|
@@ -7926,6 +9793,105 @@ declare const app: Elysia<"/api", {
|
|
|
7926
9793
|
};
|
|
7927
9794
|
};
|
|
7928
9795
|
};
|
|
9796
|
+
} & {
|
|
9797
|
+
api: {
|
|
9798
|
+
market_data: {};
|
|
9799
|
+
} & {
|
|
9800
|
+
market_data: {
|
|
9801
|
+
latest: {
|
|
9802
|
+
":baseAsset": {
|
|
9803
|
+
":quoteAsset": {
|
|
9804
|
+
get: {
|
|
9805
|
+
body: unknown;
|
|
9806
|
+
params: {
|
|
9807
|
+
baseAsset: string;
|
|
9808
|
+
quoteAsset: string;
|
|
9809
|
+
};
|
|
9810
|
+
query: {
|
|
9811
|
+
source?: string | undefined;
|
|
9812
|
+
};
|
|
9813
|
+
headers: unknown;
|
|
9814
|
+
response: {
|
|
9815
|
+
200: {
|
|
9816
|
+
baseAssetId: string;
|
|
9817
|
+
baseAsset: string;
|
|
9818
|
+
quoteAssetId: string;
|
|
9819
|
+
quoteAsset: string;
|
|
9820
|
+
source: string;
|
|
9821
|
+
effectiveAt: Date;
|
|
9822
|
+
latestPrice: string;
|
|
9823
|
+
};
|
|
9824
|
+
422: {
|
|
9825
|
+
type: "validation";
|
|
9826
|
+
on: string;
|
|
9827
|
+
summary?: string;
|
|
9828
|
+
message?: string;
|
|
9829
|
+
found?: unknown;
|
|
9830
|
+
property?: string;
|
|
9831
|
+
expected?: string;
|
|
9832
|
+
};
|
|
9833
|
+
401: "Unauthorized";
|
|
9834
|
+
};
|
|
9835
|
+
};
|
|
9836
|
+
};
|
|
9837
|
+
};
|
|
9838
|
+
};
|
|
9839
|
+
};
|
|
9840
|
+
} & {
|
|
9841
|
+
market_data: {
|
|
9842
|
+
klines: {
|
|
9843
|
+
"1m": {
|
|
9844
|
+
":baseAsset": {
|
|
9845
|
+
":quoteAsset": {
|
|
9846
|
+
get: {
|
|
9847
|
+
body: unknown;
|
|
9848
|
+
params: {
|
|
9849
|
+
baseAsset: string;
|
|
9850
|
+
quoteAsset: string;
|
|
9851
|
+
};
|
|
9852
|
+
query: {
|
|
9853
|
+
source?: string | undefined;
|
|
9854
|
+
startDate?: Date | undefined;
|
|
9855
|
+
limit?: number | undefined;
|
|
9856
|
+
endDate?: Date | undefined;
|
|
9857
|
+
};
|
|
9858
|
+
headers: unknown;
|
|
9859
|
+
response: {
|
|
9860
|
+
200: {
|
|
9861
|
+
id: string;
|
|
9862
|
+
createdAt: Date;
|
|
9863
|
+
updatedAt: Date;
|
|
9864
|
+
baseAssetId: string;
|
|
9865
|
+
baseAsset: string;
|
|
9866
|
+
quoteAssetId: string;
|
|
9867
|
+
quoteAsset: string;
|
|
9868
|
+
source: string;
|
|
9869
|
+
low: string;
|
|
9870
|
+
high: string;
|
|
9871
|
+
bucketAt: Date;
|
|
9872
|
+
open: string;
|
|
9873
|
+
close: string;
|
|
9874
|
+
tickCount: number;
|
|
9875
|
+
volume: string;
|
|
9876
|
+
}[];
|
|
9877
|
+
422: {
|
|
9878
|
+
type: "validation";
|
|
9879
|
+
on: string;
|
|
9880
|
+
summary?: string;
|
|
9881
|
+
message?: string;
|
|
9882
|
+
found?: unknown;
|
|
9883
|
+
property?: string;
|
|
9884
|
+
expected?: string;
|
|
9885
|
+
};
|
|
9886
|
+
401: "Unauthorized";
|
|
9887
|
+
};
|
|
9888
|
+
};
|
|
9889
|
+
};
|
|
9890
|
+
};
|
|
9891
|
+
};
|
|
9892
|
+
};
|
|
9893
|
+
};
|
|
9894
|
+
};
|
|
7929
9895
|
} & {
|
|
7930
9896
|
api: {
|
|
7931
9897
|
deposit: {};
|
|
@@ -10065,7 +12031,7 @@ declare const app: Elysia<"/api", {
|
|
|
10065
12031
|
id: string;
|
|
10066
12032
|
};
|
|
10067
12033
|
query: {
|
|
10068
|
-
status?: "pending" | "
|
|
12034
|
+
status?: "pending" | "completed" | "failed" | undefined;
|
|
10069
12035
|
limit?: number | undefined;
|
|
10070
12036
|
offset?: number | undefined;
|
|
10071
12037
|
pageSize?: number | undefined;
|
|
@@ -10079,7 +12045,7 @@ declare const app: Elysia<"/api", {
|
|
|
10079
12045
|
createdAt: Date;
|
|
10080
12046
|
updatedAt: Date;
|
|
10081
12047
|
userId: string;
|
|
10082
|
-
status: "pending" | "
|
|
12048
|
+
status: "pending" | "completed" | "failed";
|
|
10083
12049
|
amount: string;
|
|
10084
12050
|
idempotencyKey: string;
|
|
10085
12051
|
ledgerEntryId: string | null;
|
|
@@ -10129,7 +12095,7 @@ declare const app: Elysia<"/api", {
|
|
|
10129
12095
|
createdAt: Date;
|
|
10130
12096
|
updatedAt: Date;
|
|
10131
12097
|
userId: string;
|
|
10132
|
-
status: "pending" | "
|
|
12098
|
+
status: "pending" | "completed" | "failed";
|
|
10133
12099
|
idempotencyKey: string;
|
|
10134
12100
|
planId: string;
|
|
10135
12101
|
subscriptionId: string;
|