import { IsOptional, IsUUID, IsObject } from "class-validator";

/**
 * DTO for updating workspace LLM settings
 * All fields are optional to support partial updates
 */
export class UpdateWorkspaceSettingsDto {
  @IsOptional()
  @IsUUID("4", { message: "defaultLlmProviderId must be a valid UUID" })
  defaultLlmProviderId?: string | null;

  @IsOptional()
  @IsUUID("4", { message: "defaultPersonalityId must be a valid UUID" })
  defaultPersonalityId?: string | null;

  @IsOptional()
  @IsObject({ message: "settings must be an object" })
  settings?: Record<string, unknown>;
}
