mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
20 lines
381 B
TypeScript
20 lines
381 B
TypeScript
import { IsBoolean, IsUrl, ValidateIf } from 'class-validator';
|
|
|
|
export class SystemConfigMachineLearningDto {
|
|
@IsBoolean()
|
|
enabled!: boolean;
|
|
|
|
@IsUrl({ require_tld: false })
|
|
@ValidateIf((dto) => dto.enabled)
|
|
url!: string;
|
|
|
|
@IsBoolean()
|
|
clipEncodeEnabled!: boolean;
|
|
|
|
@IsBoolean()
|
|
facialRecognitionEnabled!: boolean;
|
|
|
|
@IsBoolean()
|
|
tagImageEnabled!: boolean;
|
|
}
|