Skip to content

Commit 987d1a2

Browse files
committed
chore: release model
1 parent ffd5ef0 commit 987d1a2

File tree

2 files changed

+114
-2
lines changed

2 files changed

+114
-2
lines changed

ask-sdk-model/index.ts

Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ export interface Task {
557557
}
558558

559559
/**
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.
561561
* @interface
562562
*/
563563
export interface User {
@@ -1659,6 +1659,14 @@ export namespace interfaces.viewport {
16591659
export type Keyboard = 'DIRECTION';
16601660
}
16611661

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+
16621670
export namespace interfaces.viewport {
16631671
/**
16641672
* The shape of the viewport.
@@ -1682,6 +1690,7 @@ export namespace interfaces.viewport {
16821690
*/
16831691
export interface ViewportState {
16841692
'experiences'?: Array<interfaces.viewport.Experience>;
1693+
'mode'?: interfaces.viewport.Mode;
16851694
'shape'?: interfaces.viewport.Shape;
16861695
'pixelWidth'?: number;
16871696
'pixelHeight'?: number;
@@ -1791,6 +1800,51 @@ export namespace services.directive {
17911800
}
17921801
}
17931802

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+
17941848
export namespace services.gadgetController {
17951849
/**
17961850
* 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 {
45824636
}
45834637
}
45844638

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+
45854683
export namespace services.listManagement {
45864684

45874685
/**
@@ -5625,6 +5723,20 @@ export namespace services {
56255723
throw factoryError;
56265724
}
56275725
}
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+
}
56285740
/*
56295741
* Gets an instance of { listManagement.ListManagementService }.
56305742
* @returns { listManagement.ListManagementService }

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.19.0",
3+
"version": "1.20.0",
44
"description": "Model package for Alexa Skills Kit SDK",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)