Skip to content

Commit

Permalink
chore: release model
Browse files Browse the repository at this point in the history
  • Loading branch information
ask-sdk committed Mar 25, 2020
1 parent 512b460 commit 3663edd
Show file tree
Hide file tree
Showing 2 changed files with 165 additions and 3 deletions.
166 changes: 164 additions & 2 deletions ask-sdk-model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ export type DialogState = 'STARTED' | 'IN_PROGRESS' | 'COMPLETED';
*
* @interface
*/
export type Directive = interfaces.customInterfaceController.StopEventHandlerDirective | interfaces.navigation.assistance.AnnounceRoadRegulation | interfaces.connections.SendRequestDirective | dialog.DynamicEntitiesDirective | interfaces.customInterfaceController.StartEventHandlerDirective | interfaces.gadgetController.SetLightDirective | dialog.DelegateDirective | dialog.ConfirmIntentDirective | interfaces.customInterfaceController.SendDirectiveDirective | interfaces.alexa.presentation.html.HandleMessageDirective | dialog.ElicitSlotDirective | interfaces.alexa.presentation.html.StartDirective | interfaces.audioplayer.StopDirective | dialog.ConfirmSlotDirective | interfaces.audioplayer.PlayDirective | interfaces.alexa.presentation.apl.ExecuteCommandsDirective | interfaces.display.RenderTemplateDirective | interfaces.display.HintDirective | interfaces.connections.V1.StartConnectionDirective | interfaces.alexa.presentation.aplt.RenderDocumentDirective | interfaces.gameEngine.StartInputHandlerDirective | interfaces.videoapp.LaunchDirective | interfaces.alexa.presentation.aplt.ExecuteCommandsDirective | interfaces.gameEngine.StopInputHandlerDirective | interfaces.tasks.CompleteTaskDirective | interfaces.alexa.presentation.apl.RenderDocumentDirective | interfaces.connections.SendResponseDirective | interfaces.audioplayer.ClearQueueDirective;
export type Directive = interfaces.customInterfaceController.StopEventHandlerDirective | interfaces.navigation.assistance.AnnounceRoadRegulation | interfaces.connections.SendRequestDirective | dialog.DynamicEntitiesDirective | interfaces.customInterfaceController.StartEventHandlerDirective | interfaces.gadgetController.SetLightDirective | interfaces.alexa.presentation.apl.SendIndexListDataDirective | dialog.DelegateDirective | dialog.ConfirmIntentDirective | interfaces.customInterfaceController.SendDirectiveDirective | interfaces.alexa.presentation.html.HandleMessageDirective | dialog.ElicitSlotDirective | interfaces.alexa.presentation.html.StartDirective | interfaces.audioplayer.StopDirective | dialog.ConfirmSlotDirective | interfaces.audioplayer.PlayDirective | interfaces.alexa.presentation.apl.ExecuteCommandsDirective | interfaces.display.RenderTemplateDirective | interfaces.display.HintDirective | interfaces.connections.V1.StartConnectionDirective | interfaces.alexa.presentation.aplt.RenderDocumentDirective | interfaces.gameEngine.StartInputHandlerDirective | interfaces.videoapp.LaunchDirective | interfaces.alexa.presentation.aplt.ExecuteCommandsDirective | interfaces.gameEngine.StopInputHandlerDirective | interfaces.tasks.CompleteTaskDirective | interfaces.alexa.presentation.apl.RenderDocumentDirective | interfaces.connections.SendResponseDirective | interfaces.audioplayer.ClearQueueDirective | interfaces.alexa.presentation.apl.UpdateIndexListDataDirective;

/**
* An object that represents what the user wants.
Expand Down Expand Up @@ -489,7 +489,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.audioplayer.PlaybackFailedRequest | canfulfill.CanFulfillIntentRequest | interfaces.customInterfaceController.ExpiredRequest | interfaces.alexa.presentation.html.MessageRequest | LaunchRequest | 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.html.RuntimeErrorRequest | IntentRequest | 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 | 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 | IntentRequest | 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;

/**
* Request wrapper for all requests sent to your Skill.
Expand Down Expand Up @@ -984,6 +984,14 @@ export namespace interfaces.alexa.presentation.apl {
export type HighlightMode = 'block' | 'line';
}

export namespace interfaces.alexa.presentation.apl {
/**
* The reason for the failure.
* @enum
*/
export type ListRuntimeErrorReason = 'INVALID_PRESENTATION_TOKEN' | 'INVALID_LIST_ID' | 'INVALID_DATASOURCE' | 'INVALID_OPERATION' | 'MISSING_LIST_VERSION' | 'DUPLICATE_LIST_VERSION' | 'LIST_INDEX_OUT_OF_RANGE' | 'MISSING_LIST_VERSION_IN_SEND_DATA' | 'LOAD_TIMEOUT' | 'INCONSISTENT_LIST_ID' | 'INCONSISTENT_PAGE_TOKEN' | 'INCONSISTENT_PAGE_ITEMS' | 'DUPLICATE_PAGE_TOKEN' | 'OCCUPIED_LIST_INDEX' | 'LOAD_INDEX_OUT_OF_RANGE' | 'INCONSISTENT_RANGE' | 'MISSING_LIST_ITEMS' | 'INTERNAL_ERROR';
}

export namespace interfaces.alexa.presentation.apl {
/**
* The command enumerated value is the operation that should be performed on the media player.
Expand Down Expand Up @@ -1022,6 +1030,14 @@ export namespace interfaces.alexa.presentation.apl {
}
}

export namespace interfaces.alexa.presentation.apl {
/**
* A description of an error in APL functionality.
* @interface
*/
export type RuntimeError = interfaces.alexa.presentation.apl.ListRuntimeError;
}

