@dynamic-labs/webview-messages 5.0.0 → 5.1.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,25 @@
1
1
 
2
+ ## [5.1.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.0.0...v5.1.0) (2026-08-04)
3
+
4
+
5
+ ### Features
6
+
7
+ * **midnight:** expose contract wallet provider ([#12120](https://github.com/dynamic-labs/dynamic-auth/issues/12120)) ([2cecf23](https://github.com/dynamic-labs/dynamic-auth/commit/2cecf23f1f51819b99dfde4afd20264ea1abebf8))
8
+ * **webview-messages,webview-controller:** add waas_backupKeySharesToICloud webview message ([#12147](https://github.com/dynamic-labs/dynamic-auth/issues/12147)) ([ca4edda](https://github.com/dynamic-labs/dynamic-auth/commit/ca4edda54adf0673a9fe41c17d861a739f1b8f2e))
9
+ * **webview:** add business accounts message contract and controller ([#12144](https://github.com/dynamic-labs/dynamic-auth/issues/12144)) ([d9f80c1](https://github.com/dynamic-labs/dynamic-auth/commit/d9f80c10bb3c332c2f3e3dc401b95025b930fa4e))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * bump brace-expansion to latest patched maintenance releases ([#12130](https://github.com/dynamic-labs/dynamic-auth/issues/12130)) ([1b26671](https://github.com/dynamic-labs/dynamic-auth/commit/1b26671ad8e62025904e04f9dfed8b3faafb9c19))
15
+ * **ethereum-aa:** resolve chainId from network for ZeroDev v2 multichain projects ([#12105](https://github.com/dynamic-labs/dynamic-auth/issues/12105)) ([fe2c5d2](https://github.com/dynamic-labs/dynamic-auth/commit/fe2c5d239758ea79e8647006d9d77cc27c2ab647))
16
+ * **midnight:** name the missing RPCs when the wallet client is too old ([#12121](https://github.com/dynamic-labs/dynamic-auth/issues/12121)) ([3a8a77f](https://github.com/dynamic-labs/dynamic-auth/commit/3a8a77f89d368d8634497a5b49ff345b004cdffa))
17
+ * **midnight:** return the submission identifier from the contract provider ([#12122](https://github.com/dynamic-labs/dynamic-auth/issues/12122)) ([8aa5289](https://github.com/dynamic-labs/dynamic-auth/commit/8aa52895fbdf09a3cf481049009a95f03cddda54))
18
+ * remediate high-severity dependency vulnerabilities ([#12149](https://github.com/dynamic-labs/dynamic-auth/issues/12149)) ([14058ee](https://github.com/dynamic-labs/dynamic-auth/commit/14058eeed34351791ad7ab7ac1fa720eb2cf9948))
19
+ * **starknet:** restore Braavos L2 session after lock and unlock ([#12124](https://github.com/dynamic-labs/dynamic-auth/issues/12124)) ([ab3b11b](https://github.com/dynamic-labs/dynamic-auth/commit/ab3b11bd71fbca8d32d4f2badfa49e3b9641eecf))
20
+ * **wallet-book:** add App Store id for Robinhood Wallet iOS install link ([#11877](https://github.com/dynamic-labs/dynamic-auth/issues/11877)) ([ef28619](https://github.com/dynamic-labs/dynamic-auth/commit/ef28619ba4396e01046717ea7ad560870a56c78f))
21
+ * **wallet-book:** add universal deep link for Exodus Solana WalletConnect ([#12123](https://github.com/dynamic-labs/dynamic-auth/issues/12123)) ([cd7223e](https://github.com/dynamic-labs/dynamic-auth/commit/cd7223eb2dc21314f351b96d9a06d795d282c35d))
22
+
2
23
  ## [5.0.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.0.0-rc.4...v5.0.0) (2026-07-29)
3
24
 
4
25
  ## 🚀 Dynamic SDK v5 is live
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "5.0.0";
6
+ var version = "5.1.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "5.0.0";
2
+ var version = "5.1.0";
3
3
 
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/webview-messages",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
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.0.0",
21
+ "@dynamic-labs/ethereum-gasless-core": "5.1.0",
22
22
  "@dynamic-labs/sdk-api-core": "0.0.1093",
23
- "@dynamic-labs-sdk/client": "1.20.0",
24
- "@dynamic-labs/assert-package-version": "5.0.0",
25
- "@dynamic-labs/locale": "5.0.0",
26
- "@dynamic-labs/logger": "5.0.0",
27
- "@dynamic-labs/message-transport": "5.0.0",
28
- "@dynamic-labs/types": "5.0.0",
29
- "@dynamic-labs/wallet-connector-core": "5.0.0",
30
- "@dynamic-labs/webauthn": "5.0.0"
23
+ "@dynamic-labs-sdk/client": "1.25.0",
24
+ "@dynamic-labs/assert-package-version": "5.1.0",
25
+ "@dynamic-labs/locale": "5.1.0",
26
+ "@dynamic-labs/logger": "5.1.0",
27
+ "@dynamic-labs/message-transport": "5.1.0",
28
+ "@dynamic-labs/types": "5.1.0",
29
+ "@dynamic-labs/wallet-connector-core": "5.1.0",
30
+ "@dynamic-labs/webauthn": "5.1.0"
31
31
  },
32
32
  "peerDependencies": {}
33
33
  }
package/src/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './lib/AccountAbstractionMessages';
2
2
  export * from './lib/AuthModuleMessages';
3
3
  export * from './lib/BitcoinMessages';
4
+ export * from './lib/BusinessAccountsMessages';
4
5
  export * from './lib/ConsoleMessages';
5
6
  export * from './lib/EmbeddedWalletsModuleMessages';
6
7
  export * from './lib/EthereumGaslessMessages';
@@ -0,0 +1,77 @@
1
+ import type { BusinessAccount, BusinessAccountDetail, BusinessAccountList, BusinessAccountMember, BusinessAccountSigner, BusinessAccountSignerIdentifierType, TargetIdentity } from '@dynamic-labs-sdk/client/waas';
2
+ export type BusinessAccountMemberRole = 'owner' | 'admin' | 'viewer';
3
+ export type BusinessAccountSignerType = 'endUser' | 'server';
4
+ export type CreateBusinessAccountParams = {
5
+ name?: string;
6
+ externalRef?: string;
7
+ metadata?: Record<string, unknown>;
8
+ };
9
+ export type ListBusinessAccountsParams = {
10
+ externalRefs?: string[];
11
+ };
12
+ export type UpdateBusinessAccountParams = {
13
+ businessAccountId: string;
14
+ name: string;
15
+ };
16
+ export type GetBusinessAccountParams = {
17
+ businessAccountId: string;
18
+ };
19
+ export type AddWalletToBusinessAccountParams = {
20
+ businessAccountId?: string;
21
+ walletId: string;
22
+ };
23
+ export type AddMemberToBusinessAccountParams = {
24
+ businessAccountId: string;
25
+ userId?: string;
26
+ identifier?: string;
27
+ identifierType?: BusinessAccountSignerIdentifierType;
28
+ role?: BusinessAccountMemberRole;
29
+ };
30
+ export type AddSignerToBusinessAccountParams = {
31
+ businessAccountId?: string;
32
+ walletId?: string;
33
+ accountAddress: string;
34
+ chainName: string;
35
+ targetSignerIdentity: TargetIdentity;
36
+ signerType?: BusinessAccountSignerType;
37
+ password?: string;
38
+ };
39
+ export type AddBusinessAccountSignerResponse = {
40
+ shareSetId: string;
41
+ };
42
+ export type RemoveSignerFromBusinessAccountParams = {
43
+ businessAccountId: string;
44
+ walletId: string;
45
+ signerId: string;
46
+ };
47
+ export type RemoveMemberFromBusinessAccountParams = {
48
+ businessAccountId: string;
49
+ userId: string;
50
+ };
51
+ export type UpdateMemberRoleParams = {
52
+ businessAccountId: string;
53
+ userId: string;
54
+ role: 'admin' | 'viewer';
55
+ };
56
+ export type TransferOwnershipParams = {
57
+ businessAccountId: string;
58
+ newOwnerUserId: string;
59
+ };
60
+ export type RemoveWalletFromBusinessAccountParams = {
61
+ businessAccountId: string;
62
+ walletId: string;
63
+ };
64
+ export type BusinessAccountsMessages = {
65
+ businessAccount_create: (params: CreateBusinessAccountParams) => Promise<BusinessAccount>;
66
+ businessAccount_list: (params?: ListBusinessAccountsParams) => Promise<BusinessAccountList>;
67
+ businessAccount_get: (params: GetBusinessAccountParams) => Promise<BusinessAccountDetail>;
68
+ businessAccount_addWallet: (params: AddWalletToBusinessAccountParams) => Promise<BusinessAccountDetail>;
69
+ businessAccount_addSigner: (params: AddSignerToBusinessAccountParams) => Promise<AddBusinessAccountSignerResponse>;
70
+ businessAccount_addMember: (params: AddMemberToBusinessAccountParams) => Promise<BusinessAccountMember>;
71
+ businessAccount_removeSigner: (params: RemoveSignerFromBusinessAccountParams) => Promise<BusinessAccountSigner>;
72
+ businessAccount_removeMember: (params: RemoveMemberFromBusinessAccountParams) => Promise<BusinessAccountMember>;
73
+ businessAccount_updateMemberRole: (params: UpdateMemberRoleParams) => Promise<BusinessAccountMember>;
74
+ businessAccount_transferOwnership: (params: TransferOwnershipParams) => Promise<BusinessAccountDetail>;
75
+ businessAccount_removeWallet: (params: RemoveWalletFromBusinessAccountParams) => Promise<BusinessAccountDetail>;
76
+ businessAccount_update: (params: UpdateBusinessAccountParams) => Promise<BusinessAccount>;
77
+ };
@@ -17,6 +17,10 @@ export type BackupKeySharesToGoogleDriveArgs = {
17
17
  password?: string;
18
18
  googleDriveAccessToken?: string;
19
19
  };
20
+ export type BackupKeySharesToICloudArgs = {
21
+ accountAddress: string;
22
+ password?: string;
23
+ };
20
24
  export type DelegateKeySharesArgs = {
21
25
  accountAddress: string;
22
26
  password?: string;
@@ -71,6 +75,7 @@ export type WaasMessages = {
71
75
  waas_importPrivateKey: (walletId: string | null, args: ImportPrivateKeyArgs) => Promise<void>;
72
76
  waas_exportClientKeyshares: (walletId: string, args: ExportClientKeysharesArgs) => Promise<void>;
73
77
  waas_backupKeySharesToGoogleDrive: (walletId: string, args: BackupKeySharesToGoogleDriveArgs) => Promise<void>;
78
+ waas_backupKeySharesToICloud: (walletId: string, args: BackupKeySharesToICloudArgs) => Promise<void>;
74
79
  waas_delegateKeyShares: (walletId: string, args: DelegateKeySharesArgs) => Promise<void>;
75
80
  waas_revokeDelegation: (walletId: string, args: RevokeDelegationArgs) => Promise<void>;
76
81
  waas_refreshWalletAccountShares: (walletId: string, args: RefreshWalletAccountSharesArgs) => Promise<void>;