Add Smart Notes AI analysis and Mento Memory with user approval.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -469,6 +469,69 @@ export interface UpdateNoteRequest {
|
||||
dealId?: string | null;
|
||||
}
|
||||
|
||||
export type NoteAiSuggestionStatus =
|
||||
| 'pending'
|
||||
| 'applied'
|
||||
| 'dismissed'
|
||||
| 'failed';
|
||||
|
||||
export type MemorySourceType = 'note' | 'manual';
|
||||
|
||||
export interface NoteAiNextActionDto {
|
||||
title: string;
|
||||
description?: string;
|
||||
dueAt?: string | null;
|
||||
}
|
||||
|
||||
export interface NoteAiMemoryExtractDto {
|
||||
content: string;
|
||||
category?: string;
|
||||
}
|
||||
|
||||
export interface NoteAiPayloadDto {
|
||||
nextAction: NoteAiNextActionDto | null;
|
||||
memoryItems: NoteAiMemoryExtractDto[];
|
||||
summary?: string;
|
||||
}
|
||||
|
||||
export interface NoteAiSuggestionDto {
|
||||
id: string;
|
||||
noteId: string;
|
||||
status: NoteAiSuggestionStatus;
|
||||
payload: NoteAiPayloadDto | null;
|
||||
errorMessage: string | null;
|
||||
analyzedAt: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ApplyNoteAiSuggestionRequest {
|
||||
applyNextAction?: boolean;
|
||||
memoryIndices?: number[];
|
||||
nextAction?: NoteAiNextActionDto;
|
||||
memoryItems?: Array<{ index: number; content: string }>;
|
||||
}
|
||||
|
||||
export interface MemoryItemDto {
|
||||
id: string;
|
||||
personId: string;
|
||||
content: string;
|
||||
sourceType: MemorySourceType;
|
||||
sourceId: string | null;
|
||||
confirmedBy: UserSummaryDto | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface CreateMemoryItemRequest {
|
||||
personId: string;
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface UpdateMemoryItemRequest {
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface ImportContactsResult {
|
||||
created: number;
|
||||
skipped: number;
|
||||
|
||||
Reference in New Issue
Block a user