Add class SecurityValidation
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user