@dynamic-labs/waas 4.25.5 → 4.25.7

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/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
1
 
2
+ ### [4.25.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.6...v4.25.7) (2025-07-28)
3
+
4
+ ### [4.25.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.5...v4.25.6) (2025-07-28)
5
+
6
+
7
+ ### Bug Fixes
8
+
9
+ * don't create a new user when linking a wallet to a user with no wallets ([#9252](https://github.com/dynamic-labs/dynamic-auth/issues/9252)) ([30f846e](https://github.com/dynamic-labs/dynamic-auth/commit/30f846e89f2dffd112e656201bfa1cc24b787f03))
10
+ * Nufi EVM wallet showing up twice in wallet list ([#9256](https://github.com/dynamic-labs/dynamic-auth/issues/9256)) ([213488e](https://github.com/dynamic-labs/dynamic-auth/commit/213488e2226ef55965e12a1a548845cb100e859f))
11
+
2
12
  ### [4.25.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.25.4...v4.25.5) (2025-07-27)
3
13
 
4
14
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.25.5";
6
+ var version = "4.25.7";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.25.5";
2
+ var version = "4.25.7";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas",
3
- "version": "4.25.5",
3
+ "version": "4.25.7",
4
4
  "type": "module",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -16,13 +16,14 @@
16
16
  "./package.json": "./package.json"
17
17
  },
18
18
  "dependencies": {
19
- "@dynamic-labs/assert-package-version": "4.25.5",
19
+ "@dynamic-labs/assert-package-version": "4.25.7",
20
+ "@dynamic-labs/sdk-api-core": "0.0.728",
20
21
  "@dynamic-labs-wallet/browser-wallet-client": "0.0.124",
21
- "@dynamic-labs/ethereum-core": "4.25.5",
22
- "@dynamic-labs/solana-core": "4.25.5",
23
- "@dynamic-labs/sui-core": "4.25.5",
24
- "@dynamic-labs/utils": "4.25.5",
25
- "@dynamic-labs/wallet-book": "4.25.5"
22
+ "@dynamic-labs/ethereum-core": "4.25.7",
23
+ "@dynamic-labs/solana-core": "4.25.7",
24
+ "@dynamic-labs/sui-core": "4.25.7",
25
+ "@dynamic-labs/utils": "4.25.7",
26
+ "@dynamic-labs/wallet-book": "4.25.7"
26
27
  },
27
28
  "peerDependencies": {}
28
29
  }
@@ -6,6 +6,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
  var _tslib = require('../_virtual/_tslib.cjs');
7
7
  var browserWalletClient = require('@dynamic-labs-wallet/browser-wallet-client');
8
8
  var utils = require('@dynamic-labs/utils');
9
+ var sdkApiCore = require('@dynamic-labs/sdk-api-core');
9
10
  var _package = require('../package.cjs');
10
11
  var constants = require('../utils/constants.cjs');
11
12
 
@@ -167,7 +168,9 @@ const withDynamicWaas = (BaseClass) => {
167
168
  throw new utils.DynamicError('Signed session ID is required');
168
169
  }
169
170
  this.__exportHandler.setIframeStamper(displayContainer);
