@aws-sdk/client-connect-contact-lens 3.533.0 → 3.540.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.
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -470,9 +470,6 @@ var ConnectContactLens = _ConnectContactLens;
470
470
  // src/pagination/ListRealtimeContactAnalysisSegmentsPaginator.ts
471
471
 
472
472
  var paginateListRealtimeContactAnalysisSegments = (0, import_core.createPaginator)(ConnectContactLensClient, ListRealtimeContactAnalysisSegmentsCommand, "NextToken", "NextToken", "MaxResults");
473
-
474
- // src/index.ts
475
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
476
473
  // Annotate the CommonJS export names for ESM import in node:
477
474
 
478
475
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -3,5 +3,4 @@ export * from "./ConnectContactLens";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { ConnectContactLensServiceException } from "./models/ConnectContactLensServiceException";
@@ -10,7 +10,6 @@ export interface ConnectContactLens {
10
10
  listRealtimeContactAnalysisSegments(args: ListRealtimeContactAnalysisSegmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRealtimeContactAnalysisSegmentsCommandOutput) => void): void;
11
11
  }
12
12
  /**
13
- * @public
14
13
  * <p>Contact Lens for Amazon Connect enables you to analyze conversations between customer and agents,
15
14
  * by using speech transcription, natural language processing, and intelligent search
16
15
  * capabilities. It performs sentiment analysis, detects issues, and enables you to automatically
@@ -18,6 +17,7 @@ export interface ConnectContactLens {
18
17
  * <p>Contact Lens for Amazon Connect provides both real-time and post-call analytics of customer-agent
19
18
  * conversations. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html">Analyze conversations using
20
19
  * Contact Lens</a> in the <i>Amazon Connect Administrator Guide</i>. </p>
20
+ * @public
21
21
  */
22
22
  export declare class ConnectContactLens extends ConnectContactLensClient implements ConnectContactLens {
23
23
  }
@@ -152,7 +152,6 @@ export type ConnectContactLensClientResolvedConfigType = __SmithyResolvedConfigu
152
152
  export interface ConnectContactLensClientResolvedConfig extends ConnectContactLensClientResolvedConfigType {
153
153
  }
154
154
  /**
155
- * @public
156
155
  * <p>Contact Lens for Amazon Connect enables you to analyze conversations between customer and agents,
157
156
  * by using speech transcription, natural language processing, and intelligent search
158
157
  * capabilities. It performs sentiment analysis, detects issues, and enables you to automatically
@@ -160,6 +159,7 @@ export interface ConnectContactLensClientResolvedConfig extends ConnectContactLe
160
159
  * <p>Contact Lens for Amazon Connect provides both real-time and post-call analytics of customer-agent
161
160
  * conversations. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html">Analyze conversations using
162
161
  * Contact Lens</a> in the <i>Amazon Connect Administrator Guide</i>. </p>
162
+ * @public
163
163
  */
