/*! Copyright (c) 2019, XAPPmedia */ import { Parameter } from "./Parameter"; import { Trigger } from "./Trigger"; /** * Intent and its associated query patterns which are used to match user's queries. Used for initial triggering. * * @see https://developers.google.com/actions/reference/rest/Shared.Types/Action#intent * * @export * @interface Intent */ export interface Intent { /** * Indicates the name of this intent, e.g., BOOK_A_TABLE. Can be a built-in intent, starting with actions., in which case parameters and query patterns are implied and are therefore ignored. * * @type {string} * @memberof Intent */ name: string; /** * The list of parameters within the queryPatterns. All of the parameters within queryPatterns must be given. * * @type {Parameter[]} * @memberof Intent */ parameters: Parameter[]; /** * Triggering specification for this intent. * * @type {Trigger} * @memberof Intent */ trigger: Trigger; }