@dynamic-labs/webview-messages 4.40.1 → 4.41.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,23 @@
1
1
 
2
+ ## [4.41.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.2...v4.41.0) (2025-10-29)
3
+
4
+
5
+ ### Features
6
+
7
+ * **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))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * 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))
13
+
14
+ ### [4.40.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.1...v4.40.2) (2025-10-28)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * upgrade node to 20.20 in sanity-yarn-add-sdk job for compatibility ([#9743](https://github.com/dynamic-labs/dynamic-auth/issues/9743)) ([58d7e32](https://github.com/dynamic-labs/dynamic-auth/commit/58d7e32cd3965fba983c91c6345eae3bfe8dd1d5))
20
+
2
21
  ### [4.40.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.40.0...v4.40.1) (2025-10-24)
3
22
 
4
23
  ### Bug Fixes
package/package.cjs CHANGED
@@ -3,6 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- var version = "4.40.1";
6
+ var version = "4.41.0";
7
7
 
8
8
  exports.version = version;
package/package.js CHANGED
@@ -1,4 +1,4 @@
1
1
  'use client'
2
- var version = "4.40.1";
2
+ var version = "4.41.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": "4.40.1",
3
+ "version": "4.41.0",
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.40.1",
24
- "@dynamic-labs/locale": "4.40.1",
25
- "@dynamic-labs/logger": "4.40.1",
26
- "@dynamic-labs/message-transport": "4.40.1",
27
- "@dynamic-labs/types": "4.40.1",
28
- "@dynamic-labs/webauthn": "4.40.1"
23
+ "@dynamic-labs/assert-package-version": "4.41.0",
24
+ "@dynamic-labs/locale": "4.41.0",
25
+ "@dynamic-labs/logger": "4.41.0",
26
+ "@dynamic-labs/message-transport": "4.41.0",
27
+ "@dynamic-labs/types": "4.41.0",
28
+ "@dynamic-labs/webauthn": "4.41.0"
29
29
  },
30
30
  "peerDependencies": {}
31
31
  }
@@ -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;