From 9f2de88103f58e883d9b1d206da50298705ae52b Mon Sep 17 00:00:00 2001 From: ask-sdk Date: Fri, 30 Oct 2020 19:39:20 +0000 Subject: [PATCH] chore: release model --- ask-sdk-model/index.ts | 105 ++++++++++++++++++++++++++++++++++++- ask-sdk-model/package.json | 2 +- 2 files changed, 105 insertions(+), 2 deletions(-) diff --git a/ask-sdk-model/index.ts b/ask-sdk-model/index.ts index b2c6bfc..fd0e9e7 100644 --- a/ask-sdk-model/index.ts +++ b/ask-sdk-model/index.ts @@ -534,7 +534,7 @@ export interface Person { * A request object that provides the details of the user’s request. The request body contains the parameters necessary for the service to perform its logic and generate a response. * @interface */ -export type Request = events.skillevents.SkillEnabledRequest | services.listManagement.ListUpdatedEventRequest | interfaces.alexa.presentation.apl.UserEvent | events.skillevents.SkillDisabledRequest | services.listManagement.ListItemsCreatedEventRequest | SessionResumedRequest | SessionEndedRequest | interfaces.alexa.presentation.apl.LoadIndexListDataEvent | interfaces.audioplayer.PlaybackFailedRequest | canfulfill.CanFulfillIntentRequest | interfaces.customInterfaceController.ExpiredRequest | interfaces.alexa.presentation.html.MessageRequest | LaunchRequest | authorization.AuthorizationGrantRequest | services.reminderManagement.ReminderCreatedEventRequest | interfaces.alexa.presentation.aplt.UserEvent | services.listManagement.ListItemsUpdatedEventRequest | services.listManagement.ListCreatedEventRequest | interfaces.audioplayer.PlaybackStartedRequest | interfaces.audioplayer.PlaybackNearlyFinishedRequest | interfaces.customInterfaceController.EventsReceivedRequest | services.reminderManagement.ReminderStatusChangedEventRequest | services.listManagement.ListItemsDeletedEventRequest | services.reminderManagement.ReminderDeletedEventRequest | interfaces.connections.ConnectionsResponse | services.listManagement.ListDeletedEventRequest | interfaces.gameEngine.InputHandlerEventRequest | interfaces.playbackcontroller.PauseCommandIssuedRequest | interfaces.playbackcontroller.PlayCommandIssuedRequest | interfaces.audioplayer.PlaybackFinishedRequest | events.skillevents.ProactiveSubscriptionChangedRequest | interfaces.display.ElementSelectedRequest | events.skillevents.PermissionChangedRequest | services.reminderManagement.ReminderUpdatedEventRequest | interfaces.alexa.presentation.apl.RuntimeErrorEvent | interfaces.alexa.presentation.html.RuntimeErrorRequest | dialog.InputRequest | IntentRequest | interfaces.conversations.APIInvocationRequest | services.reminderManagement.ReminderStartedEventRequest | interfaces.audioplayer.PlaybackStoppedRequest | interfaces.playbackcontroller.PreviousCommandIssuedRequest | events.skillevents.AccountLinkedRequest | interfaces.messaging.MessageReceivedRequest | interfaces.connections.ConnectionsRequest | interfaces.system.ExceptionEncounteredRequest | events.skillevents.PermissionAcceptedRequest | interfaces.playbackcontroller.NextCommandIssuedRequest; +export type Request = events.skillevents.SkillEnabledRequest | services.listManagement.ListUpdatedEventRequest | interfaces.alexa.presentation.apl.UserEvent | events.skillevents.SkillDisabledRequest | services.listManagement.ListItemsCreatedEventRequest | SessionResumedRequest | SessionEndedRequest | interfaces.alexa.presentation.apl.LoadIndexListDataEvent | interfaces.audioplayer.PlaybackFailedRequest | canfulfill.CanFulfillIntentRequest | interfaces.customInterfaceController.ExpiredRequest | interfaces.alexa.presentation.html.MessageRequest | LaunchRequest | authorization.AuthorizationGrantRequest | services.reminderManagement.ReminderCreatedEventRequest | interfaces.alexa.presentation.aplt.UserEvent | services.listManagement.ListItemsUpdatedEventRequest | services.listManagement.ListCreatedEventRequest | interfaces.audioplayer.PlaybackStartedRequest | interfaces.audioplayer.PlaybackNearlyFinishedRequest | interfaces.customInterfaceController.EventsReceivedRequest | services.reminderManagement.ReminderStatusChangedEventRequest | services.listManagement.ListItemsDeletedEventRequest | services.reminderManagement.ReminderDeletedEventRequest | interfaces.connections.ConnectionsResponse | services.listManagement.ListDeletedEventRequest | interfaces.gameEngine.InputHandlerEventRequest | interfaces.playbackcontroller.PauseCommandIssuedRequest | interfaces.playbackcontroller.PlayCommandIssuedRequest | interfaces.audioplayer.PlaybackFinishedRequest | events.skillevents.ProactiveSubscriptionChangedRequest | interfaces.display.ElementSelectedRequest | events.skillevents.PermissionChangedRequest | services.reminderManagement.ReminderUpdatedEventRequest | interfaces.alexa.presentation.apl.RuntimeErrorEvent | interfaces.alexa.presentation.html.RuntimeErrorRequest | dialog.InputRequest | IntentRequest | interfaces.conversations.APIInvocationRequest | services.reminderManagement.ReminderStartedEventRequest | interfaces.audioplayer.PlaybackStoppedRequest | interfaces.playbackcontroller.PreviousCommandIssuedRequest | events.skillevents.AccountLinkedRequest | interfaces.messaging.MessageReceivedRequest | interfaces.connections.ConnectionsRequest | interfaces.system.ExceptionEncounteredRequest | events.skillevents.PermissionAcceptedRequest | interfaces.playbackcontroller.NextCommandIssuedRequest | interfaces.alexa.presentation.apla.RuntimeErrorEvent; /** * Request wrapper for all requests sent to your Skill. @@ -1228,6 +1228,46 @@ export namespace interfaces.alexa.presentation.apl.listoperations { export type Operation = interfaces.alexa.presentation.apl.listoperations.SetItemOperation | interfaces.alexa.presentation.apl.listoperations.InsertMultipleItemsOperation | interfaces.alexa.presentation.apl.listoperations.DeleteMultipleItemsOperation | interfaces.alexa.presentation.apl.listoperations.InsertItemOperation | interfaces.alexa.presentation.apl.listoperations.DeleteItemOperation; } +export namespace interfaces.alexa.presentation.apla { + /** + * The reason for the failure. + * @enum + */ + export type AudioSourceErrorReason = 'UNKNOWN_ERROR' | 'INTERNAL_SERVER_ERROR' | 'NOT_FOUND_ERROR' | 'SSL_HANDSHAKE_ERROR' | 'TIMEOUT_ERROR' | 'INVALID_URI_ERROR' | 'HTTPS_ERROR'; +} + +export namespace interfaces.alexa.presentation.apla { + /** + * The reason for the failure. + * @enum + */ + export type DocumentErrorReason = 'UNKNOWN_ERROR' | 'INTERNAL_SERVER_ERROR'; +} + +export namespace interfaces.alexa.presentation.apla { + /** + * The reason for the failure. + * @enum + */ + export type LinkErrorReason = 'UNKNOWN_ERROR' | 'INTERNAL_SERVER_ERROR' | 'NOT_FOUND_ERROR'; +} + +export namespace interfaces.alexa.presentation.apla { + /** + * The reason for the failure. + * @enum + */ + export type RenderErrorReason = 'UNKNOWN_ERROR' | 'INTERNAL_SERVER_ERROR'; +} + +export namespace interfaces.alexa.presentation.apla { + /** + * A description of an error in APLA functionality. + * @interface + */ + export type RuntimeError = interfaces.alexa.presentation.apla.AudioSourceRuntimeError | interfaces.alexa.presentation.apla.RenderRuntimeError | interfaces.alexa.presentation.apla.DocumentRuntimeError | interfaces.alexa.presentation.apla.LinkRuntimeError; +} + export namespace interfaces.alexa.presentation.aplt { /** * @@ -4444,6 +4484,42 @@ export namespace interfaces.alexa.presentation.apl.listoperations { } } +export namespace interfaces.alexa.presentation.apla { + /** + * This error type occurs when the cloud fails to retrieve an audio file from a remote source, such as one specified from within an Audio component. + * @interface + */ + export interface AudioSourceRuntimeError { + 'type' : 'AUDIO_SOURCE_ERROR'; + 'message': string; + 'reason': interfaces.alexa.presentation.apla.AudioSourceErrorReason; + } +} + +export namespace interfaces.alexa.presentation.apla { + /** + * This error type occurs when the cloud fails to render due to an incorrect or malformed document or data sources. + * @interface + */ + export interface DocumentRuntimeError { + 'type' : 'DOCUMENT_ERROR'; + 'message': string; + 'reason': interfaces.alexa.presentation.apla.DocumentErrorReason; + } +} + +export namespace interfaces.alexa.presentation.apla { + /** + * This error type occurs when the cloud fails to execute a Link typed document. + * @interface + */ + export interface LinkRuntimeError { + 'type' : 'LINK_ERROR'; + 'message': string; + 'reason': interfaces.alexa.presentation.apla.LinkErrorReason; + } +} + export namespace interfaces.alexa.presentation.apla { /** * @@ -4457,6 +4533,33 @@ export namespace interfaces.alexa.presentation.apla { } } +export namespace interfaces.alexa.presentation.apla { + /** + * This error type occurs when the the cloud based audio mixing service fails to render the audio due to service or user failure. + * @interface + */ + export interface RenderRuntimeError { + 'type' : 'RENDER_ERROR'; + 'message': string; + 'reason': interfaces.alexa.presentation.apla.RenderErrorReason; + } +} + +export namespace interfaces.alexa.presentation.apla { + /** + * Notifies the skill of any errors in APLA functionality. + * @interface + */ + export interface RuntimeErrorEvent { + 'type' : 'Alexa.Presentation.APLA.RuntimeError'; + 'requestId': string; + 'timestamp': string; + 'locale'?: string; + 'token': string; + 'errors': Array; + } +} + export namespace interfaces.alexa.presentation.aplt { /** * Automatically progress through a series of pages displayed in a Pager component. The AutoPage command finishes after the last page has been displayed for the requested time period. diff --git a/ask-sdk-model/package.json b/ask-sdk-model/package.json index e0f1f1a..e91658a 100644 --- a/ask-sdk-model/package.json +++ b/ask-sdk-model/package.json @@ -1,6 +1,6 @@ { "name": "ask-sdk-model", - "version": "1.33.1", + "version": "1.34.0", "description": "Model package for Alexa Skills Kit SDK", "main": "index.js", "types": "index.d.ts",