mcp-talent-server
Version:
Model Context Protocol server for talent management tools
51 lines • 1.46 kB
TypeScript
import mongoose, { type Document } from "mongoose";
export interface IDocument {
documentId: string;
userId?: string;
fileName: string;
filePath: string;
fileType: "pdf" | "docx" | "txt" | "sheets" | "docs" | "slides";
sourceType: "google_drive" | "google_sheets" | "google_docs" | "upload";
content: string;
metadata: {
size?: number;
createdAt?: Date;
mimeType?: string;
driveFileId?: string;
originalUrl?: string;
imageAnalysis?: {
textContent?: string;
labels?: string[];
description?: string;
dimensions?: {
width: number;
height: number;
};
};
};
keywords: string[];
chunks: Array<{
chunkId: string;
content: string;
vectorId?: string;
startIndex: number;
endIndex: number;
}>;
embedding?: {
vectorIds: string[];
indexName: string;
};
status: "processing" | "completed" | "failed";
error?: string;
createdAt: Date;
updatedAt: Date;
}
export interface IDocumentDocument extends IDocument, Document {
}
export declare const DocumentModel: mongoose.Model<IDocument, {}, {}, {}, mongoose.Document<unknown, {}, IDocument, {}, {}> & IDocument & {
_id: mongoose.Types.ObjectId;
} & {
__v: number;
}, any>;
export default DocumentModel;
//# sourceMappingURL=document.model.d.ts.map