31 lines
518 B
TypeScript
31 lines
518 B
TypeScript
import { IsBoolean, IsNotEmpty, IsObject, IsOptional, IsString, IsUUID } from "class-validator";
|
|
|
|
export class UpdateAgentProviderDto {
|
|
@IsOptional()
|
|
@IsUUID()
|
|
workspaceId?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
name?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
provider?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
gatewayUrl?: string;
|
|
|
|
@IsOptional()
|
|
@IsObject()
|
|
credentials?: Record<string, unknown>;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
isActive?: boolean;
|
|
}
|