@dynamic-labs/waas 4.57.2 → 4.58.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/CHANGELOG.md CHANGED
@@ -1,4 +1,18 @@
1
1
 
2
+ ## [4.58.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.57.2...v4.58.0) (2026-01-28)
3
+
4
+
5
+ ### Features
6
+
7
+ * add password setup flow for WaaS wallets ([#10308](https://github.com/dynamic-labs/dynamic-auth/issues/10308)) ([aad892d](https://github.com/dynamic-labs/dynamic-auth/commit/aad892d0359df589753b141c1099a03c72b799d9))
8
+ * add useRefreshAuth ([#10280](https://github.com/dynamic-labs/dynamic-auth/issues/10280)) ([bff850a](https://github.com/dynamic-labs/dynamic-auth/commit/bff850afc4167d47d3a38c5e9845d35b754ea573))
9
+ * **waas:** add unlockWallet and getWalletRecoveryState methods ([#10286](https://github.com/dynamic-labs/dynamic-auth/issues/10286)) ([4c2f26b](https://github.com/dynamic-labs/dynamic-auth/commit/4c2f26b1cd6483406288513d73be66554cd3c66a))
10
+
11
+ ### Bug Fixes
12
+
13
+ * ensure refresh user not update the jwt ([#10278](https://github.com/dynamic-labs/dynamic-auth/issues/10278)) ([c8cdbe6](https://github.com/dynamic-labs/dynamic-auth/commit/c8cdbe6e10636b39985f299a219fa362c25b4cd0))
14
+ * use isVersionedTransaction for reliable Solana transaction type detection ([#10319](https://github.com/dynamic-labs/dynamic-auth/issues/10319)) ([472aa15](https://github.com/dynamic-labs/dynamic-auth/commit/472aa15a94cfe541b22b96c5c63483e6a5971781))
15
+
2
16
  ### [4.57.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.57.1...v4.57.2) (2026-01-23)
3
17
 
4
18
  ### [4.57.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.57.0...v4.57.1) (2026-01-22)
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.57.2";
6
+ var version = "4.58.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.57.2";
2
+ var version = "4.58.0";
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.57.2",
3
+ "version": "4.58.0",
4
4
  "type": "module",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -16,15 +16,15 @@
16
16
  "./package.json": "./package.json"
17
17
  },
18
18
  "dependencies": {
19
- "@dynamic-labs/assert-package-version": "4.57.2",
19
+ "@dynamic-labs/assert-package-version": "4.58.0",
20
20
  "@dynamic-labs/sdk-api-core": "0.0.860",
21
- "@dynamic-labs-wallet/browser-wallet-client": "0.0.252",
22
- "@dynamic-labs/ethereum-core": "4.57.2",
23
- "@dynamic-labs/logger": "4.57.2",
24
- "@dynamic-labs/solana-core": "4.57.2",
25
- "@dynamic-labs/sui-core": "4.57.2",
26
- "@dynamic-labs/utils": "4.57.2",
27
- "@dynamic-labs/wallet-book": "4.57.2"
21
+ "@dynamic-labs-wallet/browser-wallet-client": "0.0.254",
22
+ "@dynamic-labs/ethereum-core": "4.58.0",
23
+ "@dynamic-labs/logger": "4.58.0",
24
+ "@dynamic-labs/solana-core": "4.58.0",
25
+ "@dynamic-labs/sui-core": "4.58.0",
26
+ "@dynamic-labs/utils": "4.58.0",
27
+ "@dynamic-labs/wallet-book": "4.58.0"
28
28
  },
29
29
  "peerDependencies": {}
30
30
  }
@@ -304,24 +304,30 @@ const withDynamicWaas = (BaseClass) => {
304
304
  }
305
305
  refreshWalletAccountShares(_a) {
306
306
  return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
307
- var _b, _c, _d;
307
+ var _b, _c, _d, _e, _f;
308
308
  if (!accountAddress) {
309
309
  throw new utils.DynamicError('Account address is required');
310
310
  }
311
311
  const walletClient = yield this.getWaasWalletClient();
312
- const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
313
- if (!signedSessionId) {
312
+ const recoverySignedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
313
+ const backupSignedSessionId = yield ((_c = this.getSignedSessionId) === null || _c === void 0 ? void 0 : _c.call(this));
314
+ if (!recoverySignedSessionId || !backupSignedSessionId) {
314
315
  throw new utils.DynamicError('Signed session ID is required');
315
316
  }
316
- const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
317
+ yield walletClient.getWallet({
318
+ accountAddress,
319
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
320
+ signedSessionId: recoverySignedSessionId,
321
+ });
322
+ const mfaToken = yield ((_e = this.getMfaToken) === null || _e === void 0 ? void 0 : _e.call(this, {
317
323
  mfaAction: sdkApiCore.MFAAction.WalletWaasRefresh,
318
324
  }));
319
325
  return walletClient.refreshWalletAccountShares({
320
326
  accountAddress,
321
- authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
327
+ authToken: (_f = this.getAuthToken) === null || _f === void 0 ? void 0 : _f.call(this),
322
328
  mfaToken,
323
329
  password,
324
- signedSessionId,
330
+ signedSessionId: backupSignedSessionId,
325
331
  });
326
332
  });
327
333
  }
@@ -418,6 +424,29 @@ const withDynamicWaas = (BaseClass) => {
418
424
  });
419
425
  });
420
426
  }
427
+ unlockWallet(_a) {
428
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
429
+ var _b;
430
+ const walletClient = yield this.getWaasWalletClient();
431
+ const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
432
+ if (!signedSessionId) {
433
+ throw new utils.DynamicError('Signed session ID is required');
434
+ }
435
+ return walletClient.unlockWallet({
436
+ accountAddress,
437
+ password,
438
+ signedSessionId,
439
+ });
440
+ });
441
+ }
442
+ getWalletRecoveryState(_a) {
443
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
444
+ const walletClient = yield this.getWaasWalletClient();
445
+ return walletClient.getWalletRecoveryState({
446
+ accountAddress,
447
+ });
448
+ });
449
+ }
421
450
  endSession() {
422
451
  return _tslib.__awaiter(this, void 0, void 0, function* () {
423
452
  const waasClient = yield this.getWaasWalletClient();
@@ -112,6 +112,13 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
112
112
  message: string;
113
113
  password?: string;
114
114
  }): Promise<string>;
115
+ unlockWallet({ accountAddress, password, }: {
116
+ accountAddress: string;
117
+ password: string;
118
+ }): Promise<import("@dynamic-labs-wallet/browser-wallet-client").GetWalletResponse>;
119
+ getWalletRecoveryState({ accountAddress, }: {
120
+ accountAddress: string;
121
+ }): Promise<import("@dynamic-labs-wallet/browser-wallet-client").WalletRecoveryState>;
115
122
  endSession(): Promise<void>;
116
123
  getActiveAccountAddress(): Promise<string | undefined>;
117
124
  /**
@@ -300,24 +300,30 @@ const withDynamicWaas = (BaseClass) => {
300
300
  }
301
301
  refreshWalletAccountShares(_a) {
302
302
  return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
303
- var _b, _c, _d;
303
+ var _b, _c, _d, _e, _f;
304
304
  if (!accountAddress) {
305
305
  throw new DynamicError('Account address is required');
306
306
  }
307
307
  const walletClient = yield this.getWaasWalletClient();
308
- const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
309
- if (!signedSessionId) {
308
+ const recoverySignedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
309
+ const backupSignedSessionId = yield ((_c = this.getSignedSessionId) === null || _c === void 0 ? void 0 : _c.call(this));
310
+ if (!recoverySignedSessionId || !backupSignedSessionId) {
310
311
  throw new DynamicError('Signed session ID is required');
311
312
  }
312
- const mfaToken = yield ((_c = this.getMfaToken) === null || _c === void 0 ? void 0 : _c.call(this, {
313
+ yield walletClient.getWallet({
314
+ accountAddress,
315
+ authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
316
+ signedSessionId: recoverySignedSessionId,
317
+ });
318
+ const mfaToken = yield ((_e = this.getMfaToken) === null || _e === void 0 ? void 0 : _e.call(this, {
313
319
  mfaAction: MFAAction.WalletWaasRefresh,
314
320
  }));
315
321
  return walletClient.refreshWalletAccountShares({
316
322
  accountAddress,
317
- authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
323
+ authToken: (_f = this.getAuthToken) === null || _f === void 0 ? void 0 : _f.call(this),
318
324
  mfaToken,
319
325
  password,
320
- signedSessionId,
326
+ signedSessionId: backupSignedSessionId,
321
327
  });
322
328
  });
323
329
  }
@@ -414,6 +420,29 @@ const withDynamicWaas = (BaseClass) => {
414
420
  });
415
421
  });
416
422
  }
423
+ unlockWallet(_a) {
424
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, password, }) {
425
+ var _b;
426
+ const walletClient = yield this.getWaasWalletClient();
427
+ const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
428
+ if (!signedSessionId) {
429
+ throw new DynamicError('Signed session ID is required');
430
+ }
431
+ return walletClient.unlockWallet({
432
+ accountAddress,
433
+ password,
434
+ signedSessionId,
435
+ });
436
+ });
437
+ }
438
+ getWalletRecoveryState(_a) {
439
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
440
+ const walletClient = yield this.getWaasWalletClient();
441
+ return walletClient.getWalletRecoveryState({
442
+ accountAddress,
443
+ });
444
+ });
445
+ }
417
446
  endSession() {
418
447
  return __awaiter(this, void 0, void 0, function* () {
419
448
  const waasClient = yield this.getWaasWalletClient();