@aws-sdk/client-connect-contact-lens 3.50.0 → 3.53.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/ConnectContactLensServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +72 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +49 -79
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/ConnectContactLensServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +67 -1
  9. package/dist-es/protocols/Aws_restJson1.js +53 -89
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/ConnectContactLensServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +37 -16
  13. package/dist-types/ts3.4/ConnectContactLens.d.ts +10 -0
  14. package/dist-types/ts3.4/ConnectContactLensClient.d.ts +74 -0
  15. package/dist-types/ts3.4/commands/ListRealtimeContactAnalysisSegmentsCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  17. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  18. package/dist-types/ts3.4/index.d.ts +6 -0
  19. package/dist-types/ts3.4/models/ConnectContactLensServiceException.d.ts +6 -0
  20. package/dist-types/ts3.4/models/index.d.ts +1 -0
  21. package/dist-types/ts3.4/models/models_0.d.ts +158 -0
  22. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  23. package/dist-types/ts3.4/pagination/ListRealtimeContactAnalysisSegmentsPaginator.d.ts +4 -0
  24. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  25. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +5 -0
  26. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  27. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  28. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  29. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  30. package/package.json +33 -33
@@ -1,6 +1,8 @@
1
1
  import { __assign, __awaiter, __generator, __read } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { 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, } from "@aws-sdk/smithy-client";
4
+ import { ConnectContactLensServiceException as __BaseException } from "../models/ConnectContactLensServiceException";
5
+ import { AccessDeniedException, InternalServiceException, InvalidRequestException, ResourceNotFoundException, ThrottlingException, } from "../models/models_0";
4
6
  export var serializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
5
7
  var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
6
8
  return __generator(this, function (_c) {
@@ -55,16 +57,16 @@ export var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommand =
55
57
  });
56
58
  }); };
57
59
  var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
58
- var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
59
- var _h;
60
- return __generator(this, function (_j) {
61
- switch (_j.label) {
60
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
61
+ var _c;
62
+ return __generator(this, function (_d) {
63
+ switch (_d.label) {
62
64
  case 0:
63
65
  _a = [__assign({}, output)];
64
- _h = {};
66
+ _c = {};
65
67
  return [4, parseBody(output.body, context)];
66
68
  case 1:
67
- parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
69
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
68
70
  errorCode = "UnknownError";
69
71
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
70
72
  _b = errorCode;
@@ -81,127 +83,85 @@ var deserializeAws_restJson1ListRealtimeContactAnalysisSegmentsCommandError = fu
81
83
  case "com.amazonaws.connectcontactlens#ThrottlingException": return [3, 10];
82
84
  }
83
85
  return [3, 12];
84
- case 2:
85
- _c = [{}];
86
- return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
87
- case 3:
88
- response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
89
- return [3, 13];
90
- case 4:
91
- _d = [{}];
92
- return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
93
- case 5:
94
- response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
95
- return [3, 13];
96
- case 6:
97
- _e = [{}];
98
- return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
99
- case 7:
100
- response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
101
- return [3, 13];
102
- case 8:
103
- _f = [{}];
104
- return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
105
- case 9:
106
- response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
107
- return [3, 13];
108
- case 10:
109
- _g = [{}];
110
- return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
111
- case 11:
112
- response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
113
- return [3, 13];
86
+ case 2: return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
87
+ case 3: throw _d.sent();
88
+ case 4: return [4, deserializeAws_restJson1InternalServiceExceptionResponse(parsedOutput, context)];
89
+ case 5: throw _d.sent();
90
+ case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
91
+ case 7: throw _d.sent();
92
+ case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
93
+ case 9: throw _d.sent();
94
+ case 10: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
95
+ case 11: throw _d.sent();
114
96
  case 12:
115
97
  parsedBody = parsedOutput.body;
116
- errorCode = parsedBody.code || parsedBody.Code || errorCode;
117
- response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
118
- _j.label = 13;
119
- case 13:
120
- message = response.message || response.Message || errorCode;
121
- response.message = message;
122
- delete response.Message;
123
- return [2, Promise.reject(Object.assign(new Error(message), response))];
98
+ response = new __BaseException({
99
+ name: parsedBody.code || parsedBody.Code || errorCode,
100
+ $fault: "client",
101
+ $metadata: deserializeMetadata(output),
102
+ });
103
+ throw __decorateServiceException(response, parsedBody);
124
104
  }
125
105
  });
126
106
  }); };
