@rift-finance/wallet 1.4.21 → 1.4.23
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/index.d.ts +27 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -12
- package/dist/index.js.map +1 -1
- package/dist/services/bridge.d.ts +8 -0
- package/dist/services/bridge.d.ts.map +1 -0
- package/dist/services/bridge.js +28 -0
- package/dist/services/bridge.js.map +1 -0
- package/dist/services/kyc.d.ts +12 -0
- package/dist/services/kyc.d.ts.map +1 -0
- package/dist/services/kyc.js +55 -0
- package/dist/services/kyc.js.map +1 -0
- package/dist/services/loyalty.d.ts +13 -0
- package/dist/services/loyalty.d.ts.map +1 -0
- package/dist/services/loyalty.js +59 -0
- package/dist/services/loyalty.js.map +1 -0
- package/dist/services/project.d.ts +14 -0
- package/dist/services/project.d.ts.map +1 -0
- package/dist/services/project.js +67 -0
- package/dist/services/project.js.map +1 -0
- package/dist/services/referral-fees.d.ts +10 -0
- package/dist/services/referral-fees.d.ts.map +1 -0
- package/dist/services/referral-fees.js +39 -0
- package/dist/services/referral-fees.js.map +1 -0
- package/dist/services/stats.d.ts +8 -0
- package/dist/services/stats.d.ts.map +1 -0
- package/dist/services/stats.js +26 -0
- package/dist/services/stats.js.map +1 -0
- package/dist/services/user-management.d.ts +9 -0
- package/dist/services/user-management.d.ts.map +1 -0
- package/dist/services/user-management.js +36 -0
- package/dist/services/user-management.js.map +1 -0
- package/dist/services/wallet-connect.d.ts +11 -0
- package/dist/services/wallet-connect.d.ts.map +1 -0
- package/dist/services/wallet-connect.js +45 -0
- package/dist/services/wallet-connect.js.map +1 -0
- package/dist/services/weekly-pool.d.ts +8 -0
- package/dist/services/weekly-pool.d.ts.map +1 -0
- package/dist/services/weekly-pool.js +27 -0
- package/dist/services/weekly-pool.js.map +1 -0
- package/dist/types.d.ts +508 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/mpesa-http-client.d.ts +0 -14
- package/dist/mpesa-http-client.d.ts.map +0 -1
- package/dist/mpesa-http-client.js +0 -156
- package/dist/mpesa-http-client.js.map +0 -1
- package/dist/services/onramp.d.ts +0 -43
- package/dist/services/onramp.d.ts.map +0 -1
- package/dist/services/onramp.js +0 -109
- package/dist/services/onramp.js.map +0 -1
package/dist/types.d.ts
CHANGED
|
@@ -245,6 +245,7 @@ export interface OfframpOrder {
|
|
|
245
245
|
feePercentage?: number;
|
|
246
246
|
feeNote?: string;
|
|
247
247
|
provider?: string;
|
|
248
|
+
public_name?: string | null;
|
|
248
249
|
}
|
|
249
250
|
export interface PayRequest {
|
|
250
251
|
token: RampToken;
|
|
@@ -298,6 +299,7 @@ export interface OnrampStatusResponse {
|
|
|
298
299
|
account_number?: string;
|
|
299
300
|
currency?: string;
|
|
300
301
|
token?: string | null;
|
|
302
|
+
public_name?: string | null;
|
|
301
303
|
}
|
|
302
304
|
export interface PayResponse {
|
|
303
305
|
order: OfframpOrder;
|
|
@@ -521,8 +523,8 @@ export interface ProjectsResponse {
|
|
|
521
523
|
pages: number;
|
|
522
524
|
};
|
|
523
525
|
}
|
|
524
|
-
export type ChainName = "ARBITRUM" | "BASE" | "OPTIMISM" | "ETHEREUM" | "LISK" | "BNB" | "POLYGON" | "POLYGON_TESTNET" | "AVAX" | "BSC";
|
|
525
|
-
export type TokenSymbol = "USDC" | "USDT" | "DYU" | "ETH" | "BTC" | "WBERA" | "USDC.e" | "LSK" | "BNB" | "MATIC";
|
|
526
|
+
export type ChainName = "ARBITRUM" | "BASE" | "OPTIMISM" | "ETHEREUM" | "LISK" | "BNB" | "POLYGON" | "POLYGON_TESTNET" | "AVAX" | "BSC" | "BERACHAIN" | "BERACHAIN_TESTNET" | "CELO";
|
|
527
|
+
export type TokenSymbol = "USDC" | "USDT" | "DYU" | "ETH" | "BTC" | "WBERA" | "USDC.e" | "LSK" | "BNB" | "MATIC" | "SAIL" | "cUSD";
|
|
526
528
|
export interface Balance {
|
|
527
529
|
amount: number;
|
|
528
530
|
chain: string;
|
|
@@ -1552,4 +1554,508 @@ export interface VaultTransactionResponse {
|
|
|
1552
1554
|
success: boolean;
|
|
1553
1555
|
transactionHash: string;
|
|
1554
1556
|
}
|
|
1557
|
+
export interface KYCTokenRequest {
|
|
1558
|
+
country_code: string;
|
|
1559
|
+
identifier: string;
|
|
1560
|
+
}
|
|
1561
|
+
export interface KYCTokenResponse {
|
|
1562
|
+
token: string | null;
|
|
1563
|
+
provider: "smileid" | "sumsub";
|
|
1564
|
+
expires_at: string;
|
|
1565
|
+
verificationUrl?: string;
|
|
1566
|
+
linkDelivered?: boolean;
|
|
1567
|
+
deliveryMethod?: "email" | "sms" | "none";
|
|
1568
|
+
}
|
|
1569
|
+
export interface KYCUserExistsRequest {
|
|
1570
|
+
email?: string;
|
|
1571
|
+
phoneNumber?: string;
|
|
1572
|
+
externalId?: string;
|
|
1573
|
+
}
|
|
1574
|
+
export interface KYCUserExistsResponse {
|
|
1575
|
+
exists: boolean;
|
|
1576
|
+
userId?: string;
|
|
1577
|
+
kycStatus?: "verified" | "failed" | "pending" | "provisional";
|
|
1578
|
+
}
|
|
1579
|
+
export interface KYCStatusRequest {
|
|
1580
|
+
email?: string;
|
|
1581
|
+
phoneNumber?: string;
|
|
1582
|
+
externalId?: string;
|
|
1583
|
+
}
|
|
1584
|
+
export interface KYCStatusResponse {
|
|
1585
|
+
status: "verified" | "failed" | "pending" | "provisional";
|
|
1586
|
+
message: string;
|
|
1587
|
+
}
|
|
1588
|
+
export interface KYCVerifyAndSendOtpRequest {
|
|
1589
|
+
identifier: string;
|
|
1590
|
+
maxWaitTime?: number;
|
|
1591
|
+
}
|
|
1592
|
+
export interface KYCVerifyRequest {
|
|
1593
|
+
jobId: string;
|
|
1594
|
+
}
|
|
1595
|
+
export interface KYCVerifyResponse {
|
|
1596
|
+
success: boolean;
|
|
1597
|
+
kycVerified: boolean;
|
|
1598
|
+
message: string;
|
|
1599
|
+
}
|
|
1600
|
+
export interface KYCVerifiedResponse {
|
|
1601
|
+
success: boolean;
|
|
1602
|
+
kycVerified: boolean;
|
|
1603
|
+
}
|
|
1604
|
+
export interface KYCJobStatusResponse {
|
|
1605
|
+
success: boolean;
|
|
1606
|
+
status: "verified" | "failed" | "pending" | "provisional";
|
|
1607
|
+
complete: boolean;
|
|
1608
|
+
passed: boolean;
|
|
1609
|
+
underReview: boolean;
|
|
1610
|
+
message: string;
|
|
1611
|
+
}
|
|
1612
|
+
export interface LoyaltyStats {
|
|
1613
|
+
totalPoints: number;
|
|
1614
|
+
availablePoints: number;
|
|
1615
|
+
claimedPoints: number;
|
|
1616
|
+
stats: {
|
|
1617
|
+
currentStreak: number;
|
|
1618
|
+
uniqueActionTypes: number;
|
|
1619
|
+
cumulativeVolume: number;
|
|
1620
|
+
lastActivityDate: string | null;
|
|
1621
|
+
dailyPointsToday: number;
|
|
1622
|
+
};
|
|
1623
|
+
}
|
|
1624
|
+
export interface LoyaltyStatsResponse {
|
|
1625
|
+
success: boolean;
|
|
1626
|
+
data: LoyaltyStats;
|
|
1627
|
+
}
|
|
1628
|
+
export interface LoyaltyHistoryRequest {
|
|
1629
|
+
limit?: number;
|
|
1630
|
+
offset?: number;
|
|
1631
|
+
}
|
|
1632
|
+
export interface LoyaltyActivity {
|
|
1633
|
+
id: string;
|
|
1634
|
+
actionType: string;
|
|
1635
|
+
transactionValue: number;
|
|
1636
|
+
pointsEarned: number;
|
|
1637
|
+
pointValue: number;
|
|
1638
|
+
multiplier: number;
|
|
1639
|
+
metadata: any;
|
|
1640
|
+
createdAt: string;
|
|
1641
|
+
}
|
|
1642
|
+
export interface LoyaltyHistoryResponse {
|
|
1643
|
+
success: boolean;
|
|
1644
|
+
data: {
|
|
1645
|
+
activities: LoyaltyActivity[];
|
|
1646
|
+
pagination: {
|
|
1647
|
+
total: number;
|
|
1648
|
+
limit: number;
|
|
1649
|
+
offset: number;
|
|
1650
|
+
hasMore: boolean;
|
|
1651
|
+
};
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
export interface LoyaltyLeaderboardRequest {
|
|
1655
|
+
limit?: number;
|
|
1656
|
+
}
|
|
1657
|
+
export interface LoyaltyLeaderboardEntry {
|
|
1658
|
+
rank: number;
|
|
1659
|
+
userId: string;
|
|
1660
|
+
totalPoints: number;
|
|
1661
|
+
address: string;
|
|
1662
|
+
}
|
|
1663
|
+
export interface LoyaltyLeaderboardResponse {
|
|
1664
|
+
success: boolean;
|
|
1665
|
+
data: {
|
|
1666
|
+
leaderboard: LoyaltyLeaderboardEntry[];
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
export interface LoyaltyMetricsResponse {
|
|
1670
|
+
success: boolean;
|
|
1671
|
+
data: {
|
|
1672
|
+
totalPointsIssued: number;
|
|
1673
|
+
totalUsers: number;
|
|
1674
|
+
totalRedemptions: number;
|
|
1675
|
+
totalRedeemed: number;
|
|
1676
|
+
averagePointsPerUser: number;
|
|
1677
|
+
};
|
|
1678
|
+
}
|
|
1679
|
+
export interface LoyaltyPointValueResponse {
|
|
1680
|
+
success: boolean;
|
|
1681
|
+
data: {
|
|
1682
|
+
pointValue: number;
|
|
1683
|
+
totalSupply: number;
|
|
1684
|
+
budget: number;
|
|
1685
|
+
commitment: number;
|
|
1686
|
+
remaining: number;
|
|
1687
|
+
};
|
|
1688
|
+
}
|
|
1689
|
+
export interface LoyaltyRedeemRequest {
|
|
1690
|
+
points: number;
|
|
1691
|
+
redemptionType?: string;
|
|
1692
|
+
}
|
|
1693
|
+
export interface LoyaltyRedemption {
|
|
1694
|
+
redemptionId: string;
|
|
1695
|
+
pointsRedeemed: number;
|
|
1696
|
+
usdValue: number;
|
|
1697
|
+
recipientAddress: string;
|
|
1698
|
+
chain: string;
|
|
1699
|
+
token: string;
|
|
1700
|
+
status: "COMPLETED" | "FAILED";
|
|
1701
|
+
transactionHash: string;
|
|
1702
|
+
transactionUrl: string;
|
|
1703
|
+
}
|
|
1704
|
+
export interface LoyaltyRedeemResponse {
|
|
1705
|
+
success: boolean;
|
|
1706
|
+
message: string;
|
|
1707
|
+
data: LoyaltyRedemption;
|
|
1708
|
+
}
|
|
1709
|
+
export interface LoyaltyRedemptionHistoryItem {
|
|
1710
|
+
id: string;
|
|
1711
|
+
accountId: string;
|
|
1712
|
+
pointsRedeemed: number;
|
|
1713
|
+
pointValue: number;
|
|
1714
|
+
usdValue: number;
|
|
1715
|
+
redemptionType: string;
|
|
1716
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
1717
|
+
completedAt: string | null;
|
|
1718
|
+
metadata: any;
|
|
1719
|
+
createdAt: string;
|
|
1720
|
+
}
|
|
1721
|
+
export interface LoyaltyRedemptionsResponse {
|
|
1722
|
+
success: boolean;
|
|
1723
|
+
data: {
|
|
1724
|
+
redemptions: LoyaltyRedemptionHistoryItem[];
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
export interface LoyaltyConfigResponse {
|
|
1728
|
+
success: boolean;
|
|
1729
|
+
data: {
|
|
1730
|
+
config: {
|
|
1731
|
+
TOTAL_BUDGET: number;
|
|
1732
|
+
REDEMPTION: {
|
|
1733
|
+
MIN_POINTS: number;
|
|
1734
|
+
};
|
|
1735
|
+
};
|
|
1736
|
+
note: string;
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
export interface WeeklyPoolResponse {
|
|
1740
|
+
currentPool: any;
|
|
1741
|
+
userProgress: any;
|
|
1742
|
+
leaderboard: any[];
|
|
1743
|
+
pastWinners: any[];
|
|
1744
|
+
}
|
|
1745
|
+
export interface WeeklyPoolHistoryRequest {
|
|
1746
|
+
page?: number;
|
|
1747
|
+
limit?: number;
|
|
1748
|
+
}
|
|
1749
|
+
export interface WeeklyPoolHistoryResponse {
|
|
1750
|
+
pools: any[];
|
|
1751
|
+
pagination: {
|
|
1752
|
+
page: number;
|
|
1753
|
+
limit: number;
|
|
1754
|
+
total: number;
|
|
1755
|
+
pages: number;
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
export interface WeeklyPoolReferralResponse {
|
|
1759
|
+
referralCode: string;
|
|
1760
|
+
referralLink: string;
|
|
1761
|
+
referralsCount: number;
|
|
1762
|
+
referralStats: any;
|
|
1763
|
+
}
|
|
1764
|
+
export interface ReferralFeeBalanceResponse {
|
|
1765
|
+
totalUsd: number;
|
|
1766
|
+
currencyBreakdown: Record<string, number>;
|
|
1767
|
+
entryCount: number;
|
|
1768
|
+
canClaim: boolean;
|
|
1769
|
+
nextClaimDate: string | null;
|
|
1770
|
+
}
|
|
1771
|
+
export interface ReferralFeeEntry {
|
|
1772
|
+
id: string;
|
|
1773
|
+
currency: string;
|
|
1774
|
+
amount: number;
|
|
1775
|
+
date: string;
|
|
1776
|
+
}
|
|
1777
|
+
export interface ReferralFeeEntriesResponse {
|
|
1778
|
+
totalUsd: number;
|
|
1779
|
+
currencyBreakdown: Record<string, number>;
|
|
1780
|
+
entries: ReferralFeeEntry[];
|
|
1781
|
+
}
|
|
1782
|
+
export interface ReferralFeeClaim {
|
|
1783
|
+
id: string;
|
|
1784
|
+
totalUsd: number;
|
|
1785
|
+
status: "PENDING" | "COMPLETED";
|
|
1786
|
+
createdAt: string;
|
|
1787
|
+
completedAt?: string | null;
|
|
1788
|
+
}
|
|
1789
|
+
export interface ReferralFeeClaimResponse {
|
|
1790
|
+
success: boolean;
|
|
1791
|
+
error?: string;
|
|
1792
|
+
claim: ReferralFeeClaim;
|
|
1793
|
+
}
|
|
1794
|
+
export interface ReferralFeeClaimsResponse {
|
|
1795
|
+
claims: ReferralFeeClaim[];
|
|
1796
|
+
}
|
|
1797
|
+
export interface ReferralFeeReferralsRequest {
|
|
1798
|
+
referralCode?: string;
|
|
1799
|
+
list?: "true" | "false";
|
|
1800
|
+
}
|
|
1801
|
+
export interface ReferralFeeReferralsResponse {
|
|
1802
|
+
referralCode: string;
|
|
1803
|
+
totalReferrals: number;
|
|
1804
|
+
referredUsers?: any[];
|
|
1805
|
+
}
|
|
1806
|
+
export interface BridgeRoutesResponse {
|
|
1807
|
+
routes: Record<string, string[]>;
|
|
1808
|
+
supportedTokens: string[];
|
|
1809
|
+
}
|
|
1810
|
+
export interface BridgeQuoteRequest {
|
|
1811
|
+
sourceChain: string;
|
|
1812
|
+
destinationChain: string;
|
|
1813
|
+
token: string;
|
|
1814
|
+
amount: string;
|
|
1815
|
+
}
|
|
1816
|
+
export interface BridgeQuoteResponse {
|
|
1817
|
+
sourceChain: string;
|
|
1818
|
+
destinationChain: string;
|
|
1819
|
+
token: string;
|
|
1820
|
+
inputAmount: string;
|
|
1821
|
+
outputAmount: string;
|
|
1822
|
+
fee: string;
|
|
1823
|
+
feeBps: number;
|
|
1824
|
+
estimatedTime: string;
|
|
1825
|
+
}
|
|
1826
|
+
export interface BridgeExecuteRequest {
|
|
1827
|
+
sourceChain: string;
|
|
1828
|
+
destinationChain: string;
|
|
1829
|
+
token: string;
|
|
1830
|
+
amount: string;
|
|
1831
|
+
recipient?: string;
|
|
1832
|
+
}
|
|
1833
|
+
export interface BridgeExecuteResponse {
|
|
1834
|
+
success: boolean;
|
|
1835
|
+
sourceChain: string;
|
|
1836
|
+
destinationChain: string;
|
|
1837
|
+
token: string;
|
|
1838
|
+
inputAmount: string;
|
|
1839
|
+
outputAmount: string;
|
|
1840
|
+
fee: string;
|
|
1841
|
+
recipient: string;
|
|
1842
|
+
transactionHash: string;
|
|
1843
|
+
smartWalletAddress: string;
|
|
1844
|
+
sourceChainId: number;
|
|
1845
|
+
destinationChainId: number;
|
|
1846
|
+
}
|
|
1847
|
+
export interface WalletConnectPairRequest {
|
|
1848
|
+
uri: string;
|
|
1849
|
+
chain: string;
|
|
1850
|
+
}
|
|
1851
|
+
export interface WalletConnectPairResponse {
|
|
1852
|
+
success: boolean;
|
|
1853
|
+
topic: string;
|
|
1854
|
+
smartWalletAddress: string;
|
|
1855
|
+
chain: string;
|
|
1856
|
+
chainId: number;
|
|
1857
|
+
peerName: string;
|
|
1858
|
+
peerUrl: string;
|
|
1859
|
+
}
|
|
1860
|
+
export interface WalletConnectSession {
|
|
1861
|
+
topic: string;
|
|
1862
|
+
peerName: string;
|
|
1863
|
+
peerUrl: string;
|
|
1864
|
+
chains: string[];
|
|
1865
|
+
[key: string]: any;
|
|
1866
|
+
}
|
|
1867
|
+
export interface WalletConnectRequest {
|
|
1868
|
+
id: string;
|
|
1869
|
+
method: string;
|
|
1870
|
+
params: any;
|
|
1871
|
+
[key: string]: any;
|
|
1872
|
+
}
|
|
1873
|
+
export interface CreateProjectRequest {
|
|
1874
|
+
name: string;
|
|
1875
|
+
email?: string;
|
|
1876
|
+
phoneNumber?: string;
|
|
1877
|
+
known_origins?: string;
|
|
1878
|
+
payment_link_widget?: string;
|
|
1879
|
+
}
|
|
1880
|
+
export interface ProjectData {
|
|
1881
|
+
id: string;
|
|
1882
|
+
name: string;
|
|
1883
|
+
api_key?: string;
|
|
1884
|
+
owner_phone?: string;
|
|
1885
|
+
owner_email?: string;
|
|
1886
|
+
known_origins?: string[];
|
|
1887
|
+
api_calls?: number;
|
|
1888
|
+
payment_link_widget?: string;
|
|
1889
|
+
createdAt: string;
|
|
1890
|
+
updatedAt?: string;
|
|
1891
|
+
}
|
|
1892
|
+
export interface CreateProjectResponse {
|
|
1893
|
+
success: boolean;
|
|
1894
|
+
message: string;
|
|
1895
|
+
data: ProjectData;
|
|
1896
|
+
}
|
|
1897
|
+
export interface GetProjectsRequest {
|
|
1898
|
+
page?: number;
|
|
1899
|
+
limit?: number;
|
|
1900
|
+
}
|
|
1901
|
+
export interface GetProjectsResponse {
|
|
1902
|
+
success: boolean;
|
|
1903
|
+
data: {
|
|
1904
|
+
projects: ProjectData[];
|
|
1905
|
+
pagination: {
|
|
1906
|
+
page: number;
|
|
1907
|
+
limit: number;
|
|
1908
|
+
total: number;
|
|
1909
|
+
pages: number;
|
|
1910
|
+
};
|
|
1911
|
+
};
|
|
1912
|
+
}
|
|
1913
|
+
export interface GetMyProjectsRequest {
|
|
1914
|
+
email?: string;
|
|
1915
|
+
phoneNumber?: string;
|
|
1916
|
+
}
|
|
1917
|
+
export interface GetMyProjectsResponse {
|
|
1918
|
+
success: boolean;
|
|
1919
|
+
data: ProjectData[];
|
|
1920
|
+
}
|
|
1921
|
+
export interface GetProjectResponse {
|
|
1922
|
+
success: boolean;
|
|
1923
|
+
data: ProjectData;
|
|
1924
|
+
}
|
|
1925
|
+
export interface ProjectStatsResponse {
|
|
1926
|
+
success: boolean;
|
|
1927
|
+
data: {
|
|
1928
|
+
api_calls: number;
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
export interface RegenerateKeyResponse {
|
|
1932
|
+
success: boolean;
|
|
1933
|
+
message: string;
|
|
1934
|
+
data: ProjectData;
|
|
1935
|
+
}
|
|
1936
|
+
export interface AddOriginRequest {
|
|
1937
|
+
origin: string;
|
|
1938
|
+
phoneNumber?: string;
|
|
1939
|
+
email?: string;
|
|
1940
|
+
}
|
|
1941
|
+
export interface AddOriginResponse {
|
|
1942
|
+
success: boolean;
|
|
1943
|
+
message: string;
|
|
1944
|
+
data: ProjectData;
|
|
1945
|
+
}
|
|
1946
|
+
export interface UpdatePaymentWidgetRequest {
|
|
1947
|
+
id: string;
|
|
1948
|
+
payment_link_widget: string;
|
|
1949
|
+
}
|
|
1950
|
+
export interface UpdatePaymentWidgetResponse {
|
|
1951
|
+
success: boolean;
|
|
1952
|
+
data: ProjectData;
|
|
1953
|
+
}
|
|
1954
|
+
export interface SuspendUserRequest {
|
|
1955
|
+
phoneNumber?: string;
|
|
1956
|
+
email?: string;
|
|
1957
|
+
externalId?: string;
|
|
1958
|
+
userId?: string;
|
|
1959
|
+
reason?: string;
|
|
1960
|
+
projectOwnerPhone?: string;
|
|
1961
|
+
projectOwnerEmail?: string;
|
|
1962
|
+
}
|
|
1963
|
+
export interface SuspendUserResponse {
|
|
1964
|
+
success: boolean;
|
|
1965
|
+
message: string;
|
|
1966
|
+
data: {
|
|
1967
|
+
userId: string;
|
|
1968
|
+
email: string;
|
|
1969
|
+
phoneNumber: string;
|
|
1970
|
+
externalId: string;
|
|
1971
|
+
suspendedAt: string;
|
|
1972
|
+
suspendedReason: string;
|
|
1973
|
+
};
|
|
1974
|
+
}
|
|
1975
|
+
export interface UnsuspendUserRequest {
|
|
1976
|
+
phoneNumber?: string;
|
|
1977
|
+
email?: string;
|
|
1978
|
+
externalId?: string;
|
|
1979
|
+
userId?: string;
|
|
1980
|
+
projectOwnerPhone?: string;
|
|
1981
|
+
projectOwnerEmail?: string;
|
|
1982
|
+
}
|
|
1983
|
+
export interface UnsuspendUserResponse {
|
|
1984
|
+
success: boolean;
|
|
1985
|
+
message: string;
|
|
1986
|
+
data: {
|
|
1987
|
+
userId: string;
|
|
1988
|
+
email: string;
|
|
1989
|
+
phoneNumber: string;
|
|
1990
|
+
externalId: string;
|
|
1991
|
+
isSuspended: false;
|
|
1992
|
+
};
|
|
1993
|
+
}
|
|
1994
|
+
export interface GetSuspendedUsersRequest {
|
|
1995
|
+
projectOwnerPhone?: string;
|
|
1996
|
+
projectOwnerEmail?: string;
|
|
1997
|
+
}
|
|
1998
|
+
export interface SuspendedUser {
|
|
1999
|
+
id: string;
|
|
2000
|
+
email: string;
|
|
2001
|
+
phoneNumber: string;
|
|
2002
|
+
externalId: string;
|
|
2003
|
+
display_name: string;
|
|
2004
|
+
suspendedAt: string;
|
|
2005
|
+
suspendedReason: string;
|
|
2006
|
+
suspendedBy: string;
|
|
2007
|
+
createdAt: string;
|
|
2008
|
+
}
|
|
2009
|
+
export interface GetSuspendedUsersResponse {
|
|
2010
|
+
success: boolean;
|
|
2011
|
+
message: string;
|
|
2012
|
+
data: {
|
|
2013
|
+
suspendedUsers: SuspendedUser[];
|
|
2014
|
+
totalCount: number;
|
|
2015
|
+
};
|
|
2016
|
+
}
|
|
2017
|
+
export interface GetUserStatusRequest {
|
|
2018
|
+
phoneNumber?: string;
|
|
2019
|
+
email?: string;
|
|
2020
|
+
externalId?: string;
|
|
2021
|
+
userId?: string;
|
|
2022
|
+
}
|
|
2023
|
+
export interface GetUserStatusResponse {
|
|
2024
|
+
success: boolean;
|
|
2025
|
+
data: {
|
|
2026
|
+
userId: string;
|
|
2027
|
+
email: string;
|
|
2028
|
+
phoneNumber: string;
|
|
2029
|
+
externalId: string;
|
|
2030
|
+
isSuspended: boolean;
|
|
2031
|
+
suspendedAt: string | null;
|
|
2032
|
+
suspendedReason: string | null;
|
|
2033
|
+
suspendedBy: string | null;
|
|
2034
|
+
};
|
|
2035
|
+
}
|
|
2036
|
+
export interface StatsVolumeResponse {
|
|
2037
|
+
data: {
|
|
2038
|
+
usdcDeposits: number;
|
|
2039
|
+
usdcDepositsCount: number;
|
|
2040
|
+
usdcDepositsInKes: number;
|
|
2041
|
+
offrampVolume: number;
|
|
2042
|
+
offrampVolumeInKes: number;
|
|
2043
|
+
offrampVolumeCount: number;
|
|
2044
|
+
totalVolume: number;
|
|
2045
|
+
totalVolumeCount: number;
|
|
2046
|
+
totalVolumeInKes: number;
|
|
2047
|
+
};
|
|
2048
|
+
}
|
|
2049
|
+
export interface StatsUsersResponse {
|
|
2050
|
+
data: number;
|
|
2051
|
+
}
|
|
2052
|
+
export interface StatsTvlResponse {
|
|
2053
|
+
data: {
|
|
2054
|
+
totalValueLocked: number;
|
|
2055
|
+
totalValueLockedInKes: number;
|
|
2056
|
+
walletsCount: number;
|
|
2057
|
+
exchangeRate: number;
|
|
2058
|
+
currency: string;
|
|
2059
|
+
};
|
|
2060
|
+
}
|
|
1555
2061
|
//# sourceMappingURL=types.d.ts.map
|