Socket
Socket
Sign inDemoInstall

@aws-sdk/client-connect-contact-lens

Package Overview
Dependencies
Maintainers
7
Versions
345
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-connect-contact-lens - npm Package Compare versions

Comparing version 3.19.0 to 3.20.0

dist/types/ts3.4/commands/ListRealtimeContactAnalysisSegmentsCommand.d.ts

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [3.20.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.19.0...v3.20.0) (2021-07-02)
### Bug Fixes
* replace prepublishOnly script with downlevel-dts ([#2537](https://github.com/aws/aws-sdk-js-v3/issues/2537)) ([63818a1](https://github.com/aws/aws-sdk-js-v3/commit/63818a1e47b08af56f092031a01bbbff0a9af590))
# [3.19.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.18.0...v3.19.0) (2021-06-24)

@@ -8,0 +19,0 @@

64

dist/cjs/package.json
{
"name": "@aws-sdk/client-connect-contact-lens",
"description": "AWS SDK for JavaScript Connect Contact Lens Client for Node.js, Browser and React Native",
"version": "3.19.0",
"version": "3.20.0",
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",

@@ -15,3 +14,4 @@ "remove-dist": "rimraf ./dist",

"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},

@@ -31,34 +31,34 @@ "main": "./dist/cjs/index.js",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.19.0",
"@aws-sdk/config-resolver": "3.19.0",
"@aws-sdk/credential-provider-node": "3.19.0",
"@aws-sdk/fetch-http-handler": "3.18.0",
"@aws-sdk/hash-node": "3.18.0",
"@aws-sdk/invalid-dependency": "3.18.0",
"@aws-sdk/middleware-content-length": "3.18.0",
"@aws-sdk/middleware-host-header": "3.18.0",
"@aws-sdk/middleware-logger": "3.18.0",
"@aws-sdk/middleware-retry": "3.19.0",
"@aws-sdk/middleware-serde": "3.18.0",
"@aws-sdk/middleware-signing": "3.19.0",
"@aws-sdk/middleware-stack": "3.18.0",
"@aws-sdk/middleware-user-agent": "3.18.0",
"@aws-sdk/node-config-provider": "3.19.0",
"@aws-sdk/node-http-handler": "3.18.0",
"@aws-sdk/protocol-http": "3.18.0",
"@aws-sdk/smithy-client": "3.19.0",
"@aws-sdk/types": "3.18.0",
"@aws-sdk/url-parser": "3.18.0",
"@aws-sdk/util-base64-browser": "3.18.0",
"@aws-sdk/util-base64-node": "3.18.0",
"@aws-sdk/util-body-length-browser": "3.18.0",
"@aws-sdk/util-body-length-node": "3.18.0",
"@aws-sdk/util-user-agent-browser": "3.18.0",
"@aws-sdk/util-user-agent-node": "3.19.0",
"@aws-sdk/util-utf8-browser": "3.18.0",
"@aws-sdk/util-utf8-node": "3.18.0",
"@aws-sdk/client-sts": "3.20.0",
"@aws-sdk/config-resolver": "3.20.0",
"@aws-sdk/credential-provider-node": "3.20.0",
"@aws-sdk/fetch-http-handler": "3.20.0",
"@aws-sdk/hash-node": "3.20.0",
"@aws-sdk/invalid-dependency": "3.20.0",
"@aws-sdk/middleware-content-length": "3.20.0",
"@aws-sdk/middleware-host-header": "3.20.0",
"@aws-sdk/middleware-logger": "3.20.0",
"@aws-sdk/middleware-retry": "3.20.0",
"@aws-sdk/middleware-serde": "3.20.0",
"@aws-sdk/middleware-signing": "3.20.0",
"@aws-sdk/middleware-stack": "3.20.0",
"@aws-sdk/middleware-user-agent": "3.20.0",
"@aws-sdk/node-config-provider": "3.20.0",
"@aws-sdk/node-http-handler": "3.20.0",
"@aws-sdk/protocol-http": "3.20.0",
"@aws-sdk/smithy-client": "3.20.0",
"@aws-sdk/types": "3.20.0",
"@aws-sdk/url-parser": "3.20.0",
"@aws-sdk/util-base64-browser": "3.20.0",
"@aws-sdk/util-base64-node": "3.20.0",
"@aws-sdk/util-body-length-browser": "3.20.0",
"@aws-sdk/util-body-length-node": "3.20.0",
"@aws-sdk/util-user-agent-browser": "3.20.0",
"@aws-sdk/util-user-agent-node": "3.20.0",
"@aws-sdk/util-utf8-browser": "3.20.0",
"@aws-sdk/util-utf8-node": "3.20.0",
"tslib": "^2.0.0"
},
"devDependencies": {
"@aws-sdk/client-documentation-generator": "3.18.0",
"@aws-sdk/client-documentation-generator": "3.20.0",
"@types/node": "^12.7.5",

@@ -65,0 +65,0 @@ "downlevel-dts": "0.7.0",

@@ -5,7 +5,10 @@ "use strict";

const protocol_http_1 = require("@aws-sdk/protocol-http");
const smithy_client_1 = require("@aws-sdk/smithy-client");
const serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async (input, context) => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers = {
"content-type": "application/json",
};
let resolvedPath = "/realtime-contact-analysis/analysis-segments";
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` +
"/realtime-contact-analysis/analysis-segments";
let body;

@@ -18,3 +21,2 @@ body = JSON.stringify({

});
const { hostname, protocol = "https", port } = await context.endpoint();
return new protocol_http_1.HttpRequest({

@@ -42,3 +44,3 @@ protocol,

if (data.NextToken !== undefined && data.NextToken !== null) {
contents.NextToken = data.NextToken;
contents.NextToken = smithy_client_1.expectString(data.NextToken);
}

@@ -125,3 +127,3 @@ if (data.Segments !== undefined && data.Segments !== null) {

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = smithy_client_1.expectString(data.Message);
}

@@ -139,3 +141,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = smithy_client_1.expectString(data.Message);
}

@@ -153,3 +155,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = smithy_client_1.expectString(data.Message);
}

@@ -167,3 +169,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = smithy_client_1.expectString(data.Message);
}

@@ -181,3 +183,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = smithy_client_1.expectString(data.Message);
}

@@ -205,4 +207,4 @@ return contents;

return {
BeginOffsetChar: output.BeginOffsetChar !== undefined && output.BeginOffsetChar !== null ? output.BeginOffsetChar : undefined,
EndOffsetChar: output.EndOffsetChar !== undefined && output.EndOffsetChar !== null ? output.EndOffsetChar : undefined,
BeginOffsetChar: smithy_client_1.expectNumber(output.BeginOffsetChar),
EndOffsetChar: smithy_client_1.expectNumber(output.EndOffsetChar),
};

@@ -234,3 +236,3 @@ };

}
return entry;
return smithy_client_1.expectString(entry);
});

@@ -251,6 +253,4 @@ };

return {
BeginOffsetMillis: output.BeginOffsetMillis !== undefined && output.BeginOffsetMillis !== null
? output.BeginOffsetMillis
: undefined,
EndOffsetMillis: output.EndOffsetMillis !== undefined && output.EndOffsetMillis !== null ? output.EndOffsetMillis : undefined,
BeginOffsetMillis: smithy_client_1.expectNumber(output.BeginOffsetMillis),
EndOffsetMillis: smithy_client_1.expectNumber(output.EndOffsetMillis),
};

@@ -290,14 +290,12 @@ };

return {
BeginOffsetMillis: output.BeginOffsetMillis !== undefined && output.BeginOffsetMillis !== null
? output.BeginOffsetMillis
: undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,
EndOffsetMillis: output.EndOffsetMillis !== undefined && output.EndOffsetMillis !== null ? output.EndOffsetMillis : undefined,
Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
BeginOffsetMillis: smithy_client_1.expectNumber(output.BeginOffsetMillis),
Content: smithy_client_1.expectString(output.Content),
EndOffsetMillis: smithy_client_1.expectNumber(output.EndOffsetMillis),
Id: smithy_client_1.expectString(output.Id),
IssuesDetected: output.IssuesDetected !== undefined && output.IssuesDetected !== null
? deserializeAws_restJson1IssuesDetected(output.IssuesDetected, context)
: undefined,
ParticipantId: output.ParticipantId !== undefined && output.ParticipantId !== null ? output.ParticipantId : undefined,
ParticipantRole: output.ParticipantRole !== undefined && output.ParticipantRole !== null ? output.ParticipantRole : undefined,
Sentiment: output.Sentiment !== undefined && output.Sentiment !== null ? output.Sentiment : undefined,
ParticipantId: smithy_client_1.expectString(output.ParticipantId),
ParticipantRole: smithy_client_1.expectString(output.ParticipantRole),
Sentiment: smithy_client_1.expectString(output.Sentiment),
};

@@ -304,0 +302,0 @@ };

{
"name": "@aws-sdk/client-connect-contact-lens",
"description": "AWS SDK for JavaScript Connect Contact Lens Client for Node.js, Browser and React Native",
"version": "3.19.0",
"version": "3.20.0",
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",

@@ -15,3 +14,4 @@ "remove-dist": "rimraf ./dist",

"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},

@@ -31,34 +31,34 @@ "main": "./dist/cjs/index.js",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.19.0",
"@aws-sdk/config-resolver": "3.19.0",
"@aws-sdk/credential-provider-node": "3.19.0",
"@aws-sdk/fetch-http-handler": "3.18.0",
"@aws-sdk/hash-node": "3.18.0",
"@aws-sdk/invalid-dependency": "3.18.0",
"@aws-sdk/middleware-content-length": "3.18.0",
"@aws-sdk/middleware-host-header": "3.18.0",
"@aws-sdk/middleware-logger": "3.18.0",
"@aws-sdk/middleware-retry": "3.19.0",
"@aws-sdk/middleware-serde": "3.18.0",
"@aws-sdk/middleware-signing": "3.19.0",
"@aws-sdk/middleware-stack": "3.18.0",
"@aws-sdk/middleware-user-agent": "3.18.0",
"@aws-sdk/node-config-provider": "3.19.0",
"@aws-sdk/node-http-handler": "3.18.0",
"@aws-sdk/protocol-http": "3.18.0",
"@aws-sdk/smithy-client": "3.19.0",
"@aws-sdk/types": "3.18.0",
"@aws-sdk/url-parser": "3.18.0",
"@aws-sdk/util-base64-browser": "3.18.0",
"@aws-sdk/util-base64-node": "3.18.0",
"@aws-sdk/util-body-length-browser": "3.18.0",
"@aws-sdk/util-body-length-node": "3.18.0",
"@aws-sdk/util-user-agent-browser": "3.18.0",
"@aws-sdk/util-user-agent-node": "3.19.0",
"@aws-sdk/util-utf8-browser": "3.18.0",
"@aws-sdk/util-utf8-node": "3.18.0",
"@aws-sdk/client-sts": "3.20.0",
"@aws-sdk/config-resolver": "3.20.0",
"@aws-sdk/credential-provider-node": "3.20.0",
"@aws-sdk/fetch-http-handler": "3.20.0",
"@aws-sdk/hash-node": "3.20.0",
"@aws-sdk/invalid-dependency": "3.20.0",
"@aws-sdk/middleware-content-length": "3.20.0",
"@aws-sdk/middleware-host-header": "3.20.0",
"@aws-sdk/middleware-logger": "3.20.0",
"@aws-sdk/middleware-retry": "3.20.0",
"@aws-sdk/middleware-serde": "3.20.0",
"@aws-sdk/middleware-signing": "3.20.0",
"@aws-sdk/middleware-stack": "3.20.0",
"@aws-sdk/middleware-user-agent": "3.20.0",
"@aws-sdk/node-config-provider": "3.20.0",
"@aws-sdk/node-http-handler": "3.20.0",
"@aws-sdk/protocol-http": "3.20.0",
"@aws-sdk/smithy-client": "3.20.0",
"@aws-sdk/types": "3.20.0",
"@aws-sdk/url-parser": "3.20.0",
"@aws-sdk/util-base64-browser": "3.20.0",
"@aws-sdk/util-base64-node": "3.20.0",
"@aws-sdk/util-body-length-browser": "3.20.0",
"@aws-sdk/util-body-length-node": "3.20.0",
"@aws-sdk/util-user-agent-browser": "3.20.0",
"@aws-sdk/util-user-agent-node": "3.20.0",
"@aws-sdk/util-utf8-browser": "3.20.0",
"@aws-sdk/util-utf8-node": "3.20.0",
"tslib": "^2.0.0"
},
"devDependencies": {
"@aws-sdk/client-documentation-generator": "3.18.0",
"@aws-sdk/client-documentation-generator": "3.20.0",
"@types/node": "^12.7.5",

@@ -65,0 +65,0 @@ "downlevel-dts": "0.7.0",

import { __assign, __awaiter, __generator, __read } from "tslib";
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
import { expectNumber as __expectNumber, expectString as __expectString, } from "@aws-sdk/smithy-client";
export var serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
var headers, resolvedPath, body, _a, hostname, _b, protocol, port;
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:
case 0: return [4 /*yield*/, context.endpoint()];
case 1:
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
headers = {
"content-type": "application/json",
};
resolvedPath = "/realtime-contact-analysis/analysis-segments";
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
"/realtime-contact-analysis/analysis-segments";
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.ContactId !== undefined && input.ContactId !== null && { ContactId: input.ContactId })), (input.InstanceId !== undefined && input.InstanceId !== null && { InstanceId: input.InstanceId })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
return [4 /*yield*/, context.endpoint()];
case 1:
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port;
return [2 /*return*/, new __HttpRequest({

@@ -45,3 +46,3 @@ protocol: protocol,

if (data.NextToken !== undefined && data.NextToken !== null) {
contents.NextToken = data.NextToken;
contents.NextToken = __expectString(data.NextToken);
}

@@ -136,3 +137,3 @@ if (data.Segments !== undefined && data.Segments !== null) {

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -153,3 +154,3 @@ return [2 /*return*/, contents];

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -170,3 +171,3 @@ return [2 /*return*/, contents];

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -187,3 +188,3 @@ return [2 /*return*/, contents];

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -204,3 +205,3 @@ return [2 /*return*/, contents];

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -229,4 +230,4 @@ return [2 /*return*/, contents];

return {
BeginOffsetChar: output.BeginOffsetChar !== undefined && output.BeginOffsetChar !== null ? output.BeginOffsetChar : undefined,
EndOffsetChar: output.EndOffsetChar !== undefined && output.EndOffsetChar !== null ? output.EndOffsetChar : undefined,
BeginOffsetChar: __expectNumber(output.BeginOffsetChar),
EndOffsetChar: __expectNumber(output.EndOffsetChar),
};

@@ -258,3 +259,3 @@ };

}
return entry;
return __expectString(entry);
});

@@ -274,6 +275,4 @@ };

return {
BeginOffsetMillis: output.BeginOffsetMillis !== undefined && output.BeginOffsetMillis !== null
? output.BeginOffsetMillis
: undefined,
EndOffsetMillis: output.EndOffsetMillis !== undefined && output.EndOffsetMillis !== null ? output.EndOffsetMillis : undefined,
BeginOffsetMillis: __expectNumber(output.BeginOffsetMillis),
EndOffsetMillis: __expectNumber(output.EndOffsetMillis),
};

@@ -313,14 +312,12 @@ };

return {
BeginOffsetMillis: output.BeginOffsetMillis !== undefined && output.BeginOffsetMillis !== null
? output.BeginOffsetMillis
: undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,
EndOffsetMillis: output.EndOffsetMillis !== undefined && output.EndOffsetMillis !== null ? output.EndOffsetMillis : undefined,
Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
BeginOffsetMillis: __expectNumber(output.BeginOffsetMillis),
Content: __expectString(output.Content),
EndOffsetMillis: __expectNumber(output.EndOffsetMillis),
Id: __expectString(output.Id),
IssuesDetected: output.IssuesDetected !== undefined && output.IssuesDetected !== null
? deserializeAws_restJson1IssuesDetected(output.IssuesDetected, context)
: undefined,
ParticipantId: output.ParticipantId !== undefined && output.ParticipantId !== null ? output.ParticipantId : undefined,
ParticipantRole: output.ParticipantRole !== undefined && output.ParticipantRole !== null ? output.ParticipantRole : undefined,
Sentiment: output.Sentiment !== undefined && output.Sentiment !== null ? output.Sentiment : undefined,
ParticipantId: __expectString(output.ParticipantId),
ParticipantRole: __expectString(output.ParticipantRole),
Sentiment: __expectString(output.Sentiment),
};

@@ -327,0 +324,0 @@ };

{
"name": "@aws-sdk/client-connect-contact-lens",
"description": "AWS SDK for JavaScript Connect Contact Lens Client for Node.js, Browser and React Native",
"version": "3.19.0",
"version": "3.20.0",
"scripts": {
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
"build-documentation": "yarn remove-documentation && typedoc ./",
"prepublishOnly": "yarn build && downlevel-dts dist/types dist/types/ts3.4",
"remove-definitions": "rimraf ./types",

@@ -15,3 +14,4 @@ "remove-dist": "rimraf ./dist",

"build:es": "tsc -p tsconfig.es.json",
"build": "yarn build:cjs && yarn build:es"
"build": "yarn build:cjs && yarn build:es",
"downlevel-dts": "downlevel-dts dist/types dist/types/ts3.4"
},

@@ -31,34 +31,34 @@ "main": "./dist/cjs/index.js",

"@aws-crypto/sha256-js": "^1.0.0",
"@aws-sdk/client-sts": "3.19.0",
"@aws-sdk/config-resolver": "3.19.0",
"@aws-sdk/credential-provider-node": "3.19.0",
"@aws-sdk/fetch-http-handler": "3.18.0",
"@aws-sdk/hash-node": "3.18.0",
"@aws-sdk/invalid-dependency": "3.18.0",
"@aws-sdk/middleware-content-length": "3.18.0",
"@aws-sdk/middleware-host-header": "3.18.0",
"@aws-sdk/middleware-logger": "3.18.0",
"@aws-sdk/middleware-retry": "3.19.0",
"@aws-sdk/middleware-serde": "3.18.0",
"@aws-sdk/middleware-signing": "3.19.0",
"@aws-sdk/middleware-stack": "3.18.0",
"@aws-sdk/middleware-user-agent": "3.18.0",
"@aws-sdk/node-config-provider": "3.19.0",
"@aws-sdk/node-http-handler": "3.18.0",
"@aws-sdk/protocol-http": "3.18.0",
"@aws-sdk/smithy-client": "3.19.0",
"@aws-sdk/types": "3.18.0",
"@aws-sdk/url-parser": "3.18.0",
"@aws-sdk/util-base64-browser": "3.18.0",
"@aws-sdk/util-base64-node": "3.18.0",
"@aws-sdk/util-body-length-browser": "3.18.0",
"@aws-sdk/util-body-length-node": "3.18.0",
"@aws-sdk/util-user-agent-browser": "3.18.0",
"@aws-sdk/util-user-agent-node": "3.19.0",
"@aws-sdk/util-utf8-browser": "3.18.0",
"@aws-sdk/util-utf8-node": "3.18.0",
"@aws-sdk/client-sts": "3.20.0",
"@aws-sdk/config-resolver": "3.20.0",
"@aws-sdk/credential-provider-node": "3.20.0",
"@aws-sdk/fetch-http-handler": "3.20.0",
"@aws-sdk/hash-node": "3.20.0",
"@aws-sdk/invalid-dependency": "3.20.0",
"@aws-sdk/middleware-content-length": "3.20.0",
"@aws-sdk/middleware-host-header": "3.20.0",
"@aws-sdk/middleware-logger": "3.20.0",
"@aws-sdk/middleware-retry": "3.20.0",
"@aws-sdk/middleware-serde": "3.20.0",
"@aws-sdk/middleware-signing": "3.20.0",
"@aws-sdk/middleware-stack": "3.20.0",
"@aws-sdk/middleware-user-agent": "3.20.0",
"@aws-sdk/node-config-provider": "3.20.0",
"@aws-sdk/node-http-handler": "3.20.0",
"@aws-sdk/protocol-http": "3.20.0",
"@aws-sdk/smithy-client": "3.20.0",
"@aws-sdk/types": "3.20.0",
"@aws-sdk/url-parser": "3.20.0",
"@aws-sdk/util-base64-browser": "3.20.0",
"@aws-sdk/util-base64-node": "3.20.0",
"@aws-sdk/util-body-length-browser": "3.20.0",
"@aws-sdk/util-body-length-node": "3.20.0",
"@aws-sdk/util-user-agent-browser": "3.20.0",
"@aws-sdk/util-user-agent-node": "3.20.0",
"@aws-sdk/util-utf8-browser": "3.20.0",
"@aws-sdk/util-utf8-node": "3.20.0",
"tslib": "^2.0.0"
},
"devDependencies": {
"@aws-sdk/client-documentation-generator": "3.18.0",
"@aws-sdk/client-documentation-generator": "3.20.0",
"@types/node": "^12.7.5",

@@ -65,0 +65,0 @@ "downlevel-dts": "0.7.0",

@@ -20,4 +20,8 @@ import {

import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { SmithyException as __SmithyException } from "@aws-sdk/smithy-client";
import {
SmithyException as __SmithyException,
expectNumber as __expectNumber,
expectString as __expectString,
} from "@aws-sdk/smithy-client";
import {
Endpoint as __Endpoint,

@@ -33,6 +37,9 @@ MetadataBearer as __MetadataBearer,

): Promise<__HttpRequest> => {
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
const headers: any = {
"content-type": "application/json",
};
let resolvedPath = "/realtime-contact-analysis/analysis-segments";
let resolvedPath =
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
"/realtime-contact-analysis/analysis-segments";
let body: any;

@@ -45,3 +52,2 @@ body = JSON.stringify({

});
const { hostname, protocol = "https", port } = await context.endpoint();
return new __HttpRequest({

@@ -72,3 +78,3 @@ protocol,

if (data.NextToken !== undefined && data.NextToken !== null) {
contents.NextToken = data.NextToken;
contents.NextToken = __expectString(data.NextToken);
}

@@ -162,3 +168,3 @@ if (data.Segments !== undefined && data.Segments !== null) {

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -180,3 +186,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -198,3 +204,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -216,3 +222,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -234,3 +240,3 @@ return contents;

if (data.Message !== undefined && data.Message !== null) {
contents.Message = data.Message;
contents.Message = __expectString(data.Message);
}

@@ -264,6 +270,4 @@ return contents;

return {
BeginOffsetChar:
output.BeginOffsetChar !== undefined && output.BeginOffsetChar !== null ? output.BeginOffsetChar : undefined,
EndOffsetChar:
output.EndOffsetChar !== undefined && output.EndOffsetChar !== null ? output.EndOffsetChar : undefined,
BeginOffsetChar: __expectNumber(output.BeginOffsetChar),
EndOffsetChar: __expectNumber(output.EndOffsetChar),
} as any;

@@ -299,3 +303,3 @@ };

}
return entry;
return __expectString(entry) as any;
});

@@ -321,8 +325,4 @@ };

return {
BeginOffsetMillis:
output.BeginOffsetMillis !== undefined && output.BeginOffsetMillis !== null
? output.BeginOffsetMillis
: undefined,
EndOffsetMillis:
output.EndOffsetMillis !== undefined && output.EndOffsetMillis !== null ? output.EndOffsetMillis : undefined,
BeginOffsetMillis: __expectNumber(output.BeginOffsetMillis),
EndOffsetMillis: __expectNumber(output.EndOffsetMillis),
} as any;

@@ -374,10 +374,6 @@ };

return {
BeginOffsetMillis:
output.BeginOffsetMillis !== undefined && output.BeginOffsetMillis !== null
? output.BeginOffsetMillis
: undefined,
Content: output.Content !== undefined && output.Content !== null ? output.Content : undefined,
EndOffsetMillis:
output.EndOffsetMillis !== undefined && output.EndOffsetMillis !== null ? output.EndOffsetMillis : undefined,
Id: output.Id !== undefined && output.Id !== null ? output.Id : undefined,
BeginOffsetMillis: __expectNumber(output.BeginOffsetMillis),
Content: __expectString(output.Content),
EndOffsetMillis: __expectNumber(output.EndOffsetMillis),
Id: __expectString(output.Id),
IssuesDetected:

@@ -387,7 +383,5 @@ output.IssuesDetected !== undefined && output.IssuesDetected !== null

: undefined,
ParticipantId:
output.ParticipantId !== undefined && output.ParticipantId !== null ? output.ParticipantId : undefined,
ParticipantRole:
output.ParticipantRole !== undefined && output.ParticipantRole !== null ? output.ParticipantRole : undefined,
Sentiment: output.Sentiment !== undefined && output.Sentiment !== null ? output.Sentiment : undefined,
ParticipantId: __expectString(output.ParticipantId),
ParticipantRole: __expectString(output.ParticipantRole),
Sentiment: __expectString(output.Sentiment),
} as any;

@@ -394,0 +388,0 @@ };

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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