127
107
  var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
128
- var contents, data;
108
+ var contents, data, exception;
129
109
  return __generator(this, function (_a) {
130
- contents = {
131
- name: "AccessDeniedException",
132
- $fault: "client",
133
- $metadata: deserializeMetadata(parsedOutput),
134
- Message: undefined,
135
- };
110
+ contents = {};
136
111
  data = parsedOutput.body;
137
112
  if (data.Message !== undefined && data.Message !== null) {
138
113
  contents.Message = __expectString(data.Message);
139
114
  }
140
- return [2, contents];
115
+ exception = new AccessDeniedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
116
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
141
117
  });
142
118
  }); };
143
119
  var deserializeAws_restJson1InternalServiceExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
144
- var contents, data;
120
+ var contents, data, exception;
145
121
  return __generator(this, function (_a) {
146
- contents = {
147
- name: "InternalServiceException",
148
- $fault: "server",
149
- $metadata: deserializeMetadata(parsedOutput),
150
- Message: undefined,
151
- };
122
+ contents = {};
152
123
  data = parsedOutput.body;
153
124
  if (data.Message !== undefined && data.Message !== null) {
154
125
  contents.Message = __expectString(data.Message);
155
126
  }
156
- return [2, contents];
127
+ exception = new InternalServiceException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
128
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
157
129
  });
158
130
  }); };
159
131
  var deserializeAws_restJson1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
160
- var contents, data;
132
+ var contents, data, exception;
161
133
  return __generator(this, function (_a) {
162
- contents = {
163
- name: "InvalidRequestException",
164
- $fault: "client",
165
- $metadata: deserializeMetadata(parsedOutput),
166
- Message: undefined,
167
- };
134
+ contents = {};
168
135
  data = parsedOutput.body;
169
136
  if (data.Message !== undefined && data.Message !== null) {
170
137
  contents.Message = __expectString(data.Message);
171
138
  }
172
- return [2, contents];
139
+ exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
140
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
173
141
  });
174
142
  }); };
175
143
  var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
176
- var contents, data;
144
+ var contents, data, exception;
177
145
  return __generator(this, function (_a) {
178
- contents = {
179
- name: "ResourceNotFoundException",
180
- $fault: "client",
181
- $metadata: deserializeMetadata(parsedOutput),
182
- Message: undefined,
183
- };
146
+ contents = {};
184
147
  data = parsedOutput.body;
185
148
  if (data.Message !== undefined && data.Message !== null) {
186
149
  contents.Message = __expectString(data.Message);
187
150
  }
188
- return [2, contents];
151
+ exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
152
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
189
153
  });
190
154
  }); };
191
155
  var deserializeAws_restJson1ThrottlingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
192
- var contents, data;
156
+ var contents, data, exception;
193
157
  return __generator(this, function (_a) {
194
- contents = {
195
- name: "ThrottlingException",
196
- $fault: "client",
197
- $metadata: deserializeMetadata(parsedOutput),
198
- Message: undefined,
199
- };
158
+ contents = {};
200
159
  data = parsedOutput.body;
201
160
  if (data.Message !== undefined && data.Message !== null) {
202
161
  contents.Message = __expectString(data.Message);
203
162
  }
204
- return [2, contents];
163
+ exception = new ThrottlingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
164
+ return [2, __decorateServiceException(exception, parsedOutput.body)];
205
165
  });
206
166
  }); };
207
167
  var deserializeAws_restJson1Categories = function (output, context) {
@@ -235,7 +195,7 @@ var deserializeAws_restJson1IssueDetected = function (output, context) {
235
195
  };
236
196
  };
