@dynamic-labs/message-transport 4.20.4 → 4.20.6
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 +22 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/index.cjs +2 -2
- package/src/index.d.ts +4 -4
- package/src/index.js +1 -1
- package/src/messageTypes/WaasMessages.d.ts +34 -0
- package/src/messageTypes/index.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.20.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.5...v4.20.6) (2025-06-18)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* parse input to eth_signTypedData_v4 with global wallets ([#8964](https://github.com/dynamic-labs/dynamic-auth/issues/8964)) ([6035b5a](https://github.com/dynamic-labs/dynamic-auth/commit/6035b5afcb3af44833e5f9dd9f423b865c06e729))
|
|
8
|
+
* utilize wallet zerodev properties when available in react native ([#8974](https://github.com/dynamic-labs/dynamic-auth/issues/8974)) ([a2390b3](https://github.com/dynamic-labs/dynamic-auth/commit/a2390b367999fd7bfc4e142c1b4ea8d5fab0eece))
|
|
9
|
+
|
|
10
|
+
### [4.20.5](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.4...v4.20.5) (2025-06-16)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add mpc methods to RN ([#8952](https://github.com/dynamic-labs/dynamic-auth/issues/8952)) ([67383fc](https://github.com/dynamic-labs/dynamic-auth/commit/67383fcd92bc88875d65b520bd1951822a0d7d43))
|
|
16
|
+
* manually create v3 wallets on RN ([#8947](https://github.com/dynamic-labs/dynamic-auth/issues/8947)) ([d534b44](https://github.com/dynamic-labs/dynamic-auth/commit/d534b44bec28302791f789bd762ae5940ef00f58))
|
|
17
|
+
* update Bitget wallet logo with new SVG design ([#8961](https://github.com/dynamic-labs/dynamic-auth/issues/8961)) ([c47aaa6](https://github.com/dynamic-labs/dynamic-auth/commit/c47aaa6e3ee388831ca62f7e8b913cd15e57060f))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* clean user op cache on network switch ([#8966](https://github.com/dynamic-labs/dynamic-auth/issues/8966)) ([d1783d3](https://github.com/dynamic-labs/dynamic-auth/commit/d1783d3bd627e7c31dd3433385218767e69a4fbc))
|
|
23
|
+
|
|
2
24
|
### [4.20.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.3...v4.20.4) (2025-06-13)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/message-transport",
|
|
3
|
-
"version": "4.20.
|
|
3
|
+
"version": "4.20.6",
|
|
4
4
|
"description": "Defines the interface to communicate with dynamic's webview",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.688",
|
|
22
22
|
"@vue/reactivity": "^3.4.21",
|
|
23
|
-
"@dynamic-labs/types": "4.20.
|
|
23
|
+
"@dynamic-labs/types": "4.20.6",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.20.
|
|
26
|
-
"@dynamic-labs/logger": "4.20.
|
|
27
|
-
"@dynamic-labs/utils": "4.20.
|
|
28
|
-
"@dynamic-labs/webauthn": "4.20.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.20.6",
|
|
26
|
+
"@dynamic-labs/logger": "4.20.6",
|
|
27
|
+
"@dynamic-labs/utils": "4.20.6",
|
|
28
|
+
"@dynamic-labs/webauthn": "4.20.6"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
31
31
|
}
|
package/src/index.cjs
CHANGED
|
@@ -12,10 +12,10 @@ var makeWaitForUnblock = require('./messageTransport/decorators/makeWaitForUnblo
|
|
|
12
12
|
var applyRecoveryManager = require('./messageTransport/decorators/applyRecoveryManager/applyRecoveryManager.cjs');
|
|
13
13
|
var requestChannel = require('./requestChannel/requestChannel.cjs');
|
|
14
14
|
var utils = require('./requestChannel/utils/utils.cjs');
|
|
15
|
+
var isSerializedError = require('./utils/isSerializedError/isSerializedError.cjs');
|
|
15
16
|
var parseErrorFromTransport = require('./utils/parseErrorFromTransport/parseErrorFromTransport.cjs');
|
|
16
17
|
var parseMessageTransportData = require('./utils/parseMessageTransportData/parseMessageTransportData.cjs');
|
|
17
18
|
var serializeErrorForTransport = require('./utils/serializeErrorForTransport/serializeErrorForTransport.cjs');
|
|
18
|
-
var isSerializedError = require('./utils/isSerializedError/isSerializedError.cjs');
|
|
19
19
|
var createEventEmitterForMessages = require('./store/createEventEmitterForMessages/createEventEmitterForMessages.cjs');
|
|
20
20
|
var store = require('./store/store.cjs');
|
|
21
21
|
var storeSetter = require('./store/storeSetter/storeSetter.cjs');
|
|
@@ -42,10 +42,10 @@ exports.isAckMessageType = utils.isAckMessageType;
|
|
|
42
42
|
exports.isRejectMessageType = utils.isRejectMessageType;
|
|
43
43
|
exports.isRequestMessageType = utils.isRequestMessageType;
|
|
44
44
|
exports.isResolveMessageType = utils.isResolveMessageType;
|
|
45
|
+
exports.isSerializedError = isSerializedError.isSerializedError;
|
|
45
46
|
exports.parseErrorFromTransport = parseErrorFromTransport.parseErrorFromTransport;
|
|
46
47
|
exports.parseMessageTransportData = parseMessageTransportData.parseMessageTransportData;
|
|
47
48
|
exports.serializeErrorForTransport = serializeErrorForTransport.serializeErrorForTransport;
|
|
48
|
-
exports.isSerializedError = isSerializedError.isSerializedError;
|
|
49
49
|
exports.createEventEmitterForMessages = createEventEmitterForMessages.createEventEmitterForMessages;
|
|
50
50
|
exports.createStore = store.createStore;
|
|
51
51
|
exports.createStoreSetter = storeSetter.createStoreSetter;
|
package/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { applyDefaultMessageOrigin,
|
|
2
|
-
export { createRequestChannel,
|
|
1
|
+
export { applyDefaultMessageOrigin, applyRecoveryManager, createMessageTransport, hasRecoveryManager, makeWaitForInitEvent, makeWaitForUnblock, type BypassBlockCallback, type MessageTransport, type MessageTransportCallback, type MessageTransportData, type MessageTransportDataOptionalOrigin, type MessageTransportWithDefaultOrigin, } from './messageTransport';
|
|
2
|
+
export { createRequestChannel, getAckMessageType, getRejectMessageType, getResolveMessageType, isAckMessageType, isRejectMessageType, isRequestMessageType, isResolveMessageType, type RequestChannel, type RequestTypes, type TypesExpectingResponse, } from './requestChannel';
|
|
3
|
+
export { isSerializedError } from './utils/isSerializedError';
|
|
3
4
|
export { parseErrorFromTransport } from './utils/parseErrorFromTransport';
|
|
4
5
|
export { parseMessageTransportData } from './utils/parseMessageTransportData';
|
|
5
6
|
export { serializeErrorForTransport, type SerializedError, } from './utils/serializeErrorForTransport';
|
|
6
|
-
export { isSerializedError } from './utils/isSerializedError';
|
|
7
7
|
export { createEventEmitterForMessages, createStore, createStoreSetter, type CreateStoreProps, } from './store';
|
|
8
8
|
export type { Store, StoreEventListeners, StoreKeys, StoreSetter, StoreStateChangeEvent, StoreStateEvents, StoreStateGetters, } from './store/types';
|
|
9
9
|
export type { PickedEventListeners } from './types';
|
|
10
|
-
export { authEventNames, emailEventNames, embeddedWalletsEventNames, sdkHasLoadedEventName, smsEventNames, userInterfaceEventNames, userWalletsEventNames, type AccountAbstractionGetEOAWalletArgs, type AccountAbstractionGetSmartWalletArgs, type AccountAbstractionIsSmartWalletArgs, type AccountAbstractionMessages, type AuthModuleMessages, type AuthModuleState, type ClientManifest, type ConsoleMessages, type CreateEmbeddedWalletArgs, type DeleteStorageItemArgs, type EmailOtpParams, type EmbeddedWalletsModuleMessages, type EmbeddedWalletsModuleState, type EthMessages, type EthRequestParams, type EthRequestWithAddressParams, type EthRequestWithChainIdParams, type ExternalAuthMessages, type FetchMessages, type GetStorageItemArgs, type NetworksModuleState, type OtpData, type OtpMessages, type PasskeyMessages, type PlatformServiceMessages, type ProjectSettingsMessages, type SdkModuleMessages, type SdkModuleState, type SetStorageItemArgs, type SignInWithExternalJwtParams, type SmsOtpParams, type SocialAuthModuleMessages, type SocialProvider, type SolanaMessages, type StorageMessages, type StorageMessageSource, type TurnkeyIframeEventProxyMessages, type UserInterfaceModuleMessages, type ViemMessages, type
|
|
10
|
+
export { authEventNames, emailEventNames, embeddedWalletsEventNames, sdkHasLoadedEventName, smsEventNames, userInterfaceEventNames, userWalletsEventNames, type AccountAbstractionGetEOAWalletArgs, type AccountAbstractionGetSmartWalletArgs, type AccountAbstractionIsSmartWalletArgs, type AccountAbstractionMessages, type AuthModuleMessages, type AuthModuleState, type ClientManifest, type ConsoleMessages, type CreateEmbeddedWalletArgs, type DeleteStorageItemArgs, type EmailOtpParams, type EmbeddedWalletsModuleMessages, type EmbeddedWalletsModuleState, type EthMessages, type EthRequestParams, type EthRequestWithAddressParams, type EthRequestWithChainIdParams, type ExternalAuthMessages, type FetchMessages, type GetStorageItemArgs, type NetworksModuleState, type OtpData, type OtpMessages, type PasskeyMessages, type PlatformServiceMessages, type ProjectSettingsMessages, type SdkModuleMessages, type SdkModuleState, type SetStorageItemArgs, type SignInWithExternalJwtParams, type SmsOtpParams, type SocialAuthModuleMessages, type SocialProvider, type SolanaMessages, type StorageMessages, type StorageMessageSource, type TurnkeyIframeEventProxyMessages, type UserInterfaceModuleMessages, type VerifyWithExternalJwtParams, type ViemMessages, type WaasMessages, type WalletEvents, type WalletsModuleMessages, type WalletsModuleState, type WebViewVisibilityMessages, type ZeroDevExtensionMessages, } from './messageTypes';
|
package/src/index.js
CHANGED
|
@@ -8,10 +8,10 @@ export { makeWaitForUnblock } from './messageTransport/decorators/makeWaitForUnb
|
|
|
8
8
|
export { applyRecoveryManager, hasRecoveryManager } from './messageTransport/decorators/applyRecoveryManager/applyRecoveryManager.js';
|
|
9
9
|
export { createRequestChannel } from './requestChannel/requestChannel.js';
|
|
10
10
|
export { getAckMessageType, getRejectMessageType, getResolveMessageType, isAckMessageType, isRejectMessageType, isRequestMessageType, isResolveMessageType } from './requestChannel/utils/utils.js';
|
|
11
|
+
export { isSerializedError } from './utils/isSerializedError/isSerializedError.js';
|
|
11
12
|
export { parseErrorFromTransport } from './utils/parseErrorFromTransport/parseErrorFromTransport.js';
|
|
12
13
|
export { parseMessageTransportData } from './utils/parseMessageTransportData/parseMessageTransportData.js';
|
|
13
14
|
export { serializeErrorForTransport } from './utils/serializeErrorForTransport/serializeErrorForTransport.js';
|
|
14
|
-
export { isSerializedError } from './utils/isSerializedError/isSerializedError.js';
|
|
15
15
|
export { createEventEmitterForMessages } from './store/createEventEmitterForMessages/createEventEmitterForMessages.js';
|
|
16
16
|
export { createStore } from './store/store.js';
|
|
17
17
|
export { createStoreSetter } from './store/storeSetter/storeSetter.js';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type ImportPrivateKeyArgs = {
|
|
2
|
+
privateKey: string;
|
|
3
|
+
thresholdSignatureScheme?: string;
|
|
4
|
+
};
|
|
5
|
+
export type ExportClientKeysharesArgs = {
|
|
6
|
+
accountAddress: string;
|
|
7
|
+
password?: string;
|
|
8
|
+
};
|
|
9
|
+
export type BackupKeySharesToGoogleDriveArgs = {
|
|
10
|
+
accountAddress: string;
|
|
11
|
+
password?: string;
|
|
12
|
+
};
|
|
13
|
+
export type RefreshWalletAccountSharesArgs = {
|
|
14
|
+
accountAddress: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
};
|
|
17
|
+
export type UpdatePasswordArgs = {
|
|
18
|
+
accountAddress: string;
|
|
19
|
+
existingPassword: string;
|
|
20
|
+
newPassword: string;
|
|
21
|
+
};
|
|
22
|
+
export type SignRawMessageArgs = {
|
|
23
|
+
accountAddress: string;
|
|
24
|
+
message: string;
|
|
25
|
+
password?: string;
|
|
26
|
+
};
|
|
27
|
+
export type WaasMessages = {
|
|
28
|
+
waas_importPrivateKey: (walletId: string, args: ImportPrivateKeyArgs) => Promise<void>;
|
|
29
|
+
waas_exportClientKeyshares: (walletId: string, args: ExportClientKeysharesArgs) => Promise<void>;
|
|
30
|
+
waas_backupKeySharesToGoogleDrive: (walletId: string, args: BackupKeySharesToGoogleDriveArgs) => Promise<void>;
|
|
31
|
+
waas_refreshWalletAccountShares: (walletId: string, args: RefreshWalletAccountSharesArgs) => Promise<void>;
|
|
32
|
+
waas_updatePassword: (walletId: string, args: UpdatePasswordArgs) => Promise<void>;
|
|
33
|
+
waas_signRawMessage: (walletId: string, args: SignRawMessageArgs) => Promise<string>;
|
|
34
|
+
};
|
|
@@ -17,6 +17,7 @@ export * from './StorageMessages';
|
|
|
17
17
|
export * from './TurnkeyIframeEventProxyMessages';
|
|
18
18
|
export * from './UserInterfaceModuleMessages';
|
|
19
19
|
export * from './ViemMessages';
|
|
20
|
+
export * from './WaasMessages';
|
|
20
21
|
export * from './WalletsModuleMessages';
|
|
21
22
|
export * from './WebViewVisibilityMessages';
|
|
22
23
|
export * from './ZeroDevExtensionMessages';
|