npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@datafire/amazonaws_runtime_lex

v5.0.0

Published

DataFire integration for Amazon Lex Runtime Service

Readme

@datafire/amazonaws_runtime_lex

Client library for Amazon Lex Runtime Service

Installation and Usage

npm install --save @datafire/amazonaws_runtime_lex
let amazonaws_runtime_lex = require('@datafire/amazonaws_runtime_lex').create({
  accessKeyId: "",
  secretAccessKey: "",
  region: ""
});

amazonaws_runtime_lex.PostContent({
  "botName": "",
  "botAlias": "",
  "userId": "",
  "inputStream": ""
}).then(data => {
  console.log(data);
});

Description

Amazon Lex provides both build and runtime endpoints. Each endpoint provides a set of operations (API). Your conversational bot uses the runtime API to understand user utterances (user input text or voice). For example, suppose a user says "I want pizza", your bot sends this input to Amazon Lex using the runtime API. Amazon Lex recognizes that the user request is for the OrderPizza intent (one of the intents defined in the bot). Then Amazon Lex engages in user conversation on behalf of the bot to elicit required information (slot values, such as pizza size and crust type), and then performs fulfillment activity (that you configured when you created the bot). You use the build-time API to create and manage your Amazon Lex bot. For a list of build-time operations, see the build-time API, .

Actions

PostContent

amazonaws_runtime_lex.PostContent({
  "botName": "",
  "botAlias": "",
  "userId": "",
  "inputStream": ""
}, context)

Input

  • input object
    • botName required string
    • botAlias required string
    • userId required string
    • inputStream required BlobStream

Output

PostText

amazonaws_runtime_lex.PostText({
  "botName": "",
  "botAlias": "",
  "userId": "",
  "inputText": ""
}, context)

Input

  • input object
    • botName required string
    • botAlias required string
    • userId required string
    • inputText required Text
    • requestAttributes StringMap
    • sessionAttributes StringMap

Output

Definitions

Accept

  • Accept string

AttributesString

  • AttributesString string

BadGatewayException

  • BadGatewayException object: Either the Amazon Lex bot is still building, or one of the dependent services (Amazon Polly, AWS Lambda) failed with an internal service error.

BadRequestException

  • BadRequestException object: Request validation failed, there is no usable message in the context, or the bot build failed, is still in progress, or contains unbuilt changes.

BlobStream

  • BlobStream string

BotAlias

  • BotAlias string

BotName

  • BotName string

Button

ButtonTextStringWithLength

  • ButtonTextStringWithLength string

ButtonValueStringWithLength

  • ButtonValueStringWithLength string

ConflictException

  • ConflictException object: Two clients are using the same AWS account, Amazon Lex bot, and user ID.

ContentType

  • ContentType string (values: application/vnd.amazonaws.card.generic)

DependencyFailedException

  • DependencyFailedException object: One of the dependencies, such as AWS Lambda or Amazon Polly, threw an exception. For example, If Amazon Lex does not have sufficient permissions to call a Lambda function. If a Lambda function takes longer than 30 seconds to execute. If a fulfillment Lambda function returns a Delegate dialog action without removing any slot values.

DialogState

  • DialogState string (values: ElicitIntent, ConfirmIntent, ElicitSlot, Fulfilled, ReadyForFulfillment, Failed)

ErrorMessage

  • ErrorMessage string

GenericAttachment

HttpContentType

  • HttpContentType string

IntentName

  • IntentName string

InternalFailureException

  • InternalFailureException object: Internal service error. Retry the call.

LimitExceededException

  • LimitExceededException object: Exceeded a limit.

LoopDetectedException

  • LoopDetectedException object: This exception is not used.

MessageFormatType

  • MessageFormatType string (values: PlainText, CustomPayload, SSML, Composite)

NotAcceptableException

  • NotAcceptableException object: The accept header in the request does not have a valid value.

NotFoundException

  • NotFoundException object: The resource (such as the Amazon Lex bot or an alias) that is referred to is not found.

PostContentRequest

  • PostContentRequest object

PostContentResponse

PostTextRequest

PostTextResponse

RequestTimeoutException

  • RequestTimeoutException object: The input speech is too long.

ResponseCard

  • ResponseCard object: If you configure a response card when creating your bots, Amazon Lex substitutes the session attributes and slot values that are available, and then returns it. The response card can also come from a Lambda function ( dialogCodeHook and fulfillmentActivity on an intent).

String

  • String string

StringMap

StringUrlWithLength

  • StringUrlWithLength string

StringWithLength

  • StringWithLength string

Text

  • Text string

UnsupportedMediaTypeException

  • UnsupportedMediaTypeException object: The Content-Type header (PostContent API) has an invalid value.

UserId

  • UserId string

genericAttachmentList

listOfButtons

  • listOfButtons array