@rift-finance/wallet 1.4.22 → 1.4.24
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 +12 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -6
- package/dist/index.js.map +1 -1
- package/dist/mpesa-http-client.d.ts.map +1 -1
- package/dist/mpesa-http-client.js +3 -16
- package/dist/mpesa-http-client.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/onramp.d.ts +2 -31
- package/dist/services/onramp.d.ts.map +1 -1
- package/dist/services/onramp.js +0 -38
- package/dist/services/onramp.js.map +1 -1
- 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/types.d.ts +511 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/package.json +1 -1
- package/dist/services/payment-links.d.ts +0 -24
- package/dist/services/payment-links.d.ts.map +0 -1
- package/dist/services/payment-links.js +0 -121
- package/dist/services/payment-links.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserManagementService = void 0;
|
|
4
|
+
const base_service_1 = require("../base-service");
|
|
5
|
+
class UserManagementService extends base_service_1.BaseService {
|
|
6
|
+
async suspendUser(request) {
|
|
7
|
+
return this.publicRequest({
|
|
8
|
+
method: "POST",
|
|
9
|
+
url: "/users/suspend",
|
|
10
|
+
data: request,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
async unsuspendUser(request) {
|
|
14
|
+
return this.publicRequest({
|
|
15
|
+
method: "POST",
|
|
16
|
+
url: "/users/unsuspend",
|
|
17
|
+
data: request,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
async getSuspendedUsers(request) {
|
|
21
|
+
return this.publicRequest({
|
|
22
|
+
method: "GET",
|
|
23
|
+
url: "/users/suspended",
|
|
24
|
+
params: request,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
async getUserStatus(request) {
|
|
28
|
+
return this.publicRequest({
|
|
29
|
+
method: "GET",
|
|
30
|
+
url: "/users/status",
|
|
31
|
+
params: request,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.UserManagementService = UserManagementService;
|
|
36
|
+
//# sourceMappingURL=user-management.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-management.js","sourceRoot":"","sources":["../../src/services/user-management.ts"],"names":[],"mappings":";;;AAAA,kDAA8C;AAY9C,MAAa,qBAAsB,SAAQ,0BAAW;IACpD,KAAK,CAAC,WAAW,CAAC,OAA2B;QAC3C,OAAO,IAAI,CAAC,aAAa,CAAsB;YAC7C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,gBAAgB;YACrB,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAA6B;QAC/C,OAAO,IAAI,CAAC,aAAa,CAAwB;YAC/C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,kBAAkB;YACvB,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,OAAkC;QACxD,OAAO,IAAI,CAAC,aAAa,CAA4B;YACnD,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,kBAAkB;YACvB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAA6B;QAC/C,OAAO,IAAI,CAAC,aAAa,CAAwB;YAC/C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,eAAe;YACpB,MAAM,EAAE,OAAO;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AAhCD,sDAgCC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseService } from "../base-service";
|
|
2
|
+
import { WalletConnectPairRequest, WalletConnectPairResponse, WalletConnectSession, WalletConnectRequest, ApiResponse } from "../types";
|
|
3
|
+
export declare class WalletConnectService extends BaseService {
|
|
4
|
+
pair(request: WalletConnectPairRequest): Promise<WalletConnectPairResponse>;
|
|
5
|
+
getRequests(): Promise<ApiResponse<WalletConnectRequest[]>>;
|
|
6
|
+
approveRequest(id: string): Promise<ApiResponse>;
|
|
7
|
+
rejectRequest(id: string): Promise<ApiResponse>;
|
|
8
|
+
getSessions(): Promise<ApiResponse<WalletConnectSession[]>>;
|
|
9
|
+
disconnectSession(topic: string): Promise<ApiResponse>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=wallet-connect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-connect.d.ts","sourceRoot":"","sources":["../../src/services/wallet-connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,oBAAoB,EACpB,oBAAoB,EACpB,WAAW,EACZ,MAAM,UAAU,CAAC;AAElB,qBAAa,oBAAqB,SAAQ,WAAW;IAC7C,IAAI,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAQ3E,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAO3D,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAOhD,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAO/C,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAO3D,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAM7D"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletConnectService = void 0;
|
|
4
|
+
const base_service_1 = require("../base-service");
|
|
5
|
+
class WalletConnectService extends base_service_1.BaseService {
|
|
6
|
+
async pair(request) {
|
|
7
|
+
return this.authenticatedRequest({
|
|
8
|
+
method: "POST",
|
|
9
|
+
url: "/walletconnect/pair",
|
|
10
|
+
data: request,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
async getRequests() {
|
|
14
|
+
return this.authenticatedRequest({
|
|
15
|
+
method: "GET",
|
|
16
|
+
url: "/walletconnect/requests",
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
async approveRequest(id) {
|
|
20
|
+
return this.authenticatedRequest({
|
|
21
|
+
method: "POST",
|
|
22
|
+
url: `/walletconnect/requests/${id}/approve`,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
async rejectRequest(id) {
|
|
26
|
+
return this.authenticatedRequest({
|
|
27
|
+
method: "POST",
|
|
28
|
+
url: `/walletconnect/requests/${id}/reject`,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
async getSessions() {
|
|
32
|
+
return this.authenticatedRequest({
|
|
33
|
+
method: "GET",
|
|
34
|
+
url: "/walletconnect/sessions",
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
async disconnectSession(topic) {
|
|
38
|
+
return this.authenticatedRequest({
|
|
39
|
+
method: "DELETE",
|
|
40
|
+
url: `/walletconnect/sessions/${topic}`,
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.WalletConnectService = WalletConnectService;
|
|
45
|
+
//# sourceMappingURL=wallet-connect.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-connect.js","sourceRoot":"","sources":["../../src/services/wallet-connect.ts"],"names":[],"mappings":";;;AAAA,kDAA8C;AAS9C,MAAa,oBAAqB,SAAQ,0BAAW;IACnD,KAAK,CAAC,IAAI,CAAC,OAAiC;QAC1C,OAAO,IAAI,CAAC,oBAAoB,CAA4B;YAC1D,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,qBAAqB;YAC1B,IAAI,EAAE,OAAO;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC,oBAAoB,CAAsC;YACpE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;SAC/B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,EAAU;QAC7B,OAAO,IAAI,CAAC,oBAAoB,CAAc;YAC5C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B,EAAE,UAAU;SAC7C,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,EAAU;QAC5B,OAAO,IAAI,CAAC,oBAAoB,CAAc;YAC5C,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,2BAA2B,EAAE,SAAS;SAC5C,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW;QACf,OAAO,IAAI,CAAC,oBAAoB,CAAsC;YACpE,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,yBAAyB;SAC/B,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,iBAAiB,CAAC,KAAa;QACnC,OAAO,IAAI,CAAC,oBAAoB,CAAc;YAC5C,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,2BAA2B,KAAK,EAAE;SACxC,CAAC,CAAC;IACL,CAAC;CACF;AA3CD,oDA2CC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -443,6 +443,7 @@ export interface OtpResponse {
|
|
|
443
443
|
status: string;
|
|
444
444
|
message?: string;
|
|
445
445
|
}
|
|
446
|
+
export type AutoSwapTargetChain = "BASE" | "ARBITRUM" | "POLYGON" | "ETHEREUM";
|
|
446
447
|
export interface User {
|
|
447
448
|
id: string;
|
|
448
449
|
externalId: string;
|
|
@@ -457,6 +458,8 @@ export interface User {
|
|
|
457
458
|
paymentAccount?: string;
|
|
458
459
|
notificationEmail?: string;
|
|
459
460
|
instantWithdrawals?: boolean;
|
|
461
|
+
autoSwapEnabled?: boolean;
|
|
462
|
+
autoSwapTargetChain?: AutoSwapTargetChain | null;
|
|
460
463
|
[key: string]: any;
|
|
461
464
|
}
|
|
462
465
|
export interface UpdateUserRequest {
|
|
@@ -473,6 +476,8 @@ export interface UpdateUserRequest {
|
|
|
473
476
|
paymentAccount?: string;
|
|
474
477
|
notificationEmail?: string;
|
|
475
478
|
instantWithdrawals?: boolean;
|
|
479
|
+
autoSwapEnabled?: boolean;
|
|
480
|
+
autoSwapTargetChain?: AutoSwapTargetChain | null;
|
|
476
481
|
[key: string]: any;
|
|
477
482
|
}
|
|
478
483
|
export interface UserResponse {
|
|
@@ -523,8 +528,8 @@ export interface ProjectsResponse {
|
|
|
523
528
|
pages: number;
|
|
524
529
|
};
|
|
525
530
|
}
|
|
526
|
-
export type ChainName = "ARBITRUM" | "BASE" | "OPTIMISM" | "ETHEREUM" | "LISK" | "BNB" | "POLYGON" | "POLYGON_TESTNET" | "AVAX" | "BSC";
|
|
527
|
-
export type TokenSymbol = "USDC" | "USDT" | "DYU" | "ETH" | "BTC" | "WBERA" | "USDC.e" | "LSK" | "BNB" | "MATIC";
|
|
531
|
+
export type ChainName = "ARBITRUM" | "BASE" | "OPTIMISM" | "ETHEREUM" | "LISK" | "BNB" | "POLYGON" | "POLYGON_TESTNET" | "AVAX" | "BSC" | "BERACHAIN" | "BERACHAIN_TESTNET" | "CELO";
|
|
532
|
+
export type TokenSymbol = "USDC" | "USDT" | "DYU" | "ETH" | "BTC" | "WBERA" | "USDC.e" | "LSK" | "BNB" | "MATIC" | "SAIL" | "cUSD";
|
|
528
533
|
export interface Balance {
|
|
529
534
|
amount: number;
|
|
530
535
|
chain: string;
|
|
@@ -1554,4 +1559,508 @@ export interface VaultTransactionResponse {
|
|
|
1554
1559
|
success: boolean;
|
|
1555
1560
|
transactionHash: string;
|
|
1556
1561
|
}
|
|
1562
|
+
export interface KYCTokenRequest {
|
|
1563
|
+
country_code: string;
|
|
1564
|
+
identifier: string;
|
|
1565
|
+
}
|
|
1566
|
+
export interface KYCTokenResponse {
|
|
1567
|
+
token: string | null;
|
|
1568
|
+
provider: "smileid" | "sumsub";
|
|
1569
|
+
expires_at: string;
|
|
1570
|
+
verificationUrl?: string;
|
|
1571
|
+
linkDelivered?: boolean;
|
|
1572
|
+
deliveryMethod?: "email" | "sms" | "none";
|
|
1573
|
+
}
|
|
1574
|
+
export interface KYCUserExistsRequest {
|
|
1575
|
+
email?: string;
|
|
1576
|
+
phoneNumber?: string;
|
|
1577
|
+
externalId?: string;
|
|
1578
|
+
}
|
|
1579
|
+
export interface KYCUserExistsResponse {
|
|
1580
|
+
exists: boolean;
|
|
1581
|
+
userId?: string;
|
|
1582
|
+
kycStatus?: "verified" | "failed" | "pending" | "provisional";
|
|
1583
|
+
}
|
|
1584
|
+
export interface KYCStatusRequest {
|
|
1585
|
+
email?: string;
|
|
1586
|
+
phoneNumber?: string;
|
|
1587
|
+
externalId?: string;
|
|
1588
|
+
}
|
|
1589
|
+
export interface KYCStatusResponse {
|
|
1590
|
+
status: "verified" | "failed" | "pending" | "provisional";
|
|
1591
|
+
message: string;
|
|
1592
|
+
}
|
|
1593
|
+
export interface KYCVerifyAndSendOtpRequest {
|
|
1594
|
+
identifier: string;
|
|
1595
|
+
maxWaitTime?: number;
|
|
1596
|
+
}
|
|
1597
|
+
export interface KYCVerifyRequest {
|
|
1598
|
+
jobId: string;
|
|
1599
|
+
}
|
|
1600
|
+
export interface KYCVerifyResponse {
|
|
1601
|
+
success: boolean;
|
|
1602
|
+
kycVerified: boolean;
|
|
1603
|
+
message: string;
|
|
1604
|
+
}
|
|
1605
|
+
export interface KYCVerifiedResponse {
|
|
1606
|
+
success: boolean;
|
|
1607
|
+
kycVerified: boolean;
|
|
1608
|
+
}
|
|
1609
|
+
export interface KYCJobStatusResponse {
|
|
1610
|
+
success: boolean;
|
|
1611
|
+
status: "verified" | "failed" | "pending" | "provisional";
|
|
1612
|
+
complete: boolean;
|
|
1613
|
+
passed: boolean;
|
|
1614
|
+
underReview: boolean;
|
|
1615
|
+
message: string;
|
|
1616
|
+
}
|
|
1617
|
+
export interface LoyaltyStats {
|
|
1618
|
+
totalPoints: number;
|
|
1619
|
+
availablePoints: number;
|
|
1620
|
+
claimedPoints: number;
|
|
1621
|
+
stats: {
|
|
1622
|
+
currentStreak: number;
|
|
1623
|
+
uniqueActionTypes: number;
|
|
1624
|
+
cumulativeVolume: number;
|
|
1625
|
+
lastActivityDate: string | null;
|
|
1626
|
+
dailyPointsToday: number;
|
|
1627
|
+
};
|
|
1628
|
+
}
|
|
1629
|
+
export interface LoyaltyStatsResponse {
|
|
1630
|
+
success: boolean;
|
|
1631
|
+
data: LoyaltyStats;
|
|
1632
|
+
}
|
|
1633
|
+
export interface LoyaltyHistoryRequest {
|
|
1634
|
+
limit?: number;
|
|
1635
|
+
offset?: number;
|
|
1636
|
+
}
|
|
1637
|
+
export interface LoyaltyActivity {
|
|
1638
|
+
id: string;
|
|
1639
|
+
actionType: string;
|
|
1640
|
+
transactionValue: number;
|
|
1641
|
+
pointsEarned: number;
|
|
1642
|
+
pointValue: number;
|
|
1643
|
+
multiplier: number;
|
|
1644
|
+
metadata: any;
|
|
1645
|
+
createdAt: string;
|
|
1646
|
+
}
|
|
1647
|
+
export interface LoyaltyHistoryResponse {
|
|
1648
|
+
success: boolean;
|
|
1649
|
+
data: {
|
|
1650
|
+
activities: LoyaltyActivity[];
|
|
1651
|
+
pagination: {
|
|
1652
|
+
total: number;
|
|
1653
|
+
limit: number;
|
|
1654
|
+
offset: number;
|
|
1655
|
+
hasMore: boolean;
|
|
1656
|
+
};
|
|
1657
|
+
};
|
|
1658
|
+
}
|
|
1659
|
+
export interface LoyaltyLeaderboardRequest {
|
|
1660
|
+
limit?: number;
|
|
1661
|
+
}
|
|
1662
|
+
export interface LoyaltyLeaderboardEntry {
|
|
1663
|
+
rank: number;
|
|
1664
|
+
userId: string;
|
|
1665
|
+
totalPoints: number;
|
|
1666
|
+
address: string;
|
|
1667
|
+
}
|
|
1668
|
+
export interface LoyaltyLeaderboardResponse {
|
|
1669
|
+
success: boolean;
|
|
1670
|
+
data: {
|
|
1671
|
+
leaderboard: LoyaltyLeaderboardEntry[];
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
export interface LoyaltyMetricsResponse {
|
|
1675
|
+
success: boolean;
|
|
1676
|
+
data: {
|
|
1677
|
+
totalPointsIssued: number;
|
|
1678
|
+
totalUsers: number;
|
|
1679
|
+
totalRedemptions: number;
|
|
1680
|
+
totalRedeemed: number;
|
|
1681
|
+
averagePointsPerUser: number;
|
|
1682
|
+
};
|
|
1683
|
+
}
|
|
1684
|
+
export interface LoyaltyPointValueResponse {
|
|
1685
|
+
success: boolean;
|
|
1686
|
+
data: {
|
|
1687
|
+
pointValue: number;
|
|
1688
|
+
totalSupply: number;
|
|
1689
|
+
budget: number;
|
|
1690
|
+
commitment: number;
|
|
1691
|
+
remaining: number;
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
export interface LoyaltyRedeemRequest {
|
|
1695
|
+
points: number;
|
|
1696
|
+
redemptionType?: string;
|
|
1697
|
+
}
|
|
1698
|
+
export interface LoyaltyRedemption {
|
|
1699
|
+
redemptionId: string;
|
|
1700
|
+
pointsRedeemed: number;
|
|
1701
|
+
usdValue: number;
|
|
1702
|
+
recipientAddress: string;
|
|
1703
|
+
chain: string;
|
|
1704
|
+
token: string;
|
|
1705
|
+
status: "COMPLETED" | "FAILED";
|
|
1706
|
+
transactionHash: string;
|
|
1707
|
+
transactionUrl: string;
|
|
1708
|
+
}
|
|
1709
|
+
export interface LoyaltyRedeemResponse {
|
|
1710
|
+
success: boolean;
|
|
1711
|
+
message: string;
|
|
1712
|
+
data: LoyaltyRedemption;
|
|
1713
|
+
}
|
|
1714
|
+
export interface LoyaltyRedemptionHistoryItem {
|
|
1715
|
+
id: string;
|
|
1716
|
+
accountId: string;
|
|
1717
|
+
pointsRedeemed: number;
|
|
1718
|
+
pointValue: number;
|
|
1719
|
+
usdValue: number;
|
|
1720
|
+
redemptionType: string;
|
|
1721
|
+
status: "PENDING" | "COMPLETED" | "FAILED";
|
|
1722
|
+
completedAt: string | null;
|
|
1723
|
+
metadata: any;
|
|
1724
|
+
createdAt: string;
|
|
1725
|
+
}
|
|
1726
|
+
export interface LoyaltyRedemptionsResponse {
|
|
1727
|
+
success: boolean;
|
|
1728
|
+
data: {
|
|
1729
|
+
redemptions: LoyaltyRedemptionHistoryItem[];
|
|
1730
|
+
};
|
|
1731
|
+
}
|
|
1732
|
+
export interface LoyaltyConfigResponse {
|
|
1733
|
+
success: boolean;
|
|
1734
|
+
data: {
|
|
1735
|
+
config: {
|
|
1736
|
+
TOTAL_BUDGET: number;
|
|
1737
|
+
REDEMPTION: {
|
|
1738
|
+
MIN_POINTS: number;
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
note: string;
|
|
1742
|
+
};
|
|
1743
|
+
}
|
|
1744
|
+
export interface WeeklyPoolResponse {
|
|
1745
|
+
currentPool: any;
|
|
1746
|
+
userProgress: any;
|
|
1747
|
+
leaderboard: any[];
|
|
1748
|
+
pastWinners: any[];
|
|
1749
|
+
}
|
|
1750
|
+
export interface WeeklyPoolHistoryRequest {
|
|
1751
|
+
page?: number;
|
|
1752
|
+
limit?: number;
|
|
1753
|
+
}
|
|
1754
|
+
export interface WeeklyPoolHistoryResponse {
|
|
1755
|
+
pools: any[];
|
|
1756
|
+
pagination: {
|
|
1757
|
+
page: number;
|
|
1758
|
+
limit: number;
|
|
1759
|
+
total: number;
|
|
1760
|
+
pages: number;
|
|
1761
|
+
};
|
|
1762
|
+
}
|
|
1763
|
+
export interface WeeklyPoolReferralResponse {
|
|
1764
|
+
referralCode: string;
|
|
1765
|
+
referralLink: string;
|
|
1766
|
+
referralsCount: number;
|
|
1767
|
+
referralStats: any;
|
|
1768
|
+
}
|
|
1769
|
+
export interface ReferralFeeBalanceResponse {
|
|
1770
|
+
totalUsd: number;
|
|
1771
|
+
currencyBreakdown: Record<string, number>;
|
|
1772
|
+
entryCount: number;
|
|
1773
|
+
canClaim: boolean;
|
|
1774
|
+
nextClaimDate: string | null;
|
|
1775
|
+
}
|
|
1776
|
+
export interface ReferralFeeEntry {
|
|
1777
|
+
id: string;
|
|
1778
|
+
currency: string;
|
|
1779
|
+
amount: number;
|
|
1780
|
+
date: string;
|
|
1781
|
+
}
|
|
1782
|
+
export interface ReferralFeeEntriesResponse {
|
|
1783
|
+
totalUsd: number;
|
|
1784
|
+
currencyBreakdown: Record<string, number>;
|
|
1785
|
+
entries: ReferralFeeEntry[];
|
|
1786
|
+
}
|
|
1787
|
+
export interface ReferralFeeClaim {
|
|
1788
|
+
id: string;
|
|
1789
|
+
totalUsd: number;
|
|
1790
|
+
status: "PENDING" | "COMPLETED";
|
|
1791
|
+
createdAt: string;
|
|
1792
|
+
completedAt?: string | null;
|
|
1793
|
+
}
|
|
1794
|
+
export interface ReferralFeeClaimResponse {
|
|
1795
|
+
success: boolean;
|
|
1796
|
+
error?: string;
|
|
1797
|
+
claim: ReferralFeeClaim;
|
|
1798
|
+
}
|
|
1799
|
+
export interface ReferralFeeClaimsResponse {
|
|
1800
|
+
claims: ReferralFeeClaim[];
|
|
1801
|
+
}
|
|
1802
|
+
export interface ReferralFeeReferralsRequest {
|
|
1803
|
+
referralCode?: string;
|
|
1804
|
+
list?: "true" | "false";
|
|
1805
|
+
}
|
|
1806
|
+
export interface ReferralFeeReferralsResponse {
|
|
1807
|
+
referralCode: string;
|
|
1808
|
+
totalReferrals: number;
|
|
1809
|
+
referredUsers?: any[];
|
|
1810
|
+
}
|
|
1811
|
+
export interface BridgeRoutesResponse {
|
|
1812
|
+
routes: Record<string, string[]>;
|
|
1813
|
+
supportedTokens: string[];
|
|
1814
|
+
}
|
|
1815
|
+
export interface BridgeQuoteRequest {
|
|
1816
|
+
sourceChain: string;
|
|
1817
|
+
destinationChain: string;
|
|
1818
|
+
token: string;
|
|
1819
|
+
amount: string;
|
|
1820
|
+
}
|
|
1821
|
+
export interface BridgeQuoteResponse {
|
|
1822
|
+
sourceChain: string;
|
|
1823
|
+
destinationChain: string;
|
|
1824
|
+
token: string;
|
|
1825
|
+
inputAmount: string;
|
|
1826
|
+
outputAmount: string;
|
|
1827
|
+
fee: string;
|
|
1828
|
+
feeBps: number;
|
|
1829
|
+
estimatedTime: string;
|
|
1830
|
+
}
|
|
1831
|
+
export interface BridgeExecuteRequest {
|
|
1832
|
+
sourceChain: string;
|
|
1833
|
+
destinationChain: string;
|
|
1834
|
+
token: string;
|
|
1835
|
+
amount: string;
|
|
1836
|
+
recipient?: string;
|
|
1837
|
+
}
|
|
1838
|
+
export interface BridgeExecuteResponse {
|
|
1839
|
+
success: boolean;
|
|
1840
|
+
sourceChain: string;
|
|
1841
|
+
destinationChain: string;
|
|
1842
|
+
token: string;
|
|
1843
|
+
inputAmount: string;
|
|
1844
|
+
outputAmount: string;
|
|
1845
|
+
fee: string;
|
|
1846
|
+
recipient: string;
|
|
1847
|
+
transactionHash: string;
|
|
1848
|
+
smartWalletAddress: string;
|
|
1849
|
+
sourceChainId: number;
|
|
1850
|
+
destinationChainId: number;
|
|
1851
|
+
}
|
|
1852
|
+
export interface WalletConnectPairRequest {
|
|
1853
|
+
uri: string;
|
|
1854
|
+
chain: string;
|
|
1855
|
+
}
|
|
1856
|
+
export interface WalletConnectPairResponse {
|
|
1857
|
+
success: boolean;
|
|
1858
|
+
topic: string;
|
|
1859
|
+
smartWalletAddress: string;
|
|
1860
|
+
chain: string;
|
|
1861
|
+
chainId: number;
|
|
1862
|
+
peerName: string;
|
|
1863
|
+
peerUrl: string;
|
|
1864
|
+
}
|
|
1865
|
+
export interface WalletConnectSession {
|
|
1866
|
+
topic: string;
|
|
1867
|
+
peerName: string;
|
|
1868
|
+
peerUrl: string;
|
|
1869
|
+
chains: string[];
|
|
1870
|
+
[key: string]: any;
|
|
1871
|
+
}
|
|
1872
|
+
export interface WalletConnectRequest {
|
|
1873
|
+
id: string;
|
|
1874
|
+
method: string;
|
|
1875
|
+
params: any;
|
|
1876
|
+
[key: string]: any;
|
|
1877
|
+
}
|
|
1878
|
+
export interface CreateProjectRequest {
|
|
1879
|
+
name: string;
|
|
1880
|
+
email?: string;
|
|
1881
|
+
phoneNumber?: string;
|
|
1882
|
+
known_origins?: string;
|
|
1883
|
+
payment_link_widget?: string;
|
|
1884
|
+
}
|
|
1885
|
+
export interface ProjectData {
|
|
1886
|
+
id: string;
|
|
1887
|
+
name: string;
|
|
1888
|
+
api_key?: string;
|
|
1889
|
+
owner_phone?: string;
|
|
1890
|
+
owner_email?: string;
|
|
1891
|
+
known_origins?: string[];
|
|
1892
|
+
api_calls?: number;
|
|
1893
|
+
payment_link_widget?: string;
|
|
1894
|
+
createdAt: string;
|
|
1895
|
+
updatedAt?: string;
|
|
1896
|
+
}
|
|
1897
|
+
export interface CreateProjectResponse {
|
|
1898
|
+
success: boolean;
|
|
1899
|
+
message: string;
|
|
1900
|
+
data: ProjectData;
|
|
1901
|
+
}
|
|
1902
|
+
export interface GetProjectsRequest {
|
|
1903
|
+
page?: number;
|
|
1904
|
+
limit?: number;
|
|
1905
|
+
}
|
|
1906
|
+
export interface GetProjectsResponse {
|
|
1907
|
+
success: boolean;
|
|
1908
|
+
data: {
|
|
1909
|
+
projects: ProjectData[];
|
|
1910
|
+
pagination: {
|
|
1911
|
+
page: number;
|
|
1912
|
+
limit: number;
|
|
1913
|
+
total: number;
|
|
1914
|
+
pages: number;
|
|
1915
|
+
};
|
|
1916
|
+
};
|
|
1917
|
+
}
|
|
1918
|
+
export interface GetMyProjectsRequest {
|
|
1919
|
+
email?: string;
|
|
1920
|
+
phoneNumber?: string;
|
|
1921
|
+
}
|
|
1922
|
+
export interface GetMyProjectsResponse {
|
|
1923
|
+
success: boolean;
|
|
1924
|
+
data: ProjectData[];
|
|
1925
|
+
}
|
|
1926
|
+
export interface GetProjectResponse {
|
|
1927
|
+
success: boolean;
|
|
1928
|
+
data: ProjectData;
|
|
1929
|
+
}
|
|
1930
|
+
export interface ProjectStatsResponse {
|
|
1931
|
+
success: boolean;
|
|
1932
|
+
data: {
|
|
1933
|
+
api_calls: number;
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
export interface RegenerateKeyResponse {
|
|
1937
|
+
success: boolean;
|
|
1938
|
+
message: string;
|
|
1939
|
+
data: ProjectData;
|
|
1940
|
+
}
|
|
1941
|
+
export interface AddOriginRequest {
|
|
1942
|
+
origin: string;
|
|
1943
|
+
phoneNumber?: string;
|
|
1944
|
+
email?: string;
|
|
1945
|
+
}
|
|
1946
|
+
export interface AddOriginResponse {
|
|
1947
|
+
success: boolean;
|
|
1948
|
+
message: string;
|
|
1949
|
+
data: ProjectData;
|
|
1950
|
+
}
|
|
1951
|
+
export interface UpdatePaymentWidgetRequest {
|
|
1952
|
+
id: string;
|
|
1953
|
+
payment_link_widget: string;
|
|
1954
|
+
}
|
|
1955
|
+
export interface UpdatePaymentWidgetResponse {
|
|
1956
|
+
success: boolean;
|
|
1957
|
+
data: ProjectData;
|
|
1958
|
+
}
|
|
1959
|
+
export interface SuspendUserRequest {
|
|
1960
|
+
phoneNumber?: string;
|
|
1961
|
+
email?: string;
|
|
1962
|
+
externalId?: string;
|
|
1963
|
+
userId?: string;
|
|
1964
|
+
reason?: string;
|
|
1965
|
+
projectOwnerPhone?: string;
|
|
1966
|
+
projectOwnerEmail?: string;
|
|
1967
|
+
}
|
|
1968
|
+
export interface SuspendUserResponse {
|
|
1969
|
+
success: boolean;
|
|
1970
|
+
message: string;
|
|
1971
|
+
data: {
|
|
1972
|
+
userId: string;
|
|
1973
|
+
email: string;
|
|
1974
|
+
phoneNumber: string;
|
|
1975
|
+
externalId: string;
|
|
1976
|
+
suspendedAt: string;
|
|
1977
|
+
suspendedReason: string;
|
|
1978
|
+
};
|
|
1979
|
+
}
|
|
1980
|
+
export interface UnsuspendUserRequest {
|
|
1981
|
+
phoneNumber?: string;
|
|
1982
|
+
email?: string;
|
|
1983
|
+
externalId?: string;
|
|
1984
|
+
userId?: string;
|
|
1985
|
+
projectOwnerPhone?: string;
|
|
1986
|
+
projectOwnerEmail?: string;
|
|
1987
|
+
}
|
|
1988
|
+
export interface UnsuspendUserResponse {
|
|
1989
|
+
success: boolean;
|
|
1990
|
+
message: string;
|
|
1991
|
+
data: {
|
|
1992
|
+
userId: string;
|
|
1993
|
+
email: string;
|
|
1994
|
+
phoneNumber: string;
|
|
1995
|
+
externalId: string;
|
|
1996
|
+
isSuspended: false;
|
|
1997
|
+
};
|
|
1998
|
+
}
|
|
1999
|
+
export interface GetSuspendedUsersRequest {
|
|
2000
|
+
projectOwnerPhone?: string;
|
|
2001
|
+
projectOwnerEmail?: string;
|
|
2002
|
+
}
|
|
2003
|
+
export interface SuspendedUser {
|
|
2004
|
+
id: string;
|
|
2005
|
+
email: string;
|
|
2006
|
+
phoneNumber: string;
|
|
2007
|
+
externalId: string;
|
|
2008
|
+
display_name: string;
|
|
2009
|
+
suspendedAt: string;
|
|
2010
|
+
suspendedReason: string;
|
|
2011
|
+
suspendedBy: string;
|
|
2012
|
+
createdAt: string;
|
|
2013
|
+
}
|
|
2014
|
+
export interface GetSuspendedUsersResponse {
|
|
2015
|
+
success: boolean;
|
|
2016
|
+
message: string;
|
|
2017
|
+
data: {
|
|
2018
|
+
suspendedUsers: SuspendedUser[];
|
|
2019
|
+
totalCount: number;
|
|
2020
|
+
};
|
|
2021
|
+
}
|
|
2022
|
+
export interface GetUserStatusRequest {
|
|
2023
|
+
phoneNumber?: string;
|
|
2024
|
+
email?: string;
|
|
2025
|
+
externalId?: string;
|
|
2026
|
+
userId?: string;
|
|
2027
|
+
}
|
|
2028
|
+
export interface GetUserStatusResponse {
|
|
2029
|
+
success: boolean;
|
|
2030
|
+
data: {
|
|
2031
|
+
userId: string;
|
|
2032
|
+
email: string;
|
|
2033
|
+
phoneNumber: string;
|
|
2034
|
+
externalId: string;
|
|
2035
|
+
isSuspended: boolean;
|
|
2036
|
+
suspendedAt: string | null;
|
|
2037
|
+
suspendedReason: string | null;
|
|
2038
|
+
suspendedBy: string | null;
|
|
2039
|
+
};
|
|
2040
|
+
}
|
|
2041
|
+
export interface StatsVolumeResponse {
|
|
2042
|
+
data: {
|
|
2043
|
+
usdcDeposits: number;
|
|
2044
|
+
usdcDepositsCount: number;
|
|
2045
|
+
usdcDepositsInKes: number;
|
|
2046
|
+
offrampVolume: number;
|
|
2047
|
+
offrampVolumeInKes: number;
|
|
2048
|
+
offrampVolumeCount: number;
|
|
2049
|
+
totalVolume: number;
|
|
2050
|
+
totalVolumeCount: number;
|
|
2051
|
+
totalVolumeInKes: number;
|
|
2052
|
+
};
|
|
2053
|
+
}
|
|
2054
|
+
export interface StatsUsersResponse {
|
|
2055
|
+
data: number;
|
|
2056
|
+
}
|
|
2057
|
+
export interface StatsTvlResponse {
|
|
2058
|
+
data: {
|
|
2059
|
+
totalValueLocked: number;
|
|
2060
|
+
totalValueLockedInKes: number;
|
|
2061
|
+
walletsCount: number;
|
|
2062
|
+
exchangeRate: number;
|
|
2063
|
+
currency: string;
|
|
2064
|
+
};
|
|
2065
|
+
}
|
|
1557
2066
|
//# sourceMappingURL=types.d.ts.map
|