newo
Version:
NEWO CLI: Professional command-line tool with modular architecture for NEWO AI Agent development. Features account migration, integration management, webhook automation, AKB knowledge base, project attributes, sandbox testing, IDN-based file management, r
91 lines • 8.76 kB
TypeScript
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, CreateFlowStateRequest, CreateFlowStateResponse, 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 } from './types.js';
export declare function makeClient(verbose?: boolean, token?: string): Promise<AxiosInstance>;
export declare function listProjects(client: AxiosInstance): Promise<ProjectMeta[]>;
export declare function listAgents(client: AxiosInstance, projectId: string): Promise<Agent[]>;
export declare function getProjectMeta(client: AxiosInstance, projectId: string): Promise<ProjectMeta>;
export declare function listFlowSkills(client: AxiosInstance, flowId: string): Promise<Skill[]>;
export declare function getSkill(client: AxiosInstance, skillId: string): Promise<Skill>;
export declare function updateSkill(client: AxiosInstance, skillObject: Skill): Promise<void>;
export declare function listFlowEvents(client: AxiosInstance, flowId: string): Promise<FlowEvent[]>;
export declare function listFlowStates(client: AxiosInstance, flowId: string): Promise<FlowState[]>;
export declare function importAkbArticle(client: AxiosInstance, articleData: AkbImportArticle): Promise<unknown>;
export declare function getCustomerProfile(client: AxiosInstance): Promise<CustomerProfile>;
export declare function getCustomerAttributes(client: AxiosInstance, includeHidden?: boolean): Promise<CustomerAttributesResponse>;
export declare function updateCustomerAttribute(client: AxiosInstance, attribute: CustomerAttribute): Promise<void>;
export declare function getProjectAttributes(client: AxiosInstance, projectId: string, includeHidden?: boolean): Promise<CustomerAttributesResponse>;
export declare function updateProjectAttribute(client: AxiosInstance, projectId: string, attribute: CustomerAttribute): Promise<void>;
export declare function createProjectAttribute(client: AxiosInstance, projectId: string, attributeData: CreateCustomerAttributeRequest): Promise<CreateCustomerAttributeResponse>;
export declare function deleteProjectAttribute(client: AxiosInstance, projectId: string, attributeId: string): Promise<void>;
export declare function listUserPersonas(client: AxiosInstance, page?: number, per?: number): Promise<UserPersonaResponse>;
export declare function getUserPersona(client: AxiosInstance, personaId: string): Promise<UserPersona>;
export declare function getAccount(client: AxiosInstance): Promise<{
id: string;
[key: string]: any;
}>;
export declare function getChatHistory(client: AxiosInstance, params: ChatHistoryParams): Promise<ChatHistoryResponse>;
export declare function createAgent(client: AxiosInstance, projectId: string, agentData: CreateAgentRequest): Promise<CreateAgentResponse>;
export declare function deleteAgent(client: AxiosInstance, agentId: string): Promise<void>;
export declare function createFlow(client: AxiosInstance, agentId: string, flowData: CreateFlowRequest): Promise<CreateFlowResponse>;
export declare function deleteFlow(client: AxiosInstance, flowId: string): Promise<void>;
export declare function createSkill(client: AxiosInstance, flowId: string, skillData: CreateSkillRequest): Promise<CreateSkillResponse>;
export declare function deleteSkill(client: AxiosInstance, skillId: string): Promise<void>;
export declare function deleteSkillById(client: AxiosInstance, skillId: string): Promise<void>;
export declare function createFlowEvent(client: AxiosInstance, flowId: string, eventData: CreateFlowEventRequest): Promise<CreateFlowEventResponse>;
export declare function deleteFlowEvent(client: AxiosInstance, eventId: string): Promise<void>;
export declare function createFlowState(client: AxiosInstance, flowId: string, stateData: CreateFlowStateRequest): Promise<CreateFlowStateResponse>;
export declare function createSkillParameter(client: AxiosInstance, skillId: string, paramData: CreateSkillParameterRequest): Promise<CreateSkillParameterResponse>;
export declare function createCustomerAttribute(client: AxiosInstance, attributeData: CreateCustomerAttributeRequest): Promise<CreateCustomerAttributeResponse>;
export declare function createProject(client: AxiosInstance, projectData: CreateProjectRequest): Promise<CreateProjectResponse>;
export declare function deleteProject(client: AxiosInstance, projectId: string): Promise<void>;
export declare function createPersona(client: AxiosInstance, personaData: CreatePersonaRequest): Promise<CreatePersonaResponse>;
export declare function publishFlow(client: AxiosInstance, flowId: string, publishData: PublishFlowRequest): Promise<PublishFlowResponse>;
export declare function listIntegrations(client: AxiosInstance): Promise<Integration[]>;
export declare function listConnectors(client: AxiosInstance, integrationId: string): Promise<Connector[]>;
export declare function createSandboxPersona(client: AxiosInstance, personaData: CreateSandboxPersonaRequest): Promise<CreateSandboxPersonaResponse>;
export declare function createActor(client: AxiosInstance, personaId: string, actorData: CreateActorRequest): Promise<CreateActorResponse>;
export declare function sendChatMessage(client: AxiosInstance, actorId: string, messageData: SendChatMessageRequest): Promise<void>;
export declare function getConversationActs(client: AxiosInstance, params: ConversationActsParams): Promise<ConversationActsResponse>;
export declare function getScriptActions(client: AxiosInstance): Promise<ScriptAction[]>;
export declare function getIntegrationSettings(client: AxiosInstance, integrationId: string): Promise<IntegrationSetting[]>;
export declare function createConnector(client: AxiosInstance, integrationId: string, connectorData: CreateConnectorRequest): Promise<CreateConnectorResponse>;
export declare function updateConnector(client: AxiosInstance, connectorId: string, updateData: UpdateConnectorRequest): Promise<void>;
export declare function deleteConnector(client: AxiosInstance, connectorId: string): Promise<void>;
export declare function listOutgoingWebhooks(client: AxiosInstance): Promise<OutgoingWebhook[]>;
export declare function listIncomingWebhooks(client: AxiosInstance): Promise<IncomingWebhook[]>;
export declare function searchPersonas(client: AxiosInstance, isLinkedToAgent?: boolean, page?: number, per?: number): Promise<PersonaSearchResponse>;
export declare function getAkbTopics(client: AxiosInstance, personaId: string, page?: number, per?: number, orderBy?: string): Promise<AkbTopicsResponse>;
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<void>;
export declare function updateAgent(client: AxiosInstance, agentId: string, updateData: Partial<{
title: string;
description: string;
persona_id: string | null;
}>): Promise<void>;
export declare function createOutgoingWebhook(client: AxiosInstance, webhookData: {
connector_idn: string;
event_idn: string;
url: string;
method: string;
headers?: Record<string, string>;
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<Registry[]>;
export declare function listRegistryItems(client: AxiosInstance, registryId: string): Promise<RegistryItem[]>;
export declare function addProjectFromRegistry(client: AxiosInstance, projectData: AddProjectFromRegistryRequest): Promise<CreateProjectResponse>;
//# sourceMappingURL=api.d.ts.map