@getpara/user-management-client 3.0.0 → 3.1.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.
@@ -389,8 +389,8 @@ class Client {
389
389
  return res;
390
390
  });
391
391
  // POST /users/:userId/wallets/:walletId/refresh
392
- this.refreshKeys = (userId, walletId, oldPartnerId, newPartnerId, keyShareProtocolId) => __async(this, null, function* () {
393
- const body = { oldPartnerId, newPartnerId, keyShareProtocolId };
392
+ this.refreshKeys = (userId, walletId, oldPartnerId, newPartnerId, keyShareProtocolId, useNewOT) => __async(this, null, function* () {
393
+ const body = { oldPartnerId, newPartnerId, keyShareProtocolId, useNewOT };
394
394
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/refresh`, body);
395
395
  return res;
396
396
  });
@@ -450,8 +450,8 @@ class Client {
450
450
  const res = yield this.baseRequest.post("/recovery", body);
451
451
  return res;
452
452
  });
453
- this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId) => __async(this, null, function* () {
454
- const body = { message, scheme, cosmosSignDoc, protocolId };
453
+ this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId, useNewOT) => __async(this, null, function* () {
454
+ const body = { message, scheme, cosmosSignDoc, protocolId, useNewOT };
455
455
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/messages/sign`, body);
456
456
  return res.data;
457
457
  });
@@ -319,8 +319,8 @@ class Client {
319
319
  return res;
320
320
  });
321
321
  // POST /users/:userId/wallets/:walletId/refresh
322
- this.refreshKeys = (userId, walletId, oldPartnerId, newPartnerId, keyShareProtocolId) => __async(this, null, function* () {
323
- const body = { oldPartnerId, newPartnerId, keyShareProtocolId };
322
+ this.refreshKeys = (userId, walletId, oldPartnerId, newPartnerId, keyShareProtocolId, useNewOT) => __async(this, null, function* () {
323
+ const body = { oldPartnerId, newPartnerId, keyShareProtocolId, useNewOT };
324
324
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/refresh`, body);
325
325
  return res;
326
326
  });
@@ -380,8 +380,8 @@ class Client {
380
380
  const res = yield this.baseRequest.post("/recovery", body);
381
381
  return res;
382
382
  });
383
- this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId) => __async(this, null, function* () {
384
- const body = { message, scheme, cosmosSignDoc, protocolId };
383
+ this.preSignMessage = (userId, walletId, message, scheme, cosmosSignDoc, protocolId, useNewOT) => __async(this, null, function* () {
384
+ const body = { message, scheme, cosmosSignDoc, protocolId, useNewOT };
385
385
  const res = yield this.baseRequest.post(`/users/${userId}/wallets/${walletId}/messages/sign`, body);
386
386
  return res.data;
387
387
  });
@@ -125,12 +125,14 @@ interface signTransactionBody {
125
125
  transaction: string;
126
126
  chainId: string;
127
127
  protocolId?: string;
128
+ useNewOT?: boolean;
128
129
  }
129
130
  interface sendTransactionBody {
130
131
  transaction: string;
131
132
  chain?: Chain;
132
133
  chainId?: string;
133
134
  protocolId?: string;
135
+ useNewOT?: boolean;
134
136
  }
135
137
  interface AcceptScopesBody {
136
138
  scopeIds: string[];
@@ -277,7 +279,7 @@ declare class Client {
277
279
  }>;
278
280
  sendTransaction: (userId: string, walletId: string, body: sendTransactionBody) => Promise<any>;
279
281
  signTransaction: (userId: string, walletId: string, body: signTransactionBody) => Promise<any>;
280
- refreshKeys: (userId: string, walletId: string, oldPartnerId?: string, newPartnerId?: string, keyShareProtocolId?: string) => Promise<any>;
282
+ refreshKeys: (userId: string, walletId: string, oldPartnerId?: string, newPartnerId?: string, keyShareProtocolId?: string, useNewOT?: boolean) => Promise<any>;
281
283
  updatePregenWallet: (walletId: string, body: updatePregenWalletBody) => Promise<any>;
282
284
  getWallets: (userId: string, includePartnerData?: boolean) => Promise<AxiosResponse<GetWalletsRes, any>>;
283
285
  getAllWallets: (userId: string) => Promise<AxiosResponse<GetWalletsRes, any>>;
@@ -289,7 +291,7 @@ declare class Client {
289
291
  logout: () => Promise<any>;
290
292
  recoveryVerification: (email: string, verificationCode: string) => Promise<any>;
291
293
  recoveryInit: (email: string) => Promise<any>;
292
- preSignMessage: (userId: string, walletId: string, message: string, scheme?: TWalletScheme, cosmosSignDoc?: string, protocolId?: string) => Promise<any>;
294
+ preSignMessage: (userId: string, walletId: string, message: string, scheme?: TWalletScheme, cosmosSignDoc?: string, protocolId?: string, useNewOT?: boolean) => Promise<any>;
293
295
  deleteSelf: (userId: string) => Promise<any>;
294
296
  uploadKeyshares(userId: string, walletId: string, encryptedKeyshares: EncryptedKeyShare[]): Promise<any>;
295
297
  uploadUserKeyShares(userId: string, encryptedKeyshares: (EncryptedKeyShare & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "dependencies": {
5
5
  "@getpara/shared": "^1.21.0",
6
6
  "@opentelemetry/api": "^1.9.1",
@@ -22,7 +22,7 @@
22
22
  "dist",
23
23
  "package.json"
24
24
  ],
25
- "gitHead": "e6c42e42adfcfadb0114b1ac65ba5203e6274712",
25
+ "gitHead": "e73f17cd7960fdfe62ff68a972b3461e47b21eb0",
26
26
  "main": "dist/cjs/index.js",
27
27
  "module": "dist/esm/index.js",
28
28
  "scripts": {