@dynamic-labs/webview-messages 4.70.0 → 4.71.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 +13 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +9 -9
- package/src/index.cjs +2 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/lib/DeviceRegistrationMessages.cjs +10 -0
- package/src/lib/DeviceRegistrationMessages.d.ts +2 -0
- package/src/lib/DeviceRegistrationMessages.js +6 -0
- package/src/lib/EmbeddedWalletsModuleMessages.d.ts +2 -1
- package/src/lib/ExternalAuthMessages.d.ts +3 -3
- package/src/lib/KeychainMessages.d.ts +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.71.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.70.0...v4.71.0) (2026-03-24)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add Tempo chain connector and core type definitions ([#10672](https://github.com/dynamic-labs/dynamic-auth/issues/10672)) ([0439c15](https://github.com/dynamic-labs/dynamic-auth/commit/0439c153238359083b9f226dcd2ebf6d83e26519))
|
|
8
|
+
* add verifySocial method to demo site step-up auth methods ([#10721](https://github.com/dynamic-labs/dynamic-auth/issues/10721)) ([b9ef517](https://github.com/dynamic-labs/dynamic-auth/commit/b9ef5173df3e3ed08f718de49b036ea899dc1832))
|
|
9
|
+
* **demo:** add Tempo chain support to demo app ([#10674](https://github.com/dynamic-labs/dynamic-auth/issues/10674)) ([a5918fc](https://github.com/dynamic-labs/dynamic-auth/commit/a5918fc2ab0821e7f025aa470573129f71de33cc))
|
|
10
|
+
* repurpose verifyWithExternalJwt for elevated access token requests ([#10743](https://github.com/dynamic-labs/dynamic-auth/issues/10743)) ([d1abda0](https://github.com/dynamic-labs/dynamic-auth/commit/d1abda0111d68c78226d30bd0630e6e341dedad9))
|
|
11
|
+
* **sdk:** add Tempo chain support to UI components ([#10673](https://github.com/dynamic-labs/dynamic-auth/issues/10673)) ([aec9fbb](https://github.com/dynamic-labs/dynamic-auth/commit/aec9fbb20754a2935bffe106e7e8715f46be3de7))
|
|
12
|
+
* support multi-chain wallet creation in createWallet ([#10694](https://github.com/dynamic-labs/dynamic-auth/issues/10694)) ([0b6b57f](https://github.com/dynamic-labs/dynamic-auth/commit/0b6b57f4179c35d1f86d1c8c9c40f52cb307c849))
|
|
13
|
+
* wire up elevatedAccessToken for sign, reshare, and refresh operations ([#10737](https://github.com/dynamic-labs/dynamic-auth/issues/10737)) ([f9d5c76](https://github.com/dynamic-labs/dynamic-auth/commit/f9d5c768037aff4f5d7994b6bc6c338621a6ee6b))
|
|
14
|
+
|
|
2
15
|
## [4.70.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.69.0...v4.70.0) (2026-03-23)
|
|
3
16
|
|
|
4
17
|
|
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": "4.
|
|
3
|
+
"version": "4.71.0",
|
|
4
4
|
"description": "A package to define messages for the webview-controller",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.909",
|
|
22
|
-
"@dynamic-labs-sdk/client": "0.
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/locale": "4.
|
|
25
|
-
"@dynamic-labs/logger": "4.
|
|
26
|
-
"@dynamic-labs/message-transport": "4.
|
|
27
|
-
"@dynamic-labs/types": "4.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
29
|
-
"@dynamic-labs/webauthn": "4.
|
|
22
|
+
"@dynamic-labs-sdk/client": "0.18.0",
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.71.0",
|
|
24
|
+
"@dynamic-labs/locale": "4.71.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.71.0",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.71.0",
|
|
27
|
+
"@dynamic-labs/types": "4.71.0",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.71.0",
|
|
29
|
+
"@dynamic-labs/webauthn": "4.71.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
package/src/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ var PhantomModuleMessages = require('./lib/PhantomModuleMessages.cjs');
|
|
|
13
13
|
var SdkModuleMessages = require('./lib/SdkModuleMessages.cjs');
|
|
14
14
|
var UserInterfaceModuleMessages = require('./lib/UserInterfaceModuleMessages.cjs');
|
|
15
15
|
var WalletsModuleMessages = require('./lib/WalletsModuleMessages.cjs');
|
|
16
|
+
var DeviceRegistrationMessages = require('./lib/DeviceRegistrationMessages.cjs');
|
|
16
17
|
|
|
17
18
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/webview-messages', _package.version);
|
|
18
19
|
|
|
@@ -25,3 +26,4 @@ exports.phantomEventNames = PhantomModuleMessages.phantomEventNames;
|
|
|
25
26
|
exports.sdkHasLoadedEventName = SdkModuleMessages.sdkHasLoadedEventName;
|
|
26
27
|
exports.userInterfaceEventNames = UserInterfaceModuleMessages.userInterfaceEventNames;
|
|
27
28
|
exports.userWalletsEventNames = WalletsModuleMessages.userWalletsEventNames;
|
|
29
|
+
exports.deviceRegistrationEventNames = DeviceRegistrationMessages.deviceRegistrationEventNames;
|
package/src/index.d.ts
CHANGED
package/src/index.js
CHANGED
|
@@ -9,5 +9,6 @@ export { phantomEventNames } from './lib/PhantomModuleMessages.js';
|
|
|
9
9
|
export { sdkHasLoadedEventName } from './lib/SdkModuleMessages.js';
|
|
10
10
|
export { userInterfaceEventNames } from './lib/UserInterfaceModuleMessages.js';
|
|
11
11
|
export { userWalletsEventNames } from './lib/WalletsModuleMessages.js';
|
|
12
|
+
export { deviceRegistrationEventNames } from './lib/DeviceRegistrationMessages.js';
|
|
12
13
|
|
|
13
14
|
assertPackageVersion('@dynamic-labs/webview-messages', version);
|
|
@@ -9,7 +9,9 @@ export type DeviceRegistrationMessages = {
|
|
|
9
9
|
deviceRegistrationId: string;
|
|
10
10
|
}) => Promise<void>;
|
|
11
11
|
revokeAllRegisteredDevices: () => Promise<void>;
|
|
12
|
+
deviceRegistrationCompleted: () => void;
|
|
12
13
|
};
|
|
14
|
+
export declare const deviceRegistrationEventNames: "deviceRegistrationCompleted"[];
|
|
13
15
|
export type DeviceRegistrationModuleState = {
|
|
14
16
|
isDeviceRegistrationRequired: boolean;
|
|
15
17
|
};
|
|
@@ -3,6 +3,7 @@ import { SerializedError } from '@dynamic-labs/message-transport';
|
|
|
3
3
|
import { BaseWallet } from '@dynamic-labs/types';
|
|
4
4
|
export type CreateEmbeddedWalletArgs = {
|
|
5
5
|
chain?: keyof typeof EmbeddedWalletChainEnum;
|
|
6
|
+
chains?: (keyof typeof EmbeddedWalletChainEnum)[];
|
|
6
7
|
password?: string;
|
|
7
8
|
};
|
|
8
9
|
export type EmbeddedWalletsModuleState = {
|
|
@@ -10,7 +11,7 @@ export type EmbeddedWalletsModuleState = {
|
|
|
10
11
|
};
|
|
11
12
|
export type EmbeddedWalletsModuleMessages = {
|
|
12
13
|
getWallet: () => Promise<BaseWallet | null>;
|
|
13
|
-
createWallet: (args?: CreateEmbeddedWalletArgs) => Promise<BaseWallet>;
|
|
14
|
+
createWallet: (args?: CreateEmbeddedWalletArgs) => Promise<BaseWallet | BaseWallet[]>;
|
|
14
15
|
embeddedWalletCreated: (verifiedCredential: JwtVerifiedCredential | null) => void;
|
|
15
16
|
embeddedWalletRevealSuccess: (wallet: BaseWallet) => void;
|
|
16
17
|
embeddedWalletRevealFailure: (error: SerializedError) => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import type { ExternalAuthAssertionResponse } from '@dynamic-labs/sdk-api-core';
|
|
1
2
|
import { UserProfile } from '@dynamic-labs/types';
|
|
2
3
|
export type SignInWithExternalJwtParams = {
|
|
3
4
|
externalUserId: string;
|
|
4
5
|
externalJwt: string;
|
|
5
6
|
};
|
|
6
7
|
export type VerifyWithExternalJwtParams = {
|
|
7
|
-
externalUserId: string;
|
|
8
8
|
externalJwt: string;
|
|
9
9
|
};
|
|
10
10
|
export type ExternalAuthMessages = {
|
|
@@ -13,7 +13,7 @@ export type ExternalAuthMessages = {
|
|
|
13
13
|
*/
|
|
14
14
|
signInWithExternalJwt: (props: SignInWithExternalJwtParams) => Promise<UserProfile | null>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Requests an elevated access token using an external auth assertion JWT
|
|
17
17
|
*/
|
|
18
|
-
verifyWithExternalJwt: (props: VerifyWithExternalJwtParams) => Promise<
|
|
18
|
+
verifyWithExternalJwt: (props: VerifyWithExternalJwtParams) => Promise<ExternalAuthAssertionResponse>;
|
|
19
19
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type KeychainMessages = {
|
|
2
|
+
keychain_isAvailable: () => Promise<boolean>;
|
|
3
|
+
keychain_hasKey: (args: {
|
|
4
|
+
key: string;
|
|
5
|
+
}) => Promise<boolean>;
|
|
6
|
+
keychain_generateKey: (args: {
|
|
7
|
+
key: string;
|
|
8
|
+
}) => Promise<{
|
|
9
|
+
publicKey: string;
|
|
10
|
+
}>;
|
|
11
|
+
keychain_getPublicKey: (args: {
|
|
12
|
+
key: string;
|
|
13
|
+
}) => Promise<{
|
|
14
|
+
publicKey: string;
|
|
15
|
+
} | null>;
|
|
16
|
+
keychain_sign: (args: {
|
|
17
|
+
key: string;
|
|
18
|
+
payload: string;
|
|
19
|
+
}) => Promise<{
|
|
20
|
+
signature: string;
|
|
21
|
+
}>;
|
|
22
|
+
keychain_removeKey: (args: {
|
|
23
|
+
key: string;
|
|
24
|
+
}) => Promise<void>;
|
|
25
|
+
};
|