@dynamic-labs/waas 5.9.1 → 5.9.3
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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +13 -13
- package/src/DynamicWaasMixin.cjs +9 -3
- package/src/DynamicWaasMixin.d.ts +4 -2
- package/src/DynamicWaasMixin.js +10 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
### [5.9.3](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.2...v5.9.3) (2026-10-02)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **deps:** patch undici/joi/webpack-dev-middleware highs (main) ([#12452](https://github.com/dynamic-labs/dynamic-auth/issues/12452)) ([3b2ac12](https://github.com/dynamic-labs/dynamic-auth/commit/3b2ac126153bec03c0f296353a71a97bb61974d9)), closes [#1030-1048](https://github.com/dynamic-labs/dynamic-auth/issues/1030-1048) [#1036](https://github.com/dynamic-labs/dynamic-auth/issues/1036) [#1035](https://github.com/dynamic-labs/dynamic-auth/issues/1035)
|
|
8
|
+
|
|
9
|
+
### [5.9.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.1...v5.9.2) (2026-09-28)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **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))
|
|
15
|
+
|
|
2
16
|
### [5.9.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.9.0...v5.9.1) (2026-09-18)
|
|
3
17
|
|
|
4
18
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"./package.json": "./package.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@dynamic-labs-sdk/client": "1.
|
|
20
|
-
"@dynamic-labs/assert-package-version": "5.9.
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.
|
|
22
|
-
"@dynamic-labs-wallet/browser-wallet-client": "1.1.
|
|
23
|
-
"@dynamic-labs-wallet/core": "1.1.
|
|
19
|
+
"@dynamic-labs-sdk/client": "1.37.0",
|
|
20
|
+
"@dynamic-labs/assert-package-version": "5.9.3",
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.70.0",
|
|
22
|
+
"@dynamic-labs-wallet/browser-wallet-client": "1.1.27",
|
|
23
|
+
"@dynamic-labs-wallet/core": "1.1.27",
|
|
24
24
|
"@dynamic-labs-wallet/forward-mpc-client": "1.0.2",
|
|
25
25
|
"zod": "4.0.5",
|
|
26
|
-
"@dynamic-labs/ethereum-core": "5.9.
|
|
27
|
-
"@dynamic-labs/logger": "5.9.
|
|
28
|
-
"@dynamic-labs/solana-core": "5.9.
|
|
29
|
-
"@dynamic-labs/sui-core": "5.9.
|
|
30
|
-
"@dynamic-labs/utils": "5.9.
|
|
31
|
-
"@dynamic-labs/wallet-book": "5.9.
|
|
32
|
-
"@dynamic-labs/wallet-connector-core": "5.9.
|
|
26
|
+
"@dynamic-labs/ethereum-core": "5.9.3",
|
|
27
|
+
"@dynamic-labs/logger": "5.9.3",
|
|
28
|
+
"@dynamic-labs/solana-core": "5.9.3",
|
|
29
|
+
"@dynamic-labs/sui-core": "5.9.3",
|
|
30
|
+
"@dynamic-labs/utils": "5.9.3",
|
|
31
|
+
"@dynamic-labs/wallet-book": "5.9.3",
|
|
32
|
+
"@dynamic-labs/wallet-connector-core": "5.9.3"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {}
|
|
35
35
|
}
|
package/src/DynamicWaasMixin.cjs
CHANGED
|
@@ -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: (
|
|
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>;
|
package/src/DynamicWaasMixin.js
CHANGED
|
@@ -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 {
|
|
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: (
|
|
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,
|