From 6738d66ea6009eb6d0536cb8ea2734ee9313628e Mon Sep 17 00:00:00 2001 From: Sai Kiran Vadlamudi Date: Thu, 24 Aug 2017 17:49:24 -0400 Subject: [PATCH] Add Resolutions to SlotValue Add the necessary interfaces to describe the structure for Alexa Entity Resolution. --- types/alexa-sdk/index.d.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/types/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts index 983c2fa063..ac156ec812 100644 --- a/types/alexa-sdk/index.d.ts +++ b/types/alexa-sdk/index.d.ts @@ -98,10 +98,34 @@ export interface Request { locale?: string; } +export interface ResolutionStatus { + code: String +} + +export interface ResolutionValue { + name: String, + id: String +} + +export interface ResolutionValueContainer { + value: ResolutionValue +} + +export interface Resolution { + authority: String, + status: ResolutionStatus, + values: Array +} + +export interface Resolutions { + resolutionsPerAuthority: Array +} + export interface SlotValue { confirmationStatus?: ConfirmationStatuses; name: string; value?: any; + resolutions?: Resolutions } export interface Intent {