Add Smart Notes AI analysis and Mento Memory with user approval.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-01 14:29:34 +03:30
co-authored by Cursor
parent 4d9f3c04cd
commit d152d1c19f
20 changed files with 1577 additions and 9 deletions
+51
View File
@@ -168,3 +168,54 @@ export class UpdateNoteDto {
@IsString()
dealId?: string | null;
}
class NoteAiNextActionDtoClass {
@IsString()
@MinLength(1)
@MaxLength(200)
title!: string;
@IsOptional()
@IsString()
@MaxLength(2000)
description?: string;
@IsOptional()
@ValidateIf((_, v) => v !== '' && v != null)
@IsDateString()
dueAt?: string | null;
}
class ApplyMemoryEditDto {
@Type(() => Number)
@IsInt()
@Min(0)
index!: number;
@IsString()
@MinLength(2)
@MaxLength(500)
content!: string;
}
export class ApplyNoteAiSuggestionDto {
@IsOptional()
@IsBoolean()
applyNextAction?: boolean;
@IsOptional()
@IsArray()
@Type(() => Number)
@IsInt({ each: true })
@Min(0, { each: true })
memoryIndices?: number[];
@IsOptional()
@Type(() => NoteAiNextActionDtoClass)
nextAction?: NoteAiNextActionDtoClass;
@IsOptional()
@IsArray()
@Type(() => ApplyMemoryEditDto)
memoryItems?: ApplyMemoryEditDto[];
}