Skip to content

Commit d102591

Browse files
committed
chore: release model
1 parent e74b20b commit d102591

File tree

2 files changed

+77
-3
lines changed

2 files changed

+77
-3
lines changed

ask-sdk-model/index.ts

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,12 @@ export interface Application {
355355
'applicationId': string;
356356
}
357357

358+
/**
359+
* Describes the type of the Cause.
360+
* @interface
361+
*/
362+
export type Cause = ConnectionCompleted;
363+
358364
/**
359365
*
360366
* @interface
@@ -387,7 +393,7 @@ export type DialogState = 'STARTED' | 'IN_PROGRESS' | 'COMPLETED';
387393
*
388394
* @interface
389395
*/
390-
export type Directive = interfaces.audioplayer.StopDirective | dialog.ConfirmSlotDirective | interfaces.audioplayer.PlayDirective | interfaces.alexa.presentation.apl.ExecuteCommandsDirective | interfaces.connections.SendRequestDirective | dialog.DynamicEntitiesDirective | interfaces.display.RenderTemplateDirective | interfaces.gadgetController.SetLightDirective | dialog.DelegateDirective | interfaces.display.HintDirective | dialog.ConfirmIntentDirective | interfaces.gameEngine.StartInputHandlerDirective | interfaces.videoapp.LaunchDirective | interfaces.gameEngine.StopInputHandlerDirective | interfaces.alexa.presentation.apl.RenderDocumentDirective | interfaces.connections.SendResponseDirective | dialog.ElicitSlotDirective | interfaces.audioplayer.ClearQueueDirective;
396+
export type Directive = interfaces.audioplayer.StopDirective | dialog.ConfirmSlotDirective | interfaces.audioplayer.PlayDirective | interfaces.alexa.presentation.apl.ExecuteCommandsDirective | interfaces.connections.SendRequestDirective | dialog.DynamicEntitiesDirective | interfaces.display.RenderTemplateDirective | interfaces.gadgetController.SetLightDirective | dialog.DelegateDirective | interfaces.display.HintDirective | dialog.ConfirmIntentDirective | interfaces.connections.V1.StartConnectionDirective | interfaces.gameEngine.StartInputHandlerDirective | interfaces.videoapp.LaunchDirective | interfaces.gameEngine.StopInputHandlerDirective | interfaces.tasks.CompleteTaskDirective | interfaces.alexa.presentation.apl.RenderDocumentDirective | interfaces.connections.SendResponseDirective | dialog.ElicitSlotDirective | interfaces.audioplayer.ClearQueueDirective;
391397

392398
/**
393399
* An object that represents what the user wants.
@@ -424,7 +430,7 @@ export interface Permissions {
424430
* 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.
425431
* @interface
426432
*/
427-
export type Request = interfaces.audioplayer.PlaybackFinishedRequest | events.skillevents.SkillEnabledRequest | services.listManagement.ListUpdatedEventRequest | events.skillevents.ProactiveSubscriptionChangedRequest | interfaces.alexa.presentation.apl.UserEvent | events.skillevents.SkillDisabledRequest | interfaces.display.ElementSelectedRequest | events.skillevents.PermissionChangedRequest | services.listManagement.ListItemsCreatedEventRequest | services.reminderManagement.ReminderUpdatedEventRequest | SessionEndedRequest | IntentRequest | interfaces.audioplayer.PlaybackFailedRequest | canfulfill.CanFulfillIntentRequest | services.reminderManagement.ReminderStartedEventRequest | LaunchRequest | services.reminderManagement.ReminderCreatedEventRequest | interfaces.audioplayer.PlaybackStoppedRequest | interfaces.playbackcontroller.PreviousCommandIssuedRequest | services.listManagement.ListItemsUpdatedEventRequest | events.skillevents.AccountLinkedRequest | services.listManagement.ListCreatedEventRequest | interfaces.audioplayer.PlaybackStartedRequest | interfaces.audioplayer.PlaybackNearlyFinishedRequest | services.reminderManagement.ReminderStatusChangedEventRequest | services.listManagement.ListItemsDeletedEventRequest | services.reminderManagement.ReminderDeletedEventRequest | interfaces.connections.ConnectionsResponse | interfaces.messaging.MessageReceivedRequest | interfaces.connections.ConnectionsRequest | interfaces.system.ExceptionEncounteredRequest | events.skillevents.PermissionAcceptedRequest | services.listManagement.ListDeletedEventRequest | interfaces.gameEngine.InputHandlerEventRequest | interfaces.playbackcontroller.NextCommandIssuedRequest | interfaces.playbackcontroller.PauseCommandIssuedRequest | interfaces.playbackcontroller.PlayCommandIssuedRequest;
433+
export type Request = interfaces.audioplayer.PlaybackFinishedRequest | events.skillevents.SkillEnabledRequest | services.listManagement.ListUpdatedEventRequest | events.skillevents.ProactiveSubscriptionChangedRequest | interfaces.alexa.presentation.apl.UserEvent | events.skillevents.SkillDisabledRequest | interfaces.display.ElementSelectedRequest | events.skillevents.PermissionChangedRequest | services.listManagement.ListItemsCreatedEventRequest | services.reminderManagement.ReminderUpdatedEventRequest | SessionResumedRequest | SessionEndedRequest | IntentRequest | interfaces.audioplayer.PlaybackFailedRequest | canfulfill.CanFulfillIntentRequest | services.reminderManagement.ReminderStartedEventRequest | LaunchRequest | services.reminderManagement.ReminderCreatedEventRequest | interfaces.audioplayer.PlaybackStoppedRequest | interfaces.playbackcontroller.PreviousCommandIssuedRequest | services.listManagement.ListItemsUpdatedEventRequest | events.skillevents.AccountLinkedRequest | services.listManagement.ListCreatedEventRequest | interfaces.audioplayer.PlaybackStartedRequest | interfaces.audioplayer.PlaybackNearlyFinishedRequest | services.reminderManagement.ReminderStatusChangedEventRequest | services.listManagement.ListItemsDeletedEventRequest | services.reminderManagement.ReminderDeletedEventRequest | interfaces.connections.ConnectionsResponse | interfaces.messaging.MessageReceivedRequest | interfaces.connections.ConnectionsRequest | interfaces.system.ExceptionEncounteredRequest | events.skillevents.PermissionAcceptedRequest | services.listManagement.ListDeletedEventRequest | interfaces.gameEngine.InputHandlerEventRequest | interfaces.playbackcontroller.NextCommandIssuedRequest | interfaces.playbackcontroller.PauseCommandIssuedRequest | interfaces.playbackcontroller.PlayCommandIssuedRequest;
428434