237
197
  var deserializeAws_restJson1IssuesDetected = function (output, context) {
238
- return (output || [])
198
+ var retVal = (output || [])
239
199
  .filter(function (e) { return e != null; })
240
200
  .map(function (entry) {
241
201
  if (entry === null) {
@@ -243,9 +203,10 @@ var deserializeAws_restJson1IssuesDetected = function (output, context) {
243
203
  }
244
204
  return deserializeAws_restJson1IssueDetected(entry, context);
245
205
  });
206
+ return retVal;
246
207
  };
247
208
  var deserializeAws_restJson1MatchedCategories = function (output, context) {
248
- return (output || [])
209
+ var retVal = (output || [])
249
210
  .filter(function (e) { return e != null; })
250
211
  .map(function (entry) {
251
212
  if (entry === null) {
@@ -253,6 +214,7 @@ var deserializeAws_restJson1MatchedCategories = function (output, context) {
253
214
  }
254
215
  return __expectString(entry);
255
216
  });
217
+ return retVal;
256
218
  };
257
219
  var deserializeAws_restJson1MatchedDetails = function (output, context) {
258
220
  return Object.entries(output).reduce(function (acc, _a) {
@@ -271,7 +233,7 @@ var deserializeAws_restJson1PointOfInterest = function (output, context) {
271
233
  };
272
234
  };
273
235
  var deserializeAws_restJson1PointsOfInterest = function (output, context) {
274
- return (output || [])
236
+ var retVal = (output || [])
275
237
  .filter(function (e) { return e != null; })
276
238
  .map(function (entry) {
277
239
  if (entry === null) {
@@ -279,6 +241,7 @@ var deserializeAws_restJson1PointsOfInterest = function (output, context) {
279
241
  }
280
242
  return deserializeAws_restJson1PointOfInterest(entry, context);
281
243
  });
244
+ return retVal;
282
245
  };
283
246
  var deserializeAws_restJson1RealtimeContactAnalysisSegment = function (output, context) {
284
247
  return {
@@ -291,7 +254,7 @@ var deserializeAws_restJson1RealtimeContactAnalysisSegment = function (output, c
291
254
  };
292
255
  };
293
256
  var deserializeAws_restJson1RealtimeContactAnalysisSegments = function (output, context) {
294
- return (output || [])
257
+ var retVal = (output || [])
295
258
  .filter(function (e) { return e != null; })
296
259
  .map(function (entry) {
297
260
  if (entry === null) {
@@ -299,6 +262,7 @@ var deserializeAws_restJson1RealtimeContactAnalysisSegments = function (output,
299
262
  }
300
263
  return deserializeAws_restJson1RealtimeContactAnalysisSegment(entry, context);
301
264
  });
265
+ return retVal;
302
266
  };
303
267
  var deserializeAws_restJson1Transcript = function (output, context) {
304
268
  return {
@@ -3,3 +3,4 @@ export * from "./ConnectContactLensClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { ConnectContactLensServiceException } from "./models/ConnectContactLensServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from ConnectContactLens service.
4
+ */
5
+ export declare class ConnectContactLensServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,27 +1,40 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
2
3
  /**
3
4
  * <p>You do not have sufficient access to perform this action.</p>
4
5
  */
5
- export interface AccessDeniedException extends __SmithyException, $MetadataBearer {
6
- name: "AccessDeniedException";
7
- $fault: "client";
6
+ export declare class AccessDeniedException extends __BaseException {
7
+ readonly name: "AccessDeniedException";
8
+ readonly $fault: "client";
8
9
  Message: string | undefined;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
9
14
  }
10
15
  /**
11
16
  * <p>Request processing failed due to an error or failure with the service.</p>
12
17
  */
13
- export interface InternalServiceException extends __SmithyException, $MetadataBearer {
14
- name: "InternalServiceException";
15
- $fault: "server";
18
+ export declare class InternalServiceException extends __BaseException {
19
+ readonly name: "InternalServiceException";
20
+ readonly $fault: "server";
16
21
  Message?: string;
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
17
26
  }
18
27
  /**
19
28
  * <p>The request is not valid.</p>
20
29
  */
21
- export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
22
- name: "InvalidRequestException";
23
- $fault: "client";
30
+ export declare class InvalidRequestException extends __BaseException {
31
+ readonly name: "InvalidRequestException";
32
+ readonly $fault: "client";
24
33
  Message?: string;
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
25
38
  }
26
39
  export interface ListRealtimeContactAnalysisSegmentsRequest {
27
40
  /**
@@ -236,16 +249,24 @@ export declare namespace ListRealtimeContactAnalysisSegmentsResponse {
236
249
  /**
237
250
  * <p>The specified resource was not found.</p>
238
251
  */
239
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
240
- name: "ResourceNotFoundException";
241
- $fault: "client";
252
+ export declare class ResourceNotFoundException extends __BaseException {
253
+ readonly name: "ResourceNotFoundException";
254
+ readonly $fault: "client";
242
255
  Message?: string;
256
+ /**
257
+ * @internal
258
+ */
259
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
243
260
  }
244
261
  /**
245
262
  * <p>The throttling limit has been exceeded.</p>
246
263
  */
247
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
248
- name: "ThrottlingException";
249
- $fault: "client";
264
+ export declare class ThrottlingException extends __BaseException {
265
+ readonly name: "ThrottlingException";
266
+ readonly $fault: "client";
250
267
  Message: string | undefined;
268
+ /**
269
+ * @internal
270
+ */
271
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
251
272
  }
@@ -0,0 +1,10 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput } from "./commands/ListRealtimeContactAnalysisSegmentsCommand";
3
+ import { ConnectContactLensClient } from "./ConnectContactLensClient";
4
+
5
+ export declare class ConnectContactLens extends ConnectContactLensClient {
6
+
7
+ listRealtimeContactAnalysisSegments(args: ListRealtimeContactAnalysisSegmentsCommandInput, options?: __HttpHandlerOptions): Promise<ListRealtimeContactAnalysisSegmentsCommandOutput>;
8
+ listRealtimeContactAnalysisSegments(args: ListRealtimeContactAnalysisSegmentsCommandInput, cb: (err: any, data?: ListRealtimeContactAnalysisSegmentsCommandOutput) => void): void;
9
+ listRealtimeContactAnalysisSegments(args: ListRealtimeContactAnalysisSegmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRealtimeContactAnalysisSegmentsCommandOutput) => void): void;
10
+ }
@@ -0,0 +1,74 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput } from "./commands/ListRealtimeContactAnalysisSegmentsCommand";
10
+ export declare type ServiceInputTypes = ListRealtimeContactAnalysisSegmentsCommandInput;
11
+ export declare type ServiceOutputTypes = ListRealtimeContactAnalysisSegmentsCommandOutput;
12
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
13
+
14
+ requestHandler?: __HttpHandler;
15
+
16
+ sha256?: __HashConstructor;
17
+
18
+ urlParser?: __UrlParser;
19
+
20
+ bodyLengthChecker?: (body: any) => number | undefined;
21
+
22
+ streamCollector?: __StreamCollector;
23
+
24
+ base64Decoder?: __Decoder;
25
+
26
+ base64Encoder?: __Encoder;
27
+
28
+ utf8Decoder?: __Decoder;
29
+
30
+ utf8Encoder?: __Encoder;
31
+
32
+ runtime?: string;
33
+
34
+ disableHostPrefix?: boolean;
35
+
36
+ maxAttempts?: number | __Provider<number>;
37
+
38
+ retryMode?: string | __Provider<string>;
39
+
40
+ logger?: __Logger;
41
+
42
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
43
+
44
+ useFipsEndpoint?: boolean | __Provider<boolean>;
45
+
46
+ serviceId?: string;
47
+
48
+ region?: string | __Provider<string>;
49
+
50
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
51
+
52
+ regionInfoProvider?: RegionInfoProvider;
53
+
54
+ defaultUserAgentProvider?: Provider<__UserAgent>;
55
+
56
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
57
+ }
58
+ declare type ConnectContactLensClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
59
+
60
+ export interface ConnectContactLensClientConfig extends ConnectContactLensClientConfigType {
61
+ }
62
+ declare type ConnectContactLensClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
63
+
64
+ export interface ConnectContactLensClientResolvedConfig extends ConnectContactLensClientResolvedConfigType {
65
+ }
66
+
67
+ export declare class ConnectContactLensClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ConnectContactLensClientResolvedConfig> {
68
+
69
+ readonly config: ConnectContactLensClientResolvedConfig;
70
+ constructor(configuration: ConnectContactLensClientConfig);
71
+
72
+ destroy(): void;
73
+ }
74
+ export {};
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { ConnectContactLensClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ConnectContactLensClient";
4
+ import { ListRealtimeContactAnalysisSegmentsRequest, ListRealtimeContactAnalysisSegmentsResponse } from "../models/models_0";
5
+ export interface ListRealtimeContactAnalysisSegmentsCommandInput extends ListRealtimeContactAnalysisSegmentsRequest {
6
+ }
7
+ export interface ListRealtimeContactAnalysisSegmentsCommandOutput extends ListRealtimeContactAnalysisSegmentsResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class ListRealtimeContactAnalysisSegmentsCommand extends $Command<ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput, ConnectContactLensClientResolvedConfig> {
11
+ readonly input: ListRealtimeContactAnalysisSegmentsCommandInput;
12
+ constructor(input: ListRealtimeContactAnalysisSegmentsCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ConnectContactLensClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1 @@
1
+ export * from "./ListRealtimeContactAnalysisSegmentsCommand";
@@ -0,0 +1,2 @@
1
+ import { RegionInfoProvider } from "@aws-sdk/types";
2
+ export declare const defaultRegionInfoProvider: RegionInfoProvider;
@@ -0,0 +1,6 @@
1
+ export * from "./ConnectContactLens";
2
+ export * from "./ConnectContactLensClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
6
+ export { ConnectContactLensServiceException } from "./models/ConnectContactLensServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class ConnectContactLensServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -0,0 +1 @@
1
+ export * from "./models_0";
@@ -0,0 +1,158 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
3
+
4
+ export declare class AccessDeniedException extends __BaseException {
5
+ readonly name: "AccessDeniedException";
6
+ readonly $fault: "client";
7
+ Message: string | undefined;
8
+
9
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
10
+ }
11
+
12
+ export declare class InternalServiceException extends __BaseException {
13
+ readonly name: "InternalServiceException";
14
+ readonly $fault: "server";
15
+ Message?: string;
16
+
17
+ constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
18
+ }
19
+
20
+ export declare class InvalidRequestException extends __BaseException {
21
+ readonly name: "InvalidRequestException";
22
+ readonly $fault: "client";
23
+ Message?: string;
24
+
25
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
26
+ }
27
+ export interface ListRealtimeContactAnalysisSegmentsRequest {
28
+
29
+ InstanceId: string | undefined;
30
+
31
+ ContactId: string | undefined;
32
+
33
+ MaxResults?: number;
34
+
35
+ NextToken?: string;
36
+ }
37
+ export declare namespace ListRealtimeContactAnalysisSegmentsRequest {
38
+
39
+ const filterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsRequest) => any;
40
+ }
41
+
42
+ export interface PointOfInterest {
43
+
44
+ BeginOffsetMillis: number | undefined;
45
+
46
+ EndOffsetMillis: number | undefined;
47
+ }
48
+ export declare namespace PointOfInterest {
49
+
50
+ const filterSensitiveLog: (obj: PointOfInterest) => any;
51
+ }
52
+
53
+ export interface CategoryDetails {
54
+
55
+ PointsOfInterest: PointOfInterest[] | undefined;
56
+ }
57
+ export declare namespace CategoryDetails {
58
+
59
+ const filterSensitiveLog: (obj: CategoryDetails) => any;
60
+ }
61
+
62
+ export interface Categories {
63
+
64
+ MatchedCategories: string[] | undefined;
65
+
66
+ MatchedDetails: {
67
+ [key: string]: CategoryDetails;
68
+ } | undefined;
69
+ }
70
+ export declare namespace Categories {
71
+
72
+ const filterSensitiveLog: (obj: Categories) => any;
73
+ }
74
+
75
+ export interface CharacterOffsets {
76
+
77
+ BeginOffsetChar: number | undefined;
78
+
79
+ EndOffsetChar: number | undefined;
80
+ }
81
+ export declare namespace CharacterOffsets {
82
+
83
+ const filterSensitiveLog: (obj: CharacterOffsets) => any;
84
+ }
85
+
86
+ export interface IssueDetected {
87
+
88
+ CharacterOffsets: CharacterOffsets | undefined;
89
+ }
90
+ export declare namespace IssueDetected {
91
+
92
+ const filterSensitiveLog: (obj: IssueDetected) => any;
93
+ }
94
+ export declare enum SentimentValue {
95
+ NEGATIVE = "NEGATIVE",
96
+ NEUTRAL = "NEUTRAL",
97
+ POSITIVE = "POSITIVE"
98
+ }
99
+
100
+ export interface Transcript {
101
+
102
+ Id: string | undefined;
103
+
104
+ ParticipantId: string | undefined;
105
+
106
+ ParticipantRole: string | undefined;
107
+
108
+ Content: string | undefined;
109
+
110
+ BeginOffsetMillis: number | undefined;
111
+
112
+ EndOffsetMillis: number | undefined;
113
+
114
+ Sentiment: SentimentValue | string | undefined;
115
+
116
+ IssuesDetected?: IssueDetected[];
117
+ }
118
+ export declare namespace Transcript {
119
+
120
+ const filterSensitiveLog: (obj: Transcript) => any;
121
+ }
122
+
123
+ export interface RealtimeContactAnalysisSegment {
124
+
125
+ Transcript?: Transcript;
126
+
127
+ Categories?: Categories;
128
+ }
129
+ export declare namespace RealtimeContactAnalysisSegment {
130
+
131
+ const filterSensitiveLog: (obj: RealtimeContactAnalysisSegment) => any;
132
+ }
133
+ export interface ListRealtimeContactAnalysisSegmentsResponse {
134
+
135
+ Segments: RealtimeContactAnalysisSegment[] | undefined;
136
+
137
+ NextToken?: string;
138
+ }
139
+ export declare namespace ListRealtimeContactAnalysisSegmentsResponse {
140
+
141
+ const filterSensitiveLog: (obj: ListRealtimeContactAnalysisSegmentsResponse) => any;
142
+ }
143
+
144
+ export declare class ResourceNotFoundException extends __BaseException {
145
+ readonly name: "ResourceNotFoundException";
146
+ readonly $fault: "client";
147
+ Message?: string;
148
+
149
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
150
+ }
151
+
152
+ export declare class ThrottlingException extends __BaseException {
153
+ readonly name: "ThrottlingException";
154
+ readonly $fault: "client";
155
+ Message: string | undefined;
156
+
157
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
158
+ }
@@ -0,0 +1,6 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+ import { ConnectContactLens } from "../ConnectContactLens";
3
+ import { ConnectContactLensClient } from "../ConnectContactLensClient";
4
+ export interface ConnectContactLensPaginationConfiguration extends PaginationConfiguration {
5
+ client: ConnectContactLens | ConnectContactLensClient;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import { ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput } from "../commands/ListRealtimeContactAnalysisSegmentsCommand";
3
+ import { ConnectContactLensPaginationConfiguration } from "./Interfaces";
4
+ export declare function paginateListRealtimeContactAnalysisSegments(config: ConnectContactLensPaginationConfiguration, input: ListRealtimeContactAnalysisSegmentsCommandInput, ...additionalArguments: any): Paginator<ListRealtimeContactAnalysisSegmentsCommandOutput>;