/*! Copyright (c) 2019, XAPPmedia */ import { Locale, Localizable } from "../Locale"; import { SuggestionTypes } from "../Suggestion"; export type LocaleSpecificResponseOutput = Partial>; /** * A response object which contains all the necessary information to communicate * a particular response for multiple surfaces. * * Note: We may want to change this to SimpleResponse and then have multiple levels * of this object to also account for cards, lists, etc. */ export interface ResponseOutput extends Localizable { /** * The SSML */ ssml?: string; /** * Text to speech * * @deprecated Do not use, instead use both ssml and displayText */ textToSpeech?: string; /** * Used only display/chat capable surfaces */ displayText?: string; /** * Sanitized HTML, suitable for displaying within a web environment. * * This is typically generated from the displayText based on markdown found within. * * @beta */ html?: string; /** * Used where suggestions can be displayed to the user. * * Note: These only apply to prompts, not reprompts. */ suggestions?: SuggestionTypes[]; /** * The locale for the response, defaults to "en" */ defaultLocale?: Locale; /** * The language code for the response output. */ locales?: Partial>; }