import { APIResource } from "../../core/resource.js"; import * as NodesAPI from "./nodes.js"; import { NodeMoveParams, NodeUpdateParams, Nodes } from "./nodes.js"; import * as SharedAPI from "./shared.js"; import { Shared, SharedRetrieveParams } from "./shared.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class MindMaps extends APIResource { shared: SharedAPI.Shared; nodes: NodesAPI.Nodes; /** * Create a mindmap from existing file. If already exist, return the existing * mindmap. */ create(params: MindMapCreateParams, options?: RequestOptions): APIPromise; } /** * A response model for a mind map node. Inherits all fields from MindMapBase. * * Attributes: id (str): The unique identifier of the mind map node. * conversation_document_id (str): The ID of the conversation document. node_tree * (MindMapNodeResponse | None): List of child mind map nodes. */ export interface MindMap { /** * The unique identifier of the mind map. */ id: string; /** * The ID of the conversation document. */ conversation_document_id: string; /** * A response model for a mind map node. Inherits all fields from MindMapNodeBase. * * Attributes: id (str): The unique identifier of the mind map node. mind_map_id * (str): The ID of the mind map. parent_id (str | None): The ID of the parent mind * map node. order (int): The order of the mind map node. type (MindMapNodeType): * The type of the mind map node. relation_type_with_parent * (MindMapNodeRelationTypeWithParent | None): The relation type with the parent. * content (str): The content of the mind map node. children * (list["MindMapNodeResponse"]): List of child mind map nodes. */ node_tree?: MindMapNodeResponse | null; } /** * A response model for a mind map node. Inherits all fields from MindMapNodeBase. * * Attributes: id (str): The unique identifier of the mind map node. mind_map_id * (str): The ID of the mind map. parent_id (str | None): The ID of the parent mind * map node. order (int): The order of the mind map node. type (MindMapNodeType): * The type of the mind map node. relation_type_with_parent * (MindMapNodeRelationTypeWithParent | None): The relation type with the parent. * content (str): The content of the mind map node. children * (list["MindMapNodeResponse"]): List of child mind map nodes. */ export interface MindMapNodeResponse { /** * The unique identifier of the mind map node. */ id: string; /** * The content of the mind map node. */ content: string; /** * The ID of the mind_map. */ mind_map_id: string; /** * The type of the mind map node. */ type: 'CentralTheme' | 'MainIdea' | 'SubIdea'; /** * List of child mind map nodes. */ children?: Array; /** * The ascending priority order among sibling nodes, where 1 represents the topmost * position.Default 1. Values start from 1, indicating topmost placement. */ order?: number; /** * The ID of the parent mind map node. None if root node. */ parent_id?: string | null; /** * Class containing mind map relation type with parent constants. * * Attributes: HAS_MAIN_IDEA: Has main idea. HAS_SUB_IDEA: Has sub idea. */ relation_type_with_parent?: 'HAS_MAIN_IDEA' | 'HAS_SUB_IDEA' | null; } export interface MindMapCreateParams { /** * Body param */ conversation_document_id: string; /** * Body param */ model_name: string; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace MindMaps { export { type MindMap as MindMap, type MindMapNodeResponse as MindMapNodeResponse, type MindMapCreateParams as MindMapCreateParams, }; export { Shared as Shared, type SharedRetrieveParams as SharedRetrieveParams }; export { Nodes as Nodes, type NodeUpdateParams as NodeUpdateParams, type NodeMoveParams as NodeMoveParams }; } //# sourceMappingURL=mind-maps.d.ts.map