@dynamic-labs/waas 5.9.1 → 5.9.2

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,11 @@
1
1
 
2
+ ### [5.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.1...v5.9.2) (2026-09-28)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **waas:** pass elevatedAccessToken and thread signed intents through addSigner ([#12432](https://github.com/dynamic-labs/dynamic-auth/issues/12432)) ([b754f33](https://github.com/dynamic-labs/dynamic-auth/commit/b754f33b72ac93b9960deb5e133dcdbccb06d638))
8
+
2
9
  ### [5.9.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.0...v5.9.1) (2026-09-18)
3
10
 
4
11
 
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "5.9.1";
6
+ var version = "5.9.2";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "5.9.1";
2
+ var version = "5.9.2";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/waas",
3
- "version": "5.9.1",
3
+ "version": "5.9.2",
4
4
  "type": "module",
5
5
  "author": "Dynamic Labs, Inc.",
6
6
  "license": "MIT",
@@ -17,19 +17,19 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@dynamic-labs-sdk/client": "1.33.3",
20
- "@dynamic-labs/assert-package-version": "5.9.1",
20
+ "@dynamic-labs/assert-package-version": "5.9.2",
21
21
  "@dynamic-labs/sdk-api-core": "0.40.0",
22
- "@dynamic-labs-wallet/browser-wallet-client": "1.1.10",
23
- "@dynamic-labs-wallet/core": "1.1.10",
22
+ "@dynamic-labs-wallet/browser-wallet-client": "1.1.18",
23
+ "@dynamic-labs-wallet/core": "1.1.18",
24
24
  "@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
25
25
  "zod": "4.0.5",
26
- "@dynamic-labs/ethereum-core": "5.9.1",
27
- "@dynamic-labs/logger": "5.9.1",
28
- "@dynamic-labs/solana-core": "5.9.1",
29
- "@dynamic-labs/sui-core": "5.9.1",
30
- "@dynamic-labs/utils": "5.9.1",
31
- "@dynamic-labs/wallet-book": "5.9.1",
32
- "@dynamic-labs/wallet-connector-core": "5.9.1"
26
+ "@dynamic-labs/ethereum-core": "5.9.2",
27
+ "@dynamic-labs/logger": "5.9.2",
28
+ "@dynamic-labs/solana-core": "5.9.2",
29
+ "@dynamic-labs/sui-core": "5.9.2",
30
+ "@dynamic-labs/utils": "5.9.2",
31
+ "@dynamic-labs/wallet-book": "5.9.2",
32
+ "@dynamic-labs/wallet-connector-core": "5.9.2"
33
33
  },
34
34
  "peerDependencies": {}
35
35
  }
@@ -351,8 +351,8 @@ const withDynamicWaas = (BaseClass) => {
351
351
  }
352
352
  // Add a business account signer via the reshare ceremony.
