@movmo_app/types 1.18.1 → 1.20.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.
|
@@ -66,7 +66,17 @@ export declare enum MovmoFrameMessageType {
|
|
|
66
66
|
* and the `code` is deliberately coarse — it must never reveal which internal call
|
|
67
67
|
* failed, since that could imply the visitor's Movmo auth state before consent.
|
|
68
68
|
*/
|
|
69
|
-
RECOGNITION_ERROR = "MOVMO_RECOGNITION_ERROR"
|
|
69
|
+
RECOGNITION_ERROR = "MOVMO_RECOGNITION_ERROR",
|
|
70
|
+
/**
|
|
71
|
+
* iframe → parent: the traveler clicked "Not you?" inside the recognition surface and
|
|
72
|
+
* Movmo has already signed them out of Movmo in this browser (cookies only; other
|
|
73
|
+
* devices unaffected). Sent once, always followed by `RECOGNITION_STATE 'anonymous'`.
|
|
74
|
+
* Not sent on chip dismissal. The airline should clear its own session for this
|
|
75
|
+
* traveler (greeting, pre-fill, any cookie carrying the GUID) — a GUID stored against
|
|
76
|
+
* an authenticated airline account stays valid; sign-out is not consent revocation
|
|
77
|
+
* (MOVMO-670).
|
|
78
|
+
*/
|
|
79
|
+
RECOGNITION_SIGNED_OUT = "MOVMO_RECOGNITION_SIGNED_OUT"
|
|
70
80
|
}
|
|
71
81
|
export interface MovmoReadyMessage {
|
|
72
82
|
type: MovmoFrameMessageType.READY;
|
|
@@ -79,9 +89,15 @@ export interface MovmoInitMessage {
|
|
|
79
89
|
export interface MovmoBookingCompleteMessage {
|
|
80
90
|
type: MovmoFrameMessageType.BOOKING_COMPLETE;
|
|
81
91
|
bookingId: string;
|
|
82
|
-
/** Airline IATA / company code the booking was made under. */
|
|
92
|
+
/** Airline IATA / company code the booking was made under — NOT the PNR. */
|
|
83
93
|
airlineRef?: string;
|
|
84
94
|
providerId?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Record locator (PNR) in the airline's own reservation system — what the traveler
|
|
97
|
+
* quotes to the airline. Absent when the provider returned none, and from flights-ui
|
|
98
|
+
* builds older than types 1.20.0.
|
|
99
|
+
*/
|
|
100
|
+
airlinePnr?: string;
|
|
85
101
|
}
|
|
86
102
|
/**
|
|
87
103
|
* Why the iframe is handing control back to the airline page (MOVMO-474).
|
|
@@ -136,8 +152,11 @@ export interface MovmoRecognitionErrorMessage {
|
|
|
136
152
|
/** Human-readable detail for the airline's logs. Never identity data. */
|
|
137
153
|
message: string;
|
|
138
154
|
}
|
|
155
|
+
export interface MovmoRecognitionSignedOutMessage {
|
|
156
|
+
type: MovmoFrameMessageType.RECOGNITION_SIGNED_OUT;
|
|
157
|
+
}
|
|
139
158
|
/** Discriminated union of every message exchanged across the frame boundary. */
|
|
140
|
-
export type MovmoFrameMessage = MovmoReadyMessage | MovmoInitMessage | MovmoBookingCompleteMessage | MovmoBookingFailedMessage | MovmoRecognitionStateMessage | MovmoRecognitionTokenMessage | MovmoRecognitionResizeMessage | MovmoRecognitionConnectMessage | MovmoRecognitionErrorMessage;
|
|
159
|
+
export type MovmoFrameMessage = MovmoReadyMessage | MovmoInitMessage | MovmoBookingCompleteMessage | MovmoBookingFailedMessage | MovmoRecognitionStateMessage | MovmoRecognitionTokenMessage | MovmoRecognitionResizeMessage | MovmoRecognitionConnectMessage | MovmoRecognitionErrorMessage | MovmoRecognitionSignedOutMessage;
|
|
141
160
|
/** A per-environment origin allowlist (production vs. everything else). */
|
|
142
161
|
export interface MovmoOriginAllowlist {
|
|
143
162
|
prod: readonly string[];
|
|
@@ -72,6 +72,16 @@ var MovmoFrameMessageType;
|
|
|
72
72
|
* failed, since that could imply the visitor's Movmo auth state before consent.
|
|
73
73
|
*/
|
|
74
74
|
MovmoFrameMessageType["RECOGNITION_ERROR"] = "MOVMO_RECOGNITION_ERROR";
|
|
75
|
+
/**
|
|
76
|
+
* iframe → parent: the traveler clicked "Not you?" inside the recognition surface and
|
|
77
|
+
* Movmo has already signed them out of Movmo in this browser (cookies only; other
|
|
78
|
+
* devices unaffected). Sent once, always followed by `RECOGNITION_STATE 'anonymous'`.
|
|
79
|
+
* Not sent on chip dismissal. The airline should clear its own session for this
|
|
80
|
+
* traveler (greeting, pre-fill, any cookie carrying the GUID) — a GUID stored against
|
|
81
|
+
* an authenticated airline account stays valid; sign-out is not consent revocation
|
|
82
|
+
* (MOVMO-670).
|
|
83
|
+
*/
|
|
84
|
+
MovmoFrameMessageType["RECOGNITION_SIGNED_OUT"] = "MOVMO_RECOGNITION_SIGNED_OUT";
|
|
75
85
|
})(MovmoFrameMessageType || (exports.MovmoFrameMessageType = MovmoFrameMessageType = {}));
|
|
76
86
|
/**
|
|
77
87
|
* Origins served by Movmo's flights-ui iframe. The PARENT
|