@aws-sdk/client-connect-contact-lens 3.614.0 → 3.618.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/README.md +19 -6
- package/dist-cjs/index.js +20 -5
- package/dist-es/ConnectContactLensClient.js +5 -5
- package/dist-es/models/models_0.js +11 -0
- package/dist-types/ConnectContactLens.d.ts +20 -7
- package/dist-types/ConnectContactLensClient.d.ts +22 -9
- package/dist-types/commands/ListRealtimeContactAnalysisSegmentsCommand.d.ts +5 -0
- package/dist-types/index.d.ts +20 -7
- package/dist-types/models/models_0.d.ts +100 -13
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/ConnectContactLensClient.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +21 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +17 -17
package/README.md
CHANGED
|
@@ -6,13 +6,26 @@
|
|
|
6
6
|
|
|
7
7
|
AWS SDK for JavaScript ConnectContactLens Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<ul>
|
|
10
|
+
<li>
|
|
11
|
+
<p>
|
|
12
|
+
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Contact_Lens.html">Contact Lens actions</a>
|
|
13
|
+
</p>
|
|
14
|
+
</li>
|
|
15
|
+
<li>
|
|
16
|
+
<p>
|
|
17
|
+
<a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Contact_Lens.html">Contact Lens data types</a>
|
|
18
|
+
</p>
|
|
19
|
+
</li>
|
|
20
|
+
</ul>
|
|
21
|
+
<p>Amazon Connect Contact Lens enables you to analyze conversations between customer and agents, by using
|
|
22
|
+
speech transcription, natural language processing, and intelligent search capabilities.
|
|
23
|
+
It performs sentiment analysis, detects issues, and enables you to automatically
|
|
12
24
|
categorize contacts.</p>
|
|
13
|
-
<p>Contact Lens
|
|
14
|
-
conversations. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html">Analyze conversations
|
|
15
|
-
|
|
25
|
+
<p>Amazon Connect Contact Lens provides both real-time and post-call analytics of customer-agent
|
|
26
|
+
conversations. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html">Analyze conversations
|
|
27
|
+
using speech analytics</a> in the <i>Amazon Connect Administrator
|
|
28
|
+
Guide</i>. </p>
|
|
16
29
|
|
|
17
30
|
## Installing
|
|
18
31
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -29,6 +29,8 @@ __export(src_exports, {
|
|
|
29
29
|
InternalServiceException: () => InternalServiceException,
|
|
30
30
|
InvalidRequestException: () => InvalidRequestException,
|
|
31
31
|
ListRealtimeContactAnalysisSegmentsCommand: () => ListRealtimeContactAnalysisSegmentsCommand,
|
|
32
|
+
PostContactSummaryFailureCode: () => PostContactSummaryFailureCode,
|
|
33
|
+
PostContactSummaryStatus: () => PostContactSummaryStatus,
|
|
32
34
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
33
35
|
SentimentValue: () => SentimentValue,
|
|
34
36
|
ThrottlingException: () => ThrottlingException,
|
|
@@ -139,19 +141,19 @@ var _ConnectContactLensClient = class _ConnectContactLensClient extends import_s
|
|
|
139
141
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
140
142
|
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
141
143
|
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
142
|
-
const _config_4 = (0,
|
|
143
|
-
const _config_5 = (0,
|
|
144
|
-
const _config_6 = (0,
|
|
144
|
+
const _config_4 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_3);
|
|
145
|
+
const _config_5 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_4);
|
|
146
|
+
const _config_6 = (0, import_middleware_retry.resolveRetryConfig)(_config_5);
|
|
145
147
|
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
146
148
|
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
147
149
|
super(_config_8);
|
|
148
150
|
this.config = _config_8;
|
|
149
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
150
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
151
151
|
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
152
152
|
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
153
153
|
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
154
154
|
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
155
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
156
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
155
157
|
this.middlewareStack.use(
|
|
156
158
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
157
159
|
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
@@ -262,6 +264,17 @@ var _InvalidRequestException = class _InvalidRequestException extends ConnectCon
|
|
|
262
264
|
};
|
|
263
265
|
__name(_InvalidRequestException, "InvalidRequestException");
|
|
264
266
|
var InvalidRequestException = _InvalidRequestException;
|
|
267
|
+
var PostContactSummaryFailureCode = {
|
|
268
|
+
FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES",
|
|
269
|
+
INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT",
|
|
270
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
271
|
+
INVALID_ANALYSIS_CONFIGURATION: "INVALID_ANALYSIS_CONFIGURATION",
|
|
272
|
+
QUOTA_EXCEEDED: "QUOTA_EXCEEDED"
|
|
273
|
+
};
|
|
274
|
+
var PostContactSummaryStatus = {
|
|
275
|
+
COMPLETED: "COMPLETED",
|
|
276
|
+
FAILED: "FAILED"
|
|
277
|
+
};
|
|
265
278
|
var SentimentValue = {
|
|
266
279
|
NEGATIVE: "NEGATIVE",
|
|
267
280
|
NEUTRAL: "NEUTRAL",
|
|
@@ -481,6 +494,8 @@ var paginateListRealtimeContactAnalysisSegments = (0, import_core.createPaginato
|
|
|
481
494
|
AccessDeniedException,
|
|
482
495
|
InternalServiceException,
|
|
483
496
|
InvalidRequestException,
|
|
497
|
+
PostContactSummaryFailureCode,
|
|
498
|
+
PostContactSummaryStatus,
|
|
484
499
|
SentimentValue,
|
|
485
500
|
ResourceNotFoundException,
|
|
486
501
|
ThrottlingException
|
|
@@ -19,19 +19,19 @@ export class ConnectContactLensClient extends __Client {
|
|
|
19
19
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
20
20
|
const _config_2 = resolveRegionConfig(_config_1);
|
|
21
21
|
const _config_3 = resolveEndpointConfig(_config_2);
|
|
22
|
-
const _config_4 =
|
|
23
|
-
const _config_5 =
|
|
24
|
-
const _config_6 =
|
|
22
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
23
|
+
const _config_5 = resolveUserAgentConfig(_config_4);
|
|
24
|
+
const _config_6 = resolveRetryConfig(_config_5);
|
|
25
25
|
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
26
26
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
27
27
|
super(_config_8);
|
|
28
28
|
this.config = _config_8;
|
|
29
|
-
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
30
|
-
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
31
29
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
32
30
|
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
33
31
|
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
34
32
|
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
34
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
35
35
|
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
36
36
|
httpAuthSchemeParametersProvider: this.getDefaultHttpAuthSchemeParametersProvider(),
|
|
37
37
|
identityProviderConfigProvider: this.getIdentityProviderConfigProvider(),
|
|
@@ -38,6 +38,17 @@ export class InvalidRequestException extends __BaseException {
|
|
|
38
38
|
this.Message = opts.Message;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
export const PostContactSummaryFailureCode = {
|
|
42
|
+
FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES",
|
|
43
|
+
INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT",
|
|
44
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
45
|
+
INVALID_ANALYSIS_CONFIGURATION: "INVALID_ANALYSIS_CONFIGURATION",
|
|
46
|
+
QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
|
|
47
|
+
};
|
|
48
|
+
export const PostContactSummaryStatus = {
|
|
49
|
+
COMPLETED: "COMPLETED",
|
|
50
|
+
FAILED: "FAILED",
|
|
51
|
+
};
|
|
41
52
|
export const SentimentValue = {
|
|
42
53
|
NEGATIVE: "NEGATIVE",
|
|
43
54
|
NEUTRAL: "NEUTRAL",
|
|
@@ -10,13 +10,26 @@ export interface ConnectContactLens {
|
|
|
10
10
|
listRealtimeContactAnalysisSegments(args: ListRealtimeContactAnalysisSegmentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRealtimeContactAnalysisSegmentsCommandOutput) => void): void;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* <
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
13
|
+
* <ul>
|
|
14
|
+
* <li>
|
|
15
|
+
* <p>
|
|
16
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Contact_Lens.html">Contact Lens actions</a>
|
|
17
|
+
* </p>
|
|
18
|
+
* </li>
|
|
19
|
+
* <li>
|
|
20
|
+
* <p>
|
|
21
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Contact_Lens.html">Contact Lens data types</a>
|
|
22
|
+
* </p>
|
|
23
|
+
* </li>
|
|
24
|
+
* </ul>
|
|
25
|
+
* <p>Amazon Connect Contact Lens enables you to analyze conversations between customer and agents, by using
|
|
26
|
+
* speech transcription, natural language processing, and intelligent search capabilities.
|
|
27
|
+
* It performs sentiment analysis, detects issues, and enables you to automatically
|
|
28
|
+
* categorize contacts.</p>
|
|
29
|
+
* <p>Amazon Connect Contact Lens provides both real-time and post-call analytics of customer-agent
|
|
30
|
+
* conversations. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html">Analyze conversations
|
|
31
|
+
* using speech analytics</a> in the <i>Amazon Connect Administrator
|
|
32
|
+
* Guide</i>. </p>
|
|
20
33
|
* @public
|
|
21
34
|
*/
|
|
22
35
|
export declare class ConnectContactLens extends ConnectContactLensClient implements ConnectContactLens {
|
|
@@ -132,7 +132,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
132
132
|
/**
|
|
133
133
|
* @public
|
|
134
134
|
*/
|
|
135
|
-
export type ConnectContactLensClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> &
|
|
135
|
+
export type ConnectContactLensClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & HostHeaderInputConfig & UserAgentInputConfig & RetryInputConfig & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
136
136
|
/**
|
|
137
137
|
* @public
|
|
138
138
|
*
|
|
@@ -143,7 +143,7 @@ export interface ConnectContactLensClientConfig extends ConnectContactLensClient
|
|
|
143
143
|
/**
|
|
144
144
|
* @public
|
|
145
145
|
*/
|
|
146
|
-
export type ConnectContactLensClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> &
|
|
146
|
+
export type ConnectContactLensClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HostHeaderResolvedConfig & UserAgentResolvedConfig & RetryResolvedConfig & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
147
147
|
/**
|
|
148
148
|
* @public
|
|
149
149
|
*
|
|
@@ -152,13 +152,26 @@ export type ConnectContactLensClientResolvedConfigType = __SmithyResolvedConfigu
|
|
|
152
152
|
export interface ConnectContactLensClientResolvedConfig extends ConnectContactLensClientResolvedConfigType {
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
|
-
* <
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
155
|
+
* <ul>
|
|
156
|
+
* <li>
|
|
157
|
+
* <p>
|
|
158
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Contact_Lens.html">Contact Lens actions</a>
|
|
159
|
+
* </p>
|
|
160
|
+
* </li>
|
|
161
|
+
* <li>
|
|
162
|
+
* <p>
|
|
163
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Contact_Lens.html">Contact Lens data types</a>
|
|
164
|
+
* </p>
|
|
165
|
+
* </li>
|
|
166
|
+
* </ul>
|
|
167
|
+
* <p>Amazon Connect Contact Lens enables you to analyze conversations between customer and agents, by using
|
|
168
|
+
* speech transcription, natural language processing, and intelligent search capabilities.
|
|
169
|
+
* It performs sentiment analysis, detects issues, and enables you to automatically
|
|
170
|
+
* categorize contacts.</p>
|
|
171
|
+
* <p>Amazon Connect Contact Lens provides both real-time and post-call analytics of customer-agent
|
|
172
|
+
* conversations. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html">Analyze conversations
|
|
173
|
+
* using speech analytics</a> in the <i>Amazon Connect Administrator
|
|
174
|
+
* Guide</i>. </p>
|
|
162
175
|
* @public
|
|
163
176
|
*/
|
|
164
177
|
export declare class ConnectContactLensClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, ConnectContactLensClientResolvedConfig> {
|
|
@@ -77,6 +77,11 @@ declare const ListRealtimeContactAnalysisSegmentsCommand_base: {
|
|
|
77
77
|
* // },
|
|
78
78
|
* // },
|
|
79
79
|
* // },
|
|
80
|
+
* // PostContactSummary: { // PostContactSummary
|
|
81
|
+
* // Content: "STRING_VALUE",
|
|
82
|
+
* // Status: "FAILED" || "COMPLETED", // required
|
|
83
|
+
* // FailureCode: "QUOTA_EXCEEDED" || "INSUFFICIENT_CONVERSATION_CONTENT" || "FAILED_SAFETY_GUIDELINES" || "INVALID_ANALYSIS_CONFIGURATION" || "INTERNAL_ERROR",
|
|
84
|
+
* // },
|
|
80
85
|
* // },
|
|
81
86
|
* // ],
|
|
82
87
|
* // NextToken: "STRING_VALUE",
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* <
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
2
|
+
* <ul>
|
|
3
|
+
* <li>
|
|
4
|
+
* <p>
|
|
5
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Operations_Amazon_Connect_Contact_Lens.html">Contact Lens actions</a>
|
|
6
|
+
* </p>
|
|
7
|
+
* </li>
|
|
8
|
+
* <li>
|
|
9
|
+
* <p>
|
|
10
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_Types_Amazon_Connect_Contact_Lens.html">Contact Lens data types</a>
|
|
11
|
+
* </p>
|
|
12
|
+
* </li>
|
|
13
|
+
* </ul>
|
|
14
|
+
* <p>Amazon Connect Contact Lens enables you to analyze conversations between customer and agents, by using
|
|
15
|
+
* speech transcription, natural language processing, and intelligent search capabilities.
|
|
16
|
+
* It performs sentiment analysis, detects issues, and enables you to automatically
|
|
17
|
+
* categorize contacts.</p>
|
|
18
|
+
* <p>Amazon Connect Contact Lens provides both real-time and post-call analytics of customer-agent
|
|
19
|
+
* conversations. For more information, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/analyze-conversations.html">Analyze conversations
|
|
20
|
+
* using speech analytics</a> in the <i>Amazon Connect Administrator
|
|
21
|
+
* Guide</i>. </p>
|
|
9
22
|
*
|
|
10
23
|
* @packageDocumentation
|
|
11
24
|
*/
|
|
@@ -54,7 +54,7 @@ export interface ListRealtimeContactAnalysisSegmentsRequest {
|
|
|
54
54
|
*/
|
|
55
55
|
ContactId: string | undefined;
|
|
56
56
|
/**
|
|
57
|
-
* <p>The
|
|
57
|
+
* <p>The maximum number of results to return per page.</p>
|
|
58
58
|
* @public
|
|
59
59
|
*/
|
|
60
60
|
MaxResults?: number;
|
|
@@ -93,8 +93,8 @@ export interface CategoryDetails {
|
|
|
93
93
|
PointsOfInterest: PointOfInterest[] | undefined;
|
|
94
94
|
}
|
|
95
95
|
/**
|
|
96
|
-
* <p>Provides the category rules that are used to automatically categorize contacts based
|
|
97
|
-
*
|
|
96
|
+
* <p>Provides the category rules that are used to automatically categorize contacts based
|
|
97
|
+
* on uttered keywords and phrases.</p>
|
|
98
98
|
* @public
|
|
99
99
|
*/
|
|
100
100
|
export interface Categories {
|
|
@@ -110,7 +110,87 @@ export interface Categories {
|
|
|
110
110
|
MatchedDetails: Record<string, CategoryDetails> | undefined;
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* @public
|
|
114
|
+
* @enum
|
|
115
|
+
*/
|
|
116
|
+
export declare const PostContactSummaryFailureCode: {
|
|
117
|
+
readonly FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES";
|
|
118
|
+
readonly INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT";
|
|
119
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
120
|
+
readonly INVALID_ANALYSIS_CONFIGURATION: "INVALID_ANALYSIS_CONFIGURATION";
|
|
121
|
+
readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export type PostContactSummaryFailureCode = (typeof PostContactSummaryFailureCode)[keyof typeof PostContactSummaryFailureCode];
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
* @enum
|
|
130
|
+
*/
|
|
131
|
+
export declare const PostContactSummaryStatus: {
|
|
132
|
+
readonly COMPLETED: "COMPLETED";
|
|
133
|
+
readonly FAILED: "FAILED";
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
export type PostContactSummaryStatus = (typeof PostContactSummaryStatus)[keyof typeof PostContactSummaryStatus];
|
|
139
|
+
/**
|
|
140
|
+
* <p>Information about the post-contact summary.</p>
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
export interface PostContactSummary {
|
|
144
|
+
/**
|
|
145
|
+
* <p>The content of the summary.</p>
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
Content?: string;
|
|
149
|
+
/**
|
|
150
|
+
* <p>Whether the summary was successfully COMPLETED or FAILED to be generated.</p>
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
Status: PostContactSummaryStatus | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* <p>If the summary failed to be generated, one of the following failure codes
|
|
156
|
+
* occurs:</p>
|
|
157
|
+
* <ul>
|
|
158
|
+
* <li>
|
|
159
|
+
* <p>
|
|
160
|
+
* <code>QUOTA_EXCEEDED</code>: The number of concurrent analytics jobs reached
|
|
161
|
+
* your service quota.</p>
|
|
162
|
+
* </li>
|
|
163
|
+
* <li>
|
|
164
|
+
* <p>
|
|
165
|
+
* <code>INSUFFICIENT_CONVERSATION_CONTENT</code>: The conversation needs to have
|
|
166
|
+
* at least one turn from both the participants in order to generate the
|
|
167
|
+
* summary.</p>
|
|
168
|
+
* </li>
|
|
169
|
+
* <li>
|
|
170
|
+
* <p>
|
|
171
|
+
* <code>FAILED_SAFETY_GUIDELINES</code>: The generated summary cannot be
|
|
172
|
+
* provided because it failed to meet system safety guidelines.</p>
|
|
173
|
+
* </li>
|
|
174
|
+
* <li>
|
|
175
|
+
* <p>
|
|
176
|
+
* <code>INVALID_ANALYSIS_CONFIGURATION</code>: This code occurs when, for
|
|
177
|
+
* example, you're using a
|
|
178
|
+
* <a href="https://docs.aws.amazon.com/connect/latest/adminguide/supported-languages.html#supported-languages-contact-lens">language</a>
|
|
179
|
+
* that isn't supported by generative AI-powered post-contact summaries.
|
|
180
|
+
* </p>
|
|
181
|
+
* </li>
|
|
182
|
+
* <li>
|
|
183
|
+
* <p>
|
|
184
|
+
* <code>INTERNAL_ERROR</code>: Internal system error.</p>
|
|
185
|
+
* </li>
|
|
186
|
+
* </ul>
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
FailureCode?: PostContactSummaryFailureCode;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* <p>For characters that were detected as issues, where they occur in the
|
|
193
|
+
* transcript.</p>
|
|
114
194
|
* @public
|
|
115
195
|
*/
|
|
116
196
|
export interface CharacterOffsets {
|
|
@@ -126,8 +206,8 @@ export interface CharacterOffsets {
|
|
|
126
206
|
EndOffsetChar: number | undefined;
|
|
127
207
|
}
|
|
128
208
|
/**
|
|
129
|
-
* <p>Potential issues that are detected based on an artificial intelligence analysis of
|
|
130
|
-
*
|
|
209
|
+
* <p>Potential issues that are detected based on an artificial intelligence analysis of
|
|
210
|
+
* each turn in the conversation.</p>
|
|
131
211
|
* @public
|
|
132
212
|
*/
|
|
133
213
|
export interface IssueDetected {
|
|
@@ -161,7 +241,7 @@ export interface Transcript {
|
|
|
161
241
|
*/
|
|
162
242
|
Id: string | undefined;
|
|
163
243
|
/**
|
|
164
|
-
* <p>The identifier of the participant.</p>
|
|
244
|
+
* <p>The identifier of the participant. Valid values are CUSTOMER or AGENT.</p>
|
|
165
245
|
* @public
|
|
166
246
|
*/
|
|
167
247
|
ParticipantId: string | undefined;
|
|
@@ -186,7 +266,7 @@ export interface Transcript {
|
|
|
186
266
|
*/
|
|
187
267
|
EndOffsetMillis: number | undefined;
|
|
188
268
|
/**
|
|
189
|
-
* <p>The sentiment
|
|
269
|
+
* <p>The sentiment detected for this piece of transcript.</p>
|
|
190
270
|
* @public
|
|
191
271
|
*/
|
|
192
272
|
Sentiment: SentimentValue | undefined;
|
|
@@ -211,6 +291,11 @@ export interface RealtimeContactAnalysisSegment {
|
|
|
211
291
|
* @public
|
|
212
292
|
*/
|
|
213
293
|
Categories?: Categories;
|
|
294
|
+
/**
|
|
295
|
+
* <p>Information about the post-contact summary.</p>
|
|
296
|
+
* @public
|
|
297
|
+
*/
|
|
298
|
+
PostContactSummary?: PostContactSummary;
|
|
214
299
|
}
|
|
215
300
|
/**
|
|
216
301
|
* @public
|
|
@@ -222,18 +307,20 @@ export interface ListRealtimeContactAnalysisSegmentsResponse {
|
|
|
222
307
|
*/
|
|
223
308
|
Segments: RealtimeContactAnalysisSegment[] | undefined;
|
|
224
309
|
/**
|
|
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
|
|
310
|
+
* <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
|
|
311
|
+
* scenarios:</p>
|
|
226
312
|
* <ul>
|
|
227
313
|
* <li>
|
|
228
314
|
* <p>There are more segments so another call is required to get them.</p>
|
|
229
315
|
* </li>
|
|
230
316
|
* <li>
|
|
231
|
-
* <p>There are no more segments at this time, but more may be available later
|
|
232
|
-
*
|
|
233
|
-
*
|
|
317
|
+
* <p>There are no more segments at this time, but more may be available later
|
|
318
|
+
* (real-time analysis is in progress) so the client should call the operation
|
|
319
|
+
* again to get new segments.</p>
|
|
234
320
|
* </li>
|
|
235
321
|
* </ul>
|
|
236
|
-
* <p>If response does not include <code>nextToken</code>, the analysis is completed
|
|
322
|
+
* <p>If response does not include <code>nextToken</code>, the analysis is completed
|
|
323
|
+
* (successfully or failed) and there are no more segments to retrieve.</p>
|
|
237
324
|
* @public
|
|
238
325
|
*/
|
|
239
326
|
NextToken?: string;
|
|
@@ -32,8 +32,8 @@ export declare const getRuntimeConfig: (config: ConnectContactLensClientConfig)
|
|
|
32
32
|
logger?: import("@smithy/types").Logger | undefined;
|
|
33
33
|
}) => import("@smithy/types").EndpointV2;
|
|
34
34
|
tls?: boolean | undefined;
|
|
35
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
36
35
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
36
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
37
37
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
38
38
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ConnectContactLensHttpAuthSchemeProvider;
|
|
39
39
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -32,8 +32,8 @@ export declare const getRuntimeConfig: (config: ConnectContactLensClientConfig)
|
|
|
32
32
|
logger?: import("@smithy/types").Logger | undefined;
|
|
33
33
|
}) => import("@smithy/types").EndpointV2;
|
|
34
34
|
tls?: boolean | undefined;
|
|
35
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
36
35
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
36
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
37
37
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
38
38
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ConnectContactLensHttpAuthSchemeProvider;
|
|
39
39
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -31,8 +31,8 @@ export declare const getRuntimeConfig: (config: ConnectContactLensClientConfig)
|
|
|
31
31
|
logger?: import("@smithy/types").Logger | undefined;
|
|
32
32
|
}) => import("@smithy/types").EndpointV2;
|
|
33
33
|
tls?: boolean | undefined;
|
|
34
|
-
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
35
34
|
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
35
|
+
retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
|
|
36
36
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
37
37
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ConnectContactLensHttpAuthSchemeProvider;
|
|
38
38
|
credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").AwsCredentialIdentityProvider | undefined;
|
|
@@ -90,9 +90,9 @@ export type ConnectContactLensClientConfigType = Partial<
|
|
|
90
90
|
ClientDefaults &
|
|
91
91
|
RegionInputConfig &
|
|
92
92
|
EndpointInputConfig<EndpointParameters> &
|
|
93
|
-
RetryInputConfig &
|
|
94
93
|
HostHeaderInputConfig &
|
|
95
94
|
UserAgentInputConfig &
|
|
95
|
+
RetryInputConfig &
|
|
96
96
|
HttpAuthSchemeInputConfig &
|
|
97
97
|
ClientInputEndpointParameters;
|
|
98
98
|
export interface ConnectContactLensClientConfig
|
|
@@ -103,9 +103,9 @@ export type ConnectContactLensClientResolvedConfigType =
|
|
|
103
103
|
RuntimeExtensionsConfig &
|
|
104
104
|
RegionResolvedConfig &
|
|
105
105
|
EndpointResolvedConfig<EndpointParameters> &
|
|
106
|
-
RetryResolvedConfig &
|
|
107
106
|
HostHeaderResolvedConfig &
|
|
108
107
|
UserAgentResolvedConfig &
|
|
108
|
+
RetryResolvedConfig &
|
|
109
109
|
HttpAuthSchemeResolvedConfig &
|
|
110
110
|
ClientResolvedEndpointParameters;
|
|
111
111
|
export interface ConnectContactLensClientResolvedConfig
|
|
@@ -41,6 +41,26 @@ export interface Categories {
|
|
|
41
41
|
MatchedCategories: string[] | undefined;
|
|
42
42
|
MatchedDetails: Record<string, CategoryDetails> | undefined;
|
|
43
43
|
}
|
|
44
|
+
export declare const PostContactSummaryFailureCode: {
|
|
45
|
+
readonly FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES";
|
|
46
|
+
readonly INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT";
|
|
47
|
+
readonly INTERNAL_ERROR: "INTERNAL_ERROR";
|
|
48
|
+
readonly INVALID_ANALYSIS_CONFIGURATION: "INVALID_ANALYSIS_CONFIGURATION";
|
|
49
|
+
readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
|
|
50
|
+
};
|
|
51
|
+
export type PostContactSummaryFailureCode =
|
|
52
|
+
(typeof PostContactSummaryFailureCode)[keyof typeof PostContactSummaryFailureCode];
|
|
53
|
+
export declare const PostContactSummaryStatus: {
|
|
54
|
+
readonly COMPLETED: "COMPLETED";
|
|
55
|
+
readonly FAILED: "FAILED";
|
|
56
|
+
};
|
|
57
|
+
export type PostContactSummaryStatus =
|
|
58
|
+
(typeof PostContactSummaryStatus)[keyof typeof PostContactSummaryStatus];
|
|
59
|
+
export interface PostContactSummary {
|
|
60
|
+
Content?: string;
|
|
61
|
+
Status: PostContactSummaryStatus | undefined;
|
|
62
|
+
FailureCode?: PostContactSummaryFailureCode;
|
|
63
|
+
}
|
|
44
64
|
export interface CharacterOffsets {
|
|
45
65
|
BeginOffsetChar: number | undefined;
|
|
46
66
|
EndOffsetChar: number | undefined;
|
|
@@ -68,6 +88,7 @@ export interface Transcript {
|
|
|
68
88
|
export interface RealtimeContactAnalysisSegment {
|
|
69
89
|
Transcript?: Transcript;
|
|
70
90
|
Categories?: Categories;
|
|
91
|
+
PostContactSummary?: PostContactSummary;
|
|
71
92
|
}
|
|
72
93
|
export interface ListRealtimeContactAnalysisSegmentsResponse {
|
|
73
94
|
Segments: RealtimeContactAnalysisSegment[] | undefined;
|
|
@@ -58,11 +58,11 @@ export declare const getRuntimeConfig: (
|
|
|
58
58
|
}
|
|
59
59
|
) => import("@smithy/types").EndpointV2;
|
|
60
60
|
tls?: boolean | undefined;
|
|
61
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
61
62
|
retryStrategy?:
|
|
62
63
|
| import("@smithy/types").RetryStrategy
|
|
63
64
|
| import("@smithy/types").RetryStrategyV2
|
|
64
65
|
| undefined;
|
|
65
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
66
66
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
67
67
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ConnectContactLensHttpAuthSchemeProvider;
|
|
68
68
|
credentials?:
|
|
@@ -62,11 +62,11 @@ export declare const getRuntimeConfig: (
|
|
|
62
62
|
}
|
|
63
63
|
) => import("@smithy/types").EndpointV2;
|
|
64
64
|
tls?: boolean | undefined;
|
|
65
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
65
66
|
retryStrategy?:
|
|
66
67
|
| import("@smithy/types").RetryStrategy
|
|
67
68
|
| import("@smithy/types").RetryStrategyV2
|
|
68
69
|
| undefined;
|
|
69
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
70
70
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
71
71
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ConnectContactLensHttpAuthSchemeProvider;
|
|
72
72
|
credentials?:
|
|
@@ -52,11 +52,11 @@ export declare const getRuntimeConfig: (
|
|
|
52
52
|
}
|
|
53
53
|
) => import("@smithy/types").EndpointV2;
|
|
54
54
|
tls?: boolean | undefined;
|
|
55
|
+
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
55
56
|
retryStrategy?:
|
|
56
57
|
| import("@smithy/types").RetryStrategy
|
|
57
58
|
| import("@smithy/types").RetryStrategyV2
|
|
58
59
|
| undefined;
|
|
59
|
-
customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
|
|
60
60
|
httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
|
|
61
61
|
httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").ConnectContactLensHttpAuthSchemeProvider;
|
|
62
62
|
credentials?:
|
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.
|
|
4
|
+
"version": "3.618.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,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/core": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.616.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.616.0",
|
|
25
|
+
"@aws-sdk/core": "3.616.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.616.0",
|
|
27
|
+
"@aws-sdk/middleware-host-header": "3.616.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.616.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.616.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
32
32
|
"@aws-sdk/types": "3.609.0",
|
|
33
33
|
"@aws-sdk/util-endpoints": "3.614.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.5",
|
|
37
|
-
"@smithy/core": "^2.2.
|
|
38
|
-
"@smithy/fetch-http-handler": "^3.2.
|
|
37
|
+
"@smithy/core": "^2.2.7",
|
|
38
|
+
"@smithy/fetch-http-handler": "^3.2.2",
|
|
39
39
|
"@smithy/hash-node": "^3.0.3",
|
|
40
40
|
"@smithy/invalid-dependency": "^3.0.3",
|
|
41
|
-
"@smithy/middleware-content-length": "^3.0.
|
|
41
|
+
"@smithy/middleware-content-length": "^3.0.4",
|
|
42
42
|
"@smithy/middleware-endpoint": "^3.0.5",
|
|
43
|
-
"@smithy/middleware-retry": "^3.0.
|
|
43
|
+
"@smithy/middleware-retry": "^3.0.10",
|
|
44
44
|
"@smithy/middleware-serde": "^3.0.3",
|
|
45
45
|
"@smithy/middleware-stack": "^3.0.3",
|
|
46
46
|
"@smithy/node-config-provider": "^3.1.4",
|
|
47
|
-
"@smithy/node-http-handler": "^3.1.
|
|
48
|
-
"@smithy/protocol-http": "^4.0.
|
|
49
|
-
"@smithy/smithy-client": "^3.1.
|
|
47
|
+
"@smithy/node-http-handler": "^3.1.3",
|
|
48
|
+
"@smithy/protocol-http": "^4.0.4",
|
|
49
|
+
"@smithy/smithy-client": "^3.1.8",
|
|
50
50
|
"@smithy/types": "^3.3.0",
|
|
51
51
|
"@smithy/url-parser": "^3.0.3",
|
|
52
52
|
"@smithy/util-base64": "^3.0.0",
|
|
53
53
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
54
54
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^3.0.10",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^3.0.10",
|
|
57
57
|
"@smithy/util-endpoints": "^2.0.5",
|
|
58
58
|
"@smithy/util-middleware": "^3.0.3",
|
|
59
59
|
"@smithy/util-retry": "^3.0.3",
|