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-01-24 19:49:42 -06:00
|
|
|
| "docker_connecting"
|
|
|
|
|
| "docker_auth"
|
|
|
|
|
| "docker_session"
|
|
|
|
|
| "docker_ready"
|
|
|
|
|
| "stats_connecting"
|
|
|
|
|
| "stats_totp"
|
|
|
|
|
| "stats_polling"
|
|
|
|
|
| "stats_heartbeat"
|
|
|
|
|
| "tunnel_connecting"
|
|
|
|
|
| "tunnel_source"
|
|
|
|
|
| "tunnel_endpoint"
|
|
|
|
|
| "tunnel_forwarding"
|
|
|
|
|
| "tunnel_retry"
|
|
|
|
|
| "tunnel_connected"
|
|
|
|
|
| "sftp_connecting"
|
|
|
|
|
| "sftp_auth"
|
2026-08-19 14:12:06 -05:00
|
|
|
| "sftp_connected"
|
|
|
|
|
| "guac_token"
|
|
|
|
|
| "guac_guacd"
|
|
|
|
|
| "guac_connecting"
|
|
|
|
|
| "guac_handshake"
|
|
|
|
|
| "guac_ready"
|
|
|
|
|
| "guac_disconnected";
|
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
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export interface ConnectionLogResponse {
|
|
|
|
|
connectionLogs?: LogEntry[];
|
|
|
|
|
}
|