@@ -557,7 +557,7 @@ export interface Task {
557
557
}
558
558
559
559
/**
560
- * Represents the user registered to the device initiating the request .
560
+ * An object that describes the Amazon account for which the skill is enabled .
561
561
* @interface
562
562
*/
563
563
export interface User {
@@ -1659,6 +1659,14 @@ export namespace interfaces.viewport {
1659
1659
export type Keyboard = 'DIRECTION' ;
1660
1660
}
1661
1661
1662
+ export namespace interfaces . viewport {
1663
+ /**
1664
+ * The expected use case of the device's viewport, encapsulating the available input mechanisms and user viewing distance.
1665
+ * @enum
1666
+ */
1667
+ export type Mode = 'AUTO' | 'HUB' | 'MOBILE' | 'PC' | 'TV' ;
1668
+ }
1669
+
1662
1670
export namespace interfaces . viewport {
1663
1671
/**
1664
1672
* The shape of the viewport.
@@ -1682,6 +1690,7 @@ export namespace interfaces.viewport {
1682
1690
*/
1683
1691
export interface ViewportState {
1684
1692
'experiences' ?: Array < interfaces . viewport . Experience > ;
1693
+ 'mode' ?: interfaces . viewport . Mode ;
1685
1694
'shape' ?: interfaces . viewport . Shape ;
1686
1695
'pixelWidth' ?: number ;
1687
1696
'pixelHeight' ?: number ;
@@ -1791,6 +1800,51 @@ export namespace services.directive {
1791
1800
}
1792
1801
}
1793
1802
1803
+ export namespace services . endpointEnumeration {
1804
+ /**
1805
+ *
1806
+ * @interface
1807
+ */
1808
+ export interface EndpointCapability {
1809
+ 'interface' ?: string ;
1810
+ 'type' ?: string ;
1811
+ 'version' ?: string ;
1812
+ }
1813
+ }
1814
+
1815
+ export namespace services . endpointEnumeration {
1816
+ /**
1817
+ * Contains the list of endpoints.
1818
+ * @interface
1819
+ */
1820
+ export interface EndpointEnumerationResponse {
1821
+ 'endpoints' ?: Array < services . endpointEnumeration . EndpointInfo > ;
1822
+ }
1823
+ }
1824
+
1825
+ export namespace services . endpointEnumeration {
1826
+ /**
1827
+ * Contains the list of connected endpoints and their declared capabilities.
1828
+ * @interface
1829
+ */
1830
+ export interface EndpointInfo {
1831
+ 'endpointId' ?: string ;
1832
+ 'friendlyName' ?: string ;
1833
+ 'capabilities' ?: Array < services . endpointEnumeration . EndpointCapability > ;
1834
+ }
1835
+ }
1836
+
1837
+ export namespace services . endpointEnumeration {
1838
+ /**
1839
+ *
1840
+ * @interface
1841
+ */
1842
+ export interface Error {
1843
+ 'code' ?: string ;
1844
+ 'message' ?: string ;
1845
+ }
1846
+ }
1847
+
1794
1848
export namespace services . gadgetController {
1795
1849
/**
1796
1850
* The action that triggers the animation. Possible values are as follows * `buttonDown` - Play the animation when the button is pressed. * `buttonUp` - Play the animation when the button is released. * `none` - Play the animation as soon as it arrives.
@@ -4582,6 +4636,50 @@ export namespace services.directive {
4582
4636
}
4583
4637
}
4584
4638
4639
+ export namespace services . endpointEnumeration {
4640
+
4641
+ /**
4642
+ *
4643
+ */
4644
+ export class EndpointEnumerationServiceClient extends BaseServiceClient {
4645
+
4646
+ constructor ( apiConfiguration : ApiConfiguration ) {
4647
+ super ( apiConfiguration ) ;
4648
+ }
4649
+
4650
+ /**
4651
+ *
4652
+ */
4653
+ async getEndpoints ( ) : Promise < services . endpointEnumeration . EndpointEnumerationResponse > {
4654
+ const __operationId__ = 'getEndpoints' ;
4655
+
4656
+ const queryParams : Map < string , string > = new Map < string , string > ( ) ;
4657
+
4658
+ const headerParams : Array < { key : string , value : string } > = [ ] ;
4659
+ headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ;
4660
+
4661
+ const pathParams : Map < string , string > = new Map < string , string > ( ) ;
4662
+
4663
+ const authorizationValue = "Bearer " + this . apiConfiguration . authorizationValue ;
4664
+ headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ;
4665
+
4666
+ let path : string = "/v1/endpoints/" ;
4667
+
4668
+ const errorDefinitions : Map < number , string > = new Map < number , string > ( ) ;
4669
+ errorDefinitions . set ( 200 , "Successfully retrieved the list of connected endpoints." ) ;
4670
+ errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present or badly formatted." ) ;
4671
+ errorDefinitions . set ( 401 , "Unauthenticated. Returned when the request is not authenticated." ) ;
4672
+ errorDefinitions . set ( 403 , "Forbidden. Returned when the request is authenticated but does not have sufficient permission." ) ;
4673
+ errorDefinitions . set ( 500 , "Server Error. Returned when the server encountered an error processing the request." ) ;
4674
+ errorDefinitions . set ( 503 , "Service Unavailable. Returned when the server is not ready to handle the request." ) ;
4675
+ errorDefinitions . set ( 0 , "Unexpected error" ) ;
4676
+
4677
+ return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , path ,
4678
+ pathParams , queryParams , headerParams , null , errorDefinitions ) ;
4679
+ }
4680
+ }
4681
+ }
4682
+
4585
4683
export namespace services . listManagement {
4586
4684
4587
4685
/**
@@ -5625,6 +5723,20 @@ export namespace services {
5625
5723
throw factoryError ;
5626
5724
}
5627
5725
}
5726
+ /*
5727
+ * Gets an instance of { endpointEnumeration.EndpointEnumerationService }.
5728
+ * @returns { endpointEnumeration.EndpointEnumerationService }
5729
+ */
5730
+ getEndpointEnumerationServiceClient ( ) : endpointEnumeration . EndpointEnumerationServiceClient {
5731
+ try {
5732
+ return new endpointEnumeration . EndpointEnumerationServiceClient ( this . apiConfiguration ) ;
5733
+ } catch ( e ) {
5734
+ const factoryError = new Error ( `ServiceClientFactory Error while initializing EndpointEnumerationServiceClient: ${ e . message } ` ) ;
5735
+ factoryError [ 'name' ] = 'ServiceClientFactoryError' ;
5736
+
5737
+ throw factoryError ;
5738
+ }
5739
+ }
5628
5740
/*
5629
5741
* Gets an instance of { listManagement.ListManagementService }.
5630
5742
* @returns { listManagement.ListManagementService }
0 commit comments