Better structure and docs

This commit is contained in:
2026-08-17 08:28:03 +02:00
parent 2a8e3f41d7
commit 210f6668cd
5 changed files with 79 additions and 21 deletions
+35
View File
@@ -0,0 +1,35 @@
export interface ClientMeta {}
export interface ServerMeta {
name: string;
description: string;
}
export type ClientMethod =
| {
method: "Initialized";
public_key: string;
signature: string;
timestamp: number;
hostname: string;
}
| {
method: "Error";
error: string;
};
export type ServerMethod =
| {
method: "Initialize";
public_key: string;
signature: string;
timestamp: number;
hostname: string;
}
| {
method: "Meta";
}
| {
method: "Error";
error: string;
};