@nu-art/google-services
Version:
google-services
24 lines (23 loc) • 1.42 kB
TypeScript
import { Logger } from "@nu-art/ts-common";
import { dialogflow_v2 } from "googleapis";
import Schema$GoogleCloudDialogflowV2EntityTypeEntity = dialogflow_v2.Schema$GoogleCloudDialogflowV2EntityTypeEntity;
export declare class ModuleBE_DialogFlow extends Logger {
private dialogFlowApi;
constructor(authKey: string);
agent: {
create: (agentProjectId: string, name: string) => Promise<void>;
train: (agentProjectId: string) => Promise<dialogflow_v2.Schema$GoogleLongrunningOperation>;
export: (agentProjectId: string) => Promise<any>;
restore: (agentProjectId: string, agentContent: string) => Promise<dialogflow_v2.Schema$GoogleLongrunningOperation>;
import: (agentProjectId: string, agentContent: string) => Promise<dialogflow_v2.Schema$GoogleLongrunningOperation>;
copy: (fromAgent: string, toAgent: string) => Promise<void>;
override: (fromAgent: string, toAgent: string) => Promise<void>;
};
intent: {
list: (agentProjectId: string) => Promise<dialogflow_v2.Schema$GoogleCloudDialogflowV2Intent[]>;
};
entity: {
createEntities: (agentProjectId: string, entityId: string, entityList: Schema$GoogleCloudDialogflowV2EntityTypeEntity[]) => Promise<dialogflow_v2.Schema$GoogleLongrunningOperation>;
createEntityType: (agentProjectId: string, entityName: string) => Promise<string | null | undefined>;
};
}