import { C as ContentInterface, a as ContentInput } from './notification.interface-BWOCvKRP.mjs'; import { A as ApiDataInterface } from './ApiDataInterface-BcZeXy5X.mjs'; type BreadcrumbItemData = { name: string; href?: string; onClick?: () => void; }; type HowToInput = ContentInput & { description?: any; pages?: string | undefined | null; howToType?: string; slug?: string; order?: number; summary?: string; tags?: string[]; contextualKeys?: string[]; draft?: boolean; }; interface HowToInterface extends ContentInterface { get description(): any; get pages(): string | undefined; get howToType(): string | undefined; get slug(): string | undefined; get order(): number | undefined; get summary(): string | undefined; get tags(): string[]; get contextualKeys(): string[]; get draft(): boolean; } /** * Edge properties on the (:AssistantMessage)-[:CITES]->(:Chunk) relationship. * Surfaced via _readIncludedWithMeta on AssistantMessage.citations. */ interface ChunkRelationshipMeta { relevance: number; reason?: string; } interface ChunkInterface extends ApiDataInterface { get content(): string; get nodeId(): string | undefined; get nodeType(): string | undefined; get imagePath(): string | undefined; get source(): ApiDataInterface | undefined; } type AssistantMessageRole = "user" | "assistant" | "system"; /** * "text" is the default chat message; "approval-request" marks the message * created while an operator run is frozen on a destructive tool call, * awaiting human approval (linked AssistantAction via the `action` * relationship). */ type AssistantMessageType = "text" | "approval-request"; type AssistantMessageInput = { id: string; role: AssistantMessageRole; content: string; position: number; assistantId: string; }; interface AssistantMessageInterface extends ApiDataInterface { get role(): AssistantMessageRole; get content(): string; get position(): number; get suggestedQuestions(): string[]; get inputTokens(): number | undefined; get outputTokens(): number | undefined; get references(): ApiDataInterface[]; get citations(): (ChunkInterface & ChunkRelationshipMeta)[]; get isOptimistic(): boolean; get messageType(): AssistantMessageType; /** * Id of the AssistantAction linked through the `action` relationship. * Only present on `approval-request` messages. Exposed as a raw id (not a * hydrated model) because the AssistantAction module is registered by the * consuming app, not by this library. */ get actionId(): string | undefined; } export type { AssistantMessageRole as A, BreadcrumbItemData as B, ChunkRelationshipMeta as C, HowToInput as H, HowToInterface as a, AssistantMessageType as b, AssistantMessageInput as c, AssistantMessageInterface as d, ChunkInterface as e };