{"_id":"@aws-sdk/client-lex-runtime-service-browser","_rev":"19-87a6ec0cbf8b971f821928f31f1b4142","name":"@aws-sdk/client-lex-runtime-service-browser","dist-tags":{"latest":"0.1.0-preview.2","preview":"0.1.0-preview.6"},"versions":{"0.1.0-preview.2":{"name":"@aws-sdk/client-lex-runtime-service-browser","version":"0.1.0-preview.2","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-lex-runtime-service-browser@0.1.0-preview.2","maintainers":[{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"},{"name":"amzn-oss","email":"osa-3p@amazon.com"}],"dist":{"shasum":"fdb884093c8c614ae84016dae1b8c254eb499f8d","tarball":"https://registry.npmjs.org/@aws-sdk/client-lex-runtime-service-browser/-/client-lex-runtime-service-browser-0.1.0-preview.2.tgz","fileCount":161,"integrity":"sha512-IA2zkOaxivfDMvA5/CkiQIUERzm7XTqWkGYbalLgpNfaFPZ7IY2saQ9rQbYyFTVx8ukUpS8UxGtZSgaE9LD9DA==","signatures":[{"sig":"MEUCIQCsgKPF6sGZUKtY91KVskp+kBRk4bneXhujsVGShW3e5wIgIC8Qk+Mq9IBf/zuAZknDUSyJ2mzFcfkaMZYkyh1mLq4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":131330,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddo7pCRA9TVsSAnZWagAAVHEP/2DUDeFLC0hV1NxJNwVB\nYEAm1jrKA8SFcfAAIOgCEsMcMUOiZuJCjzVnZFx2q6ekwJJlMg9oTQ+urCLl\nF32Ys4eYUUQ+rFRLR6TAunJeqme/WoRIx1yeXi1bz2zrtSUsQ9bLMj/Eltj7\ni1h7xLJTAZVCl2OyMPNzM7FCQGeNDwv7K9JBhKPaMZ3CumbT1WvhhEabwwTB\n+XQoTdyVk+Sd3TRXgOPINbn7I7+qjTr58MtR6RHE0Ol6jXc11eJQ2dMpAFwn\nPNYz/aQ6flNO/H2wge5/1er8XiEQIQEpjW/uw0KJWNO8Br/nVxcPRMh8QNzm\nkMmNLz52nsZMAqdnJ8GVLWp08IcbFNDH9QOrRjE2k5R7pDL/vFZ/ygEK6aKX\nsj7zGSIo0z8FPvaKu1IWmWD86rF2iKnZbLNPvx3hTlMyeGs27g5gziQBhtbC\n/VSxFrSFXswqrUbpgwvtz2CpE9/57JmcVko7Vqru3XXbbAR6D+fSYgT9kxtR\nF8tE0J3Q+RYOWciyAf2DGYXwsf3SjSevTds/FOBVgzX1Oj+jNAvL2/X1DzIn\nyqprZy/fX2orncQW01jk0Z0j4v2PAKiMiK8uh+bR49E1cfECmuT8RBjPoptQ\nXjbqK6JzvTnSdmoSEwnpUR2ud9JrCsirDH/9VTbJdlDXI9jTFkZFO7uw/B5V\njo5n\r\n=+EZW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-lex-runtime-service-browser has been renamed to @aws-sdk/client-lex-runtime-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Lex Runtime Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.6","@aws-sdk/protocol-rest":"^0.1.0-preview.7","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.6","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-lex-runtime-service-browser_0.1.0-preview.2_1568050920858_0.9048857756736655","host":"s3://npm-registry-packages"}},"0.1.0-preview.3":{"name":"@aws-sdk/client-lex-runtime-service-browser","version":"0.1.0-preview.3","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-lex-runtime-service-browser@0.1.0-preview.3","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"c5aafe6a7a5acef4d194e1e3c97c014d71ca1729","tarball":"https://registry.npmjs.org/@aws-sdk/client-lex-runtime-service-browser/-/client-lex-runtime-service-browser-0.1.0-preview.3.tgz","fileCount":161,"integrity":"sha512-kYAvey6ejdXok67Eyz2qOe33ZVVUbZ8kBZlgTO1gMM99qKBYKUNeoI8efg8JlLNc3ovfnvQPK3bBkplk0L7GEw==","signatures":[{"sig":"MEUCIQC3aUnRyhTae/bmDVJwS8idZFFIuUGG6ltIx/Hkj0L+FgIgaCL9bv58L5evC5vQmyZ0MX/HUthOwxlfapu9WA+5mfg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":131550,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdg6SMCRA9TVsSAnZWagAAmUcP/1QdcxxkaBgGm/XS4T+h\nhOu5lSTNhTmujoXMzItMHPNrxMBIKSPNoaY1EmikkmFELnb28oygIdHff36C\nJvzq0JMQUvm70mwpR6QiB/Ma00hPZEd1S49XkTVMtVY7yJjTarbFWSnYHJbF\nBDtISaSN/Zv4p7455yi3jnIkHTP8fuicm61DiHpzzzjPZUJgdHExEoL7XzEX\no2lec1z5fDfHxJKphK0N8igThWTnclfXZrAjRxy8BbGzjownJb7eXfFVy56Z\nnnatQxp+zLKSPVEEYqf87s+tvqllu4HEKV+xxNdna28WlDgcHhCiKiZsIxbo\nWvOPLrB/1oFORSMvwFuRqnP6xyWhgiFrNQo5h2XJR9NiXqIt9GW83tT88FSe\nlEFLD5dRlPKGZACrn/Pmy6Kx/s0ZOaag6BI5HxKYnuHV21SNAWYl8oEx4A+1\n/seRfvbJk+FkcMURC8F3PEOo+AqSzkZRzuLuDSo7kDTnnTHTD5ovnpVxhZfF\nAVU+FkBf162QdDRW4IEhzpbWwdRZnTuzq/3NoD4PqRexCaEVh9WaoCDoUivd\ngt8+ZgaDv2yghuCnUTssyryXZm09ARc5AluwI1mSzbfArFumpcaao8Y7rPK6\ngABAdauOvaVy79JEkM2UTGCXsbboC7LNtSeMukDyz9mJgFNRQd0gB1USFTrD\nisj3\r\n=Pkh9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-lex-runtime-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-lex-runtime-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-lex-runtime-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n\n## Description\n\n<p>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, . </p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-lex-runtime-service-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`LexRuntimeServiceClient`) and the commands you need, for example `PostContentCommand`:\n\n```javascript\n//JavaScript\nconst {\n  LexRuntimeServiceClient\n} = require(\"@aws-sdk/client-lex-runtime-service-browser/LexRuntimeServiceClient\");\nconst {\n  PostContentCommand\n} = require(\"@aws-sdk/client-lex-runtime-service-browser/commands/PostContentCommand\");\n```\n\n```javascript\n//TypeScript\nimport { LexRuntimeServiceClient } from \"@aws-sdk/client-lex-runtime-service-browser/LexRuntimeServiceClient\";\nimport { PostContentCommand } from \"@aws-sdk/client-lex-runtime-service-browser/commands/PostContentCommand\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst lexRuntimeService = new LexRuntimeServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  botName: /**a string value*/,\n  botAlias: /**a string value*/,\n  userId: /**a string value*/,\n  contentType: /**a string value*/,\n  inputStream: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst postContentCommand = new PostContentCommand(params);\nlexRuntimeService.send(postContentCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nlexRuntimeService.send(postContentCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/@aws-sdk/client-lex-runtime-service-browser/LexRuntimeService\";\nconst lexRuntimeService = new AWS.LexRuntimeService({ region: \"region\" });\nlexRuntimeService.postContent(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-lex-runtime-service-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-lex-runtime-service-browser has been renamed to @aws-sdk/client-lex-runtime-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Lex Runtime Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.5","@aws-sdk/json-parser":"^0.1.0-preview.5","@aws-sdk/core-handler":"^0.1.0-preview.5","@aws-sdk/json-builder":"^0.1.0-preview.5","@aws-sdk/signature-v4":"^0.1.0-preview.7","@aws-sdk/protocol-rest":"^0.1.0-preview.7","@aws-sdk/config-resolver":"^0.1.0-preview.5","@aws-sdk/middleware-stack":"^0.1.0-preview.6","@aws-sdk/retry-middleware":"^0.1.0-preview.5","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.5","@aws-sdk/signing-middleware":"^0.1.0-preview.7","@aws-sdk/url-parser-browser":"^0.1.0-preview.5","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.5","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.6","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.6","@aws-sdk/stream-collector-browser":"^0.1.0-preview.5","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.5","@aws-sdk/middleware-header-default":"^0.1.0-preview.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-lex-runtime-service-browser_0.1.0-preview.3_1568908427959_0.12274601539841345","host":"s3://npm-registry-packages"}},"0.1.0-preview.4":{"name":"@aws-sdk/client-lex-runtime-service-browser","version":"0.1.0-preview.4","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-lex-runtime-service-browser@0.1.0-preview.4","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"146c840ca0e43e491689fe6c6c7e7b5f9839cc75","tarball":"https://registry.npmjs.org/@aws-sdk/client-lex-runtime-service-browser/-/client-lex-runtime-service-browser-0.1.0-preview.4.tgz","fileCount":161,"integrity":"sha512-cu/R9RE614GS+G+YdhrJXnqoyITB/DK6Y3GWag22T6XXlmDKbxHCk0zAIpn/w8O8ZX+2EN+8O06fBlF0S6vmfA==","signatures":[{"sig":"MEUCIHVYlZBzUm2a7RVLdBeYJd3f+ySkIRCNxnx0IvlxuCRuAiEAiZKYEx7uAC5OOwAeUAo50KFxyc7ajJxWfRA1zkBWIis=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":131538,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJduM7zCRA9TVsSAnZWagAAReUP/i2rDDiyug/uiCmo2beG\nYYQxPIFCxLT2qjuZGswE/AfDO1NJrzgdUlcDbaRqp5wy78TeI/KfXFkfWtzH\nifOTX4el1+59cx8e3u+JtQz5FOCUnPqJL+yKy6ltV2JjTbHQd+gwEgb316+a\nykVV21qDj+nV/EG6tE8zzQJZWCVPA54Px2VnclhPggCV6KOWxp0DTSf10btK\nyGT/gAsXB6mXALsZKJ+s6A9bUkH0DDmcVmtYmpXiKQ2RqdYPwSca+u/RsFQD\nxlTCalkvMuxZhu+itMXnlA6weRRV0u/qbWnm0+YK7TGtjugv4F8A4O9208s9\n/eIGrEOn4wSGJ2yWw8vhDkxGm76aXMAM5k4hDgTsqhF9OBKiQsvzyUq9vLya\nxTLEJYR0bnP978D8gU6UQaQhxCecNRPeY+8/Jn8cAxDS4oxDg33cYRZp+tkH\ncNFsbM1OnggvIw/TCxkg07zNQ6O5S1EoQEtvQ1Wn+XISYCUQ46AeGa3We0G8\nWFkQgLAOe1eoTJg3xakDTCceFZVgKvCOJPHMbf71A1f0iC6DN3EW1J9Rucge\naAWf/w4gZF0zfdDpklNiAKq4gBnYw2C2kSHtuSao+ELkh5xkHX2VmI1ayQTb\n7hFRb3gwIHAftBaBcS72LaRFLUpv18eKBUbGLUd4rMJZHuwkMyTZn+NymjX+\nk/H7\r\n=OMZg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-lex-runtime-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-lex-runtime-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-lex-runtime-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n\n## Description\n\n<p>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, . </p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-lex-runtime-service-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`LexRuntimeServiceClient`) and the commands you need, for example `PostContentCommand`:\n\n```javascript\n//JavaScript\nconst {\n  LexRuntimeServiceClient,\n  PostContentCommand\n} = require(\"@aws-sdk/client-lex-runtime-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  LexRuntimeServiceClient,\n  PostContentCommand\n} from \"@aws-sdk/client-lex-runtime-service-browser\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst lexRuntimeService = new LexRuntimeServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  botName: /**a string value*/,\n  botAlias: /**a string value*/,\n  userId: /**a string value*/,\n  contentType: /**a string value*/,\n  inputStream: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst postContentCommand = new PostContentCommand(params);\nlexRuntimeService.send(postContentCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nlexRuntimeService.send(postContentCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-lex-runtime-service-browser\";\nconst lexRuntimeService = new AWS.LexRuntimeService({ region: \"region\" });\nlexRuntimeService.postContent(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-lex-runtime-service-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-lex-runtime-service-browser has been renamed to @aws-sdk/client-lex-runtime-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Lex Runtime Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.6","@aws-sdk/json-parser":"^0.1.0-preview.6","@aws-sdk/core-handler":"^0.1.0-preview.6","@aws-sdk/json-builder":"^0.1.0-preview.6","@aws-sdk/signature-v4":"^0.1.0-preview.8","@aws-sdk/protocol-rest":"^0.1.0-preview.8","@aws-sdk/config-resolver":"^0.1.0-preview.6","@aws-sdk/middleware-stack":"^0.1.0-preview.7","@aws-sdk/retry-middleware":"^0.1.0-preview.6","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.6","@aws-sdk/signing-middleware":"^0.1.0-preview.8","@aws-sdk/url-parser-browser":"^0.1.0-preview.6","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.6","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.7","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.7","@aws-sdk/stream-collector-browser":"^0.1.0-preview.6","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.6","@aws-sdk/middleware-header-default":"^0.1.0-preview.6"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-lex-runtime-service-browser_0.1.0-preview.4_1572392690647_0.9073649808706041","host":"s3://npm-registry-packages"}},"0.1.0-preview.5":{"name":"@aws-sdk/client-lex-runtime-service-browser","version":"0.1.0-preview.5","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-lex-runtime-service-browser@0.1.0-preview.5","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"d434c61c5d190f471fcc8170fd89506b74f1266a","tarball":"https://registry.npmjs.org/@aws-sdk/client-lex-runtime-service-browser/-/client-lex-runtime-service-browser-0.1.0-preview.5.tgz","fileCount":161,"integrity":"sha512-e8V4TNbQYvCcDRXyk03FeKSBXPi9HYItdal9dzsTfRe0HNZixHsJLcn3qlZRwKh03v6pT24mXqIZNonG1HX6Bw==","signatures":[{"sig":"MEUCIQCF+a+HClgz7XKhVxyELJ0FJ1GVfz2MFBSAMJyLj89wygIgPaU0VCrLMj57iK0zWxwcJEDFITdfkNVP1loajdPnOEE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":131782,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdueHhCRA9TVsSAnZWagAAyeoP/2Jo7bg7PgqnQ+qv9RFl\nEfKV/wJ0JkzzW0t+rg/8+4nbvO23V0Bz0dvdDfbXnl05xg8lePNDxXV3OGQp\nHpLMCfsTeAuiwLz8OegSySit5S4lt/koKWg0L9DglbhRGtNDVSxu549wjF6r\n/77iz2xfrO/u4Wt4y3NlyDL3a/AaGuQuH5Wo37mflfSG9o3MTuxN9QPbM4iv\nvYBsy6QqYxq1PV2njQDHcqVkf+YHOTy6wQXZmPTXr0TS/APyeP9R8srysk+a\n9ANqQi8vfIYl8aFqoqxoGSD4HuSNM0E8tsa0dKdOeYdbGMXZrucNSdFT9q1N\na7UJSPfXZkhcoBBTI/xau3C9ufDr5tSiBRLM8+31sc4sGg8dy116jwx1gCy8\nrWsFLDZe9rsyB9VMWhdIyCCDJTukbfieNesEK6A+mBHa9LefFQo3qlWjt+O/\nibE9pMju7pSZWO11KEnLSjAO/NUYoZiKvuJ9zHdBvaiEV0xcOuu7IBhBX3Tq\nEyjmyp4QVaasp8Zyuw/e69FHwGLzUmQXVQ+scstrxTi7U4XEvpd3GO+ZU8nR\n7sGbh7bAwQ7bAJ2sHRqnWKjaqHEr5ms5PhoyzJcYzYVCn79qaiPJUT93lBnZ\nI0Nj/w2E4LeWTXzTOjnRV5N8nN+75XElnjRGZ6IcT90RldxicgfqlEW0gy/L\n9r74\r\n=k89N\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-lex-runtime-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-lex-runtime-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-lex-runtime-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n\n## Description\n\n<p>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, . </p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-lex-runtime-service-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`LexRuntimeServiceClient`) and the commands you need, for example `PostContentCommand`:\n\n```javascript\n//JavaScript\nconst {\n  LexRuntimeServiceClient,\n  PostContentCommand\n} = require(\"@aws-sdk/client-lex-runtime-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  LexRuntimeServiceClient,\n  PostContentCommand\n} from \"@aws-sdk/client-lex-runtime-service-browser\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst lexRuntimeService = new LexRuntimeServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  botName: /**a string value*/,\n  botAlias: /**a string value*/,\n  userId: /**a string value*/,\n  contentType: /**a string value*/,\n  inputStream: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst postContentCommand = new PostContentCommand(params);\nlexRuntimeService.send(postContentCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nlexRuntimeService.send(postContentCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-lex-runtime-service-browser\";\nconst lexRuntimeService = new AWS.LexRuntimeService({ region: \"region\" });\nlexRuntimeService.postContent(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-lex-runtime-service-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-lex-runtime-service-browser has been renamed to @aws-sdk/client-lex-runtime-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Lex Runtime Service","directories":{},"_nodeVersion":"10.1.0","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.9","@aws-sdk/protocol-rest":"^0.1.0-preview.9","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.8","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.7","@aws-sdk/signing-middleware":"^0.1.0-preview.9","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.8","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-lex-runtime-service-browser_0.1.0-preview.5_1572463072924_0.14805934601683246","host":"s3://npm-registry-packages"}},"0.1.0-preview.6":{"name":"@aws-sdk/client-lex-runtime-service-browser","version":"0.1.0-preview.6","author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","_id":"@aws-sdk/client-lex-runtime-service-browser@0.1.0-preview.6","maintainers":[{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"}],"dist":{"shasum":"05022b5c3f32dfe002fae3d4fe35c779ce2793c8","tarball":"https://registry.npmjs.org/@aws-sdk/client-lex-runtime-service-browser/-/client-lex-runtime-service-browser-0.1.0-preview.6.tgz","fileCount":161,"integrity":"sha512-NiFjXEaOu6HA36c9CZNtliy+ua61x/D/LVHsH/LIYEomdc8vYvdS4EnagEE2sMxirc7hZW+oXfhEXHnWUY4iTg==","signatures":[{"sig":"MEUCIChsatfDiI4nCztTsI2LW8BGv5EUFzB9v0r47n0FfO1MAiEA4PCRdlhTPHQyfarl0Tu6aH91N4qK5A/lKprQ+DgLSpU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":132053,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd1FNiCRA9TVsSAnZWagAAGNwP/3DIfyrrnffuaXP0pnK3\nplhkLF/YuP3uoD1M3HnkCmfznmM0RIPMHCTLPtPCprxINesTYX1PNy7O0okD\nGLNsD9N3t6aV/eAUMGeeKv3JAkgl6rsGiuYnlEYdVRC15emTjf1Br0YuwM/q\nc2uVblkvhbLT6T/wXvKvQLFpOS6JG+bGaA8Y0u/7OObd4WUYVukDWPAvra51\nyRc8COtKjOaUtJdT4vx8k7jX+Qg+s6osyjms5XvnT/OWEhMQuB9Wtolrz5Nd\n6y1Iss+EODnfhgCtY/ahHaOdTpSBLSZKOdGRFopa4CMACqqY/yNtTH4ERFUP\nqwpnSzcGk6N+9/naWNrp8cllJl4jW3xd7BBbGrMzar1LJcyyx9//VqR/p7TF\nkXhS+Mb+Jmq9MuhslksVwljUf/+jHb6fMxAE0ZZGItXf03/w00vOE5j8ky9Z\naF23cTxZUqfJ0jSzOd7L49rqpk4r2Wyb9Ss6GUGECmDn/tOsvqxjXfAy6PkO\nqQ8+R7nYEkYoOk/NZ0sopYFwpZMEm6JIi27Up96FOdpl+Z//c/K4c3jYOWAl\nR2Sg91mlATI+VhebaKa6V8zafDTGFpcgUabd4eGoBk8SNNOSZZwp2TsI582w\nHeE7ILkeZDu10G5GflMMKODc1Rnavd8wzJ0/j/hhgs7N7s3hlmpAIotqD27O\noWu0\r\n=CUje\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./index.js","types":"./index.d.ts","readme":"# @aws-sdk/client-lex-runtime-service-browser\n\n[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-lex-runtime-service-browser/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-lex-runtime-service-browser.svg)](https://www.npmjs.com/package/@aws-sdk/client-lex-runtime-service-browser)\n\n## Description\n\n<p>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, . </p>\n\n## Installing\n\nTo install the this package using NPM, simply type the following into a terminal window:\n\n```\nnpm install @aws-sdk/client-lex-runtime-service-browser\n```\n\n## Getting Started\n\n### Import\n\nThe AWS SDK is modulized by clients and commands in CommonJS modules. To send a request, you only need to import the client(`LexRuntimeServiceClient`) and the commands you need, for example `PostContentCommand`:\n\n```javascript\n//JavaScript\nconst {\n  LexRuntimeServiceClient,\n  PostContentCommand\n} = require(\"@aws-sdk/client-lex-runtime-service-browser\");\n```\n\n```javascript\n//TypeScript\nimport {\n  LexRuntimeServiceClient,\n  PostContentCommand\n} from \"@aws-sdk/client-lex-runtime-service-browser\";\n```\n\n### Usage\n\nTo send a request, you:\n\n- Initiate client with configuration (e.g. credentials, region). For more information you can refer to the [API reference][].\n- Initiate command with input parameters.\n- Call `send` operation on client with command object as input.\n- If you are using a custom http handler, you may call `destroy()` to close open connections.\n\n```javascript\nconst lexRuntimeService = new LexRuntimeServiceClient({region: 'region'});\n//clients can be shared by different commands\nconst params = {\n  botName: /**a string value*/,\n  botAlias: /**a string value*/,\n  userId: /**a string value*/,\n  contentType: /**a string value*/,\n  inputStream: /**a blob value*/\n  /**You can supply readable stream to streaming input. e.g. (await fetch(input)).body */,\n};\nconst postContentCommand = new PostContentCommand(params);\nlexRuntimeService.send(postContentCommand).then(data => {\n    // do something\n}).catch(error => {\n    // error handling\n})\n```\n\nIn addition to using promises, there are 2 other ways to send a request:\n\n```javascript\n// async/await\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  // error handling\n}\n```\n\n```javascript\n// callback\nlexRuntimeService.send(postContentCommand, (err, data) => {\n  //do something\n});\n```\n\nThe SDK can also send requests using the simplified callback style from version 2 of the SDK.\n\n```javascript\nimport * as AWS from \"@aws-sdk/client-lex-runtime-service-browser\";\nconst lexRuntimeService = new AWS.LexRuntimeService({ region: \"region\" });\nlexRuntimeService.postContent(params, (err, data) => {\n  //do something\n});\n```\n\n### Troubleshooting\n\nWhen the service returns an exception, the error will include the exception information, as well as response metadata (e.g. request id).\n\n```javascript\ntry {\n  const data = await lexRuntimeService.send(postContentCommand);\n  // do something\n} catch (error) {\n  const metadata = error.$metadata;\n  console.log(\n    `requestId: ${metadata.requestId}\ncfId: ${metadata.cfId}\nextendedRequestId: ${metadata.extendedRequestId}`\n  );\n  /*\nThe keys within exceptions are also parsed. You can access them by specifying exception names:\n    if(error.name === 'SomeServiceException') {\n        const value = error.specialKeyInException;\n    }\n*/\n}\n```\n\n## Getting Help\n\nPlease use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.\n\n- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`\n- Come join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3)\n- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues)\n\n## Contributing\n\nThis client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/@aws-sdk/client-lex-runtime-service-browser' package is updated. To contribute to SDK you can checkout our [code generator package][].\n\n## License\n\nThis SDK is distributed under the\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),\nsee LICENSE for more information.\n\n[code generator package]: https://github.com/aws/aws-sdk-js-v3/tree/master/packages/service-types-generator\n[api reference]: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/\n","scripts":{"test":"exit 0","clean":"npm run remove-definitions && npm run remove-maps && npm run remove-js","pretest":"tsc","remove-js":"rimraf *.js && rimraf ./commands/*.js && rimraf ./model/*.js && rimraf ./types/*.js","smoke-test":"karma start karma.conf","remove-maps":"rimraf *.js.map && rimraf ./commands/*.js.map && rimraf ./model/*.js.map && rimraf ./types/*.js.map","prepublishOnly":"tsc","remove-definitions":"rimraf *.d.ts && rimraf ./commands/*.d.ts && rimraf ./model/*.d.ts rimraf ./types/*.d.ts","build-documentation":"npm run clean && typedoc ./","remove-documentation":"rimraf ./docs"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},"deprecated":"The package @aws-sdk/client-lex-runtime-service-browser has been renamed to @aws-sdk/client-lex-runtime-service. Please install the renamed package.","_npmVersion":"6.9.0","description":"Browser SDK for Amazon Lex Runtime Service","directories":{},"_nodeVersion":"10.16.3","dependencies":{"tslib":"^1.8.0","@aws-sdk/types":"^0.1.0-preview.7","@aws-sdk/json-parser":"^0.1.0-preview.7","@aws-sdk/core-handler":"^0.1.0-preview.7","@aws-sdk/json-builder":"^0.1.0-preview.7","@aws-sdk/signature-v4":"^0.1.0-preview.10","@aws-sdk/protocol-rest":"^0.1.0-preview.10","@aws-sdk/config-resolver":"^0.1.0-preview.7","@aws-sdk/middleware-stack":"^0.1.0-preview.9","@aws-sdk/retry-middleware":"^0.1.0-preview.7","@aws-crypto/sha256-browser":"^0.1.0-preview.1","@aws-sdk/util-utf8-browser":"^0.1.0-preview.3","@aws-sdk/fetch-http-handler":"^0.1.0-preview.8","@aws-sdk/signing-middleware":"^0.1.0-preview.10","@aws-sdk/url-parser-browser":"^0.1.0-preview.7","@aws-sdk/util-base64-browser":"^0.1.0-preview.3","@aws-sdk/middleware-serializer":"^0.1.0-preview.7","@aws-sdk/json-error-unmarshaller":"^0.1.0-preview.8","@aws-sdk/util-user-agent-browser":"^0.1.0-preview.9","@aws-sdk/stream-collector-browser":"^0.1.0-preview.7","@aws-sdk/util-body-length-browser":"^0.1.0-preview.3","@aws-sdk/middleware-content-length":"^0.1.0-preview.7","@aws-sdk/middleware-header-default":"^0.1.0-preview.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"rimraf":"^2.6.2","typedoc":"^0.14.2","typescript":"~3.4.0","@aws-sdk/client-documentation-generator":"^0.1.0-preview.3"},"_npmOperationalInternal":{"tmp":"tmp/client-lex-runtime-service-browser_0.1.0-preview.6_1574196066164_0.8427415414474364","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-09T17:42:00.691Z","modified":"2025-03-27T18:44:06.382Z","0.1.0-preview.2":"2019-09-09T17:42:01.046Z","0.1.0-preview.3":"2019-09-19T15:53:48.126Z","0.1.0-preview.4":"2019-10-29T23:44:50.787Z","0.1.0-preview.5":"2019-10-30T19:17:53.047Z","0.1.0-preview.6":"2019-11-19T20:41:06.358Z"},"author":{"url":"https://aws.amazon.com/javascript/","name":"AWS SDK for JavaScript Team"},"license":"Apache-2.0","description":"Browser SDK for Amazon Lex Runtime Service","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"","readmeFilename":""}