import { APIResource } from "../core/resource.mjs"; import * as TopicsAPI from "./topics.mjs"; import * as UsersAPI from "./users/users.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class Topics extends APIResource { /** * Create topic */ create(body: TopicCreateParams, options?: RequestOptions): APIPromise; /** * Get topic by ID */ retrieve(id: string, options?: RequestOptions): APIPromise; /** * Update topic (partial) */ update(id: string, body: TopicUpdateParams, options?: RequestOptions): APIPromise; /** * List topics */ list(query?: TopicListParams | null | undefined, options?: RequestOptions): APIPromise; /** * Delete topic */ delete(id: string, options?: RequestOptions): APIPromise; } export interface APIResponseTopic extends UsersAPI.APIResponseBase { data?: Topic; } export interface Topic { id?: string; createdAt?: string | null; messageCount?: number | null; sessionId?: string; title?: string; updatedAt?: string | null; } export interface TopicListResponse extends UsersAPI.APIResponseBase { data?: TopicListResponse.Data; } export declare namespace TopicListResponse { interface Data { topics: Array; total: number; } } export interface TopicCreateParams { sessionId: string; title: string; } export interface TopicUpdateParams { favorite?: boolean; title?: string; } export interface TopicListParams { keyword?: string; page?: number; pageSize?: number; sessionId?: string; } export declare namespace Topics { export { type APIResponseTopic as APIResponseTopic, type Topic as Topic, type TopicListResponse as TopicListResponse, type TopicCreateParams as TopicCreateParams, type TopicUpdateParams as TopicUpdateParams, type TopicListParams as TopicListParams, }; } //# sourceMappingURL=topics.d.mts.map