@getpara/user-management-client 1.15.0 → 1.16.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/cjs/client.js +2 -2
- package/dist/esm/client.js +2 -2
- package/dist/types/client.d.ts +3 -1
- package/package.json +2 -2
package/dist/cjs/client.js
CHANGED
|
@@ -309,8 +309,8 @@ class Client {
|
|
|
309
309
|
const res = yield this.baseRequest.post("/recovery", body);
|
|
310
310
|
return res;
|
|
311
311
|
});
|
|
312
|
-
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc) => __async(this, null, function* () {
|
|
313
|
-
const body = { message, scheme, cosmosSignDoc };
|
|
312
|
+
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId) => __async(this, null, function* () {
|
|
313
|
+
const body = { message, scheme, cosmosSignDoc, protocolId };
|
|
314
314
|
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/messages/sign`, body);
|
|
315
315
|
return res.data;
|
|
316
316
|
});
|
package/dist/esm/client.js
CHANGED
|
@@ -232,8 +232,8 @@ class Client {
|
|
|
232
232
|
const res = yield this.baseRequest.post("/recovery", body);
|
|
233
233
|
return res;
|
|
234
234
|
});
|
|
235
|
-
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc) => __async(this, null, function* () {
|
|
236
|
-
const body = { message, scheme, cosmosSignDoc };
|
|
235
|
+
this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId) => __async(this, null, function* () {
|
|
236
|
+
const body = { message, scheme, cosmosSignDoc, protocolId };
|
|
237
237
|
const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/messages/sign`, body);
|
|
238
238
|
return res.data;
|
|
239
239
|
});
|
package/dist/types/client.d.ts
CHANGED
|
@@ -124,11 +124,13 @@ interface claimPreGenWalletsBody {
|
|
|
124
124
|
interface signTransactionBody {
|
|
125
125
|
transaction: string;
|
|
126
126
|
chainId: string;
|
|
127
|
+
protocolId?: string;
|
|
127
128
|
}
|
|
128
129
|
interface sendTransactionBody {
|
|
129
130
|
transaction: string;
|
|
130
131
|
chain?: Chain;
|
|
131
132
|
chainId?: string;
|
|
133
|
+
protocolId?: string;
|
|
132
134
|
}
|
|
133
135
|
interface AcceptScopesBody {
|
|
134
136
|
scopeIds: string[];
|
|
@@ -200,7 +202,7 @@ declare class Client {
|
|
|
200
202
|
logout: () => Promise<any>;
|
|
201
203
|
recoveryVerification: (email: string, verificationCode: string) => Promise<any>;
|
|
202
204
|
recoveryInit: (email: string) => Promise<any>;
|
|
203
|
-
preSignMessage: (userId: string, walletId: string, message: string, scheme?: WalletScheme, cosmosSignDoc?: string) => Promise<any>;
|
|
205
|
+
preSignMessage: (userId: string, walletId: string, message: string, scheme?: WalletScheme, cosmosSignDoc?: string, protocolId?: string) => Promise<any>;
|
|
204
206
|
deleteSelf: (userId: string) => Promise<any>;
|
|
205
207
|
uploadKeyshares(userId: string, walletId: string, encryptedKeyshares: EncryptedKeyShare[]): Promise<any>;
|
|
206
208
|
uploadUserKeyShares(userId: string, encryptedKeyshares: (EncryptedKeyShare & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/user-management-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"require": "./dist/cjs/index.js"
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "27004dc519903d24ffafa0d8da16976dae9278a2"
|
|
36
36
|
}
|