/*! Copyright (c) 2019, XAPPmedia */ import { GoogleActionsV2Input } from "actions-on-google"; import { Device } from "../models"; import { Conversation } from "./Conversation"; import { Surface } from "./Surface"; import { User } from "./User"; /** * Request made by the conversation webhook to your provided endpoint. * * @see https://developers.google.com/actions/reference/rest/Shared.Types/AppRequest * * @export * @interface Request */ export interface Request { /** * Holds session data like the conversation ID and conversation token. * * @type {Conversation} * @memberof Request */ conversation: Conversation; /** * Information about the device the user is using to interact with the app. * * @type {Device} * @memberof Request */ device?: Device; /** * List of inputs corresponding to the expected inputs specified by the app. For the initial conversation trigger, the input contains information on how the user triggered the conversation. * * @type {GoogleActionsV2Input[]} * @memberof Request */ inputs: GoogleActionsV2Input[]; /** * Indicates whether the request should be handled in sandbox mode. * * @type {boolean} * @memberof Request */ isInSandbox: boolean; /** * Information about the surface the user is interacting with, e.g. whether it can output audio or has a screen. * * @type {Surface} * @memberof Request */ surface: Surface; /** * Surfaces available for cross surface handoff. * * @type {Surface} * @memberof Request */ availableSurfaces: Surface[]; /** * User who initiated the conversation. * * @type {User} * @memberof Request */ user: User; }