Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-lex-runtime-service

Package Overview
Dependencies
Maintainers
5
Versions
431
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-lex-runtime-service - npm Package Compare versions

Comparing version 3.504.0 to 3.507.0

189

dist-cjs/index.js

@@ -576,3 +576,3 @@ "use strict";

if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_DeleteSessionCommandError(output, context);
return de_CommandError(output, context);
}

@@ -592,36 +592,5 @@ const contents = (0, import_smithy_client.map)({

}, "de_DeleteSessionCommand");
var de_DeleteSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context)
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.lexruntimeservice#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode
});
}
}, "de_DeleteSessionCommandError");
var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_GetSessionCommandError(output, context);
return de_CommandError(output, context);
}

@@ -642,33 +611,5 @@ const contents = (0, import_smithy_client.map)({

}, "de_GetSessionCommand");
var de_GetSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context)
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode
});
}
}, "de_GetSessionCommandError");
var de_PostContentCommand = /* @__PURE__ */ __name(async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_PostContentCommandError(output, context);
return de_CommandError(output, context);
}

@@ -715,54 +656,5 @@ const contents = (0, import_smithy_client.map)({

}, "de_PostContentCommand");
var de_PostContentCommandError = /* @__PURE__ */ __name(async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context)
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.lexruntimeservice#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "LoopDetectedException":
case "com.amazonaws.lexruntimeservice#LoopDetectedException":
throw await de_LoopDetectedExceptionRes(parsedOutput, context);
case "NotAcceptableException":
case "com.amazonaws.lexruntimeservice#NotAcceptableException":
throw await de_NotAcceptableExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "RequestTimeoutException":
case "com.amazonaws.lexruntimeservice#RequestTimeoutException":
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
case "UnsupportedMediaTypeException":
case "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException":
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode
});
}
}, "de_PostContentCommandError");
var de_PostTextCommand = /* @__PURE__ */ __name(async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_PostTextCommandError(output, context);
return de_CommandError(output, context);
}

@@ -792,45 +684,5 @@ const contents = (0, import_smithy_client.map)({

}, "de_PostTextCommand");
var de_PostTextCommandError = /* @__PURE__ */ __name(async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context)
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.lexruntimeservice#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "LoopDetectedException":
case "com.amazonaws.lexruntimeservice#LoopDetectedException":
throw await de_LoopDetectedExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode
});
}
}, "de_PostTextCommandError");
var de_PutSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_PutSessionCommandError(output, context);
return de_CommandError(output, context);
}

@@ -865,3 +717,3 @@ const contents = (0, import_smithy_client.map)({

}, "de_PutSessionCommand");
var de_PutSessionCommandError = /* @__PURE__ */ __name(async (output, context) => {
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
const parsedOutput = {

@@ -873,5 +725,2 @@ ...output,

switch (errorCode) {
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "BadRequestException":

@@ -883,5 +732,2 @@ case "com.amazonaws.lexruntimeservice#BadRequestException":

throw await de_ConflictExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "InternalFailureException":

@@ -893,8 +739,23 @@ case "com.amazonaws.lexruntimeservice#InternalFailureException":

throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "LoopDetectedException":
case "com.amazonaws.lexruntimeservice#LoopDetectedException":
throw await de_LoopDetectedExceptionRes(parsedOutput, context);
case "NotAcceptableException":
case "com.amazonaws.lexruntimeservice#NotAcceptableException":
throw await de_NotAcceptableExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "RequestTimeoutException":
case "com.amazonaws.lexruntimeservice#RequestTimeoutException":
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
case "UnsupportedMediaTypeException":
case "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException":
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
default:

@@ -908,3 +769,3 @@ const parsedBody = parsedOutput.body;

}
}, "de_PutSessionCommandError");
}, "de_CommandError");
var throwDefaultError = (0, import_smithy_client.withBaseException)(LexRuntimeServiceServiceException);

@@ -911,0 +772,0 @@ var de_BadGatewayExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {

@@ -101,3 +101,3 @@ import { requestBuilder as rb } from "@smithy/core";

if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_DeleteSessionCommandError(output, context);
return de_CommandError(output, context);
}

@@ -117,36 +117,5 @@ const contents = map({

};
const de_DeleteSessionCommandError = async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context),
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.lexruntimeservice#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode,
});
}
};
export const de_GetSessionCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_GetSessionCommandError(output, context);
return de_CommandError(output, context);
}

@@ -167,33 +136,5 @@ const contents = map({

};
const de_GetSessionCommandError = async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context),
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode,
});
}
};
export const de_PostContentCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_PostContentCommandError(output, context);
return de_CommandError(output, context);
}

