@aws-sdk/client-connect-contact-lens 3.131.0 → 3.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,39 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update client endpoints as of 2022-08-01 ([aaf49f2](https://github.com/aws/aws-sdk-js-v3/commit/aaf49f21b371412e6ea7e00890b71a7b31991b66))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
29
+
30
+
31
+ ### Features
32
+
33
+ * **namespaces:** remove namespaces with only a log filter ([#3823](https://github.com/aws/aws-sdk-js-v3/issues/3823)) ([33e6822](https://github.com/aws/aws-sdk-js-v3/commit/33e68228fb64c53dd8f89e6be76dd5f46edc3cfd))
34
+
35
+
36
+
37
+
38
+
6
39
  # [3.131.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.130.0...v3.131.0) (2022-07-15)
7
40
 
8
41
  **Note:** Version bump only for package @aws-sdk/client-connect-contact-lens
package/README.md CHANGED
@@ -177,7 +177,7 @@ try {
177
177
  const data = await client.send(command);
178
178
  // process data.
179
179
  } catch (error) {
180
- const { requestId, cfId, extendedRequestId } = error.$metadata;
180
+ const { requestId, cfId, extendedRequestId } = error.$$metadata;
181
181
  console.log({ requestId, cfId, extendedRequestId });
182
182
  /**
183
183
  * The keys within exceptions are also parsed.
@@ -20,8 +20,8 @@ class ListRealtimeContactAnalysisSegmentsCommand extends smithy_client_1.Command
20
20
  logger,
21
21
  clientName,
22
22
  commandName,
23
- inputFilterSensitiveLog: models_0_1.ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: models_0_1.ListRealtimeContactAnalysisSegmentsResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: models_0_1.ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog,
25
25
  };
26
26
  const { requestHandler } = configuration;
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThrottlingException = exports.ResourceNotFoundException = exports.ListRealtimeContactAnalysisSegmentsResponse = exports.RealtimeContactAnalysisSegment = exports.Transcript = exports.SentimentValue = exports.IssueDetected = exports.CharacterOffsets = exports.Categories = exports.CategoryDetails = exports.PointOfInterest = exports.ListRealtimeContactAnalysisSegmentsRequest = exports.InvalidRequestException = exports.InternalServiceException = exports.AccessDeniedException = void 0;
3
+ exports.ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog = exports.RealtimeContactAnalysisSegmentFilterSensitiveLog = exports.TranscriptFilterSensitiveLog = exports.IssueDetectedFilterSensitiveLog = exports.CharacterOffsetsFilterSensitiveLog = exports.CategoriesFilterSensitiveLog = exports.CategoryDetailsFilterSensitiveLog = exports.PointOfInterestFilterSensitiveLog = exports.ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog = exports.ThrottlingException = exports.ResourceNotFoundException = exports.SentimentValue = exports.InvalidRequestException = exports.InternalServiceException = exports.AccessDeniedException = void 0;
4
4
  const ConnectContactLensServiceException_1 = require("./ConnectContactLensServiceException");
5
5
  class AccessDeniedException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
6
6
  constructor(opts) {
@@ -44,66 +44,12 @@ class InvalidRequestException extends ConnectContactLensServiceException_1.Conne
44
44
  }
45
45
  }
46
46
  exports.InvalidRequestException = InvalidRequestException;
47
- var ListRealtimeContactAnalysisSegmentsRequest;
48
- (function (ListRealtimeContactAnalysisSegmentsRequest) {
49
- ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog = (obj) => ({
50
- ...obj,
51
- });
52
- })(ListRealtimeContactAnalysisSegmentsRequest = exports.ListRealtimeContactAnalysisSegmentsRequest || (exports.ListRealtimeContactAnalysisSegmentsRequest = {}));
53
- var PointOfInterest;
54
- (function (PointOfInterest) {
55
- PointOfInterest.filterSensitiveLog = (obj) => ({
56
- ...obj,
57
- });
58
- })(PointOfInterest = exports.PointOfInterest || (exports.PointOfInterest = {}));
59
- var CategoryDetails;
60
- (function (CategoryDetails) {
61
- CategoryDetails.filterSensitiveLog = (obj) => ({
62
- ...obj,
63
- });
64
- })(CategoryDetails = exports.CategoryDetails || (exports.CategoryDetails = {}));
65
- var Categories;
66
- (function (Categories) {
67
- Categories.filterSensitiveLog = (obj) => ({
68
- ...obj,
69
- });
70
- })(Categories = exports.Categories || (exports.Categories = {}));
71
- var CharacterOffsets;
72
- (function (CharacterOffsets) {
73
- CharacterOffsets.filterSensitiveLog = (obj) => ({
74
- ...obj,
75
- });
76
- })(CharacterOffsets = exports.CharacterOffsets || (exports.CharacterOffsets = {}));
77
- var IssueDetected;
78
- (function (IssueDetected) {
79
- IssueDetected.filterSensitiveLog = (obj) => ({
80
- ...obj,
81
- });
82
- })(IssueDetected = exports.IssueDetected || (exports.IssueDetected = {}));
83
47
  var SentimentValue;
84
48
  (function (SentimentValue) {
85
49
  SentimentValue["NEGATIVE"] = "NEGATIVE";
86
50
  SentimentValue["NEUTRAL"] = "NEUTRAL";
87
51
  SentimentValue["POSITIVE"] = "POSITIVE";
88
52
  })(SentimentValue = exports.SentimentValue || (exports.SentimentValue = {}));
89
- var Transcript;
90
- (function (Transcript) {
91
- Transcript.filterSensitiveLog = (obj) => ({
92
- ...obj,
93
- });
94
- })(Transcript = exports.Transcript || (exports.Transcript = {}));
95
- var RealtimeContactAnalysisSegment;
96
- (function (RealtimeContactAnalysisSegment) {
97
- RealtimeContactAnalysisSegment.filterSensitiveLog = (obj) => ({
98
- ...obj,
99
- });
100
- })(RealtimeContactAnalysisSegment = exports.RealtimeContactAnalysisSegment || (exports.RealtimeContactAnalysisSegment = {}));
101
- var ListRealtimeContactAnalysisSegmentsResponse;
102
- (function (ListRealtimeContactAnalysisSegmentsResponse) {
103
- ListRealtimeContactAnalysisSegmentsResponse.filterSensitiveLog = (obj) => ({
104
- ...obj,
105
- });
106
- })(ListRealtimeContactAnalysisSegmentsResponse = exports.ListRealtimeContactAnalysisSegmentsResponse || (exports.ListRealtimeContactAnalysisSegmentsResponse = {}));
107
53
  class ResourceNotFoundException extends ConnectContactLensServiceException_1.ConnectContactLensServiceException {
108
54
  constructor(opts) {
109
55
  super({
@@ -132,3 +78,39 @@ class ThrottlingException extends ConnectContactLensServiceException_1.ConnectCo
132
78
  }
133
79
  }
134
80
  exports.ThrottlingException = ThrottlingException;
81
+ const ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog = (obj) => ({
82
+ ...obj,
83
+ });
84
+ exports.ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog = ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog;
85
+ const PointOfInterestFilterSensitiveLog = (obj) => ({
86
+ ...obj,
87
+ });
88
+ exports.PointOfInterestFilterSensitiveLog = PointOfInterestFilterSensitiveLog;
89
+ const CategoryDetailsFilterSensitiveLog = (obj) => ({
90
+ ...obj,
91
+ });
92
+ exports.CategoryDetailsFilterSensitiveLog = CategoryDetailsFilterSensitiveLog;
93
+ const CategoriesFilterSensitiveLog = (obj) => ({
94
+ ...obj,
95
+ });
96
+ exports.CategoriesFilterSensitiveLog = CategoriesFilterSensitiveLog;
97
+ const CharacterOffsetsFilterSensitiveLog = (obj) => ({
98
+ ...obj,
99
+ });
100
+ exports.CharacterOffsetsFilterSensitiveLog = CharacterOffsetsFilterSensitiveLog;
101
+ const IssueDetectedFilterSensitiveLog = (obj) => ({
102
+ ...obj,
103
+ });
104
+ exports.IssueDetectedFilterSensitiveLog = IssueDetectedFilterSensitiveLog;
105
+ const TranscriptFilterSensitiveLog = (obj) => ({
106
+ ...obj,
107
+ });
108
+ exports.TranscriptFilterSensitiveLog = TranscriptFilterSensitiveLog;
109
+ const RealtimeContactAnalysisSegmentFilterSensitiveLog = (obj) => ({
110
+ ...obj,
111
+ });
112
+ exports.RealtimeContactAnalysisSegmentFilterSensitiveLog = RealtimeContactAnalysisSegmentFilterSensitiveLog;
113
+ const ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog = (obj) => ({
114
+ ...obj,
115
+ });
116
+ exports.ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog = ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog;
@@ -34,19 +34,17 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = async
34
34
  if (output.statusCode !== 200 && output.statusCode >= 300) {
35
35
  return deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError(output, context);
36
36
  }
37
- const contents = {
37
+ const contents = map({
38
38
  $metadata: deserializeMetadata(output),
39
- NextToken: undefined,
40
- Segments: undefined,
41
- };
39
+ });
42
40
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
43
- if (data.NextToken !== undefined && data.NextToken !== null) {
41
+ if (data.NextToken != null) {
44
42
  contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
45
43
  }
46
- if (data.Segments !== undefined && data.Segments !== null) {
44
+ if (data.Segments != null) {
47
45
  contents.Segments = deserializeAws_restJson1RealtimeContactAnalysisSegments(data.Segments, context);
48
46
  }
49
- return Promise.resolve(contents);
47
+ return contents;
50
48
  };
51
49
  exports.deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand;
52
50
  const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = async (output, context) => {
@@ -54,7 +52,6 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
54
52
  ...output,
55
53
  body: await parseBody(output.body, context),
56
54
  };
57
- let response;
58
55
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
59
56
  switch (errorCode) {
60
57
  case "AccessDeniedException":
@@ -74,20 +71,19 @@ const deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError =
74
71
  throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
75
72
  default:
76
73
  const parsedBody = parsedOutput.body;
77
- const $metadata = deserializeMetadata(output);
78
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
79
- response = new ConnectContactLensServiceException_1.ConnectContactLensServiceException({
80
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
81
- $fault: "client",
82
- $metadata,
74
+ (0, smithy_client_1.throwDefaultError)({
75
+ output,
76
+ parsedBody,
77
+ exceptionCtor: ConnectContactLensServiceException_1.ConnectContactLensServiceException,
78
+ errorCode,
83
79
  });
84
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
85
80
  }
86
81
  };
82
+ const map = smithy_client_1.map;
87
83
  const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
88
- const contents = {};
84
+ const contents = map({});
89
85
  const data = parsedOutput.body;
90
- if (data.Message !== undefined && data.Message !== null) {
86
+ if (data.Message != null) {
91
87
  contents.Message = (0, smithy_client_1.expectString)(data.Message);
92
88
  }
93
89
  const exception = new models_0_1.AccessDeniedException({
@@ -97,9 +93,9 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
97
93
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
98
94
  };
99
95
  const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOutput, context) => {
100
- const contents = {};
96
+ const contents = map({});
101
97
  const data = parsedOutput.body;
102
- if (data.Message !== undefined && data.Message !== null) {
98
+ if (data.Message != null) {
103
99
  contents.Message = (0, smithy_client_1.expectString)(data.Message);
104
100
  }
105
101
  const exception = new models_0_1.InternalServiceException({
@@ -109,9 +105,9 @@ const deserializeAws_restJson1InternalServiceExceptionResponse = async (parsedOu
109
105
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
110
106
  };
111
107
  const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
112
- const contents = {};
108
+ const contents = map({});
113
109
  const data = parsedOutput.body;
114
- if (data.Message !== undefined && data.Message !== null) {
110
+ if (data.Message != null) {
115
111
  contents.Message = (0, smithy_client_1.expectString)(data.Message);
116
112
  }
117
113
  const exception = new models_0_1.InvalidRequestException({
@@ -121,9 +117,9 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
121
117
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
122
118
  };
123
119
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
124
- const contents = {};
120
+ const contents = map({});
125
121
  const data = parsedOutput.body;
126
- if (data.Message !== undefined && data.Message !== null) {
122
+ if (data.Message != null) {
127
123
  contents.Message = (0, smithy_client_1.expectString)(data.Message);
128
124
  }
129
125
  const exception = new models_0_1.ResourceNotFoundException({
@@ -133,9 +129,9 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
133
129
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
134
130
  };
135
131
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
136
- const contents = {};
132
+ const contents = map({});
137
133
  const data = parsedOutput.body;
138
- if (data.Message !== undefined && data.Message !== null) {
134
+ if (data.Message != null) {
139
135
  contents.Message = (0, smithy_client_1.expectString)(data.Message);
140
136
  }
141
137
  const exception = new models_0_1.ThrottlingException({
@@ -1,7 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { ListRealtimeContactAnalysisSegmentsRequest, ListRealtimeContactAnalysisSegmentsResponse, } from "../models/models_0";
4
+ import { ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog, ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog, } from "../models/models_0";
5
5
  import { deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand, serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand, } from "../protocols/Aws_restJson1";
6
6
  var ListRealtimeContactAnalysisSegmentsCommand = (function (_super) {
7
7
  __extends(ListRealtimeContactAnalysisSegmentsCommand, _super);
@@ -20,8 +20,8 @@ var ListRealtimeContactAnalysisSegmentsCommand = (function (_super) {
20
20
  logger: logger,
21
21
  clientName: clientName,
22
22
  commandName: commandName,
23
- inputFilterSensitiveLog: ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog,
24
- outputFilterSensitiveLog: ListRealtimeContactAnalysisSegmentsResponse.filterSensitiveLog,
23
+ inputFilterSensitiveLog: ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog,
24
+ outputFilterSensitiveLog: ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog,
25
25
  };
26
26
  var requestHandler = configuration.requestHandler;
27
27
  return stack.resolve(function (request) {
@@ -39,48 +39,12 @@ var InvalidRequestException = (function (_super) {
39
39
  return InvalidRequestException;
40
40
  }(__BaseException));
41
41
  export { InvalidRequestException };
42
- export var ListRealtimeContactAnalysisSegmentsRequest;
43
- (function (ListRealtimeContactAnalysisSegmentsRequest) {
44
- ListRealtimeContactAnalysisSegmentsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
45
- })(ListRealtimeContactAnalysisSegmentsRequest || (ListRealtimeContactAnalysisSegmentsRequest = {}));
46
- export var PointOfInterest;
47
- (function (PointOfInterest) {
48
- PointOfInterest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
49
- })(PointOfInterest || (PointOfInterest = {}));
50
- export var CategoryDetails;
51
- (function (CategoryDetails) {
52
- CategoryDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
53
- })(CategoryDetails || (CategoryDetails = {}));
54
- export var Categories;
55
- (function (Categories) {
56
- Categories.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
- })(Categories || (Categories = {}));
58
- export var CharacterOffsets;
59
- (function (CharacterOffsets) {
60
- CharacterOffsets.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
61
- })(CharacterOffsets || (CharacterOffsets = {}));
62
- export var IssueDetected;
63
- (function (IssueDetected) {
64
- IssueDetected.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
65
- })(IssueDetected || (IssueDetected = {}));
66
42
  export var SentimentValue;
67
43
  (function (SentimentValue) {
68
44
  SentimentValue["NEGATIVE"] = "NEGATIVE";
69
45
  SentimentValue["NEUTRAL"] = "NEUTRAL";
70
46
  SentimentValue["POSITIVE"] = "POSITIVE";
71
47
  })(SentimentValue || (SentimentValue = {}));
72
- export var Transcript;
73
- (function (Transcript) {
74
- Transcript.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
- })(Transcript || (Transcript = {}));
76
- export var RealtimeContactAnalysisSegment;
77
- (function (RealtimeContactAnalysisSegment) {
78
- RealtimeContactAnalysisSegment.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
- })(RealtimeContactAnalysisSegment || (RealtimeContactAnalysisSegment = {}));
80
- export var ListRealtimeContactAnalysisSegmentsResponse;
81
- (function (ListRealtimeContactAnalysisSegmentsResponse) {
82
- ListRealtimeContactAnalysisSegmentsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
83
- })(ListRealtimeContactAnalysisSegmentsResponse || (ListRealtimeContactAnalysisSegmentsResponse = {}));
84
48
  var ResourceNotFoundException = (function (_super) {
85
49
  __extends(ResourceNotFoundException, _super);
86
50
  function ResourceNotFoundException(opts) {
@@ -107,3 +71,12 @@ var ThrottlingException = (function (_super) {
107
71
  return ThrottlingException;
108
72
  }(__BaseException));
109
73
  export { ThrottlingException };
74
+ export var ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
75
+ export var PointOfInterestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
76
+ export var CategoryDetailsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
+ export var CategoriesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
78
+ export var CharacterOffsetsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
79
+ export var IssueDetectedFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
80
+ export var TranscriptFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
+ export var RealtimeContactAnalysisSegmentFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
82
+ export var ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { ConnectContactLensServiceException as __BaseException } from "../models/ConnectContactLensServiceException";
5
5
  import { AccessDeniedException, InternalServiceException, InvalidRequestException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
6
6
  export var serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
@@ -36,28 +36,26 @@ export var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand =
36
36
  if (output.statusCode !== 200 && output.statusCode >= 300) {
37
37
  return [2, deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError(output, context)];
38
38
  }
39
- contents = {
39
+ contents = map({
40
40
  $metadata: deserializeMetadata(output),
41
- NextToken: undefined,
42
- Segments: undefined,
43
- };
41
+ });
44
42
  _a = __expectNonNull;
45
43
  _b = __expectObject;
46
44
  return [4, parseBody(output.body, context)];
47
45
  case 1:
48
46
  data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
49
- if (data.NextToken !== undefined && data.NextToken !== null) {
47
+ if (data.NextToken != null) {
50
48
  contents.NextToken = __expectString(data.NextToken);
51
49
  }
52
- if (data.Segments !== undefined && data.Segments !== null) {
50
+ if (data.Segments != null) {
53
51
  contents.Segments = deserializeAws_restJson1RealtimeContactAnalysisSegments(data.Segments, context);
54
52
  }
55
- return [2, Promise.resolve(contents)];
53
+ return [2, contents];
56
54
  }
57
55
  });
58
56
  }); };
59
57
  var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
60
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
58
+ var parsedOutput, _a, errorCode, _b, parsedBody;
61
59
  var _c;
62
60
  return __generator(this, function (_d) {
63
61
  switch (_d.label) {
@@ -94,23 +92,24 @@ var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = fu
94
92
  case 11: throw _d.sent();
95
93
  case 12:
96
94
  parsedBody = parsedOutput.body;
97
- $metadata = deserializeMetadata(output);
98
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
99
- response = new __BaseException({
100
- name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
101
- $fault: "client",
102
- $metadata: $metadata,
95
+ throwDefaultError({
96
+ output: output,
97
+ parsedBody: parsedBody,
98
+ exceptionCtor: __BaseException,
99
+ errorCode: errorCode,
103
100
  });
104
- throw __decorateServiceException(response, parsedBody);
101
+ _d.label = 13;
102
+ case 13: return [2];
105
103
  }
106
104
  });
107
105
  }); };
106
+ var map = __map;
108
107
  var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
109
108
  var contents, data, exception;
110
109
  return __generator(this, function (_a) {
111
- contents = {};
110
+ contents = map({});
112
111
  data = parsedOutput.body;
113
- if (data.Message !== undefined && data.Message !== null) {
112
+ if (data.Message != null) {
114
113
  contents.Message = __expectString(data.Message);
115
114
  }
116
115
  exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -120,9 +119,9 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
120
119
  var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
121
120
  var contents, data, exception;
122
121
  return __generator(this, function (_a) {
123
- contents = {};
122
+ contents = map({});
124
123
  data = parsedOutput.body;
125
- if (data.Message !== undefined && data.Message !== null) {
124
+ if (data.Message != null) {
126
125
  contents.Message = __expectString(data.Message);
127
126
  }
128
127
  exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -132,9 +131,9 @@ var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedO
132
131
  var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
133
132
  var contents, data, exception;
134
133
  return __generator(this, function (_a) {
135
- contents = {};
134
+ contents = map({});
136
135
  data = parsedOutput.body;
137
- if (data.Message !== undefined && data.Message !== null) {
136
+ if (data.Message != null) {
138
137
  contents.Message = __expectString(data.Message);
139
138
  }
140
139
  exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -144,9 +143,9 @@ var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOu
144
143
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
145
144
  var contents, data, exception;
146
145
  return __generator(this, function (_a) {
147
- contents = {};
146
+ contents = map({});
148
147
  data = parsedOutput.body;
149
- if (data.Message !== undefined && data.Message !== null) {
148
+ if (data.Message != null) {
150
149
  contents.Message = __expectString(data.Message);
151
150
  }
152
151
  exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -156,9 +155,9 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
156
155
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
157
156
  var contents, data, exception;
158
157
  return __generator(this, function (_a) {
159
- contents = {};
158
+ contents = map({});
160
159
  data = parsedOutput.body;
161
- if (data.Message !== undefined && data.Message !== null) {
160
+ if (data.Message != null) {
162
161
  contents.Message = __expectString(data.Message);
163
162
  }
164
163
  exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
@@ -55,12 +55,6 @@ export interface ListRealtimeContactAnalysisSegmentsRequest {
55
55
  */
56
56
  NextToken?: string;
57
57
  }
58
- export declare namespace ListRealtimeContactAnalysisSegmentsRequest {
59
- /**
60
- * @internal
61
- */
62
- const filterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsRequest) => any;
63
- }
64
58
  /**
65
59
  * <p>The section of the contact audio where that category rule was detected.</p>
66
60
  */
@@ -74,12 +68,6 @@ export interface PointOfInterest {
74
68
  */
75
69
  EndOffsetMillis: number | undefined;
76
70
  }
77
- export declare namespace PointOfInterest {
78
- /**
79
- * @internal
80
- */
81
- const filterSensitiveLog: (obj: PointOfInterest) => any;
82
- }
83
71
  /**
84
72
  * <p>Provides information about the category rule that was matched.</p>
85
73
  */
@@ -89,12 +77,6 @@ export interface CategoryDetails {
89
77
  */
90
78
  PointsOfInterest: PointOfInterest[] | undefined;
91
79
  }
92
- export declare namespace CategoryDetails {
93
- /**
94
- * @internal
95
- */
96
- const filterSensitiveLog: (obj: CategoryDetails) => any;
97
- }
98
80
  /**
99
81
  * <p>Provides the category rules that are used to automatically categorize contacts based on
100
82
  * uttered keywords and phrases.</p>
@@ -109,12 +91,6 @@ export interface Categories {
109
91
  */
110
92
  MatchedDetails: Record<string, CategoryDetails> | undefined;
111
93
  }
112
- export declare namespace Categories {
113
- /**
114
- * @internal
115
- */
116
- const filterSensitiveLog: (obj: Categories) => any;
117
- }
118
94
  /**
119
95
  * <p>For characters that were detected as issues, where they occur in the transcript.</p>
120
96
  */
@@ -128,12 +104,6 @@ export interface CharacterOffsets {
128
104
  */
129
105
  EndOffsetChar: number | undefined;
130
106
  }
131
- export declare namespace CharacterOffsets {
132
- /**
133
- * @internal
134
- */
135
- const filterSensitiveLog: (obj: CharacterOffsets) => any;
136
- }
137
107
  /**
138
108
  * <p>Potential issues that are detected based on an artificial intelligence analysis of each
139
109
  * turn in the conversation.</p>
@@ -144,12 +114,6 @@ export interface IssueDetected {
144
114
  */
145
115
  CharacterOffsets: CharacterOffsets | undefined;
146
116
  }
147
- export declare namespace IssueDetected {
148
- /**
149
- * @internal
150
- */
151
- const filterSensitiveLog: (obj: IssueDetected) => any;
152
- }
153
117
  export declare enum SentimentValue {
154
118
  NEGATIVE = "NEGATIVE",
155
119
  NEUTRAL = "NEUTRAL",
@@ -192,12 +156,6 @@ export interface Transcript {
192
156
  */
193
157
  IssuesDetected?: IssueDetected[];
194
158
  }
195
- export declare namespace Transcript {
196
- /**
197
- * @internal
198
- */
199
- const filterSensitiveLog: (obj: Transcript) => any;
200
- }
201
159
  /**
202
160
  * <p>An analyzed segment for a real-time analysis session.</p>
203
161
  */
@@ -211,12 +169,6 @@ export interface RealtimeContactAnalysisSegment {
211
169
  */
212
170
  Categories?: Categories;
213
171
  }
214
- export declare namespace RealtimeContactAnalysisSegment {
215
- /**
216
- * @internal
217
- */
218
- const filterSensitiveLog: (obj: RealtimeContactAnalysisSegment) => any;
219
- }
220
172
  export interface ListRealtimeContactAnalysisSegmentsResponse {
221
173
  /**
222
174
  * <p>An analyzed transcript or category.</p>
@@ -238,12 +190,6 @@ export interface ListRealtimeContactAnalysisSegmentsResponse {
238
190
  */
239
191
  NextToken?: string;
240
192
  }
241
- export declare namespace ListRealtimeContactAnalysisSegmentsResponse {
242
- /**
243
- * @internal
244
- */
245
- const filterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsResponse) => any;
246
- }
247
193
  /**
248
194
  * <p>The specified resource was not found.</p>
249
195
  */
@@ -268,3 +214,39 @@ export declare class ThrottlingException extends __BaseException {
268
214
  */
269
215
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
270
216
  }
217
+ /**
218
+ * @internal
219
+ */
220
+ export declare const ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsRequest) => any;
221
+ /**
222
+ * @internal
223
+ */
224
+ export declare const PointOfInterestFilterSensitiveLog: (obj: PointOfInterest) => any;
225
+ /**
226
+ * @internal
227
+ */
228
+ export declare const CategoryDetailsFilterSensitiveLog: (obj: CategoryDetails) => any;
229
+ /**
230
+ * @internal
231
+ */
232
+ export declare const CategoriesFilterSensitiveLog: (obj: Categories) => any;
233
+ /**
234
+ * @internal
235
+ */
236
+ export declare const CharacterOffsetsFilterSensitiveLog: (obj: CharacterOffsets) => any;
237
+ /**
238
+ * @internal
239
+ */
240
+ export declare const IssueDetectedFilterSensitiveLog: (obj: IssueDetected) => any;
241
+ /**
242
+ * @internal
243
+ */
244
+ export declare const TranscriptFilterSensitiveLog: (obj: Transcript) => any;
245
+ /**
246
+ * @internal
247
+ */
248
+ export declare const RealtimeContactAnalysisSegmentFilterSensitiveLog: (obj: RealtimeContactAnalysisSegment) => any;
249
+ /**
250
+ * @internal
251
+ */
252
+ export declare const ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsResponse) => any;
@@ -34,10 +34,6 @@ export interface ListRealtimeContactAnalysisSegmentsRequest {
34
34
 
35
35
  NextToken?: string;
36
36
  }
