import { APIResource } from "../../core/resource.mjs"; import * as PassagesAPI from "../passages.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Passages extends APIResource { /** * Create a new passage in an archive. * * This adds a passage to the archive and creates embeddings for vector storage. */ create(archiveID: string, body: PassageCreateParams, options?: RequestOptions): APIPromise; /** * Delete a passage from an archive. * * This permanently removes the passage from both the database and vector storage * (if applicable). */ delete(passageID: string, params: PassageDeleteParams, options?: RequestOptions): APIPromise; /** * Create multiple passages in an archive. * * This adds passages to the archive and creates embeddings for vector storage. */ createMany(archiveID: string, body: PassageCreateManyParams, options?: RequestOptions): APIPromise; } export type PassageCreateManyResponse = Array; export interface PassageCreateParams { /** * The text content of the passage */ text: string; /** * Optional creation datetime for the passage (ISO 8601 format) */ created_at?: string | null; /** * Optional metadata for the passage */ metadata?: { [key: string]: unknown; } | null; /** * Optional tags for categorizing the passage */ tags?: Array | null; } export interface PassageDeleteParams { /** * The ID of the archive in the format 'archive-' */ archive_id: string; } export interface PassageCreateManyParams { /** * Passages to create in the archive */ passages: Array; } export declare namespace PassageCreateManyParams { /** * Request model for creating a passage in an archive. */ interface Passage { /** * The text content of the passage */ text: string; /** * Optional creation datetime for the passage (ISO 8601 format) */ created_at?: string | null; /** * Optional metadata for the passage */ metadata?: { [key: string]: unknown; } | null; /** * Optional tags for categorizing the passage */ tags?: Array | null; } } export declare namespace Passages { export { type PassageCreateManyResponse as PassageCreateManyResponse, type PassageCreateParams as PassageCreateParams, type PassageDeleteParams as PassageDeleteParams, type PassageCreateManyParams as PassageCreateManyParams, }; } //# sourceMappingURL=passages.d.mts.map