@@ -240,54 +181,5 @@ const contents = map({

};
const de_PostContentCommandError = async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context),
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.lexruntimeservice#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "LoopDetectedException":
case "com.amazonaws.lexruntimeservice#LoopDetectedException":
throw await de_LoopDetectedExceptionRes(parsedOutput, context);
case "NotAcceptableException":
case "com.amazonaws.lexruntimeservice#NotAcceptableException":
throw await de_NotAcceptableExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "RequestTimeoutException":
case "com.amazonaws.lexruntimeservice#RequestTimeoutException":
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
case "UnsupportedMediaTypeException":
case "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException":
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode,
});
}
};
export const de_PostTextCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_PostTextCommandError(output, context);
return de_CommandError(output, context);
}

@@ -317,45 +209,5 @@ const contents = map({

};
const de_PostTextCommandError = async (output, context) => {
const parsedOutput = {
...output,
body: await parseErrorBody(output.body, context),
};
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
switch (errorCode) {
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "BadRequestException":
case "com.amazonaws.lexruntimeservice#BadRequestException":
throw await de_BadRequestExceptionRes(parsedOutput, context);
case "ConflictException":
case "com.amazonaws.lexruntimeservice#ConflictException":
throw await de_ConflictExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "InternalFailureException":
case "com.amazonaws.lexruntimeservice#InternalFailureException":
throw await de_InternalFailureExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.lexruntimeservice#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "LoopDetectedException":
case "com.amazonaws.lexruntimeservice#LoopDetectedException":
throw await de_LoopDetectedExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
output,
parsedBody,
errorCode,
});
}
};
export const de_PutSessionCommand = async (output, context) => {
if (output.statusCode !== 200 && output.statusCode >= 300) {
return de_PutSessionCommandError(output, context);
return de_CommandError(output, context);
}

@@ -390,3 +242,3 @@ const contents = map({

};
const de_PutSessionCommandError = async (output, context) => {
const de_CommandError = async (output, context) => {
const parsedOutput = {

@@ -398,5 +250,2 @@ ...output,

switch (errorCode) {
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "BadRequestException":

@@ -408,5 +257,2 @@ case "com.amazonaws.lexruntimeservice#BadRequestException":

throw await de_ConflictExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "InternalFailureException":

@@ -418,8 +264,23 @@ case "com.amazonaws.lexruntimeservice#InternalFailureException":

throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "BadGatewayException":
case "com.amazonaws.lexruntimeservice#BadGatewayException":
throw await de_BadGatewayExceptionRes(parsedOutput, context);
case "DependencyFailedException":
case "com.amazonaws.lexruntimeservice#DependencyFailedException":
throw await de_DependencyFailedExceptionRes(parsedOutput, context);
case "LoopDetectedException":
case "com.amazonaws.lexruntimeservice#LoopDetectedException":
throw await de_LoopDetectedExceptionRes(parsedOutput, context);
case "NotAcceptableException":
case "com.amazonaws.lexruntimeservice#NotAcceptableException":
throw await de_NotAcceptableExceptionRes(parsedOutput, context);
case "NotFoundException":
case "com.amazonaws.lexruntimeservice#NotFoundException":
throw await de_NotFoundExceptionRes(parsedOutput, context);
case "RequestTimeoutException":
case "com.amazonaws.lexruntimeservice#RequestTimeoutException":
throw await de_RequestTimeoutExceptionRes(parsedOutput, context);
case "UnsupportedMediaTypeException":
case "com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException":
throw await de_UnsupportedMediaTypeExceptionRes(parsedOutput, context);
default:

@@ -426,0 +287,0 @@ const parsedBody = parsedOutput.body;

6

package.json
{
"name": "@aws-sdk/client-lex-runtime-service",
"description": "AWS SDK for JavaScript Lex Runtime Service Client for Node.js, Browser and React Native",
"version": "3.504.0",
"version": "3.507.0",
"scripts": {

@@ -25,5 +25,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",

"@aws-crypto/sha256-js": "3.0.0",
"@aws-sdk/client-sts": "3.504.0",
"@aws-sdk/client-sts": "3.507.0",
"@aws-sdk/core": "3.496.0",
"@aws-sdk/credential-provider-node": "3.504.0",
"@aws-sdk/credential-provider-node": "3.507.0",
"@aws-sdk/middleware-host-header": "3.502.0",

@@ -30,0 +30,0 @@ "@aws-sdk/middleware-logger": "3.502.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc