@dynamic-labs/webview-messages 5.3.2 → 5.4.1
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 +34 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +10 -10
- package/src/index.d.ts +1 -0
- package/src/lib/KeychainMessages.d.ts +10 -0
- package/src/lib/PoliciesMessages.d.ts +54 -0
- package/src/lib/WaasMessages.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,38 @@
|
|
|
1
1
|
|
|
2
|
+
### [5.4.1](https://github.com/dynamic-labs/dynamic-auth/compare/v5.4.0...v5.4.1) (2026-08-26)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **webview-controller:** resolve which keychain key a session belongs to ([#12246](https://github.com/dynamic-labs/dynamic-auth/issues/12246)) ([3d110db](https://github.com/dynamic-labs/dynamic-auth/commit/3d110db831c6e9d82d07d86841f5c7733924b17e))
|
|
8
|
+
* **bitcoin:** forward the password through the BTC importPrivateKey override ([#12278](https://github.com/dynamic-labs/dynamic-auth/issues/12278)) ([21e1df3](https://github.com/dynamic-labs/dynamic-auth/commit/21e1df3e33e96e2efdb15ffa0fd29a441056202e))
|
|
9
|
+
* **react-native-extension:** recover 4.x expo-secure-store sessions on keychain miss ([#12254](https://github.com/dynamic-labs/dynamic-auth/issues/12254)) ([217e991](https://github.com/dynamic-labs/dynamic-auth/commit/217e991838f3073c12e2d2fab7a2e12830faad9e)), closes [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12092](https://github.com/dynamic-labs/dynamic-auth/issues/12092) [#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242) [#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242)
|
|
10
|
+
* **transaction-card:** use walletConnector prop for network/fee instead of primaryWallet ([#12063](https://github.com/dynamic-labs/dynamic-auth/issues/12063)) ([81314d2](https://github.com/dynamic-labs/dynamic-auth/commit/81314d25fba4b20ab89631bc2d9ceeb9e2b6b2ac))
|
|
11
|
+
* **waas-svm:** instrument sponsorship retry attempts ([#12281](https://github.com/dynamic-labs/dynamic-auth/issues/12281)) ([7273a4b](https://github.com/dynamic-labs/dynamic-auth/commit/7273a4bc456cad512c0e9fbcd2abd66532a2f7df))
|
|
12
|
+
* **webview-controller:** recover 4.x secure-storage sessions and surface init failures ([#12242](https://github.com/dynamic-labs/dynamic-auth/issues/12242)) ([b51605c](https://github.com/dynamic-labs/dynamic-auth/commit/b51605cc9bdbb5d695173192c502a58d899bbbdd)), closes [#12094](https://github.com/dynamic-labs/dynamic-auth/issues/12094) [#12095](https://github.com/dynamic-labs/dynamic-auth/issues/12095) [#12098](https://github.com/dynamic-labs/dynamic-auth/issues/12098) [dynamic-labs/flutter-sdk#256](https://github.com/dynamic-labs/flutter-sdk/issues/256)
|
|
13
|
+
|
|
14
|
+
## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **aleo:** wire up signMessage on the WaaS Aleo connector ([#12235](https://github.com/dynamic-labs/dynamic-auth/issues/12235)) ([e56cbf5](https://github.com/dynamic-labs/dynamic-auth/commit/e56cbf5546bdcc21ce916dece43ae36dcea9b808))
|
|
20
|
+
* **waas:** thread isRawScalarImport through importPrivateKey for ed25519 chains ([#12220](https://github.com/dynamic-labs/dynamic-auth/issues/12220)) ([ced9efa](https://github.com/dynamic-labs/dynamic-auth/commit/ced9efac5fa5a4a1280383419f56fe22733722cd))
|
|
21
|
+
* **webview:** add policies message contract and controller ([#12248](https://github.com/dynamic-labs/dynamic-auth/issues/12248)) ([8557c1e](https://github.com/dynamic-labs/dynamic-auth/commit/8557c1ed3861e12f1f06b2bb610184813b577daa))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **bitcoin:** pass the wallet's address type when signing ([#12265](https://github.com/dynamic-labs/dynamic-auth/issues/12265)) ([b8a8eab](https://github.com/dynamic-labs/dynamic-auth/commit/b8a8eab7e4cc294cc307fb10ea6814e76111a274))
|
|
27
|
+
* remediate high-severity tar vulnerability and prune a dead override ([#12268](https://github.com/dynamic-labs/dynamic-auth/issues/12268)) ([6b1b343](https://github.com/dynamic-labs/dynamic-auth/commit/6b1b343e7947e8da30012446677e342ae9bfe14a))
|
|
28
|
+
* **waas-svm:** fix retry-classification and environmentId gaps in [#12240](https://github.com/dynamic-labs/dynamic-auth/issues/12240) ([#12247](https://github.com/dynamic-labs/dynamic-auth/issues/12247)) ([e79cecc](https://github.com/dynamic-labs/dynamic-auth/commit/e79ceccd424c48c3a7f45fdd6ea288c269ac0171))
|
|
29
|
+
* **wallet-connect:** reopen WalletConnect IndexedDB when the browser closes the connection ([#12262](https://github.com/dynamic-labs/dynamic-auth/issues/12262)) ([1a20dde](https://github.com/dynamic-labs/dynamic-auth/commit/1a20ddeaeec590ae3390c9e47ef3c14738379b83))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Performance Improvements
|
|
33
|
+
|
|
34
|
+
* **ethereum-gasless-core:** parallel 7702 auth signing and long-poll sponsored-tx status ([#12225](https://github.com/dynamic-labs/dynamic-auth/issues/12225)) ([53ca916](https://github.com/dynamic-labs/dynamic-auth/commit/53ca91668f8dd839c52d55a0e5d7bb5257f7f415))
|
|
35
|
+
|
|
2
36
|
### [5.3.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.1...v5.3.2) (2026-08-19)
|
|
3
37
|
|
|
4
38
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/webview-messages",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "A package to define messages for the webview-controller",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,16 +18,16 @@
|
|
|
18
18
|
"./package.json": "./package.json"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/ethereum-gasless-core": "5.
|
|
21
|
+
"@dynamic-labs/ethereum-gasless-core": "5.4.1",
|
|
22
22
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
23
|
-
"@dynamic-labs-sdk/client": "1.
|
|
24
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
25
|
-
"@dynamic-labs/locale": "5.
|
|
26
|
-
"@dynamic-labs/logger": "5.
|
|
27
|
-
"@dynamic-labs/message-transport": "5.
|
|
28
|
-
"@dynamic-labs/types": "5.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
30
|
-
"@dynamic-labs/webauthn": "5.
|
|
23
|
+
"@dynamic-labs-sdk/client": "1.29.0",
|
|
24
|
+
"@dynamic-labs/assert-package-version": "5.4.1",
|
|
25
|
+
"@dynamic-labs/locale": "5.4.1",
|
|
26
|
+
"@dynamic-labs/logger": "5.4.1",
|
|
27
|
+
"@dynamic-labs/message-transport": "5.4.1",
|
|
28
|
+
"@dynamic-labs/types": "5.4.1",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "5.4.1",
|
|
30
|
+
"@dynamic-labs/webauthn": "5.4.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {}
|
|
33
33
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from './lib/AccountAbstractionMessages';
|
|
|
2
2
|
export * from './lib/AuthModuleMessages';
|
|
3
3
|
export * from './lib/BitcoinMessages';
|
|
4
4
|
export * from './lib/BusinessAccountsMessages';
|
|
5
|
+
export * from './lib/PoliciesMessages';
|
|
5
6
|
export * from './lib/ConsoleMessages';
|
|
6
7
|
export * from './lib/EmbeddedWalletsModuleMessages';
|
|
7
8
|
export * from './lib/EthereumGaslessMessages';
|
|
@@ -22,4 +22,14 @@ export type KeychainMessages = {
|
|
|
22
22
|
keychain_removeKey: (args: {
|
|
23
23
|
key: string;
|
|
24
24
|
}) => Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Keeps only the key stored under `key` whose public key is `publicKey`,
|
|
27
|
+
* deleting the others, and resolves to whether a matching key remains.
|
|
28
|
+
* Deletes nothing when none matches. Hosts that predate the operation reject
|
|
29
|
+
* the request, so callers must treat it as opportunistic.
|
|
30
|
+
*/
|
|
31
|
+
keychain_pruneToPublicKey: (args: {
|
|
32
|
+
key: string;
|
|
33
|
+
publicKey: string;
|
|
34
|
+
}) => Promise<boolean>;
|
|
25
35
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { buildAllowPolicyRule, buildDenyPolicyRule, createPolicy, desugarPolicyRules, expandPolicyRules, getAccountPolicyLayer, getPolicy, getSignerPolicyLayer, getWalletPolicyLayer, removeAccountPolicyRule, removePolicyRules, removeSignerPolicyRule, removeWalletPolicyRule, upsertAccountPolicyRule, upsertSignerPolicyRule, upsertWalletPolicyRule, PolicyRules, PolicyScope, WaasPolicyLayerResponse } from '@dynamic-labs-sdk/client/waas';
|
|
2
|
+
type CreatePolicyParams = {
|
|
3
|
+
chain: Parameters<typeof createPolicy>[0]['chain'];
|
|
4
|
+
chainIds?: number[];
|
|
5
|
+
rules: PolicyRules;
|
|
6
|
+
scope: PolicyScope;
|
|
7
|
+
};
|
|
8
|
+
type GetPolicyParams = {
|
|
9
|
+
chain: Parameters<typeof getPolicy>[0]['chain'];
|
|
10
|
+
chainIds?: number[];
|
|
11
|
+
scope: PolicyScope;
|
|
12
|
+
};
|
|
13
|
+
type RemovePolicyRulesParams = {
|
|
14
|
+
chain: Parameters<typeof removePolicyRules>[0]['chain'];
|
|
15
|
+
chainIds?: number[];
|
|
16
|
+
rules: (keyof PolicyRules)[];
|
|
17
|
+
scope: PolicyScope;
|
|
18
|
+
};
|
|
19
|
+
type WalletId = {
|
|
20
|
+
walletId: string;
|
|
21
|
+
};
|
|
22
|
+
type GetWalletPolicyLayerParams = Omit<Parameters<typeof getWalletPolicyLayer>[0], 'walletAccount'> & WalletId;
|
|
23
|
+
type GetSignerPolicyLayerParams = Omit<Parameters<typeof getSignerPolicyLayer>[0], 'walletAccount'> & WalletId;
|
|
24
|
+
type GetAccountPolicyLayerParams = Parameters<typeof getAccountPolicyLayer>[0];
|
|
25
|
+
type UpsertWalletPolicyRuleParams = Omit<Parameters<typeof upsertWalletPolicyRule>[0], 'walletAccount'> & WalletId;
|
|
26
|
+
type UpsertSignerPolicyRuleParams = Omit<Parameters<typeof upsertSignerPolicyRule>[0], 'walletAccount'> & WalletId;
|
|
27
|
+
type UpsertAccountPolicyRuleParams = Parameters<typeof upsertAccountPolicyRule>[0];
|
|
28
|
+
type RemoveWalletPolicyRuleParams = Omit<Parameters<typeof removeWalletPolicyRule>[0], 'walletAccount'> & WalletId;
|
|
29
|
+
type RemoveSignerPolicyRuleParams = Omit<Parameters<typeof removeSignerPolicyRule>[0], 'walletAccount'> & WalletId;
|
|
30
|
+
type RemoveAccountPolicyRuleParams = Parameters<typeof removeAccountPolicyRule>[0];
|
|
31
|
+
type GetPolicyResponse = Awaited<ReturnType<typeof getPolicy>>;
|
|
32
|
+
type BuildAllowPolicyRuleParams = Parameters<typeof buildAllowPolicyRule>[0];
|
|
33
|
+
type BuildDenyPolicyRuleParams = Parameters<typeof buildDenyPolicyRule>[0];
|
|
34
|
+
type ExpandPolicyRulesParams = Parameters<typeof expandPolicyRules>[0];
|
|
35
|
+
type DesugarPolicyRulesParams = Parameters<typeof desugarPolicyRules>[0];
|
|
36
|
+
export type PoliciesMessages = {
|
|
37
|
+
policy_create: (params: CreatePolicyParams) => Promise<WaasPolicyLayerResponse>;
|
|
38
|
+
policy_get: (params: GetPolicyParams) => Promise<GetPolicyResponse>;
|
|
39
|
+
policy_removeRules: (params: RemovePolicyRulesParams) => Promise<WaasPolicyLayerResponse>;
|
|
40
|
+
policy_getWalletLayer: (params: GetWalletPolicyLayerParams) => Promise<WaasPolicyLayerResponse>;
|
|
41
|
+
policy_getSignerLayer: (params: GetSignerPolicyLayerParams) => Promise<WaasPolicyLayerResponse>;
|
|
42
|
+
policy_getAccountLayer: (params: GetAccountPolicyLayerParams) => Promise<WaasPolicyLayerResponse>;
|
|
43
|
+
policy_upsertWalletRule: (params: UpsertWalletPolicyRuleParams) => Promise<WaasPolicyLayerResponse>;
|
|
44
|
+
policy_upsertSignerRule: (params: UpsertSignerPolicyRuleParams) => Promise<WaasPolicyLayerResponse>;
|
|
45
|
+
policy_upsertAccountRule: (params: UpsertAccountPolicyRuleParams) => Promise<WaasPolicyLayerResponse>;
|
|
46
|
+
policy_removeWalletRule: (params: RemoveWalletPolicyRuleParams) => Promise<WaasPolicyLayerResponse>;
|
|
47
|
+
policy_removeSignerRule: (params: RemoveSignerPolicyRuleParams) => Promise<WaasPolicyLayerResponse>;
|
|
48
|
+
policy_removeAccountRule: (params: RemoveAccountPolicyRuleParams) => Promise<WaasPolicyLayerResponse>;
|
|
49
|
+
policy_buildAllowRule: (params: BuildAllowPolicyRuleParams) => Promise<ReturnType<typeof buildAllowPolicyRule>>;
|
|
50
|
+
policy_buildDenyRule: (params: BuildDenyPolicyRuleParams) => Promise<ReturnType<typeof buildDenyPolicyRule>>;
|
|
51
|
+
policy_expandRules: (params: ExpandPolicyRulesParams) => Promise<ReturnType<typeof expandPolicyRules>>;
|
|
52
|
+
policy_desugarRules: (params: DesugarPolicyRulesParams) => Promise<ReturnType<typeof desugarPolicyRules>>;
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
@@ -7,6 +7,13 @@ export type ImportPrivateKeyArgs = {
|
|
|
7
7
|
addressType?: string;
|
|
8
8
|
password?: string;
|
|
9
9
|
legacyWalletId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* For ed25519 chains (SVM/TON/SUI) only: when true, `privateKey` is a raw
|
|
12
|
+
* 32-byte signing scalar (hex) exported from an external MPC system (e.g.
|
|
13
|
+
* Fireblocks Embedded Wallets), not a seed / standard secret key. Routes the
|
|
14
|
+
* import through the non-exportable Ed25519 protocol.
|
|
15
|
+
*/
|
|
16
|
+
isRawScalarImport?: boolean;
|
|
10
17
|
};
|
|
11
18
|
export type ExportClientKeysharesArgs = {
|
|
12
19
|
accountAddress: string;
|