@movmo_app/types 1.16.0 → 1.17.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.
|
@@ -53,7 +53,20 @@ export declare enum MovmoFrameMessageType {
|
|
|
53
53
|
* iframe → parent: a user gesture requesting the parent start the Movmo OAuth (Flow A)
|
|
54
54
|
* redirect.
|
|
55
55
|
*/
|
|
56
|
-
RECOGNITION_CONNECT = "MOVMO_RECOGNITION_CONNECT"
|
|
56
|
+
RECOGNITION_CONNECT = "MOVMO_RECOGNITION_CONNECT",
|
|
57
|
+
/**
|
|
58
|
+
* iframe → parent: the recognition surface hit an internal failure (e.g. the
|
|
59
|
+
* recognition-token mint errored) and could not complete (MOVMO-547). Always
|
|
60
|
+
* accompanied by a RECOGNITION_STATE settling the surface (today: 'anonymous'),
|
|
61
|
+
* so parents that ignore this message still render a consistent state — it exists
|
|
62
|
+
* so the airline host can OBSERVE the failure (telemetry, fallback UX) instead of
|
|
63
|
+
* mistaking it for an ordinary anonymous visitor.
|
|
64
|
+
*
|
|
65
|
+
* Privacy invariant (see RECOGNITION_STATE): the payload carries NO identity data
|
|
66
|
+
* and the `code` is deliberately coarse — it must never reveal which internal call
|
|
67
|
+
* failed, since that could imply the visitor's Movmo auth state before consent.
|
|
68
|
+
*/
|
|
69
|
+
RECOGNITION_ERROR = "MOVMO_RECOGNITION_ERROR"
|
|
57
70
|
}
|
|
58
71
|
export interface MovmoReadyMessage {
|
|
59
72
|
type: MovmoFrameMessageType.READY;
|
|
@@ -112,8 +125,19 @@ export interface MovmoRecognitionResizeMessage {
|
|
|
112
125
|
export interface MovmoRecognitionConnectMessage {
|
|
113
126
|
type: MovmoFrameMessageType.RECOGNITION_CONNECT;
|
|
114
127
|
}
|
|
128
|
+
export interface MovmoRecognitionErrorMessage {
|
|
129
|
+
type: MovmoFrameMessageType.RECOGNITION_ERROR;
|
|
130
|
+
/**
|
|
131
|
+
* Coarse machine-readable code. Known values: `recognition_failed` (the surface
|
|
132
|
+
* could not complete recognition due to a service error). Typed as `string` so
|
|
133
|
+
* older parents keep compiling/forwarding when newer iframes add codes.
|
|
134
|
+
*/
|
|
135
|
+
code: string;
|
|
136
|
+
/** Human-readable detail for the airline's logs. Never identity data. */
|
|
137
|
+
message: string;
|
|
138
|
+
}
|
|
115
139
|
/** Discriminated union of every message exchanged across the frame boundary. */
|
|
116
|
-
export type MovmoFrameMessage = MovmoReadyMessage | MovmoInitMessage | MovmoBookingCompleteMessage | MovmoBookingFailedMessage | MovmoRecognitionStateMessage | MovmoRecognitionTokenMessage | MovmoRecognitionResizeMessage | MovmoRecognitionConnectMessage;
|
|
140
|
+
export type MovmoFrameMessage = MovmoReadyMessage | MovmoInitMessage | MovmoBookingCompleteMessage | MovmoBookingFailedMessage | MovmoRecognitionStateMessage | MovmoRecognitionTokenMessage | MovmoRecognitionResizeMessage | MovmoRecognitionConnectMessage | MovmoRecognitionErrorMessage;
|
|
117
141
|
/** A per-environment origin allowlist (production vs. everything else). */
|
|
118
142
|
export interface MovmoOriginAllowlist {
|
|
119
143
|
prod: readonly string[];
|
|
@@ -59,6 +59,19 @@ var MovmoFrameMessageType;
|
|
|
59
59
|
* redirect.
|
|
60
60
|
*/
|
|
61
61
|
MovmoFrameMessageType["RECOGNITION_CONNECT"] = "MOVMO_RECOGNITION_CONNECT";
|
|
62
|
+
/**
|
|
63
|
+
* iframe → parent: the recognition surface hit an internal failure (e.g. the
|
|
64
|
+
* recognition-token mint errored) and could not complete (MOVMO-547). Always
|
|
65
|
+
* accompanied by a RECOGNITION_STATE settling the surface (today: 'anonymous'),
|
|
66
|
+
* so parents that ignore this message still render a consistent state — it exists
|
|
67
|
+
* so the airline host can OBSERVE the failure (telemetry, fallback UX) instead of
|
|
68
|
+
* mistaking it for an ordinary anonymous visitor.
|
|
69
|
+
*
|
|
70
|
+
* Privacy invariant (see RECOGNITION_STATE): the payload carries NO identity data
|
|
71
|
+
* and the `code` is deliberately coarse — it must never reveal which internal call
|
|
72
|
+
* failed, since that could imply the visitor's Movmo auth state before consent.
|
|
73
|
+
*/
|
|
74
|
+
MovmoFrameMessageType["RECOGNITION_ERROR"] = "MOVMO_RECOGNITION_ERROR";
|
|
62
75
|
})(MovmoFrameMessageType || (exports.MovmoFrameMessageType = MovmoFrameMessageType = {}));
|
|
63
76
|
/**
|
|
64
77
|
* Origins served by Movmo's flights-ui iframe. The PARENT
|