@movmo_app/types 1.18.0 → 1.19.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;
@@ -136,8 +146,11 @@ export interface MovmoRecognitionErrorMessage {
136
146
  /** Human-readable detail for the airline's logs. Never identity data. */
137
147
  message: string;
138
148
  }
149
+ export interface MovmoRecognitionSignedOutMessage {
150
+ type: MovmoFrameMessageType.RECOGNITION_SIGNED_OUT;
151
+ }
139
152
  /** Discriminated union of every message exchanged across the frame boundary. */
140
- export type MovmoFrameMessage = MovmoReadyMessage | MovmoInitMessage | MovmoBookingCompleteMessage | MovmoBookingFailedMessage | MovmoRecognitionStateMessage | MovmoRecognitionTokenMessage | MovmoRecognitionResizeMessage | MovmoRecognitionConnectMessage | MovmoRecognitionErrorMessage;
153
+ export type MovmoFrameMessage = MovmoReadyMessage | MovmoInitMessage | MovmoBookingCompleteMessage | MovmoBookingFailedMessage | MovmoRecognitionStateMessage | MovmoRecognitionTokenMessage | MovmoRecognitionResizeMessage | MovmoRecognitionConnectMessage | MovmoRecognitionErrorMessage | MovmoRecognitionSignedOutMessage;
141
154
  /** A per-environment origin allowlist (production vs. everything else). */
142
155
  export interface MovmoOriginAllowlist {
143
156
  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
@@ -48,7 +48,7 @@ exports.SCOPE_COPY = {
48
48
  },
49
49
  'loyalty.read': {
50
50
  label: 'View your loyalty status',
51
- detail: 'Loyalty program status and membership with the airline and their alliance, if applicable',
51
+ detail: "Your membership in that airline's loyalty program",
52
52
  },
53
53
  'bookings.read': {
54
54
  label: 'View your bookings and trip history',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movmo_app/types",
3
- "version": "1.18.0",
3
+ "version": "1.19.0",
4
4
  "description": "A collection of Movmo's types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",