@getpara/user-management-client 2.0.0-alpha.40 → 2.0.0-alpha.42

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.
@@ -217,7 +217,10 @@ class Client {
217
217
  return res;
218
218
  });
219
219
  this.verifyExternalWallet = (userId, body) => __async(this, null, function* () {
220
- const res = yield this.baseRequest.post(`/users/${userId}/external-wallets/verify/v2`, body);
220
+ const res = yield this.baseRequest.post(
221
+ `/users/${userId}/external-wallets/verify/v2`,
222
+ body
223
+ );
221
224
  return res.data;
222
225
  });
223
226
  // POST /users/:userId/biometrics/key
@@ -140,7 +140,10 @@ class Client {
140
140
  return res;
141
141
  });
142
142
  this.verifyExternalWallet = (userId, body) => __async(this, null, function* () {
143
- const res = yield this.baseRequest.post(`/users/${userId}/external-wallets/verify/v2`, body);
143
+ const res = yield this.baseRequest.post(
144
+ `/users/${userId}/external-wallets/verify/v2`,
145
+ body
146
+ );
144
147
  return res.data;
145
148
  });
146
149
  // POST /users/:userId/biometrics/key
@@ -197,7 +197,7 @@ declare class Client {
197
197
  * @deprecated
198
198
  */
199
199
  verifyPhone: (userId: string, body: verifyBody) => Promise<any>;
200
- verifyExternalWallet: (userId: string, body: VerifyExternalWalletParams) => Promise<ServerAuthStateSignup>;
200
+ verifyExternalWallet: (userId: string, body: VerifyExternalWalletParams) => Promise<ServerAuthStateSignup | ServerAuthStateLogin>;
201
201
  addSessionPublicKey: (userId: string, body: sessionPublicKeyBody) => Promise<any>;
202
202
  getSessionPublicKeys: (userId: string) => Promise<any>;
203
203
  getBiometricLocationHints: (auth: PrimaryAuth) => Promise<BiometricLocationHint[]>;
@@ -170,6 +170,7 @@ export type ServerAuthStateLogin = ServerAuthStateBase & {
170
170
  loginAuthMethods: AuthMethod[];
171
171
  isWalletSelectionNeeded?: boolean;
172
172
  hasPasswordWithoutPIN?: boolean;
173
+ signatureVerificationMessage?: string;
173
174
  };
174
175
  export type VerifyThirdPartyAuth = ServerAuthStateSignup | ServerAuthStateLogin;
175
176
  export type ExternalWalletInfo = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/user-management-client",
3
- "version": "2.0.0-alpha.40",
3
+ "version": "2.0.0-alpha.42",
4
4
  "dependencies": {
5
5
  "axios": "^1.8.4",
6
6
  "libphonenumber-js": "^1.11.7"
@@ -19,7 +19,7 @@
19
19
  "dist",
20
20
  "package.json"
21
21
  ],
22
- "gitHead": "2506044cd3ed127774fb7d537ae850b43acfe8b7",
22
+ "gitHead": "6f44dc050550a1f567088c81b3ae06c7f1f8ebcb",
23
23
  "main": "dist/cjs/index.js",
24
24
  "module": "dist/esm/index.js",
25
25
  "scripts": {