import { APIResource } from "../../core/resource.mjs"; import { APIPromise } from "../../core/api-promise.mjs"; import { RequestOptions } from "../../internal/request-options.mjs"; export declare class Collections extends APIResource { /** * Create a collection */ create(id: string, body: CollectionCreateParams, options?: RequestOptions): APIPromise; /** * Get collections in a knowledge base */ list(id: string, options?: RequestOptions): APIPromise; } export interface Collection { id?: string; created_at?: string; description?: string; parent_collection_id?: string; slug?: string; title?: string; } export interface CollectionCreateResponse { data?: Collection; request_id?: string; } export interface CollectionListResponse { data?: Array; request_id?: string; } export interface CollectionCreateParams { /** * The title of the collection */ title: string; /** * The description of the collection */ description?: string; /** * The ID of the parent collection */ parent_collection_id?: string; /** * The slug of the collection */ slug?: string; } export declare namespace Collections { export { type Collection as Collection, type CollectionCreateResponse as CollectionCreateResponse, type CollectionListResponse as CollectionListResponse, type CollectionCreateParams as CollectionCreateParams, }; } //# sourceMappingURL=collections.d.mts.map