@movmo_app/types 1.24.0 → 1.25.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/dist/auth.d.ts CHANGED
@@ -20,6 +20,17 @@ export type MovmoPasskeyFlow = {
20
20
  code_length: number;
21
21
  expires_in: number;
22
22
  };
23
+ /** POST /v1/auth/login body. */
24
+ export type MovmoLoginRequest = {
25
+ email: string;
26
+ locale?: string;
27
+ time_zone?: string;
28
+ /**
29
+ * Create the flow without sending a code for an unenrolled email; `/v1/auth/code` releases the
30
+ * first send. Used by the partner iframe.
31
+ */
32
+ defer_code?: boolean;
33
+ };
23
34
  export type MovmoLoginResponse = MovmoCodeFlow | MovmoPasskeyFlow;
24
35
  export type PasskeyOptionsResponse = {
25
36
  flow_id: string;
@@ -85,6 +85,10 @@ export interface MovmoInitMessage {
85
85
  type: MovmoFrameMessageType.INIT;
86
86
  /** Origin of the embedding parent page; the iframe targets this for outbound messages. */
87
87
  parentOrigin: string;
88
+ /** Set by SDKs that put `publickey-credentials-get` in the iframe `allow` attribute (MOVMO-686). */
89
+ capabilities?: {
90
+ passkeys?: boolean;
91
+ };
88
92
  }
89
93
  export interface MovmoBookingCompleteMessage {
90
94
  type: MovmoFrameMessageType.BOOKING_COMPLETE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movmo_app/types",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "A collection of Movmo's types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",