429435
/**
430436
* Request wrapper for all requests sent to your Skill.
@@ -519,6 +525,15 @@ export interface Slot {
519525
*/
520526
export type SlotConfirmationStatus = 'NONE' | 'DENIED' | 'CONFIRMED';
521527

528+
/**
529+
* Status indicates a high level understanding of the result of an execution.
530+
* @interface
531+
*/
532+
export interface Status {
533+
'code': string;
534+
'message': string;
535+
}
536+
522537
/**
523538
* An object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface.
524539
* @interface
@@ -531,6 +546,16 @@ export interface SupportedInterfaces {
531546
'Geolocation'?: interfaces.geolocation.GeolocationInterface;
532547
}
533548

549+
/**
550+
* This object encapsulates a specific functionality.
551+
* @interface
552+
*/
553+
export interface Task {
554+
'name': string;
555+
'version': string;
556+
'input'?: any;
557+
}
558+
534559
/**
535560
* Represents the user registered to the device initiating the request.
536561
* @interface
@@ -2502,6 +2527,17 @@ export namespace ui {
25022527
}
25032528
}
25042529

2530+
/**
2531+
* Represents the status and result needed to resume a skill's suspended session.
2532+
* @interface
2533+
*/
2534+
export interface ConnectionCompleted {
2535+
'type' : 'ConnectionCompleted';
2536+
'token'?: string;
2537+
'status'?: Status;
2538+
'result'?: any;
2539+
}
2540+
25052541
/**
25062542
* An IntentRequest is an object that represents a request made to a skill based on what the user wants to do.
25072543
* @interface
@@ -2524,6 +2560,7 @@ export interface LaunchRequest {
25242560
'requestId': string;
25252561
'timestamp': string;
25262562
'locale'?: string;
2563+
'task'?: Task;
25272564
}
25282565

25292566
/**
@@ -2539,6 +2576,18 @@ export interface SessionEndedRequest {
25392576
'error'?: SessionEndedError;
25402577
}
25412578

2579+
/**
2580+
* The request to resume a skill's session and tells the skill why it is resumed.
2581+
* @interface
2582+
*/
2583+
export interface SessionResumedRequest {
2584+
'type' : 'SessionResumedRequest';
2585+
'requestId': string;
2586+
'timestamp': string;
2587+
'locale'?: string;
2588+
'cause'?: Cause;
2589+
}
2590+
25422591
export namespace canfulfill {
25432592
/**
25442593
* An object that represents a request made to skill to query whether the skill can understand and fulfill the intent request with detected slots, before actually asking the skill to take action. Skill should be aware this is not to actually take action, skill should handle this request without causing side-effect, skill should not modify some state outside its scope or has an observable interaction with its calling functions or the outside world besides returning a value, such as playing sound,turning on/off lights, committing a transaction or a charge.
@@ -3502,6 +3551,19 @@ export namespace interfaces.connections {
35023551
}
35033552
}
35043553

3554+
export namespace interfaces.connections.V1 {
3555+
/**
3556+
* This is the directive that a skill can send as part of their response to a session based request to start a connection. A response will be returned to the skill when the connection is handled.
3557+
* @interface
3558+
*/
3559+
export interface StartConnectionDirective {
3560+
'type' : 'Connections.StartConnection';
3561+
'uri': string;
3562+
'input'?: { [key: string]: any; };
3563+
'token'?: string;
3564+
}
3565+
}
3566+
35053567
export namespace interfaces.connections.entities {
35063568
/**
35073569
* Postal Address
@@ -3913,6 +3975,18 @@ export namespace interfaces.system {
39133975
}
39143976
}
39153977

3978+
export namespace interfaces.tasks {
3979+
/**
3980+
* This is the directive that a skill can send as part of their response to a session based request. The response will contain the result of the task that the skill is launched for.
3981+
* @interface
3982+
*/
3983+
export interface CompleteTaskDirective {
3984+
'type' : 'Tasks.CompleteTask';
3985+
'status': Status;
3986+
'result'?: { [key: string]: any; };
3987+
}
3988+
}
3989+
39163990
export namespace interfaces.videoapp {
39173991
/**
39183992
*

ask-sdk-model/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ask-sdk-model",
3-
"version": "1.17.0",
3+
"version": "1.18.0",
44
"description": "Model package for Alexa Skills Kit SDK",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)