353
353
  addSignerViaReshare(_a) {
354
- return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, }) {
355
- var _b, _c, _d;
354
+ return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, intent, intentSignature, }) {
355
+ var _b, _c, _d, _e;
356
356
  const walletClient = yield this.getWaasWalletClient();
357
357
  const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
358
358
  if (!signedSessionId) {
@@ -366,10 +366,16 @@ const withDynamicWaas = (BaseClass) => {
366
366
  signerType,
367
367
  walletId,
368
368
  });
369
+ const elevatedAccessToken = yield ((_d = this.getElevatedAccessToken) === null || _d === void 0 ? void 0 : _d.call(this, {
370
+ scope: sdkApiCore.TokenScope.BusinessAccountsigneradd,
371
+ }));
369
372
  const reshareRequest = {
370
373
  accountAddress,
371
- authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
374
+ authToken: (_e = this.getAuthToken) === null || _e === void 0 ? void 0 : _e.call(this),
372
375
  businessAccountId,
376
+ elevatedAccessToken,
377
+ intent,
378
+ intentSignature,
373
379
  password,
374
380
  signedSessionId,
375
381
  signerType: signerType,
@@ -1,5 +1,5 @@
1
1
  import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
2
- import type { BusinessAccountActionRequired } from '@dynamic-labs-wallet/core';
2
+ import type { BusinessAccountActionRequired, BusinessAccountIntent } from '@dynamic-labs-wallet/core';
3
3
  import type { LogoutReason } from '@dynamic-labs-sdk/client';
4
4
  import { InstrumentOptions, Logger } from '@dynamic-labs/logger';
5
5
  import { MFAAction, SignMessageContext, TokenScope, WaasPolicyRule } from '@dynamic-labs/sdk-api-core';
@@ -105,7 +105,7 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
105
105
  publicKeyHex: string;
106
106
  rawPublicKey: string | Uint8Array | undefined;
107
107
  }>;
108
- addSignerViaReshare({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, }: {
108
+ addSignerViaReshare({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, intent, intentSignature, }: {
109
109
  accountAddress: string;
110
110
  walletId?: string;
111
111
  businessAccountId: string;
@@ -117,6 +117,8 @@ export declare const withDynamicWaas: <T extends abstract new (...args: any[]) =
117
117
  signerType?: 'endUser' | 'server';
118
118
  password?: string;
119
119
  targetSignerPassword?: string;
120
+ intent?: BusinessAccountIntent;
121
+ intentSignature?: string;
120
122
  }): Promise<{
121
123
  shareSetId: string;
122
124
  } | BusinessAccountActionRequired>;
@@ -1,7 +1,7 @@
1
1
  'use client'
2
2
  import { __awaiter } from '../_virtual/_tslib.js';
3
3
  import { DynamicWalletClient } from '@dynamic-labs-wallet/browser-wallet-client';
4
- import { MFAAction, TokenScope } from '@dynamic-labs/sdk-api-core';
4
+ import { TokenScope, MFAAction } from '@dynamic-labs/sdk-api-core';
5
5
  import { DynamicError, UserRejectedRequestError, PlatformService, WaasAuthScopePendingError } from '@dynamic-labs/utils';
6
6
  import { version } from '../package.js';
7
7
  import { DEFAULT_BASE_API_URL, DEFAULT_BASE_MPC_RELAY_API_URL } from '../utils/constants.js';
@@ -347,8 +347,8 @@ const withDynamicWaas = (BaseClass) => {
347
347
  }
348
348
  // Add a business account signer via the reshare ceremony.
349
349
  addSignerViaReshare(_a) {
350
- return __awaiter(this, arguments, void 0, function* ({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, }) {
351
- var _b, _c, _d;
350
+ return __awaiter(this, arguments, void 0, function* ({ accountAddress, walletId, businessAccountId, targetSignerIdentity, signerType, password, targetSignerPassword, intent, intentSignature, }) {
351
+ var _b, _c, _d, _e;
352
352
  const walletClient = yield this.getWaasWalletClient();
353
353
  const signedSessionId = yield ((_b = this.getSignedSessionId) === null || _b === void 0 ? void 0 : _b.call(this));
354
354
  if (!signedSessionId) {
@@ -362,10 +362,16 @@ const withDynamicWaas = (BaseClass) => {
362
362
  signerType,
363
363
  walletId,
364
364
  });
365
+ const elevatedAccessToken = yield ((_d = this.getElevatedAccessToken) === null || _d === void 0 ? void 0 : _d.call(this, {
366
+ scope: TokenScope.BusinessAccountsigneradd,
367
+ }));
365
368
  const reshareRequest = {
366
369
  accountAddress,
367
- authToken: (_d = this.getAuthToken) === null || _d === void 0 ? void 0 : _d.call(this),
370
+ authToken: (_e = this.getAuthToken) === null || _e === void 0 ? void 0 : _e.call(this),
368
371
  businessAccountId,
372
+ elevatedAccessToken,
373
+ intent,
374
+ intentSignature,
369
375
  password,
370
376
  signedSessionId,
371
377
  signerType: signerType,