The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { Field, InputType } from '@nestjs/graphql';
import { IsOptional, IsString, IsUUID, MaxLength } from 'class-validator';
import { type RunAgentMessageAttachment } from 'twenty-shared/application';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { MAX_RUN_AGENT_ATTACHMENT_FILENAME_LENGTH } from 'src/engine/metadata-modules/ai/ai-agent-execution/constants/max-run-agent-attachment-filename-length.const';
@InputType('RunAgentMessageAttachmentInput')
export class RunAgentMessageAttachmentInputDTO implements RunAgentMessageAttachment {
@IsUUID()
@Field(() => UUIDScalarType)
fileId: string;
@IsString()
@IsOptional()
@MaxLength(MAX_RUN_AGENT_ATTACHMENT_FILENAME_LENGTH)
@Field({ nullable: true })
filename?: string;
}