@preventive/triage 1.0.0-alpha.16 → 1.0.0-alpha.18

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.
@@ -6,8 +6,8 @@
6
6
  // Delivered to the client as the first `server-info` frame on a sync
7
7
  // connection (the WS plane and the SSE+POST fallback share one send path).
8
8
  // A client uses it to detect whether a deployment speaks the end-to-end
9
- // (`e2e`, zero-knowledge) protocol or the trusted `managed` protocol, cache
10
- // the answer, and refuse a cross-mode switch.
9
+ // (`e2e`, zero-knowledge) protocol, the trusted `managed` protocol, or both.
10
+ // Combined discovery modes put the default protocol first.
11
11
 
12
12
  export type ServerMode = 'e2e' | 'managed'
13
13
 
@@ -18,9 +18,9 @@ export interface ManagedServerInfo {
18
18
  }
19
19
 
20
20
  // The `server-info` frame payload (the `type` discriminant is added at the
21
- // send site). `managed` is null unless `mode === 'managed'`.
21
+ // send site). `managed` is null on e2e-only deployments.
22
22
  export interface ServerInfo {
23
- mode: ServerMode
23
+ mode: ServerMode | 'managed+e2e' | 'e2e+managed'
24
24
  managed: ManagedServerInfo | null
25
25
  deepviewScanServer?: string
26
26
  }