From af1543135d42adc2e97dc5243aeef7418cd3b00d Mon Sep 17 00:00:00 2001
From: Matthias Nott <mnott@mnsoft.org>
Date: Sat, 07 Mar 2026 08:39:26 +0100
Subject: [PATCH] feat: dual address auto-switch, custom icon, notifications, image support
---
types/index.ts | 21 ++++++++++++++++++---
1 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/types/index.ts b/types/index.ts
index 76add15..9c59488 100644
--- a/types/index.ts
+++ b/types/index.ts
@@ -16,9 +16,11 @@
export interface ServerConfig {
host: string;
port: number;
+ localHost?: string;
+ macAddress?: string;
}
-export type ConnectionStatus = "disconnected" | "connecting" | "connected";
+export type ConnectionStatus = "disconnected" | "connecting" | "connected" | "compacting";
// --- WebSocket protocol ---
@@ -34,13 +36,20 @@
content: string;
}
+export interface WsImageMessage {
+ type: "image";
+ imageBase64: string;
+ caption: string;
+ mimeType: string;
+}
+
export interface WsCommandMessage {
type: "command";
command: string;
args?: Record<string, unknown>;
}
-export type WsOutgoing = WsTextMessage | WsVoiceMessage | WsCommandMessage;
+export type WsOutgoing = WsTextMessage | WsVoiceMessage | WsImageMessage | WsCommandMessage;
/** Incoming from watcher to app */
export interface WsIncomingText {
@@ -91,6 +100,11 @@
message: string;
}
+export interface WsIncomingStatus {
+ type: "status";
+ status: string;
+}
+
export type WsIncoming =
| WsIncomingText
| WsIncomingVoice
@@ -98,4 +112,5 @@
| WsIncomingSessions
| WsIncomingSessionSwitched
| WsIncomingSessionRenamed
- | WsIncomingError;
+ | WsIncomingError
+ | WsIncomingStatus;
--
Gitblit v1.3.1