@pear-protocol/core-sdk 2.3.0 → 2.4.0
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/auth/index.d.ts +4 -4
- package/dist/core/index.d.ts +5 -5
- package/dist/vaults/index.d.ts +22 -15
- package/package.json +2 -2
package/dist/auth/index.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare class Auth {
|
|
|
47
47
|
refreshToken: string;
|
|
48
48
|
user: {
|
|
49
49
|
id: string;
|
|
50
|
-
role: "
|
|
50
|
+
role: "basic" | "pro" | "vault";
|
|
51
51
|
providerId: string | null;
|
|
52
52
|
loginMethod: "email" | "evm_wallet" | "oauth" | "x";
|
|
53
53
|
};
|
|
@@ -77,7 +77,7 @@ declare class Auth {
|
|
|
77
77
|
refreshToken: string;
|
|
78
78
|
user: {
|
|
79
79
|
id: string;
|
|
80
|
-
role: "
|
|
80
|
+
role: "basic" | "pro" | "vault";
|
|
81
81
|
providerId: string | null;
|
|
82
82
|
loginMethod: "email" | "evm_wallet" | "oauth" | "x";
|
|
83
83
|
};
|
|
@@ -91,7 +91,7 @@ declare class Auth {
|
|
|
91
91
|
logout(headers?: ClientHeaders): Promise<void>;
|
|
92
92
|
me(headers?: ClientHeaders): Promise<{
|
|
93
93
|
id: string;
|
|
94
|
-
role: "
|
|
94
|
+
role: "basic" | "pro" | "vault";
|
|
95
95
|
providerId: string | null;
|
|
96
96
|
loginMethod: "email" | "evm_wallet" | "oauth" | "x";
|
|
97
97
|
identities: {
|
|
@@ -102,7 +102,7 @@ declare class Auth {
|
|
|
102
102
|
}>;
|
|
103
103
|
apiKeyMe(headers?: ClientHeaders): Promise<{
|
|
104
104
|
id: string;
|
|
105
|
-
role: "
|
|
105
|
+
role: "basic" | "pro" | "vault";
|
|
106
106
|
scope: "read" | "read_write";
|
|
107
107
|
authMethod: "api_key";
|
|
108
108
|
}>;
|
package/dist/core/index.d.ts
CHANGED
|
@@ -4075,7 +4075,7 @@ declare class Core {
|
|
|
4075
4075
|
createdAt: string;
|
|
4076
4076
|
updatedAt: string;
|
|
4077
4077
|
weightSource: "LIVE_BETA";
|
|
4078
|
-
timeframe: "
|
|
4078
|
+
timeframe: "1d" | "1h" | "4h";
|
|
4079
4079
|
beta: {
|
|
4080
4080
|
state: "PENDING";
|
|
4081
4081
|
} | {
|
|
@@ -4110,7 +4110,7 @@ declare class Core {
|
|
|
4110
4110
|
createdAt: string;
|
|
4111
4111
|
updatedAt: string;
|
|
4112
4112
|
weightSource: "LIVE_BETA";
|
|
4113
|
-
timeframe: "
|
|
4113
|
+
timeframe: "1d" | "1h" | "4h";
|
|
4114
4114
|
beta: {
|
|
4115
4115
|
state: "PENDING";
|
|
4116
4116
|
} | {
|
|
@@ -4144,7 +4144,7 @@ declare class Core {
|
|
|
4144
4144
|
createdAt: string;
|
|
4145
4145
|
updatedAt: string;
|
|
4146
4146
|
weightSource: "LIVE_BETA";
|
|
4147
|
-
timeframe: "
|
|
4147
|
+
timeframe: "1d" | "1h" | "4h";
|
|
4148
4148
|
beta: {
|
|
4149
4149
|
state: "PENDING";
|
|
4150
4150
|
} | {
|
|
@@ -4178,7 +4178,7 @@ declare class Core {
|
|
|
4178
4178
|
createdAt: string;
|
|
4179
4179
|
updatedAt: string;
|
|
4180
4180
|
weightSource: "LIVE_BETA";
|
|
4181
|
-
timeframe: "
|
|
4181
|
+
timeframe: "1d" | "1h" | "4h";
|
|
4182
4182
|
beta: {
|
|
4183
4183
|
state: "PENDING";
|
|
4184
4184
|
} | {
|
|
@@ -7567,7 +7567,7 @@ declare class Core {
|
|
|
7567
7567
|
profile: {
|
|
7568
7568
|
id: string;
|
|
7569
7569
|
displayName: string;
|
|
7570
|
-
role: "
|
|
7570
|
+
role: "basic" | "pro" | "vault";
|
|
7571
7571
|
address: string | null;
|
|
7572
7572
|
email: string | null;
|
|
7573
7573
|
emailVerified: boolean;
|
package/dist/vaults/index.d.ts
CHANGED
|
@@ -221,21 +221,28 @@ declare class Vaults {
|
|
|
221
221
|
metadata: {
|
|
222
222
|
/** PATCH /vaults/:vaultAddress — update mutable metadata fields on a vault. */
|
|
223
223
|
update: (vaultAddress: string, body: HttpTypes.UpdateVaultMetadataInput, headers?: ClientHeaders) => Promise<{
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
224
|
+
result: {
|
|
225
|
+
success: true;
|
|
226
|
+
vault: {
|
|
227
|
+
id: string;
|
|
228
|
+
vaultAddress: HttpTypes.EthereumAddress;
|
|
229
|
+
ownerAddress: HttpTypes.EthereumAddress;
|
|
230
|
+
traderAddress: HttpTypes.EthereumAddress | null;
|
|
231
|
+
agentAddress: HttpTypes.EthereumAddress;
|
|
232
|
+
status: "active" | "inactive" | "pending_activation";
|
|
233
|
+
isApproved: boolean;
|
|
234
|
+
name: string | null;
|
|
235
|
+
about: string | null;
|
|
236
|
+
imageUrl: string | null;
|
|
237
|
+
transactionHash: string | null;
|
|
238
|
+
maxWithdrawalPeriodDays: number;
|
|
239
|
+
createdAt: string;
|
|
240
|
+
updatedAt: string;
|
|
241
|
+
};
|
|
242
|
+
} | {
|
|
243
|
+
success: false;
|
|
244
|
+
status: "in_progress";
|
|
245
|
+
activityId: string;
|
|
239
246
|
};
|
|
240
247
|
}>;
|
|
241
248
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pear-protocol/core-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Pear Protocol Core SDK",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"typecheck": "tsc --noEmit"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pear-protocol/types": "^2.
|
|
29
|
+
"@pear-protocol/types": "^2.11.0",
|
|
30
30
|
"@pear-protocol/utils": "^1.2.0",
|
|
31
31
|
"qs": "^6.14.0"
|
|
32
32
|
},
|