170
- const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this));
171
+ const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
172
+ mfaAction: sdkApiCore.MFAAction.WalletWaasExport,
173
+ }));
171
174
  yield walletClient.exportPrivateKey({
172
175
  accountAddress: targetAccountAddress,
173
176
  authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
@@ -230,7 +233,9 @@ const withDynamicWaas = (BaseClass) => {
230
233
  if (!signedSessionId) {
231
234
  throw new utils.DynamicError('Signed session ID is required');
232
235
  }
233
- const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this));
236
+ const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
237
+ mfaAction: sdkApiCore.MFAAction.WalletWaasRefresh,
238
+ }));
234
239
  return walletClient.refreshWalletAccountShares({
235
240
  accountAddress,
236
241
  authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
@@ -274,7 +279,9 @@ const withDynamicWaas = (BaseClass) => {
274
279
  if (!signedSessionId) {
275
280
  throw new utils.DynamicError('Signed session ID is required');
276
281
  }
277
- const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this));
282
+ const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
283
+ mfaAction: sdkApiCore.MFAAction.WalletWaasSign,
284
+ }));
278
285
  return walletClient.signRawMessage({
279
286
  accountAddress,
280
287
  authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
@@ -1,4 +1,5 @@
1
1
  import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
2
+ import { MFAAction } from '@dynamic-labs/sdk-api-core';
2
3
  export declare class WaasExportHandler {
3
4
  private iframeStamper;
4
5
  setIframeStamper(iframe: HTMLIFrameElement): void;
@@ -10,7 +11,9 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
10
11
  overrideKey: string;
11
12
  isEmbeddedWallet: boolean;
12
13
  getSignedSessionId?: (() => Promise<string>) | undefined;
13
- getMfaToken?: (() => Promise<string | undefined>) | undefined;
14
+ getMfaToken?: ((props?: {
15
+ mfaAction?: MFAAction;
16
+ }) => Promise<string | undefined>) | undefined;
14
17
  getAuthToken?: (() => string) | undefined;
15
18
  environmentId?: string | undefined;
16
19
  baseApiUrl?: string | undefined;
@@ -20,7 +23,9 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
20
23
  __exportHandler: WaasExportHandler;
21
24
  validateActiveWallet(expectedAddress: string): Promise<void>;
22
25
  setGetAuthTokenFunction(getAuthToken: () => string): void;
23
- setGetMfaTokenFunction(getMfaToken: () => Promise<string | undefined>): void;
26
+ setGetMfaTokenFunction(getMfaToken: (props?: {
27
+ mfaAction?: MFAAction;
28
+ }) => Promise<string | undefined>): void;
24
29
  setEnvironmentId(environmentId: string): void;
25
30
  setBaseApiUrl(baseApiUrl: string): void;
26
31
  setRelayUrl(relayUrl: string): void;
@@ -2,6 +2,7 @@
2
2
  import { __awaiter } from '../_virtual/_tslib.js';
3
3
  import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
4
4
  import { DynamicError } from '@dynamic-labs/utils';
5
+ import { MFAAction } from '@dynamic-labs/sdk-api-core';
5
6
  import { version } from '../package.js';
6
7
  import { DEFAULT_BASE_API_URL, DEFAULT_BASE_MPC_RELAY_API_URL } from '../utils/constants.js';
7
8
 
@@ -163,7 +164,9 @@ const withDynamicWaas = (BaseClass) => {
163
164
  throw new DynamicError('Signed session ID is required');
164
165
  }
165
166
  this.__exportHandler.setIframeStamper(displayContainer);
166
- const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this));
167
+ const mfaToken = yield ((_b = this.getMfaToken) === null || _b === void 0 ? void 0 : _b.call(this, {
168
+ mfaAction: MFAAction.WalletWaasExport,
169
+ }));
167
170
  yield walletClient.exportPrivateKey({
168
171
  accountAddress: targetAccountAddress,
169
172
  authToken: (_c = this.getAuthToken) === null || _c === void 0 ? void 0 : _c.call(this),
@@ -226,7 +229,9 @@ const withDynamicWaas = (BaseClass) => {
226
229
  if (!signedSessionId) {
227
230
  throw new DynamicError('Signed session ID is required');
228
231
  }
229
- const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this));
232
+ const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
233
+ mfaAction: MFAAction.WalletWaasRefresh,
234
+ }));
230
235
  return walletClient.refreshWalletAccountShares({
231
236
  accountAddress,
232
237
  authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
@@ -270,7 +275,9 @@ const withDynamicWaas = (BaseClass) => {
270
275
  if (!signedSessionId) {
271
276
  throw new DynamicError('Signed session ID is required');
272
277
  }
273
- const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this));
278
+ const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
279
+ mfaAction: MFAAction.WalletWaasSign,
280
+ }));
274
281
  return walletClient.signRawMessage({
275
282
  accountAddress,
276
283
  authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),