mirror of
https://github.com/meshtastic/web.git
synced 2026-05-05 21:25:01 -04:00
36 lines
661 B
TypeScript
36 lines
661 B
TypeScript
import type { Message } from "@bufbuild/protobuf";
|
|
import type { Protobuf } from "@meshtastic/js";
|
|
import { IsBoolean, IsString } from "class-validator";
|
|
|
|
export class SecurityValidation
|
|
implements
|
|
Omit<
|
|
Protobuf.Config.Config_SecurityConfig,
|
|
keyof Message | "adminKey" | "privateKey" | "publicKey"
|
|
>
|
|
{
|
|
@IsBoolean()
|
|
adminChannelEnabled: boolean;
|
|
|
|
@IsString()
|
|
adminKey: string;
|
|
|
|
@IsBoolean()
|
|
bluetoothLoggingEnabled: boolean;
|
|
|
|
@IsBoolean()
|
|
debugLogApiEnabled: boolean;
|
|
|
|
@IsBoolean()
|
|
isManaged: boolean;
|
|
|
|
@IsString()
|
|
privateKey: string;
|
|
|
|
@IsString()
|
|
publicKey: string;
|
|
|
|
@IsBoolean()
|
|
serialEnabled: boolean;
|
|
}
|