export type DocumentAiToolRegistryItem = {
  name: string;
  title: string;
  description: string;
  scope: "document" | "tree" | "workspace";
  mode: "read" | "write";
  status: string;
  version?: string;
};

export type DocumentAiProfileConfigItem = {
  id: string;
  title: string;
  description: string;
  sessionMode: "off" | "page" | "workspace";
  toolNames: string[];
  status: string;
  default?: boolean;
};

export type DocumentAiModelConfigItem = {
  key: string;
  title: string;
  description: string;
  gatewayModel: string;
  resolvedCombo?: string | null;
  resolvedRuntimeModel?: string | null;
  status: string;
  default?: boolean;
};

export type DocumentAiCapabilityConfig = {
  provider: "online";
  transport: string;
  baseUrl: string;
  sessionEnabled: boolean;
  defaultModelKey: string;
  defaultProfileId: string;
  models: DocumentAiModelConfigItem[];
  profiles: DocumentAiProfileConfigItem[];
  tools: DocumentAiToolRegistryItem[];
};
