Enumeration indicating the status of the multi-turn dialog. This property is included if the skill meets the requirements to use the Dialog directives. Note that COMPLETED is only possible when you use the Dialog.Delegate directive. If you use intent confirmation, dialogState is considered COMPLETED if the user denies the entire intent (for instance, by answering “no” when asked the confirmation prompt). Be sure to also check the confirmationStatus property on the Intent object before fulfilling the user’s request.
Indication of whether an intent or slot has been explicitly confirmed or denied by the user, or neither.
Type definition of LambdaHandler which contains inputs received in lambda function. https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-handler.html.
Type definition of function used by S3PersistenceAdapter to extract attributes id from RequestEnvelope.
Type definition of function used by DynamoDbPersistenceAdapter to extract attributes id from RequestEnvelope.
This denotes the status of the permission scope.
A request object that provides the details of the user’s request. The request body contains the parameters necessary for the service to perform its logic and generate a response.
A string indicating the type of error that occurred.
The reason why session ended when not initiated from the Skill itself.
An enumeration indicating whether the user has explicitly confirmed or denied the value of this slot.
Object representing the value captured in the slot.
Function used to convert certificate chain string into Certificate Object Array
Provide constant value For more info, check `link https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-a-web-service.html#checking-the-signature-of-the-request
Converts the header array in services.ApiClientRequest to compatible JSON object.
header object to pass into HTTP client
Verify request and dispatch
This method first validate request with all provided verifiers Then, invoke the skill to handle request envelope to get response
Http request header
Http request body in string format
ask-sdk-core custom skill instance
Array of user customized Verifier instances
function creating an AskSdk error.
function creating an AskSdk user agent.
function creating an AskSdk user agent.
return the string with all invalid XML characters escaped
Function used to generate ca store based on input root CAs list
root CAs in pem format
Retrieves the account linking access token from the request.
The method retrieves the user's accessToken from the input request. Once a user successfully enables a skill and links their Alexa account to the skill, the input request will have the user's access token. A null value is returned if there is no access token in the input request. More information on this can be found here: https://developer.amazon.com/docs/account-linking/add-account-linking-logic-custom-skill.html
Retrieves the API access token from the request.
The method retrieves the apiAccessToken from the input request, which has the encapsulated information of permissions granted by the user. This token can be used to call Alexa-specific APIs. More information about this can be found here: https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#system-object
The SDK automatically injects this value into service client instances retrieved from the services.ServiceClientFactory
Retrieves the device ID from the request.
The method retrieves the deviceId property from the input request. This value uniquely identifies the device and is generally used as input for some Alexa-specific API calls. More information about this can be found here: https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#system-object
Retrieves the dialog state from the request.
The method retrieves the dialogState
from the intent request, if the skill's interaction model includes a
dialog model. This can be used to determine the current status of user conversation and return the appropriate
dialog directives if the conversation is not yet complete. More information on dialog management can be found here:
https://developer.amazon.com/docs/custom-skills/define-the-dialog-to-collect-and-confirm-required-information.html
Retrieves the name of the intent from the request.
The method retrieves the intent name from the input request, only if the input request is an IntentRequest.
Retrieves the locale from the request.
The method returns the locale value present in the request. More information about the locale can be found here: https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#request-locale
Get request object.
We can set a specific type to the response by using the generics
Retrieves the type of the request.
The method retrieves the request type of the input request. More information about the different request types are mentioned here: https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#request-body-parameters
Returns the SlotValue from the given Slot in the request.
SlotValue will exist for slots using multiple slot value feature. And this method attempts to retrieve the requested Slot's SlotValue from the incoming request. If the slot or slot.slotValue does not exist in the request, null will be returned.
Retrieves the SupportedInterfaces from the request.
This method returns an object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer, then you know that the device supports streaming audio using the AudioPlayer interface.
Retrieves the user ID from the request.
The method retrieves the userId property from the input request. This value uniquely identifies the user and is generally used as input for some Alexa-specific API calls. More information about this can be found here: https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#system-object
return the ViewportDpiGroup of given dpi value
return the ViewportOrientation of given width and height value
return the ViewportProfile of given request envelope
return the ViewportSizeGroup of given size value
check if target number is within the range of [min, max);
Returns whether the request is a new session.
The method retrieves the new value from the input request's session, which indicates if it's a new session or not. More information can be found here : https://developer.amazon.com/docs/custom-skills/request-and-response-json-reference.html#session-object
Converts JSON header object to header array required for {services.ApiClientResponse}
JSON header object returned by HTTP client
[]}
Object containing implementations of ObjectKeyGenerator.
Gets attributes id using device id.
Gets attributes id using user id.
Object containing implementations of PartitionKeyGenerator.
Gets attributes id using device id.
Gets attributes id using person id. Fallback to fetching attributes id using user id, if personId is not present.
Gets attributes id using user id.
Provider for skill builder. Provider for skill builders.
Describes the type of the Cause.