export namespace interfaces.alexa.presentation.apl {
/**
* Transform property to apply to a component.
Expand All @@ -1044,6 +1060,14 @@ export namespace interfaces.alexa.presentation.apl {
}
}

export namespace interfaces.alexa.presentation.apl.listoperations {
/**
* An operation which adds, removes or replaces item(s) defined in a dynamicIndexList.
* @interface
*/
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.aplt {
/**
*
Expand Down Expand Up @@ -3700,6 +3724,39 @@ export namespace interfaces.alexa.presentation.apl {
}
}

export namespace interfaces.alexa.presentation.apl {
/**
* Reports an error with list functionality.
* @interface
*/
export interface ListRuntimeError {
'type' : 'LIST_ERROR';
'message': string;
'reason': interfaces.alexa.presentation.apl.ListRuntimeErrorReason;
'listId': string;
'listVersion'?: number;
'operationIndex'?: number;
}
}

export namespace interfaces.alexa.presentation.apl {
/**
* The LoadIndexListData event is sent to the skill to retrieve additional list items.
* @interface
*/
export interface LoadIndexListDataEvent {
'type' : 'Alexa.Presentation.APL.LoadIndexListData';
'requestId': string;
'timestamp': string;
'locale'?: string;
'token': string;
'correlationToken': string;
'listId': string;
'startIndex': number;
'count': number;
}
}

export namespace interfaces.alexa.presentation.apl {
/**
*
Expand Down Expand Up @@ -3780,6 +3837,21 @@ export namespace interfaces.alexa.presentation.apl {
}
}

export namespace interfaces.alexa.presentation.apl {
/**
* Notifies the skill of any errors in APL functionality.
* @interface
*/
export interface RuntimeErrorEvent {
'type' : 'Alexa.Presentation.APL.RuntimeError';
'requestId': string;
'timestamp': string;
'locale'?: string;
'token': string;
'errors': Array<interfaces.alexa.presentation.apl.RuntimeError>;
}
}

export namespace interfaces.alexa.presentation.apl {
/**
*
Expand Down Expand Up @@ -3838,6 +3910,23 @@ export namespace interfaces.alexa.presentation.apl {
}
}

export namespace interfaces.alexa.presentation.apl {
/**
* Returned in response to a LoadIndexListData event, containing the requested items and metadata for further interaction.
* @interface
*/
export interface SendIndexListDataDirective {
'type' : 'Alexa.Presentation.APL.SendIndexListData';
'correlationToken'?: string;
'listId': string;
'listVersion'?: number;
'startIndex': number;
'minimumInclusiveIndex'?: number;
'maximumExclusiveIndex'?: number;
'items'?: Array<any>;
}
}

export namespace interfaces.alexa.presentation.apl {
/**
* A sequential command executes a series of commands in order. The sequential command executes the command list in order, waiting for the previous command to finish before executing the next. The sequential command is finished when all of its child commands have finished. When the Sequential command is terminated early, the currently executing command is terminated and no further commands are executed.
Expand Down Expand Up @@ -3963,6 +4052,20 @@ export namespace interfaces.alexa.presentation.apl {
}
}

export namespace interfaces.alexa.presentation.apl {
/**
* Updates the content of an dynamicIndexList datasource which has been previously communicated to an Alexa device.
* @interface
*/
export interface UpdateIndexListDataDirective {
'type' : 'Alexa.Presentation.APL.UpdateIndexListData';
'token': string;
'listId': string;
'listVersion': number;
'operations': Array<interfaces.alexa.presentation.apl.listoperations.Operation>;
}
}

export namespace interfaces.alexa.presentation.apl {
/**
*
Expand All @@ -3980,6 +4083,65 @@ export namespace interfaces.alexa.presentation.apl {
}
}

export namespace interfaces.alexa.presentation.apl.listoperations {
/**
* Deletes an item at a specified index in a dynamicIndexList.
* @interface
*/
export interface DeleteItemOperation {
'type' : 'DeleteItem';
'index': number;
}
}

export namespace interfaces.alexa.presentation.apl.listoperations {
/**
* Deletes items at consecutive indexes in a dynamicIndexList.
* @interface
*/
export interface DeleteMultipleItemsOperation {
'type' : 'DeleteMultipleItems';
'index': number;
'count': number;
}
}

export namespace interfaces.alexa.presentation.apl.listoperations {
/**
* Inserts a new item at a specified index in a dynamicIndexList.
* @interface
*/
export interface InsertItemOperation {
'type' : 'InsertItem';
'index': number;
'item': any;
}
}

export namespace interfaces.alexa.presentation.apl.listoperations {
/**
* Inserts an array of items into consecutive indexes in a dynamicIndexList.
* @interface
*/
export interface InsertMultipleItemsOperation {
'type' : 'InsertMultipleItems';
'index': number;
'items': Array<any>;
}
}

export namespace interfaces.alexa.presentation.apl.listoperations {
/**
* Sets an item at a specified index in a dynamicIndexList.
* @interface
*/
export interface SetItemOperation {
'type' : 'SetItem';
'index': number;
'item': any;
}
}

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.
Expand Down
2 changes: 1 addition & 1 deletion ask-sdk-model/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ask-sdk-model",
"version": "1.27.0",
"version": "1.28.0",
"description": "Model package for Alexa Skills Kit SDK",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 3663edd

Please sign in to comment.