import { type AxiosInstance } from 'axios'; import type { ProjectMeta, Agent, Skill, FlowEvent, FlowState, AkbImportArticle, CustomerProfile, CustomerAttribute, CustomerAttributesResponse, UserPersonaResponse, UserPersona, ChatHistoryParams, ChatHistoryResponse, CreateAgentRequest, CreateAgentResponse, CreateFlowRequest, CreateFlowResponse, CreateSkillRequest, CreateSkillResponse, CreateFlowEventRequest, CreateFlowEventResponse, UpdateFlowEventRequest, CreateFlowStateRequest, CreateFlowStateResponse, UpdateFlowStateRequest, UpdateFlowRequest, CreateSkillParameterRequest, CreateSkillParameterResponse, CreateCustomerAttributeRequest, CreateCustomerAttributeResponse, CreatePersonaRequest, CreatePersonaResponse, CreateProjectRequest, CreateProjectResponse, PublishFlowRequest, PublishFlowResponse, Integration, Connector, CreateSandboxPersonaRequest, CreateSandboxPersonaResponse, CreateActorRequest, CreateActorResponse, SendChatMessageRequest, ConversationActsParams, ConversationActsResponse, ScriptAction, IntegrationSetting, CreateConnectorRequest, CreateConnectorResponse, UpdateConnectorRequest, OutgoingWebhook, IncomingWebhook, PersonaSearchResponse, AkbTopicsResponse, Registry, RegistryItem, AddProjectFromRegistryRequest, CreateNewoCustomerRequest, CreateNewoCustomerResponse, LogsQueryParams, LogsResponse } from './types.js'; export declare function makeClient(verbose?: boolean, token?: string): Promise; export declare function listProjects(client: AxiosInstance): Promise; export declare function listAgents(client: AxiosInstance, projectId: string): Promise; export declare function getProjectMeta(client: AxiosInstance, projectId: string): Promise; export declare function listFlowSkills(client: AxiosInstance, flowId: string): Promise; /** * Fetch a single flow's top-level descriptor. * * Used by push to detect whether local metadata.yaml title/description * differ from the platform before patching. */ export interface FlowDescriptor { id: string; idn: string; title: string; description: string | null; agent_id: string; default_runner_type: string; default_model: { provider_idn: string; model_idn: string; }; publication_datetime?: string; last_change_datetime?: string; creation_datetime?: string; } export declare function getFlow(client: AxiosInstance, flowId: string): Promise; export declare function getSkill(client: AxiosInstance, skillId: string): Promise; export declare function updateSkill(client: AxiosInstance, skillObject: Skill): Promise; export declare function listFlowEvents(client: AxiosInstance, flowId: string): Promise; export declare function listFlowStates(client: AxiosInstance, flowId: string): Promise; export declare function importAkbArticle(client: AxiosInstance, articleData: AkbImportArticle): Promise; export declare function getCustomerProfile(client: AxiosInstance): Promise; export declare function getCustomerAttributes(client: AxiosInstance, includeHidden?: boolean): Promise; export declare function updateCustomerAttribute(client: AxiosInstance, attribute: CustomerAttribute): Promise; export declare function getProjectAttributes(client: AxiosInstance, projectId: string, includeHidden?: boolean): Promise; export declare function updateProjectAttribute(client: AxiosInstance, projectId: string, attribute: CustomerAttribute): Promise; export declare function createProjectAttribute(client: AxiosInstance, projectId: string, attributeData: CreateCustomerAttributeRequest): Promise; export declare function deleteProjectAttribute(client: AxiosInstance, projectId: string, attributeId: string): Promise; export declare function listUserPersonas(client: AxiosInstance, page?: number, per?: number): Promise; export declare function getUserPersona(client: AxiosInstance, personaId: string): Promise; export declare function getAccount(client: AxiosInstance): Promise<{ id: string; [key: string]: any; }>; export declare function getChatHistory(client: AxiosInstance, params: ChatHistoryParams): Promise; export declare function createAgent(client: AxiosInstance, projectId: string, agentData: CreateAgentRequest): Promise; export declare function deleteAgent(client: AxiosInstance, agentId: string): Promise; export declare function createFlow(client: AxiosInstance, agentId: string, flowData: CreateFlowRequest): Promise; export declare function deleteFlow(client: AxiosInstance, flowId: string): Promise; export declare function createSkill(client: AxiosInstance, flowId: string, skillData: CreateSkillRequest): Promise; export declare function deleteSkill(client: AxiosInstance, skillId: string): Promise; export declare function deleteSkillById(client: AxiosInstance, skillId: string): Promise; export declare function createFlowEvent(client: AxiosInstance, flowId: string, eventData: CreateFlowEventRequest): Promise; export declare function updateFlowEvent(client: AxiosInstance, eventId: string, eventData: UpdateFlowEventRequest): Promise; export declare function deleteFlowEvent(client: AxiosInstance, eventId: string): Promise; export declare function createFlowState(client: AxiosInstance, flowId: string, stateData: CreateFlowStateRequest): Promise; export declare function updateFlowState(client: AxiosInstance, stateId: string, stateData: UpdateFlowStateRequest): Promise; export declare function deleteFlowState(client: AxiosInstance, stateId: string): Promise; /** * Update flow metadata (title, description, runner type, default model). * * Uses PATCH /api/v1/designer/flows/{flowId}. The platform requires the * full flow descriptor; sending a partial body returns 500. */ export declare function updateFlow(client: AxiosInstance, flowId: string, flowData: UpdateFlowRequest): Promise; export declare function createSkillParameter(client: AxiosInstance, skillId: string, paramData: CreateSkillParameterRequest): Promise; export declare function createCustomerAttribute(client: AxiosInstance, attributeData: CreateCustomerAttributeRequest): Promise; export declare function createProject(client: AxiosInstance, projectData: CreateProjectRequest): Promise; export declare function deleteProject(client: AxiosInstance, projectId: string): Promise; export declare function createPersona(client: AxiosInstance, personaData: CreatePersonaRequest): Promise; export declare function publishFlow(client: AxiosInstance, flowId: string, publishData: PublishFlowRequest): Promise; export declare function listIntegrations(client: AxiosInstance): Promise; export declare function listConnectors(client: AxiosInstance, integrationId: string): Promise; export declare function createSandboxPersona(client: AxiosInstance, personaData: CreateSandboxPersonaRequest): Promise; export declare function createActor(client: AxiosInstance, personaId: string, actorData: CreateActorRequest): Promise; export declare function sendChatMessage(client: AxiosInstance, actorId: string, messageData: SendChatMessageRequest): Promise; export declare function getConversationActs(client: AxiosInstance, params: ConversationActsParams): Promise; export declare function getScriptActions(client: AxiosInstance): Promise; export declare function getIntegrationSettings(client: AxiosInstance, integrationId: string): Promise; export declare function createConnector(client: AxiosInstance, integrationId: string, connectorData: CreateConnectorRequest): Promise; export declare function updateConnector(client: AxiosInstance, connectorId: string, updateData: UpdateConnectorRequest): Promise; export declare function deleteConnector(client: AxiosInstance, connectorId: string): Promise; export declare function listOutgoingWebhooks(client: AxiosInstance): Promise; export declare function listIncomingWebhooks(client: AxiosInstance): Promise; export declare function searchPersonas(client: AxiosInstance, isLinkedToAgent?: boolean, page?: number, per?: number): Promise; export declare function getAkbTopics(client: AxiosInstance, personaId: string, page?: number, per?: number, orderBy?: string): Promise; export declare function updateProject(client: AxiosInstance, projectId: string, updateData: Partial<{ title: string; description: string; is_auto_update_enabled: boolean; registry_idn: string; registry_item_idn: string | null; registry_item_version: string | null; }>): Promise; export declare function updateAgent(client: AxiosInstance, agentId: string, updateData: Partial<{ title: string; description: string; persona_id: string | null; }>): Promise; export declare function createOutgoingWebhook(client: AxiosInstance, webhookData: { connector_idn: string; event_idn: string; url: string; method: string; headers?: Record; body_template?: string; }): Promise<{ id: string; }>; export declare function createIncomingWebhook(client: AxiosInstance, webhookData: { connector_idn: string; event_idn: string; }): Promise<{ id: string; url: string; }>; export declare function listRegistries(client: AxiosInstance): Promise; export declare function listRegistryItems(client: AxiosInstance, registryId: string): Promise; export declare function addProjectFromRegistry(client: AxiosInstance, projectData: AddProjectFromRegistryRequest): Promise; export declare function createNewoCustomer(client: AxiosInstance, customerData: CreateNewoCustomerRequest): Promise; export declare function getLogs(client: AxiosInstance, params: LogsQueryParams): Promise; export interface LibraryResponse { id: string; idn: string; project_id: string; skills: Skill[]; } export declare function listLibraries(client: AxiosInstance, projectId: string): Promise; export declare function listLibrarySkills(client: AxiosInstance, libraryId: string): Promise; export declare function updateLibrarySkill(client: AxiosInstance, libraryId: string, skillId: string, data: { prompt_script: string; [key: string]: unknown; }): Promise; export interface V2ExportOptions { export_akb?: boolean; export_customer_attributes?: boolean; exclude_projects_idn?: string[]; } export declare function exportCustomerV2(client: AxiosInstance, customerId: string, options?: V2ExportOptions): Promise; //# sourceMappingURL=api.d.ts.map