@@ -355,6 +355,12 @@ export interface Application {
355
355
'applicationId' : string ;
356
356
}
357
357
358
+ /**
359
+ * Describes the type of the Cause.
360
+ * @interface
361
+ */
362
+ export type Cause = ConnectionCompleted ;
363
+
358
364
/**
359
365
*
360
366
* @interface
@@ -387,7 +393,7 @@ export type DialogState = 'STARTED' | 'IN_PROGRESS' | 'COMPLETED';
387
393
*
388
394
* @interface
389
395
*/
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 ;
391
397
392
398
/**
393
399
* An object that represents what the user wants.
@@ -424,7 +430,7 @@ export interface Permissions {
424
430
* 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.
425
431
* @interface
426
432
*/
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 ;
428
434
429
435
/**
430
436
* Request wrapper for all requests sent to your Skill.
@@ -519,6 +525,15 @@ export interface Slot {
519
525
*/
520
526
export type SlotConfirmationStatus = 'NONE' | 'DENIED' | 'CONFIRMED' ;
521
527
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
+
522
537
/**
523
538
* 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.
524
539
* @interface
@@ -531,6 +546,16 @@ export interface SupportedInterfaces {
531
546
'Geolocation' ?: interfaces . geolocation . GeolocationInterface ;
532
547
}
533
548
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
+
534
559
/**
535
560
* Represents the user registered to the device initiating the request.
536
561
* @interface
@@ -2502,6 +2527,17 @@ export namespace ui {
2502
2527
}
2503
2528
}
2504
2529
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
+
2505
2541
/**
2506
2542
* An IntentRequest is an object that represents a request made to a skill based on what the user wants to do.
2507
2543
* @interface
@@ -2524,6 +2560,7 @@ export interface LaunchRequest {
2524
2560
'requestId' : string ;
2525
2561
'timestamp' : string ;
2526
2562
'locale' ?: string ;
2563
+ 'task' ?: Task ;
2527
2564
}
2528
2565
2529
2566
/**
@@ -2539,6 +2576,18 @@ export interface SessionEndedRequest {
2539
2576
'error' ?: SessionEndedError ;
2540
2577
}
2541
2578
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
+
2542
2591
export namespace canfulfill {
2543
2592
/**
2544
2593
* 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 {
3502
3551
}
3503
3552
}
3504
3553
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
+
3505
3567
export namespace interfaces . connections . entities {
3506
3568
/**
3507
3569
* Postal Address
@@ -3913,6 +3975,18 @@ export namespace interfaces.system {
3913
3975
}
3914
3976
}
3915
3977
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
+
3916
3990
export namespace interfaces . videoapp {
3917
3991
/**
3918
3992
*
0 commit comments