@dynamic-labs/webview-messages 4.40.2 → 4.41.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 +20 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +7 -7
- package/src/lib/MfaMessages.d.ts +10 -1
- package/src/lib/UserInterfaceModuleMessages.d.ts +4 -0
- package/src/lib/WaasMessages.d.ts +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.41.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.41.0...v4.41.1) (2025-10-30)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* aptos login with petra keyless accounts ([#9795](https://github.com/dynamic-labs/dynamic-auth/issues/9795)) ([99dc34b](https://github.com/dynamic-labs/dynamic-auth/commit/99dc34b95d1ec23d168c9e092e2d735b1d50a71d))
|
|
8
|
+
* backpack aptos login due to invalid public key ([#9806](https://github.com/dynamic-labs/dynamic-auth/issues/9806)) ([ec8b761](https://github.com/dynamic-labs/dynamic-auth/commit/ec8b76181acff7906fd92c77c2fca42ce52010ae))
|
|
9
|
+
|
|
10
|
+
## [4.41.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.2...v4.41.0) (2025-10-29)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **react-native:** add MFA recovery methods ([#9788](https://github.com/dynamic-labs/dynamic-auth/issues/9788)) ([664e0d5](https://github.com/dynamic-labs/dynamic-auth/commit/664e0d5878530abc9e645c8801a87f3109cfd8f9))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* crypto.com link opening on mobile ([#9779](https://github.com/dynamic-labs/dynamic-auth/issues/9779)) ([3439ac9](https://github.com/dynamic-labs/dynamic-auth/commit/3439ac9e2610360c6204f6195433ae3e05e26c30))
|
|
21
|
+
|
|
2
22
|
### [4.40.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.1...v4.40.2) (2025-10-28)
|
|
3
23
|
|
|
4
24
|
|
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.41.1",
|
|
4
4
|
"description": "A package to define messages for the webview-controller",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.813",
|
|
22
22
|
"@dynamic-labs-sdk/client": "0.1.0-alpha.23",
|
|
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/webauthn": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.41.1",
|
|
24
|
+
"@dynamic-labs/locale": "4.41.1",
|
|
25
|
+
"@dynamic-labs/logger": "4.41.1",
|
|
26
|
+
"@dynamic-labs/message-transport": "4.41.1",
|
|
27
|
+
"@dynamic-labs/types": "4.41.1",
|
|
28
|
+
"@dynamic-labs/webauthn": "4.41.1"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {}
|
|
31
31
|
}
|
package/src/lib/MfaMessages.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateMfaToken, MFADevice, MFADeviceType } from '@dynamic-labs/sdk-api-core';
|
|
1
|
+
import { CreateMfaToken, MFAAction, MFADevice, MFADeviceType } from '@dynamic-labs/sdk-api-core';
|
|
2
2
|
export type MfaMessages = {
|
|
3
3
|
authRecoveryCode: (code: string) => Promise<boolean>;
|
|
4
4
|
completeAcknowledgement: () => Promise<void>;
|
|
@@ -19,4 +19,13 @@ export type MfaMessages = {
|
|
|
19
19
|
deviceId?: string;
|
|
20
20
|
createMfaToken?: CreateMfaToken;
|
|
21
21
|
}) => Promise<string | null>;
|
|
22
|
+
authenticateRecoveryCode: ({ code, createMfaToken, }: {
|
|
23
|
+
code: string;
|
|
24
|
+
createMfaToken?: CreateMfaToken;
|
|
25
|
+
}) => Promise<string | null>;
|
|
26
|
+
getNewRecoveryCodes: () => Promise<string[]>;
|
|
27
|
+
isPendingRecoveryCodesAcknowledgment: () => Promise<boolean>;
|
|
28
|
+
isMfaRequiredForAction: ({ mfaAction, }: {
|
|
29
|
+
mfaAction: MFAAction;
|
|
30
|
+
}) => Promise<boolean>;
|
|
22
31
|
};
|
|
@@ -20,6 +20,10 @@ export type UserInterfaceModuleMessages = {
|
|
|
20
20
|
}) => void;
|
|
21
21
|
/** Opens the user update modal with specified fields */
|
|
22
22
|
updateUserWithModal: (params: UpdateUserWithModalParams) => Promise<UserFields>;
|
|
23
|
+
/** Prompts the user to authenticate with MFA */
|
|
24
|
+
promptMfaAuth: (params?: {
|
|
25
|
+
createMfaToken?: boolean;
|
|
26
|
+
}) => Promise<string | null>;
|
|
23
27
|
authFlowCancelled: () => void;
|
|
24
28
|
authFlowClosed: () => void;
|
|
25
29
|
authFlowOpened: () => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type ImportPrivateKeyArgs = {
|
|
2
2
|
privateKey: string;
|
|
3
3
|
thresholdSignatureScheme?: string;
|
|
4
|
+
publicAddressCheck?: string;
|
|
4
5
|
};
|
|
5
6
|
export type ExportClientKeysharesArgs = {
|
|
6
7
|
accountAddress: string;
|
|
@@ -14,6 +15,10 @@ export type DelegateKeySharesArgs = {
|
|
|
14
15
|
accountAddress: string;
|
|
15
16
|
password?: string;
|
|
16
17
|
};
|
|
18
|
+
export type RevokeDelegationArgs = {
|
|
19
|
+
accountAddress: string;
|
|
20
|
+
password?: string;
|
|
21
|
+
};
|
|
17
22
|
export type RefreshWalletAccountSharesArgs = {
|
|
18
23
|
accountAddress: string;
|
|
19
24
|
password?: string;
|
|
@@ -33,6 +38,7 @@ export type WaasMessages = {
|
|
|
33
38
|
waas_exportClientKeyshares: (walletId: string, args: ExportClientKeysharesArgs) => Promise<void>;
|
|
34
39
|
waas_backupKeySharesToGoogleDrive: (walletId: string, args: BackupKeySharesToGoogleDriveArgs) => Promise<void>;
|
|
35
40
|
waas_delegateKeyShares: (walletId: string, args: DelegateKeySharesArgs) => Promise<void>;
|
|
41
|
+
waas_revokeDelegation: (walletId: string, args: RevokeDelegationArgs) => Promise<void>;
|
|
36
42
|
waas_refreshWalletAccountShares: (walletId: string, args: RefreshWalletAccountSharesArgs) => Promise<void>;
|
|
37
43
|
waas_updatePassword: (walletId: string, args: UpdatePasswordArgs) => Promise<void>;
|
|
38
44
|
waas_signRawMessage: (walletId: string, args: SignRawMessageArgs) => Promise<string>;
|