164
164
  export declare class ConnectContactLensClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ConnectContactLensClientResolvedConfig> {
165
165
  /**
@@ -22,10 +22,10 @@ export interface ListRealtimeContactAnalysisSegmentsCommandOutput extends ListRe
22
22
  }
23
23
  declare const ListRealtimeContactAnalysisSegmentsCommand_base: {
24
24
  new (input: ListRealtimeContactAnalysisSegmentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput, ConnectContactLensClientResolvedConfig, ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput>;
25
+ new (__0_0: ListRealtimeContactAnalysisSegmentsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput, ConnectContactLensClientResolvedConfig, ListRealtimeContactAnalysisSegmentsCommandInput, ListRealtimeContactAnalysisSegmentsCommandOutput>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Provides a list of analysis segments for a real-time analysis session.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -107,6 +107,7 @@ declare const ListRealtimeContactAnalysisSegmentsCommand_base: {
107
107
  * @throws {@link ConnectContactLensServiceException}
108
108
  * <p>Base exception class for all service exceptions from ConnectContactLens service.</p>
109
109
  *
110
+ * @public
110
111
  */
111
112
  export declare class ListRealtimeContactAnalysisSegmentsCommand extends ListRealtimeContactAnalysisSegmentsCommand_base {
112
113
  }
@@ -17,5 +17,4 @@ export { ConnectContactLensExtensionConfiguration } from "./extensionConfigurati
17
17
  export * from "./commands";
18
18
  export * from "./pagination";
19
19
  export * from "./models";
20
- import "@aws-sdk/util-endpoints";
21
20
  export { ConnectContactLensServiceException } from "./models/ConnectContactLensServiceException";
@@ -1,8 +1,8 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
3
3
  /**
4
- * @public
5
4
  * <p>You do not have sufficient access to perform this action.</p>
5
+ * @public
6
6
  */
7
7
  export declare class AccessDeniedException extends __BaseException {
8
8
  readonly name: "AccessDeniedException";
@@ -14,8 +14,8 @@ export declare class AccessDeniedException extends __BaseException {
14
14
  constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
15
15
  }
16
16
  /**
17
- * @public
18
17
  * <p>Request processing failed due to an error or failure with the service.</p>
18
+ * @public
19
19
  */
20
20
  export declare class InternalServiceException extends __BaseException {
21
21
  readonly name: "InternalServiceException";
@@ -27,8 +27,8 @@ export declare class InternalServiceException extends __BaseException {
27
27
  constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>);
28
28
  }
29
29
  /**
30
- * @public
31
30
  * <p>The request is not valid.</p>
31
+ * @public
32
32
  */
33
33
  export declare class InvalidRequestException extends __BaseException {
34
34
  readonly name: "InvalidRequestException";
@@ -44,96 +44,96 @@ export declare class InvalidRequestException extends __BaseException {
44
44
  */
45
45
  export interface ListRealtimeContactAnalysisSegmentsRequest {
46
46
  /**
47
- * @public
48
47
  * <p>The identifier of the Amazon Connect instance.</p>
48
+ * @public
49
49
  */
50
50
  InstanceId: string | undefined;
51
51
  /**
52
- * @public
53
52
  * <p>The identifier of the contact.</p>
53
+ * @public
54
54
  */
55
55
  ContactId: string | undefined;
56
56
  /**
57
- * @public
58
57
  * <p>The maximimum number of results to return per page.</p>
58
+ * @public
59
59
  */
60
60
  MaxResults?: number;
61
61
  /**
62
- * @public
63
62
  * <p>The token for the next set of results. Use the value returned in the previous
64
63
  * response in the next request to retrieve the next set of results.</p>
64
+ * @public
65
65
  */
66
66
  NextToken?: string;
67
67
  }
68
68
  /**
69
- * @public
70
69
  * <p>The section of the contact audio where that category rule was detected.</p>
70
+ * @public
71
71
  */
72
72
  export interface PointOfInterest {
73
73
  /**
74
- * @public
75
74
  * <p>The beginning offset in milliseconds where the category rule was detected.</p>
75
+ * @public
76
76
  */
77
77
  BeginOffsetMillis: number | undefined;
78
78
  /**
79
- * @public
80
79
  * <p>The ending offset in milliseconds where the category rule was detected.</p>
80
+ * @public
81
81
  */
82
82
  EndOffsetMillis: number | undefined;
83
83
  }
84
84
  /**
85
- * @public
86
85
  * <p>Provides information about the category rule that was matched.</p>
86
+ * @public
87
87
  */
88
88
  export interface CategoryDetails {
89
89
  /**
90
- * @public
91
90
  * <p>The section of audio where the category rule was detected.</p>
91
+ * @public
92
92
  */
93
93
  PointsOfInterest: PointOfInterest[] | undefined;
94
94
  }
95
95
  /**
96
- * @public
97
96
  * <p>Provides the category rules that are used to automatically categorize contacts based on
98
97
  * uttered keywords and phrases.</p>
98
+ * @public
99
99
  */
100
100
  export interface Categories {
101
101
  /**
102
- * @public
103
102
  * <p>The category rules that have been matched in the analyzed segment.</p>
103
+ * @public
104
104
  */
105
105
  MatchedCategories: string[] | undefined;
106
106
  /**
107
- * @public
108
107
  * <p>The category rule that was matched and when it occurred in the transcript.</p>
108
+ * @public
109
109
  */
110
110
  MatchedDetails: Record<string, CategoryDetails> | undefined;
111
111
  }
112
112
  /**
113
- * @public
114
113
  * <p>For characters that were detected as issues, where they occur in the transcript.</p>
114
+ * @public
115
115
  */
116
116
  export interface CharacterOffsets {
117
117
  /**
118
- * @public
119
118
  * <p>The beginning of the issue.</p>
119
+ * @public
120
120
  */
121
121
  BeginOffsetChar: number | undefined;
122
122
  /**
123
- * @public
124
123
  * <p>The end of the issue.</p>
124
+ * @public
125
125
  */
126
126
  EndOffsetChar: number | undefined;
127
127
  }
128
128
  /**
129
- * @public
130
129
  * <p>Potential issues that are detected based on an artificial intelligence analysis of each
131
130
  * turn in the conversation.</p>
131
+ * @public
132
132
  */
133
133
  export interface IssueDetected {
134
134
  /**
135
- * @public
136
135
  * <p>The offset for when the issue was detected in the segment.</p>
136
+ * @public
137
137
  */
138
138
  CharacterOffsets: CharacterOffsets | undefined;
139
139
  }
@@ -151,64 +151,64 @@ export declare const SentimentValue: {
151
151
  */
152
152
  export type SentimentValue = (typeof SentimentValue)[keyof typeof SentimentValue];
153
153
  /**
154
- * @public
155
154
  * <p>A list of messages in the session.</p>
155
+ * @public
156
156
  */
157
157
  export interface Transcript {
158
158
  /**
159
- * @public
160
159
  * <p>The identifier of the transcript.</p>
160
+ * @public
161
161
  */
162
162
  Id: string | undefined;
163
163
  /**
164
- * @public
165
164
  * <p>The identifier of the participant.</p>
165
+ * @public
166
166
  */
167
167
  ParticipantId: string | undefined;
168
168
  /**
169
- * @public
170
169
  * <p>The role of participant. For example, is it a customer, agent, or system.</p>
170
+ * @public
171
171
  */
172
172
  ParticipantRole: string | undefined;
173
173
  /**
174
- * @public
175
174
  * <p>The content of the transcript.</p>
175
+ * @public
176
176
  */
177
177
  Content: string | undefined;
178
178
  /**
179
- * @public
180
179
  * <p>The beginning offset in the contact for this transcript.</p>
180
+ * @public
181
181
  */
182
182
  BeginOffsetMillis: number | undefined;
183
183
  /**
184
- * @public
185
184
  * <p>The end offset in the contact for this transcript.</p>
185
+ * @public
186
186
  */
187
187
  EndOffsetMillis: number | undefined;
188
188
  /**
189
- * @public
190
189
  * <p>The sentiment of the detected for this piece of transcript.</p>
190
+ * @public
191
191
  */
192
192
  Sentiment: SentimentValue | undefined;
193
193
  /**
194
- * @public
195
194
  * <p>List of positions where issues were detected on the transcript.</p>
195
+ * @public
196
196
  */
197
197
  IssuesDetected?: IssueDetected[];
198
198
  }
199
199
  /**
200
- * @public
201
200
  * <p>An analyzed segment for a real-time analysis session.</p>
201
+ * @public
202
202
  */
203
203
  export interface RealtimeContactAnalysisSegment {
204
204
  /**
205
- * @public
206
205
  * <p>The analyzed transcript.</p>
206
+ * @public
207
207
  */
208
208
  Transcript?: Transcript;
209
209
  /**
210
- * @public
211
210
  * <p>The matched category rules.</p>
211
+ * @public
212
212
  */
213
213
  Categories?: Categories;
214
214
  }
@@ -217,12 +217,11 @@ export interface RealtimeContactAnalysisSegment {
217
217
  */
218
218
  export interface ListRealtimeContactAnalysisSegmentsResponse {
219
219
  /**
220
- * @public
221
220
  * <p>An analyzed transcript or category.</p>
221
+ * @public
222
222
  */
223
223
  Segments: RealtimeContactAnalysisSegment[] | undefined;
224
224
  /**
225
- * @public
226
225
  * <p>If there are additional results, this is the token for the next set of results. If response includes <code>nextToken</code> there are two possible scenarios:</p>
227
226
  * <ul>
228
227
  * <li>
@@ -235,12 +234,13 @@ export interface ListRealtimeContactAnalysisSegmentsResponse {
235
234
  * </li>
236
235
  * </ul>
237
236
  * <p>If response does not include <code>nextToken</code>, the analysis is completed (successfully or failed) and there are no more segments to retrieve.</p>
237
+ * @public
238
238
  */
239
239
  NextToken?: string;
240
240
  }
241
241
  /**
242
- * @public
243
242
  * <p>The specified resource was not found.</p>
243
+ * @public
244
244
  */
245
245
  export declare class ResourceNotFoundException extends __BaseException {
246
246
  readonly name: "ResourceNotFoundException";
@@ -252,8 +252,8 @@ export declare class ResourceNotFoundException extends __BaseException {
252
252
  constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
253
253
  }
254
254
  /**
255
- * @public
256
255
  * <p>The throttling limit has been exceeded.</p>
256
+ * @public
257
257
  */
258
258
  export declare class ThrottlingException extends __BaseException {
259
259
  readonly name: "ThrottlingException";
@@ -21,6 +21,15 @@ declare const ListRealtimeContactAnalysisSegmentsCommand_base: {
21
21
  ListRealtimeContactAnalysisSegmentsCommandInput,
22
22
  ListRealtimeContactAnalysisSegmentsCommandOutput
23
23
  >;
24
+ new (
25
+ __0_0: ListRealtimeContactAnalysisSegmentsCommandInput
26
+ ): import("@smithy/smithy-client").CommandImpl<
27
+ ListRealtimeContactAnalysisSegmentsCommandInput,
28
+ ListRealtimeContactAnalysisSegmentsCommandOutput,
29
+ ConnectContactLensClientResolvedConfig,
30
+ ListRealtimeContactAnalysisSegmentsCommandInput,
31
+ ListRealtimeContactAnalysisSegmentsCommandOutput
32
+ >;
24
33
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
34
  };
26
35
  export declare class ListRealtimeContactAnalysisSegmentsCommand extends ListRealtimeContactAnalysisSegmentsCommand_base {}
@@ -6,5 +6,4 @@ export { ConnectContactLensExtensionConfiguration } from "./extensionConfigurati
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./models";
9
- import "@aws-sdk/util-endpoints";
10
9
  export { ConnectContactLensServiceException } from "./models/ConnectContactLensServiceException";
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.533.0",
4
+ "version": "3.540.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-connect-contact-lens",
@@ -20,47 +20,47 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.533.0",
24
- "@aws-sdk/core": "3.533.0",
25
- "@aws-sdk/credential-provider-node": "3.533.0",
26
- "@aws-sdk/middleware-host-header": "3.533.0",
27
- "@aws-sdk/middleware-logger": "3.533.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.533.0",
29
- "@aws-sdk/middleware-user-agent": "3.533.0",
30
- "@aws-sdk/region-config-resolver": "3.533.0",
31
- "@aws-sdk/types": "3.533.0",
32
- "@aws-sdk/util-endpoints": "3.533.0",
33
- "@aws-sdk/util-user-agent-browser": "3.533.0",
34
- "@aws-sdk/util-user-agent-node": "3.533.0",
35
- "@smithy/config-resolver": "^2.1.5",
36
- "@smithy/core": "^1.3.8",
37
- "@smithy/fetch-http-handler": "^2.4.5",
38
- "@smithy/hash-node": "^2.1.4",
39
- "@smithy/invalid-dependency": "^2.1.4",
40
- "@smithy/middleware-content-length": "^2.1.4",
41
- "@smithy/middleware-endpoint": "^2.4.6",
42
- "@smithy/middleware-retry": "^2.1.7",
43
- "@smithy/middleware-serde": "^2.2.1",
44
- "@smithy/middleware-stack": "^2.1.4",
45
- "@smithy/node-config-provider": "^2.2.5",
46
- "@smithy/node-http-handler": "^2.4.3",
47
- "@smithy/protocol-http": "^3.2.2",
48
- "@smithy/smithy-client": "^2.4.5",
49
- "@smithy/types": "^2.11.0",
50
- "@smithy/url-parser": "^2.1.4",
51
- "@smithy/util-base64": "^2.2.1",
52
- "@smithy/util-body-length-browser": "^2.1.1",
53
- "@smithy/util-body-length-node": "^2.2.2",
54
- "@smithy/util-defaults-mode-browser": "^2.1.7",
55
- "@smithy/util-defaults-mode-node": "^2.2.7",
56
- "@smithy/util-endpoints": "^1.1.5",
57
- "@smithy/util-middleware": "^2.1.4",
58
- "@smithy/util-retry": "^2.1.4",
59
- "@smithy/util-utf8": "^2.2.0",
60
- "tslib": "^2.5.0"
23
+ "@aws-sdk/client-sts": "3.540.0",
24
+ "@aws-sdk/core": "3.535.0",
25
+ "@aws-sdk/credential-provider-node": "3.540.0",
26
+ "@aws-sdk/middleware-host-header": "3.535.0",
27
+ "@aws-sdk/middleware-logger": "3.535.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.535.0",
29
+ "@aws-sdk/middleware-user-agent": "3.540.0",
30
+ "@aws-sdk/region-config-resolver": "3.535.0",
31
+ "@aws-sdk/types": "3.535.0",
32
+ "@aws-sdk/util-endpoints": "3.540.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.535.0",
34
+ "@aws-sdk/util-user-agent-node": "3.535.0",
35
+ "@smithy/config-resolver": "^2.2.0",
36
+ "@smithy/core": "^1.4.0",
37
+ "@smithy/fetch-http-handler": "^2.5.0",
38
+ "@smithy/hash-node": "^2.2.0",
39
+ "@smithy/invalid-dependency": "^2.2.0",
40
+ "@smithy/middleware-content-length": "^2.2.0",
41
+ "@smithy/middleware-endpoint": "^2.5.0",
42
+ "@smithy/middleware-retry": "^2.2.0",
43
+ "@smithy/middleware-serde": "^2.3.0",
44
+ "@smithy/middleware-stack": "^2.2.0",
45
+ "@smithy/node-config-provider": "^2.3.0",
46
+ "@smithy/node-http-handler": "^2.5.0",
47
+ "@smithy/protocol-http": "^3.3.0",
48
+ "@smithy/smithy-client": "^2.5.0",
49
+ "@smithy/types": "^2.12.0",
50
+ "@smithy/url-parser": "^2.2.0",
51
+ "@smithy/util-base64": "^2.3.0",
52
+ "@smithy/util-body-length-browser": "^2.2.0",
53
+ "@smithy/util-body-length-node": "^2.3.0",
54
+ "@smithy/util-defaults-mode-browser": "^2.2.0",
55
+ "@smithy/util-defaults-mode-node": "^2.3.0",
56
+ "@smithy/util-endpoints": "^1.2.0",
57
+ "@smithy/util-middleware": "^2.2.0",
58
+ "@smithy/util-retry": "^2.2.0",
59
+ "@smithy/util-utf8": "^2.3.0",
60
+ "tslib": "^2.6.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@smithy/service-client-documentation-generator": "^2.1.1",
63
+ "@smithy/service-client-documentation-generator": "^2.2.0",
64
64
  "@tsconfig/node14": "1.0.3",
65
65
  "@types/node": "^14.14.31",
66
66
  "concurrently": "7.0.0",