@aws-sdk/client-connect-contact-lens 3.1116.0 → 3.1118.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/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1115.0";
72
+ var version = "3.1117.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -217,8 +217,15 @@ const _CD = "CategoryDetails";
217
217
  const _CI = "ContactId";
218
218
  const _CO = "CharacterOffsets";
219
219
  const _Co = "Content";
220
+ const _EDDL = "ExtractionDefinitionDisplayLabel";
221
+ const _EDI = "ExtractionDefinitionId";
222
+ const _EDN = "ExtractionDefinitionName";
223
+ const _EI = "ExtractedInformation";
224
+ const _EIV = "ExtractedInformationValue";
225
+ const _EIVx = "ExtractedInformationValues";
220
226
  const _EOC = "EndOffsetChar";
221
227
  const _EOM = "EndOffsetMillis";
228
+ const _EV = "ExtractedValues";
222
229
  const _FC = "FailureCode";
223
230
  const _I = "Id";
224
231
  const _ID = "IssueDetected";
@@ -307,6 +314,16 @@ var CharacterOffsets$ = [3, n0, _CO,
307
314
  [_BOC, _EOC],
308
315
  [1, 1], 2
309
316
  ];
317
+ var ExtractedInformation$ = [3, n0, _EI,
318
+ 0,
319
+ [_EDI, _EDN, _EDDL, _EV, _FC],
320
+ [0, 0, 0, () => ExtractedInformationValues, 0], 2
321
+ ];
322
+ var ExtractedInformationValue$ = [3, n0, _EIV,
323
+ 0,
324
+ [_Co, _POI],
325
+ [0, () => PointsOfInterest], 2
326
+ ];
310
327
  var IssueDetected$ = [3, n0, _ID,
311
328
  0,
312
329
  [_CO],
@@ -334,14 +351,17 @@ var PostContactSummary$ = [3, n0, _PCS,
334
351
  ];
335
352
  var RealtimeContactAnalysisSegment$ = [3, n0, _RCAS,
336
353
  0,
337
- [_T, _C, _PCS],
338
- [() => Transcript$, () => Categories$, () => PostContactSummary$]
354
+ [_T, _C, _PCS, _EI],
355
+ [() => Transcript$, () => Categories$, () => PostContactSummary$, () => ExtractedInformation$]
339
356
  ];
340
357
  var Transcript$ = [3, n0, _T,
341
358
  0,
342
359
  [_I, _PI, _PR, _Co, _BOM, _EOM, _Se, _IDs],
343
360
  [0, 0, 0, 0, 1, 1, 0, () => IssuesDetected], 6
344
361
  ];
362
+ var ExtractedInformationValues = [1, n0, _EIVx,
363
+ 0, () => ExtractedInformationValue$
364
+ ];
345
365
  var IssuesDetected = [1, n0, _IDs,
346
366
  0, () => IssueDetected$
347
367
  ];
@@ -523,6 +543,13 @@ class ConnectContactLens extends ConnectContactLensClient {
523
543
  }
524
544
  createAggregatedClient(commands, ConnectContactLens, { paginators });
525
545
 
546
+ const ExtractedInformationFailureCode = {
547
+ FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES",
548
+ INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT",
549
+ INTERNAL_ERROR: "INTERNAL_ERROR",
550
+ MAX_PACKAGE_FEATURE_ONLY: "MAX_PACKAGE_FEATURE_ONLY",
551
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
552
+ };
526
553
  const PostContactSummaryFailureCode = {
527
554
  FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES",
528
555
  INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT",
@@ -549,6 +576,9 @@ exports.ConnectContactLens = ConnectContactLens;
549
576
  exports.ConnectContactLensClient = ConnectContactLensClient;
550
577
  exports.ConnectContactLensServiceException = ConnectContactLensServiceException;
551
578
  exports.ConnectContactLensServiceException$ = ConnectContactLensServiceException$;
579
+ exports.ExtractedInformation$ = ExtractedInformation$;
580
+ exports.ExtractedInformationFailureCode = ExtractedInformationFailureCode;
581
+ exports.ExtractedInformationValue$ = ExtractedInformationValue$;
552
582
  exports.InternalServiceException = InternalServiceException;
553
583
  exports.InternalServiceException$ = InternalServiceException$;
554
584
  exports.InvalidRequestException = InvalidRequestException;
@@ -1,3 +1,10 @@
1
+ export const ExtractedInformationFailureCode = {
2
+ FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES",
3
+ INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT",
4
+ INTERNAL_ERROR: "INTERNAL_ERROR",
5
+ MAX_PACKAGE_FEATURE_ONLY: "MAX_PACKAGE_FEATURE_ONLY",
6
+ QUOTA_EXCEEDED: "QUOTA_EXCEEDED",
7
+ };
1
8
  export const PostContactSummaryFailureCode = {
2
9
  FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES",
3
10
  INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT",
@@ -6,8 +6,15 @@ const _CD = "CategoryDetails";
6
6
  const _CI = "ContactId";
7
7
  const _CO = "CharacterOffsets";
8
8
  const _Co = "Content";
9
+ const _EDDL = "ExtractionDefinitionDisplayLabel";
10
+ const _EDI = "ExtractionDefinitionId";
11
+ const _EDN = "ExtractionDefinitionName";
12
+ const _EI = "ExtractedInformation";
13
+ const _EIV = "ExtractedInformationValue";
14
+ const _EIVx = "ExtractedInformationValues";
9
15
  const _EOC = "EndOffsetChar";
10
16
  const _EOM = "EndOffsetMillis";
17
+ const _EV = "ExtractedValues";
11
18
  const _FC = "FailureCode";
12
19
  const _I = "Id";
13
20
  const _ID = "IssueDetected";
@@ -99,6 +106,16 @@ export var CharacterOffsets$ = [3, n0, _CO,
99
106
  [_BOC, _EOC],
100
107
  [1, 1], 2
101
108
  ];
109
+ export var ExtractedInformation$ = [3, n0, _EI,
110
+ 0,
111
+ [_EDI, _EDN, _EDDL, _EV, _FC],
112
+ [0, 0, 0, () => ExtractedInformationValues, 0], 2
113
+ ];
114
+ export var ExtractedInformationValue$ = [3, n0, _EIV,
115
+ 0,
116
+ [_Co, _POI],
117
+ [0, () => PointsOfInterest], 2
118
+ ];
102
119
  export var IssueDetected$ = [3, n0, _ID,
103
120
  0,
104
121
  [_CO],
@@ -126,14 +143,17 @@ export var PostContactSummary$ = [3, n0, _PCS,
126
143
  ];
127
144
  export var RealtimeContactAnalysisSegment$ = [3, n0, _RCAS,
128
145
  0,
129
- [_T, _C, _PCS],
130
- [() => Transcript$, () => Categories$, () => PostContactSummary$]
146
+ [_T, _C, _PCS, _EI],
147
+ [() => Transcript$, () => Categories$, () => PostContactSummary$, () => ExtractedInformation$]
131
148
  ];
132
149
  export var Transcript$ = [3, n0, _T,
133
150
  0,
134
151
  [_I, _PI, _PR, _Co, _BOM, _EOM, _Se, _IDs],
135
152
  [0, 0, 0, 0, 1, 1, 0, () => IssuesDetected], 6
136
153
  ];
154
+ var ExtractedInformationValues = [1, n0, _EIVx,
155
+ 0, () => ExtractedInformationValue$
156
+ ];
137
157
  var IssuesDetected = [1, n0, _IDs,
138
158
  0, () => IssueDetected$
139
159
  ];
@@ -24,7 +24,12 @@ declare const ListRealtimeContactAnalysisSegmentsCommand_base: {
24
24
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
25
  };
26
26
  /**
27
- * <p>Provides a list of analysis segments for a real-time analysis session.</p>
27
+ * <p>Provides a list of analysis segments for a real-time analysis session for
28
+ * voice.</p>
29
+ * <note>
30
+ * <p>Voice data is retained for 24 hours. You must invoke this API during that
31
+ * time.</p>
32
+ * </note>
28
33
  * @example
29
34
  * Use a bare-bones client and the command you need to make an API call.
30
35
  * ```javascript
@@ -81,6 +86,23 @@ declare const ListRealtimeContactAnalysisSegmentsCommand_base: {
81
86
  * // Status: "FAILED" || "COMPLETED", // required
82
87
  * // FailureCode: "QUOTA_EXCEEDED" || "INSUFFICIENT_CONVERSATION_CONTENT" || "FAILED_SAFETY_GUIDELINES" || "INVALID_ANALYSIS_CONFIGURATION" || "INTERNAL_ERROR",
83
88
  * // },
89
+ * // ExtractedInformation: { // ExtractedInformation
90
+ * // ExtractionDefinitionId: "STRING_VALUE", // required
91
+ * // ExtractionDefinitionName: "STRING_VALUE", // required
92
+ * // ExtractionDefinitionDisplayLabel: "STRING_VALUE",
93
+ * // ExtractedValues: [ // ExtractedInformationValues
94
+ * // { // ExtractedInformationValue
95
+ * // Content: "STRING_VALUE", // required
96
+ * // PointsOfInterest: [ // required
97
+ * // {
98
+ * // BeginOffsetMillis: Number("int"), // required
99
+ * // EndOffsetMillis: Number("int"), // required
100
+ * // },
101
+ * // ],
102
+ * // },
103
+ * // ],
104
+ * // FailureCode: "QUOTA_EXCEEDED" || "INSUFFICIENT_CONVERSATION_CONTENT" || "FAILED_SAFETY_GUIDELINES" || "INTERNAL_ERROR" || "MAX_PACKAGE_FEATURE_ONLY",
105
+ * // },
84
106
  * // },
85
107
  * // ],
86
108
  * // NextToken: "STRING_VALUE",
@@ -1,3 +1,18 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ExtractedInformationFailureCode: {
6
+ readonly FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES";
7
+ readonly INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT";
8
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
9
+ readonly MAX_PACKAGE_FEATURE_ONLY: "MAX_PACKAGE_FEATURE_ONLY";
10
+ readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
11
+ };
12
+ /**
13
+ * @public
14
+ */
15
+ export type ExtractedInformationFailureCode = (typeof ExtractedInformationFailureCode)[keyof typeof ExtractedInformationFailureCode];
1
16
  /**
2
17
  * @public
3
18
  * @enum
@@ -1,4 +1,4 @@
1
- import type { PostContactSummaryFailureCode, PostContactSummaryStatus, SentimentValue } from "./enums";
1
+ import type { ExtractedInformationFailureCode, PostContactSummaryFailureCode, PostContactSummaryStatus, SentimentValue } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -26,17 +26,17 @@ export interface ListRealtimeContactAnalysisSegmentsRequest {
26
26
  NextToken?: string | undefined;
27
27
  }
28
28
  /**
29
- * <p>The section of the contact audio where that category rule was detected.</p>
29
+ * <p>The section of the contact audio where a match was detected.</p>
30
30
  * @public
31
31
  */
32
32
  export interface PointOfInterest {
33
33
  /**
34
- * <p>The beginning offset in milliseconds where the category rule was detected.</p>
34
+ * <p>The beginning offset (in milliseconds) where the match was detected.</p>
35
35
  * @public
36
36
  */
37
37
  BeginOffsetMillis: number | undefined;
38
38
  /**
39
- * <p>The ending offset in milliseconds where the category rule was detected.</p>
39
+ * <p>The ending offset (in milliseconds) where the match was detected.</p>
40
40
  * @public
41
41
  */
42
42
  EndOffsetMillis: number | undefined;
@@ -69,6 +69,84 @@ export interface Categories {
69
69
  */
70
70
  MatchedDetails: Record<string, CategoryDetails> | undefined;
71
71
  }
72
+ /**
73
+ * <p>An individual value extracted from the conversation, including its content and the
74
+ * locations where it was found.</p>
75
+ * @public
76
+ */
77
+ export interface ExtractedInformationValue {
78
+ /**
79
+ * <p>The text content of the extracted value.</p>
80
+ * @public
81
+ */
82
+ Content: string | undefined;
83
+ /**
84
+ * <p>The sections in the conversation that indicate where the extracted value was
85
+ * found.</p>
86
+ * @public
87
+ */
88
+ PointsOfInterest: PointOfInterest[] | undefined;
89
+ }
90
+ /**
91
+ * <p>Segment containing information extracted from the conversation. Each segment
92
+ * represents the results for a single extraction definition.</p>
93
+ * @public
94
+ */
95
+ export interface ExtractedInformation {
96
+ /**
97
+ * <p>The identifier of the extraction definition that produced this result.</p>
98
+ * @public
99
+ */
100
+ ExtractionDefinitionId: string | undefined;
101
+ /**
102
+ * <p>The name of the extraction definition that produced this result.</p>
103
+ * @public
104
+ */
105
+ ExtractionDefinitionName: string | undefined;
106
+ /**
107
+ * <p>The display label of the extraction definition that produced this result.</p>
108
+ * @public
109
+ */
110
+ ExtractionDefinitionDisplayLabel?: string | undefined;
111
+ /**
112
+ * <p>The list of values extracted from the conversation for this extraction definition.
113
+ * This field is empty when a <code>FailureCode</code> is present.</p>
114
+ * @public
115
+ */
116
+ ExtractedValues?: ExtractedInformationValue[] | undefined;
117
+ /**
118
+ * <p>If the information failed to be extracted, one of the following failure codes
119
+ * occurs:</p>
120
+ * <ul>
121
+ * <li>
122
+ * <p>
123
+ * <code>QUOTA_EXCEEDED</code>: The number of concurrent analytics jobs reached
124
+ * your service quota.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>
128
+ * <code>INSUFFICIENT_CONVERSATION_CONTENT</code>: Information extraction requires a
129
+ * conversation with at least one turn from each participant.</p>
130
+ * </li>
131
+ * <li>
132
+ * <p>
133
+ * <code>FAILED_SAFETY_GUIDELINES</code>: The extracted information cannot be
134
+ * provided because it failed to meet system safety guidelines.</p>
135
+ * </li>
136
+ * <li>
137
+ * <p>
138
+ * <code>INTERNAL_ERROR</code>: Internal system error.</p>
139
+ * </li>
140
+ * <li>
141
+ * <p>
142
+ * <code>MAX_PACKAGE_FEATURE_ONLY</code>: Information extraction is only available
143
+ * in Amazon Connect Customer instances.</p>
144
+ * </li>
145
+ * </ul>
146
+ * @public
147
+ */
148
+ FailureCode?: ExtractedInformationFailureCode | undefined;
149
+ }
72
150
  /**
73
151
  * <p>Information about the post-contact summary.</p>
74
152
  * @public
@@ -107,10 +185,8 @@ export interface PostContactSummary {
107
185
  * <li>
108
186
  * <p>
109
187
  * <code>INVALID_ANALYSIS_CONFIGURATION</code>: This code occurs when, for
110
- * example, you're using a
111
- * <a href="https://docs.aws.amazon.com/connect/latest/adminguide/supported-languages.html#supported-languages-contact-lens">language</a>
112
- * that isn't supported by generative AI-powered post-contact summaries.
113
- * </p>
188
+ * example, you're using a <a href="https://docs.aws.amazon.com/connect/latest/adminguide/supported-languages.html#supported-languages-contact-lens">language</a> that isn't supported by generative AI-powered post-contact
189
+ * summaries. </p>
114
190
  * </li>
115
191
  * <li>
116
192
  * <p>
@@ -216,6 +292,11 @@ export interface RealtimeContactAnalysisSegment {
216
292
  * @public
217
293
  */
218
294
  PostContactSummary?: PostContactSummary | undefined;
295
+ /**
296
+ * <p>The extracted information from the conversation.</p>
297
+ * @public
298
+ */
299
+ ExtractedInformation?: ExtractedInformation | undefined;
219
300
  }
220
301
  /**
221
302
  * @public
@@ -15,6 +15,8 @@ export declare const errorTypeRegistries: TypeRegistry[];
15
15
  export declare var Categories$: StaticStructureSchema;
16
16
  export declare var CategoryDetails$: StaticStructureSchema;
17
17
  export declare var CharacterOffsets$: StaticStructureSchema;
18
+ export declare var ExtractedInformation$: StaticStructureSchema;
19
+ export declare var ExtractedInformationValue$: StaticStructureSchema;
18
20
  export declare var IssueDetected$: StaticStructureSchema;
19
21
  export declare var ListRealtimeContactAnalysisSegmentsRequest$: StaticStructureSchema;
20
22
  export declare var ListRealtimeContactAnalysisSegmentsResponse$: StaticStructureSchema;
@@ -1,3 +1,12 @@
1
+ export declare const ExtractedInformationFailureCode: {
2
+ readonly FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES";
3
+ readonly INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT";
4
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
5
+ readonly MAX_PACKAGE_FEATURE_ONLY: "MAX_PACKAGE_FEATURE_ONLY";
6
+ readonly QUOTA_EXCEEDED: "QUOTA_EXCEEDED";
7
+ };
8
+ export type ExtractedInformationFailureCode =
9
+ (typeof ExtractedInformationFailureCode)[keyof typeof ExtractedInformationFailureCode];
1
10
  export declare const PostContactSummaryFailureCode: {
2
11
  readonly FAILED_SAFETY_GUIDELINES: "FAILED_SAFETY_GUIDELINES";
3
12
  readonly INSUFFICIENT_CONVERSATION_CONTENT: "INSUFFICIENT_CONVERSATION_CONTENT";
@@ -1,4 +1,9 @@
1
- import { PostContactSummaryFailureCode, PostContactSummaryStatus, SentimentValue } from "./enums";
1
+ import {
2
+ ExtractedInformationFailureCode,
3
+ PostContactSummaryFailureCode,
4
+ PostContactSummaryStatus,
5
+ SentimentValue,
6
+ } from "./enums";
2
7
  export interface ListRealtimeContactAnalysisSegmentsRequest {
3
8
  InstanceId: string | undefined;
4
9
  ContactId: string | undefined;
@@ -16,6 +21,17 @@ export interface Categories {
16
21
  MatchedCategories: string[] | undefined;
17
22
  MatchedDetails: Record<string, CategoryDetails> | undefined;
18
23
  }
24
+ export interface ExtractedInformationValue {
25
+ Content: string | undefined;
26
+ PointsOfInterest: PointOfInterest[] | undefined;
27
+ }
28
+ export interface ExtractedInformation {
29
+ ExtractionDefinitionId: string | undefined;
30
+ ExtractionDefinitionName: string | undefined;
31
+ ExtractionDefinitionDisplayLabel?: string | undefined;
32
+ ExtractedValues?: ExtractedInformationValue[] | undefined;
33
+ FailureCode?: ExtractedInformationFailureCode | undefined;
34
+ }
19
35
  export interface PostContactSummary {
20
36
  Content?: string | undefined;
21
37
  Status: PostContactSummaryStatus | undefined;
@@ -42,6 +58,7 @@ export interface RealtimeContactAnalysisSegment {
42
58
  Transcript?: Transcript | undefined;
43
59
  Categories?: Categories | undefined;
44
60
  PostContactSummary?: PostContactSummary | undefined;
61
+ ExtractedInformation?: ExtractedInformation | undefined;
45
62
  }
46
63
  export interface ListRealtimeContactAnalysisSegmentsResponse {
47
64
  Segments: RealtimeContactAnalysisSegment[] | undefined;
@@ -10,6 +10,8 @@ export declare const errorTypeRegistries: TypeRegistry[];
10
10
  export declare var Categories$: StaticStructureSchema;
11
11
  export declare var CategoryDetails$: StaticStructureSchema;
12
12
  export declare var CharacterOffsets$: StaticStructureSchema;
13
+ export declare var ExtractedInformation$: StaticStructureSchema;
14
+ export declare var ExtractedInformationValue$: StaticStructureSchema;
13
15
  export declare var IssueDetected$: StaticStructureSchema;
14
16
  export declare var ListRealtimeContactAnalysisSegmentsRequest$: StaticStructureSchema;
15
17
  export declare var ListRealtimeContactAnalysisSegmentsResponse$: StaticStructureSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-connect-contact-lens",
3
- "version": "3.1116.0",
3
+ "version": "3.1118.0",
4
4
  "description": "AWS SDK for JavaScript Connect Contact Lens Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-connect-contact-lens",
6
6
  "license": "Apache-2.0",