37
- export declare namespace ListRealtimeContactAnalysisSegmentsRequest {
38
-
39
- const filterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsRequest) => any;
40
- }
41
37
 
42
38
  export interface PointOfInterest {
43
39
 
@@ -45,19 +41,11 @@ export interface PointOfInterest {
45
41
 
46
42
  EndOffsetMillis: number | undefined;
47
43
  }
48
- export declare namespace PointOfInterest {
49
-
50
- const filterSensitiveLog: (obj: PointOfInterest) => any;
51
- }
52
44
 
53
45
  export interface CategoryDetails {
54
46
 
55
47
  PointsOfInterest: PointOfInterest[] | undefined;
56
48
  }
57
- export declare namespace CategoryDetails {
58
-
59
- const filterSensitiveLog: (obj: CategoryDetails) => any;
60
- }
61
49
 
62
50
  export interface Categories {
63
51
 
@@ -65,10 +53,6 @@ export interface Categories {
65
53
 
66
54
  MatchedDetails: Record<string, CategoryDetails> | undefined;
67
55
  }
68
- export declare namespace Categories {
69
-
70
- const filterSensitiveLog: (obj: Categories) => any;
71
- }
72
56
 
73
57
  export interface CharacterOffsets {
74
58
 
@@ -76,19 +60,11 @@ export interface CharacterOffsets {
76
60
 
77
61
  EndOffsetChar: number | undefined;
78
62
  }
79
- export declare namespace CharacterOffsets {
80
-
81
- const filterSensitiveLog: (obj: CharacterOffsets) => any;
82
- }
83
63
 
84
64
  export interface IssueDetected {
85
65
 
86
66
  CharacterOffsets: CharacterOffsets | undefined;
87
67
  }
88
- export declare namespace IssueDetected {
89
-
90
- const filterSensitiveLog: (obj: IssueDetected) => any;
91
- }
92
68
  export declare enum SentimentValue {
93
69
  NEGATIVE = "NEGATIVE",
94
70
  NEUTRAL = "NEUTRAL",
@@ -113,10 +89,6 @@ export interface Transcript {
113
89
 
114
90
  IssuesDetected?: IssueDetected[];
115
91
  }
116
- export declare namespace Transcript {
117
-
118
- const filterSensitiveLog: (obj: Transcript) => any;
119
- }
120
92
 
121
93
  export interface RealtimeContactAnalysisSegment {
122
94
 
@@ -124,20 +96,12 @@ export interface RealtimeContactAnalysisSegment {
124
96
 
125
97
  Categories?: Categories;
126
98
  }
127
- export declare namespace RealtimeContactAnalysisSegment {
128
-
129
- const filterSensitiveLog: (obj: RealtimeContactAnalysisSegment) => any;
130
- }
131
99
  export interface ListRealtimeContactAnalysisSegmentsResponse {
132
100
 
133
101
  Segments: RealtimeContactAnalysisSegment[] | undefined;
134
102
 
135
103
  NextToken?: string;
136
104
  }
137
- export declare namespace ListRealtimeContactAnalysisSegmentsResponse {
138
-
139
- const filterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsResponse) => any;
140
- }
141
105
 
142
106
  export declare class ResourceNotFoundException extends __BaseException {
143
107
  readonly name: "ResourceNotFoundException";
@@ -154,3 +118,21 @@ export declare class ThrottlingException extends __BaseException {
154
118
 
155
119
  constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
156
120
  }
121
+
122
+ export declare const ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsRequest) => any;
123
+
124
+ export declare const PointOfInterestFilterSensitiveLog: (obj: PointOfInterest) => any;
125
+
126
+ export declare const CategoryDetailsFilterSensitiveLog: (obj: CategoryDetails) => any;
127
+
128
+ export declare const CategoriesFilterSensitiveLog: (obj: Categories) => any;
129
+
130
+ export declare const CharacterOffsetsFilterSensitiveLog: (obj: CharacterOffsets) => any;
131
+
132
+ export declare const IssueDetectedFilterSensitiveLog: (obj: IssueDetected) => any;
133
+
134
+ export declare const TranscriptFilterSensitiveLog: (obj: Transcript) => any;
135
+
136
+ export declare const RealtimeContactAnalysisSegmentFilterSensitiveLog: (obj: RealtimeContactAnalysisSegment) => any;
137
+
138
+ export declare const ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsResponse) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect-contact-lens",
3
3
  "description": "AWS SDK for JavaScript Connect Contact Lens Client for Node.js, Browser and React Native",
4
- "version": "3.131.0",
4
+ "version": "3.142.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,9 +18,9 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.131.0",
21
+ "@aws-sdk/client-sts": "3.142.0",
22
22
  "@aws-sdk/config-resolver": "3.130.0",
23
- "@aws-sdk/credential-provider-node": "3.131.0",
23
+ "@aws-sdk/credential-provider-node": "3.142.0",
24
24
  "@aws-sdk/fetch-http-handler": "3.131.0",
25
25
  "@aws-sdk/hash-node": "3.127.0",
26
26
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.142.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.130.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.142.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.142.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",