UNPKG

ask-assertions

Version:
25 lines (24 loc) 1.82 kB
import { ResponseEnvelope } from "ask-sdk-model"; export declare function checkResponseStructure(response: ResponseEnvelope): void; export declare function checkOutputSpeech(response: ResponseEnvelope): void; export declare function checkNoOutputSpeech(response: ResponseEnvelope): void; export declare function checkOutputSpeechContains(response: ResponseEnvelope, text: string): void; export declare function checkOutputSpeechContainsAtLeastOneOf(response: ResponseEnvelope, ...validText: string[]): void; export declare function checkOutputSpeechDoesNotContains(response: ResponseEnvelope, text: string): void; export declare function sessionAttributes(response: ResponseEnvelope): { [key: string]: any; }; export declare function checkSessionAttributes(response: ResponseEnvelope, obj: { [key: string]: any; }): void; export declare function checkSessionStatus(response: ResponseEnvelope, shouldEndSession: boolean): void; export declare function checkStandardCard(response: ResponseEnvelope): void; export declare function checkReprompt(response: ResponseEnvelope): void; export declare function checkNoReprompt(response: ResponseEnvelope): void; export declare function checkAudioPlayDirective(response: ResponseEnvelope, replace?: boolean): void; export declare function checkAudioPlayStreamURL(response: ResponseEnvelope, streamURL: string): void; export declare function checkAudioStopDirective(response: ResponseEnvelope, replace?: boolean): void; export declare function checkNoAudioDirective(response: ResponseEnvelope): void; export declare function checkDisplayDirective(response: ResponseEnvelope, imageURL: string): void; export declare function checkNoDisplayDirective(response: ResponseEnvelope): void; export declare function checkSlotDirective(response: ResponseEnvelope, slot: string): void;