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 Oct 10, 2019
1 parent ffd5ef0 commit 987d1a2
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 2 deletions.
114 changes: 113 additions & 1 deletion ask-sdk-model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ export interface Task {
}

/**
* Represents the user registered to the device initiating the request.
* An object that describes the Amazon account for which the skill is enabled.
* @interface
*/
export interface User {
Expand Down Expand Up @@ -1659,6 +1659,14 @@ export namespace interfaces.viewport {
export type Keyboard = 'DIRECTION';
}

export namespace interfaces.viewport {
/**
* The expected use case of the device's viewport, encapsulating the available input mechanisms and user viewing distance.
* @enum
*/
export type Mode = 'AUTO' | 'HUB' | 'MOBILE' | 'PC' | 'TV';
}

export namespace interfaces.viewport {
/**
* The shape of the viewport.
Expand All @@ -1682,6 +1690,7 @@ export namespace interfaces.viewport {
*/
export interface ViewportState {
'experiences'?: Array<interfaces.viewport.Experience>;
'mode'?: interfaces.viewport.Mode;
'shape'?: interfaces.viewport.Shape;
'pixelWidth'?: number;
'pixelHeight'?: number;
Expand Down Expand Up @@ -1791,6 +1800,51 @@ export namespace services.directive {
}
}

export namespace services.endpointEnumeration {
/**
*
* @interface
*/
export interface EndpointCapability {
'interface'?: string;
'type'?: string;
'version'?: string;
}
}

export namespace services.endpointEnumeration {
/**
* Contains the list of endpoints.
* @interface
*/
export interface EndpointEnumerationResponse {
'endpoints'?: Array<services.endpointEnumeration.EndpointInfo>;
}
}

export namespace services.endpointEnumeration {
/**
* Contains the list of connected endpoints and their declared capabilities.
* @interface
*/
export interface EndpointInfo {
'endpointId'?: string;
'friendlyName'?: string;
'capabilities'?: Array<services.endpointEnumeration.EndpointCapability>;
}
}

export namespace services.endpointEnumeration {
/**
*
* @interface
*/
export interface Error {
'code'?: string;
'message'?: string;
}
}

export namespace services.gadgetController {
/**
* 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.
Expand Down Expand Up @@ -4582,6 +4636,50 @@ export namespace services.directive {
}
}

export namespace services.endpointEnumeration {

/**
*
*/
export class EndpointEnumerationServiceClient extends BaseServiceClient {

constructor(apiConfiguration : ApiConfiguration) {
super(apiConfiguration);
}

/**
*
*/
async getEndpoints() : Promise<services.endpointEnumeration.EndpointEnumerationResponse> {
const __operationId__ = 'getEndpoints';

const queryParams : Map<string, string> = new Map<string, string>();

const headerParams : Array<{key : string, value : string}> = [];
headerParams.push({key : 'Content-type', value : 'application/json'});

const pathParams : Map<string, string> = new Map<string, string>();

const authorizationValue = "Bearer " + this.apiConfiguration.authorizationValue;
headerParams.push({key : "Authorization", value : authorizationValue});

let path : string = "/v1/endpoints/";

const errorDefinitions : Map<number, string> = new Map<number, string>();
errorDefinitions.set(200, "Successfully retrieved the list of connected endpoints.");
errorDefinitions.set(400, "Bad request. Returned when a required parameter is not present or badly formatted.");
errorDefinitions.set(401, "Unauthenticated. Returned when the request is not authenticated.");
errorDefinitions.set(403, "Forbidden. Returned when the request is authenticated but does not have sufficient permission.");
errorDefinitions.set(500, "Server Error. Returned when the server encountered an error processing the request.");
errorDefinitions.set(503, "Service Unavailable. Returned when the server is not ready to handle the request.");
errorDefinitions.set(0, "Unexpected error");

return this.invoke("GET", this.apiConfiguration.apiEndpoint, path,
pathParams, queryParams, headerParams, null, errorDefinitions);
}
}
}

export namespace services.listManagement {

/**
Expand Down Expand Up @@ -5625,6 +5723,20 @@ export namespace services {
throw factoryError;
}
}
/*
* Gets an instance of { endpointEnumeration.EndpointEnumerationService }.
* @returns { endpointEnumeration.EndpointEnumerationService }
*/
getEndpointEnumerationServiceClient() : endpointEnumeration.EndpointEnumerationServiceClient {
try {
return new endpointEnumeration.EndpointEnumerationServiceClient(this.apiConfiguration);
} catch(e) {
const factoryError = new Error(`ServiceClientFactory Error while initializing EndpointEnumerationServiceClient: ${e.message}`);
factoryError['name'] = 'ServiceClientFactoryError';

throw factoryError;
}
}
/*
* Gets an instance of { listManagement.ListManagementService }.
* @returns { listManagement.ListManagementService }
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.19.0",
"version": "1.20.0",
"description": "Model package for Alexa Skills Kit SDK",
"main": "index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 987d1a2

Please sign in to comment.