import * as runtime from 'ask-sdk-model-runtime' ; export { runtime } ; import ApiConfiguration = runtime . ApiConfiguration ; import ApiResponse = runtime . ApiResponse ; import AuthenticationConfiguration = runtime . AuthenticationConfiguration ; import BaseServiceClient = runtime . BaseServiceClient ; import LwaServiceClient = runtime . LwaServiceClient ; import createUserAgent = runtime . createUserAgent ; export namespace v0 { interface export interface BadRequestError { /**
         * Human readable description of error.
         */ 'message' ? : string ; /**
         * An array of violation messages.
         */ 'violations' ? : Array < v0 . Error > ; } } export namespace v0 { interface export interface Error { /**
         * Error code that maps to an error message. Developers with different locales should be able to lookup the error description based on this code.
         */ 'code' ? : string ; /**
         * Readable description of error.
         */ 'message' : string ; } } export namespace v0 . catalog { interface export interface CatalogDetails { /**
         * Unique identifier of the added catalog object.
         */ 'id' ? : string ; /**
         * Title of the catalog.
         */ 'title' ? : string ; 'type' ? : v0 . catalog . CatalogType ; 'usage' ? : v0 . catalog . CatalogUsage ; /**
         * The date time when the catalog was last updated.
         */ 'lastUpdatedDate' ? : string ; /**
         * The date time when the catalog was created.
         */ 'createdDate' ? : string ; /**
         * The list of skill Ids associated with the catalog.
         */ 'associatedSkillIds' ? : Array < string > ; } } export namespace v0 . catalog { interface export interface CatalogSummary { /**
         * Unique identifier of the added catalog object.
         */ 'id' ? : string ; /**
         * Title of the catalog.
         */ 'title' ? : string ; 'type' ? : v0 . catalog . CatalogType ; 'usage' ? : v0 . catalog . CatalogUsage ; /**
         * The date time when the catalog was last updated.
         */ 'lastUpdatedDate' ? : string ; /**
         * The date time when the catalog was created.
         */ 'createdDate' ? : string ; /**
         * The list of skill Ids associated with the catalog.
         */ 'associatedSkillIds' ? : Array < string > ; } } export namespace v0 . catalog { enum export type CatalogType = 'AMAZON.BroadcastChannel' | 'AMAZON.Genre' | 'AMAZON.MusicAlbum' | 'AMAZON.MusicGroup' | 'AMAZON.MusicPlaylist' | 'AMAZON.MusicRecording' | 'AMAZON.TerrestrialRadioChannel' | 'AMAZON.AudioRecording' ; } export namespace v0 . catalog { enum export type CatalogUsage = 'AlexaMusic.Catalog.BroadcastChannel' | 'AlexaMusic.Catalog.Genre' | 'AlexaMusic.Catalog.MusicAlbum' | 'AlexaMusic.Catalog.MusicGroup' | 'AlexaMusic.Catalog.MusicPlaylist' | 'AlexaMusic.Catalog.MusicRecording' | 'AlexaMusic.Catalog.TerrestrialRadioChannel' | 'AlexaTest.Catalog.AudioRecording' ; } export namespace v0 . catalog { interface export interface CreateCatalogRequest { /**
         * Title of the catalog.
         */ 'title' : string ; 'type' : v0 . catalog . CatalogType ; 'usage' : v0 . catalog . CatalogUsage ; /**
         * ID of the vendor owning the catalog.
         */ 'vendorId' : string ; } } export namespace v0 . catalog { interface export interface ListCatalogsResponse { '_links' ? : v1 . Links ; /**
         * List of catalog summaries.
         */ 'catalogs' ? : Array < v0 . catalog . CatalogSummary > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; } } export namespace v0 . catalog . upload { interface export interface CompleteUploadRequest { /**
         * List of (eTag, part number) pairs for each part of the file uploaded.
         */ 'partETags' ? : Array < v0 . catalog . upload . PreSignedUrlItem > ; } } export namespace v0 . catalog . upload { interface export interface ContentUploadFileSummary { /**
         * If the file is available for download, presigned download URL can be used to download the file.
         */ 'presignedDownloadUrl' ? : string ; 'status' ? : v0 . catalog . upload . FileUploadStatus ; } } export namespace v0 . catalog . upload { interface export interface ContentUploadSummary { /**
         * Unique identifier of the upload.
         */ 'id' ? : string ; /**
         * Provides a unique identifier of the catalog.
         */ 'catalogId' ? : string ; 'status' ? : v0 . catalog . upload . UploadStatus ; 'createdDate' ? : string ; 'lastUpdatedDate' ? : string ; } } export namespace v0 . catalog . upload { interface export interface CreateContentUploadRequest { /**
         * Provides the number of parts the file will be split into. An equal number of presigned upload urls are generated in response to facilitate each part's upload.
         */ 'numberOfUploadParts' ? : number ; } } export namespace v0 . catalog . upload { enum export type FileUploadStatus = 'PENDING' | 'AVAILABLE' | 'PURGED' | 'UNAVAILABLE' ; } export namespace v0 . catalog . upload { enum export type IngestionStatus = 'PENDING' | 'IN_PROGRESS' | 'FAILED' | 'SUCCEEDED' | 'CANCELLED' ; } export namespace v0 . catalog . upload { enum export type IngestionStepName = 'UPLOAD' | 'SCHEMA_VALIDATION' ; } export namespace v0 . catalog . upload { interface export interface ListUploadsResponse { '_links' ? : v1 . Links ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; /**
         * List of upload summaries.
         */ 'uploads' ? : Array < v0 . catalog . upload . ContentUploadSummary > ; } } export namespace v0 . catalog . upload { interface export interface PreSignedUrlItem { 'eTag' : string ; 'partNumber' : number ; } } export namespace v0 . catalog . upload { interface export interface PresignedUploadPart { 'url' ? : string ; 'partNumber' ? : number ; } } export namespace v0 . catalog . upload { interface export interface UploadIngestionStep { 'name' : v0 . catalog . upload . IngestionStepName ; 'status' : v0 . catalog . upload . IngestionStatus ; /**
         * Represents the url for the file containing logs of ingestion step.
         */ 'logUrl' ? : string ; /**
         * This array will contain the errors occurred during the execution of step. Will be empty, if execution succeeded.
         */ 'errors' : Array < v0 . Error > ; } } export namespace v0 . catalog . upload { enum export type UploadStatus = 'PENDING' | 'PROCESSING' | 'FAILED' | 'SUCCEEDED' ; } export namespace v0 . developmentEvents . subscriber { interface export interface CreateSubscriberRequest { /**
         * Name of the subscriber.
         */ 'name' ? : string ; /**
         * The Vendor ID.
         */ 'vendorId' ? : string ; 'endpoint' ? : v0 . developmentEvents . subscriber . Endpoint ; } } export namespace v0 . developmentEvents . subscriber { interface export interface Endpoint { /**
         * Uri of the endpoint that receives the notification.
         */ 'uri' ? : string ; 'authorization' ? : v0 . developmentEvents . subscriber . EndpointAuthorization ; } } export namespace v0 . developmentEvents . subscriber { interface export type EndpointAuthorization = v0 . developmentEvents . subscriber . EndpointAwsAuthorization ; } export namespace v0 . developmentEvents . subscriber { enum export type EndpointAuthorizationType = 'AWS_IAM' ; } export namespace v0 . developmentEvents . subscriber { interface export interface ListSubscribersResponse { '_links' ? : v1 . Links ; 'nextToken' ? : string ; /**
         * List containing subscriber summary.
         */ 'subscribers' ? : Array < v0 . developmentEvents . subscriber . SubscriberSummary > ; } } export namespace v0 . developmentEvents . subscriber { interface export interface SubscriberInfo { /**
         * Unique identifier of the subscriber resource.
         */ 'subscriberId' ? : string ; /**
         * Name of the subscriber.
         */ 'name' ? : string ; 'endpoint' ? : v0 . developmentEvents . subscriber . Endpoint ; } } export namespace v0 . developmentEvents . subscriber { enum export type SubscriberStatus = 'ACTIVE' | 'INACTIVE' ; } export namespace v0 . developmentEvents . subscriber { interface export interface SubscriberSummary { /**
         * Unique identifier of the subscriber resource.
         */ 'subscriberId' ? : string ; /**
         * Name of the subscriber.
         */ 'name' ? : string ; 'status' ? : v0 . developmentEvents . subscriber . SubscriberStatus ; /**
         * Client Id of the subscriber resource.
         */ 'clientId' ? : string ; 'endpoint' ? : v0 . developmentEvents . subscriber . Endpoint ; } } export namespace v0 . developmentEvents . subscriber { interface export interface UpdateSubscriberRequest { /**
         * Name of the subscriber.
         */ 'name' ? : string ; 'endpoint' ? : v0 . developmentEvents . subscriber . Endpoint ; } } export namespace v0 . developmentEvents . subscription { interface export interface CreateSubscriptionRequest { /**
         * Name of the subscription.
         */ 'name' : string ; /**
         * The list of events that the subscriber should be notified for.
         */ 'events' : Array < v0 . developmentEvents . subscription . Event > ; /**
         * The vendorId of the event publisher.
         */ 'vendorId' : string ; /**
         * The id of the subscriber that would receive the events.
         */ 'subscriberId' : string ; } } export namespace v0 . developmentEvents . subscription { enum export type Event = 'AlexaDevelopmentEvent.ManifestUpdate' | 'AlexaDevelopmentEvent.SkillPublish' | 'AlexaDevelopmentEvent.SkillCertification' | 'AlexaDevelopmentEvent.InteractionModelUpdate' | 'AlexaDevelopmentEvent.All' | 'AlexaCustomerFeedbackEvent.SkillReviewPublish' ; } export namespace v0 . developmentEvents . subscription { interface export interface ListSubscriptionsResponse { '_links' ? : v1 . Links ; 'nextToken' ? : string ; /**
         * List of subscription summaries.
         */ 'subscriptions' ? : Array < v0 . developmentEvents . subscription . SubscriptionSummary > ; } } export namespace v0 . developmentEvents . subscription { interface export interface SubscriptionInfo { /**
         * Name of the subscription.
         */ 'name' ? : string ; /**
         * Unique identifier of the subscription resource.
         */ 'subscriptionId' ? : string ; /**
         * Subscriber Id of the event-receiver.
         */ 'subscriberId' ? : string ; /**
         * Vendor Id of the event-publisher.
         */ 'vendorId' ? : string ; /**
         * The list of events that the subscriber should be notified for.
         */ 'events' ? : Array < v0 . developmentEvents . subscription . Event > ; } } export namespace v0 . developmentEvents . subscription { interface export interface SubscriptionSummary { /**
         * Name of the subscription.
         */ 'name' ? : string ; /**
         * Unique identifier of the subscription resource.
         */ 'subscriptionId' ? : string ; /**
         * Subscriber Id of the event-reciever.
         */ 'subscriberId' ? : string ; /**
         * VendorId of the event-publisher.
         */ 'vendorId' ? : string ; /**
         * The list of events that the subscriber should be notified for.
         */ 'events' ? : Array < v0 . developmentEvents . subscription . Event > ; } } export namespace v0 . developmentEvents . subscription { interface export interface UpdateSubscriptionRequest { /**
         * Name of the subscription.
         */ 'name' : string ; /**
         * The list of events that the subscriber should be notified for.
         */ 'events' : Array < v0 . developmentEvents . subscription . Event > ; } } export namespace v0 . eventSchema { interface export interface ActorAttributes { /**
         * Identifies an Amazon Customer who submitted a request corresponding to the generated event.
         */ 'customerId' ? : string ; } } export namespace v0 . eventSchema { interface export type BaseSchema = v0 . eventSchema . AlexaDevelopmentEvent . InteractionModelUpdate | v0 . eventSchema . AlexaCustomerFeedbackEvent . SkillReviewPublish | v0 . eventSchema . AlexaDevelopmentEvent . SkillPublish | v0 . eventSchema . AlexaDevelopmentEvent . ManifestUpdate | v0 . eventSchema . AlexaDevelopmentEvent . SkillCertification ; } export namespace v0 . eventSchema { interface export interface InteractionModelEventAttributes { 'status' ? : v0 . eventSchema . RequestStatus ; 'actor' ? : v0 . eventSchema . ActorAttributes ; 'interactionModel' ? : v0 . eventSchema . InteractionModelAttributes ; 'subscription' ? : v0 . eventSchema . SubscriptionAttributes ; } } export namespace v0 . eventSchema { enum export type RequestStatus = 'SUCCEEDED' | 'FAILED' ; } export namespace v0 . eventSchema { interface export interface SkillAttributes { /**
         * Unique identifier of an Alexa skill.
         */ 'skillId' ? : string ; /**
         * Unique identifier of vendor account to which this skill belongs.
         */ 'vendorId' ? : string ; } } export namespace v0 . eventSchema { interface export interface SkillEventAttributes { 'status' ? : v0 . eventSchema . RequestStatus ; 'actor' ? : v0 . eventSchema . ActorAttributes ; 'skill' ? : v0 . eventSchema . SkillAttributes ; 'subscription' ? : v0 . eventSchema . SubscriptionAttributes ; } } export namespace v0 . eventSchema { interface export interface SkillReviewAttributes { /**
         * Unique review id associated with a customer review for a skill.
         */ 'reviewId' ? : string ; /**
         * Link to the customer review on Amazon retail website.
         */ 'url' ? : string ; /**
         * StarRating provided by the customer in the review. It is always a natural number from 1 to 5 (inclusive of 1 and 5).
         */ 'starRating' ? : string ; } } export namespace v0 . eventSchema { interface export interface SkillReviewEventAttributes { 'skill' ? : v0 . eventSchema . SkillAttributes ; 'subscription' ? : v0 . eventSchema . SubscriptionAttributes ; 'review' ? : v0 . eventSchema . SkillReviewAttributes ; } } export namespace v0 . eventSchema { interface export interface SubscriptionAttributes { /**
         * Unique subscription id that triggered the development notification event.
         */ 'subscriptionId' ? : string ; } } export namespace v1 { interface export interface BadRequestError { /**
         * Human readable description of error.
         */ 'message' ? : string ; /**
         * An array of violation messages.
         */ 'violations' ? : Array < v1 . Error > ; } } export namespace v1 { interface export type Error = v1 . skill . StandardizedError ; } export namespace v1 { interface export interface Link { 'href' ? : string ; } } export namespace v1 { interface export interface Links { 'self' ? : v1 . Link ; 'next' ? : v1 . Link ; } } export namespace v1 { enum export type StageType = 'development' | 'live' ; } export namespace v1 { enum export type StageV2Type = 'live' | 'certified' | 'development' ; } export namespace v1 . auditLogs { interface export interface AuditLog { /**
         * UUID that identifies a specific request.
         */ 'xAmznRequestId' ? : string ; /**
         * Date-Time when the request was made.
         */ 'timestamp' ? : string ; 'client' ? : v1 . auditLogs . Client ; 'operation' ? : v1 . auditLogs . Operation ; /**
         * Contains information about the resources affected in this request.
         */ 'resources' ? : Array < v1 . auditLogs . Resource > ; 'requester' ? : v1 . auditLogs . Requester ; /**
         * HTTP Status Code returned by this request.
         */ 'httpResponseCode' ? : number ; } } export namespace v1 . auditLogs { interface export interface AuditLogsRequest { /**
         * Vendor Id. See developer.amazon.com/mycid.html.
         */ 'vendorId' : string ; 'requestFilters' ? : v1 . auditLogs . RequestFilters ; 'sortDirection' ? : v1 . auditLogs . SortDirection ; 'sortField' ? : v1 . auditLogs . SortField ; 'paginationContext' ? : v1 . auditLogs . RequestPaginationContext ; } } export namespace v1 . auditLogs { interface export interface AuditLogsResponse { 'paginationContext' ? : v1 . auditLogs . ResponsePaginationContext ; '_links' ? : v1 . Links ; /**
         * List of audit logs for the vendor.
         */ 'auditLogs' ? : Array < v1 . auditLogs . AuditLog > ; } } export namespace v1 . auditLogs { interface export interface Client { 'id' ? : string ; 'name' ? : string ; } } export namespace v1 . auditLogs { interface export interface ClientFilter { 'id' ? : string ; } } export namespace v1 . auditLogs { interface export interface Operation { 'name' ? : string ; 'version' ? : string ; } } export namespace v1 . auditLogs { interface export interface OperationFilter { 'name' ? : string ; 'version' ? : string ; } } export namespace v1 . auditLogs { interface export interface RequestFilters { /**
         * List of Client IDs for filtering.
         */ 'clients' ? : Array < v1 . auditLogs . ClientFilter > ; /**
         * Filters for a list of operation names and versions.
         */ 'operations' ? : Array < v1 . auditLogs . OperationFilter > ; /**
         * Filters for a list of resources and/or their types. See documentation for allowed types.
         */ 'resources' ? : Array < v1 . auditLogs . ResourceFilter > ; 'requesters' ? : Array < v1 . auditLogs . RequesterFilter > ; /**
         * Sets the start time for this search. Any audit logs with timestamps after this time (inclusive) will be included in the response.
         */ 'startTime' ? : string ; /**
         * Sets the end time for this search. Any audit logs with timestamps before this time (exclusive) will be included in the result.
         */ 'endTime' ? : string ; /**
         * Filters for HTTP response codes. For example, '200' or '503'
         */ 'httpResponseCodes' ? : Array < string > ; } } export namespace v1 . auditLogs { interface export interface RequestPaginationContext { /**
         * When the response to this API call is truncated, the response includes the nextToken element. The value of nextToken can be used in the next request as the continuation-token to list the next set of objects. The continuation token is an opaque value that this API understands. Token has expiry of 1 hour.
         */ 'nextToken' ? : string ; /**
         * Sets the maximum number of results returned in the response body. If you want to retrieve more or less than the default of 50 results, you can add this parameter to your request. maxResults can exceed the upper limit of 250 but we will not return more items than that. The response might contain fewer results than maxResults for purpose of keeping SLA or because there are not enough items, but it will never contain more.
         */ 'maxResults' ? : number ; } } export namespace v1 . auditLogs { interface export interface Requester { /**
         * LWA User ID. https://developer.amazon.com/docs/login-with-amazon/obtain-customer-profile.html
         */ 'userId' ? : string ; } } export namespace v1 . auditLogs { interface export interface RequesterFilter { /**
         * LoginWithAmazon User ID.
         */ 'userId' ? : string ; } } export namespace v1 . auditLogs { interface export interface Resource { 'id' ? : string ; 'type' ? : string ; } } export namespace v1 . auditLogs { interface export interface ResourceFilter { 'id' ? : string ; 'type' ? : v1 . auditLogs . ResourceTypeEnum ; } } export namespace v1 . auditLogs { enum export type ResourceTypeEnum = 'Skill' | 'SkillCatalog' | 'InSkillProduct' | 'Import' | 'Export' ; } export namespace v1 . auditLogs { interface export interface ResponsePaginationContext { /**
         * This token can be used to load the next page of the result.
         */ 'nextToken' ? : string ; } } export namespace v1 . auditLogs { enum export type SortDirection = 'ASC' | 'DESC' ; } export namespace v1 . auditLogs { enum export type SortField = 'timestamp' | 'operation' | 'resource.id' | 'resource.type' | 'requester.userId' | 'client.id' | 'httpResponseCode' ; } export namespace v1 . catalog { interface export interface CreateContentUploadUrlRequest { /**
         * Provides the number of parts the file will be split into. An equal number of presigned upload urls are generated in response to facilitate each part's upload.
         */ 'numberOfUploadParts' : number ; } } export namespace v1 . catalog { interface export interface CreateContentUploadUrlResponse { /**
         * Unique identifier for collection of generated urls.
         */ 'urlId' : string ; /**
         * Ordered list of presigned upload parts to perform a partitioned (multipart) file upload
         */ 'presignedUploadParts' ? : Array < v1 . catalog . PresignedUploadPartItems > ; } } export namespace v1 . catalog { interface export interface PresignedUploadPartItems { 'url' : string ; 'partNumber' : number ; 'expiresAt' : string ; } } export namespace v1 . catalog . upload { interface export type CatalogUploadBase = v1 . catalog . upload . Location | v1 . catalog . upload . PreSignedUrl ; } export namespace v1 . catalog . upload { interface export interface ContentUploadFileSummary { /**
         * If the file is available for download, downloadUrl can be used to download the file.
         */ 'downloadUrl' : string ; 'expiresAt' : string ; 'status' : v1 . catalog . upload . FileUploadStatus ; } } export namespace v1 . catalog . upload { enum export type FileUploadStatus = 'PENDING' | 'AVAILABLE' | 'PURGED' | 'UNAVAILABLE' ; } export namespace v1 . catalog . upload { interface export interface GetContentUploadResponse { /**
         * Unique identifier of the upload
         */ 'id' : string ; /**
         * Unique identifier of the added catalog object
         */ 'catalogId' : string ; 'status' : v1 . catalog . upload . UploadStatus ; 'createdDate' : string ; 'lastUpdatedDate' : string ; 'file' : v1 . catalog . upload . ContentUploadFileSummary ; /**
         * List of different steps performed on the upload.
         */ 'ingestionSteps' : Array < v1 . catalog . upload . UploadIngestionStep > ; } } export namespace v1 . catalog . upload { enum export type IngestionStatus = 'PENDING' | 'IN_PROGRESS' | 'FAILED' | 'SUCCEEDED' | 'CANCELLED' ; } export namespace v1 . catalog . upload { enum export type IngestionStepName = 'UPLOAD' | 'SCHEMA_VALIDATION' ; } export namespace v1 . catalog . upload { interface export interface PreSignedUrlItem { 'eTag' ? : string ; 'partNumber' ? : number ; } } export namespace v1 . catalog . upload { interface export interface UploadIngestionStep { 'name' : v1 . catalog . upload . IngestionStepName ; 'status' : v1 . catalog . upload . IngestionStatus ; /**
         * Url for the file containing logs of ingestion step.
         */ 'logUrl' ? : string ; /**
         * This array will contain the violations occurred during the execution of step. Will be empty, if execution succeeded.
         */ 'violations' : Array < v1 . Error > ; } } export namespace v1 . catalog . upload { enum export type UploadStatus = 'PENDING' | 'IN_PROGRESS' | 'FAILED' | 'SUCCEEDED' ; } export namespace v1 . isp { interface export interface AssociatedSkillResponse { /**
         * List of skill IDs that correspond to the skills associated with the in-skill product. The associations are stage specific. A live association is created through successful skill certification.
         */ 'associatedSkillIds' ? : Array < string > ; '_links' ? : v1 . Links ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; } } export namespace v1 . isp { enum export type Currency = 'USD' | 'GBP' | 'EUR' | 'JPY' ; } export namespace v1 . isp { interface export interface CustomProductPrompts { /**
         * Description of in-skill product heard before customer is prompted for purchase.
         */ 'purchasePromptDescription' ? : string ; /**
         * A description of the product that displays on the skill card in the Alexa app.
         */ 'boughtCardDescription' ? : string ; } } export namespace v1 . isp { enum export type DistributionCountries = 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'HR' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' ; } export namespace v1 . isp { enum export type EditableState = 'EDITABLE' | 'NOT_EDITABLE' ; } export namespace v1 . isp { interface export interface InSkillProductDefinition { /**
         * Version of in-skill product definition.
         */ 'version' ? : string ; 'type' ? : v1 . isp . ProductType ; /**
         * Developer selected in-skill product name. This is for developer reference only, it can be used to filter query results to identify a matching in-skill product.
         */ 'referenceName' ? : string ; 'purchasableState' ? : v1 . isp . PurchasableState ; 'promotableState' ? : v1 . isp . PromotableState ; 'subscriptionInformation' ? : v1 . isp . SubscriptionInformation ; 'publishingInformation' ? : v1 . isp . PublishingInformation ; 'privacyAndCompliance' ? : v1 . isp . PrivacyAndCompliance ; /**
         * Special instructions provided by the developer to test the in-skill product.
         */ 'testingInstructions' ? : string ; } } export namespace v1 . isp { interface export interface InSkillProductDefinitionResponse { 'inSkillProductDefinition' ? : v1 . isp . InSkillProductDefinition ; } } export namespace v1 . isp { interface export interface InSkillProductSummary { 'type' ? : v1 . isp . ProductType ; /**
         * primary identifier of in-skill product.
         */ 'productId' ? : string ; /**
         * Developer selected in-skill product name. This is for developer reference only, it can be used to filter query results to identify a matching in-skill product.
         */ 'referenceName' ? : string ; /**
         * Date of last update.
         */ 'lastUpdated' ? : string ; 'nameByLocale' ? : { [ key ] : string ; } ; 'status' ? : v1 . isp . Status ; 'stage' ? : v1 . StageType ; 'editableState' ? : v1 . isp . EditableState ; 'purchasableState' ? : v1 . isp . PurchasableState ; 'promotableState' ? : v1 . isp . PromotableState ; '_links' ? : v1 . isp . IspSummaryLinks ; /**
         * In-skill product pricing information.
         */ 'pricing' ? : { [ key ] : v1 . isp . SummaryMarketplacePricing ; } ; } } export namespace v1 . isp { interface export interface InSkillProductSummaryResponse { 'inSkillProductSummary' ? : v1 . isp . InSkillProductSummary ; } } export namespace v1 . isp { interface export interface IspSummaryLinks { 'self' ? : v1 . Link ; } } export namespace v1 . isp { interface export interface ListInSkillProduct { '_links' ? : v1 . Links ; /**
         * Information for each in-skill product.
         */ 'inSkillProducts' ? : Array < v1 . isp . InSkillProductSummary > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; } } export namespace v1 . isp { interface export interface ListInSkillProductResponse { 'inSkillProductSummaryList' ? : v1 . isp . ListInSkillProduct ; } } export namespace v1 . isp { interface export interface LocalizedPrivacyAndCompliance { /**
         * Link to the privacy policy that applies to this in-skill product.
         */ 'privacyPolicyUrl' ? : string ; } } export namespace v1 . isp { interface export interface LocalizedPublishingInformation { /**
         * Name of the in-skill product that is heard by customers and displayed in the Alexa app.
         */ 'name' ? : string ; /**
         * Uri for the small icon image of the in-skill product.
         */ 'smallIconUri' ? : string ; /**
         * Uri for the large icon image of the in-skill product.
         */ 'largeIconUri' ? : string ; /**
         * Short description of the in-skill product that displays on the in-skill product list page in the Alexa App.
         */ 'summary' ? : string ; /**
         * Description of the in-skill product's purpose and features, and how it works. Should describe any prerequisites like hardware or account requirements and detailed steps for the customer to get started. This description displays to customers on the in-skill product detail card in the Alexa app.
         */ 'description' ? : string ; /**
         * Example phrases appear on the in-skill product detail page and are the key utterances that customers can say to interact directly with the in-skill product.
         */ 'examplePhrases' ? : Array < string > ; /**
         * Search terms that can be used to describe the in-skill product. This helps customers find an in-skill product.
         */ 'keywords' ? : Array < string > ; 'customProductPrompts' ? : v1 . isp . CustomProductPrompts ; } } export namespace v1 . isp { interface export interface MarketplacePricing { /**
         * Date when in-skill product is available to customers for both purchase and use. Prior to this date the in-skill product will appear unavailable to customers and will not be purchasable.
         */ 'releaseDate' ? : string ; 'defaultPriceListing' ? : v1 . isp . PriceListing ; } } export namespace v1 . isp { interface export interface PriceListing { /**
         * Defines the price of an in-skill product. The list price should be your suggested price, not including any VAT or similar taxes. Taxes are included in the final price to end users.
         */ 'price' ? : number ; 'currency' ? : v1 . isp . Currency ; } } export namespace v1 . isp { interface export interface PrivacyAndCompliance { /**
         * Defines the structure for locale specific privacy and compliance.
         */ 'locales' ? : { [ key ] : v1 . isp . LocalizedPrivacyAndCompliance ; } ; } } export namespace v1 . isp { interface export interface ProductResponse { /**
         * ID of the in-skill product created.
         */ 'productId' ? : string ; } } export namespace v1 . isp { enum export type ProductType = 'SUBSCRIPTION' | 'ENTITLEMENT' | 'CONSUMABLE' ; } export namespace v1 . isp { enum export type PromotableState = 'IN_SKILL_ONLY' | 'ALL_AMAZON_CHANNELS' ; } export namespace v1 . isp { interface export interface PublishingInformation { /**
         * Defines the structure for locale specific publishing information for an in-skill product.
         */ 'locales' ? : { [ key ] : v1 . isp . LocalizedPublishingInformation ; } ; /**
         * List of countries where the in-skill product is available.
         */ 'distributionCountries' ? : Array < v1 . isp . DistributionCountries > ; /**
         * Defines the structure for in-skill product pricing.
         */ 'pricing' ? : { [ key ] : v1 . isp . MarketplacePricing ; } ; 'taxInformation' ? : v1 . isp . TaxInformation ; } } export namespace v1 . isp { enum export type PurchasableState = 'PURCHASABLE' | 'NOT_PURCHASABLE' ; } export namespace v1 . isp { enum export type Status = 'INCOMPLETE' | 'COMPLETE' | 'CERTIFICATION' | 'PUBLISHED' | 'SUPPRESSED' ; } export namespace v1 . isp { interface export interface SubscriptionInformation { 'subscriptionPaymentFrequency' ? : v1 . isp . SubscriptionPaymentFrequency ; /**
         * Days of free trial period for subscription. Max allowed is 365 days.
         */ 'subscriptionTrialPeriodDays' ? : number ; } } export namespace v1 . isp { interface export interface SummaryMarketplacePricing { /**
         * Date when in-skill product is available to customers for both purchase and use. Prior to this date the in-skill product will appear unavailable to customers and will not be purchasable.
         */ 'releaseDate' ? : string ; 'defaultPriceListing' ? : v1 . isp . SummaryPriceListing ; } } export namespace v1 . isp { interface export interface SummaryPriceListing { /**
         * The price of an in-skill product.
         */ 'price' ? : number ; /**
         * The prime price of an in-skill product.
         */ 'primeMemberPrice' ? : number ; 'currency' ? : v1 . isp . Currency ; } } export namespace v1 . isp { interface export interface TaxInformation { 'category' ? : v1 . isp . TaxInformationCategory ; } } export namespace v1 . isp { enum export type TaxInformationCategory = 'SOFTWARE' | 'STREAMING_AUDIO' | 'STREAMING_RADIO' | 'INFORMATION_SERVICES' | 'VIDEO' | 'PERIODICALS' | 'NEWSPAPERS' ; } export namespace v1 . isp { interface export interface CreateInSkillProductRequest { /**
         * ID of the vendor owning the in-skill product.
         */ 'vendorId' ? : string ; 'inSkillProductDefinition' ? : v1 . isp . InSkillProductDefinition ; } } export namespace v1 . isp { enum export type SubscriptionPaymentFrequency = 'MONTHLY' | 'YEARLY' ; } export namespace v1 . isp { interface export interface UpdateInSkillProductRequest { 'inSkillProductDefinition' ? : v1 . isp . InSkillProductDefinition ; } } export namespace v1 . skill { enum export type Action = 'CREATE' | 'UPDATE' | 'ASSOCIATE' | 'DISASSOCIATE' ; } export namespace v1 . skill { enum export type AgreementType = 'EXPORT_COMPLIANCE' ; } export namespace v1 . skill . AlexaHosted { interface export interface AlexaHostedConfig { 'runtime' ? : v1 . skill . AlexaHosted . HostedSkillRuntime ; 'region' ? : v1 . skill . AlexaHosted . HostedSkillRegion ; } } export namespace v1 . skill . AlexaHosted { interface export interface HostedSkillInfo { 'repository' ? : v1 . skill . AlexaHosted . HostedSkillRepositoryInfo ; 'runtime' ? : v1 . skill . AlexaHosted . HostedSkillRuntime ; } } export namespace v1 . skill . AlexaHosted { interface export interface HostedSkillMetadata { 'alexaHosted' ? : v1 . skill . AlexaHosted . HostedSkillInfo ; } } export namespace v1 . skill . AlexaHosted { interface export interface HostedSkillPermission { 'permission' ? : v1 . skill . AlexaHosted . HostedSkillPermissionType ; 'status' ? : v1 . skill . AlexaHosted . HostedSkillPermissionStatus ; 'actionUrl' ? : string ; } } export namespace v1 . skill . AlexaHosted { enum export type HostedSkillPermissionStatus = 'ALLOWED' | 'NEW_USER_REGISTRATION_REQUIRED' | 'RESOURCE_LIMIT_EXCEEDED' | 'RATE_EXCEEDED' ; } export namespace v1 . skill . AlexaHosted { enum export type HostedSkillPermissionType = 'NEW_SKILL' ; } export namespace v1 . skill . AlexaHosted { enum export type HostedSkillRegion = 'US_EAST_1' | 'US_WEST_2' | 'EU_WEST_1' ; } export namespace v1 . skill . AlexaHosted { enum export type HostedSkillRepository = 'GIT' ; } export namespace v1 . skill . AlexaHosted { interface export interface HostedSkillRepositoryCredentials { /**
         * AWS Access Key ID used to access hosted skill repository
         */ 'username' ? : string ; /**
         * signed AWS Credentials used to access hosted skill repository
         */ 'password' ? : string ; /**
         * expiration time for the credentials
         */ 'expiresAt' ? : string ; } } export namespace v1 . skill . AlexaHosted { interface export interface HostedSkillRepositoryCredentialsList { 'repositoryCredentials' ? : v1 . skill . AlexaHosted . HostedSkillRepositoryCredentials ; } } export namespace v1 . skill . AlexaHosted { interface export interface HostedSkillRepositoryCredentialsRequest { 'repository' : v1 . skill . AlexaHosted . HostedSkillRepositoryInfo ; } } export namespace v1 . skill . AlexaHosted { interface export interface HostedSkillRepositoryInfo { 'url' : string ; 'type' : v1 . skill . AlexaHosted . HostedSkillRepository ; } } export namespace v1 . skill . AlexaHosted { enum export type HostedSkillRuntime = 'NODE_10_X' | 'PYTHON_3_7' | 'NODE_12_X' ; } export namespace v1 . skill . AlexaHosted { interface export interface HostingConfiguration { 'alexaHosted' ? : v1 . skill . AlexaHosted . AlexaHostedConfig ; } } export namespace v1 . skill { interface export interface BuildDetails { /**
         * An array where each element represents a build step.
         */ 'steps' ? : Array < v1 . skill . BuildStep > ; } } export namespace v1 . skill { interface export interface BuildStep { 'name' ? : v1 . skill . BuildStepName ; 'status' ? : v1 . skill . Status ; 'errors' ? : Array < v1 . skill . StandardizedError > ; } } export namespace v1 . skill { enum export type BuildStepName = 'DIALOG_MODEL_BUILD' | 'LANGUAGE_MODEL_QUICK_BUILD' | 'LANGUAGE_MODEL_FULL_BUILD' ; } export namespace v1 . skill { interface export interface CloneLocaleRequest { /**
         * Locale with the assets that will be cloned.
         */ 'sourceLocale' : string ; /**
         * A list of locale(s) where the assets will be copied to.
         */ 'targetLocales' : Array < string > ; /**
         * Can locale of skill be overwritten. Default value is DO_NOT_OVERWRITE.
         */ 'overwriteMode' ? : v1 . skill . OverwriteMode ; } } export namespace v1 . skill { enum export type CloneLocaleRequestStatus = 'FAILED' | 'INELIGIBLE' | 'IN_PROGRESS' | 'MIXED' | 'ROLLBACK_FAILED' | 'ROLLBACK_SUCCEEDED' | 'SUCCEEDED' ; } export namespace v1 . skill { interface export interface CloneLocaleResourceStatus { 'status' ? : v1 . skill . CloneLocaleStatus ; 'errors' ? : Array < v1 . skill . StandardizedError > ; } } export namespace v1 . skill { enum export type CloneLocaleStageType = 'development' ; } export namespace v1 . skill { enum export type CloneLocaleStatus = 'FAILED' | 'INELIGIBLE' | 'IN_PROGRESS' | 'ROLLBACK_FAILED' | 'ROLLBACK_SUCCEEDED' | 'SUCCEEDED' ; } export namespace v1 . skill { interface export interface CloneLocaleStatusResponse { 'status' ? : v1 . skill . CloneLocaleRequestStatus ; 'errors' ? : Array < v1 . skill . StandardizedError > ; /**
         * Source locale which is cloned to target locales.
         */ 'sourceLocale' ? : string ; /**
         * Mapping of statuses per locale.
         */ 'targetLocales' ? : { [ key ] : v1 . skill . CloneLocaleResourceStatus ; } ; } } export namespace v1 . skill { interface export interface CreateRollbackRequest { /**
         * The target skill version to rollback to.
         */ 'targetVersion' : string ; } } export namespace v1 . skill { interface export interface CreateRollbackResponse { /**
         * Defines the identifier for a rollback request.
         */ 'rollbackRequestId' ? : string ; } } export namespace v1 . skill { interface export interface CreateSkillResponse { /**
         * ID of the skill created.
         */ 'skillId' ? : string ; } } export namespace v1 . skill { interface export interface ExportResponse { 'status' ? : v1 . skill . ResponseStatus ; 'skill' ? : v1 . skill . ExportResponseSkill ; } } export namespace v1 . skill { interface export interface ExportResponseSkill { 'eTag' ? : string ; 'location' ? : string ; /**
         * ExpiresAt timestamp in milliseconds.
         */ 'expiresAt' ? : string ; } } export namespace v1 . skill { enum export type Format = 'URI' ; } export namespace v1 . skill { interface export interface HostedSkillDeploymentDetails { 'commitId' ? : string ; 'logUrl' ? : string ; } } export namespace v1 . skill { interface export interface HostedSkillDeploymentStatus { 'lastUpdateRequest' ? : v1 . skill . HostedSkillDeploymentStatusLastUpdateRequest ; } } export namespace v1 . skill { interface export interface HostedSkillDeploymentStatusLastUpdateRequest { 'status' ? : v1 . skill . Status ; 'errors' ? : Array < v1 . skill . StandardizedError > ; 'warnings' ? : Array < v1 . skill . StandardizedError > ; 'deploymentDetails' ? : v1 . skill . HostedSkillDeploymentDetails ; } } export namespace v1 . skill { interface export interface HostedSkillProvisioningLastUpdateRequest { 'status' ? : v1 . skill . Status ; 'errors' ? : Array < v1 . skill . StandardizedError > ; 'warnings' ? : Array < v1 . skill . StandardizedError > ; } } export namespace v1 . skill { interface export interface HostedSkillProvisioningStatus { 'lastUpdateRequest' ? : v1 . skill . HostedSkillProvisioningLastUpdateRequest ; } } export namespace v1 . skill { interface export interface ImageDimension { /**
         * Width of the image in pixels.
         */ 'widthInPixels' ? : number ; /**
         * Height of the image in pixels.
         */ 'heightInPixels' ? : number ; } } export namespace v1 . skill { interface export interface ImageSize { /**
         * Value measuring the size of the image.
         */ 'value' ? : number ; 'unit' ? : v1 . skill . ImageSizeUnit ; } } export namespace v1 . skill { enum export type ImageSizeUnit = 'MB' ; } export namespace v1 . skill { interface export interface ImportResponse { 'status' ? : v1 . skill . ResponseStatus ; 'errors' ? : Array < v1 . skill . StandardizedError > ; 'warnings' ? : Array < v1 . skill . StandardizedError > ; 'skill' ? : v1 . skill . ImportResponseSkill ; } } export namespace v1 . skill { interface export interface ImportResponseSkill { 'skillId' ? : string ; 'eTag' ? : string ; 'resources' : Array < v1 . skill . ResourceImportStatus > ; } } export namespace v1 . skill { interface export interface Instance { /**
         * Path that uniquely identifies the instance in the resource.
         */ 'propertyPath' ? : string ; 'dataType' ? : v1 . skill . ValidationDataTypes ; /**
         * String value of the instance. Incase of null, object or array the value field would be null or not present. Incase of string, boolean or integer dataType it will be the corresponding String value.
         */ 'value' ? : string ; } } export namespace v1 . skill { interface export interface InteractionModelLastUpdateRequest { 'status' ? : v1 . skill . Status ; 'errors' ? : Array < v1 . skill . StandardizedError > ; 'warnings' ? : Array < v1 . skill . StandardizedError > ; 'buildDetails' ? : v1 . skill . BuildDetails ; } } export namespace v1 . skill { interface export interface ListSkillResponse { '_links' ? : v1 . Links ; /**
         * List of skill summaries. List might contain either one, two or three entries for a given skillId depending on the skill's publication history and the publication method. `Skill containing certified stage` * If a skill was never published to live, this list will contain two entries `:` one with stage 'development' and another with stage 'certified'. Both of these summaries will have same skillId. * For any skill that has been published to 'live', this list will contain three entries `:` one with stage 'development', one with stage `certified` and one with stage 'live'. All of these summaries will have same skillId. `Skill without certified stage` * If a skill was never published to live, this list will contain only one entry for the skill with stage as 'development'. * For any skill that has been published to 'live', this list will contain two entries `:` one with stage 'development' and another with stage 'live'. Both of these summaries will have same skillId.
         */ 'skills' ? : Array < v1 . skill . SkillSummary > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; } } export namespace v1 . skill { interface export interface ListSkillVersionsResponse { '_links' ? : v1 . Links ; /**
         * Skill version metadata
         */ 'skillVersions' ? : Array < v1 . skill . SkillVersion > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface AlexaForBusinessApis { /**
         * Contains an array of the supported <region> Objects.
         */ 'regions' ? : { [ key ] : v1 . skill . Manifest . Region ; } ; 'endpoint' ? : v1 . skill . Manifest . SkillManifestEndpoint ; /**
         * Contains the list of supported interfaces.
         */ 'interfaces' ? : Array < v1 . skill . Manifest . AlexaForBusinessInterface > ; } } export namespace v1 . skill . Manifest { interface export interface AlexaForBusinessInterface { /**
         * Name of the interface.
         */ 'namespace' : string ; 'version' : v1 . skill . Manifest . Version ; /**
         * Contains a list of requests/messages that skill can handle.
         */ 'requests' : Array < v1 . skill . Manifest . AlexaForBusinessInterfaceRequest > ; } } export namespace v1 . skill . Manifest { interface export interface AlexaForBusinessInterfaceRequest { 'name' : v1 . skill . Manifest . AlexaForBusinessInterfaceRequestName ; } } export namespace v1 . skill . Manifest { enum export type AlexaForBusinessInterfaceRequestName = 'Search' | 'Create' | 'Update' ; } export namespace v1 . skill . Manifest { enum export type AndroidCommonIntentName = 'SHOW_IN_MAP' | 'ADD_CALENDAR_EVENT' | 'PLAY_MEDIA' | 'START_PHONE_CALL' | 'OPEN_SETTINGS' ; } export namespace v1 . skill . Manifest { interface export interface AndroidCustomIntent { /**
         * android component name
         */ 'component' ? : string ; /**
         * android intent action
         */ 'action' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface AppLink { /**
         * Allows developers to declare their Skill will use Alexa App Links, and list relevant apps. This field is required when using the APP_LINK interface.
         */ 'linkedApplications' ? : Array < v1 . skill . Manifest . LinkedApplication > ; /**
         * Allow developer to decalre their skill to link to the declared web domains.
         */ 'linkedWebDomains' ? : Array < string > ; /**
         * Allow developer to declare their skill to link to the speicified android common intents.
         */ 'linkedAndroidCommonIntents' ? : Array < v1 . skill . Manifest . LinkedAndroidCommonIntent > ; 'linkedCommonSchemes' ? : v1 . skill . Manifest . LinkedCommonSchemes ; } } export namespace v1 . skill . Manifest { interface export interface AuthorizedClient { 'authenticationProvider' : string ; } } export namespace v1 . skill . Manifest { interface export interface AuthorizedClientLwaApplication { 'type' : string ; } } export namespace v1 . skill . Manifest { interface export interface AutomaticClonedLocale { /**
         * List of language specific source locale to target locales mapping.
         */ 'locales' : Array < v1 . skill . Manifest . LocalesByAutomaticClonedLocale > ; } } export namespace v1 . skill . Manifest { interface export interface AutomaticDistribution { /**
         * set to true to opt in to Automatic Skill Distribution. If false, then the skill will not be considered for Automatic Skill Distribution. Note that once a skill has gone through the automatic distribution process and this value is later set to false, any locales that were published through this feature will not be reverted. Any published locales will need to be suppressed manually via contacting DAG.
         */ 'isActive' : boolean ; /**
         * list of items pairing a language with a source locale. Required if isActive is set to true. For each language there must be exactly one source locale.
         */ 'sourceLocaleForLanguages' ? : Array < v1 . skill . Manifest . SourceLanguageForLocales > ; } } export namespace v1 . skill . Manifest { interface export interface CatalogInfo { 'type' : v1 . skill . Manifest . CatalogType ; /**
         * Identifier when accessing app in store.
         */ 'identifier' : string ; } } export namespace v1 . skill . Manifest { enum export type CatalogName = 'IOS_APP_STORE' | 'GOOGLE_PLAY_STORE' ; } export namespace v1 . skill . Manifest { enum export type CatalogType = 'IOS_APP_STORE' | 'GOOGLE_PLAY_STORE' ; } export namespace v1 . skill . Manifest { interface export interface ConnectionsPayload { /**
         * Type of the payload.
         */ 'type' : string ; /**
         * Version of the payload.
         */ 'version' : string ; } } export namespace v1 . skill . Manifest { enum export type Currency = 'USD' ; } export namespace v1 . skill . Manifest . Custom { interface export interface Connection { /**
         * Name of the connection.
         */ 'name' : string ; 'payload' : v1 . skill . Manifest . ConnectionsPayload ; } } export namespace v1 . skill . Manifest . Custom { enum export type SuppressedInterface = 'AudioPlayer' | 'PlaybackController' | 'Display' | 'VideoPlayer' | 'GameEngine' | 'GadgetController' | 'CanHandleIntentRequest' | 'CanFulfillIntentRequest' | 'AlexaPresentationApl' | 'AlexaPresentationHtml' | 'AlexaDataStore' | 'AlexaDataStorePackageManager' | 'PhotoCaptureController' | 'VideoCaptureController' | 'UploadController' | 'CustomInterface' | 'AlexaAugmentationEffectsController' ; } export namespace v1 . skill . Manifest . Custom { interface export type TargetRuntime = v1 . skill . Manifest . Custom . TargetRuntimeDevice ; } export namespace v1 . skill . Manifest . Custom { enum export type TargetRuntimeType = 'DEVICE' ; } export namespace v1 . skill . Manifest { interface export interface CustomApis { /**
         * Defines the set of target runtimes for this skill.
         */ '_targetRuntimes' ? : Array < v1 . skill . Manifest . Custom . TargetRuntime > ; /**
         * Object that contains <locale> Objects for each supported locale.
         */ 'locales' ? : { [ key ] : v1 . skill . Manifest . CustomLocalizedInformation ; } ; /**
         * Contains an array of the supported <region> Objects.
         */ 'regions' ? : { [ key ] : v1 . skill . Manifest . Region ; } ; 'endpoint' ? : v1 . skill . Manifest . SkillManifestEndpoint ; /**
         * Defines the structure for interfaces supported by the custom api of the skill.
         */ 'interfaces' ? : Array < v1 . skill . Manifest . Interface > ; /**
         * List of provided tasks.
         */ 'tasks' ? : Array < v1 . skill . Manifest . CustomTask > ; 'connections' ? : v1 . skill . Manifest . CustomConnections ; 'dialogManagement' ? : v1 . skill . Manifest . DialogManagement ; 'appLink' ? : v1 . skill . Manifest . AppLink ; } } export namespace v1 . skill . Manifest { interface export interface CustomConnections { /**
         * List of required connections.
         */ 'requires' ? : Array < v1 . skill . Manifest . Custom . Connection > ; /**
         * List of provided connections.
         */ 'provides' ? : Array < v1 . skill . Manifest . Custom . Connection > ; } } export namespace v1 . skill . Manifest . CustomDialogManagement { interface export interface SessionStartDelegationStrategy { 'target' : string ; } } export namespace v1 . skill . Manifest { interface export interface CustomLocalizedInformation { 'dialogManagement' ? : v1 . skill . Manifest . CustomLocalizedInformationDialogManagement ; } } export namespace v1 . skill . Manifest { interface export interface CustomLocalizedInformationDialogManagement { 'sessionStartDelegationStrategy' ? : v1 . skill . Manifest . CustomDialogManagement . SessionStartDelegationStrategy ; } } export namespace v1 . skill . Manifest { interface export interface CustomProductPrompts { /**
         * Description of the paid skill product heard before customer is prompted for purchase.
         */ 'purchasePromptDescription' : string ; /**
         * Description of the paid skill product that displays when the paid skill is purchased.
         */ 'purchaseConfirmationDescription' : string ; } } export namespace v1 . skill . Manifest { interface export interface CustomTask { /**
         * Name of the task.
         */ 'name' : string ; /**
         * Version of the task.
         */ 'version' : string ; } } export namespace v1 . skill . Manifest { interface export interface DemandResponseApis { /**
         * Contains an array of the supported <region> Objects.
         */ 'regions' ? : { [ key ] : v1 . skill . Manifest . LambdaRegion ; } ; 'endpoint' ? : v1 . skill . Manifest . LambdaEndpoint ; /**
         * Defines the url for enrolling into a demand response program.
         */ 'enrollmentUrl' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface DialogDelegationStrategy { 'target' : string ; } } export namespace v1 . skill . Manifest { interface export interface DialogManagement { /**
         * List of dialog managers configured by the skill
         */ 'dialogManagers' : Array < v1 . skill . Manifest . DialogManager > ; 'sessionStartDelegationStrategy' ? : v1 . skill . Manifest . DialogDelegationStrategy ; } } export namespace v1 . skill . Manifest { interface export type DialogManager = v1 . skill . Manifest . AMAZONConversationsDialogManager ; } export namespace v1 . skill . Manifest { enum export type DisplayInterfaceApmlVersion = '0.2' ; } export namespace v1 . skill . Manifest { enum export type DisplayInterfaceTemplateVersion = '1' ; } export namespace v1 . skill . Manifest { enum export type DistributionCountries = 'AF' | 'AX' | 'AL' | 'DZ' | 'AS' | 'AD' | 'AO' | 'AI' | 'AQ' | 'AG' | 'AR' | 'AM' | 'AW' | 'AU' | 'AT' | 'AZ' | 'BS' | 'BH' | 'BD' | 'BB' | 'BY' | 'BE' | 'BZ' | 'BJ' | 'BM' | 'BT' | 'BO' | 'BA' | 'BW' | 'BV' | 'BR' | 'IO' | 'BN' | 'BG' | 'BF' | 'BI' | 'KH' | 'CM' | 'CA' | 'CV' | 'KY' | 'CF' | 'TD' | 'CL' | 'CN' | 'CX' | 'CC' | 'CO' | 'KM' | 'CG' | 'CD' | 'CK' | 'CR' | 'HR' | 'CY' | 'CZ' | 'DK' | 'DJ' | 'DM' | 'DO' | 'EC' | 'EG' | 'SV' | 'GQ' | 'ER' | 'EE' | 'ET' | 'FK' | 'FO' | 'FJ' | 'FI' | 'FR' | 'GF' | 'PF' | 'TF' | 'GA' | 'GM' | 'GE' | 'DE' | 'GH' | 'GI' | 'GR' | 'GL' | 'GD' | 'GP' | 'GU' | 'GT' | 'GG' | 'GN' | 'GW' | 'GY' | 'HT' | 'HM' | 'VA' | 'HN' | 'HK' | 'HU' | 'IS' | 'IN' | 'ID' | 'IQ' | 'IE' | 'IM' | 'IL' | 'IT' | 'CI' | 'JM' | 'JP' | 'JE' | 'JO' | 'KZ' | 'KE' | 'KI' | 'KR' | 'KW' | 'KG' | 'LA' | 'LV' | 'LB' | 'LS' | 'LR' | 'LY' | 'LI' | 'LT' | 'LU' | 'MO' | 'MK' | 'MG' | 'MW' | 'MY' | 'MV' | 'ML' | 'MT' | 'MH' | 'MQ' | 'MR' | 'MU' | 'YT' | 'MX' | 'FM' | 'MD' | 'MC' | 'MN' | 'ME' | 'MS' | 'MA' | 'MZ' | 'MM' | 'NA' | 'NR' | 'NP' | 'NL' | 'AN' | 'NC' | 'NZ' | 'NI' | 'NE' | 'NG' | 'NU' | 'NF' | 'MP' | 'NO' | 'OM' | 'PK' | 'PW' | 'PS' | 'PA' | 'PG' | 'PY' | 'PE' | 'PH' | 'PN' | 'PL' | 'PT' | 'PR' | 'QA' | 'RE' | 'RO' | 'RU' | 'RW' | 'BL' | 'SH' | 'KN' | 'LC' | 'MF' | 'PM' | 'VC' | 'WS' | 'SM' | 'ST' | 'SA' | 'SN' | 'RS' | 'SC' | 'SL' | 'SG' | 'SK' | 'SI' | 'SB' | 'SO' | 'ZA' | 'GS' | 'ES' | 'LK' | 'SR' | 'SJ' | 'SZ' | 'SE' | 'CH' | 'TW' | 'TJ' | 'TZ' | 'TH' | 'TL' | 'TG' | 'TK' | 'TO' | 'TT' | 'TN' | 'TR' | 'TM' | 'TC' | 'TV' | 'UG' | 'UA' | 'AE' | 'GB' | 'US' | 'UM' | 'UY' | 'UZ' | 'VU' | 'VE' | 'VN' | 'VG' | 'VI' | 'WF' | 'EH' | 'YE' | 'ZM' | 'ZW' ; } export namespace v1 . skill . Manifest { enum export type DistributionMode = 'PRIVATE' | 'PUBLIC' ; } export namespace v1 . skill . Manifest { interface export interface EventName { 'eventName' ? : v1 . skill . Manifest . EventNameType ; } } export namespace v1 . skill . Manifest { enum export type EventNameType = 'Legacy.AudioPlayerGui.LyricsViewedEvent' | 'Legacy.ListModel.DeleteItemRequest' | 'Legacy.MediaPlayer.SequenceModified' | 'Legacy.PlaybackController.ButtonCommand' | 'EffectsController.RequestEffectChangeRequest' | 'Legacy.ExternalMediaPlayer.RequestToken' | 'ITEMS_UPDATED' | 'Alexa.Video.Xray.ShowDetailsSuccessful' | 'PlaybackController.NextCommandIssued' | 'Legacy.MediaPlayer.PlaybackFinished' | 'Alexa.Camera.VideoCaptureController.CaptureFailed' | 'SKILL_DISABLED' | 'Alexa.Camera.VideoCaptureController.CancelCaptureFailed' | 'CustomInterfaceController.EventsReceived' | 'Legacy.DeviceNotification.NotificationStarted' | 'REMINDER_UPDATED' | 'AUDIO_ITEM_PLAYBACK_STOPPED' | 'Legacy.AuxController.InputActivityStateChanged' | 'LocalApplication.MShopPurchasing.Event' | 'Legacy.ExternalMediaPlayer.AuthorizationComplete' | 'LocalApplication.HHOPhotos.Event' | 'Alexa.Presentation.APL.UserEvent' | 'Legacy.AudioPlayer.PlaybackInterrupted' | 'Legacy.BluetoothNetwork.DeviceUnpairFailure' | 'IN_SKILL_PRODUCT_SUBSCRIPTION_ENDED' | 'Alexa.FileManager.UploadController.UploadFailed' | 'Legacy.BluetoothNetwork.DeviceConnectedFailure' | 'Legacy.AudioPlayer.AudioStutter' | 'Alexa.Camera.VideoCaptureController.CaptureStarted' | 'Legacy.Speaker.MuteChanged' | 'CardRenderer.DisplayContentFinished' | 'Legacy.SpeechSynthesizer.SpeechStarted' | 'AudioPlayer.PlaybackStopped' | 'Legacy.SoftwareUpdate.CheckSoftwareUpdateReport' | 'CardRenderer.DisplayContentStarted' | 'LocalApplication.NotificationsApp.Event' | 'AudioPlayer.PlaybackStarted' | 'Legacy.DeviceNotification.NotificationEnteredForground' | 'Legacy.DeviceNotification.SetNotificationFailed' | 'Legacy.AudioPlayer.PeriodicPlaybackProgressReport' | 'Legacy.HomeAutoWifiController.HttpNotified' | 'Alexa.Camera.PhotoCaptureController.CancelCaptureFailed' | 'SKILL_ACCOUNT_LINKED' | 'LIST_UPDATED' | 'Legacy.DeviceNotification.NotificationSync' | 'Legacy.SconeRemoteControl.VolumeDown' | 'Legacy.MediaPlayer.PlaybackPaused' | 'Legacy.Presentation.PresentationUserEvent' | 'PlaybackController.PlayCommandIssued' | 'Legacy.ListModel.UpdateItemRequest' | 'Messaging.MessageReceived' | 'Legacy.SoftwareUpdate.InitiateSoftwareUpdateReport' | 'AUDIO_ITEM_PLAYBACK_FAILED' | 'LocalApplication.DeviceMessaging.Event' | 'Alexa.Camera.PhotoCaptureController.CaptureFailed' | 'Legacy.AudioPlayer.PlaybackIdle' | 'Legacy.BluetoothNetwork.EnterPairingModeSuccess' | 'Legacy.AudioPlayer.PlaybackError' | 'Legacy.ListModel.GetPageByOrdinalRequest' | 'Legacy.MediaGrouping.GroupChangeResponseEvent' | 'Legacy.BluetoothNetwork.DeviceDisconnectedFailure' | 'Legacy.BluetoothNetwork.EnterPairingModeFailure' | 'Legacy.SpeechSynthesizer.SpeechInterrupted' | 'PlaybackController.PreviousCommandIssued' | 'Legacy.AudioPlayer.PlaybackFinished' | 'Legacy.System.UserInactivity' | 'Display.UserEvent' | 'Legacy.PhoneCallController.Event' | 'Legacy.DeviceNotification.SetNotificationSucceeded' | 'LocalApplication.Photos.Event' | 'LocalApplication.VideoExperienceService.Event' | 'Legacy.ContentManager.ContentPlaybackTerminated' | 'Legacy.PlaybackController.PlayCommand' | 'Legacy.PlaylistController.ErrorResponse' | 'Legacy.SconeRemoteControl.VolumeUp' | 'MessagingController.UpdateConversationsStatus' | 'Legacy.BluetoothNetwork.DeviceDisconnectedSuccess' | 'LocalApplication.Communications.Event' | 'AUDIO_ITEM_PLAYBACK_STARTED' | 'Legacy.BluetoothNetwork.DevicePairFailure' | 'LIST_DELETED' | 'Legacy.PlaybackController.ToggleCommand' | 'Legacy.BluetoothNetwork.DevicePairSuccess' | 'Legacy.MediaPlayer.PlaybackError' | 'AudioPlayer.PlaybackFinished' | 'Legacy.DeviceNotification.NotificationStopped' | 'Legacy.SipClient.Event' | 'Display.ElementSelected' | 'LocalApplication.MShop.Event' | 'Legacy.ListModel.AddItemRequest' | 'Legacy.BluetoothNetwork.ScanDevicesReport' | 'Legacy.MediaPlayer.PlaybackStopped' | 'Legacy.AudioPlayerGui.ButtonClickedEvent' | 'LocalApplication.AlexaVoiceLayer.Event' | 'Legacy.PlaybackController.PreviousCommand' | 'Legacy.AudioPlayer.InitialPlaybackProgressReport' | 'Legacy.BluetoothNetwork.DeviceConnectedSuccess' | 'LIST_CREATED' | 'Legacy.ActivityManager.ActivityContextRemovedEvent' | 'ALL_LISTS_CHANGED' | 'Legacy.AudioPlayer.PlaybackNearlyFinished' | 'Legacy.MediaGrouping.GroupChangeNotificationEvent' | 'LocalApplication.Sentry.Event' | 'SKILL_PROACTIVE_SUBSCRIPTION_CHANGED' | 'REMINDER_CREATED' | 'Alexa.Presentation.HTML.Event' | 'FitnessSessionController.FitnessSessionError' | 'Legacy.SconeRemoteControl.Next' | 'Alexa.Camera.VideoCaptureController.CaptureFinished' | 'Legacy.MediaPlayer.SequenceItemsRequested' | 'Legacy.PlaybackController.PauseCommand' | 'LocalApplication.AlexaVision.Event' | 'LocalApplication.Closet.Event' | 'Alexa.FileManager.UploadController.CancelUploadFailed' | 'Legacy.MediaPlayer.PlaybackResumed' | 'SKILL_PERMISSION_ACCEPTED' | 'FitnessSessionController.FitnessSessionPaused' | 'Legacy.AudioPlayer.PlaybackPaused' | 'Alexa.Presentation.HTML.LifecycleStateChanged' | 'LocalApplication.SipUserAgent.Event' | 'Legacy.MediaPlayer.PlaybackStarted' | 'REMINDER_STATUS_CHANGED' | 'MessagingController.UploadConversations' | 'ITEMS_DELETED' | 'Legacy.AuxController.PluggedStateChanged' | 'Legacy.AudioPlayer.PlaybackStarted' | 'Alexa.FileManager.UploadController.UploadStarted' | 'ITEMS_CREATED' | 'Legacy.ExternalMediaPlayer.Event' | 'LocalApplication.LocalMediaPlayer.Event' | 'LocalApplication.KnightContacts.Event' | 'LocalApplication.Calendar.Event' | 'Legacy.AlertsController.DismissCommand' | 'Legacy.AudioPlayer.PlaybackStutterFinished' | 'Legacy.SpeechSynthesizer.SpeechFinished' | 'Legacy.ExternalMediaPlayer.ReportDiscoveredPlayers' | 'LocalApplication.SipClient.Event' | 'Legacy.BluetoothNetwork.DeviceUnpairSuccess' | 'Legacy.Speaker.VolumeChanged' | 'CardRenderer.ReadContentFinished' | 'LocalApplication.HomeAutomationMedia.Event' | 'Legacy.BluetoothNetwork.CancelPairingMode' | 'LocalApplication.DigitalDash.Event' | 'CardRenderer.ReadContentStarted' | 'Legacy.GameEngine.GameInputEvent' | 'LocalApplication.LocalVoiceUI.Event' | 'Legacy.Microphone.AudioRecording' | 'LocalApplication.AlexaPlatformTestSpeechlet.Event' | 'Legacy.HomeAutoWifiController.SsdpServiceDiscovered' | 'Alexa.Camera.PhotoCaptureController.CancelCaptureFinished' | 'Legacy.HomeAutoWifiController.DeviceReconnected' | 'SKILL_ENABLED' | 'Alexa.Camera.VideoCaptureController.CancelCaptureFinished' | 'MessagingController.UpdateMessagesStatusRequest' | 'REMINDER_STARTED' | 'CustomInterfaceController.Expired' | 'LocalApplication.AvaPhysicalShopping.Event' | 'LocalApplication.WebVideoPlayer.Event' | 'Legacy.HomeAutoWifiController.SsdpServiceTerminated' | 'LocalApplication.FireflyShopping.Event' | 'Legacy.PlaybackController.NextCommand' | 'LocalApplication.Gallery.Event' | 'Alexa.Presentation.PresentationDismissed' | 'EffectsController.StateReceiptChangeRequest' | 'LocalApplication.Alexa.Translation.LiveTranslation.Event' | 'LocalApplication.AlexaNotifications.Event' | 'REMINDER_DELETED' | 'GameEngine.InputHandlerEvent' | 'Legacy.PlaylistController.Response' | 'LocalApplication.KnightHome.Event' | 'Legacy.ListRenderer.ListItemEvent' | 'AudioPlayer.PlaybackFailed' | 'LocalApplication.KnightHomeThingsToTry.Event' | 'Legacy.BluetoothNetwork.SetDeviceCategoriesFailed' | 'Legacy.ExternalMediaPlayer.Logout' | 'Alexa.FileManager.UploadController.UploadFinished' | 'Legacy.ActivityManager.FocusChanged' | 'Legacy.AlertsController.SnoozeCommand' | 'Legacy.SpeechRecognizer.WakeWordChanged' | 'Legacy.ListRenderer.GetListPageByToken' | 'MessagingController.UpdateSendMessageStatusRequest' | 'FitnessSessionController.FitnessSessionEnded' | 'Alexa.Presentation.APL.RuntimeError' | 'Legacy.ListRenderer.GetListPageByOrdinal' | 'FitnessSessionController.FitnessSessionResumed' | 'IN_SKILL_PRODUCT_SUBSCRIPTION_STARTED' | 'Legacy.DeviceNotification.DeleteNotificationSucceeded' | 'Legacy.SpeechSynthesizer.SpeechSynthesizerError' | 'Alexa.Video.Xray.ShowDetailsFailed' | 'Alexa.FileManager.UploadController.CancelUploadFinished' | 'Legacy.SconeRemoteControl.PlayPause' | 'Legacy.DeviceNotification.NotificationEnteredBackground' | 'SKILL_PERMISSION_CHANGED' | 'Legacy.AudioPlayer.Metadata' | 'Legacy.AudioPlayer.PlaybackStutterStarted' | 'AUDIO_ITEM_PLAYBACK_FINISHED' | 'EffectsController.RequestGuiChangeRequest' | 'FitnessSessionController.FitnessSessionStarted' | 'Legacy.PlaybackController.LyricsViewedEvent' | 'Legacy.ExternalMediaPlayer.Login' | 'PlaybackController.PauseCommandIssued' | 'Legacy.MediaPlayer.PlaybackIdle' | 'Legacy.SconeRemoteControl.Previous' | 'DeviceSetup.SetupCompleted' | 'Legacy.MediaPlayer.PlaybackNearlyFinished' | 'LocalApplication.todoRenderer.Event' | 'Legacy.BluetoothNetwork.SetDeviceCategoriesSucceeded' | 'Legacy.BluetoothNetwork.MediaControlSuccess' | 'Legacy.HomeAutoWifiController.SsdpDiscoveryFinished' | 'Alexa.Presentation.APL.LoadIndexListData' | 'IN_SKILL_PRODUCT_SUBSCRIPTION_RENEWED' | 'Legacy.BluetoothNetwork.MediaControlFailure' | 'Legacy.AuxController.EnabledStateChanged' | 'Legacy.FavoritesController.Response' | 'Legacy.ListModel.ListStateUpdateRequest' | 'Legacy.EqualizerController.EqualizerChanged' | 'Legacy.MediaGrouping.GroupSyncEvent' | 'Legacy.FavoritesController.Error' | 'Legacy.ListModel.GetPageByTokenRequest' | 'Legacy.ActivityManager.ActivityInterrupted' | 'Legacy.MeetingClientController.Event' | 'Legacy.Presentation.PresentationDismissedEvent' | 'Legacy.Spotify.Event' | 'Legacy.ExternalMediaPlayer.Error' | 'Legacy.AuxController.DirectionChanged' | 'AudioPlayer.PlaybackNearlyFinished' | 'Alexa.Camera.PhotoCaptureController.CaptureFinished' | 'Legacy.UDPController.BroadcastResponse' | 'Legacy.AudioPlayer.PlaybackResumed' | 'Legacy.DeviceNotification.DeleteNotificationFailed' ; } export namespace v1 . skill . Manifest { interface export interface EventPublications { /**
         * Name of the event to publish.
         */ 'eventName' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface ExtensionInitializationRequest { /**
         * The extension's URI.
         */ 'uri' : string ; /**
         * Default initialization extension settings.
         */ 'settings' ? : any ; } } export namespace v1 . skill . Manifest { interface export interface ExtensionRequest { /**
         * The extension's URI.
         */ 'uri' : string ; } } export namespace v1 . skill . Manifest { interface export interface FlashBriefingApis { /**
         * Object that contains <locale> objects for each supported locale.
         */ 'locales' : { [ key ] : v1 . skill . Manifest . LocalizedFlashBriefingInfo ; } ; } } export namespace v1 . skill . Manifest { enum export type FlashBriefingContentType = 'TEXT' | 'AUDIO' ; } export namespace v1 . skill . Manifest { enum export type FlashBriefingGenre = 'HEADLINE_NEWS' | 'BUSINESS' | 'POLITICS' | 'ENTERTAINMENT' | 'TECHNOLOGY' | 'HUMOR' | 'LIFESTYLE' | 'SPORTS' | 'SCIENCE' | 'HEALTH_AND_FITNESS' | 'ARTS_AND_CULTURE' | 'PRODUCTIVITY_AND_UTILITIES' | 'OTHER' ; } export namespace v1 . skill . Manifest { enum export type FlashBriefingUpdateFrequency = 'HOURLY' | 'DAILY' | 'WEEKLY' ; } export namespace v1 . skill . Manifest { interface export interface FreeTrialInformation { /**
         * Defines the free trial period for the paid skill product, in ISO_8601#Durations format.
         */ 'freeTrialDuration' : string ; } } export namespace v1 . skill . Manifest { interface export interface FriendlyName { /**
         * Default app name
         */ 'default' : string ; /**
         * Localized app names.
         */ 'localizedNames' ? : Array < v1 . skill . Manifest . LocalizedName > ; } } export namespace v1 . skill . Manifest { enum export type GadgetSupportRequirement = 'REQUIRED' | 'OPTIONAL' ; } export namespace v1 . skill . Manifest { interface export interface HealthInterface { /**
         * Name of the interface.
         */ 'namespace' : string ; /**
         * defines the version of skill interface.
         */ 'version' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface HouseHoldList { } } export namespace v1 . skill . Manifest { enum export type IOSAppStoreCommonSchemeName = 'MAPS' | 'TEL' ; } export namespace v1 . skill . Manifest { interface export type Interface = v1 . skill . Manifest . AlexaPresentationAplInterface | v1 . skill . Manifest . AppLinkInterface | v1 . skill . Manifest . AlexaPresentationHtmlInterface | v1 . skill . Manifest . AudioInterface | v1 . skill . Manifest . GameEngineInterface | v1 . skill . Manifest . AppLinkV2Interface | v1 . skill . Manifest . DisplayInterface | v1 . skill . Manifest . GadgetControllerInterface | v1 . skill . Manifest . VideoAppInterface ; } export namespace v1 . skill . Manifest { enum export type InterfaceType = 'AUDIO_PLAYER' | 'VIDEO_APP' | 'RENDER_TEMPLATE' | 'GAME_ENGINE' | 'GADGET_CONTROLLER' | 'CAN_FULFILL_INTENT_REQUEST' | 'ALEXA_PRESENTATION_APL' | 'ALEXA_CAMERA_PHOTO_CAPTURE_CONTROLLER' | 'ALEXA_CAMERA_VIDEO_CAPTURE_CONTROLLER' | 'ALEXA_FILE_MANAGER_UPLOAD_CONTROLLER' | 'CUSTOM_INTERFACE' | 'ALEXA_AUGMENTATION_EFFECTS_CONTROLLER' | 'APP_LINKS' | 'ALEXA_EXTENSION' | 'APP_LINKS_V2' ; } export namespace v1 . skill . Manifest { interface export interface KnowledgeApis { /**
         * Defines the structure of locale specific knowledge information in the skill manifest.
         */ 'locales' ? : { [ key ] : v1 . skill . Manifest . LocalizedKnowledgeInformation ; } ; } } export namespace v1 . skill . Manifest { interface export interface LambdaEndpoint { /**
         * Amazon Resource Name (ARN) of the Lambda function.
         */ 'uri' : string ; } } export namespace v1 . skill . Manifest { interface export interface LambdaRegion { 'endpoint' : v1 . skill . Manifest . LambdaEndpoint ; } } export namespace v1 . skill . Manifest { interface export interface LinkedAndroidCommonIntent { 'intentName' : v1 . skill . Manifest . AndroidCommonIntentName ; 'catalogType' : v1 . skill . Manifest . CatalogName ; } } export namespace v1 . skill . Manifest { interface export interface LinkedApplication { 'catalogInfo' : v1 . skill . Manifest . CatalogInfo ; /**
         * Supported schemes
         */ 'customSchemes' ? : Array < string > ; /**
         * Supported domains
         */ 'domains' ? : Array < string > ; 'friendlyName' : v1 . skill . Manifest . FriendlyName ; /**
         * Supported android custom intent
         */ 'androidCustomIntents' ? : Array < v1 . skill . Manifest . AndroidCustomIntent > ; } } export namespace v1 . skill . Manifest { interface export interface LinkedCommonSchemes { 'IOS_APP_STORE' ? : Array < v1 . skill . Manifest . IOSAppStoreCommonSchemeName > ; 'GOOGLE_PLAY_STORE' ? : Array < v1 . skill . Manifest . PlayStoreCommonSchemeName > ; } } export namespace v1 . skill . Manifest { interface export interface LocalesByAutomaticClonedLocale { /**
         * Locale where the metadata and model will be copied from. For example: en-US. This locale must already exist in the skill.
         */ 'source' : string ; /**
         * Optional. List of locales where the metadata and model will be copied to. All configuration of source locale will be copied, so target locales do not have to exist before. Defaults to all locales with the same language as the sourceLocale.
         */ 'targets' ? : Array < string > ; } } export namespace v1 . skill . Manifest { interface export interface LocalizedFlashBriefingInfo { /**
         * Defines the structure for a feed information in the skill manifest.
         */ 'feeds' ? : Array < v1 . skill . Manifest . LocalizedFlashBriefingInfoItems > ; /**
         * Alexa says this to the customer if the skill fails to render the content.
         */ 'customErrorMessage' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface LocalizedFlashBriefingInfoItems { /**
         * Logical name of the feed. This is used to signify relation among feeds across different locales. Example If you have \"weather\" feed in multiple locale then consider naming it \"weather_update\" and we will make sure to play the right feed if customer changes the language on device.
         */ 'logicalName' ? : string ; /**
         * Name that identifies this feed.
         */ 'name' ? : string ; /**
         * Url for the feed
         */ 'url' : string ; /**
         * Uri for the feed image
         */ 'imageUri' ? : string ; 'contentType' : v1 . skill . Manifest . FlashBriefingContentType ; 'genre' : v1 . skill . Manifest . FlashBriefingGenre ; 'updateFrequency' : v1 . skill . Manifest . FlashBriefingUpdateFrequency ; /**
         * A short introduction for the feed that Alexa reads to the customer before the feed contents. Should start with \"In\" or \"From\".
         */ 'vuiPreamble' ? : string ; /**
         * True if this should be the default feed to be enabled when customer enables the skill false otherwise.
         */ 'isDefault' : boolean ; } } export namespace v1 . skill . Manifest { interface export interface LocalizedKnowledgeInformation { /**
         * enables skill developers to prepend a custom message to all of their knowledge skill's answers, which can help inform end-users of the skill and data source answering their question.
         */ 'answerAttribution' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface LocalizedMusicInfo { /**
         * Name to be used when Alexa renders the music skill name.
         */ 'promptName' ? : string ; /**
         * Defines the structure of the music prompt name information in the skill manifest.
         */ 'aliases' ? : Array < v1 . skill . Manifest . MusicAlias > ; 'features' ? : Array < v1 . skill . Manifest . MusicFeature > ; 'wordmarkLogos' ? : Array < v1 . skill . Manifest . MusicWordmark > ; } } export namespace v1 . skill . Manifest { interface export interface LocalizedName { /**
         * locale
         */ 'locale' : string ; /**
         * app name
         */ 'name' : string ; } } export namespace v1 . skill . Manifest { interface export interface ManifestGadgetSupport { 'requirement' : v1 . skill . Manifest . GadgetSupportRequirement ; /**
         * Minimum number of gadget buttons required.
         */ 'minGadgetButtons' ? : number ; /**
         * Maximum number of gadget buttons required.
         */ 'maxGadgetButtons' ? : number ; /**
         * Maximum number of players in the game.
         */ 'numPlayersMax' ? : number ; /**
         * Minimum number of players in the game.
         */ 'numPlayersMin' ? : number ; } } export namespace v1 . skill . Manifest { enum export type ManifestVersion = '1.0' ; } export namespace v1 . skill . Manifest { interface export interface MarketplacePricing { 'offerType' : v1 . skill . Manifest . OfferType ; /**
         * Defines the price of a paid skill product. The price should be your suggested price, not including any VAT or similar taxes. Taxes are included in the final price to end users.
         */ 'price' : number ; 'currency' : v1 . skill . Manifest . Currency ; 'freeTrialInformation' ? : v1 . skill . Manifest . FreeTrialInformation ; 'subscriptionInformation' ? : v1 . skill . Manifest . SubscriptionInformation ; } } export namespace v1 . skill . Manifest { interface export interface MusicAlias { /**
         * Alias name to be associated with the music skill.
         */ 'name' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface MusicApis { /**
         * Contains an array of the supported <region> Objects.
         */ 'regions' ? : { [ key ] : v1 . skill . Manifest . LambdaRegion ; } ; 'endpoint' ? : v1 . skill . Manifest . LambdaEndpoint ; /**
         * Defines the structure of music capabilities information in the skill manifest.
         */ 'capabilities' ? : Array < v1 . skill . Manifest . MusicCapability > ; /**
         * A list of music skill interfaces that your skill supports.
         */ 'interfaces' ? : Array < v1 . skill . Manifest . MusicInterfaces > ; /**
         * Defines the structure of locale specific music information in the skill manifest.
         */ 'locales' ? : { [ key ] : v1 . skill . Manifest . LocalizedMusicInfo ; } ; /**
         * List of the type of content to be provided by the music skill.
         */ 'contentTypes' ? : Array < v1 . skill . Manifest . MusicContentType > ; } } export namespace v1 . skill . Manifest { interface export interface MusicCapability { /**
         * Namespace of music skill api.
         */ 'namespace' ? : string ; /**
         * Name of music skill api.
         */ 'name' ? : string ; /**
         * Version of music skill api.
         */ 'version' ? : string ; } } export namespace v1 . skill . Manifest { enum export type MusicContentName = 'ON_DEMAND' | 'RADIO' | 'PODCAST' ; } export namespace v1 . skill . Manifest { interface export interface MusicContentType { 'name' ? : v1 . skill . Manifest . MusicContentName ; } } export namespace v1 . skill . Manifest { interface export interface MusicFeature { /**
         * Feature name to be associated with the music skill.
         */ 'name' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface MusicInterfaces { /**
         * Name of the interface.
         */ 'namespace' : string ; /**
         * Version of the interface.
         */ 'version' ? : string ; /**
         * Contains a list of requests/messages that skill can handle.
         */ 'requests' ? : Array < v1 . skill . Manifest . MusicRequest > ; } } export namespace v1 . skill . Manifest { interface export interface MusicRequest { /**
         * Name of the request.
         */ 'name' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface MusicWordmark { /**
         * Wordmark logo to be used by devices with displays.
         */ 'uri' ? : string ; } } export namespace v1 . skill . Manifest { enum export type OfferType = 'SUBSCRIPTION' | 'ENTITLEMENT' ; } export namespace v1 . skill . Manifest { interface export interface PaidSkillInformation { /**
         * Defines the structure for marketplace specific pricing information in the skill manifest
         */ 'pricing' : { [ key ] : Array < v1 . skill . Manifest . MarketplacePricing > ; } ; 'taxInformation' : v1 . skill . Manifest . TaxInformation ; } } export namespace v1 . skill . Manifest { interface export interface PermissionItems { 'name' : v1 . skill . Manifest . PermissionName ; } } export namespace v1 . skill . Manifest { enum export type PermissionName = 'alexa::device_id:read' | 'alexa::personality:explicit:read' | 'alexa::authenticate:2:mandatory' | 'alexa:devices:all:address:country_and_postal_code:read' | 'alexa::profile:mobile_number:read' | 'alexa::async_event:write' | 'alexa::device_type:read' | 'alexa::skill:proactive_enablement' | 'alexa::personality:explicit:write' | 'alexa::household:lists:read' | 'alexa::utterance_id:read' | 'alexa::user_experience_guidance:read' | 'alexa::devices:all:notifications:write' | 'avs::distributed_audio' | 'alexa::devices:all:address:full:read' | 'alexa::devices:all:notifications:urgent:write' | 'payments:autopay_consent' | 'alexa::alerts:timers:skill:readwrite' | 'alexa::customer_id:read' | 'alexa::skill:cds:monetization' | 'alexa::music:cast' | 'alexa::profile:given_name:read' | 'alexa::alerts:reminders:skill:readwrite' | 'alexa::household:lists:write' | 'alexa::profile:email:read' | 'alexa::profile:name:read' | 'alexa::devices:all:geolocation:read' | 'alexa::raw_person_id:read' | 'alexa::authenticate:2:optional' | 'alexa::health:profile:write' | 'alexa::person_id:read' | 'alexa::skill:products:entitlements' | 'alexa::energy:devices:state:read' | 'alexa::origin_ip_address:read' ; } export namespace v1 . skill . Manifest { enum export type PlayStoreCommonSchemeName = 'MAPS' | 'TEL' ; } export namespace v1 . skill . Manifest { interface export interface Region { 'endpoint' : v1 . skill . Manifest . SkillManifestEndpoint ; } } export namespace v1 . skill . Manifest { enum export type SSLCertificateType = 'SelfSigned' | 'Wildcard' | 'Trusted' ; } export namespace v1 . skill . Manifest { interface export interface SkillManifest { 'manifestVersion' ? : v1 . skill . Manifest . ManifestVersion ; 'publishingInformation' ? : v1 . skill . Manifest . SkillManifestPublishingInformation ; 'privacyAndCompliance' ? : v1 . skill . Manifest . SkillManifestPrivacyAndCompliance ; 'events' ? : v1 . skill . Manifest . SkillManifestEvents ; /**
         * Defines the structure for required permissions information in the skill manifest.
         */ 'permissions' ? : Array < v1 . skill . Manifest . PermissionItems > ; /**
         * Defines a list of clients authorized for a skill.
         */ 'authorizedClients' ? : Array < v1 . skill . Manifest . AuthorizedClient > ; 'apis' ? : v1 . skill . Manifest . SkillManifestApis ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestApis { 'flashBriefing' ? : v1 . skill . Manifest . FlashBriefingApis ; 'custom' ? : v1 . skill . Manifest . CustomApis ; 'knowledge' ? : v1 . skill . Manifest . KnowledgeApis ; 'smartHome' ? : v1 . skill . Manifest . SmartHomeApis ; 'video' ? : v1 . skill . Manifest . VideoApis ; 'alexaForBusiness' ? : v1 . skill . Manifest . AlexaForBusinessApis ; 'householdList' ? : v1 . skill . Manifest . HouseHoldList ; 'music' ? : v1 . skill . Manifest . MusicApis ; 'demandResponse' ? : v1 . skill . Manifest . DemandResponseApis ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestEndpoint { /**
         * Amazon Resource Name (ARN) of the skill's Lambda function or HTTPS URL.
         */ 'uri' : string ; 'sslCertificateType' ? : v1 . skill . Manifest . SSLCertificateType ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestEnvelope { 'manifest' ? : v1 . skill . Manifest . SkillManifest ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestEvents { /**
         * Contains an array of eventName object each of which contains the name of a skill event.
         */ 'subscriptions' ? : Array < v1 . skill . Manifest . EventName > ; 'publications' ? : Array < v1 . skill . Manifest . EventPublications > ; /**
         * Contains an array of the supported <region> Objects.
         */ 'regions' ? : { [ key ] : v1 . skill . Manifest . Region ; } ; 'endpoint' : v1 . skill . Manifest . SkillManifestEndpoint ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestLocalizedPrivacyAndCompliance { /**
         * Link to the privacy policy that applies to this skill.
         */ 'privacyPolicyUrl' ? : string ; /**
         * link to the terms of use document for this skill
         */ 'termsOfUseUrl' ? : string ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestLocalizedPublishingInformation { /**
         * Name of the skill that is displayed to customers in the Alexa app.
         */ 'name' : string ; /**
         * URL to a small icon for the skill, which is shown in the list of skills (108x108px).
         */ 'smallIconUri' ? : string ; /**
         * URL to a large icon that represents this skill (512x512px).
         */ 'largeIconUri' ? : string ; /**
         * Summary description of the skill, which is shown when viewing the list of skills.
         */ 'summary' ? : string ; /**
         * A full description explaining the skill’s core functionality and any prerequisites to using it (such as additional hardware, software, or accounts). For a Flash Briefing skill, you must list the feeds for the skill.
         */ 'description' ? : string ; /**
         * Updates description of the skill's new features and fixes in the version. Should describe changes in the revisions of the skill.
         */ 'updatesDescription' ? : string ; /**
         * Three example phrases that illustrate how users can invoke your skill. For accuracy, these phrases must come directly from your sample utterances.
         */ 'examplePhrases' ? : Array < string > ; /**
         * Sample keyword phrases that describe the skill.
         */ 'keywords' ? : Array < string > ; 'customProductPrompts' ? : v1 . skill . Manifest . CustomProductPrompts ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestPrivacyAndCompliance { /**
         * Object that contains <locale> objects for each supported locale.
         */ 'locales' ? : { [ key ] : v1 . skill . Manifest . SkillManifestLocalizedPrivacyAndCompliance ; } ; /**
         * True if the skill allows users to make purchases or spend real money false otherwise.
         */ 'allowsPurchases' ? : boolean ; /**
         * True if the skill collects users' personal information false otherwise.
         */ 'usesPersonalInfo' ? : boolean ; /**
         * True if the skill is directed to or targets children under the age of 13/16 false otherwise.
         */ 'isChildDirected' ? : boolean ; /**
         * True if it is certified that the skill may be imported to and exported from the United States and all other countries and regions in which Amazon operate its program or in which skill owner have authorized sales to end users (without the need for Amazon to obtain any license or clearance or take any other action) and is in full compliance with all applicable laws and regulations governing imports and export including those applicable to software that makes use of encryption technology.
         */ 'isExportCompliant' ? : boolean ; /**
         * True if the skill contains advertising false otherwise.
         */ 'containsAds' ? : boolean ; /**
         * True if the skill developer is a Covered Entity (CE) or Business Associate (BA) as defined by the Health Insurance Portability And Accountability Act (HIPAA) and the skill requires Amazon to process PHI on their behalf, false otherwise. This is an optional property and treated as false if not set.
         */ 'usesHealthInfo' ? : boolean ; } } export namespace v1 . skill . Manifest { interface export interface SkillManifestPublishingInformation { /**
         * Name of the skill that is displayed to customers in the Alexa app.
         */ 'name' ? : string ; /**
         * Description of the skill's purpose and feature and how it works. Should describe any prerequisites like hardware or account requirements and detailed steps for the customer to get started. For Flash Briefing skill list the feeds offered within the skill. Use a conversational tone and correct grammar and punctuation. This description displays to customers on the skill detail card in the Alexa app.
         */ 'description' ? : string ; /**
         * Defines the structure for locale specific publishing information in the skill manifest.
         */ 'locales' ? : { [ key ] : v1 . skill . Manifest . SkillManifestLocalizedPublishingInformation ; } ; /**
         * True if the skill should be distributed in all countries where Amazon distributes skill false otherwise.
         */ 'isAvailableWorldwide' ? : boolean ; 'distributionMode' ? : v1 . skill . Manifest . DistributionMode ; 'gadgetSupport' ? : v1 . skill . Manifest . ManifestGadgetSupport ; /**
         * Special instructions provided by the developer to test the skill.
         */ 'testingInstructions' ? : string ; /**
         * Category that best describes a skill. Indicates the filter category for the skill in the Alexa App.
         */ 'category' ? : string ; /**
         * Selected list of countries provided by the skill owner where Amazon can distribute the skill.
         */ 'distributionCountries' ? : Array < v1 . skill . Manifest . DistributionCountries > ; 'automaticDistribution' ? : v1 . skill . Manifest . AutomaticDistribution ; 'automaticClonedLocale' ? : v1 . skill . Manifest . AutomaticClonedLocale ; 'paidSkillInformation' ? : v1 . skill . Manifest . PaidSkillInformation ; } } export namespace v1 . skill . Manifest { interface export interface SmartHomeApis { /**
         * Contains an array of the supported <region> Objects.
         */ 'regions' ? : { [ key ] : v1 . skill . Manifest . LambdaRegion ; } ; 'endpoint' ? : v1 . skill . Manifest . LambdaEndpoint ; 'protocolVersion' : v1 . skill . Manifest . SmartHomeProtocol ; 'supportedControls' ? : v1 . skill . Manifest . SupportedControls ; } } export namespace v1 . skill . Manifest { enum export type SmartHomeProtocol = '2' | '2.0' | '3' | '3.0' ; } export namespace v1 . skill . Manifest { interface export interface SourceLanguageForLocales { /**
         * two-letter string representing the language to distribute to. There must be at least one locale in publishingInformation.locales which has this language as the prefix.
         */ 'language' : string ; /**
         * locale where the metadata and model will be copied from. This locale must already exist in the skill.
         */ 'sourceLocale' : string ; } } export namespace v1 . skill . Manifest { interface export interface SubscriptionInformation { 'subscriptionPaymentFrequency' : v1 . skill . Manifest . SubscriptionPaymentFrequency ; } } export namespace v1 . skill . Manifest { enum export type SubscriptionPaymentFrequency = 'MONTHLY' | 'YEARLY' ; } export namespace v1 . skill . Manifest { interface export interface SupportedControls { 'type' ? : v1 . skill . Manifest . SupportedControlsType ; } } export namespace v1 . skill . Manifest { enum export type SupportedControlsType = 'REMOTE_VEHICLE_CONTROL' ; } export namespace v1 . skill . Manifest { interface export interface TaxInformation { 'category' : v1 . skill . Manifest . TaxInformationCategory ; } } export namespace v1 . skill . Manifest { enum export type TaxInformationCategory = 'SOFTWARE' | 'STREAMING_AUDIO' | 'STREAMING_RADIO' | 'INFORMATION_SERVICES' | 'VIDEO' | 'PERIODICALS' | 'NEWSPAPERS' ; } export namespace v1 . skill . Manifest { interface export interface UpChannelItems { /**
         * Use \\\"SNS\\\" for this field.
         */ 'type' ? : string ; /**
         * SNS Amazon Resource Name (ARN) for video skill through which video partner can send events to Alexa.
         */ 'uri' ? : string ; } } export namespace v1 . skill . Manifest { enum export type Version = '1.0' ; } export namespace v1 . skill . Manifest { interface export interface VideoApis { /**
         * Defines the structure for region information.
         */ 'regions' ? : { [ key ] : v1 . skill . Manifest . VideoRegion ; } ; /**
         * Defines the structure for the locale specific video api information.
         */ 'locales' ? : { [ key ] : v1 . skill . Manifest . VideoApisLocale ; } ; 'endpoint' ? : v1 . skill . Manifest . LambdaEndpoint ; /**
         * Object that contains <country> Objects for each supported country.
         */ 'countries' ? : { [ key ] : v1 . skill . Manifest . VideoCountryInfo ; } ; } } export namespace v1 . skill . Manifest { interface export interface VideoApisLocale { /**
         * Defines the video provider's targeting name.
         */ 'videoProviderTargetingNames' : Array < string > ; 'videoProviderLogoUri' ? : string ; 'fireTvCatalogIngestion' ? : v1 . skill . Manifest . VideoFireTvCatalogIngestion ; /**
         * Defines the array of video features for this skill.
         */ 'features' ? : Array < v1 . skill . Manifest . VideoFeature > ; /**
         * Name to use when Alexa renders the video skill name in a prompt to the user
         */ 'promptNames' ? : Array < v1 . skill . Manifest . VideoPromptName > ; } } export namespace v1 . skill . Manifest { interface export interface VideoCatalogInfo { 'sourceId' : string ; } } export namespace v1 . skill . Manifest { interface export interface VideoCountryInfo { 'catalogInformation' ? : Array < v1 . skill . Manifest . VideoCatalogInfo > ; } } export namespace v1 . skill . Manifest { interface export type VideoFeature = v1 . skill . Manifest . VoiceProfileFeature ; } export namespace v1 . skill . Manifest { interface export interface VideoFireTvCatalogIngestion { 'fireTvCatalogIngestionSourceId' ? : string ; 'isFireTvCatalogIngestionEnabled' ? : boolean ; } } export namespace v1 . skill . Manifest { interface export interface VideoPromptName { 'type' : v1 . skill . Manifest . VideoPromptNameType ; 'name' : string ; } } export namespace v1 . skill . Manifest { enum export type VideoPromptNameType = 'Default' ; } export namespace v1 . skill . Manifest { interface export interface VideoRegion { 'endpoint' : v1 . skill . Manifest . SkillManifestEndpoint ; /**
         * The channel through which the partner skill can communicate to Alexa.
         */ 'upchannel' ? : Array < v1 . skill . Manifest . UpChannelItems > ; } } export namespace v1 . skill . Manifest { enum export type ViewportMode = 'HUB' | 'TV' | 'MOBILE' | 'PC' | 'AUTO' ; } export namespace v1 . skill . Manifest { enum export type ViewportShape = 'RECTANGLE' | 'ROUND' ; } export namespace v1 . skill . Manifest { interface export interface ViewportSpecification { 'mode' : v1 . skill . Manifest . ViewportMode ; 'shape' : v1 . skill . Manifest . ViewportShape ; /**
         * Defines the minimum width of viewport that comply with this specification.
         */ 'minWidth' ? : number ; /**
         * Defines the maximum width of viewport that comply with this specification.
         */ 'maxWidth' ? : number ; /**
         * Defines the minimum height of viewport that comply with this specification.
         */ 'minHeight' ? : number ; /**
         * Defines the maximum height of viewport that comply with this specification.
         */ 'maxHeight' ? : number ; } } export namespace v1 . skill { interface export interface ManifestLastUpdateRequest { 'status' ? : v1 . skill . Status ; 'errors' ? : Array < v1 . skill . StandardizedError > ; 'warnings' ? : Array < v1 . skill . StandardizedError > ; /**
         * on success, this field indicates the created version.
         */ 'version' ? : string ; } } export namespace v1 . skill { interface export interface ManifestStatus { 'lastUpdateRequest' ? : v1 . skill . ManifestLastUpdateRequest ; /**
         * An opaque identifier for last successfully updated resource.
         */ 'eTag' ? : string ; } } export namespace v1 . skill { enum export type OverwriteMode = 'DO_NOT_OVERWRITE' | 'OVERWRITE' ; } export namespace v1 . skill . Private { enum export type AcceptStatus = 'ACCEPTED' | 'PENDING' ; } export namespace v1 . skill . Private { interface export interface ListPrivateDistributionAccountsResponse { '_links' ? : v1 . Links ; /**
         * List of PrivateDistributionAccounts.
         */ 'privateDistributionAccounts' ? : Array < v1 . skill . Private . PrivateDistributionAccount > ; 'nextToken' ? : string ; } } export namespace v1 . skill . Private { interface export interface PrivateDistributionAccount { /**
         * 12-digit numerical account ID for AWS account holders.
         */ 'principal' ? : string ; 'acceptStatus' ? : v1 . skill . Private . AcceptStatus ; } } export namespace v1 . skill { enum export type PublicationMethod = 'MANUAL_PUBLISHING' | 'AUTO_PUBLISHING' ; } export namespace v1 . skill { enum export type PublicationStatus = 'DEVELOPMENT' | 'CERTIFICATION' | 'CERTIFIED' | 'PUBLISHED' | 'HIDDEN' | 'REMOVED' ; } export namespace v1 . skill { enum export type Reason = 'TEST_SKILL' | 'MORE_FEATURES' | 'DISCOVERED_ISSUE' | 'NOT_RECEIVED_CERTIFICATION_FEEDBACK' | 'NOT_INTEND_TO_PUBLISH' | 'OTHER' ; } export namespace v1 . skill { interface export interface RegionalSSLCertificate { 'sslCertificate' ? : string ; } } export namespace v1 . skill { interface export interface ResourceImportStatus { /**
         * Resource name. eg. manifest, interactionModels.en_US and so on.
         */ 'name' ? : string ; 'status' : v1 . skill . ResponseStatus ; 'action' ? : v1 . skill . Action ; 'errors' ? : Array < v1 . skill . StandardizedError > ; 'warnings' ? : Array < v1 . skill . StandardizedError > ; } } export namespace v1 . skill { enum export type ResponseStatus = 'FAILED' | 'IN_PROGRESS' | 'SUCCEEDED' | 'ROLLBACK_SUCCEEDED' | 'ROLLBACK_FAILED' | 'SKIPPED' ; } export namespace v1 . skill { interface export interface RollbackRequestStatus { /**
         * rollback request id
         */ 'id' ? : string ; /**
         * The target skill version to rollback to.
         */ 'targetVersion' ? : string ; 'submissionTime' ? : string ; 'status' ? : v1 . skill . RollbackRequestStatusTypes ; 'errors' ? : Array < v1 . skill . StandardizedError > ; } } export namespace v1 . skill { enum export type RollbackRequestStatusTypes = 'FAILED' | 'INELIGIBLE' | 'IN_PROGRESS' | 'SUCCEEDED' ; } export namespace v1 . skill { interface export interface SSLCertificatePayload { /**
         * The default ssl certificate for the skill. If a request is made for a region without an explicit ssl certificate, this certificate will be used.
         */ 'sslCertificate' ? : string ; /**
         * A map of region to ssl certificate. Keys are string region codes (https://developer.amazon.com/docs/smapi/skill-manifest.html#regions), values are regional ssl certificate objects which contain the ssl certificate blobs as strings.
         */ 'regions' ? : { [ key ] : v1 . skill . RegionalSSLCertificate ; } ; } } export namespace v1 . skill { interface export interface SkillCredentials { 'skillMessagingCredentials' ? : v1 . skill . SkillMessagingCredentials ; } } export namespace v1 . skill { interface export interface SkillInteractionModelStatus { 'lastUpdateRequest' ? : v1 . skill . InteractionModelLastUpdateRequest ; /**
         * An opaque identifier for last successfully updated resource.
         */ 'eTag' ? : string ; /**
         * Version for last successfully built model.
         */ 'version' ? : string ; } } export namespace v1 . skill { interface export interface SkillMessagingCredentials { /**
         * The client id for the security profile.
         */ 'clientId' ? : string ; /**
         * The client secret for the security profile.
         */ 'clientSecret' ? : string ; } } export namespace v1 . skill { interface export interface SkillStatus { 'manifest' ? : v1 . skill . ManifestStatus ; /**
         * Status for available interaction models, keyed by locale.
         */ 'interactionModel' ? : { [ key ] : v1 . skill . SkillInteractionModelStatus ; } ; 'hostedSkillDeployment' ? : v1 . skill . HostedSkillDeploymentStatus ; 'hostedSkillProvisioning' ? : v1 . skill . HostedSkillProvisioningStatus ; } } export namespace v1 . skill { interface export interface SkillSummary { 'skillId' ? : string ; 'stage' ? : v1 . StageV2Type ; /**
         * List of APIs currently implemented by the skill.
         */ 'apis' ? : Array < v1 . skill . SkillSummaryApis > ; 'publicationStatus' ? : v1 . skill . PublicationStatus ; 'lastUpdated' ? : string ; /**
         * Name of the skill in skill locales (keys are locale names (e.g. 'en-US') whereas values are name of the skill in that locale.
         */ 'nameByLocale' ? : { [ key ] : string ; } ; /**
         * Amazon Standard Identification Number (ASIN) is unique blocks of 10 letters and/or numbers that identify items. More info about ASIN can be found here: https://www.amazon.com/gp/seller/asin-upc-isbn-info.html ASIN is available for those skills only, that have been published, at least once.
         */ 'asin' ? : string ; '_links' ? : v1 . Links ; } } export namespace v1 . skill { enum export type SkillSummaryApis = 'custom' | 'smartHome' | 'flashBriefing' | 'video' | 'music' | 'householdList' | 'health' | 'alexaForBusiness' | 'demandResponse' ; } export namespace v1 . skill { interface export interface SkillVersion { 'version' ? : string ; /**
         * Description of the version (limited to 300 characters).
         */ 'message' ? : string ; 'creationTime' ? : string ; /**
         * List of submissions for the skill version
         */ 'submissions' ? : Array < v1 . skill . VersionSubmission > ; } } export namespace v1 . skill { interface export interface StandardizedError { /**
         * Standardized, machine readable structure that wraps all the information about a specific occurrence of an error of the type specified by the code.
         */ 'validationDetails' ? : v1 . skill . ValidationDetails ; /**
         * Error code that maps to an error message. Developers with different locales should be able to lookup the error description based on this code.
         */ 'code' ? : string ; /**
         * Readable description of error. If standardized, this is generated from the error code and validation details.
         */ 'message' : string ; } } export namespace v1 . skill { enum export type Status = 'FAILED' | 'IN_PROGRESS' | 'SUCCEEDED' ; } export namespace v1 . skill { interface export interface SubmitSkillForCertificationRequest { 'publicationMethod' ? : v1 . skill . PublicationMethod ; /**
         * Description of the version (limited to 300 characters).
         */ 'versionMessage' ? : string ; } } export namespace v1 . skill { interface export interface UploadResponse { /**
         * The upload URL to upload a skill package.
         */ 'uploadUrl' ? : string ; /**
         * The expiration time of the URL
         */ 'expiresAt' ? : string ; } } export namespace v1 . skill { enum export type ValidationDataTypes = 'object' | 'boolean' | 'integer' | 'array' | 'string' | 'null' ; } export namespace v1 . skill { interface export interface ValidationEndpoint { /**
         * Path to the endpoint URI in the resource.
         */ 'propertyPath' ? : string ; /**
         * Type of the endpoint (https, http, arn etc).
         */ 'type' ? : string ; /**
         * Full URI of the endpoint.
         */ 'value' ? : string ; } } export namespace v1 . skill { interface export interface ValidationFailureReason { /**
         * Enum for type of validation failure in the request.
         */ 'type' ? : v1 . skill . ValidationFailureType ; } } export namespace v1 . skill { enum export type ValidationFailureType = 'RESOURCE_DOES_NOT_EXIST' | 'RESOURCE_VERSION_DOES_NOT_MATCH' | 'MALFORMED_INPUT' | 'EXPECTED_NOT_EMPTY_VALUE' | 'INVALID_NUMBER_OF_OCCURENCES' | 'INVALID_NUMBER_OF_PROPERTIES' | 'EXPECTED_ATLEAST_ONE_RELATED_INSTANCE' | 'EXPECTED_EXACTLY_ONE_RELATED_INSTANCE' | 'RESOURCE_LOCKED' | 'UNEXPECTED_RESOURCE_STAGE' | 'UNEXPECTED_RESOURCE_PROPERTY' | 'MISSING_RESOURCE_PROPERTY' ; } export namespace v1 . skill { interface export interface ValidationFeature { /**
         * Name of the feature.
         */ 'name' ? : string ; /**
         * Contact URL or email for the feature.
         */ 'contact' ? : string ; } } export namespace v1 . skill { interface export interface VersionSubmission { 'status' ? : v1 . skill . VersionSubmissionStatus ; 'submissionTime' ? : string ; } } export namespace v1 . skill { enum export type VersionSubmissionStatus = 'LIVE' | 'CERTIFIED' | 'IN_REVIEW' | 'FAILED_CERTIFICATION' | 'HIDDEN' | 'REMOVED' | 'WITHDRAWN_FROM_CERTIFICATION' ; } export namespace v1 . skill { interface export interface WithdrawRequest { 'reason' : v1 . skill . Reason ; /**
         * The message only in case the reason in OTHER.
         */ 'message' ? : string ; } } export namespace v1 . skill . accountLinking { enum export type AccessTokenSchemeType = 'HTTP_BASIC' | 'REQUEST_BODY_CREDENTIALS' ; } export namespace v1 . skill . accountLinking { interface export interface AccountLinkingPlatformAuthorizationUrl { 'platformType' : v1 . skill . accountLinking . PlatformType ; /**
         * Defines the OAuth2 Authorization URL that will be used in this platform to authenticate the customer / person.
         */ 'platformAuthorizationUrl' : string ; } } export namespace v1 . skill . accountLinking { interface export interface AccountLinkingRequest { 'accountLinkingRequest' ? : v1 . skill . accountLinking . AccountLinkingRequestPayload ; } } export namespace v1 . skill . accountLinking { interface export interface AccountLinkingRequestPayload { 'type' ? : v1 . skill . accountLinking . AccountLinkingType ; /**
         * The url where customers will be redirected in the companion app to enter login credentials.
         */ 'authorizationUrl' ? : string ; /**
         * The list of domains that the authorization URL will fetch content from.
         */ 'domains' ? : Array < string > ; /**
         * The unique public string used to identify the client requesting for authentication.
         */ 'clientId' ? : string ; /**
         * The list of permissions which will be requested from the skill user.
         */ 'scopes' ? : Array < string > ; /**
         * The url used for access token and token refresh requests.
         */ 'accessTokenUrl' ? : string ; /**
         * The client secret provided by developer.
         */ 'clientSecret' ? : string ; 'accessTokenScheme' ? : v1 . skill . accountLinking . AccessTokenSchemeType ; /**
         * The time in seconds for which access token is valid. If OAuth client returns \"expires_in\", it will be overwrite this parameter.
         */ 'defaultTokenExpirationInSeconds' ? : number ; /**
         * Optional, if your skill requires reciprocal authorization, provide this additional access token url to handle reciprocal (Alexa) authorization codes that can be exchanged for Alexa access tokens.
         */ 'reciprocalAccessTokenUrl' ? : string ; /**
         * The list of valid urls to redirect back to, when the linking process is initiated from a third party system.
         */ 'redirectUrls' ? : Array < string > ; /**
         * The list of valid authorization urls for allowed platforms to initiate account linking.
         */ 'authorizationUrlsByPlatform' ? : Array < v1 . skill . accountLinking . AccountLinkingPlatformAuthorizationUrl > ; /**
         * Set to true to let users enable the skill without starting the account linking flow. Set to false to require the normal account linking flow when users enable the skill.
         */ 'skipOnEnablement' ? : boolean ; } } export namespace v1 . skill . accountLinking { interface export interface AccountLinkingResponse { 'type' ? : v1 . skill . accountLinking . AccountLinkingType ; /**
         * The url where customers will be redirected in the companion app to enter login credentials.
         */ 'authorizationUrl' ? : string ; /**
         * The list of domains that the authorization URL will fetch content from.
         */ 'domains' ? : Array < string > ; /**
         * The unique public string used to identify the client requesting for authentication.
         */ 'clientId' ? : string ; /**
         * The list of permissions which will be requested from the skill user.
         */ 'scopes' ? : Array < string > ; /**
         * The url used for access token and token refresh requests.
         */ 'accessTokenUrl' ? : string ; 'accessTokenScheme' ? : v1 . skill . accountLinking . AccessTokenSchemeType ; /**
         * The time in seconds for which access token is valid. If OAuth client returns \"expires_in\", it will be overwrite this parameter.
         */ 'defaultTokenExpirationInSeconds' ? : number ; /**
         * The list of valid urls to redirect back to, when the linking process is initiated from a third party system.
         */ 'redirectUrls' ? : Array < string > ; /**
         * The list of valid authorization urls for allowed platforms to initiate account linking.
         */ 'authorizationUrlsByPlatform' ? : Array < v1 . skill . accountLinking . AccountLinkingPlatformAuthorizationUrl > ; } } export namespace v1 . skill . accountLinking { enum export type AccountLinkingType = 'AUTH_CODE' | 'IMPLICIT' ; } export namespace v1 . skill . accountLinking { enum export type PlatformType = 'iOS' | 'Android' ; } export namespace v1 . skill . asr . annotationSets { interface export interface Annotation { /**
         * Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present.
         */ 'uploadId' ? : string ; /**
         * File path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. Required to be present when expectedTranscription is missing. When filePathInUpload is present, uploadId must also be present.
         */ 'filePathInUpload' ? : string ; /**
         * Weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate.  The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight  impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results  show that only the first annotation test case passed while the rest of the test cases failed. In this case,  the overall error rate is (8 / (8 + 1 + 1)) = 0.8
         */ 'evaluationWeight' ? : number ; /**
         * Expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters. Required to be present when uploadId and filePathInUpload are missing.
         */ 'expectedTranscription' ? : string ; } } export namespace v1 . skill . asr . annotationSets { interface export interface AnnotationSetMetadata { /**
         * Name of the ASR annotation set
         */ 'name' : string ; /**
         * Number of annotations within an annotation set
         */ 'annotationCount' : number ; /**
         * The timestamp for the most recent update of ASR annotation set
         */ 'lastUpdatedTimestamp' : string ; /**
         * Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight.
         */ 'eligibleForEvaluation' ? : boolean ; } } export namespace v1 . skill . asr . annotationSets { interface export interface AudioAsset { /**
         * S3 presigned download url for downloading the audio file
         */ 'downloadUrl' : string ; /**
         * Timestamp when the audio download url expire in ISO 8601 format
         */ 'expiryTime' : string ; } } export namespace v1 . skill . asr . annotationSets { interface export interface CreateAsrAnnotationSetRequestObject { /**
         * The name of ASR annotation set. The length of the name cannot exceed 170 chars. Only alphanumeric characters are accepted.
         */ 'name' : string ; } } export namespace v1 . skill . asr . annotationSets { interface export interface CreateAsrAnnotationSetResponse { /**
         * ID used to retrieve the ASR annotation set.
         */ 'id' : string ; } } export namespace v1 . skill . asr . annotationSets { interface export interface GetAsrAnnotationSetAnnotationsResponse { 'annotations' : Array < v1 . skill . asr . annotationSets . AnnotationWithAudioAsset > ; 'paginationContext' ? : v1 . skill . asr . annotationSets . PaginationContext ; } } export namespace v1 . skill . asr . annotationSets { interface export interface ListASRAnnotationSetsResponse { 'annotationSets' : Array < v1 . skill . asr . annotationSets . AnnotationSetItems > ; 'paginationContext' ? : v1 . skill . asr . annotationSets . PaginationContext ; } } export namespace v1 . skill . asr . annotationSets { interface export interface PaginationContext { /**
         * The page token, this should be passed as a `nextToken` query parameter to the API to retrieve more items. If this field is not present the end of all of the items was reached. If a `maxResults` query parameter was specified then no more than `maxResults` items are returned.
         */ 'nextToken' : string ; } } export namespace v1 . skill . asr . annotationSets { interface export interface UpdateAsrAnnotationSetContentsPayload { 'annotations' : Array < v1 . skill . asr . annotationSets . Annotation > ; } } export namespace v1 . skill . asr . annotationSets { interface export interface UpdateAsrAnnotationSetPropertiesRequestObject { /**
         * The name of ASR annotation set. The length of the name cannot exceed 170 chars. Only alphanumeric characters are accepted.
         */ 'name' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface Annotation { /**
         * upload id obtained when developer creates an upload using catalog API
         */ 'uploadId' : string ; /**
         * file path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories.
         */ 'filePathInUpload' : string ; /**
         * weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate.  The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight  impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results  show that only the first annotation test case passed while the rest of the test cases failed. In this case,  the overall error rate is (8 / (8 + 1 + 1)) = 0.8
         */ 'evaluationWeight' : number ; /**
         * expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters
         */ 'expectedTranscription' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface AudioAsset { /**
         * S3 presigned download url for downloading the audio file
         */ 'downloadUrl' : string ; /**
         * timestamp when the audio download url expire in ISO 8601 format
         */ 'expiryTime' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface ErrorObject { /**
         * human-readable error message
         */ 'message' : string ; /**
         * machine-readable error code
         */ 'code' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface EvaluationMetadata { 'status' : v1 . skill . asr . evaluations . EvaluationStatus ; /**
         * indicate the total number of evaluations that are supposed to be run in the evaluation request
         */ 'totalEvaluationCount' : number ; /**
         * indicate the number of completed evaluations
         */ 'completedEvaluationCount' : number ; /**
         * indicate the start time stamp of the ASR evaluation job. ISO-8601 Format.
         */ 'startTimestamp' : string ; 'request' : v1 . skill . asr . evaluations . PostAsrEvaluationsRequestObject ; 'error' ? : v1 . skill . asr . evaluations . ErrorObject ; 'result' ? : v1 . skill . asr . evaluations . EvaluationMetadataResult ; } } export namespace v1 . skill . asr . evaluations { interface export interface EvaluationMetadataResult { 'status' : v1 . skill . asr . evaluations . EvaluationResultStatus ; 'metrics' : v1 . skill . asr . evaluations . Metrics ; } } export namespace v1 . skill . asr . evaluations { interface export interface EvaluationResult { 'status' : v1 . skill . asr . evaluations . EvaluationResultStatus ; 'annotation' : v1 . skill . asr . evaluations . AnnotationWithAudioAsset ; 'output' ? : v1 . skill . asr . evaluations . EvaluationResultOutput ; 'error' ? : v1 . skill . asr . evaluations . ErrorObject ; } } export namespace v1 . skill . asr . evaluations { interface export interface EvaluationResultOutput { /**
         * actual transcription returned from ASR for the audio
         */ 'transcription' : string ; } } export namespace v1 . skill . asr . evaluations { enum export type EvaluationResultStatus = 'PASSED' | 'FAILED' ; } export namespace v1 . skill . asr . evaluations { enum export type EvaluationStatus = 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' ; } export namespace v1 . skill . asr . evaluations { interface export interface GetAsrEvaluationsResultsResponse { /**
         * array containing all evaluation results.
         */ 'results' : Array < v1 . skill . asr . evaluations . EvaluationResult > ; 'paginationContext' ? : v1 . skill . asr . evaluations . PaginationContext ; } } export namespace v1 . skill . asr . evaluations { interface export interface ListAsrEvaluationsResponse { /**
         * an array containing all evaluations that have ever run by developers based on the filter criteria defined in the request
         */ 'evaluations' : Array < v1 . skill . asr . evaluations . EvaluationItems > ; 'paginationContext' ? : v1 . skill . asr . evaluations . PaginationContext ; } } export namespace v1 . skill . asr . evaluations { interface export interface Metrics { /**
         * overall error rate for the ASR evaluation run
         */ 'overallErrorRate' : number ; } } export namespace v1 . skill . asr . evaluations { interface export interface PaginationContext { /**
         * The page token, this should be passed as a `nextToken` query parameter to the API to retrieve more items. If this field is not present the end of all of the items was reached. If a `maxResults` query parameter was specified then no more than `maxResults` items are returned.
         */ 'nextToken' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface PostAsrEvaluationsRequestObject { 'skill' : v1 . skill . asr . evaluations . Skill ; /**
         * ID for annotation set
         */ 'annotationSetId' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface PostAsrEvaluationsResponseObject { /**
         * ID used to retrieve the evaluation status/results later.
         */ 'id' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface Skill { 'stage' : v1 . StageType ; /**
         * skill locale in bcp 47 format
         */ 'locale' : string ; } } export namespace v1 . skill . betaTest { interface export interface BetaTest { /**
         * Expiry date of the beta test.
         */ 'expiryDate' ? : string ; 'status' ? : v1 . skill . betaTest . Status ; /**
         * Email address for providing feedback
         */ 'feedbackEmail' ? : string ; /**
         * Deeplinking for getting authorized to the beta test.
         */ 'invitationUrl' ? : string ; /**
         * Remaining invite count for the beta test.
         */ 'invitesRemaining' ? : number ; } } export namespace v1 . skill . betaTest { enum export type Status = 'IN_DRAFT' | 'STARTING' | 'RUNNING' | 'STOPPING' | 'ENDED' ; } export namespace v1 . skill . betaTest { interface export interface TestBody { /**
         * Email address for providing feedback.
         */ 'feedbackEmail' ? : string ; } } export namespace v1 . skill . betaTest { interface export interface UpdateBetaTestResponse { } } export namespace v1 . skill . betaTest . testers { enum export type InvitationStatus = 'ACCEPTED' | 'NOT_ACCEPTED' ; } export namespace v1 . skill . betaTest . testers { interface export interface ListTestersResponse { 'testers' ? : Array < v1 . skill . betaTest . testers . TesterWithDetails > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; } } export namespace v1 . skill . betaTest . testers { interface export interface Tester { /**
         * Email address of the tester.
         */ 'emailId' ? : string ; } } export namespace v1 . skill . betaTest . testers { interface export interface TesterWithDetails { /**
         * Email address of the tester.
         */ 'emailId' ? : string ; /**
         * Date and time when the tester is added to the beta test.
         */ 'associationDate' ? : string ; /**
         * Indicates whether the tester is allowed to be sent reminder.
         */ 'isReminderAllowed' ? : boolean ; 'invitationStatus' ? : v1 . skill . betaTest . testers . InvitationStatus ; } } export namespace v1 . skill . betaTest . testers { interface export interface TestersList { /**
         * List of the email address of testers.
         */ 'testers' ? : Array < v1 . skill . betaTest . testers . Tester > ; } } export namespace v1 . skill . certification { interface export interface CertificationResponse { /**
         * Certification Id for the skill
         */ 'id' ? : string ; 'status' ? : v1 . skill . certification . CertificationStatus ; /**
         * Timestamp for when the skill was submitted for certification.
         */ 'skillSubmissionTimestamp' ? : string ; 'reviewTrackingInfo' ? : v1 . skill . certification . ReviewTrackingInfo ; 'result' ? : v1 . skill . certification . CertificationResult ; } } export namespace v1 . skill . certification { interface export interface CertificationResult { 'distributionInfo' ? : v1 . skill . certification . DistributionInfo ; } } export namespace v1 . skill . certification { enum export type CertificationStatus = 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED' ; } export namespace v1 . skill . certification { interface export interface CertificationSummary { /**
         * Certification Id for the skill.
         */ 'id' ? : string ; 'status' ? : v1 . skill . certification . CertificationStatus ; /**
         * Timestamp for when the skill was submitted for certification.
         */ 'skillSubmissionTimestamp' ? : string ; 'reviewTrackingInfo' ? : v1 . skill . certification . ReviewTrackingInfoSummary ; } } export namespace v1 . skill . certification { interface export interface DistributionInfo { /**
         * All countries where the skill was published in by Amazon.
         */ 'publishedCountries' ? : Array < string > ; 'publicationFailures' ? : Array < v1 . skill . certification . PublicationFailure > ; } } export namespace v1 . skill . certification { interface export interface EstimationUpdate { /**
         * Timestamp for originally estimated completion of certification review for the skill.
         */ 'originalEstimatedCompletionTimestamp' ? : string ; /**
         * Timestamp for originally estimated completion of certification review for the skill.
         */ 'revisedEstimatedCompletionTimestamp' ? : string ; /**
         * Reason for updates to estimates for certification review
         */ 'reason' ? : string ; } } export namespace v1 . skill . certification { interface export interface ListCertificationsResponse { '_links' ? : v1 . Links ; /**
         * boolean value for if the response is truncated. isTruncated = true if more than the assigned maxResults parameter value certification items are available for the skill. The results are then paginated and the remaining results can be retrieved in a similar paginated manner by using 'next' link in the _links or using the nextToken in a following request.
         */ 'isTruncated' ? : boolean ; /**
         * Encrypted token present when isTruncated is true.
         */ 'nextToken' ? : string ; /**
         * Total number of certification results available for the skill.
         */ 'totalCount' ? : number ; /**
         * List of certifications available for a skill. The list of certifications is sorted in a default descending sort order on id field.
         */ 'items' ? : Array < v1 . skill . certification . CertificationSummary > ; } } export namespace v1 . skill . certification { interface export interface PublicationFailure { /**
         * Reason why Amazon did not publish the skill in certain countries.
         */ 'reason' ? : string ; /**
         * List of countries where Amazon did not publish the skill for a specific reason
         */ 'countries' ? : Array < string > ; } } export namespace v1 . skill . certification { interface export interface ReviewTrackingInfo { /**
         * Timestamp for estimated completion of certification review for the skill.
         */ 'estimatedCompletionTimestamp' ? : string ; /**
         * Timestamp for actual completion of certification review for the skill.
         */ 'actualCompletionTimestamp' ? : string ; /**
         * Timestamp for when the last update was made to review tracking info.
         */ 'lastUpdated' ? : string ; /**
         * List of updates to estimation completion time for certification review for the skill.
         */ 'estimationUpdates' ? : Array < v1 . skill . certification . EstimationUpdate > ; } } export namespace v1 . skill . certification { interface export interface ReviewTrackingInfoSummary { /**
         * Timestamp for estimated completion of certification review for the skill.
         */ 'estimatedCompletionTimestamp' ? : string ; /**
         * Timestamp for actual completion of certification review workflow for the skill.
         */ 'actualCompletionTimestamp' ? : string ; /**
         * Timestamp for when the last update was made to review tracking info.
         */ 'lastUpdated' ? : string ; } } export namespace v1 . skill { interface export interface CreateSkillRequest { /**
         * ID of the vendor owning the skill.
         */ 'vendorId' ? : string ; 'manifest' ? : v1 . skill . Manifest . SkillManifest ; 'hosting' ? : v1 . skill . AlexaHosted . HostingConfiguration ; } } export namespace v1 . skill { interface export interface CreateSkillWithPackageRequest { /**
         * ID of the vendor owning the skill.
         */ 'vendorId' ? : string ; /**
         * The URL for the skill package.
         */ 'location' : string ; } } export namespace v1 . skill . evaluations { enum export type ConfirmationStatusType = 'NONE' | 'CONFIRMED' | 'DENIED' ; } export namespace v1 . skill . evaluations { interface export interface DialogAct { 'type' ? : v1 . skill . evaluations . DialogActType ; /**
         * The name of the target slot that needs to be filled or confirmed for a dialogAct
         */ 'targetSlot' ? : string ; } } export namespace v1 . skill . evaluations { enum export type DialogActType = 'Dialog.ElicitSlot' | 'Dialog.ConfirmSlot' | 'Dialog.ConfirmIntent' ; } export namespace v1 . skill . evaluations { interface export interface Intent { 'name' ? : string ; 'confirmationStatus' ? : v1 . skill . evaluations . ConfirmationStatusType ; /**
         * A map of key-value pairs that further describes what the user meant based on a predefined intent schema. The map can be empty.
         */ 'slots' ? : { [ key ] : v1 . skill . evaluations . Slot ; } ; } } export namespace v1 . skill . evaluations { interface export interface MultiTurn { 'dialogAct' ? : v1 . skill . evaluations . DialogAct ; /**
         * Opaque string which contains multi-turn related context.
         */ 'token' ? : string ; /**
         * A sample prompt defined in the dialog model for each DialogAct.
         */ 'prompt' ? : string ; } } export namespace v1 . skill . evaluations { interface export interface ProfileNluRequest { /**
         * Actual representation of user input to Alexa.
         */ 'utterance' : string ; /**
         * Opaque string which contains multi-turn related context.
         */ 'multiTurnToken' ? : string ; } } export namespace v1 . skill . evaluations { interface export interface ProfileNluResponse { /**
         * Represents when an utterance results in the skill exiting. It would be true when NLU selects 1P ExitAppIntent or GoHomeIntent, and false otherwise.
         */ 'sessionEnded' ? : boolean ; 'selectedIntent' ? : v1 . skill . evaluations . ProfileNluSelectedIntent ; /**
         * All intents that Alexa considered for the utterance in the request, but did not select.
         */ 'consideredIntents' ? : Array < v1 . skill . evaluations . Intent > ; 'multiTurn' ? : v1 . skill . evaluations . MultiTurn ; } } export namespace v1 . skill . evaluations { interface export interface ResolutionsPerAuthorityItems { /**
         * The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name.
         */ 'authority' ? : string ; 'status' ? : v1 . skill . evaluations . ResolutionsPerAuthorityStatus ; /**
         * An array of resolved values for the slot.
         */ 'values' ? : Array < v1 . skill . evaluations . ResolutionsPerAuthorityValueItems > ; } } export namespace v1 . skill . evaluations { interface export interface ResolutionsPerAuthorityStatus { 'code' ? : v1 . skill . evaluations . ResolutionsPerAuthorityStatusCode ; } } export namespace v1 . skill . evaluations { enum export type ResolutionsPerAuthorityStatusCode = 'ER_SUCCESS_MATCH' | 'ER_SUCCESS_NO_MATCH' | 'ER_ERROR_TIMEOUT' | 'ER_ERROR_EXCEPTION' ; } export namespace v1 . skill . evaluations { interface export interface ResolutionsPerAuthorityValueItems { /**
         * The string for the resolved slot value.
         */ 'name' ? : string ; /**
         * The unique ID defined for the resolved slot value. This is based on the IDs defined in the slot type definition.
         */ 'id' ? : string ; } } export namespace v1 . skill . evaluations { interface export interface Slot { 'name' ? : string ; 'value' ? : string ; 'confirmationStatus' ? : v1 . skill . evaluations . ConfirmationStatusType ; 'resolutions' ? : v1 . skill . evaluations . SlotResolutions ; } } export namespace v1 . skill . evaluations { interface export interface SlotResolutions { /**
         * An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined.
         */ 'resolutionsPerAuthority' ? : Array < v1 . skill . evaluations . ResolutionsPerAuthorityItems > ; } } export namespace v1 . skill . history { interface export interface Confidence { 'bin' ? : v1 . skill . history . ConfidenceBin ; } } export namespace v1 . skill . history { enum export type ConfidenceBin = 'HIGH' | 'MEDIUM' | 'LOW' ; } export namespace v1 . skill . history { interface export interface DialogAct { 'name' ? : v1 . skill . history . DialogActName ; } } export namespace v1 . skill . history { enum export type DialogActName = 'Dialog.ElicitSlot' | 'Dialog.ConfirmSlot' | 'Dialog.ConfirmIntent' ; } export namespace v1 . skill . history { interface export interface Intent { /**
         * The hypothesized intent for this utterance.
         */ 'name' ? : string ; 'confidence' ? : v1 . skill . history . Confidence ; /**
         * The hypothesized slot(s) for this interaction.
         */ 'slots' ? : { [ key ] : v1 . skill . history . Slot ; } ; } } export namespace v1 . skill . history { enum export type IntentConfidenceBin = 'HIGH' | 'MEDIUM' | 'LOW' ; } export namespace v1 . skill . history { interface export interface IntentRequest { 'dialogAct' ? : v1 . skill . history . DialogAct ; 'intent' ? : v1 . skill . history . Intent ; 'interactionType' ? : v1 . skill . history . InteractionType ; 'locale' ? : v1 . skill . history . IntentRequestLocales ; 'publicationStatus' ? : v1 . skill . history . PublicationStatus ; 'stage' ? : v1 . StageType ; /**
         * The transcribed user speech.
         */ 'utteranceText' ? : string ; } } export namespace v1 . skill . history { enum export type IntentRequestLocales = 'en-US' | 'en-GB' | 'en-IN' | 'en-CA' | 'en-AU' | 'de-DE' | 'ja-JP' ; } export namespace v1 . skill . history { interface export interface IntentRequests { '_links' ? : v1 . Links ; /**
         * This token can be used to load the next page of the result.
         */ 'nextToken' ? : string ; /**
         * This property is true when all the results matching the search request haven't been returned, false otherwise.
         */ 'isTruncated' ? : boolean ; /**
         * Total number of records that matched the given search query.
         */ 'totalCount' ? : number ; /**
         * Position of the current page in the result set.
         */ 'startIndex' ? : number ; /**
         * The Skill Id.
         */ 'skillId' ? : string ; /**
         * List of intent requests for the skill
         */ 'items' ? : Array < v1 . skill . history . IntentRequest > ; } } export namespace v1 . skill . history { enum export type InteractionType = 'ONE_SHOT' | 'MODAL' ; } export namespace v1 . skill . history { enum export type PublicationStatus = 'Development' | 'Certification' ; } export namespace v1 . skill . history { interface export interface Slot { /**
         * Name of the slot that was used in this interaction.
         */ 'name' ? : string ; } } export namespace v1 . skill . history { enum export type LocaleInQuery = 'en-US' | 'en-GB' | 'en-IN' | 'en-CA' | 'en-AU' | 'de-DE' | 'ja-JP' ; } export namespace v1 . skill . history { enum export type SortFieldForIntentRequestType = 'recordCount' | 'intent.name' | 'intent.confidence.bin' | 'stage' | 'dialogAct.name' | 'locale' | 'utteranceText' | 'publicationStatus' | 'interactionType' ; } export namespace v1 . skill { interface export interface ImageAttributes { 'dimension' ? : v1 . skill . ImageDimension ; 'size' ? : v1 . skill . ImageSize ; 'maximumSize' ? : v1 . skill . ImageSize ; } } export namespace v1 . skill . interactionModel { enum export type DelegationStrategyType = 'ALWAYS' | 'SKILL_RESPONSE' ; } export namespace v1 . skill . interactionModel { interface export interface Dialog { /**
         * Defines a delegation strategy for the dialogs in this dialog model.
         */ 'delegationStrategy' ? : v1 . skill . interactionModel . DelegationStrategyType ; /**
         * List of intents that have dialog rules associated with them. Dialogs can also span multiple intents.
         */ 'intents' : Array < v1 . skill . interactionModel . DialogIntents > ; } } export namespace v1 . skill . interactionModel { interface export interface DialogIntents { /**
         * Name of the intent that has a dialog specification.
         */ 'name' : string ; /**
         * Defines an intent-specific delegation strategy for this dialog intent. Overrides dialog-level setting.
         */ 'delegationStrategy' ? : v1 . skill . interactionModel . DelegationStrategyType ; /**
         * List of slots that have dialog rules.
         */ 'slots' ? : Array < v1 . skill . interactionModel . DialogSlotItems > ; /**
         * Describes whether confirmation of the intent is required.
         */ 'confirmationRequired' ? : boolean ; 'prompts' ? : v1 . skill . interactionModel . DialogIntentsPrompts ; } } export namespace v1 . skill . interactionModel { interface export interface DialogIntentsPrompts { /**
         * Enum value in the dialog_slots map to reference the elicitation prompt id.
         */ 'elicitation' ? : string ; /**
         * Enum value in the dialog_slots map to reference the confirmation prompt id.
         */ 'confirmation' ? : string ; } } export namespace v1 . skill . interactionModel { interface export interface DialogPrompts { /**
         * Reference to a prompt-id to use If this slot value is missing.
         */ 'elicitation' ? : string ; /**
         * Reference to a prompt-id to use to confirm the slots value.
         */ 'confirmation' ? : string ; } } export namespace v1 . skill . interactionModel { interface export interface DialogSlotItems { /**
         * The name of the slot that has dialog rules associated with it.
         */ 'name' : string ; /**
         * Type of the slot in the dialog intent.
         */ 'type' : string ; /**
         * Describes whether elicitation of the slot is required.
         */ 'elicitationRequired' ? : boolean ; /**
         * Describes whether confirmation of the slot is required.
         */ 'confirmationRequired' ? : boolean ; 'prompts' : v1 . skill . interactionModel . DialogPrompts ; /**
         * List of validations for the slot. if validation fails, user will be prompted with the provided prompt.
         */ 'validations' ? : Array < v1 . skill . interactionModel . SlotValidation > ; } } export namespace v1 . skill . interactionModel { interface export interface FallbackIntentSensitivity { 'level' : v1 . skill . interactionModel . FallbackIntentSensitivityLevel ; } } export namespace v1 . skill . interactionModel { enum export type FallbackIntentSensitivityLevel = 'HIGH' | 'MEDIUM' | 'LOW' ; } export namespace v1 . skill . interactionModel { interface export interface Intent { /**
         * Name to identify the intent.
         */ 'name' : string ; /**
         * List of slots within the intent.
         */ 'slots' ? : Array < v1 . skill . interactionModel . SlotDefinition > ; /**
         * Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation.
         */ 'samples' ? : Array < string > ; } } export namespace v1 . skill . interactionModel { interface export interface InteractionModelData { 'version' ? : string ; 'description' ? : string ; 'interactionModel' : v1 . skill . interactionModel . InteractionModelSchema ; } } export namespace v1 . skill . interactionModel { interface export interface InteractionModelSchema { 'languageModel' : v1 . skill . interactionModel . LanguageModel ; 'dialog' ? : v1 . skill . interactionModel . Dialog ; /**
         * List of prompts.
         */ 'prompts' ? : Array < v1 . skill . interactionModel . Prompt > ; } } export namespace v1 . skill . interactionModel { interface export interface ModelConfiguration { 'fallbackIntentSensitivity' ? : v1 . skill . interactionModel . FallbackIntentSensitivity ; } } export namespace v1 . skill . interactionModel { interface export interface MultipleValuesConfig { /**
         * Boolean that indicates whether this slot can capture multiple values.
         */ 'enabled' : boolean ; } } export namespace v1 . skill . interactionModel { interface export interface Prompt { /**
         * The prompt id, this id can be used from dialog definitions.
         */ 'id' : string ; /**
         * List of variations of the prompt, each variation can be either a text string or a well defined ssml string depending on the type defined.
         */ 'variations' : Array < v1 . skill . interactionModel . PromptItems > ; } } export namespace v1 . skill . interactionModel { interface export interface PromptItems { 'type' ? : v1 . skill . interactionModel . PromptItemsType ; /**
         * Specifies the prompt.
         */ 'value' : string ; } } export namespace v1 . skill . interactionModel { enum export type PromptItemsType = 'SSML' | 'PlainText' ; } export namespace v1 . skill . interactionModel { interface export interface SlotDefinition { /**
         * The name of the slot.
         */ 'name' : string ; /**
         * The type of the slot. It can be a built-in or custom type.
         */ 'type' ? : string ; /**
         * Configuration object for multiple values capturing behavior for this slot.
         */ 'multipleValues' ? : v1 . skill . interactionModel . MultipleValuesConfig ; /**
         * Phrases the user can speak e.g. to trigger an intent or provide value for a slot elicitation.
         */ 'samples' ? : Array < string > ; } } export namespace v1 . skill . interactionModel { interface export interface SlotType { /**
         * The name of the custom slot type.
         */ 'name' : string ; /**
         * List of expected values. Values outside the list are still returned.
         */ 'values' ? : Array < v1 . skill . interactionModel . TypeValue > ; 'valueSupplier' ? : v1 . skill . interactionModel . ValueSupplier ; } } export namespace v1 . skill . interactionModel { interface export type SlotValidation = v1 . skill . interactionModel . HasEntityResolutionMatch | v1 . skill . interactionModel . IsLessThanOrEqualTo | v1 . skill . interactionModel . IsGreaterThan | v1 . skill . interactionModel . IsNotInSet | v1 . skill . interactionModel . IsInDuration | v1 . skill . interactionModel . IsLessThan | v1 . skill . interactionModel . IsNotInDuration | v1 . skill . interactionModel . IsGreaterThanOrEqualTo | v1 . skill . interactionModel . IsInSet ; } export namespace v1 . skill . interactionModel { interface export interface TypeValue { 'id' ? : string ; 'name' : v1 . skill . interactionModel . TypeValueObject ; } } export namespace v1 . skill . interactionModel { interface export interface TypeValueObject { 'value' : string ; 'synonyms' : Array < string > ; } } export namespace v1 . skill . interactionModel { interface export interface ValueCatalog { /**
         * CatalogId.
         */ 'catalogId' : string ; /**
         * Catalog version.
         */ 'version' : string ; } } export namespace v1 . skill . interactionModel { interface export type ValueSupplier = v1 . skill . interactionModel . CatalogValueSupplier | v1 . skill . interactionModel . InlineValueSupplier ; } export namespace v1 . skill . interactionModel . catalog { interface export interface CatalogDefinitionOutput { 'catalog' ? : v1 . skill . interactionModel . catalog . CatalogEntity ; /**
         * Time of the catalog definition creation.
         */ 'creationTime' ? : string ; /**
         * Total number of versions.
         */ 'totalVersions' ? : string ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface CatalogEntity { /**
         * Name of the catalog.
         */ 'name' ? : string ; /**
         * Description string about the catalog.
         */ 'description' ? : string ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface CatalogInput { /**
         * Name of the catalog.
         */ 'name' : string ; /**
         * Description string about the catalog.
         */ 'description' ? : string ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface CatalogItem { /**
         * Name of the catalog.
         */ 'name' ? : string ; /**
         * Description string about the catalog.
         */ 'description' ? : string ; /**
         * Identifier of the catalog, optional in get response as the request already has catalogId.
         */ 'catalogId' ? : string ; '_links' ? : v1 . Links ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface CatalogResponse { /**
         * ID of the catalog created.
         */ 'catalogId' ? : string ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface CatalogStatus { 'lastUpdateRequest' ? : v1 . skill . interactionModel . catalog . LastUpdateRequest ; } } export namespace v1 . skill . interactionModel . catalog { enum export type CatalogStatusType = 'FAILED' | 'IN_PROGRESS' | 'SUCCEEDED' ; } export namespace v1 . skill . interactionModel . catalog { interface export interface DefinitionData { 'catalog' : v1 . skill . interactionModel . catalog . CatalogInput ; /**
         * The vendorId that the catalog should belong to.
         */ 'vendorId' : string ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface LastUpdateRequest { 'status' ? : v1 . skill . interactionModel . catalog . CatalogStatusType ; /**
         * The version id of the entity returned.
         */ 'version' ? : string ; 'errors' ? : Array < v1 . skill . StandardizedError > ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface ListCatalogResponse { '_links' ? : v1 . Links ; /**
         * List of catalogs.
         */ 'catalogs' ? : Array < v1 . skill . interactionModel . catalog . CatalogItem > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; 'totalCount' ? : number ; } } export namespace v1 . skill . interactionModel . catalog { interface export interface UpdateRequest { /**
         * The catalog name.
         */ 'name' : string ; /**
         * The catalog description with a 255 character maximum.
         */ 'description' : string ; } } export namespace v1 . skill . interactionModel . conflictDetection { enum export type ConflictDetectionJobStatus = 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' ; } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface ConflictIntent { /**
         * Conflict intent name
         */ 'name' : string ; /**
         * List of conflict intent slots
         */ 'slots' ? : { [ key ] : v1 . skill . interactionModel . conflictDetection . ConflictIntentSlot ; } ; } } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface ConflictIntentSlot { 'value' ? : string ; 'type' : string ; } } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface ConflictResult { /**
         * Sample utterance provided by 3P developers for intents.
         */ 'sampleUtterance' : string ; 'intent' : v1 . skill . interactionModel . conflictDetection . ConflictIntent ; } } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface GetConflictDetectionJobStatusResponse { 'status' : v1 . skill . interactionModel . conflictDetection . ConflictDetectionJobStatus ; /**
         * The total number of conflicts within skill model.
         */ 'totalConflicts' ? : number ; } } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface GetConflictsResponseResult { /**
         * Utterance resolved from sample utterance that causes conflicts among different intents.
         */ 'conflictingUtterance' : string ; 'conflicts' : Array < v1 . skill . interactionModel . conflictDetection . ConflictResult > ; } } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface PagedResponse { 'paginationContext' ? : v1 . skill . interactionModel . conflictDetection . PaginationContext ; '_links' ? : v1 . Links ; } } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface PaginationContext { /**
         * A token returned if there are more results for the given inputs than `maxResults` from the request. It should also be used in the next request to retrieve more results.
         */ 'nextToken' ? : string ; /**
         * Total avaliable results for the given query.
         */ 'totalCount' ? : number ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface CreateJobDefinitionRequest { /**
         * ID of the vendor owning the skill.
         */ 'vendorId' ? : string ; 'jobDefinition' ? : v1 . skill . interactionModel . jobs . JobDefinition ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface CreateJobDefinitionResponse { /**
         * Idenitifier of the job definition.
         */ 'jobId' ? : string ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface DynamicUpdateError { /**
         * Dynamic update error code.
         */ 'code' ? : string ; /**
         * Readable description of error.
         */ 'message' ? : string ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface Execution { /**
         * Identifier of the execution.
         */ 'executionId' ? : string ; /**
         * ISO date-time timestamp when the execution starts.
         */ 'timestamp' ? : string ; /**
         * ErrorCode to explain what went wrong in case of FAILUREs.
         */ 'errorCode' ? : string ; /**
         * Current status of the job execution.
         */ 'status' ? : string ; 'errorDetails' ? : v1 . skill . interactionModel . jobs . JobErrorDetails ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface ExecutionMetadata { /**
         * Identifier of the job.
         */ 'jobId' ? : string ; /**
         * ErrorCode to explain what went wrong in case of FAILUREs.
         */ 'errorCode' ? : string ; /**
         * Current status of the job execution.
         */ 'status' ? : string ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface GetExecutionsResponse { 'paginationContext' ? : v1 . skill . interactionModel . jobs . JobAPIPaginationContext ; '_links' ? : v1 . Links ; 'executions' ? : Array < v1 . skill . interactionModel . jobs . Execution > ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface JobAPIPaginationContext { 'nextToken' ? : string ; } } export namespace v1 . skill . interactionModel . jobs { interface export type JobDefinition = v1 . skill . interactionModel . jobs . ReferenceVersionUpdate | v1 . skill . interactionModel . jobs . CatalogAutoRefresh ; } export namespace v1 . skill . interactionModel . jobs { interface export interface JobDefinitionMetadata { /**
         * Job identifier.
         */ 'id' ? : string ; /**
         * Polymorphic type of the job.
         */ 'type' ? : string ; 'status' ? : v1 . skill . interactionModel . jobs . JobDefinitionStatus ; } } export namespace v1 . skill . interactionModel . jobs { enum export type JobDefinitionStatus = 'DISABLED' | 'ENALBED' ; } export namespace v1 . skill . interactionModel . jobs { interface export interface JobErrorDetails { 'executionMetadata' ? : Array < v1 . skill . interactionModel . jobs . ExecutionMetadata > ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface ListJobDefinitionsResponse { 'paginationContext' ? : v1 . skill . interactionModel . jobs . JobAPIPaginationContext ; '_links' ? : v1 . Links ; 'jobs' ? : Array < v1 . skill . interactionModel . jobs . JobDefinitionMetadata > ; } } export namespace v1 . skill . interactionModel . jobs { interface export type ResourceObject = v1 . skill . interactionModel . jobs . InteractionModel | v1 . skill . interactionModel . jobs . Catalog | v1 . skill . interactionModel . jobs . SlotTypeReference ; } export namespace v1 . skill . interactionModel . jobs { interface export type Trigger = v1 . skill . interactionModel . jobs . ReferencedResourceJobsComplete | v1 . skill . interactionModel . jobs . Scheduled ; } export namespace v1 . skill . interactionModel . jobs { interface export interface UpdateJobStatusRequest { 'status' : v1 . skill . interactionModel . jobs . JobDefinitionStatus ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface ValidationErrors { /**
         * The list of errors.
         */ 'errors' ? : Array < v1 . skill . interactionModel . jobs . DynamicUpdateError > ; } } export namespace v1 . skill . interactionModel { interface export interface LanguageModel { /**
         * Invocation name of the skill.
         */ 'invocationName' : string ; 'types' ? : Array < v1 . skill . interactionModel . SlotType > ; 'intents' : Array < v1 . skill . interactionModel . Intent > ; 'modelConfiguration' ? : v1 . skill . interactionModel . ModelConfiguration ; } } export namespace v1 . skill . interactionModel . type { interface export interface DefinitionData { 'slotType' ? : v1 . skill . interactionModel . type . SlotTypeInput ; /**
         * The vendorId that the slot type should belong to.
         */ 'vendorId' ? : string ; } } export namespace v1 . skill . interactionModel . type { interface export interface Error { /**
         * The error code.
         */ 'code' ? : string ; /**
         * The error message.
         */ 'message' ? : string ; } } export namespace v1 . skill . interactionModel . type { interface export interface LastUpdateRequest { 'status' ? : v1 . skill . interactionModel . type . SlotTypeStatusType ; /**
         * The version id of the entity returned.
         */ 'version' ? : string ; 'errors' ? : Array < v1 . skill . interactionModel . type . Error > ; 'warnings' ? : Array < v1 . skill . interactionModel . type . Warning > ; } } export namespace v1 . skill . interactionModel . type { interface export interface ListSlotTypeResponse { '_links' ? : v1 . Links ; /**
         * List of slot types.
         */ 'slotTypes' ? : Array < v1 . skill . interactionModel . type . SlotTypeItem > ; 'nextToken' ? : string ; } } export namespace v1 . skill . interactionModel . type { interface export interface SlotTypeDefinitionOutput { 'slotType' ? : v1 . skill . interactionModel . type . SlotTypeInput ; /**
         * Total number of versions.
         */ 'totalVersions' ? : string ; } } export namespace v1 . skill . interactionModel . type { interface export interface SlotTypeInput { /**
         * Name of the slot type.
         */ 'name' ? : string ; /**
         * Description string about the slot type.
         */ 'description' ? : string ; } } export namespace v1 . skill . interactionModel . type { interface export interface SlotTypeItem { /**
         * Name of the slot type.
         */ 'name' ? : string ; /**
         * Description string about the slot type.
         */ 'description' ? : string ; /**
         * Identifier of the slot type, optional in get response as the request already has slotTypeId.
         */ 'id' ? : string ; '_links' ? : v1 . Links ; } } export namespace v1 . skill . interactionModel . type { interface export interface SlotTypeResponse { 'slotType' ? : v1 . skill . interactionModel . type . SlotTypeResponseEntity ; } } export namespace v1 . skill . interactionModel . type { interface export interface SlotTypeResponseEntity { /**
         * ID of the slot type created.
         */ 'id' ? : string ; } } export namespace v1 . skill . interactionModel . type { interface export interface SlotTypeStatus { 'updateRequest' ? : v1 . skill . interactionModel . type . LastUpdateRequest ; } } export namespace v1 . skill . interactionModel . type { enum export type SlotTypeStatusType = 'FAILED' | 'IN_PROGRESS' | 'SUCCEEDED' ; } export namespace v1 . skill . interactionModel . type { interface export interface SlotTypeUpdateDefinition { /**
         * The slot type description with a 255 character maximum.
         */ 'description' : string ; } } export namespace v1 . skill . interactionModel . type { interface export interface UpdateRequest { 'slotType' ? : v1 . skill . interactionModel . type . SlotTypeUpdateDefinition ; } } export namespace v1 . skill . interactionModel . type { interface export interface Warning { /**
         * The warning code.
         */ 'code' ? : string ; /**
         * The warning message.
         */ 'message' ? : string ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface ListSlotTypeVersionResponse { '_links' ? : v1 . Links ; /**
         * List of slot types.
         */ 'slotTypeVersions' ? : Array < v1 . skill . interactionModel . typeVersion . SlotTypeVersionItem > ; 'nextToken' ? : string ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface SlotTypeVersionData { 'slotType' ? : v1 . skill . interactionModel . typeVersion . SlotTypeVersionDataObject ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface SlotTypeVersionDataObject { /**
         * Slot type id associated with the slot type version.
         */ 'id' ? : string ; 'definition' ? : v1 . skill . interactionModel . typeVersion . ValueSupplierObject ; /**
         * Description string for specific slot type version.
         */ 'description' ? : string ; /**
         * Specific slot type version.
         */ 'version' ? : string ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface SlotTypeVersionItem { /**
         * Version number of slot type.
         */ 'version' ? : string ; /**
         * Description string about the slot type version.
         */ 'description' ? : string ; '_links' ? : v1 . Links ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface ValueSupplierObject { 'valueSupplier' ? : v1 . skill . interactionModel . ValueSupplier ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface VersionData { 'slotType' ? : v1 . skill . interactionModel . typeVersion . VersionDataObject ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface VersionDataObject { 'definition' ? : v1 . skill . interactionModel . typeVersion . ValueSupplierObject ; /**
         * Description string for specific slot type version.
         */ 'description' ? : string ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface SlotTypeUpdate { 'slotType' ? : v1 . skill . interactionModel . typeVersion . SlotTypeUpdateObject ; } } export namespace v1 . skill . interactionModel . typeVersion { interface export interface SlotTypeUpdateObject { /**
         * The slot type description with a 255 character maximum.
         */ 'description' ? : string ; } } export namespace v1 . skill . interactionModel . version { interface export interface CatalogEntityVersion { 'version' ? : string ; 'creationTime' ? : string ; 'description' ? : string ; '_links' ? : v1 . skill . interactionModel . version . Links ; } } export namespace v1 . skill . interactionModel . version { interface export interface CatalogValues { 'isTruncated' ? : boolean ; 'nextToken' ? : string ; /**
         * Total number of catalog values.
         */ 'totalCount' ? : number ; '_links' ? : v1 . Links ; 'values' ? : Array < v1 . skill . interactionModel . version . ValueSchema > ; } } export namespace v1 . skill . interactionModel . version { interface export interface CatalogVersionData { 'source' ? : v1 . skill . interactionModel . version . InputSource ; /**
         * Description string for specific catalog version.
         */ 'description' ? : string ; /**
         * Specific catalog version.
         */ 'version' ? : string ; } } export namespace v1 . skill . interactionModel . version { interface export interface InputSource { /**
         * Type of catalog.
         */ 'type' ? : string ; /**
         * Url to the catalog reference.
         */ 'url' ? : string ; } } export namespace v1 . skill . interactionModel . version { interface export interface Links { 'self' ? : v1 . Link ; } } export namespace v1 . skill . interactionModel . version { interface export interface ListCatalogEntityVersionsResponse { '_links' ? : v1 . skill . interactionModel . version . Links ; /**
         * List of catalog entity versions.
         */ 'catalogVersions' ? : Array < v1 . skill . interactionModel . version . CatalogEntityVersion > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; 'totalCount' ? : number ; } } export namespace v1 . skill . interactionModel . version { interface export interface ListResponse { '_links' ? : v1 . Links ; /**
         * List of interaction model versions.
         */ 'skillModelVersions' ? : Array < v1 . skill . interactionModel . version . VersionItems > ; 'isTruncated' ? : boolean ; 'nextToken' ? : string ; } } export namespace v1 . skill . interactionModel . version { interface export interface ValueSchema { 'id' ? : string ; 'name' ? : v1 . skill . interactionModel . version . ValueSchemaName ; } } export namespace v1 . skill . interactionModel . version { interface export interface ValueSchemaName { 'value' ? : string ; 'synonyms' ? : Array < string > ; } } export namespace v1 . skill . interactionModel . version { interface export interface VersionData { 'source' : v1 . skill . interactionModel . version . InputSource ; /**
         * Description string for specific catalog version.
         */ 'description' ? : string ; } } export namespace v1 . skill . interactionModel . version { interface export interface VersionItems { 'version' ? : string ; 'creationTime' ? : string ; 'description' ? : string ; '_links' ? : v1 . skill . interactionModel . version . Links ; } } export namespace v1 . skill . interactionModel . version { interface export interface CatalogUpdate { /**
         * The catalog description with a 255 character maximum.
         */ 'description' ? : string ; } } export namespace v1 . skill . invocations { enum export type EndPointRegions = 'NA' | 'EU' | 'FE' ; } export namespace v1 . skill . invocations { interface export interface InvocationResponseResult { 'skillExecutionInfo' ? : v1 . skill . invocations . SkillExecutionInfo ; 'error' ? : v1 . skill . StandardizedError ; } } export namespace v1 . skill . invocations { enum export type InvocationResponseStatus = 'SUCCEEDED' | 'FAILED' ; } export namespace v1 . skill . invocations { interface export interface InvokeSkillRequest { 'endpointRegion' : v1 . skill . invocations . EndPointRegions ; 'skillRequest' : v1 . skill . invocations . SkillRequest ; } } export namespace v1 . skill . invocations { interface export interface InvokeSkillResponse { 'status' ? : v1 . skill . invocations . InvocationResponseStatus ; 'result' ? : v1 . skill . invocations . InvocationResponseResult ; } } export namespace v1 . skill . invocations { interface export interface Metrics { /**
         * How long, in milliseconds, it took the skill's Lambda or HTTPS endpoint to process the request.
         */ 'skillExecutionTimeInMilliseconds' ? : number ; } } export namespace v1 . skill . invocations { interface export interface Request { /**
         * Skill's Lambda or HTTPS endpoint.
         */ 'endpoint' ? : string ; /**
         * JSON payload that was sent to the skill's Lambda or HTTPS endpoint.
         */ 'body' ? : any ; } } export namespace v1 . skill . invocations { interface export interface Response { /**
         * Payload that was returned by the skill's Lambda or HTTPS endpoint.
         */ 'body' ? : any ; } } export namespace v1 . skill . invocations { interface export interface SkillExecutionInfo { 'invocationRequest' ? : { [ key ] : v1 . skill . invocations . Request ; } ; 'invocationResponse' ? : { [ key ] : v1 . skill . invocations . Response ; } ; 'metrics' ? : { [ key ] : v1 . skill . invocations . Metrics ; } ; } } export namespace v1 . skill . invocations { interface export interface SkillRequest { /**
         * ASK request body schema as defined in the public facing documentation (https://developer.amazon.com/en-US/docs/alexa/custom-skills/request-and-response-json-reference.html#request-body-syntax)
         */ 'body' : any ; } } export namespace v1 . skill . metrics { interface export interface GetMetricDataResponse { /**
         * The name of metric which customer requested.
         */ 'metric' : string ; /**
         * The timestamps for the data points.
         */ 'timestamps' : Array < string > ; /**
         * The data points for the metric corresponding to Timestamps.
         */ 'values' : Array < number > ; /**
         * A token that marks the next batch of returned results.
         */ 'nextToken' ? : string ; } } export namespace v1 . skill . metrics { enum export type Metric = 'uniqueCustomers' | 'totalEnablements' | 'totalUtterances' | 'successfulUtterances' | 'failedUtterances' | 'totalSessions' | 'successfulSessions' | 'incompleteSessions' | 'userEndedSessions' | 'skillEndedSessions' ; } export namespace v1 . skill . metrics { enum export type Period = 'SINGLE' | 'PT15M' | 'PT1H' | 'P1D' ; } export namespace v1 . skill . metrics { enum export type SkillType = 'custom' | 'smartHome' | 'flashBriefing' ; } export namespace v1 . skill . metrics { enum export type StageForMetric = 'live' | 'development' ; } export namespace v1 . skill . nlu . annotationSets { interface export interface AnnotationSetEntity { 'locale' ? : string ; /**
         * Name of the NLU annotation set
         */ 'name' ? : string ; /**
         * Number of entries which represents number of utterances in each NLU annotation set content
         */ 'numberOfEntries' ? : number ; /**
         * The lastest updated timestamp for the NLU annotation set
         */ 'updatedTimestamp' ? : string ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface CreateNLUAnnotationSetRequest { /**
         * The locale of the NLU annotation set
         */ 'locale' : string ; /**
         * The name of NLU annotation set provided by customer
         */ 'name' : string ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface CreateNLUAnnotationSetResponse { /**
         * Id used to retrieve the NLU annotation set.
         */ 'id' ? : string ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface Links { 'self' ? : v1 . Link ; 'next' ? : v1 . Link ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface ListNLUAnnotationSetsResponse { 'annotationSets' ? : Array < v1 . skill . nlu . annotationSets . AnnotationSet > ; 'paginationContext' ? : v1 . skill . nlu . annotationSets . PaginationContext ; '_links' ? : v1 . skill . nlu . annotationSets . Links ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface PaginationContext { /**
         * Opaque token returned if there are more results for the given inputs than `maxResults` from the request.
         */ 'nextToken' ? : string ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface UpdateNLUAnnotationSetAnnotationsRequest { } } export namespace v1 . skill . nlu . annotationSets { interface export interface UpdateNLUAnnotationSetPropertiesRequest { /**
         * The name of NLU annotation set provided by customer
         */ 'name' : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Actual { 'domain' ? : string ; 'intent' ? : v1 . skill . nlu . evaluations . Intent ; } } export namespace v1 . skill . nlu . evaluations { enum export type ConfirmationStatus = 'NONE' | 'CONFIRMED' | 'DENIED' ; } export namespace v1 . skill . nlu . evaluations { interface export interface EvaluateNLURequest { 'stage' : any ; 'locale' : string ; 'source' : v1 . skill . nlu . evaluations . Source ; } } export namespace v1 . skill . nlu . evaluations { interface export interface EvaluateResponse { /**
         * Id used to retrieve the evaluation later.
         */ 'id' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface EvaluationEntity { 'startTimestamp' ? : string ; 'endTimestamp' ? : string ; 'status' ? : v1 . skill . nlu . evaluations . Status ; /**
         * Error message when evaluation job fails
         */ 'errorMessage' ? : string ; 'inputs' ? : v1 . skill . nlu . evaluations . EvaluationInputs ; } } export namespace v1 . skill . nlu . evaluations { interface export interface EvaluationInputs { 'locale' ? : string ; 'stage' ? : any ; 'source' ? : v1 . skill . nlu . evaluations . Source ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Expected { 'domain' ? : string ; 'intent' ? : v1 . skill . nlu . evaluations . ExpectedIntent ; } } export namespace v1 . skill . nlu . evaluations { interface export interface ExpectedIntent { 'name' ? : string ; 'slots' ? : { [ key ] : v1 . skill . nlu . evaluations . ExpectedIntentSlotsProps ; } ; } } export namespace v1 . skill . nlu . evaluations { interface export interface ExpectedIntentSlotsProps { 'value' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface GetNLUEvaluationResponseLinks { 'results' ? : v1 . skill . nlu . evaluations . Results ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Inputs { 'utterance' ? : string ; /**
         * Datetime to use to base date operations on.
         */ 'referenceTimestamp' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Intent { 'name' ? : string ; 'confirmationStatus' ? : v1 . skill . nlu . evaluations . ConfirmationStatus ; 'slots' ? : { [ key ] : v1 . skill . nlu . evaluations . SlotsProps ; } ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Links { 'self' ? : v1 . Link ; 'next' ? : v1 . Link ; } } export namespace v1 . skill . nlu . evaluations { interface export interface PagedResponse { 'paginationContext' ? : v1 . skill . nlu . evaluations . PaginationContext ; '_links' ? : v1 . skill . nlu . evaluations . Links ; } } export namespace v1 . skill . nlu . evaluations { interface export interface PagedResultsResponse { 'paginationContext' ? : v1 . skill . nlu . evaluations . PagedResultsResponsePaginationContext ; '_links' ? : v1 . skill . nlu . evaluations . Links ; } } export namespace v1 . skill . nlu . evaluations { interface export interface PagedResultsResponsePaginationContext { /**
         * opaque token returned if there are more results for the given inputs than `maxResults` from the request.
         */ 'nextToken' ? : string ; /**
         * Total available results for the given query.
         */ 'totalCount' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface PaginationContext { /**
         * opaque token returned if there are more results for the given inputs than `maxResults` from the request.
         */ 'nextToken' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Resolutions { /**
         * An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined.
         */ 'resolutionsPerAuthority' ? : Array < { [ key ] : v1 . skill . nlu . evaluations . ResolutionsPerAuthority ; } > ; } } export namespace v1 . skill . nlu . evaluations { interface export interface ResolutionsPerAuthority { /**
         * The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name.
         */ 'authority' ? : string ; 'status' ? : v1 . skill . nlu . evaluations . ResolutionsPerAuthorityStatus ; /**
         * An array of resolved values for the slot.
         */ 'values' ? : Array < v1 . skill . nlu . evaluations . ResolutionsPerAuthorityValue > ; } } export namespace v1 . skill . nlu . evaluations { interface export interface ResolutionsPerAuthorityStatus { /**
         * A code indicating the results of attempting to resolve the user utterance against the defined slot types. This can be one of the following: ER_SUCCESS_MATCH: The spoken value matched a value or synonym explicitly defined in your custom slot type. ER_SUCCESS_NO_MATCH: The spoken value did not match any values or synonyms explicitly defined in your custom slot type. ER_ERROR_TIMEOUT: An error occurred due to a timeout. ER_ERROR_EXCEPTION: An error occurred due to an exception during processing.
         */ 'code' ? : v1 . skill . nlu . evaluations . ResolutionsPerAuthorityStatusCode ; } } export namespace v1 . skill . nlu . evaluations { enum export type ResolutionsPerAuthorityStatusCode = 'ER_SUCCESS_MATCH' | 'ER_SUCCESS_NO_MATCH' | 'ER_ERROR_TIMEOUT' | 'ER_ERROR_EXCEPTION' ; } export namespace v1 . skill . nlu . evaluations { interface export interface ResolutionsPerAuthorityValue { /**
         * The string for the resolved slot value.
         */ 'name' ? : string ; /**
         * The unique ID defined for the resolved slot value. This is based on the IDs defined in the slot type definition.
         */ 'id' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Results { /**
         * url to get the test case result details Example: /v1/skills/{skillId}/nluEvaluations/{evaluationId}/results
         */ 'href' ? : string ; } } export namespace v1 . skill . nlu . evaluations { enum export type ResultsStatus = 'PASSED' | 'FAILED' ; } export namespace v1 . skill . nlu . evaluations { interface export interface SlotsProps { 'name' ? : string ; 'value' ? : string ; 'confirmationStatus' ? : v1 . skill . nlu . evaluations . ConfirmationStatus ; 'resolutions' ? : v1 . skill . nlu . evaluations . Resolutions ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Source { /**
         * ID of the annotation set
         */ 'annotationId' ? : string ; } } export namespace v1 . skill . nlu . evaluations { enum export type Status = 'PASSED' | 'FAILED' | 'IN_PROGRESS' | 'ERROR' ; } export namespace v1 . skill . nlu . evaluations { interface export interface TestCase { 'status' ? : v1 . skill . nlu . evaluations . ResultsStatus ; 'inputs' ? : v1 . skill . nlu . evaluations . Inputs ; 'actual' ? : v1 . skill . nlu . evaluations . Actual ; 'expected' ? : Array < v1 . skill . nlu . evaluations . Expected > ; } } export namespace v1 . skill . publication { interface export interface PublishSkillRequest { /**
         * Used to determine when the skill Publishing should start. It takes the request timestamp as default value. The date range can be a maximum of upto 6 months from the current time stamp. The format should be the  RFC 3399 variant of ISO 8601. e.g 2019-04-12T23:20:50.52Z
         */ 'publishesAtDate' ? : string ; } } export namespace v1 . skill . publication { interface export interface SkillPublicationResponse { /**
         * Used to determine when the skill Publishing should start.
         */ 'publishesAtDate' ? : string ; 'status' ? : v1 . skill . publication . SkillPublicationStatus ; } } export namespace v1 . skill . publication { enum export type SkillPublicationStatus = 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED' | 'CANCELLED' | 'SCHEDULED' ; } export namespace v1 . skill . resourceSchema { interface export interface GetResourceSchemaResponse { /**
         * S3 presigned URL to schema location.
         */ 'schemaLocationUrl' ? : string ; /**
         * Timestamp when the schema location url expires in ISO 8601 format.
         */ 'expiryTime' ? : string ; } } export namespace v1 . skill . simulations { interface export interface AlexaExecutionInfo { 'alexaResponses' ? : Array < v1 . skill . simulations . AlexaResponse > ; } } export namespace v1 . skill . simulations { interface export interface AlexaResponse { /**
         * The type of Alexa response
         */ 'type' ? : string ; /**
         * The detail information needs to exposed in this type of Alexa response.
         */ 'content' ? : v1 . skill . simulations . AlexaResponseContent ; } } export namespace v1 . skill . simulations { interface export interface AlexaResponseContent { /**
         * The plain text get from Alexa speech response
         */ 'caption' ? : string ; } } export namespace v1 . skill . simulations { interface export interface Device { /**
         * A valid locale (e.g \"en-US\") for the virtual device used in simulation.
         */ 'locale' : string ; } } export namespace v1 . skill . simulations { interface export interface Input { /**
         * A string corresponding to the utterance text of what a customer would say to Alexa.
         */ 'content' : string ; } } export namespace v1 . skill . simulations { interface export interface Invocation { 'invocationRequest' ? : v1 . skill . simulations . InvocationRequest ; 'invocationResponse' ? : v1 . skill . simulations . InvocationResponse ; 'metrics' ? : v1 . skill . simulations . Metrics ; } } export namespace v1 . skill . simulations { interface export interface InvocationRequest { /**
         * Skill's Lambda or HTTPS endpoint.
         */ 'endpoint' ? : string ; /**
         * JSON payload that was sent to the skill's Lambda or HTTPS endpoint.
         */ 'body' ? : { [ key ] : any ; } ; } } export namespace v1 . skill . simulations { interface export interface InvocationResponse { /**
         * Payload that was returned by the skill's Lambda or HTTPS endpoint.
         */ 'body' ? : { [ key ] : any ; } ; } } export namespace v1 . skill . simulations { interface export interface Metrics { /**
         * How long, in milliseconds, it took the skill's Lambda or HTTPS endpoint to process the request.
         */ 'skillExecutionTimeInMilliseconds' ? : number ; } } export namespace v1 . skill . simulations { interface export interface Session { 'mode' ? : v1 . skill . simulations . SessionMode ; } } export namespace v1 . skill . simulations { enum export type SessionMode = 'DEFAULT' | 'FORCE_NEW_SESSION' ; } export namespace v1 . skill . simulations { interface export interface Simulation { 'type' ? : v1 . skill . simulations . SimulationType ; } } export namespace v1 . skill . simulations { interface export interface SimulationResult { 'alexaExecutionInfo' ? : v1 . skill . simulations . AlexaExecutionInfo ; 'skillExecutionInfo' ? : v1 . skill . simulations . Invocation ; 'error' ? : v1 . Error ; } } export namespace v1 . skill . simulations { enum export type SimulationType = 'DEFAULT' | 'NFI_ISOLATED_SIMULATION' ; } export namespace v1 . skill . simulations { interface export interface SimulationsApiRequest { 'input' : v1 . skill . simulations . Input ; 'device' : v1 . skill . simulations . Device ; 'session' ? : v1 . skill . simulations . Session ; 'simulation' ? : v1 . skill . simulations . Simulation ; } } export namespace v1 . skill . simulations { interface export interface SimulationsApiResponse { /**
         * Id of the simulation resource.
         */ 'id' ? : string ; 'status' ? : v1 . skill . simulations . SimulationsApiResponseStatus ; 'result' ? : v1 . skill . simulations . SimulationResult ; } } export namespace v1 . skill . simulations { enum export type SimulationsApiResponseStatus = 'IN_PROGRESS' | 'SUCCESSFUL' | 'FAILED' ; } export namespace v1 . skill { enum export type SkillResourcesEnum = 'manifest' | 'interactionModel' | 'hostedSkillDeployment' | 'hostedSkillProvisioning' ; } export namespace v1 . skill { interface export interface UpdateSkillWithPackageRequest { /**
         * The URL for the skill package.
         */ 'location' : string ; } } export namespace v1 . skill { interface export interface ValidationDetails { /**
         * Set of properties of the image provided by the customer.
         */ 'actualImageAttributes' ? : v1 . skill . ImageAttributes ; /**
         * Number of items in an array provided by the customer.
         */ 'actualNumberOfItems' ? : number ; /**
         * Number of characters in a string provided by the customer.
         */ 'actualStringLength' ? : number ; /**
         * List of allowed content types for a resource.
         */ 'allowedContentTypes' ? : Array < string > ; /**
         * List of allowed data types for an instance.
         */ 'allowedDataTypes' ? : Array < v1 . skill . ValidationDataTypes > ; /**
         * List of set of properties representing all possible allowed images.
         */ 'allowedImageAttributes' ? : Array < v1 . skill . ImageAttributes > ; /**
         * Instance conflicting with another instance.
         */ 'conflictingInstance' ? : v1 . skill . Instance ; /**
         * Format in which instance value is expected in.
         */ 'expectedFormat' ? : v1 . skill . Format ; /**
         * Instance that is expected by a related instance.
         */ 'expectedInstance' ? : v1 . skill . Instance ; /**
         * Regular expression that a string instance is expected to match.
         */ 'expectedRegexPattern' ? : string ; /**
         * Type of the agreement that the customer must be compliant to.
         */ 'agreementType' ? : v1 . skill . AgreementType ; /**
         * Properties of a publicly known feature that has restricted access.
         */ 'feature' ? : v1 . skill . ValidationFeature ; /**
         * Endpoint which has a different value for property named type when compared to original endpoint.
         */ 'inconsistentEndpoint' ? : v1 . skill . ValidationEndpoint ; /**
         * Minimum allowed value of an integer instance.
         */ 'minimumIntegerValue' ? : number ; /**
         * Minimum allowed number of items in an array.
         */ 'minimumNumberOfItems' ? : number ; /**
         * Minimum allowed number of characters in a string.
         */ 'minimumStringLength' ? : number ; /**
         * Maximum allowed value of an integer instance.
         */ 'maximumIntegerValue' ? : number ; /**
         * Maximum allowed number of items in an array.
         */ 'maximumNumberOfItems' ? : number ; /**
         * Maximum allowed number of characters in a string.
         */ 'maximumStringLength' ? : number ; /**
         * An Endpoint instance
         */ 'originalEndpoint' ? : v1 . skill . ValidationEndpoint ; /**
         * An Instance
         */ 'originalInstance' ? : v1 . skill . Instance ; /**
         * Represents what is wrong in the request.
         */ 'reason' ? : v1 . skill . ValidationFailureReason ; /**
         * Property required but missing in the object.
         */ 'requiredProperty' ? : string ; /**
         * Property not expected but present in the object.
         */ 'unexpectedProperty' ? : string ; } } export namespace v1 . skill . validations { interface export interface ResponseValidation { /**
         * Short, human readable title of the validation performed.
         */ 'title' ? : string ; /**
         * Human readable description of the validation performed. May include instructions to address validation failure.
         */ 'description' ? : string ; /**
         * Dot-delimited category.
         */ 'category' ? : string ; /**
         * Locale of the validation.
         */ 'locale' ? : string ; 'importance' ? : v1 . skill . validations . ResponseValidationImportance ; 'status' ? : v1 . skill . validations . ResponseValidationStatus ; } } export namespace v1 . skill . validations { enum export type ResponseValidationImportance = 'REQUIRED' | 'RECOMMENDED' ; } export namespace v1 . skill . validations { enum export type ResponseValidationStatus = 'SUCCESSFUL' | 'FAILED' ; } export namespace v1 . skill . validations { interface export interface ValidationsApiRequest { 'locales' : Array < string > ; } } export namespace v1 . skill . validations { interface export interface ValidationsApiResponse { /**
         * Id of the validation resource.
         */ 'id' ? : string ; 'status' ? : v1 . skill . validations . ValidationsApiResponseStatus ; 'result' ? : v1 . skill . validations . ValidationsApiResponseResult ; } } export namespace v1 . skill . validations { interface export interface ValidationsApiResponseResult { 'validations' ? : Array < v1 . skill . validations . ResponseValidation > ; 'error' ? : v1 . Error ; } } export namespace v1 . skill . validations { enum export type ValidationsApiResponseStatus = 'IN_PROGRESS' | 'SUCCESSFUL' | 'FAILED' ; } export namespace v1 . smartHomeEvaluation { interface export interface CapabilityTestPlan { 'id' ? : string ; } } export namespace v1 . smartHomeEvaluation { interface export interface Endpoint { 'endpointId' ? : string ; } } export namespace v1 . smartHomeEvaluation { interface export interface EvaluateSHCapabilityRequest { 'capabilityTestPlan' : v1 . smartHomeEvaluation . CapabilityTestPlan ; 'endpoint' : v1 . smartHomeEvaluation . Endpoint ; 'stage' : v1 . smartHomeEvaluation . Stage ; } } export namespace v1 . smartHomeEvaluation { enum export type EvaluationEntityStatus = 'PASSED' | 'FAILED' | 'IN_PROGRESS' | 'ERROR' ; } export namespace v1 . smartHomeEvaluation { interface export interface EvaluationObject { 'endTimestamp' ? : string ; 'startTimestamp' ? : string ; 'status' ? : v1 . smartHomeEvaluation . EvaluationEntityStatus ; 'endpointId' ? : string ; 'id' ? : string ; 'sourceTestPlanIds' ? : Array < string > ; 'testPlanId' ? : string ; } } export namespace v1 . smartHomeEvaluation { interface export interface GetSHCapabilityEvaluationResponse { 'endTimestamp' ? : string ; 'startTimestamp' ? : string ; 'status' ? : v1 . smartHomeEvaluation . EvaluationEntityStatus ; 'error' ? : v1 . smartHomeEvaluation . SHCapabilityError ; 'input' ? : v1 . smartHomeEvaluation . EvaluateSHCapabilityRequest ; 'metrics' ? : { [ key ] : v1 . smartHomeEvaluation . SHEvaluationResultsMetric ; } ; } } export namespace v1 . smartHomeEvaluation { interface export interface ListSHCapabilityEvaluationsResponse { 'paginationContextToken' ? : v1 . smartHomeEvaluation . PaginationContextToken ; 'evaluations' ? : Array < v1 . smartHomeEvaluation . EvaluationObject > ; } } export namespace v1 . smartHomeEvaluation { interface export interface ListSHTestPlanItem { 'id' ? : string ; 'name' ? : string ; } } export namespace v1 . smartHomeEvaluation { interface export interface PagedResponse { 'paginationContext' ? : v1 . smartHomeEvaluation . PaginationContext ; } } export namespace v1 . smartHomeEvaluation { interface export interface SHCapabilityDirective { } } export namespace v1 . smartHomeEvaluation { interface export interface SHCapabilityError { 'code' ? : v1 . smartHomeEvaluation . SHCapabilityErrorCode ; 'message' ? : string ; } } export namespace v1 . smartHomeEvaluation { enum export type SHCapabilityErrorCode = 'NO_SUCH_ENDPOINT' | 'NO_SUCH_SKILL_STAGE' | 'NO_SUCH_TEST_PLAN' | 'MULTIPLE_MATCHED_ENDPOINTS' | 'MULTIPLE_MATCHED_TEST_PLANS' | 'CAPABILITY_NOT_SUPPORTED' | 'DISCOVERY_FAILED' | 'TEST_CASE_TIME_OUT' ; } export namespace v1 . smartHomeEvaluation { interface export interface SHCapabilityResponse { } } export namespace v1 . smartHomeEvaluation { interface export interface SHCapabilityState { } } export namespace v1 . smartHomeEvaluation { interface export interface SHEvaluationResultsMetric { 'errorTestCases' ? : number ; 'failedTestCases' ? : number ; 'passedTestCases' ? : number ; 'totalTestCases' ? : number ; } } export namespace v1 . smartHomeEvaluation { enum export type Stage = 'development' | 'live' ; } export namespace v1 . smartHomeEvaluation { interface export interface TestCaseResult { 'actualCapabilityStates' ? : Array < v1 . smartHomeEvaluation . SHCapabilityState > ; 'actualResponse' ? : v1 . smartHomeEvaluation . SHCapabilityResponse ; 'directive' ? : v1 . smartHomeEvaluation . SHCapabilityDirective ; 'error' ? : v1 . smartHomeEvaluation . SHCapabilityError ; 'expectedCapabilityStates' ? : Array < v1 . smartHomeEvaluation . SHCapabilityState > ; 'expectedResponse' ? : v1 . smartHomeEvaluation . SHCapabilityResponse ; 'name' ? : string ; 'status' ? : v1 . smartHomeEvaluation . TestCaseResultStatus ; } } export namespace v1 . smartHomeEvaluation { enum export type TestCaseResultStatus = 'PASSED' | 'FAILED' | 'ERROR' ; } export namespace v1 . smartHomeEvaluation { interface export interface PaginationContext { 'nextToken' ? : string ; 'totalCount' ? : number ; } } export namespace v1 . smartHomeEvaluation { interface export interface PaginationContextToken { 'nextToken' ? : string ; } } export namespace v1 . vendorManagement { interface export interface Vendor { /**
         * Name of vendor.
         */ 'name' ? : string ; /**
         * Unique identifier of vendor associated with the API caller account.
         */ 'id' ? : string ; /**
         * Roles that user has for this vendor.
         */ 'roles' ? : Array < string > ; } } export namespace v1 . vendorManagement { interface export interface Vendors { 'vendors' ? : Array < v1 . vendorManagement . Vendor > ; } } export namespace v2 { interface export interface BadRequestError { /**
         * Human readable description of error.
         */ 'message' ? : string ; /**
         * An array of violation messages.
         */ 'violations' ? : Array < v2 . Error > ; } } export namespace v2 { interface export interface Error { /**
         * Error code that maps to an error message. Developers with different locales should be able to lookup the error description based on this code.
         */ 'code' ? : string ; /**
         * Readable description of error.
         */ 'message' : string ; } } export namespace v2 . skill { interface export interface Invocation { 'invocationRequest' ? : v2 . skill . InvocationRequest ; 'invocationResponse' ? : v2 . skill . InvocationResponse ; 'metrics' ? : v2 . skill . Metrics ; } } export namespace v2 . skill { interface export interface InvocationRequest { /**
         * Skill's Lambda or HTTPS endpoint.
         */ 'endpoint' ? : string ; /**
         * JSON payload that was sent to the skill's Lambda or HTTPS endpoint.
         */ 'body' ? : { [ key ] : any ; } ; } } export namespace v2 . skill { interface export interface InvocationResponse { /**
         * Payload that was returned by the skill's Lambda or HTTPS endpoint.
         */ 'body' ? : { [ key ] : any ; } ; } } export namespace v2 . skill { interface export interface Metrics { /**
         * How long, in milliseconds, it took the skill's Lambda or HTTPS endpoint to process the request.
         */ 'skillExecutionTimeInMilliseconds' ? : number ; } } export namespace v2 . skill . invocations { enum export type EndPointRegions = 'NA' | 'EU' | 'FE' | 'default' ; } export namespace v2 . skill . invocations { interface export interface InvocationResponseResult { 'skillExecutionInfo' ? : v2 . skill . Invocation ; 'error' ? : v2 . Error ; } } export namespace v2 . skill . invocations { enum export type InvocationResponseStatus = 'SUCCESSFUL' | 'FAILED' ; } export namespace v2 . skill . invocations { interface export interface InvocationsApiResponse { 'status' ? : v2 . skill . invocations . InvocationResponseStatus ; 'result' ? : v2 . skill . invocations . InvocationResponseResult ; } } export namespace v2 . skill . invocations { interface export interface SkillRequest { /**
         * ASK request body schema as defined in the public facing documentation (https://developer.amazon.com/en-US/docs/alexa/custom-skills/request-and-response-json-reference.html#request-body-syntax)
         */ 'body' : any ; } } export namespace v2 . skill . invocations { interface export interface InvocationsApiRequest { 'endpointRegion' : v2 . skill . invocations . EndPointRegions ; 'skillRequest' : v2 . skill . invocations . SkillRequest ; } } export namespace v2 . skill . simulations { interface export interface AlexaExecutionInfo { 'alexaResponses' ? : Array < v2 . skill . simulations . AlexaResponse > ; 'consideredIntents' ? : Array < v2 . skill . simulations . Intent > ; } } export namespace v2 . skill . simulations { interface export interface AlexaResponse { /**
         * The type of Alexa response
         */ 'type' ? : string ; /**
         * The detail information needs to exposed in this type of Alexa response.
         */ 'content' ? : v2 . skill . simulations . AlexaResponseContent ; } } export namespace v2 . skill . simulations { interface export interface AlexaResponseContent { /**
         * The plain text from Alexa speech response.
         */ 'caption' ? : string ; } } export namespace v2 . skill . simulations { enum export type ConfirmationStatusType = 'NONE' | 'CONFIRMED' | 'DENIED' ; } export namespace v2 . skill . simulations { interface export interface Device { /**
         * A valid locale (e.g \"en-US\") for the virtual device used in simulation.
         */ 'locale' : string ; } } export namespace v2 . skill . simulations { interface export interface Input { /**
         * A string corresponding to the utterance text of what a customer would say to Alexa.
         */ 'content' : string ; } } export namespace v2 . skill . simulations { interface export interface Intent { 'name' ? : string ; 'confirmationStatus' ? : v2 . skill . simulations . ConfirmationStatusType ; /**
         * A map of key-value pairs that further describes what the user meant based on a predefined intent schema. The map can be empty.
         */ 'slots' ? : { [ key ] : v2 . skill . simulations . Slot ; } ; } } export namespace v2 . skill . simulations { interface export interface ResolutionsPerAuthorityItems { /**
         * The name of the authority for the slot values. For custom slot types, this authority label incorporates your skill ID and the slot type name.
         */ 'authority' ? : string ; 'status' ? : v2 . skill . simulations . ResolutionsPerAuthorityStatus ; /**
         * An array of resolved values for the slot.
         */ 'values' ? : Array < v2 . skill . simulations . ResolutionsPerAuthorityValueItems > ; } } export namespace v2 . skill . simulations { interface export interface ResolutionsPerAuthorityStatus { 'code' ? : v2 . skill . simulations . ResolutionsPerAuthorityStatusCode ; } } export namespace v2 . skill . simulations { enum export type ResolutionsPerAuthorityStatusCode = 'ER_SUCCESS_MATCH' | 'ER_SUCCESS_NO_MATCH' | 'ER_ERROR_TIMEOUT' | 'ER_ERROR_EXCEPTION' ; } export namespace v2 . skill . simulations { interface export interface ResolutionsPerAuthorityValueItems { /**
         * The string for the resolved slot value.
         */ 'name' ? : string ; /**
         * The unique ID defined for the resolved slot value. This is based on the IDs defined in the slot type definition.
         */ 'id' ? : string ; } } export namespace v2 . skill . simulations { interface export interface Session { 'mode' ? : v2 . skill . simulations . SessionMode ; } } export namespace v2 . skill . simulations { enum export type SessionMode = 'DEFAULT' | 'FORCE_NEW_SESSION' ; } export namespace v2 . skill . simulations { interface export interface Simulation { 'type' ? : v2 . skill . simulations . SimulationType ; } } export namespace v2 . skill . simulations { interface export interface SimulationResult { 'alexaExecutionInfo' ? : v2 . skill . simulations . AlexaExecutionInfo ; 'skillExecutionInfo' ? : v2 . skill . simulations . SkillExecutionInfo ; 'error' ? : v2 . Error ; } } export namespace v2 . skill . simulations { enum export type SimulationType = 'DEFAULT' | 'NFI_ISOLATED_SIMULATION' ; } export namespace v2 . skill . simulations { interface export interface SimulationsApiRequest { 'input' : v2 . skill . simulations . Input ; 'device' : v2 . skill . simulations . Device ; 'session' ? : v2 . skill . simulations . Session ; 'simulation' ? : v2 . skill . simulations . Simulation ; } } export namespace v2 . skill . simulations { interface export interface SimulationsApiResponse { /**
         * Id of the simulation resource.
         */ 'id' ? : string ; 'status' ? : v2 . skill . simulations . SimulationsApiResponseStatus ; 'result' ? : v2 . skill . simulations . SimulationResult ; } } export namespace v2 . skill . simulations { enum export type SimulationsApiResponseStatus = 'IN_PROGRESS' | 'SUCCESSFUL' | 'FAILED' ; } export namespace v2 . skill . simulations { interface export interface SkillExecutionInfo { 'invocations' ? : Array < v2 . skill . Invocation > ; } } export namespace v2 . skill . simulations { interface export interface Slot { 'name' ? : string ; 'value' ? : string ; 'confirmationStatus' ? : v2 . skill . simulations . ConfirmationStatusType ; 'resolutions' ? : v2 . skill . simulations . SlotResolutions ; } } export namespace v2 . skill . simulations { interface export interface SlotResolutions { /**
         * An array of objects representing each possible authority for entity resolution. An authority represents the source for the data provided for the slot. For a custom slot type, the authority is the slot type you defined.
         */ 'resolutionsPerAuthority' ? : Array < v2 . skill . simulations . ResolutionsPerAuthorityItems > ; } } export namespace v0 . catalog . upload { interface export interface CreateContentUploadResponse { /**
         * Unique identifier of the upload.
         */ 'id' ? : string ; /**
         * Provides a unique identifier of the catalog.
         */ 'catalogId' ? : string ; 'status' ? : v0 . catalog . upload . UploadStatus ; 'createdDate' ? : string ; 'lastUpdatedDate' ? : string ; 'ingestionSteps' ? : Array < v0 . catalog . upload . UploadIngestionStep > ; /**
         * Ordered list of presigned upload parts to perform a partitioned (multipart) file upload.
         */ 'presignedUploadParts' ? : Array < v0 . catalog . upload . PresignedUploadPart > ; } } export namespace v0 . catalog . upload { interface export interface GetContentUploadResponse { /**
         * Unique identifier of the upload.
         */ 'id' ? : string ; /**
         * Provides a unique identifier of the catalog.
         */ 'catalogId' ? : string ; 'status' ? : v0 . catalog . upload . UploadStatus ; 'createdDate' ? : string ; 'lastUpdatedDate' ? : string ; 'file' ? : v0 . catalog . upload . ContentUploadFileSummary ; 'ingestionSteps' ? : Array < v0 . catalog . upload . UploadIngestionStep > ; } } export namespace v0 . developmentEvents . subscriber { interface export interface EndpointAwsAuthorization { 'type' : 'AWS_IAM' ; /**
         * IAM Role arn to use/assumeRole for authorization.
         */ 'arn' ? : string ; } } export namespace v0 . eventSchema . AlexaCustomerFeedbackEvent { interface export interface SkillReviewPublish { 'eventName' : 'AlexaCustomerFeedbackEvent.SkillReviewPublish' ; /**
         * ISO 8601 timestamp for the instant when event was created.
         */ 'timestamp' ? : string ; 'payload' ? : v0 . eventSchema . SkillReviewEventAttributes ; } } export namespace v0 . eventSchema . AlexaDevelopmentEvent { interface export interface InteractionModelUpdate { 'eventName' : 'AlexaDevelopmentEvent.InteractionModelUpdate' ; /**
         * ISO 8601 timestamp for the instant when event was created.
         */ 'timestamp' ? : string ; /**
         * A development notification includes a unique identifier that identifies the original request that resulted in the development notification. The requestId for original request is returned by Amazon APIs in response's 'X-Amzn-RequestId' header.
         */ 'requestId' ? : string ; 'payload' ? : v0 . eventSchema . InteractionModelEventAttributes ; } } export namespace v0 . eventSchema . AlexaDevelopmentEvent { interface export interface ManifestUpdate { 'eventName' : 'AlexaDevelopmentEvent.ManifestUpdate' ; /**
         * ISO 8601 timestamp for the instant when event was created.
         */ 'timestamp' ? : string ; /**
         * A development notification includes a unique identifier that identifies the original request that resulted in the development notification. The requestId for original request is returned by Amazon APIs in response's 'X-Amzn-RequestId' header.
         */ 'requestId' ? : string ; 'payload' ? : v0 . eventSchema . SkillEventAttributes ; } } export namespace v0 . eventSchema . AlexaDevelopmentEvent { interface export interface SkillCertification { 'eventName' : 'AlexaDevelopmentEvent.SkillCertification' ; /**
         * ISO 8601 timestamp for the instant when event was created.
         */ 'timestamp' ? : string ; /**
         * A development notification includes a unique identifier that identifies the original request that resulted in the development notification. The requestId for original request is returned by Amazon APIs in response's 'X-Amzn-RequestId' header.
         */ 'requestId' ? : string ; 'payload' ? : v0 . eventSchema . SkillEventAttributes ; } } export namespace v0 . eventSchema . AlexaDevelopmentEvent { interface export interface SkillPublish { 'eventName' : 'AlexaDevelopmentEvent.SkillPublish' ; /**
         * ISO 8601 timestamp for the instant when event was created.
         */ 'timestamp' ? : string ; /**
         * A development notification includes a unique identifier that identifies the original request that resulted in the development notification. The requestId for original request is returned by Amazon APIs in response's 'X-Amzn-RequestId' header.
         */ 'requestId' ? : string ; 'payload' ? : v0 . eventSchema . SkillEventAttributes ; } } export namespace v0 . eventSchema { interface export interface InteractionModelAttributes { /**
         * Unique identifier of an Alexa skill.
         */ 'skillId' ? : string ; /**
         * Unique identifier of vendor account to which this skill belongs.
         */ 'vendorId' ? : string ; /**
         * Locale of interaction model.
         */ 'locale' ? : string ; } } export namespace v1 . catalog . upload { interface export interface Location { /**
         * self hosted url location.
         */ 'location' ? : string ; } } export namespace v1 . catalog . upload { interface export interface PreSignedUrl { /**
         * Unique identifier for urls
         */ 'urlId' : string ; /**
         * List of (eTag, part number) pairs for each part of the file uploaded
         */ 'partETags' ? : Array < v1 . catalog . upload . PreSignedUrlItem > ; } } export namespace v1 . skill . Manifest { interface export interface AMAZONConversationsDialogManager { 'type' : 'AMAZON.Conversations' ; } } export namespace v1 . skill . Manifest { interface export interface AlexaPresentationAplInterface { 'type' : 'ALEXA_PRESENTATION_APL' ; /**
         * List of supported viewports.
         */ 'supportedViewports' ? : Array < v1 . skill . Manifest . ViewportSpecification > ; } } export namespace v1 . skill . Manifest { interface export interface AlexaPresentationHtmlInterface { 'type' : 'ALEXA_PRESENTATION_HTML' ; } } export namespace v1 . skill . Manifest { interface export interface AppLinkInterface { 'type' : 'APP_LINKS' ; } } export namespace v1 . skill . Manifest { interface export interface AppLinkV2Interface { 'type' : 'APP_LINKS_V2' ; } } export namespace v1 . skill . Manifest { interface export interface AudioInterface { 'type' : 'AUDIO_PLAYER' ; } } export namespace v1 . skill . Manifest { interface export interface AuthorizedClientLwa { 'authenticationProvider' : string ; 'applications' ? : Array < v1 . skill . Manifest . AuthorizedClientLwaApplication > ; } } export namespace v1 . skill . Manifest { interface export interface AuthorizedClientLwaApplicationAndroid { 'type' : string ; 'appStoreAppId' ? : string ; 'clientId' ? : string ; } } export namespace v1 . skill . Manifest . Custom { interface export interface TargetRuntimeDevice { 'type' : 'DEVICE' ; } } export namespace v1 . skill . Manifest { interface export interface DisplayInterface { 'type' : 'RENDER_TEMPLATE' ; 'minimumTemplateVersion' ? : v1 . skill . Manifest . DisplayInterfaceTemplateVersion ; 'minimumApmlVersion' ? : v1 . skill . Manifest . DisplayInterfaceApmlVersion ; } } export namespace v1 . skill . Manifest { interface export interface GadgetControllerInterface { 'type' : 'GADGET_CONTROLLER' ; } } export namespace v1 . skill . Manifest { interface export interface GameEngineInterface { 'type' : 'GAME_ENGINE' ; } } export namespace v1 . skill . Manifest { interface export interface VideoAppInterface { 'type' : 'VIDEO_APP' ; } } export namespace v1 . skill . Manifest { interface export interface VoiceProfileFeature { 'name' : 'VIDEO_VOICE_PROFILE' ; 'version' : string ; } } export namespace v1 . skill . asr . annotationSets { interface export interface AnnotationSetItems { /**
         * Name of the ASR annotation set
         */ 'name' : string ; /**
         * Number of annotations within an annotation set
         */ 'annotationCount' : number ; /**
         * The timestamp for the most recent update of ASR annotation set
         */ 'lastUpdatedTimestamp' : string ; /**
         * Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight.
         */ 'eligibleForEvaluation' ? : boolean ; /**
         * The Annotation set id
         */ 'id' : string ; } } export namespace v1 . skill . asr . annotationSets { interface export interface AnnotationWithAudioAsset { /**
         * Upload id obtained when developer creates an upload using catalog API. Required to be present when expectedTranscription is missing. When uploadId is present, filePathInUpload must also be present.
         */ 'uploadId' ? : string ; /**
         * File path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories. Required to be present when expectedTranscription is missing. When filePathInUpload is present, uploadId must also be present.
         */ 'filePathInUpload' ? : string ; /**
         * Weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate.  The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight  impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results  show that only the first annotation test case passed while the rest of the test cases failed. In this case,  the overall error rate is (8 / (8 + 1 + 1)) = 0.8
         */ 'evaluationWeight' ? : number ; /**
         * Expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters. Required to be present when uploadId and filePathInUpload are missing.
         */ 'expectedTranscription' ? : string ; 'audioAsset' ? : v1 . skill . asr . annotationSets . AudioAsset ; } } export namespace v1 . skill . asr . annotationSets { interface export interface GetASRAnnotationSetsPropertiesResponse { /**
         * Name of the ASR annotation set
         */ 'name' : string ; /**
         * Number of annotations within an annotation set
         */ 'annotationCount' : number ; /**
         * The timestamp for the most recent update of ASR annotation set
         */ 'lastUpdatedTimestamp' : string ; /**
         * Indicates if the annotation set is eligible for evaluation. A set is not eligible for evaluation if any annotation within the set has a missing uploadId, filePathInUpload, expectedTranscription, or evaluationWeight.
         */ 'eligibleForEvaluation' ? : boolean ; } } export namespace v1 . skill . asr . evaluations { interface export interface AnnotationWithAudioAsset { /**
         * upload id obtained when developer creates an upload using catalog API
         */ 'uploadId' : string ; /**
         * file path in the uploaded zip file. For example, a zip containing a folder named 'a' and there is an audio b.mp3 in that folder. The file path is a/b.mp3. Notice that forward slash ('/') should be used to concatenate directories.
         */ 'filePathInUpload' : string ; /**
         * weight of the test case in an evaluation, the value would be used for calculating metrics such as overall error rate.  The acceptable values are from 1 - 1000. 1 means least significant, 1000 means mot significant. Here is how weight  impact the `OVERALL_ERROR_RATE` calculation: For example, an annotation set consists of 3 annotations and they have weight of 8, 1, 1. The evaluation results  show that only the first annotation test case passed while the rest of the test cases failed. In this case,  the overall error rate is (8 / (8 + 1 + 1)) = 0.8
         */ 'evaluationWeight' : number ; /**
         * expected transcription text for the input audio. The acceptable length of the string is between 1 and 500 Unicode characters
         */ 'expectedTranscription' : string ; 'audioAsset' : v1 . skill . asr . evaluations . AudioAsset ; } } export namespace v1 . skill . asr . evaluations { interface export interface EvaluationItems { 'status' : v1 . skill . asr . evaluations . EvaluationStatus ; /**
         * indicate the total number of evaluations that are supposed to be run in the evaluation request
         */ 'totalEvaluationCount' : number ; /**
         * indicate the number of completed evaluations
         */ 'completedEvaluationCount' : number ; /**
         * indicate the start time stamp of the ASR evaluation job. ISO-8601 Format.
         */ 'startTimestamp' : string ; 'request' : v1 . skill . asr . evaluations . PostAsrEvaluationsRequestObject ; 'error' ? : v1 . skill . asr . evaluations . ErrorObject ; 'result' ? : v1 . skill . asr . evaluations . EvaluationMetadataResult ; /**
         * evaluation id
         */ 'id' : string ; } } export namespace v1 . skill . asr . evaluations { interface export interface GetAsrEvaluationStatusResponseObject { 'status' : v1 . skill . asr . evaluations . EvaluationStatus ; /**
         * indicate the total number of evaluations that are supposed to be run in the evaluation request
         */ 'totalEvaluationCount' : number ; /**
         * indicate the number of completed evaluations
         */ 'completedEvaluationCount' : number ; /**
         * indicate the start time stamp of the ASR evaluation job. ISO-8601 Format.
         */ 'startTimestamp' : string ; 'request' : v1 . skill . asr . evaluations . PostAsrEvaluationsRequestObject ; 'error' ? : v1 . skill . asr . evaluations . ErrorObject ; 'result' ? : v1 . skill . asr . evaluations . EvaluationMetadataResult ; } } export namespace v1 . skill . evaluations { interface export interface ProfileNluSelectedIntent { 'name' ? : string ; 'confirmationStatus' ? : v1 . skill . evaluations . ConfirmationStatusType ; /**
         * A map of key-value pairs that further describes what the user meant based on a predefined intent schema. The map can be empty.
         */ 'slots' ? : { [ key ] : v1 . skill . evaluations . Slot ; } ; } } export namespace v1 . skill . interactionModel { interface export interface CatalogValueSupplier { 'type' : 'CatalogValueSupplier' ; 'valueCatalog' ? : v1 . skill . interactionModel . ValueCatalog ; } } export namespace v1 . skill . interactionModel { interface export interface HasEntityResolutionMatch { 'type' : 'hasEntityResolutionMatch' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; } } export namespace v1 . skill . interactionModel { interface export interface InlineValueSupplier { 'type' : 'InlineValueSupplier' ; /**
         * The list of slot type values.
         */ 'values' ? : Array < v1 . skill . interactionModel . TypeValue > ; } } export namespace v1 . skill . interactionModel { interface export interface IsGreaterThan { 'type' : 'isGreaterThan' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * Value to compare to.
         */ 'value' : string ; } } export namespace v1 . skill . interactionModel { interface export interface IsGreaterThanOrEqualTo { 'type' : 'isGreaterThanOrEqualTo' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * Value to compare to.
         */ 'value' : string ; } } export namespace v1 . skill . interactionModel { interface export interface IsInDuration { 'type' : 'isInDuration' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * * `AMAZON.DATE`: ISO 8601 Duration using Y, M or D components or ISO 8601 Calendar Date in YYYY-MM-DD format. * `AMAZON.TIME`: ISO 8601 Duration using H or M component or ISO 8601 24-Hour Clock Time in hh:mm format.
         */ 'start' ? : string ; /**
         * * `AMAZON.DATE`: ISO 8601 Duration using Y, M or D components or ISO 8601 Calendar Date in YYYY-MM-DD format. * `AMAZON.TIME`: ISO 8601 Duration using H or M component or ISO 8601 24-Hour Clock Time in hh:mm format.
         */ 'end' ? : string ; } } export namespace v1 . skill . interactionModel { interface export interface IsInSet { 'type' : 'isInSet' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * List of values to check.
         */ 'values' : Array < string > ; } } export namespace v1 . skill . interactionModel { interface export interface IsLessThan { 'type' : 'isLessThan' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * Value to compare to.
         */ 'value' : string ; } } export namespace v1 . skill . interactionModel { interface export interface IsLessThanOrEqualTo { 'type' : 'isLessThanOrEqualTo' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * Value to compare to.
         */ 'value' : string ; } } export namespace v1 . skill . interactionModel { interface export interface IsNotInDuration { 'type' : 'isNotInDuration' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * * `AMAZON.DATE`: ISO 8601 Duration using Y, M or D components or ISO 8601 Calendar Date in YYYY-MM-DD format. * `AMAZON.TIME`: ISO 8601 Duration using H or M component or ISO 8601 24-Hour Clock Time in hh:mm format.
         */ 'start' ? : string ; /**
         * * `AMAZON.DATE`: ISO 8601 Duration using Y, M or D components or ISO 8601 Calendar Date in YYYY-MM-DD format. * `AMAZON.TIME`: ISO 8601 Duration using H or M component or ISO 8601 24-Hour Clock Time in hh:mm format.
         */ 'end' ? : string ; } } export namespace v1 . skill . interactionModel { interface export interface IsNotInSet { 'type' : 'isNotInSet' ; /**
         * The prompt id that should be used if validation fails.
         */ 'prompt' : string ; /**
         * List of values to check.
         */ 'values' : Array < string > ; } } export namespace v1 . skill . interactionModel . conflictDetection { interface export interface GetConflictsResponse { 'paginationContext' ? : v1 . skill . interactionModel . conflictDetection . PaginationContext ; '_links' ? : v1 . Links ; 'results' : Array < v1 . skill . interactionModel . conflictDetection . GetConflictsResponseResult > ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface Catalog { 'type' : 'Catalog' ; /**
         * Catalog identifier.
         */ 'id' ? : string ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface CatalogAutoRefresh { 'type' : 'CatalogAutoRefresh' ; /**
         * CatalogAutoRefresh can only have CatalogAutoRefresh trigger.
         */ 'trigger' ? : v1 . skill . interactionModel . jobs . Scheduled ; /**
         * Current status of the job definition.
         */ 'status' ? : string ; /**
         * The resource that the job is act on. Only catalog is allowed.
         */ 'resource' ? : v1 . skill . interactionModel . jobs . Catalog ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface InteractionModel { 'type' : 'InteractionModel' ; /**
         * Skill identifier.
         */ 'id' : string ; /**
         * Locale identifier and default is empty list which means all available locales.
         */ 'locales' : Array < string > ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface ReferenceVersionUpdate { 'type' : 'ReferenceVersionUpdate' ; /**
         * Can only have ReferencedResourceJobsComplete trigger.
         */ 'trigger' ? : v1 . skill . interactionModel . jobs . ReferencedResourceJobsComplete ; /**
         * Current status of the job definition.
         */ 'status' ? : string ; /**
         * The resource that the job is act on. Only slot and interactionModel are allowed.
         */ 'resource' ? : v1 . skill . interactionModel . jobs . ResourceObject ; /**
         * Referenced resources working with ReferencedResourceJobsComplete trigger.
         */ 'references' ? : Array < v1 . skill . interactionModel . jobs . ResourceObject > ; /**
         * Whether publish development stage to live after the updates.
         */ 'publishToLive' ? : boolean ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface ReferencedResourceJobsComplete { 'type' : 'ReferencedResourceJobsComplete' ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface Scheduled { 'type' : 'Scheduled' ; /**
         * The cron-like attribute in UTC time to describe the hour of the day and currently can only be 0,4,8,12,16,20.
         */ 'hour' : number ; /**
         * If not null, this means the scheudule is weekly. the cron-like attribute in UTC time to describe the day of the week (0-6).
         */ 'dayOfWeek' ? : number ; } } export namespace v1 . skill . interactionModel . jobs { interface export interface SlotTypeReference { 'type' : 'SlotTypeReference' ; /**
         * SlotTypeReference identifier.
         */ 'id' ? : string ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface AnnotationSet { 'locale' ? : string ; /**
         * Name of the NLU annotation set
         */ 'name' ? : string ; /**
         * Number of entries which represents number of utterances in each NLU annotation set content
         */ 'numberOfEntries' ? : number ; /**
         * The lastest updated timestamp for the NLU annotation set
         */ 'updatedTimestamp' ? : string ; /**
         * Identifier of the NLU annotation set.
         */ 'annotationId' ? : string ; } } export namespace v1 . skill . nlu . annotationSets { interface export interface GetNLUAnnotationSetPropertiesResponse { 'locale' ? : string ; /**
         * Name of the NLU annotation set
         */ 'name' ? : string ; /**
         * Number of entries which represents number of utterances in each NLU annotation set content
         */ 'numberOfEntries' ? : number ; /**
         * The lastest updated timestamp for the NLU annotation set
         */ 'updatedTimestamp' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface Evaluation { 'startTimestamp' ? : string ; 'endTimestamp' ? : string ; 'status' ? : v1 . skill . nlu . evaluations . Status ; /**
         * Error message when evaluation job fails
         */ 'errorMessage' ? : string ; 'inputs' ? : v1 . skill . nlu . evaluations . EvaluationInputs ; /**
         * id of the job
         */ 'id' ? : string ; } } export namespace v1 . skill . nlu . evaluations { interface export interface GetNLUEvaluationResponse { 'startTimestamp' ? : string ; 'endTimestamp' ? : string ; 'status' ? : v1 . skill . nlu . evaluations . Status ; /**
         * Error message when evaluation job fails
         */ 'errorMessage' ? : string ; 'inputs' ? : v1 . skill . nlu . evaluations . EvaluationInputs ; '_links' ? : v1 . skill . nlu . evaluations . GetNLUEvaluationResponseLinks ; } } export namespace v1 . skill . nlu . evaluations { interface export interface GetNLUEvaluationResultsResponse { 'paginationContext' ? : v1 . skill . nlu . evaluations . PagedResultsResponsePaginationContext ; '_links' ? : v1 . skill . nlu . evaluations . Links ; /**
         * count of tests failed. A test fails when the expected intent and expected slots are not identical.
         */ 'totalFailed' ? : number ; 'testCases' ? : Array < v1 . skill . nlu . evaluations . TestCase > ; } } export namespace v1 . skill . nlu . evaluations { interface export interface ListNLUEvaluationsResponse { 'paginationContext' ? : v1 . skill . nlu . evaluations . PaginationContext ; '_links' ? : v1 . skill . nlu . evaluations . Links ; 'evaluations' ? : Array < v1 . skill . nlu . evaluations . Evaluation > ; } } export namespace v1 . smartHomeEvaluation { interface export interface EvaluateSHCapabilityResponse { 'capabilityTestPlan' : v1 . smartHomeEvaluation . CapabilityTestPlan ; 'endpoint' : v1 . smartHomeEvaluation . Endpoint ; 'stage' : v1 . smartHomeEvaluation . Stage ; 'id' ? : string ; } } export namespace v1 . smartHomeEvaluation { interface export interface GetSHCapabilityEvaluationResultsResponse { 'paginationContext' ? : v1 . smartHomeEvaluation . PaginationContext ; 'testCaseResults' ? : Array < v1 . smartHomeEvaluation . TestCaseResult > ; } } export namespace v1 . smartHomeEvaluation { interface export interface ListSHCapabilityTestPlansResponse { 'paginationContext' ? : v1 . smartHomeEvaluation . PaginationContext ; 'testPlans' ? : Array < v1 . smartHomeEvaluation . ListSHTestPlanItem > ; } } export namespace services . skillManagement { /**
     *
    */ export class SkillManagementServiceClient extends BaseServiceClient { private lwaServiceClient : LwaServiceClient ; private userAgent : string ; constructor ( apiConfiguration , authenticationConfiguration , customUserAgent = null ) { super ( apiConfiguration ) ; this . lwaServiceClient = new LwaServiceClient ( { apiConfiguration , authenticationConfiguration , grantType : 'refresh_token' , } ) ; this . userAgent = createUserAgent ( `${ require ( './package.json' ) . version }` , customUserAgent ) ; } param { string } catalogId async callGetCatalogV0 ( catalogId ) { const __operationId__ = 'callGetCatalogV0' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/catalogs/{catalogId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId async getCatalogV0 ( catalogId ) { const apiResponse = await this . callGetCatalogV0 ( catalogId ) ; return apiResponse . body as v0 . catalog . CatalogDetails ; } param { string } catalogId param { string } nextToken param { number } maxResults async callListUploadsForCatalogV0 ( catalogId , nextToken ? , maxResults ? ) { const __operationId__ = 'callListUploadsForCatalogV0' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/catalogs/{catalogId}/uploads" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { string } nextToken param { number } maxResults async listUploadsForCatalogV0 ( catalogId , nextToken ? , maxResults ? ) { const apiResponse = await this . callListUploadsForCatalogV0 ( catalogId , nextToken , maxResults ) ; return apiResponse . body as v0 . catalog . upload . ListUploadsResponse ; } param { string } catalogId param { v0 . catalog . upload . CreateContentUploadRequest } createContentUploadRequest async callCreateContentUploadV0 ( catalogId , createContentUploadRequest ) { const __operationId__ = 'callCreateContentUploadV0' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( createContentUploadRequest == null ) { throw new Error ( `Required parameter createContentUploadRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/catalogs/{catalogId}/uploads" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Content upload created." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createContentUploadRequest , errorDefinitions ) ; } param { string } catalogId param { v0 . catalog . upload . CreateContentUploadRequest } createContentUploadRequest async createContentUploadV0 ( catalogId , createContentUploadRequest ) { const apiResponse = await this . callCreateContentUploadV0 ( catalogId , createContentUploadRequest ) ; return apiResponse . body as v0 . catalog . upload . CreateContentUploadResponse ; } param { string } catalogId param { string } uploadId async callGetContentUploadByIdV0 ( catalogId , uploadId ) { const __operationId__ = 'callGetContentUploadByIdV0' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( uploadId == null ) { throw new Error ( `Required parameter uploadId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'uploadId' , uploadId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/catalogs/{catalogId}/uploads/{uploadId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { string } uploadId async getContentUploadByIdV0 ( catalogId , uploadId ) { const apiResponse = await this . callGetContentUploadByIdV0 ( catalogId , uploadId ) ; return apiResponse . body as v0 . catalog . upload . GetContentUploadResponse ; } param { string } catalogId param { string } uploadId param { v0 . catalog . upload . CompleteUploadRequest } completeUploadRequestPayload async callCompleteCatalogUploadV0 ( catalogId , uploadId , completeUploadRequestPayload ) { const __operationId__ = 'callCompleteCatalogUploadV0' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( uploadId == null ) { throw new Error ( `Required parameter uploadId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( completeUploadRequestPayload == null ) { throw new Error ( `Required parameter completeUploadRequestPayload was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'uploadId' , uploadId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/catalogs/{catalogId}/uploads/{uploadId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , completeUploadRequestPayload , errorDefinitions ) ; } param { string } catalogId param { string } uploadId param { v0 . catalog . upload . CompleteUploadRequest } completeUploadRequestPayload async completeCatalogUploadV0 ( catalogId , uploadId , completeUploadRequestPayload ) { await this . callCompleteCatalogUploadV0 ( catalogId , uploadId , completeUploadRequestPayload ) ; } param { string } vendorId param { string } nextToken param { number } maxResults async callListCatalogsForVendorV0 ( vendorId , nextToken ? , maxResults ? ) { const __operationId__ = 'callListCatalogsForVendorV0' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/catalogs" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { string } nextToken param { number } maxResults async listCatalogsForVendorV0 ( vendorId , nextToken ? , maxResults ? ) { const apiResponse = await this . callListCatalogsForVendorV0 ( vendorId , nextToken , maxResults ) ; return apiResponse . body as v0 . catalog . ListCatalogsResponse ; } param { v0 . catalog . CreateCatalogRequest } createCatalogRequest async callCreateCatalogV0 ( createCatalogRequest ) { const __operationId__ = 'callCreateCatalogV0' ; if ( createCatalogRequest == null ) { throw new Error ( `Required parameter createCatalogRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/catalogs" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Catalog created." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createCatalogRequest , errorDefinitions ) ; } param { v0 . catalog . CreateCatalogRequest } createCatalogRequest async createCatalogV0 ( createCatalogRequest ) { const apiResponse = await this . callCreateCatalogV0 ( createCatalogRequest ) ; return apiResponse . body as v0 . catalog . CatalogDetails ; } param { string } vendorId param { string } nextToken param { number } maxResults async callListSubscribersForDevelopmentEventsV0 ( vendorId , nextToken ? , maxResults ? ) { const __operationId__ = 'callListSubscribersForDevelopmentEventsV0' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscribers" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { string } nextToken param { number } maxResults async listSubscribersForDevelopmentEventsV0 ( vendorId , nextToken ? , maxResults ? ) { const apiResponse = await this . callListSubscribersForDevelopmentEventsV0 ( vendorId , nextToken , maxResults ) ; return apiResponse . body as v0 . developmentEvents . subscriber . ListSubscribersResponse ; } param { v0 . developmentEvents . subscriber . CreateSubscriberRequest } createSubscriberRequest async callCreateSubscriberForDevelopmentEventsV0 ( createSubscriberRequest ) { const __operationId__ = 'callCreateSubscriberForDevelopmentEventsV0' ; if ( createSubscriberRequest == null ) { throw new Error ( `Required parameter createSubscriberRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscribers" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Created. Returns a URL to retrieve the subscriber in &#39;Location&#39; header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createSubscriberRequest , errorDefinitions ) ; } param { v0 . developmentEvents . subscriber . CreateSubscriberRequest } createSubscriberRequest async createSubscriberForDevelopmentEventsV0 ( createSubscriberRequest ) { await this . callCreateSubscriberForDevelopmentEventsV0 ( createSubscriberRequest ) ; } param { string } subscriberId async callDeleteSubscriberForDevelopmentEventsV0 ( subscriberId ) { const __operationId__ = 'callDeleteSubscriberForDevelopmentEventsV0' ; if ( subscriberId == null ) { throw new Error ( `Required parameter subscriberId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'subscriberId' , subscriberId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscribers/{subscriberId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } subscriberId async deleteSubscriberForDevelopmentEventsV0 ( subscriberId ) { await this . callDeleteSubscriberForDevelopmentEventsV0 ( subscriberId ) ; } param { string } subscriberId async callGetSubscriberForDevelopmentEventsV0 ( subscriberId ) { const __operationId__ = 'callGetSubscriberForDevelopmentEventsV0' ; if ( subscriberId == null ) { throw new Error ( `Required parameter subscriberId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'subscriberId' , subscriberId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscribers/{subscriberId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } subscriberId async getSubscriberForDevelopmentEventsV0 ( subscriberId ) { const apiResponse = await this . callGetSubscriberForDevelopmentEventsV0 ( subscriberId ) ; return apiResponse . body as v0 . developmentEvents . subscriber . SubscriberInfo ; } param { string } subscriberId param { v0 . developmentEvents . subscriber . UpdateSubscriberRequest } updateSubscriberRequest async callSetSubscriberForDevelopmentEventsV0 ( subscriberId , updateSubscriberRequest ) { const __operationId__ = 'callSetSubscriberForDevelopmentEventsV0' ; if ( subscriberId == null ) { throw new Error ( `Required parameter subscriberId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateSubscriberRequest == null ) { throw new Error ( `Required parameter updateSubscriberRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'subscriberId' , subscriberId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscribers/{subscriberId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateSubscriberRequest , errorDefinitions ) ; } param { string } subscriberId param { v0 . developmentEvents . subscriber . UpdateSubscriberRequest } updateSubscriberRequest async setSubscriberForDevelopmentEventsV0 ( subscriberId , updateSubscriberRequest ) { await this . callSetSubscriberForDevelopmentEventsV0 ( subscriberId , updateSubscriberRequest ) ; } param { string } vendorId param { string } nextToken param { number } maxResults param { string } subscriberId async callListSubscriptionsForDevelopmentEventsV0 ( vendorId , nextToken ? , maxResults ? , subscriberId ? ) { const __operationId__ = 'callListSubscriptionsForDevelopmentEventsV0' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( subscriberId != null ) { const subscriberIdValues = Array . isArray ( subscriberId ) ? subscriberId : [ subscriberId ] ; subscriberIdValues . forEach ( val => queryParams . push ( { key : 'subscriberId' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscriptions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { string } nextToken param { number } maxResults param { string } subscriberId async listSubscriptionsForDevelopmentEventsV0 ( vendorId , nextToken ? , maxResults ? , subscriberId ? ) { const apiResponse = await this . callListSubscriptionsForDevelopmentEventsV0 ( vendorId , nextToken , maxResults , subscriberId ) ; return apiResponse . body as v0 . developmentEvents . subscription . ListSubscriptionsResponse ; } param { v0 . developmentEvents . subscription . CreateSubscriptionRequest } createSubscriptionRequest async callCreateSubscriptionForDevelopmentEventsV0 ( createSubscriptionRequest ? ) { const __operationId__ = 'callCreateSubscriptionForDevelopmentEventsV0' ; const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscriptions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Created; Returns a URL to retrieve the subscription in &#39;Location&#39; header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createSubscriptionRequest , errorDefinitions ) ; } param { v0 . developmentEvents . subscription . CreateSubscriptionRequest } createSubscriptionRequest async createSubscriptionForDevelopmentEventsV0 ( createSubscriptionRequest ? ) { await this . callCreateSubscriptionForDevelopmentEventsV0 ( createSubscriptionRequest ) ; } param { string } subscriptionId async callDeleteSubscriptionForDevelopmentEventsV0 ( subscriptionId ) { const __operationId__ = 'callDeleteSubscriptionForDevelopmentEventsV0' ; if ( subscriptionId == null ) { throw new Error ( `Required parameter subscriptionId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'subscriptionId' , subscriptionId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscriptions/{subscriptionId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } subscriptionId async deleteSubscriptionForDevelopmentEventsV0 ( subscriptionId ) { await this . callDeleteSubscriptionForDevelopmentEventsV0 ( subscriptionId ) ; } param { string } subscriptionId async callGetSubscriptionForDevelopmentEventsV0 ( subscriptionId ) { const __operationId__ = 'callGetSubscriptionForDevelopmentEventsV0' ; if ( subscriptionId == null ) { throw new Error ( `Required parameter subscriptionId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'subscriptionId' , subscriptionId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscriptions/{subscriptionId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } subscriptionId async getSubscriptionForDevelopmentEventsV0 ( subscriptionId ) { const apiResponse = await this . callGetSubscriptionForDevelopmentEventsV0 ( subscriptionId ) ; return apiResponse . body as v0 . developmentEvents . subscription . SubscriptionInfo ; } param { string } subscriptionId param { v0 . developmentEvents . subscription . UpdateSubscriptionRequest } updateSubscriptionRequest async callSetSubscriptionForDevelopmentEventsV0 ( subscriptionId , updateSubscriptionRequest ? ) { const __operationId__ = 'callSetSubscriptionForDevelopmentEventsV0' ; if ( subscriptionId == null ) { throw new Error ( `Required parameter subscriptionId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'subscriptionId' , subscriptionId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/developmentEvents/subscriptions/{subscriptionId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No content." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateSubscriptionRequest , errorDefinitions ) ; } param { string } subscriptionId param { v0 . developmentEvents . subscription . UpdateSubscriptionRequest } updateSubscriptionRequest async setSubscriptionForDevelopmentEventsV0 ( subscriptionId , updateSubscriptionRequest ? ) { await this . callSetSubscriptionForDevelopmentEventsV0 ( subscriptionId , updateSubscriptionRequest ) ; } param { string } skillId param { string } catalogId async callAssociateCatalogWithSkillV0 ( skillId , catalogId ) { const __operationId__ = 'callAssociateCatalogWithSkillV0' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/skills/{skillId}/catalogs/{catalogId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } catalogId async associateCatalogWithSkillV0 ( skillId , catalogId ) { await this . callAssociateCatalogWithSkillV0 ( skillId , catalogId ) ; } param { string } skillId param { string } nextToken param { number } maxResults async callListCatalogsForSkillV0 ( skillId , nextToken ? , maxResults ? ) { const __operationId__ = 'callListCatalogsForSkillV0' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v0/skills/{skillId}/catalogs" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } nextToken param { number } maxResults async listCatalogsForSkillV0 ( skillId , nextToken ? , maxResults ? ) { const apiResponse = await this . callListCatalogsForSkillV0 ( skillId , nextToken , maxResults ) ; return apiResponse . body as v0 . catalog . ListCatalogsResponse ; } param { string } catalogId param { v1 . catalog . upload . CatalogUploadBase } catalogUploadRequestBody async callCreateCatalogUploadV1 ( catalogId , catalogUploadRequestBody ) { const __operationId__ = 'callCreateCatalogUploadV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( catalogUploadRequestBody == null ) { throw new Error ( `Required parameter catalogUploadRequestBody was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/catalogs/{catalogId}/uploads" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId. " ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , catalogUploadRequestBody , errorDefinitions ) ; } param { string } catalogId param { v1 . catalog . upload . CatalogUploadBase } catalogUploadRequestBody async createCatalogUploadV1 ( catalogId , catalogUploadRequestBody ) { await this . callCreateCatalogUploadV1 ( catalogId , catalogUploadRequestBody ) ; } param { string } catalogId param { string } uploadId async callGetContentUploadByIdV1 ( catalogId , uploadId ) { const __operationId__ = 'callGetContentUploadByIdV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( uploadId == null ) { throw new Error ( `Required parameter uploadId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'uploadId' , uploadId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/catalogs/{catalogId}/uploads/{uploadId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successful operation." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId. " ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { string } uploadId async getContentUploadByIdV1 ( catalogId , uploadId ) { const apiResponse = await this . callGetContentUploadByIdV1 ( catalogId , uploadId ) ; return apiResponse . body as v1 . catalog . upload . GetContentUploadResponse ; } param { string } catalogId param { v1 . catalog . CreateContentUploadUrlRequest } generateCatalogUploadUrlRequestBody async callGenerateCatalogUploadUrlV1 ( catalogId , generateCatalogUploadUrlRequestBody ) { const __operationId__ = 'callGenerateCatalogUploadUrlV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( generateCatalogUploadUrlRequestBody == null ) { throw new Error ( `Required parameter generateCatalogUploadUrlRequestBody was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/catalogs/{catalogId}/urls" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Successful operation." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , generateCatalogUploadUrlRequestBody , errorDefinitions ) ; } param { string } catalogId param { v1 . catalog . CreateContentUploadUrlRequest } generateCatalogUploadUrlRequestBody async generateCatalogUploadUrlV1 ( catalogId , generateCatalogUploadUrlRequestBody ) { const apiResponse = await this . callGenerateCatalogUploadUrlV1 ( catalogId , generateCatalogUploadUrlRequestBody ) ; return apiResponse . body as v1 . catalog . CreateContentUploadUrlResponse ; } param { v1 . auditLogs . AuditLogsRequest } getAuditLogsRequest async callQueryDevelopmentAuditLogsV1 ( getAuditLogsRequest ) { const __operationId__ = 'callQueryDevelopmentAuditLogsV1' ; if ( getAuditLogsRequest == null ) { throw new Error ( `Required parameter getAuditLogsRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/developmentAuditLogs/query" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns a list of audit logs for the given vendor." ) ; errorDefinitions . set ( 400 , "Invalid request" ) ; errorDefinitions . set ( 401 , "Unauthorized" ) ; errorDefinitions . set ( 403 , "Forbidden" ) ; errorDefinitions . set ( 404 , "Not Found" ) ; errorDefinitions . set ( 429 , "Too Many Requests" ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , getAuditLogsRequest , errorDefinitions ) ; } param { v1 . auditLogs . AuditLogsRequest } getAuditLogsRequest async queryDevelopmentAuditLogsV1 ( getAuditLogsRequest ) { const apiResponse = await this . callQueryDevelopmentAuditLogsV1 ( getAuditLogsRequest ) ; return apiResponse . body as v1 . auditLogs . AuditLogsResponse ; } param { string } vendorId param { string } nextToken param { number } maxResults param { Array < string > } productId param { string } stage param { string } type param { string } referenceName param { string } status param { string } isAssociatedWithSkill async callGetIspListForVendorV1 ( vendorId , nextToken ? , maxResults ? , productId ? , stage ? , type ? , referenceName ? , status ? , isAssociatedWithSkill ? ) { const __operationId__ = 'callGetIspListForVendorV1' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( productId != null ) { const productIdValues = Array . isArray ( productId ) ? productId : [ productId ] ; productIdValues . forEach ( val => queryParams . push ( { key : 'productId' , value : val ! . toString ( ) } ) ) ; } if ( stage != null ) { const stageValues = Array . isArray ( stage ) ? stage : [ stage ] ; stageValues . forEach ( val => queryParams . push ( { key : 'stage' , value : val } ) ) ; } if ( type != null ) { const typeValues = Array . isArray ( type ) ? type : [ type ] ; typeValues . forEach ( val => queryParams . push ( { key : 'type' , value : val } ) ) ; } if ( referenceName != null ) { const referenceNameValues = Array . isArray ( referenceName ) ? referenceName : [ referenceName ] ; referenceNameValues . forEach ( val => queryParams . push ( { key : 'referenceName' , value : val } ) ) ; } if ( status != null ) { const statusValues = Array . isArray ( status ) ? status : [ status ] ; statusValues . forEach ( val => queryParams . push ( { key : 'status' , value : val } ) ) ; } if ( isAssociatedWithSkill != null ) { const isAssociatedWithSkillValues = Array . isArray ( isAssociatedWithSkill ) ? isAssociatedWithSkill : [ isAssociatedWithSkill ] ; isAssociatedWithSkillValues . forEach ( val => queryParams . push ( { key : 'isAssociatedWithSkill' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Response contains list of in-skill products for the specified vendor and stage." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { string } nextToken param { number } maxResults param { Array < string > } productId param { string } stage param { string } type param { string } referenceName param { string } status param { string } isAssociatedWithSkill async getIspListForVendorV1 ( vendorId , nextToken ? , maxResults ? , productId ? , stage ? , type ? , referenceName ? , status ? , isAssociatedWithSkill ? ) { const apiResponse = await this . callGetIspListForVendorV1 ( vendorId , nextToken , maxResults , productId , stage , type , referenceName , status , isAssociatedWithSkill ) ; return apiResponse . body as v1 . isp . ListInSkillProductResponse ; } param { v1 . isp . CreateInSkillProductRequest } createInSkillProductRequest async callCreateIspForVendorV1 ( createInSkillProductRequest ) { const __operationId__ = 'callCreateIspForVendorV1' ; if ( createInSkillProductRequest == null ) { throw new Error ( `Required parameter createInSkillProductRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Success." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createInSkillProductRequest , errorDefinitions ) ; } param { v1 . isp . CreateInSkillProductRequest } createInSkillProductRequest async createIspForVendorV1 ( createInSkillProductRequest ) { const apiResponse = await this . callCreateIspForVendorV1 ( createInSkillProductRequest ) ; return apiResponse . body as v1 . isp . ProductResponse ; } param { string } productId param { string } skillId async callDisassociateIspWithSkillV1 ( productId , skillId ) { const __operationId__ = 'callDisassociateIspWithSkillV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/skills/{skillId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "Request is forbidden." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } productId param { string } skillId async disassociateIspWithSkillV1 ( productId , skillId ) { await this . callDisassociateIspWithSkillV1 ( productId , skillId ) ; } param { string } productId param { string } skillId async callAssociateIspWithSkillV1 ( productId , skillId ) { const __operationId__ = 'callAssociateIspWithSkillV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/skills/{skillId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "Request is forbidden." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } productId param { string } skillId async associateIspWithSkillV1 ( productId , skillId ) { await this . callAssociateIspWithSkillV1 ( productId , skillId ) ; } param { string } productId param { string } stage param { string } ifMatch async callDeleteIspForProductV1 ( productId , stage , ifMatch ? ) { const __operationId__ = 'callDeleteIspForProductV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ifMatch != null ) { headerParams . push ( { key : 'If-Match' , value : ifMatch } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/stages/{stage}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "Request is forbidden." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } productId param { string } stage param { string } ifMatch async deleteIspForProductV1 ( productId , stage , ifMatch ? ) { await this . callDeleteIspForProductV1 ( productId , stage , ifMatch ) ; } param { string } productId param { string } stage async callResetEntitlementForProductV1 ( productId , stage ) { const __operationId__ = 'callResetEntitlementForProductV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/stages/{stage}/entitlement" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "Request is forbidden." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } productId param { string } stage async resetEntitlementForProductV1 ( productId , stage ) { await this . callResetEntitlementForProductV1 ( productId , stage ) ; } param { string } productId param { string } stage async callGetIspDefinitionV1 ( productId , stage ) { const __operationId__ = 'callGetIspDefinitionV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/stages/{stage}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Response contains the latest version of an in-skill product for the specified stage." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } productId param { string } stage async getIspDefinitionV1 ( productId , stage ) { const apiResponse = await this . callGetIspDefinitionV1 ( productId , stage ) ; return apiResponse . body as v1 . isp . InSkillProductDefinitionResponse ; } param { string } productId param { string } stage param { v1 . isp . UpdateInSkillProductRequest } updateInSkillProductRequest param { string } ifMatch async callUpdateIspForProductV1 ( productId , stage , updateInSkillProductRequest , ifMatch ? ) { const __operationId__ = 'callUpdateIspForProductV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateInSkillProductRequest == null ) { throw new Error ( `Required parameter updateInSkillProductRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ifMatch != null ) { headerParams . push ( { key : 'If-Match' , value : ifMatch } ) ; } if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/stages/{stage}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "Request is forbidden." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateInSkillProductRequest , errorDefinitions ) ; } param { string } productId param { string } stage param { v1 . isp . UpdateInSkillProductRequest } updateInSkillProductRequest param { string } ifMatch async updateIspForProductV1 ( productId , stage , updateInSkillProductRequest , ifMatch ? ) { await this . callUpdateIspForProductV1 ( productId , stage , updateInSkillProductRequest , ifMatch ) ; } param { string } productId param { string } stage param { string } nextToken param { number } maxResults async callGetIspAssociatedSkillsV1 ( productId , stage , nextToken ? , maxResults ? ) { const __operationId__ = 'callGetIspAssociatedSkillsV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/stages/{stage}/skills" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns skills associated with the in-skill product." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } productId param { string } stage param { string } nextToken param { number } maxResults async getIspAssociatedSkillsV1 ( productId , stage , nextToken ? , maxResults ? ) { const apiResponse = await this . callGetIspAssociatedSkillsV1 ( productId , stage , nextToken , maxResults ) ; return apiResponse . body as v1 . isp . AssociatedSkillResponse ; } param { string } productId param { string } stage async callGetIspSummaryV1 ( productId , stage ) { const __operationId__ = 'callGetIspSummaryV1' ; if ( productId == null ) { throw new Error ( `Required parameter productId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'productId' , productId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/inSkillProducts/{productId}/stages/{stage}/summary" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns current in-skill product summary for productId." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } productId param { string } stage async getIspSummaryV1 ( productId , stage ) { const apiResponse = await this . callGetIspSummaryV1 ( productId , stage ) ; return apiResponse . body as v1 . isp . InSkillProductSummaryResponse ; } param { string } catalogId async callDeleteInteractionModelCatalogV1 ( catalogId ) { const __operationId__ = 'callDeleteInteractionModelCatalogV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No content; just confirm the catalog is deleted." ) ; errorDefinitions . set ( 400 , "The catalog cannot be deleted from reasons due to in-use by other entities." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId async deleteInteractionModelCatalogV1 ( catalogId ) { await this . callDeleteInteractionModelCatalogV1 ( catalogId ) ; } param { string } catalogId async callGetInteractionModelCatalogDefinitionV1 ( catalogId ) { const __operationId__ = 'callGetInteractionModelCatalogDefinitionV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "the catalog definition" ) ; errorDefinitions . set ( 400 , "The catalog cannot be retrieved due to errors listed." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId async getInteractionModelCatalogDefinitionV1 ( catalogId ) { const apiResponse = await this . callGetInteractionModelCatalogDefinitionV1 ( catalogId ) ; return apiResponse . body as v1 . skill . interactionModel . catalog . CatalogDefinitionOutput ; } param { string } catalogId param { v1 . skill . interactionModel . catalog . UpdateRequest } updateRequest async callUpdateInteractionModelCatalogV1 ( catalogId , updateRequest ) { const __operationId__ = 'callUpdateInteractionModelCatalogV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateRequest == null ) { throw new Error ( `Required parameter updateRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/update" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No content, indicates the fields were successfully updated." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateRequest , errorDefinitions ) ; } param { string } catalogId param { v1 . skill . interactionModel . catalog . UpdateRequest } updateRequest async updateInteractionModelCatalogV1 ( catalogId , updateRequest ) { await this . callUpdateInteractionModelCatalogV1 ( catalogId , updateRequest ) ; } param { string } catalogId param { string } updateRequestId async callGetInteractionModelCatalogUpdateStatusV1 ( catalogId , updateRequestId ) { const __operationId__ = 'callGetInteractionModelCatalogUpdateStatusV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateRequestId == null ) { throw new Error ( `Required parameter updateRequestId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'updateRequestId' , updateRequestId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/updateRequest/{updateRequestId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns the build status and error codes for the given catalogId" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { string } updateRequestId async getInteractionModelCatalogUpdateStatusV1 ( catalogId , updateRequestId ) { const apiResponse = await this . callGetInteractionModelCatalogUpdateStatusV1 ( catalogId , updateRequestId ) ; return apiResponse . body as v1 . skill . interactionModel . catalog . CatalogStatus ; } param { string } catalogId param { number } maxResults param { string } nextToken param { string } sortDirection param { string } sortField async callListInteractionModelCatalogVersionsV1 ( catalogId , maxResults ? , nextToken ? , sortDirection ? , sortField ? ) { const __operationId__ = 'callListInteractionModelCatalogVersionsV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( sortDirection != null ) { const sortDirectionValues = Array . isArray ( sortDirection ) ? sortDirection : [ sortDirection ] ; sortDirectionValues . forEach ( val => queryParams . push ( { key : 'sortDirection' , value : val } ) ) ; } if ( sortField != null ) { const sortFieldValues = Array . isArray ( sortField ) ? sortField : [ sortField ] ; sortFieldValues . forEach ( val => queryParams . push ( { key : 'sortField' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/versions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of catalogs for the vendor." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the catalog definition is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified catalog does not exist." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { number } maxResults param { string } nextToken param { string } sortDirection param { string } sortField async listInteractionModelCatalogVersionsV1 ( catalogId , maxResults ? , nextToken ? , sortDirection ? , sortField ? ) { const apiResponse = await this . callListInteractionModelCatalogVersionsV1 ( catalogId , maxResults , nextToken , sortDirection , sortField ) ; return apiResponse . body as v1 . skill . interactionModel . version . ListCatalogEntityVersionsResponse ; } param { string } catalogId param { v1 . skill . interactionModel . version . VersionData } catalog async callCreateInteractionModelCatalogVersionV1 ( catalogId , catalog ) { const __operationId__ = 'callCreateInteractionModelCatalogVersionV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( catalog == null ) { throw new Error ( `Required parameter catalog was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/versions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Returns update status location link on success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the catalog definition is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified catalog does not exist." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , catalog , errorDefinitions ) ; } param { string } catalogId param { v1 . skill . interactionModel . version . VersionData } catalog async createInteractionModelCatalogVersionV1 ( catalogId , catalog ) { await this . callCreateInteractionModelCatalogVersionV1 ( catalogId , catalog ) ; } param { string } catalogId param { string } version async callDeleteInteractionModelCatalogVersionV1 ( catalogId , version ) { const __operationId__ = 'callDeleteInteractionModelCatalogVersionV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/versions/{version}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that version is successfully deleted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog version for this catalogId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { string } version async deleteInteractionModelCatalogVersionV1 ( catalogId , version ) { await this . callDeleteInteractionModelCatalogVersionV1 ( catalogId , version ) ; } param { string } catalogId param { string } version async callGetInteractionModelCatalogVersionV1 ( catalogId , version ) { const __operationId__ = 'callGetInteractionModelCatalogVersionV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/versions/{version}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns the catalog version metadata for the given catalogId and version." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { string } version async getInteractionModelCatalogVersionV1 ( catalogId , version ) { const apiResponse = await this . callGetInteractionModelCatalogVersionV1 ( catalogId , version ) ; return apiResponse . body as v1 . skill . interactionModel . version . CatalogVersionData ; } param { string } catalogId param { string } version param { v1 . skill . interactionModel . version . CatalogUpdate } catalogUpdate async callUpdateInteractionModelCatalogVersionV1 ( catalogId , version , catalogUpdate ? ) { const __operationId__ = 'callUpdateInteractionModelCatalogVersionV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/versions/{version}/update" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that version is successfully updated." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId" ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , catalogUpdate , errorDefinitions ) ; } param { string } catalogId param { string } version param { v1 . skill . interactionModel . version . CatalogUpdate } catalogUpdate async updateInteractionModelCatalogVersionV1 ( catalogId , version , catalogUpdate ? ) { await this . callUpdateInteractionModelCatalogVersionV1 ( catalogId , version , catalogUpdate ) ; } param { string } catalogId param { string } version param { number } maxResults param { string } nextToken async callGetInteractionModelCatalogValuesV1 ( catalogId , version , maxResults ? , nextToken ? ) { const __operationId__ = 'callGetInteractionModelCatalogValuesV1' ; if ( catalogId == null ) { throw new Error ( `Required parameter catalogId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'catalogId' , catalogId ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs/{catalogId}/versions/{version}/values" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of catalog values for the given catalogId and version." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId" ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } catalogId param { string } version param { number } maxResults param { string } nextToken async getInteractionModelCatalogValuesV1 ( catalogId , version , maxResults ? , nextToken ? ) { const apiResponse = await this . callGetInteractionModelCatalogValuesV1 ( catalogId , version , maxResults , nextToken ) ; return apiResponse . body as v1 . skill . interactionModel . version . CatalogValues ; } param { string } vendorId param { number } maxResults param { string } nextToken param { string } sortDirection async callListInteractionModelCatalogsV1 ( vendorId , maxResults ? , nextToken ? , sortDirection ? ) { const __operationId__ = 'callListInteractionModelCatalogsV1' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( sortDirection != null ) { const sortDirectionValues = Array . isArray ( sortDirection ) ? sortDirection : [ sortDirection ] ; sortDirectionValues . forEach ( val => queryParams . push ( { key : 'sortDirection' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of catalogs for the vendor." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { number } maxResults param { string } nextToken param { string } sortDirection async listInteractionModelCatalogsV1 ( vendorId , maxResults ? , nextToken ? , sortDirection ? ) { const apiResponse = await this . callListInteractionModelCatalogsV1 ( vendorId , maxResults , nextToken , sortDirection ) ; return apiResponse . body as v1 . skill . interactionModel . catalog . ListCatalogResponse ; } param { v1 . skill . interactionModel . catalog . DefinitionData } catalog async callCreateInteractionModelCatalogV1 ( catalog ) { const __operationId__ = 'callCreateInteractionModelCatalogV1' ; if ( catalog == null ) { throw new Error ( `Required parameter catalog was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/catalogs" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns the generated catalogId." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the catalog definition is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , catalog , errorDefinitions ) ; } param { v1 . skill . interactionModel . catalog . DefinitionData } catalog async createInteractionModelCatalogV1 ( catalog ) { const apiResponse = await this . callCreateInteractionModelCatalogV1 ( catalog ) ; return apiResponse . body as v1 . skill . interactionModel . catalog . CatalogResponse ; } param { string } vendorId param { number } maxResults param { string } nextToken async callListJobDefinitionsForInteractionModelV1 ( vendorId , maxResults ? , nextToken ? ) { const __operationId__ = 'callListJobDefinitionsForInteractionModelV1' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/jobs" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "List of all jobs associated with the vendor." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { number } maxResults param { string } nextToken async listJobDefinitionsForInteractionModelV1 ( vendorId , maxResults ? , nextToken ? ) { const apiResponse = await this . callListJobDefinitionsForInteractionModelV1 ( vendorId , maxResults , nextToken ) ; return apiResponse . body as v1 . skill . interactionModel . jobs . ListJobDefinitionsResponse ; } param { string } jobId async callDeleteJobDefinitionForInteractionModelV1 ( jobId ) { const __operationId__ = 'callDeleteJobDefinitionForInteractionModelV1' ; if ( jobId == null ) { throw new Error ( `Required parameter jobId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'jobId' , jobId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/jobs/{jobId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No content, confirms the resource is updated." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } jobId async deleteJobDefinitionForInteractionModelV1 ( jobId ) { await this . callDeleteJobDefinitionForInteractionModelV1 ( jobId ) ; } param { string } jobId param { string } executionId async callCancelNextJobExecutionForInteractionModelV1 ( jobId , executionId ) { const __operationId__ = 'callCancelNextJobExecutionForInteractionModelV1' ; if ( jobId == null ) { throw new Error ( `Required parameter jobId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( executionId == null ) { throw new Error ( `Required parameter executionId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'jobId' , jobId ) ; pathParams . set ( 'executionId' , executionId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/jobs/{jobId}/executions/{executionId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that the next execution is canceled." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } jobId param { string } executionId async cancelNextJobExecutionForInteractionModelV1 ( jobId , executionId ) { await this . callCancelNextJobExecutionForInteractionModelV1 ( jobId , executionId ) ; } param { string } jobId param { number } maxResults param { string } nextToken param { string } sortDirection async callListJobExecutionsForInteractionModelV1 ( jobId , maxResults ? , nextToken ? , sortDirection ? ) { const __operationId__ = 'callListJobExecutionsForInteractionModelV1' ; if ( jobId == null ) { throw new Error ( `Required parameter jobId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( sortDirection != null ) { const sortDirectionValues = Array . isArray ( sortDirection ) ? sortDirection : [ sortDirection ] ; sortDirectionValues . forEach ( val => queryParams . push ( { key : 'sortDirection' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'jobId' , jobId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/jobs/{jobId}/executions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Retrun list of executions associated with the job definition." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } jobId param { number } maxResults param { string } nextToken param { string } sortDirection async listJobExecutionsForInteractionModelV1 ( jobId , maxResults ? , nextToken ? , sortDirection ? ) { const apiResponse = await this . callListJobExecutionsForInteractionModelV1 ( jobId , maxResults , nextToken , sortDirection ) ; return apiResponse . body as v1 . skill . interactionModel . jobs . GetExecutionsResponse ; } param { string } jobId async callGetJobDefinitionForInteractionModelV1 ( jobId ) { const __operationId__ = 'callGetJobDefinitionForInteractionModelV1' ; if ( jobId == null ) { throw new Error ( `Required parameter jobId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'jobId' , jobId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/jobs/{jobId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "The job definition for a given jobId." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } jobId async getJobDefinitionForInteractionModelV1 ( jobId ) { const apiResponse = await this . callGetJobDefinitionForInteractionModelV1 ( jobId ) ; return apiResponse . body as v1 . skill . interactionModel . jobs . JobDefinition ; } param { string } jobId param { v1 . skill . interactionModel . jobs . UpdateJobStatusRequest } updateJobStatusRequest async callSetJobStatusForInteractionModelV1 ( jobId , updateJobStatusRequest ) { const __operationId__ = 'callSetJobStatusForInteractionModelV1' ; if ( jobId == null ) { throw new Error ( `Required parameter jobId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateJobStatusRequest == null ) { throw new Error ( `Required parameter updateJobStatusRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'jobId' , jobId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/jobs/{jobId}/status" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No content; Confirms that the fields are updated." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateJobStatusRequest , errorDefinitions ) ; } param { string } jobId param { v1 . skill . interactionModel . jobs . UpdateJobStatusRequest } updateJobStatusRequest async setJobStatusForInteractionModelV1 ( jobId , updateJobStatusRequest ) { await this . callSetJobStatusForInteractionModelV1 ( jobId , updateJobStatusRequest ) ; } param { v1 . skill . interactionModel . jobs . CreateJobDefinitionRequest } createJobDefinitionRequest async callCreateJobDefinitionForInteractionModelV1 ( createJobDefinitionRequest ) { const __operationId__ = 'callCreateJobDefinitionForInteractionModelV1' ; if ( createJobDefinitionRequest == null ) { throw new Error ( `Required parameter createJobDefinitionRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/jobs" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Returns the generated jobId." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createJobDefinitionRequest , errorDefinitions ) ; } param { v1 . skill . interactionModel . jobs . CreateJobDefinitionRequest } createJobDefinitionRequest async createJobDefinitionForInteractionModelV1 ( createJobDefinitionRequest ) { const apiResponse = await this . callCreateJobDefinitionForInteractionModelV1 ( createJobDefinitionRequest ) ; return apiResponse . body as v1 . skill . interactionModel . jobs . CreateJobDefinitionResponse ; } param { string } vendorId param { number } maxResults param { string } nextToken param { string } sortDirection async callListInteractionModelSlotTypesV1 ( vendorId , maxResults ? , nextToken ? , sortDirection ? ) { const __operationId__ = 'callListInteractionModelSlotTypesV1' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( sortDirection != null ) { const sortDirectionValues = Array . isArray ( sortDirection ) ? sortDirection : [ sortDirection ] ; sortDirectionValues . forEach ( val => queryParams . push ( { key : 'sortDirection' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of slot types for the vendor." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { number } maxResults param { string } nextToken param { string } sortDirection async listInteractionModelSlotTypesV1 ( vendorId , maxResults ? , nextToken ? , sortDirection ? ) { const apiResponse = await this . callListInteractionModelSlotTypesV1 ( vendorId , maxResults , nextToken , sortDirection ) ; return apiResponse . body as v1 . skill . interactionModel . type . ListSlotTypeResponse ; } param { v1 . skill . interactionModel . type . DefinitionData } slotType async callCreateInteractionModelSlotTypeV1 ( slotType ) { const __operationId__ = 'callCreateInteractionModelSlotTypeV1' ; if ( slotType == null ) { throw new Error ( `Required parameter slotType was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns the generated slotTypeId." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the slot type definition is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , slotType , errorDefinitions ) ; } param { v1 . skill . interactionModel . type . DefinitionData } slotType async createInteractionModelSlotTypeV1 ( slotType ) { const apiResponse = await this . callCreateInteractionModelSlotTypeV1 ( slotType ) ; return apiResponse . body as v1 . skill . interactionModel . type . SlotTypeResponse ; } param { string } slotTypeId async callDeleteInteractionModelSlotTypeV1 ( slotTypeId ) { const __operationId__ = 'callDeleteInteractionModelSlotTypeV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No content; just confirm the slot type is deleted." ) ; errorDefinitions . set ( 400 , "The slot type cannot be deleted from reasons due to in-use by other entities." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no slot type defined for the slotTypeId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } slotTypeId async deleteInteractionModelSlotTypeV1 ( slotTypeId ) { await this . callDeleteInteractionModelSlotTypeV1 ( slotTypeId ) ; } param { string } slotTypeId async callGetInteractionModelSlotTypeDefinitionV1 ( slotTypeId ) { const __operationId__ = 'callGetInteractionModelSlotTypeDefinitionV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "The slot type definition." ) ; errorDefinitions . set ( 400 , "The slot type cannot be retrieved due to errors listed." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no slot type defined for the slotTypeId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } slotTypeId async getInteractionModelSlotTypeDefinitionV1 ( slotTypeId ) { const apiResponse = await this . callGetInteractionModelSlotTypeDefinitionV1 ( slotTypeId ) ; return apiResponse . body as v1 . skill . interactionModel . type . SlotTypeDefinitionOutput ; } param { string } slotTypeId param { v1 . skill . interactionModel . type . UpdateRequest } updateRequest async callUpdateInteractionModelSlotTypeV1 ( slotTypeId , updateRequest ) { const __operationId__ = 'callUpdateInteractionModelSlotTypeV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateRequest == null ) { throw new Error ( `Required parameter updateRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}/update" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No content, indicates the fields were successfully updated." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no slot type defined for the slotTypeId." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateRequest , errorDefinitions ) ; } param { string } slotTypeId param { v1 . skill . interactionModel . type . UpdateRequest } updateRequest async updateInteractionModelSlotTypeV1 ( slotTypeId , updateRequest ) { await this . callUpdateInteractionModelSlotTypeV1 ( slotTypeId , updateRequest ) ; } param { string } slotTypeId param { string } updateRequestId async callGetInteractionModelSlotTypeBuildStatusV1 ( slotTypeId , updateRequestId ) { const __operationId__ = 'callGetInteractionModelSlotTypeBuildStatusV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateRequestId == null ) { throw new Error ( `Required parameter updateRequestId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; pathParams . set ( 'updateRequestId' , updateRequestId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}/updateRequest/{updateRequestId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns the build status and error codes for the given slotTypeId." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no slot type defined for the slotTypeId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } slotTypeId param { string } updateRequestId async getInteractionModelSlotTypeBuildStatusV1 ( slotTypeId , updateRequestId ) { const apiResponse = await this . callGetInteractionModelSlotTypeBuildStatusV1 ( slotTypeId , updateRequestId ) ; return apiResponse . body as v1 . skill . interactionModel . type . SlotTypeStatus ; } param { string } slotTypeId param { number } maxResults param { string } nextToken param { string } sortDirection async callListInteractionModelSlotTypeVersionsV1 ( slotTypeId , maxResults ? , nextToken ? , sortDirection ? ) { const __operationId__ = 'callListInteractionModelSlotTypeVersionsV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( sortDirection != null ) { const sortDirectionValues = Array . isArray ( sortDirection ) ? sortDirection : [ sortDirection ] ; sortDirectionValues . forEach ( val => queryParams . push ( { key : 'sortDirection' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}/versions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of slot type version for the slot type id." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } slotTypeId param { number } maxResults param { string } nextToken param { string } sortDirection async listInteractionModelSlotTypeVersionsV1 ( slotTypeId , maxResults ? , nextToken ? , sortDirection ? ) { const apiResponse = await this . callListInteractionModelSlotTypeVersionsV1 ( slotTypeId , maxResults , nextToken , sortDirection ) ; return apiResponse . body as v1 . skill . interactionModel . typeVersion . ListSlotTypeVersionResponse ; } param { string } slotTypeId param { v1 . skill . interactionModel . typeVersion . VersionData } slotType async callCreateInteractionModelSlotTypeVersionV1 ( slotTypeId , slotType ) { const __operationId__ = 'callCreateInteractionModelSlotTypeVersionV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( slotType == null ) { throw new Error ( `Required parameter slotType was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}/versions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Returns update status location link on success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the slot type definition is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified slot type does not exist." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , slotType , errorDefinitions ) ; } param { string } slotTypeId param { v1 . skill . interactionModel . typeVersion . VersionData } slotType async createInteractionModelSlotTypeVersionV1 ( slotTypeId , slotType ) { await this . callCreateInteractionModelSlotTypeVersionV1 ( slotTypeId , slotType ) ; } param { string } slotTypeId param { string } version async callDeleteInteractionModelSlotTypeVersionV1 ( slotTypeId , version ) { const __operationId__ = 'callDeleteInteractionModelSlotTypeVersionV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}/versions/{version}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that version is successfully deleted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no slot type version for this slotTypeId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } slotTypeId param { string } version async deleteInteractionModelSlotTypeVersionV1 ( slotTypeId , version ) { await this . callDeleteInteractionModelSlotTypeVersionV1 ( slotTypeId , version ) ; } param { string } slotTypeId param { string } version async callGetInteractionModelSlotTypeVersionV1 ( slotTypeId , version ) { const __operationId__ = 'callGetInteractionModelSlotTypeVersionV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}/versions/{version}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns the slot type version metadata for the given slotTypeId and version." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no slot type defined for the slotTypeId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } slotTypeId param { string } version async getInteractionModelSlotTypeVersionV1 ( slotTypeId , version ) { const apiResponse = await this . callGetInteractionModelSlotTypeVersionV1 ( slotTypeId , version ) ; return apiResponse . body as v1 . skill . interactionModel . typeVersion . SlotTypeVersionData ; } param { string } slotTypeId param { string } version param { v1 . skill . interactionModel . typeVersion . SlotTypeUpdate } slotTypeUpdate async callUpdateInteractionModelSlotTypeVersionV1 ( slotTypeId , version , slotTypeUpdate ) { const __operationId__ = 'callUpdateInteractionModelSlotTypeVersionV1' ; if ( slotTypeId == null ) { throw new Error ( `Required parameter slotTypeId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } if ( slotTypeUpdate == null ) { throw new Error ( `Required parameter slotTypeUpdate was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'slotTypeId' , slotTypeId ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/api/custom/interactionModel/slotTypes/{slotTypeId}/versions/{version}/update" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that version is successfully updated." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no slot type defined for the slotTypeId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , slotTypeUpdate , errorDefinitions ) ; } param { string } slotTypeId param { string } version param { v1 . skill . interactionModel . typeVersion . SlotTypeUpdate } slotTypeUpdate async updateInteractionModelSlotTypeVersionV1 ( slotTypeId , version , slotTypeUpdate ) { await this . callUpdateInteractionModelSlotTypeVersionV1 ( slotTypeId , version , slotTypeUpdate ) ; } param { string } exportId async callGetStatusOfExportRequestV1 ( exportId ) { const __operationId__ = 'callGetStatusOfExportRequestV1' ; if ( exportId == null ) { throw new Error ( `Required parameter exportId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'exportId' , exportId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/exports/{exportId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "OK." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } exportId async getStatusOfExportRequestV1 ( exportId ) { const apiResponse = await this . callGetStatusOfExportRequestV1 ( exportId ) ; return apiResponse . body as v1 . skill . ExportResponse ; } param { string } vendorId param { string } nextToken param { number } maxResults param { Array < string > } skillId async callListSkillsForVendorV1 ( vendorId , nextToken ? , maxResults ? , skillId ? ) { const __operationId__ = 'callListSkillsForVendorV1' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( skillId != null ) { const skillIdValues = Array . isArray ( skillId ) ? skillId : [ skillId ] ; skillIdValues . forEach ( val => queryParams . push ( { key : 'skillId' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of skills for the vendor." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { string } nextToken param { number } maxResults param { Array < string > } skillId async listSkillsForVendorV1 ( vendorId , nextToken ? , maxResults ? , skillId ? ) { const apiResponse = await this . callListSkillsForVendorV1 ( vendorId , nextToken , maxResults , skillId ) ; return apiResponse . body as v1 . skill . ListSkillResponse ; } param { string } importId async callGetImportStatusV1 ( importId ) { const __operationId__ = 'callGetImportStatusV1' ; if ( importId == null ) { throw new Error ( `Required parameter importId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'importId' , importId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/imports/{importId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "OK." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } importId async getImportStatusV1 ( importId ) { const apiResponse = await this . callGetImportStatusV1 ( importId ) ; return apiResponse . body as v1 . skill . ImportResponse ; } param { v1 . skill . CreateSkillWithPackageRequest } createSkillWithPackageRequest async callCreateSkillPackageV1 ( createSkillWithPackageRequest ) { const __operationId__ = 'callCreateSkillPackageV1' ; if ( createSkillWithPackageRequest == null ) { throw new Error ( `Required parameter createSkillWithPackageRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/imports" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 413 , "Payload too large." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createSkillWithPackageRequest , errorDefinitions ) ; } param { v1 . skill . CreateSkillWithPackageRequest } createSkillWithPackageRequest async createSkillPackageV1 ( createSkillWithPackageRequest ) { await this . callCreateSkillPackageV1 ( createSkillWithPackageRequest ) ; } param { v1 . skill . CreateSkillRequest } createSkillRequest async callCreateSkillForVendorV1 ( createSkillRequest ) { const __operationId__ = 'callCreateSkillForVendorV1' ; if ( createSkillRequest == null ) { throw new Error ( `Required parameter createSkillRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted; Returns a URL to track the status in &#39;Location&#39; header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createSkillRequest , errorDefinitions ) ; } param { v1 . skill . CreateSkillRequest } createSkillRequest async createSkillForVendorV1 ( createSkillRequest ) { const apiResponse = await this . callCreateSkillForVendorV1 ( createSkillRequest ) ; return apiResponse . body as v1 . skill . CreateSkillResponse ; } param { string } resource param { string } vendorId param { string } operation async callGetResourceSchemaV1 ( resource , vendorId , operation ? ) { const __operationId__ = 'callGetResourceSchemaV1' ; if ( resource == null ) { throw new Error ( `Required parameter resource was null or undefined when calling ${ __operationId__ }.` ) ; } if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const vendorIdValues = Array . isArray ( vendorId ) ? vendorId : [ vendorId ] ; vendorIdValues . forEach ( val => queryParams . push ( { key : 'vendorId' , value : val } ) ) ; if ( operation != null ) { const operationValues = Array . isArray ( operation ) ? operation : [ operation ] ; operationValues . forEach ( val => queryParams . push ( { key : 'operation' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'resource' , resource ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/resourceSchema/{resource}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns a S3 presigned URL to location of schema" ) ; errorDefinitions . set ( 400 , "Invalid request" ) ; errorDefinitions . set ( 401 , "Unauthorized" ) ; errorDefinitions . set ( 403 , "Forbidden" ) ; errorDefinitions . set ( 429 , "Too Many Requests" ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } resource param { string } vendorId param { string } operation async getResourceSchemaV1 ( resource , vendorId , operation ? ) { const apiResponse = await this . callGetResourceSchemaV1 ( resource , vendorId , operation ) ; return apiResponse . body as v1 . skill . resourceSchema . GetResourceSchemaResponse ; } param { string } skillId async callGetAlexaHostedSkillMetadataV1 ( skillId ) { const __operationId__ = 'callGetAlexaHostedSkillMetadataV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/alexaHosted" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "response contains the Alexa hosted skill&#39;s metadata" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. Authorization Url is invalid" ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId async getAlexaHostedSkillMetadataV1 ( skillId ) { const apiResponse = await this . callGetAlexaHostedSkillMetadataV1 ( skillId ) ; return apiResponse . body as v1 . skill . AlexaHosted . HostedSkillMetadata ; } param { string } skillId param { v1 . skill . AlexaHosted . HostedSkillRepositoryCredentialsRequest } hostedSkillRepositoryCredentialsRequest async callGenerateCredentialsForAlexaHostedSkillV1 ( skillId , hostedSkillRepositoryCredentialsRequest ) { const __operationId__ = 'callGenerateCredentialsForAlexaHostedSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( hostedSkillRepositoryCredentialsRequest == null ) { throw new Error ( `Required parameter hostedSkillRepositoryCredentialsRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/alexaHosted/repository/credentials/generate" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Response contains the hosted skill repository credentials" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. Authorization Url is invalid" ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , hostedSkillRepositoryCredentialsRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . AlexaHosted . HostedSkillRepositoryCredentialsRequest } hostedSkillRepositoryCredentialsRequest async generateCredentialsForAlexaHostedSkillV1 ( skillId , hostedSkillRepositoryCredentialsRequest ) { const apiResponse = await this . callGenerateCredentialsForAlexaHostedSkillV1 ( skillId , hostedSkillRepositoryCredentialsRequest ) ; return apiResponse . body as v1 . skill . AlexaHosted . HostedSkillRepositoryCredentialsList ; } param { string } skillId param { string } annotationSetId param { string } accept param { string } nextToken param { number } maxResults async callGetAnnotationsForASRAnnotationSetV1 ( skillId , annotationSetId , accept , nextToken ? , maxResults ? ) { const __operationId__ = 'callGetAnnotationsForASRAnnotationSetV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationSetId == null ) { throw new Error ( `Required parameter annotationSetId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( accept == null ) { throw new Error ( `Required parameter accept was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; headerParams . push ( { key : 'Accept' , value : accept } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationSetId' , annotationSetId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}/annotations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "The annotation set contents payload in specified format.  This API also supports pagination for annotation set contents requested in  &#x60;application/json&#x60; content type. Paginaiton for requested content  type &#x60;text/csv&#x60; is not supported. In this case, the nextToken and  maxResults query parameters would be ignored even if they are  specified as query parameters. " ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } annotationSetId param { string } accept param { string } nextToken param { number } maxResults async getAnnotationsForASRAnnotationSetV1 ( skillId , annotationSetId , accept , nextToken ? , maxResults ? ) { const apiResponse = await this . callGetAnnotationsForASRAnnotationSetV1 ( skillId , annotationSetId , accept , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . asr . annotationSets . GetAsrAnnotationSetAnnotationsResponse ; } param { string } skillId param { string } annotationSetId param { v1 . skill . asr . annotationSets . UpdateAsrAnnotationSetContentsPayload } updateAsrAnnotationSetContentsRequest async callSetAnnotationsForASRAnnotationSetV1 ( skillId , annotationSetId , updateAsrAnnotationSetContentsRequest ) { const __operationId__ = 'callSetAnnotationsForASRAnnotationSetV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationSetId == null ) { throw new Error ( `Required parameter annotationSetId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateAsrAnnotationSetContentsRequest == null ) { throw new Error ( `Required parameter updateAsrAnnotationSetContentsRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationSetId' , annotationSetId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}/annotations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "ASR annotation set contents have been updated successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateAsrAnnotationSetContentsRequest , errorDefinitions ) ; } param { string } skillId param { string } annotationSetId param { v1 . skill . asr . annotationSets . UpdateAsrAnnotationSetContentsPayload } updateAsrAnnotationSetContentsRequest async setAnnotationsForASRAnnotationSetV1 ( skillId , annotationSetId , updateAsrAnnotationSetContentsRequest ) { await this . callSetAnnotationsForASRAnnotationSetV1 ( skillId , annotationSetId , updateAsrAnnotationSetContentsRequest ) ; } param { string } skillId param { string } annotationSetId async callDeleteASRAnnotationSetV1 ( skillId , annotationSetId ) { const __operationId__ = 'callDeleteASRAnnotationSetV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationSetId == null ) { throw new Error ( `Required parameter annotationSetId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationSetId' , annotationSetId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "ASR annotation set exists and is deleted successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } annotationSetId async deleteASRAnnotationSetV1 ( skillId , annotationSetId ) { await this . callDeleteASRAnnotationSetV1 ( skillId , annotationSetId ) ; } param { string } skillId param { string } annotationSetId async callGetASRAnnotationSetV1 ( skillId , annotationSetId ) { const __operationId__ = 'callGetASRAnnotationSetV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationSetId == null ) { throw new Error ( `Required parameter annotationSetId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationSetId' , annotationSetId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "The ASR annotation set exists." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } annotationSetId async getASRAnnotationSetV1 ( skillId , annotationSetId ) { const apiResponse = await this . callGetASRAnnotationSetV1 ( skillId , annotationSetId ) ; return apiResponse . body as v1 . skill . asr . annotationSets . GetASRAnnotationSetsPropertiesResponse ; } param { string } skillId param { string } annotationSetId param { v1 . skill . asr . annotationSets . UpdateAsrAnnotationSetPropertiesRequestObject } updateAsrAnnotationSetPropertiesRequestV1 async callSetASRAnnotationSetV1 ( skillId , annotationSetId , updateAsrAnnotationSetPropertiesRequestV1 ) { const __operationId__ = 'callSetASRAnnotationSetV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationSetId == null ) { throw new Error ( `Required parameter annotationSetId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateAsrAnnotationSetPropertiesRequestV1 == null ) { throw new Error ( `Required parameter updateAsrAnnotationSetPropertiesRequestV1 was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationSetId' , annotationSetId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrAnnotationSets/{annotationSetId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "ASR annotation set exists and properties are updated successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateAsrAnnotationSetPropertiesRequestV1 , errorDefinitions ) ; } param { string } skillId param { string } annotationSetId param { v1 . skill . asr . annotationSets . UpdateAsrAnnotationSetPropertiesRequestObject } updateAsrAnnotationSetPropertiesRequestV1 async setASRAnnotationSetV1 ( skillId , annotationSetId , updateAsrAnnotationSetPropertiesRequestV1 ) { await this . callSetASRAnnotationSetV1 ( skillId , annotationSetId , updateAsrAnnotationSetPropertiesRequestV1 ) ; } param { string } skillId param { string } nextToken param { number } maxResults async callListASRAnnotationSetsV1 ( skillId , nextToken ? , maxResults ? ) { const __operationId__ = 'callListASRAnnotationSetsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrAnnotationSets" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "ASR annotation sets metadata are returned." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } nextToken param { number } maxResults async listASRAnnotationSetsV1 ( skillId , nextToken ? , maxResults ? ) { const apiResponse = await this . callListASRAnnotationSetsV1 ( skillId , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . asr . annotationSets . ListASRAnnotationSetsResponse ; } param { string } skillId param { v1 . skill . asr . annotationSets . CreateAsrAnnotationSetRequestObject } createAsrAnnotationSetRequest async callCreateASRAnnotationSetV1 ( skillId , createAsrAnnotationSetRequest ) { const __operationId__ = 'callCreateASRAnnotationSetV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( createAsrAnnotationSetRequest == null ) { throw new Error ( `Required parameter createAsrAnnotationSetRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrAnnotationSets" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "ASR annotation set created successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createAsrAnnotationSetRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . asr . annotationSets . CreateAsrAnnotationSetRequestObject } createAsrAnnotationSetRequest async createASRAnnotationSetV1 ( skillId , createAsrAnnotationSetRequest ) { const apiResponse = await this . callCreateASRAnnotationSetV1 ( skillId , createAsrAnnotationSetRequest ) ; return apiResponse . body as v1 . skill . asr . annotationSets . CreateAsrAnnotationSetResponse ; } param { string } skillId param { string } evaluationId async callDeleteASREvaluationV1 ( skillId , evaluationId ) { const __operationId__ = 'callDeleteASREvaluationV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( evaluationId == null ) { throw new Error ( `Required parameter evaluationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'evaluationId' , evaluationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrEvaluations/{evaluationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "ASR evaluation exists and is deleted successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } evaluationId async deleteASREvaluationV1 ( skillId , evaluationId ) { await this . callDeleteASREvaluationV1 ( skillId , evaluationId ) ; } param { string } skillId param { string } evaluationId param { string } nextToken param { number } maxResults param { string } status async callListASREvaluationsResultsV1 ( skillId , evaluationId , nextToken ? , maxResults ? , status ? ) { const __operationId__ = 'callListASREvaluationsResultsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( evaluationId == null ) { throw new Error ( `Required parameter evaluationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( status != null ) { const statusValues = Array . isArray ( status ) ? status : [ status ] ; statusValues . forEach ( val => queryParams . push ( { key : 'status' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'evaluationId' , evaluationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrEvaluations/{evaluationId}/results" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluation exists and its status is queryable." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } evaluationId param { string } nextToken param { number } maxResults param { string } status async listASREvaluationsResultsV1 ( skillId , evaluationId , nextToken ? , maxResults ? , status ? ) { const apiResponse = await this . callListASREvaluationsResultsV1 ( skillId , evaluationId , nextToken , maxResults , status ) ; return apiResponse . body as v1 . skill . asr . evaluations . GetAsrEvaluationsResultsResponse ; } param { string } skillId param { string } evaluationId async callGetASREvaluationStatusV1 ( skillId , evaluationId ) { const __operationId__ = 'callGetASREvaluationStatusV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( evaluationId == null ) { throw new Error ( `Required parameter evaluationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'evaluationId' , evaluationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrEvaluations/{evaluationId}/status" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluation exists and its status is queryable." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } evaluationId async getASREvaluationStatusV1 ( skillId , evaluationId ) { const apiResponse = await this . callGetASREvaluationStatusV1 ( skillId , evaluationId ) ; return apiResponse . body as v1 . skill . asr . evaluations . GetAsrEvaluationStatusResponseObject ; } param { string } skillId param { string } nextToken param { string } locale param { string } stage param { string } annotationSetId param { number } maxResults async callListASREvaluationsV1 ( skillId , nextToken ? , locale ? , stage ? , annotationSetId ? , maxResults ? ) { const __operationId__ = 'callListASREvaluationsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( locale != null ) { const localeValues = Array . isArray ( locale ) ? locale : [ locale ] ; localeValues . forEach ( val => queryParams . push ( { key : 'locale' , value : val } ) ) ; } if ( stage != null ) { const stageValues = Array . isArray ( stage ) ? stage : [ stage ] ; stageValues . forEach ( val => queryParams . push ( { key : 'stage' , value : val } ) ) ; } if ( annotationSetId != null ) { const annotationSetIdValues = Array . isArray ( annotationSetId ) ? annotationSetId : [ annotationSetId ] ; annotationSetIdValues . forEach ( val => queryParams . push ( { key : 'annotationSetId' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrEvaluations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluations are returned." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } nextToken param { string } locale param { string } stage param { string } annotationSetId param { number } maxResults async listASREvaluationsV1 ( skillId , nextToken ? , locale ? , stage ? , annotationSetId ? , maxResults ? ) { const apiResponse = await this . callListASREvaluationsV1 ( skillId , nextToken , locale , stage , annotationSetId , maxResults ) ; return apiResponse . body as v1 . skill . asr . evaluations . ListAsrEvaluationsResponse ; } param { v1 . skill . asr . evaluations . PostAsrEvaluationsRequestObject } postAsrEvaluationsRequest param { string } skillId async callCreateASREvaluationV1 ( postAsrEvaluationsRequest , skillId ) { const __operationId__ = 'callCreateASREvaluationV1' ; if ( postAsrEvaluationsRequest == null ) { throw new Error ( `Required parameter postAsrEvaluationsRequest was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/asrEvaluations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluation has successfully begun." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; errorDefinitions . set ( 0 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , postAsrEvaluationsRequest , errorDefinitions ) ; } param { v1 . skill . asr . evaluations . PostAsrEvaluationsRequestObject } postAsrEvaluationsRequest param { string } skillId async createASREvaluationV1 ( postAsrEvaluationsRequest , skillId ) { const apiResponse = await this . callCreateASREvaluationV1 ( postAsrEvaluationsRequest , skillId ) ; return apiResponse . body as v1 . skill . asr . evaluations . PostAsrEvaluationsResponseObject ; } param { string } skillId async callEndBetaTestV1 ( skillId ) { const __operationId__ = 'callEndBetaTestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest/end" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accept. Return a URL to track the resource in &#39;Location&#39; header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId async endBetaTestV1 ( skillId ) { await this . callEndBetaTestV1 ( skillId ) ; } param { string } skillId async callGetBetaTestV1 ( skillId ) { const __operationId__ = 'callGetBetaTestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "Thrown if user tries to request a new simulation while the old simulation is in progress." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId async getBetaTestV1 ( skillId ) { const apiResponse = await this . callGetBetaTestV1 ( skillId ) ; return apiResponse . body as v1 . skill . betaTest . BetaTest ; } param { string } skillId param { v1 . skill . betaTest . TestBody } createTestBody async callCreateBetaTestV1 ( skillId , createTestBody ? ) { const __operationId__ = 'callCreateBetaTestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Success. Return a URL to track the resource in &#39;Location&#39; header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createTestBody , errorDefinitions ) ; } param { string } skillId param { v1 . skill . betaTest . TestBody } createTestBody async createBetaTestV1 ( skillId , createTestBody ? ) { await this . callCreateBetaTestV1 ( skillId , createTestBody ) ; } param { string } skillId param { v1 . skill . betaTest . TestBody } createTestBody async callUpdateBetaTestV1 ( skillId , createTestBody ? ) { const __operationId__ = 'callUpdateBetaTestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "Thrown if user tries to request a new simulation while the old simulation is in progress." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createTestBody , errorDefinitions ) ; } param { string } skillId param { v1 . skill . betaTest . TestBody } createTestBody async updateBetaTestV1 ( skillId , createTestBody ? ) { const apiResponse = await this . callUpdateBetaTestV1 ( skillId , createTestBody ) ; return apiResponse . body as v1 . skill . betaTest . UpdateBetaTestResponse ; } param { string } skillId async callStartBetaTestV1 ( skillId ) { const __operationId__ = 'callStartBetaTestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest/start" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accept. Return a URL to track the resource in &#39;Location&#39; header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId async startBetaTestV1 ( skillId ) { await this . callStartBetaTestV1 ( skillId ) ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async callAddTestersToBetaTestV1 ( skillId , testersRequest ) { const __operationId__ = 'callAddTestersToBetaTestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( testersRequest == null ) { throw new Error ( `Required parameter testersRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest/testers/add" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , testersRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async addTestersToBetaTestV1 ( skillId , testersRequest ) { await this . callAddTestersToBetaTestV1 ( skillId , testersRequest ) ; } param { string } skillId param { string } nextToken param { number } maxResults async callGetListOfTestersV1 ( skillId , nextToken ? , maxResults ? ) { const __operationId__ = 'callGetListOfTestersV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest/testers" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Success." ) ; errorDefinitions . set ( 400 , "Bad request." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } nextToken param { number } maxResults async getListOfTestersV1 ( skillId , nextToken ? , maxResults ? ) { const apiResponse = await this . callGetListOfTestersV1 ( skillId , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . betaTest . testers . ListTestersResponse ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async callRemoveTestersFromBetaTestV1 ( skillId , testersRequest ) { const __operationId__ = 'callRemoveTestersFromBetaTestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( testersRequest == null ) { throw new Error ( `Required parameter testersRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest/testers/remove" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , testersRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async removeTestersFromBetaTestV1 ( skillId , testersRequest ) { await this . callRemoveTestersFromBetaTestV1 ( skillId , testersRequest ) ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async callRequestFeedbackFromTestersV1 ( skillId , testersRequest ) { const __operationId__ = 'callRequestFeedbackFromTestersV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( testersRequest == null ) { throw new Error ( `Required parameter testersRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest/testers/requestFeedback" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , testersRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async requestFeedbackFromTestersV1 ( skillId , testersRequest ) { await this . callRequestFeedbackFromTestersV1 ( skillId , testersRequest ) ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async callSendReminderToTestersV1 ( skillId , testersRequest ) { const __operationId__ = 'callSendReminderToTestersV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( testersRequest == null ) { throw new Error ( `Required parameter testersRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/betaTest/testers/sendReminder" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , testersRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . betaTest . testers . TestersList } testersRequest async sendReminderToTestersV1 ( skillId , testersRequest ) { await this . callSendReminderToTestersV1 ( skillId , testersRequest ) ; } param { string } skillId param { string } certificationId param { string } acceptLanguage async callGetCertificationReviewV1 ( skillId , certificationId , acceptLanguage ? ) { const __operationId__ = 'callGetCertificationReviewV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( certificationId == null ) { throw new Error ( `Required parameter certificationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( acceptLanguage != null ) { headerParams . push ( { key : 'Accept-Language' , value : acceptLanguage } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'certificationId' , certificationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/certifications/{certificationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved skill certification information." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. if any request parameter is invalid like certification Id or pagination token etc. If the maxResults is not in the range of 1 to 50, it also qualifies for this error. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeded the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId. " ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } certificationId param { string } acceptLanguage async getCertificationReviewV1 ( skillId , certificationId , acceptLanguage ? ) { const apiResponse = await this . callGetCertificationReviewV1 ( skillId , certificationId , acceptLanguage ) ; return apiResponse . body as v1 . skill . certification . CertificationResponse ; } param { string } skillId param { string } nextToken param { number } maxResults async callGetCertificationsListV1 ( skillId , nextToken ? , maxResults ? ) { const __operationId__ = 'callGetCertificationsListV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/certifications" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of certifications for the skillId." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. if any request parameter is invalid like certification Id or pagination token etc. If the maxResults is not in the range of 1 to 50, it also qualifies for this error. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeded the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId. " ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } nextToken param { number } maxResults async getCertificationsListV1 ( skillId , nextToken ? , maxResults ? ) { const apiResponse = await this . callGetCertificationsListV1 ( skillId , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . certification . ListCertificationsResponse ; } param { string } skillId async callGetSkillCredentialsV1 ( skillId ) { const __operationId__ = 'callGetSkillCredentialsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/credentials" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Response contains the skill credentials." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId async getSkillCredentialsV1 ( skillId ) { const apiResponse = await this . callGetSkillCredentialsV1 ( skillId ) ; return apiResponse . body as v1 . skill . SkillCredentials ; } param { string } skillId async callDeleteSkillV1 ( skillId ) { const __operationId__ = 'callDeleteSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId async deleteSkillV1 ( skillId ) { await this . callDeleteSkillV1 ( skillId ) ; } param { string } skillId param { string } stage param { string } nextToken param { number } maxResults param { string } sortDirection param { string } sortField param { Array < v1 . skill . history . LocaleInQuery > } locale param { Array < v1 . skill . history . DialogActName > } dialogActName param { Array < v1 . skill . history . IntentConfidenceBin > } intentConfidenceBin param { Array < string > } intentName param { Array < string > } intentSlotsName param { Array < v1 . skill . history . InteractionType > } interactionType param { Array < v1 . skill . history . PublicationStatus > } publicationStatus param { Array < string > } utteranceText async callGetUtteranceDataV1 ( skillId , stage , nextToken ? , maxResults ? , sortDirection ? , sortField ? , locale ? , dialogActName ? , intentConfidenceBin ? , intentName ? , intentSlotsName ? , interactionType ? , publicationStatus ? , utteranceText ? ) { const __operationId__ = 'callGetUtteranceDataV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( sortDirection != null ) { const sortDirectionValues = Array . isArray ( sortDirection ) ? sortDirection : [ sortDirection ] ; sortDirectionValues . forEach ( val => queryParams . push ( { key : 'sortDirection' , value : val } ) ) ; } if ( sortField != null ) { const sortFieldValues = Array . isArray ( sortField ) ? sortField : [ sortField ] ; sortFieldValues . forEach ( val => queryParams . push ( { key : 'sortField' , value : val } ) ) ; } const stageValues = Array . isArray ( stage ) ? stage : [ stage ] ; stageValues . forEach ( val => queryParams . push ( { key : 'stage' , value : val } ) ) ; if ( locale != null ) { const localeValues = Array . isArray ( locale ) ? locale : [ locale ] ; localeValues . forEach ( val => queryParams . push ( { key : 'locale' , value : val ! . toString ( ) } ) ) ; } if ( dialogActName != null ) { const dialogActNameValues = Array . isArray ( dialogActName ) ? dialogActName : [ dialogActName ] ; dialogActNameValues . forEach ( val => queryParams . push ( { key : 'dialogAct.name' , value : val ! . toString ( ) } ) ) ; } if ( intentConfidenceBin != null ) { const intentConfidenceBinValues = Array . isArray ( intentConfidenceBin ) ? intentConfidenceBin : [ intentConfidenceBin ] ; intentConfidenceBinValues . forEach ( val => queryParams . push ( { key : 'intent.confidence.bin' , value : val ! . toString ( ) } ) ) ; } if ( intentName != null ) { const intentNameValues = Array . isArray ( intentName ) ? intentName : [ intentName ] ; intentNameValues . forEach ( val => queryParams . push ( { key : 'intent.name' , value : val ! . toString ( ) } ) ) ; } if ( intentSlotsName != null ) { const intentSlotsNameValues = Array . isArray ( intentSlotsName ) ? intentSlotsName : [ intentSlotsName ] ; intentSlotsNameValues . forEach ( val => queryParams . push ( { key : 'intent.slots.name' , value : val ! . toString ( ) } ) ) ; } if ( interactionType != null ) { const interactionTypeValues = Array . isArray ( interactionType ) ? interactionType : [ interactionType ] ; interactionTypeValues . forEach ( val => queryParams . push ( { key : 'interactionType' , value : val ! . toString ( ) } ) ) ; } if ( publicationStatus != null ) { const publicationStatusValues = Array . isArray ( publicationStatus ) ? publicationStatus : [ publicationStatus ] ; publicationStatusValues . forEach ( val => queryParams . push ( { key : 'publicationStatus' , value : val ! . toString ( ) } ) ) ; } if ( utteranceText != null ) { const utteranceTextValues = Array . isArray ( utteranceText ) ? utteranceText : [ utteranceText ] ; utteranceTextValues . forEach ( val => queryParams . push ( { key : 'utteranceText' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/history/intentRequests" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns a list of utterance items for the given skill." ) ; errorDefinitions . set ( 400 , "Bad Request." ) ; errorDefinitions . set ( 401 , "Unauthorized." ) ; errorDefinitions . set ( 404 , "Skill Not Found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage param { string } nextToken param { number } maxResults param { string } sortDirection param { string } sortField param { Array < v1 . skill . history . LocaleInQuery > } locale param { Array < v1 . skill . history . DialogActName > } dialogActName param { Array < v1 . skill . history . IntentConfidenceBin > } intentConfidenceBin param { Array < string > } intentName param { Array < string > } intentSlotsName param { Array < v1 . skill . history . InteractionType > } interactionType param { Array < v1 . skill . history . PublicationStatus > } publicationStatus param { Array < string > } utteranceText async getUtteranceDataV1 ( skillId , stage , nextToken ? , maxResults ? , sortDirection ? , sortField ? , locale ? , dialogActName ? , intentConfidenceBin ? , intentName ? , intentSlotsName ? , interactionType ? , publicationStatus ? , utteranceText ? ) { const apiResponse = await this . callGetUtteranceDataV1 ( skillId , stage , nextToken , maxResults , sortDirection , sortField , locale , dialogActName , intentConfidenceBin , intentName , intentSlotsName , interactionType , publicationStatus , utteranceText ) ; return apiResponse . body as v1 . skill . history . IntentRequests ; } param { v1 . skill . UpdateSkillWithPackageRequest } updateSkillWithPackageRequest param { string } skillId param { string } ifMatch async callImportSkillPackageV1 ( updateSkillWithPackageRequest , skillId , ifMatch ? ) { const __operationId__ = 'callImportSkillPackageV1' ; if ( updateSkillWithPackageRequest == null ) { throw new Error ( `Required parameter updateSkillWithPackageRequest was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ifMatch != null ) { headerParams . push ( { key : 'If-Match' , value : ifMatch } ) ; } if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/imports" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 413 , "Payload too large." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateSkillWithPackageRequest , errorDefinitions ) ; } param { v1 . skill . UpdateSkillWithPackageRequest } updateSkillWithPackageRequest param { string } skillId param { string } ifMatch async importSkillPackageV1 ( updateSkillWithPackageRequest , skillId , ifMatch ? ) { await this . callImportSkillPackageV1 ( updateSkillWithPackageRequest , skillId , ifMatch ) ; } param { string } skillId param { v1 . skill . invocations . InvokeSkillRequest } invokeSkillRequest async callInvokeSkillV1 ( skillId , invokeSkillRequest ) { const __operationId__ = 'callInvokeSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( invokeSkillRequest == null ) { throw new Error ( `Required parameter invokeSkillRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/invocations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Skill was invoked." ) ; errorDefinitions . set ( 400 , "Bad request due to invalid or missing data." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "API user does not have permission to call this API or is currently in a state that does not allow invocation of this skill. " ) ; errorDefinitions . set ( 404 , "The specified skill does not exist." ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , invokeSkillRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . invocations . InvokeSkillRequest } invokeSkillRequest async invokeSkillV1 ( skillId , invokeSkillRequest ) { const apiResponse = await this . callInvokeSkillV1 ( skillId , invokeSkillRequest ) ; return apiResponse . body as v1 . skill . invocations . InvokeSkillResponse ; } param { string } skillId param { string } startTime param { string } endTime param { string } period param { string } metric param { string } stage param { string } skillType param { string } intent param { string } locale param { number } maxResults param { string } nextToken async callGetSkillMetricsV1 ( skillId , startTime , endTime , period , metric , stage , skillType , intent ? , locale ? , maxResults ? , nextToken ? ) { const __operationId__ = 'callGetSkillMetricsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( startTime == null ) { throw new Error ( `Required parameter startTime was null or undefined when calling ${ __operationId__ }.` ) ; } if ( endTime == null ) { throw new Error ( `Required parameter endTime was null or undefined when calling ${ __operationId__ }.` ) ; } if ( period == null ) { throw new Error ( `Required parameter period was null or undefined when calling ${ __operationId__ }.` ) ; } if ( metric == null ) { throw new Error ( `Required parameter metric was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillType == null ) { throw new Error ( `Required parameter skillType was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const startTimeValues = Array . isArray ( startTime ) ? startTime : [ startTime ] ; startTimeValues . forEach ( val => queryParams . push ( { key : 'startTime' , value : val ! . toString ( ) } ) ) ; const endTimeValues = Array . isArray ( endTime ) ? endTime : [ endTime ] ; endTimeValues . forEach ( val => queryParams . push ( { key : 'endTime' , value : val ! . toString ( ) } ) ) ; const periodValues = Array . isArray ( period ) ? period : [ period ] ; periodValues . forEach ( val => queryParams . push ( { key : 'period' , value : val } ) ) ; const metricValues = Array . isArray ( metric ) ? metric : [ metric ] ; metricValues . forEach ( val => queryParams . push ( { key : 'metric' , value : val } ) ) ; const stageValues = Array . isArray ( stage ) ? stage : [ stage ] ; stageValues . forEach ( val => queryParams . push ( { key : 'stage' , value : val } ) ) ; const skillTypeValues = Array . isArray ( skillType ) ? skillType : [ skillType ] ; skillTypeValues . forEach ( val => queryParams . push ( { key : 'skillType' , value : val } ) ) ; if ( intent != null ) { const intentValues = Array . isArray ( intent ) ? intent : [ intent ] ; intentValues . forEach ( val => queryParams . push ( { key : 'intent' , value : val } ) ) ; } if ( locale != null ) { const localeValues = Array . isArray ( locale ) ? locale : [ locale ] ; localeValues . forEach ( val => queryParams . push ( { key : 'locale' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/metrics" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Get analytic metrics report successfully." ) ; errorDefinitions . set ( 400 , "Bad request due to invalid or missing data." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } startTime param { string } endTime param { string } period param { string } metric param { string } stage param { string } skillType param { string } intent param { string } locale param { number } maxResults param { string } nextToken async getSkillMetricsV1 ( skillId , startTime , endTime , period , metric , stage , skillType , intent ? , locale ? , maxResults ? , nextToken ? ) { const apiResponse = await this . callGetSkillMetricsV1 ( skillId , startTime , endTime , period , metric , stage , skillType , intent , locale , maxResults , nextToken ) ; return apiResponse . body as v1 . skill . metrics . GetMetricDataResponse ; } param { string } skillId param { string } annotationId param { string } accept async callGetAnnotationsForNLUAnnotationSetsV1 ( skillId , annotationId , accept ) { const __operationId__ = 'callGetAnnotationsForNLUAnnotationSetsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationId == null ) { throw new Error ( `Required parameter annotationId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( accept == null ) { throw new Error ( `Required parameter accept was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; headerParams . push ( { key : 'Accept' , value : accept } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationId' , annotationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluAnnotationSets/{annotationId}/annotations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "The specific version of a NLU annotation set has the content." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } annotationId param { string } accept async getAnnotationsForNLUAnnotationSetsV1 ( skillId , annotationId , accept ) { await this . callGetAnnotationsForNLUAnnotationSetsV1 ( skillId , annotationId , accept ) ; } param { string } skillId param { string } annotationId param { string } contentType param { v1 . skill . nlu . annotationSets . UpdateNLUAnnotationSetAnnotationsRequest } updateNLUAnnotationSetAnnotationsRequest async callUpdateAnnotationsForNLUAnnotationSetsV1 ( skillId , annotationId , contentType , updateNLUAnnotationSetAnnotationsRequest ) { const __operationId__ = 'callUpdateAnnotationsForNLUAnnotationSetsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationId == null ) { throw new Error ( `Required parameter annotationId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( contentType == null ) { throw new Error ( `Required parameter contentType was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateNLUAnnotationSetAnnotationsRequest == null ) { throw new Error ( `Required parameter updateNLUAnnotationSetAnnotationsRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; headerParams . push ( { key : 'Content-Type' , value : contentType } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationId' , annotationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluAnnotationSets/{annotationId}/annotations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "NLU annotation set exists and starts the update." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateNLUAnnotationSetAnnotationsRequest , errorDefinitions ) ; } param { string } skillId param { string } annotationId param { string } contentType param { v1 . skill . nlu . annotationSets . UpdateNLUAnnotationSetAnnotationsRequest } updateNLUAnnotationSetAnnotationsRequest async updateAnnotationsForNLUAnnotationSetsV1 ( skillId , annotationId , contentType , updateNLUAnnotationSetAnnotationsRequest ) { await this . callUpdateAnnotationsForNLUAnnotationSetsV1 ( skillId , annotationId , contentType , updateNLUAnnotationSetAnnotationsRequest ) ; } param { string } skillId param { string } annotationId async callDeletePropertiesForNLUAnnotationSetsV1 ( skillId , annotationId ) { const __operationId__ = 'callDeletePropertiesForNLUAnnotationSetsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationId == null ) { throw new Error ( `Required parameter annotationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationId' , annotationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluAnnotationSets/{annotationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "NLU annotation set exists and is deleted successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } annotationId async deletePropertiesForNLUAnnotationSetsV1 ( skillId , annotationId ) { await this . callDeletePropertiesForNLUAnnotationSetsV1 ( skillId , annotationId ) ; } param { string } skillId param { string } annotationId async callGetPropertiesForNLUAnnotationSetsV1 ( skillId , annotationId ) { const __operationId__ = 'callGetPropertiesForNLUAnnotationSetsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationId == null ) { throw new Error ( `Required parameter annotationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationId' , annotationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluAnnotationSets/{annotationId}/properties" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "The NLU annotation set exists." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } annotationId async getPropertiesForNLUAnnotationSetsV1 ( skillId , annotationId ) { const apiResponse = await this . callGetPropertiesForNLUAnnotationSetsV1 ( skillId , annotationId ) ; return apiResponse . body as v1 . skill . nlu . annotationSets . GetNLUAnnotationSetPropertiesResponse ; } param { string } skillId param { string } annotationId param { v1 . skill . nlu . annotationSets . UpdateNLUAnnotationSetPropertiesRequest } updateNLUAnnotationSetPropertiesRequest async callUpdatePropertiesForNLUAnnotationSetsV1 ( skillId , annotationId , updateNLUAnnotationSetPropertiesRequest ) { const __operationId__ = 'callUpdatePropertiesForNLUAnnotationSetsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( annotationId == null ) { throw new Error ( `Required parameter annotationId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateNLUAnnotationSetPropertiesRequest == null ) { throw new Error ( `Required parameter updateNLUAnnotationSetPropertiesRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'annotationId' , annotationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluAnnotationSets/{annotationId}/properties" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "NLU annotation set exists and properties are updated successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateNLUAnnotationSetPropertiesRequest , errorDefinitions ) ; } param { string } skillId param { string } annotationId param { v1 . skill . nlu . annotationSets . UpdateNLUAnnotationSetPropertiesRequest } updateNLUAnnotationSetPropertiesRequest async updatePropertiesForNLUAnnotationSetsV1 ( skillId , annotationId , updateNLUAnnotationSetPropertiesRequest ) { await this . callUpdatePropertiesForNLUAnnotationSetsV1 ( skillId , annotationId , updateNLUAnnotationSetPropertiesRequest ) ; } param { string } skillId param { string } locale param { string } nextToken param { number } maxResults async callListNLUAnnotationSetsV1 ( skillId , locale ? , nextToken ? , maxResults ? ) { const __operationId__ = 'callListNLUAnnotationSetsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( locale != null ) { const localeValues = Array . isArray ( locale ) ? locale : [ locale ] ; localeValues . forEach ( val => queryParams . push ( { key : 'locale' , value : val } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluAnnotationSets" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "NLU annotation sets are returned." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } locale param { string } nextToken param { number } maxResults async listNLUAnnotationSetsV1 ( skillId , locale ? , nextToken ? , maxResults ? ) { const apiResponse = await this . callListNLUAnnotationSetsV1 ( skillId , locale , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . nlu . annotationSets . ListNLUAnnotationSetsResponse ; } param { string } skillId param { v1 . skill . nlu . annotationSets . CreateNLUAnnotationSetRequest } createNLUAnnotationSetRequest async callCreateNLUAnnotationSetV1 ( skillId , createNLUAnnotationSetRequest ) { const __operationId__ = 'callCreateNLUAnnotationSetV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( createNLUAnnotationSetRequest == null ) { throw new Error ( `Required parameter createNLUAnnotationSetRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluAnnotationSets" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "NLU annotation set created successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createNLUAnnotationSetRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . nlu . annotationSets . CreateNLUAnnotationSetRequest } createNLUAnnotationSetRequest async createNLUAnnotationSetV1 ( skillId , createNLUAnnotationSetRequest ) { const apiResponse = await this . callCreateNLUAnnotationSetV1 ( skillId , createNLUAnnotationSetRequest ) ; return apiResponse . body as v1 . skill . nlu . annotationSets . CreateNLUAnnotationSetResponse ; } param { string } skillId param { string } evaluationId async callGetNLUEvaluationV1 ( skillId , evaluationId ) { const __operationId__ = 'callGetNLUEvaluationV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( evaluationId == null ) { throw new Error ( `Required parameter evaluationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'evaluationId' , evaluationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluEvaluations/{evaluationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluation exists and its status is queryable." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } evaluationId async getNLUEvaluationV1 ( skillId , evaluationId ) { const apiResponse = await this . callGetNLUEvaluationV1 ( skillId , evaluationId ) ; return apiResponse . body as v1 . skill . nlu . evaluations . GetNLUEvaluationResponse ; } param { string } skillId param { string } evaluationId param { string } sortField param { string } testCaseStatus param { string } actualIntentName param { string } expectedIntentName param { string } nextToken param { number } maxResults async callGetResultForNLUEvaluationsV1 ( skillId , evaluationId , sortField ? , testCaseStatus ? , actualIntentName ? , expectedIntentName ? , nextToken ? , maxResults ? ) { const __operationId__ = 'callGetResultForNLUEvaluationsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( evaluationId == null ) { throw new Error ( `Required parameter evaluationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( sortField != null ) { const sortFieldValues = Array . isArray ( sortField ) ? sortField : [ sortField ] ; sortFieldValues . forEach ( val => queryParams . push ( { key : 'sort.field' , value : val } ) ) ; } if ( testCaseStatus != null ) { const testCaseStatusValues = Array . isArray ( testCaseStatus ) ? testCaseStatus : [ testCaseStatus ] ; testCaseStatusValues . forEach ( val => queryParams . push ( { key : 'testCaseStatus' , value : val } ) ) ; } if ( actualIntentName != null ) { const actualIntentNameValues = Array . isArray ( actualIntentName ) ? actualIntentName : [ actualIntentName ] ; actualIntentNameValues . forEach ( val => queryParams . push ( { key : 'actualIntentName' , value : val } ) ) ; } if ( expectedIntentName != null ) { const expectedIntentNameValues = Array . isArray ( expectedIntentName ) ? expectedIntentName : [ expectedIntentName ] ; expectedIntentNameValues . forEach ( val => queryParams . push ( { key : 'expectedIntentName' , value : val } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'evaluationId' , evaluationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluEvaluations/{evaluationId}/results" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluation exists and its status is queryable." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } evaluationId param { string } sortField param { string } testCaseStatus param { string } actualIntentName param { string } expectedIntentName param { string } nextToken param { number } maxResults async getResultForNLUEvaluationsV1 ( skillId , evaluationId , sortField ? , testCaseStatus ? , actualIntentName ? , expectedIntentName ? , nextToken ? , maxResults ? ) { const apiResponse = await this . callGetResultForNLUEvaluationsV1 ( skillId , evaluationId , sortField , testCaseStatus , actualIntentName , expectedIntentName , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . nlu . evaluations . GetNLUEvaluationResultsResponse ; } param { string } skillId param { string } locale param { string } stage param { string } annotationId param { string } nextToken param { number } maxResults async callListNLUEvaluationsV1 ( skillId , locale ? , stage ? , annotationId ? , nextToken ? , maxResults ? ) { const __operationId__ = 'callListNLUEvaluationsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( locale != null ) { const localeValues = Array . isArray ( locale ) ? locale : [ locale ] ; localeValues . forEach ( val => queryParams . push ( { key : 'locale' , value : val } ) ) ; } if ( stage != null ) { const stageValues = Array . isArray ( stage ) ? stage : [ stage ] ; stageValues . forEach ( val => queryParams . push ( { key : 'stage' , value : val } ) ) ; } if ( annotationId != null ) { const annotationIdValues = Array . isArray ( annotationId ) ? annotationId : [ annotationId ] ; annotationIdValues . forEach ( val => queryParams . push ( { key : 'annotationId' , value : val } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluEvaluations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluations are returned." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } locale param { string } stage param { string } annotationId param { string } nextToken param { number } maxResults async listNLUEvaluationsV1 ( skillId , locale ? , stage ? , annotationId ? , nextToken ? , maxResults ? ) { const apiResponse = await this . callListNLUEvaluationsV1 ( skillId , locale , stage , annotationId , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . nlu . evaluations . ListNLUEvaluationsResponse ; } param { v1 . skill . nlu . evaluations . EvaluateNLURequest } evaluateNLURequest param { string } skillId async callCreateNLUEvaluationsV1 ( evaluateNLURequest , skillId ) { const __operationId__ = 'callCreateNLUEvaluationsV1' ; if ( evaluateNLURequest == null ) { throw new Error ( `Required parameter evaluateNLURequest was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/nluEvaluations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluation has successfully begun." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , evaluateNLURequest , errorDefinitions ) ; } param { v1 . skill . nlu . evaluations . EvaluateNLURequest } evaluateNLURequest param { string } skillId async createNLUEvaluationsV1 ( evaluateNLURequest , skillId ) { const apiResponse = await this . callCreateNLUEvaluationsV1 ( evaluateNLURequest , skillId ) ; return apiResponse . body as v1 . skill . nlu . evaluations . EvaluateResponse ; } param { string } skillId param { string } acceptLanguage param { v1 . skill . publication . PublishSkillRequest } publishSkillRequest async callPublishSkillV1 ( skillId , acceptLanguage , publishSkillRequest ? ) { const __operationId__ = 'callPublishSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( acceptLanguage == null ) { throw new Error ( `Required parameter acceptLanguage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; headerParams . push ( { key : 'Accept-Language' , value : acceptLanguage } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/publications" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Successfully processed skill publication request." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , publishSkillRequest , errorDefinitions ) ; } param { string } skillId param { string } acceptLanguage param { v1 . skill . publication . PublishSkillRequest } publishSkillRequest async publishSkillV1 ( skillId , acceptLanguage , publishSkillRequest ? ) { const apiResponse = await this . callPublishSkillV1 ( skillId , acceptLanguage , publishSkillRequest ) ; return apiResponse . body as v1 . skill . publication . SkillPublicationResponse ; } param { string } skillId param { string } acceptLanguage async callGetSkillPublicationsV1 ( skillId , acceptLanguage ) { const __operationId__ = 'callGetSkillPublicationsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( acceptLanguage == null ) { throw new Error ( `Required parameter acceptLanguage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; headerParams . push ( { key : 'Accept-Language' , value : acceptLanguage } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/publications/~latest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved latest skill publication information." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } acceptLanguage async getSkillPublicationsV1 ( skillId , acceptLanguage ) { const apiResponse = await this . callGetSkillPublicationsV1 ( skillId , acceptLanguage ) ; return apiResponse . body as v1 . skill . publication . SkillPublicationResponse ; } param { string } skillId param { v1 . skill . CreateRollbackRequest } createRollbackRequest async callRollbackSkillV1 ( skillId , createRollbackRequest ) { const __operationId__ = 'callRollbackSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( createRollbackRequest == null ) { throw new Error ( `Required parameter createRollbackRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/rollbacks" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Rollback request created; Returns the generated identifier to track the rollback request and returns a URL to track the status in Location header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , createRollbackRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . CreateRollbackRequest } createRollbackRequest async rollbackSkillV1 ( skillId , createRollbackRequest ) { const apiResponse = await this . callRollbackSkillV1 ( skillId , createRollbackRequest ) ; return apiResponse . body as v1 . skill . CreateRollbackResponse ; } param { string } skillId param { string } rollbackRequestId async callGetRollbackForSkillV1 ( skillId , rollbackRequestId ) { const __operationId__ = 'callGetRollbackForSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( rollbackRequestId == null ) { throw new Error ( `Required parameter rollbackRequestId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'rollbackRequestId' , rollbackRequestId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/rollbacks/{rollbackRequestId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns the rollback status for a given skillId and rollbackRequestId. Returns the latest rollback status if ~latest is used in place of rollbackRequestId." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } rollbackRequestId async getRollbackForSkillV1 ( skillId , rollbackRequestId ) { const apiResponse = await this . callGetRollbackForSkillV1 ( skillId , rollbackRequestId ) ; return apiResponse . body as v1 . skill . RollbackRequestStatus ; } param { string } skillId param { v1 . skill . simulations . SimulationsApiRequest } simulationsApiRequest async callSimulateSkillV1 ( skillId , simulationsApiRequest ) { const __operationId__ = 'callSimulateSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( simulationsApiRequest == null ) { throw new Error ( `Required parameter simulationsApiRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/simulations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Skill simulation has successfully began." ) ; errorDefinitions . set ( 400 , "Bad request due to invalid or missing data." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "API user does not have permission to call this API or is currently in a state that does not allow simulation of this skill. " ) ; errorDefinitions . set ( 404 , "The specified skill does not exist." ) ; errorDefinitions . set ( 409 , "This requests conflicts with another one currently being processed. " ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , simulationsApiRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . simulations . SimulationsApiRequest } simulationsApiRequest async simulateSkillV1 ( skillId , simulationsApiRequest ) { const apiResponse = await this . callSimulateSkillV1 ( skillId , simulationsApiRequest ) ; return apiResponse . body as v1 . skill . simulations . SimulationsApiResponse ; } param { string } skillId param { string } simulationId async callGetSkillSimulationV1 ( skillId , simulationId ) { const __operationId__ = 'callGetSkillSimulationV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( simulationId == null ) { throw new Error ( `Required parameter simulationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'simulationId' , simulationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/simulations/{simulationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved skill simulation information." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill or simulation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } simulationId async getSkillSimulationV1 ( skillId , simulationId ) { const apiResponse = await this . callGetSkillSimulationV1 ( skillId , simulationId ) ; return apiResponse . body as v1 . skill . simulations . SimulationsApiResponse ; } param { string } skillId param { string } evaluationId async callGetSmartHomeCapabilityEvaluationV1 ( skillId , evaluationId ) { const __operationId__ = 'callGetSmartHomeCapabilityEvaluationV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( evaluationId == null ) { throw new Error ( `Required parameter evaluationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'evaluationId' , evaluationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations/{evaluationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved the evaluation status." ) ; errorDefinitions . set ( 400 , "Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource. " ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 429 , "Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. " ) ; errorDefinitions . set ( 0 , "Internal server error. " ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } evaluationId async getSmartHomeCapabilityEvaluationV1 ( skillId , evaluationId ) { const apiResponse = await this . callGetSmartHomeCapabilityEvaluationV1 ( skillId , evaluationId ) ; return apiResponse . body as v1 . smartHomeEvaluation . GetSHCapabilityEvaluationResponse ; } param { string } skillId param { string } evaluationId param { number } maxResults param { string } nextToken async callGetSmarthomeCapablityEvaluationResultsV1 ( skillId , evaluationId , maxResults ? , nextToken ? ) { const __operationId__ = 'callGetSmarthomeCapablityEvaluationResultsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( evaluationId == null ) { throw new Error ( `Required parameter evaluationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'evaluationId' , evaluationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations/{evaluationId}/results" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved the evaluation result content." ) ; errorDefinitions . set ( 400 , "Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource. " ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 429 , "Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. " ) ; errorDefinitions . set ( 0 , "Internal server error. " ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } evaluationId param { number } maxResults param { string } nextToken async getSmarthomeCapablityEvaluationResultsV1 ( skillId , evaluationId , maxResults ? , nextToken ? ) { const apiResponse = await this . callGetSmarthomeCapablityEvaluationResultsV1 ( skillId , evaluationId , maxResults , nextToken ) ; return apiResponse . body as v1 . smartHomeEvaluation . GetSHCapabilityEvaluationResultsResponse ; } param { string } skillId param { string } stage param { string } startTimestampFrom param { string } startTimestampTo param { number } maxResults param { string } nextToken async callListSmarthomeCapabilityEvaluationsV1 ( skillId , stage , startTimestampFrom ? , startTimestampTo ? , maxResults ? , nextToken ? ) { const __operationId__ = 'callListSmarthomeCapabilityEvaluationsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const stageValues = Array . isArray ( stage ) ? stage : [ stage ] ; stageValues . forEach ( val => queryParams . push ( { key : 'stage' , value : val } ) ) ; if ( startTimestampFrom != null ) { const startTimestampFromValues = Array . isArray ( startTimestampFrom ) ? startTimestampFrom : [ startTimestampFrom ] ; startTimestampFromValues . forEach ( val => queryParams . push ( { key : 'startTimestampFrom' , value : val ! . toString ( ) } ) ) ; } if ( startTimestampTo != null ) { const startTimestampToValues = Array . isArray ( startTimestampTo ) ? startTimestampTo : [ startTimestampTo ] ; startTimestampToValues . forEach ( val => queryParams . push ( { key : 'startTimestampTo' , value : val ! . toString ( ) } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved the evaluation infomation." ) ; errorDefinitions . set ( 400 , "Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource. " ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 429 , "Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. " ) ; errorDefinitions . set ( 0 , "Internal server error. " ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage param { string } startTimestampFrom param { string } startTimestampTo param { number } maxResults param { string } nextToken async listSmarthomeCapabilityEvaluationsV1 ( skillId , stage , startTimestampFrom ? , startTimestampTo ? , maxResults ? , nextToken ? ) { const apiResponse = await this . callListSmarthomeCapabilityEvaluationsV1 ( skillId , stage , startTimestampFrom , startTimestampTo , maxResults , nextToken ) ; return apiResponse . body as v1 . smartHomeEvaluation . ListSHCapabilityEvaluationsResponse ; } param { string } skillId param { v1 . smartHomeEvaluation . EvaluateSHCapabilityRequest } evaluateSHCapabilityPayload async callCreateSmarthomeCapabilityEvaluationV1 ( skillId , evaluateSHCapabilityPayload ? ) { const __operationId__ = 'callCreateSmarthomeCapabilityEvaluationV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/smartHome/testing/capabilityEvaluations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Evaluation has successfully begun." ) ; errorDefinitions . set ( 400 , "Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource. " ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 409 , "A test run is already in progress for the specified endpoint. Please retry after some time. " ) ; errorDefinitions . set ( 429 , "Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. " ) ; errorDefinitions . set ( 0 , "Internal server error. " ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , evaluateSHCapabilityPayload , errorDefinitions ) ; } param { string } skillId param { v1 . smartHomeEvaluation . EvaluateSHCapabilityRequest } evaluateSHCapabilityPayload async createSmarthomeCapabilityEvaluationV1 ( skillId , evaluateSHCapabilityPayload ? ) { const apiResponse = await this . callCreateSmarthomeCapabilityEvaluationV1 ( skillId , evaluateSHCapabilityPayload ) ; return apiResponse . body as v1 . smartHomeEvaluation . EvaluateSHCapabilityResponse ; } param { string } skillId param { number } maxResults param { string } nextToken async callListSmarthomeCapabilityTestPlansV1 ( skillId , maxResults ? , nextToken ? ) { const __operationId__ = 'callListSmarthomeCapabilityTestPlansV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/smartHome/testing/capabilityTestPlans" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully got the list of test plans." ) ; errorDefinitions . set ( 400 , "Bad Request. Returned when the request payload is malformed or when, at least, one required property is missing or invalid. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource. " ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill, test plan, or evaluation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 429 , "Exceeded the permitted request limit. Throttling criteria includes total requests, per API and CustomerId. " ) ; errorDefinitions . set ( 0 , "Internal server error. " ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { number } maxResults param { string } nextToken async listSmarthomeCapabilityTestPlansV1 ( skillId , maxResults ? , nextToken ? ) { const apiResponse = await this . callListSmarthomeCapabilityTestPlansV1 ( skillId , maxResults , nextToken ) ; return apiResponse . body as v1 . smartHomeEvaluation . ListSHCapabilityTestPlansResponse ; } param { string } skillId async callGetSSLCertificatesV1 ( skillId ) { const __operationId__ = 'callGetSSLCertificatesV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/sslCertificateSets/~latest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Response contains the latest version of the ssl certificates." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId async getSSLCertificatesV1 ( skillId ) { const apiResponse = await this . callGetSSLCertificatesV1 ( skillId ) ; return apiResponse . body as v1 . skill . SSLCertificatePayload ; } param { string } skillId param { v1 . skill . SSLCertificatePayload } sslCertificatePayload async callSetSSLCertificatesV1 ( skillId , sslCertificatePayload ) { const __operationId__ = 'callSetSSLCertificatesV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( sslCertificatePayload == null ) { throw new Error ( `Required parameter sslCertificatePayload was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/sslCertificateSets/~latest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Accepted; Request was successful and get will now result in the new values." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , sslCertificatePayload , errorDefinitions ) ; } param { string } skillId param { v1 . skill . SSLCertificatePayload } sslCertificatePayload async setSSLCertificatesV1 ( skillId , sslCertificatePayload ) { await this . callSetSSLCertificatesV1 ( skillId , sslCertificatePayload ) ; } param { string } skillId param { string } stage async callDeleteSkillEnablementV1 ( skillId , stage ) { const __operationId__ = 'callDeleteSkillEnablementV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/enablement" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that enablement is successfully deleted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage async deleteSkillEnablementV1 ( skillId , stage ) { await this . callDeleteSkillEnablementV1 ( skillId , stage ) ; } param { string } skillId param { string } stage async callGetSkillEnablementStatusV1 ( skillId , stage ) { const __operationId__ = 'callGetSkillEnablementStatusV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/enablement" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that enablement resource exists for given skillId &amp; stage." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage async getSkillEnablementStatusV1 ( skillId , stage ) { await this . callGetSkillEnablementStatusV1 ( skillId , stage ) ; } param { string } skillId param { string } stage async callSetSkillEnablementV1 ( skillId , stage ) { const __operationId__ = 'callSetSkillEnablementV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/enablement" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "No Content; Confirms that enablement is successfully created/updated." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage async setSkillEnablementV1 ( skillId , stage ) { await this . callSetSkillEnablementV1 ( skillId , stage ) ; } param { string } skillId param { string } stage async callCreateExportRequestForSkillV1 ( skillId , stage ) { const __operationId__ = 'callCreateExportRequestForSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/exports" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage async createExportRequestForSkillV1 ( skillId , stage ) { await this . callCreateExportRequestForSkillV1 ( skillId , stage ) ; } param { string } skillId param { string } stage param { string } nextToken param { number } maxResults async callGetIspListForSkillIdV1 ( skillId , stage , nextToken ? , maxResults ? ) { const __operationId__ = 'callGetIspListForSkillIdV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/inSkillProducts" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Response contains list of in-skill products for the specified skillId and stage." ) ; errorDefinitions . set ( 400 , "Bad request. Returned when a required parameter is not present, badly formatted. " ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 404 , "Requested resource not found." ) ; errorDefinitions . set ( 429 , "Too many requests received." ) ; errorDefinitions . set ( 500 , "Internal Server Error" ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage param { string } nextToken param { number } maxResults async getIspListForSkillIdV1 ( skillId , stage , nextToken ? , maxResults ? ) { const apiResponse = await this . callGetIspListForSkillIdV1 ( skillId , stage , nextToken , maxResults ) ; return apiResponse . body as v1 . isp . ListInSkillProductResponse ; } param { v1 . skill . evaluations . ProfileNluRequest } profileNluRequest param { string } skillId param { string } stage param { string } locale async callProfileNluV1 ( profileNluRequest , skillId , stage , locale ) { const __operationId__ = 'callProfileNluV1' ; if ( profileNluRequest == null ) { throw new Error ( `Required parameter profileNluRequest was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; pathParams . set ( 'locale' , locale ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/interactionModel/locales/{locale}/profileNlu" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Profiled utterance against interaction model and returned nlu response successfully." ) ; errorDefinitions . set ( 400 , "Bad request due to invalid or missing data." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 409 , "This requests conflicts with another one currently being processed. " ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , profileNluRequest , errorDefinitions ) ; } param { v1 . skill . evaluations . ProfileNluRequest } profileNluRequest param { string } skillId param { string } stage param { string } locale async profileNluV1 ( profileNluRequest , skillId , stage , locale ) { const apiResponse = await this . callProfileNluV1 ( profileNluRequest , skillId , stage , locale ) ; return apiResponse . body as v1 . skill . evaluations . ProfileNluResponse ; } param { string } skillId param { string } locale param { string } stage param { string } version async callGetConflictDetectionJobStatusForInteractionModelV1 ( skillId , locale , stage , version ) { const __operationId__ = 'callGetConflictDetectionJobStatusForInteractionModelV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'locale' , locale ) ; pathParams . set ( 'stage' , stage ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/interactionModel/locales/{locale}/versions/{version}/conflictDetectionJobStatus" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Get conflict detection results successfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } locale param { string } stage param { string } version async getConflictDetectionJobStatusForInteractionModelV1 ( skillId , locale , stage , version ) { const apiResponse = await this . callGetConflictDetectionJobStatusForInteractionModelV1 ( skillId , locale , stage , version ) ; return apiResponse . body as v1 . skill . interactionModel . conflictDetection . GetConflictDetectionJobStatusResponse ; } param { string } skillId param { string } locale param { string } stage param { string } version param { string } nextToken param { number } maxResults async callGetConflictsForInteractionModelV1 ( skillId , locale , stage , version , nextToken ? , maxResults ? ) { const __operationId__ = 'callGetConflictsForInteractionModelV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'locale' , locale ) ; pathParams . set ( 'stage' , stage ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/interactionModel/locales/{locale}/versions/{version}/conflicts" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Get conflict detection results sucessfully." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "There is no catalog defined for the catalogId." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } locale param { string } stage param { string } version param { string } nextToken param { number } maxResults async getConflictsForInteractionModelV1 ( skillId , locale , stage , version , nextToken ? , maxResults ? ) { const apiResponse = await this . callGetConflictsForInteractionModelV1 ( skillId , locale , stage , version , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . interactionModel . conflictDetection . GetConflictsResponse ; } param { string } skillId param { string } stage param { string } nextToken param { number } maxResults async callListPrivateDistributionAccountsV1 ( skillId , stage , nextToken ? , maxResults ? ) { const __operationId__ = 'callListPrivateDistributionAccountsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/privateDistributionAccounts" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of private distribution accounts on success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage param { string } nextToken param { number } maxResults async listPrivateDistributionAccountsV1 ( skillId , stage , nextToken ? , maxResults ? ) { const apiResponse = await this . callListPrivateDistributionAccountsV1 ( skillId , stage , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . Private . ListPrivateDistributionAccountsResponse ; } param { string } skillId param { string } stage param { string } id async callDeletePrivateDistributionAccountIdV1 ( skillId , stage , id ) { const __operationId__ = 'callDeletePrivateDistributionAccountIdV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( id == null ) { throw new Error ( `Required parameter id was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; pathParams . set ( 'id' , id ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/privateDistributionAccounts/{id}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage param { string } id async deletePrivateDistributionAccountIdV1 ( skillId , stage , id ) { await this . callDeletePrivateDistributionAccountIdV1 ( skillId , stage , id ) ; } param { string } skillId param { string } stage param { string } id async callSetPrivateDistributionAccountIdV1 ( skillId , stage , id ) { const __operationId__ = 'callSetPrivateDistributionAccountIdV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( id == null ) { throw new Error ( `Required parameter id was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; pathParams . set ( 'id' , id ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/privateDistributionAccounts/{id}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage param { string } id async setPrivateDistributionAccountIdV1 ( skillId , stage , id ) { await this . callSetPrivateDistributionAccountIdV1 ( skillId , stage , id ) ; } param { string } skillId param { string } stageV2 async callDeleteAccountLinkingInfoV1 ( skillId , stageV2 ) { const __operationId__ = 'callDeleteAccountLinkingInfoV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/accountLinkingClient" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. No content." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified skill/stage/accountLinkingClient doesn&#39;t exist." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "DELETE" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 async deleteAccountLinkingInfoV1 ( skillId , stageV2 ) { await this . callDeleteAccountLinkingInfoV1 ( skillId , stageV2 ) ; } param { string } skillId param { string } stageV2 async callGetAccountLinkingInfoV1 ( skillId , stageV2 ) { const __operationId__ = 'callGetAccountLinkingInfoV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/accountLinkingClient" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns AccountLinking response of the skill." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 async getAccountLinkingInfoV1 ( skillId , stageV2 ) { const apiResponse = await this . callGetAccountLinkingInfoV1 ( skillId , stageV2 ) ; return apiResponse . body as v1 . skill . accountLinking . AccountLinkingResponse ; } param { string } skillId param { string } stageV2 param { v1 . skill . accountLinking . AccountLinkingRequest } accountLinkingRequest param { string } ifMatch async callUpdateAccountLinkingInfoV1 ( skillId , stageV2 , accountLinkingRequest , ifMatch ? ) { const __operationId__ = 'callUpdateAccountLinkingInfoV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( accountLinkingRequest == null ) { throw new Error ( `Required parameter accountLinkingRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ifMatch != null ) { headerParams . push ( { key : 'If-Match' , value : ifMatch } ) ; } if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/accountLinkingClient" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. Authorization Url is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , accountLinkingRequest , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { v1 . skill . accountLinking . AccountLinkingRequest } accountLinkingRequest param { string } ifMatch async updateAccountLinkingInfoV1 ( skillId , stageV2 , accountLinkingRequest , ifMatch ? ) { await this . callUpdateAccountLinkingInfoV1 ( skillId , stageV2 , accountLinkingRequest , ifMatch ) ; } param { string } skillId param { string } stageV2 param { v1 . skill . CloneLocaleRequest } cloneLocaleRequest async callCloneLocaleV1 ( skillId , stageV2 , cloneLocaleRequest ) { const __operationId__ = 'callCloneLocaleV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( cloneLocaleRequest == null ) { throw new Error ( `Required parameter cloneLocaleRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/cloneLocale" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , cloneLocaleRequest , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { v1 . skill . CloneLocaleRequest } cloneLocaleRequest async cloneLocaleV1 ( skillId , stageV2 , cloneLocaleRequest ) { await this . callCloneLocaleV1 ( skillId , stageV2 , cloneLocaleRequest ) ; } param { string } skillId param { string } stageV2 param { string } cloneLocaleRequestId async callGetCloneLocaleStatusV1 ( skillId , stageV2 , cloneLocaleRequestId ) { const __operationId__ = 'callGetCloneLocaleStatusV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( cloneLocaleRequestId == null ) { throw new Error ( `Required parameter cloneLocaleRequestId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; pathParams . set ( 'cloneLocaleRequestId' , cloneLocaleRequestId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/cloneLocaleRequests/{cloneLocaleRequestId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "OK." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { string } cloneLocaleRequestId async getCloneLocaleStatusV1 ( skillId , stageV2 , cloneLocaleRequestId ) { const apiResponse = await this . callGetCloneLocaleStatusV1 ( skillId , stageV2 , cloneLocaleRequestId ) ; return apiResponse . body as v1 . skill . CloneLocaleStatusResponse ; } param { string } skillId param { string } stageV2 param { string } locale async callGetInteractionModelV1 ( skillId , stageV2 , locale ) { const __operationId__ = 'callGetInteractionModelV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; pathParams . set ( 'locale' , locale ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/interactionModel/locales/{locale}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns interaction model object on success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified skill doesn&#39;t exist or there is no model defined for the locale." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { string } locale async getInteractionModelV1 ( skillId , stageV2 , locale ) { const apiResponse = await this . callGetInteractionModelV1 ( skillId , stageV2 , locale ) ; return apiResponse . body as v1 . skill . interactionModel . InteractionModelData ; } param { string } skillId param { string } stageV2 param { string } locale async callGetInteractionModelMetadataV1 ( skillId , stageV2 , locale ) { const __operationId__ = 'callGetInteractionModelMetadataV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; pathParams . set ( 'locale' , locale ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/interactionModel/locales/{locale}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success. There is no content but returns etag." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified skill or stage or locale does not exist" ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "HEAD" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { string } locale async getInteractionModelMetadataV1 ( skillId , stageV2 , locale ) { await this . callGetInteractionModelMetadataV1 ( skillId , stageV2 , locale ) ; } param { string } skillId param { string } stageV2 param { string } locale param { v1 . skill . interactionModel . InteractionModelData } interactionModel param { string } ifMatch async callSetInteractionModelV1 ( skillId , stageV2 , locale , interactionModel , ifMatch ? ) { const __operationId__ = 'callSetInteractionModelV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } if ( interactionModel == null ) { throw new Error ( `Required parameter interactionModel was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ifMatch != null ) { headerParams . push ( { key : 'If-Match' , value : ifMatch } ) ; } if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; pathParams . set ( 'locale' , locale ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/interactionModel/locales/{locale}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Returns build status location link on success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the input interaction model is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified skill or stage or locale does not exist." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , interactionModel , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { string } locale param { v1 . skill . interactionModel . InteractionModelData } interactionModel param { string } ifMatch async setInteractionModelV1 ( skillId , stageV2 , locale , interactionModel , ifMatch ? ) { await this . callSetInteractionModelV1 ( skillId , stageV2 , locale , interactionModel , ifMatch ) ; } param { string } skillId param { string } stageV2 param { string } locale param { string } nextToken param { number } maxResults param { string } sortDirection param { string } sortField async callListInteractionModelVersionsV1 ( skillId , stageV2 , locale , nextToken ? , maxResults ? , sortDirection ? , sortField ? ) { const __operationId__ = 'callListInteractionModelVersionsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } if ( sortDirection != null ) { const sortDirectionValues = Array . isArray ( sortDirection ) ? sortDirection : [ sortDirection ] ; sortDirectionValues . forEach ( val => queryParams . push ( { key : 'sortDirection' , value : val } ) ) ; } if ( sortField != null ) { const sortFieldValues = Array . isArray ( sortField ) ? sortField : [ sortField ] ; sortFieldValues . forEach ( val => queryParams . push ( { key : 'sortField' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; pathParams . set ( 'locale' , locale ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/interactionModel/locales/{locale}/versions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns list of interactionModel versions of a skill for the vendor." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the input interaction model is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified skill doesn&#39;t exist or there is no model defined for the locale." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { string } locale param { string } nextToken param { number } maxResults param { string } sortDirection param { string } sortField async listInteractionModelVersionsV1 ( skillId , stageV2 , locale , nextToken ? , maxResults ? , sortDirection ? , sortField ? ) { const apiResponse = await this . callListInteractionModelVersionsV1 ( skillId , stageV2 , locale , nextToken , maxResults , sortDirection , sortField ) ; return apiResponse . body as v1 . skill . interactionModel . version . ListResponse ; } param { string } skillId param { string } stageV2 param { string } locale param { string } version async callGetInteractionModelVersionV1 ( skillId , stageV2 , locale , version ) { const __operationId__ = 'callGetInteractionModelVersionV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( locale == null ) { throw new Error ( `Required parameter locale was null or undefined when calling ${ __operationId__ }.` ) ; } if ( version == null ) { throw new Error ( `Required parameter version was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; pathParams . set ( 'locale' , locale ) ; pathParams . set ( 'version' , version ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/interactionModel/locales/{locale}/versions/{version}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns interaction model object on success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. the input interaction model is invalid." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The specified skill doesn&#39;t exist or there is no model defined for the locale or version." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { string } locale param { string } version async getInteractionModelVersionV1 ( skillId , stageV2 , locale , version ) { const apiResponse = await this . callGetInteractionModelVersionV1 ( skillId , stageV2 , locale , version ) ; return apiResponse . body as v1 . skill . interactionModel . InteractionModelData ; } param { string } skillId param { string } stageV2 async callGetSkillManifestV1 ( skillId , stageV2 ) { const __operationId__ = 'callGetSkillManifestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/manifest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Response contains the latest version of skill manifest." ) ; errorDefinitions . set ( 303 , "See Other" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stageV2 async getSkillManifestV1 ( skillId , stageV2 ) { const apiResponse = await this . callGetSkillManifestV1 ( skillId , stageV2 ) ; return apiResponse . body as v1 . skill . Manifest . SkillManifestEnvelope ; } param { string } skillId param { string } stageV2 param { v1 . skill . Manifest . SkillManifestEnvelope } updateSkillRequest param { string } ifMatch async callUpdateSkillManifestV1 ( skillId , stageV2 , updateSkillRequest , ifMatch ? ) { const __operationId__ = 'callUpdateSkillManifestV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stageV2 == null ) { throw new Error ( `Required parameter stageV2 was null or undefined when calling ${ __operationId__ }.` ) ; } if ( updateSkillRequest == null ) { throw new Error ( `Required parameter updateSkillRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ifMatch != null ) { headerParams . push ( { key : 'If-Match' , value : ifMatch } ) ; } if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stageV2' , stageV2 ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stageV2}/manifest" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Accepted; Returns a URL to track the status in &#39;Location&#39; header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 409 , "The request could not be completed due to a conflict with the current state of the target resource." ) ; errorDefinitions . set ( 412 , "Precondition failed." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "PUT" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , updateSkillRequest , errorDefinitions ) ; } param { string } skillId param { string } stageV2 param { v1 . skill . Manifest . SkillManifestEnvelope } updateSkillRequest param { string } ifMatch async updateSkillManifestV1 ( skillId , stageV2 , updateSkillRequest , ifMatch ? ) { await this . callUpdateSkillManifestV1 ( skillId , stageV2 , updateSkillRequest , ifMatch ) ; } param { v1 . skill . validations . ValidationsApiRequest } validationsApiRequest param { string } skillId param { string } stage async callSubmitSkillValidationV1 ( validationsApiRequest , skillId , stage ) { const __operationId__ = 'callSubmitSkillValidationV1' ; if ( validationsApiRequest == null ) { throw new Error ( `Required parameter validationsApiRequest was null or undefined when calling ${ __operationId__ }.` ) ; } if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/validations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Skill validation has successfully begun." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill, stage or validation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 409 , "This requests conflicts with another one currently being processed. " ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , validationsApiRequest , errorDefinitions ) ; } param { v1 . skill . validations . ValidationsApiRequest } validationsApiRequest param { string } skillId param { string } stage async submitSkillValidationV1 ( validationsApiRequest , skillId , stage ) { const apiResponse = await this . callSubmitSkillValidationV1 ( validationsApiRequest , skillId , stage ) ; return apiResponse . body as v1 . skill . validations . ValidationsApiResponse ; } param { string } skillId param { string } validationId param { string } stage param { string } acceptLanguage async callGetSkillValidationsV1 ( skillId , validationId , stage , acceptLanguage ? ) { const __operationId__ = 'callGetSkillValidationsV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( validationId == null ) { throw new Error ( `Required parameter validationId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( acceptLanguage != null ) { headerParams . push ( { key : 'Accept-Language' , value : acceptLanguage } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'validationId' , validationId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/stages/{stage}/validations/{validationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved skill validation information." ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill, stage, or validation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 409 , "This requests conflicts with another one currently being processed. " ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } validationId param { string } stage param { string } acceptLanguage async getSkillValidationsV1 ( skillId , validationId , stage , acceptLanguage ? ) { const apiResponse = await this . callGetSkillValidationsV1 ( skillId , validationId , stage , acceptLanguage ) ; return apiResponse . body as v1 . skill . validations . ValidationsApiResponse ; } param { string } skillId param { string } resource async callGetSkillStatusV1 ( skillId , resource ? ) { const __operationId__ = 'callGetSkillStatusV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( resource != null ) { const resourceValues = Array . isArray ( resource ) ? resource : [ resource ] ; resourceValues . forEach ( val => queryParams . push ( { key : 'resource' , value : val } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/status" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Returns status for skill resource and sub-resources." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } resource async getSkillStatusV1 ( skillId , resource ? ) { const apiResponse = await this . callGetSkillStatusV1 ( skillId , resource ) ; return apiResponse . body as v1 . skill . SkillStatus ; } param { string } skillId param { v1 . skill . SubmitSkillForCertificationRequest } submitSkillForCertificationRequest async callSubmitSkillForCertificationV1 ( skillId , submitSkillForCertificationRequest ? ) { const __operationId__ = 'callSubmitSkillForCertificationV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/submit" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 202 , "Success. There is no content but returns Location in the header." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , submitSkillForCertificationRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . SubmitSkillForCertificationRequest } submitSkillForCertificationRequest async submitSkillForCertificationV1 ( skillId , submitSkillForCertificationRequest ? ) { await this . callSubmitSkillForCertificationV1 ( skillId , submitSkillForCertificationRequest ) ; } param { string } skillId param { string } nextToken param { number } maxResults async callListVersionsForSkillV1 ( skillId , nextToken ? , maxResults ? ) { const __operationId__ = 'callListVersionsForSkillV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; if ( nextToken != null ) { const nextTokenValues = Array . isArray ( nextToken ) ? nextToken : [ nextToken ] ; nextTokenValues . forEach ( val => queryParams . push ( { key : 'nextToken' , value : val } ) ) ; } if ( maxResults != null ) { const maxResultsValues = Array . isArray ( maxResults ) ? maxResults : [ maxResults ] ; maxResultsValues . forEach ( val => queryParams . push ( { key : 'maxResults' , value : val ! . toString ( ) } ) ) ; } const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/versions" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved skill versions" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } nextToken param { number } maxResults async listVersionsForSkillV1 ( skillId , nextToken ? , maxResults ? ) { const apiResponse = await this . callListVersionsForSkillV1 ( skillId , nextToken , maxResults ) ; return apiResponse . body as v1 . skill . ListSkillVersionsResponse ; } param { string } skillId param { v1 . skill . WithdrawRequest } withdrawRequest async callWithdrawSkillFromCertificationV1 ( skillId , withdrawRequest ) { const __operationId__ = 'callWithdrawSkillFromCertificationV1' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( withdrawRequest == null ) { throw new Error ( `Required parameter withdrawRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/{skillId}/withdraw" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 204 , "Success." ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "The operation being requested is not allowed." ) ; errorDefinitions . set ( 404 , "The resource being requested is not found." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , withdrawRequest , errorDefinitions ) ; } param { string } skillId param { v1 . skill . WithdrawRequest } withdrawRequest async withdrawSkillFromCertificationV1 ( skillId , withdrawRequest ) { await this . callWithdrawSkillFromCertificationV1 ( skillId , withdrawRequest ) ; } /**
         * Creates a new uploadUrl.
         */ async callCreateUploadUrlV1 ( ) { const __operationId__ = 'callCreateUploadUrlV1' ; const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/skills/uploads" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 201 , "Created." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Exceeds the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } /**
         * Creates a new uploadUrl.
         */ async createUploadUrlV1 ( ) { const apiResponse = await this . callCreateUploadUrlV1 ( ) ; return apiResponse . body as v1 . skill . UploadResponse ; } /**
         * Get the list of Vendor information.
         */ async callGetVendorListV1 ( ) { const __operationId__ = 'callGetVendorListV1' ; const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/vendors" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Return vendor information on success." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } /**
         * Get the list of Vendor information.
         */ async getVendorListV1 ( ) { const apiResponse = await this . callGetVendorListV1 ( ) ; return apiResponse . body as v1 . vendorManagement . Vendors ; } param { string } vendorId param { string } hostedSkillPermissionType async callGetAlexaHostedSkillUserPermissionsV1 ( vendorId , hostedSkillPermissionType ) { const __operationId__ = 'callGetAlexaHostedSkillUserPermissionsV1' ; if ( vendorId == null ) { throw new Error ( `Required parameter vendorId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( hostedSkillPermissionType == null ) { throw new Error ( `Required parameter hostedSkillPermissionType was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'vendorId' , vendorId ) ; pathParams . set ( 'hostedSkillPermissionType' , hostedSkillPermissionType ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v1/vendors/{vendorId}/alexaHosted/permissions/{hostedSkillPermissionType}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "response contains the user&#39;s permission of hosted skill features" ) ; errorDefinitions . set ( 400 , "Server cannot process the request due to a client error e.g. Authorization Url is invalid" ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 429 , "Exceed the permitted request limit. Throttling criteria includes total requests, per API, ClientId, and CustomerId." ) ; errorDefinitions . set ( 500 , "Internal Server Error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } vendorId param { string } hostedSkillPermissionType async getAlexaHostedSkillUserPermissionsV1 ( vendorId , hostedSkillPermissionType ) { const apiResponse = await this . callGetAlexaHostedSkillUserPermissionsV1 ( vendorId , hostedSkillPermissionType ) ; return apiResponse . body as v1 . skill . AlexaHosted . HostedSkillPermission ; } param { string } skillId param { string } stage param { v2 . skill . invocations . InvocationsApiRequest } invocationsApiRequest async callInvokeSkillEndPointV2 ( skillId , stage , invocationsApiRequest ? ) { const __operationId__ = 'callInvokeSkillEndPointV2' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v2/skills/{skillId}/stages/{stage}/invocations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Skill was invoked." ) ; errorDefinitions . set ( 400 , "Bad request due to invalid or missing data." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "API user does not have permission to call this API or is currently in a state that does not allow invocation of this skill. " ) ; errorDefinitions . set ( 404 , "The specified skill does not exist." ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , invocationsApiRequest , errorDefinitions ) ; } param { string } skillId param { string } stage param { v2 . skill . invocations . InvocationsApiRequest } invocationsApiRequest async invokeSkillEndPointV2 ( skillId , stage , invocationsApiRequest ? ) { const apiResponse = await this . callInvokeSkillEndPointV2 ( skillId , stage , invocationsApiRequest ) ; return apiResponse . body as v2 . skill . invocations . InvocationsApiResponse ; } param { string } skillId param { string } stage param { v2 . skill . simulations . SimulationsApiRequest } simulationsApiRequest async callSimulateSkillV2 ( skillId , stage , simulationsApiRequest ) { const __operationId__ = 'callSimulateSkillV2' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( simulationsApiRequest == null ) { throw new Error ( `Required parameter simulationsApiRequest was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; if ( ! headerParams . find ( ( param ) => param . key . toLowerCase ( ) === 'content-type' ) ) { headerParams . push ( { key : 'Content-type' , value : 'application/json' } ) ; } const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v2/skills/{skillId}/stages/{stage}/simulations" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Skill simulation has successfully began." ) ; errorDefinitions . set ( 400 , "Bad request due to invalid or missing data." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "API user does not have permission to call this API or is currently in a state that does not allow simulation of this skill. " ) ; errorDefinitions . set ( 404 , "The specified skill does not exist." ) ; errorDefinitions . set ( 409 , "This requests conflicts with another one currently being processed. " ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "POST" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , simulationsApiRequest , errorDefinitions ) ; } param { string } skillId param { string } stage param { v2 . skill . simulations . SimulationsApiRequest } simulationsApiRequest async simulateSkillV2 ( skillId , stage , simulationsApiRequest ) { const apiResponse = await this . callSimulateSkillV2 ( skillId , stage , simulationsApiRequest ) ; return apiResponse . body as v2 . skill . simulations . SimulationsApiResponse ; } param { string } skillId param { string } stage param { string } simulationId async callGetSkillSimulationV2 ( skillId , stage , simulationId ) { const __operationId__ = 'callGetSkillSimulationV2' ; if ( skillId == null ) { throw new Error ( `Required parameter skillId was null or undefined when calling ${ __operationId__ }.` ) ; } if ( stage == null ) { throw new Error ( `Required parameter stage was null or undefined when calling ${ __operationId__ }.` ) ; } if ( simulationId == null ) { throw new Error ( `Required parameter simulationId was null or undefined when calling ${ __operationId__ }.` ) ; } const queryParams = [ ] ; const headerParams = [ ] ; headerParams . push ( { key : 'User-Agent' , value : this . userAgent } ) ; const pathParams = new Map < string , string > ( ) ; pathParams . set ( 'skillId' , skillId ) ; pathParams . set ( 'stage' , stage ) ; pathParams . set ( 'simulationId' , simulationId ) ; const accessToken = await this . lwaServiceClient . getAccessToken ( ) ; const authorizationValue = "Bearer " + accessToken ; headerParams . push ( { key : "Authorization" , value : authorizationValue } ) ; let resourcePath = "/v2/skills/{skillId}/stages/{stage}/simulations/{simulationId}" ; const errorDefinitions = new Map < number , string > ( ) ; errorDefinitions . set ( 200 , "Successfully retrieved skill simulation information." ) ; errorDefinitions . set ( 401 , "The auth token is invalid/expired or doesn&#39;t have access to the resource." ) ; errorDefinitions . set ( 403 , "API user does not have permission or is currently in a state that does not allow calls to this API. " ) ; errorDefinitions . set ( 404 , "The specified skill or simulation does not exist. The error response will contain a description that indicates the specific resource type that was not found. " ) ; errorDefinitions . set ( 429 , "API user has exceeded the permitted request rate." ) ; errorDefinitions . set ( 500 , "Internal service error." ) ; errorDefinitions . set ( 503 , "Service Unavailable." ) ; return this . invoke ( "GET" , this . apiConfiguration . apiEndpoint , resourcePath , pathParams , queryParams , headerParams , null , errorDefinitions ) ; } param { string } skillId param { string } stage param { string } simulationId async getSkillSimulationV2 ( skillId , stage , simulationId ) { const apiResponse = await this . callGetSkillSimulationV2 ( skillId , stage , simulationId ) ; return apiResponse . body as v2 . skill . simulations . SimulationsApiResponse ; } } } export namespace services { export class export class ServiceClientFactory { protected apiConfiguration : ApiConfiguration ; constructor ( apiConfiguration ) { this . apiConfiguration = apiConfiguration ; } } }