import { APIResource } from "../../../../resource.js"; import * as Core from "../../../../core.js"; import { Page, type PageParams } from "../../../../pagination.js"; export declare class Documents extends APIResource { /** * Embed text as a vector and create a Document */ create(appId: string, userId: string, collectionId: string, body: DocumentCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Update the content and/or the metadata of a Document */ update(appId: string, userId: string, collectionId: string, documentId: string, body: DocumentUpdateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Get all of the Documents in a Collection */ list(appId: string, userId: string, collectionId: string, params?: DocumentListParams, options?: Core.RequestOptions): Core.PagePromise; list(appId: string, userId: string, collectionId: string, options?: Core.RequestOptions): Core.PagePromise; /** * Delete a Document by ID */ delete(appId: string, userId: string, collectionId: string, documentId: string, options?: Core.RequestOptions): Core.APIPromise; /** * Get a document by ID */ get(appId: string, userId: string, collectionId: string, documentId: string, options?: Core.RequestOptions): Core.APIPromise; /** * Cosine Similarity Search for Documents */ query(appId: string, userId: string, collectionId: string, body: DocumentQueryParams, options?: Core.RequestOptions): Core.APIPromise; } export declare class DocumentsPage extends Page { } export interface Document { id: string; app_id: string; collection_id: string; content: string; created_at: string; user_id: string; metadata?: Record; } export interface PageDocument { items: Array; page: number; size: number; total: number; pages?: number; } export type DocumentDeleteResponse = unknown; export type DocumentQueryResponse = Array; export interface DocumentCreateParams { content: string; metadata?: Record; } export interface DocumentUpdateParams { content?: string | null; metadata?: Record | null; } export interface DocumentListParams extends PageParams { /** * Query param: Whether to reverse the order of results */ reverse?: boolean | null; /** * Body param: */ filter?: Record | null; } export interface DocumentQueryParams { query: string; filter?: Record | null; top_k?: number; } export declare namespace Documents { export { type Document as Document, type PageDocument as PageDocument, type DocumentDeleteResponse as DocumentDeleteResponse, type DocumentQueryResponse as DocumentQueryResponse, DocumentsPage as DocumentsPage, type DocumentCreateParams as DocumentCreateParams, type DocumentUpdateParams as DocumentUpdateParams, type DocumentListParams as DocumentListParams, type DocumentQueryParams as DocumentQueryParams, }; } //# sourceMappingURL=documents.d.ts.map