mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Add Resolutions to SlotValue
Add the necessary interfaces to describe the structure for Alexa Entity Resolution.
This commit is contained in:
committed by
GitHub
parent
6839a99461
commit
6738d66ea6
24
types/alexa-sdk/index.d.ts
vendored
24
types/alexa-sdk/index.d.ts
vendored
@@ -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<ResolutionValueContainer>
|
||||
}
|
||||
|
||||
export interface Resolutions {
|
||||
resolutionsPerAuthority: Array<Resolution>
|
||||
}
|
||||
|
||||
export interface SlotValue {
|
||||
confirmationStatus?: ConfirmationStatuses;
|
||||
name: string;
|
||||
value?: any;
|
||||
resolutions?: Resolutions
|
||||
}
|
||||
|
||||
export interface Intent {
|
||||
|
||||
Reference in New Issue
Block a user