export type ApiKeyPermissionEnum = 'FULL_ACCESS' | 'SEARCH_ACCESS'; export type DocumentTypeEnum = 'webpage' | 'youtube' | 'word' | 'pdf' | 'text'; export type CompletionsParamsAiModelEnum = 'GPT_4' | 'CLAUDE_3.5_SONNET'; export interface SearchEmbeddingsParamsDto { documentId?: string; collectionId?: string; query: string; limit: number; threshold: number; } export interface UpdateEmbeddingsParamsDto { id: string; text: string; } export interface CreateEmbeddingsParamsDto { text: string; collectionId: string; documentId: string; } export interface CreateCollectionDto { title: string; } export interface Collection { id: string; createdAt: string; title: string; creatorUserId: string; } export interface UpdateCollectionDto { } export interface CreateApiKeyDto { name: string; permission: ApiKeyPermissionEnum; } export interface UpdateApiKeyDto { } export interface CreateDocumentDto { file?: string; title: string; source: string; type: DocumentTypeEnum; collectionId: string; } export interface Document { id: string; createdAt: string; title: string; source: string; collectionId: string; creatorUserId: string; } export interface UpdateDocumentDto { } export interface CreateParagraphDto { text: string; documentId: string; collectionId: string; } export interface Paragraph { id: string; createdAt: string; text: string; collectionId: string; creatorUserId: string; } export interface UpdateParagraphDto { id: string; text: string; } export interface GetCompletionsParamsDto { collectionId: string; chatId: string; query: string; aiModel: CompletionsParamsAiModelEnum; } export interface StripeCheckoutBodyDto { productId: string; } export interface CancelOrderBodyDto { paymentIntentId: string; } export interface LookUpStripePaymentIntentStatusDto { paid: boolean; }