2026-10-01 16:20:16 -05:00
|
|
|
/**
|
|
|
|
|
* Where a connection is. Core's SSH pipeline uses the named stages; a plugin
|
|
|
|
|
* may log its own (such as "guac_ready") and they pass through unchanged.
|
|
|
|
|
*/
|
2026-01-24 19:49:42 -06:00
|
|
|
export type ConnectionStage =
|
|
|
|
|
| "dns"
|
|
|
|
|
| "tcp"
|
|
|
|
|
| "handshake"
|
|
|
|
|
| "auth"
|
|
|
|
|
| "connected"
|
|
|
|
|
| "connection"
|
|
|
|
|
| "error"
|
|
|
|
|
| "proxy"
|
|
|
|
|
| "jump"
|
2026-08-19 14:12:06 -05:00
|
|
|
| "validation"
|
2026-10-01 16:20:16 -05:00
|
|
|
| (string & {});
|
2026-01-24 19:49:42 -06:00
|
|
|
|
|
|
|
|
export type LogEntry = {
|
|
|
|
|
id: string;
|
|
|
|
|
timestamp: Date;
|
|
|
|
|
type: "info" | "success" | "warning" | "error";
|
|
|
|
|
stage: ConnectionStage;
|
|
|
|
|
message: string;
|
2026-08-19 14:12:06 -05:00
|
|
|
details?: Record<string, unknown> | string;
|
2026-01-24 19:49:42 -06:00
|
|
|
};
|