first commit

This commit is contained in:
2026-08-14 17:35:24 -03:00
commit 04472fcd2b
118 changed files with 19173 additions and 0 deletions
@@ -0,0 +1,27 @@
import { IsBoolean, IsOptional, IsString, IsUrl, MinLength } from 'class-validator';
export class UpdateEvolutionConfigDto {
@IsOptional()
@IsString()
@MinLength(2)
nome?: string;
@IsOptional()
@IsUrl({ protocols: ['http', 'https'], require_tld: false, require_protocol: true })
base_url?: string;
/** Texto puro na entrada — cifrado (AES-256-GCM) antes de gravar em `api_key_cripto`. */
@IsOptional()
@IsString()
@MinLength(8)
api_key?: string;
@IsOptional()
@IsString()
@MinLength(1)
versao?: string;
@IsOptional()
@IsBoolean()
ativo?: boolean;
}