mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
Adopt the pinned published TeamSpeak SDK and direct relay routing. Add optional TeamSpeak Query administration with encrypted credentials and separate WebSpeak access, site, operations and skin management. Distribute Discord Voice through the GitHub skin index, preserve skin state during updates, and correct KAAK scaling and screen fullscreen. Validation: 831 tests; backend and frontend builds; five-language UI checks from narrow screens through 4K and local Query fixture actions.
76 lines
2.4 KiB
TypeScript
76 lines
2.4 KiB
TypeScript
export interface AdminSettingsInput {
|
|
target: string;
|
|
serverPassword?: string;
|
|
passwordAction?: "keep" | "replace" | "remove";
|
|
accessMode: "fixed" | "open";
|
|
siteName: string;
|
|
welcomeText: string;
|
|
welcomeTextEn?: string;
|
|
welcomeTextDe?: string;
|
|
welcomeTextRu?: string;
|
|
welcomeTextJa?: string;
|
|
webRtcEnabled: boolean;
|
|
webRtcPublicHost?: string;
|
|
webRtcIpv6Enabled?: boolean;
|
|
webRtcStunServer?: string;
|
|
webRtcUdpStart?: number;
|
|
webRtcUdpEnd?: number;
|
|
relaySettingsAction?: "keep" | "replace" | "remove";
|
|
relayEnabled?: boolean;
|
|
relayName?: string;
|
|
relayTarget?: string;
|
|
relayToken?: string;
|
|
relayTokenAction?: "keep" | "replace" | "remove";
|
|
relayNodes?: RelayNodeInput[];
|
|
}
|
|
|
|
export interface RelayNodeInput {
|
|
id?: string;
|
|
name: string;
|
|
target: string;
|
|
/** HTTPS origin of the WebSpeak voice gateway hosted on this relay. */
|
|
voiceEndpoint?: string;
|
|
enabled: boolean;
|
|
token?: string;
|
|
tokenAction?: "keep" | "replace" | "remove";
|
|
}
|
|
|
|
export interface ManagedInviteInput {
|
|
channel: string;
|
|
expiresInHours: number;
|
|
maxUses: number;
|
|
}
|
|
|
|
export interface TsAdminSettingsInput {
|
|
enabled: boolean;
|
|
transport?: "web" | "ssh" | "tcp";
|
|
queryHost?: string;
|
|
webQueryUrl?: string;
|
|
apiKey?: string;
|
|
apiKeyAction?: "keep" | "replace" | "remove";
|
|
/** 0 selects the fixed instance by its voice port. */
|
|
serverId?: number;
|
|
queryPort: number;
|
|
username: string;
|
|
password?: string;
|
|
passwordAction?: "keep" | "replace" | "remove";
|
|
hostKeyFingerprint: string;
|
|
}
|
|
|
|
export type TsAdminAction =
|
|
| { action: "server.update"; name: string; welcomeMessage: string; maxClients: number }
|
|
| { action: "channel.create"; name: string; parentId: string; description: string; permanent: boolean; password?: string }
|
|
| { action: "channel.update"; channelId: string; name: string }
|
|
| { action: "channel.delete"; channelId: string }
|
|
| { action: "client.move"; clientId: number; clientUid: string; channelId: string }
|
|
| { action: "client.kick"; clientId: number; clientUid: string; reason: string }
|
|
| { action: "client.ban"; clientId: number; clientUid: string; reason: string; durationSeconds: number }
|
|
| { action: "client.group"; clientId: number; clientUid: string; groupId: string; remove: boolean }
|
|
| { action: "ban.delete"; banId: string };
|
|
|
|
export interface TsAdminActionRequest {
|
|
/** Revision of the management configuration used to read the selected objects. */
|
|
configurationRevision: string;
|
|
operation: TsAdminAction;
|
|
}
|