-
Notifications
You must be signed in to change notification settings - Fork 573
/
models_0.ts
355 lines (315 loc) · 8.82 KB
/
models_0.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
// smithy-typescript generated code
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
import { ConnectContactLensServiceException as __BaseException } from "./ConnectContactLensServiceException";
/**
* <p>You do not have sufficient access to perform this action.</p>
*/
export class AccessDeniedException extends __BaseException {
readonly name: "AccessDeniedException" = "AccessDeniedException";
readonly $fault: "client" = "client";
Message: string | undefined;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>) {
super({
name: "AccessDeniedException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, AccessDeniedException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>Request processing failed due to an error or failure with the service.</p>
*/
export class InternalServiceException extends __BaseException {
readonly name: "InternalServiceException" = "InternalServiceException";
readonly $fault: "server" = "server";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InternalServiceException, __BaseException>) {
super({
name: "InternalServiceException",
$fault: "server",
...opts,
});
Object.setPrototypeOf(this, InternalServiceException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>The request is not valid.</p>
*/
export class InvalidRequestException extends __BaseException {
readonly name: "InvalidRequestException" = "InvalidRequestException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>) {
super({
name: "InvalidRequestException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, InvalidRequestException.prototype);
this.Message = opts.Message;
}
}
export interface ListRealtimeContactAnalysisSegmentsRequest {
/**
* <p>The identifier of the Amazon Connect instance.</p>
*/
InstanceId: string | undefined;
/**
* <p>The identifier of the contact.</p>
*/
ContactId: string | undefined;
/**
* <p>The maximimum number of results to return per page.</p>
*/
MaxResults?: number;
/**
* <p>The token for the next set of results. Use the value returned in the previous
* response in the next request to retrieve the next set of results.</p>
*/
NextToken?: string;
}
/**
* <p>The section of the contact audio where that category rule was detected.</p>
*/
export interface PointOfInterest {
/**
* <p>The beginning offset in milliseconds where the category rule was detected.</p>
*/
BeginOffsetMillis: number | undefined;
/**
* <p>The ending offset in milliseconds where the category rule was detected.</p>
*/
EndOffsetMillis: number | undefined;
}
/**
* <p>Provides information about the category rule that was matched.</p>
*/
export interface CategoryDetails {
/**
* <p>The section of audio where the category rule was detected.</p>
*/
PointsOfInterest: PointOfInterest[] | undefined;
}
/**
* <p>Provides the category rules that are used to automatically categorize contacts based on
* uttered keywords and phrases.</p>
*/
export interface Categories {
/**
* <p>The category rules that have been matched in the analyzed segment.</p>
*/
MatchedCategories: string[] | undefined;
/**
* <p>The category rule that was matched and when it occurred in the transcript.</p>
*/
MatchedDetails: Record<string, CategoryDetails> | undefined;
}
/**
* <p>For characters that were detected as issues, where they occur in the transcript.</p>
*/
export interface CharacterOffsets {
/**
* <p>The beginning of the issue.</p>
*/
BeginOffsetChar: number | undefined;
/**
* <p>The end of the issue.</p>
*/
EndOffsetChar: number | undefined;
}
/**
* <p>Potential issues that are detected based on an artificial intelligence analysis of each
* turn in the conversation.</p>
*/
export interface IssueDetected {
/**
* <p>The offset for when the issue was detected in the segment.</p>
*/
CharacterOffsets: CharacterOffsets | undefined;
}
export enum SentimentValue {
NEGATIVE = "NEGATIVE",
NEUTRAL = "NEUTRAL",
POSITIVE = "POSITIVE",
}
/**
* <p>A list of messages in the session.</p>
*/
export interface Transcript {
/**
* <p>The identifier of the transcript.</p>
*/
Id: string | undefined;
/**
* <p>The identifier of the participant.</p>
*/
ParticipantId: string | undefined;
/**
* <p>The role of participant. For example, is it a customer, agent, or system.</p>
*/
ParticipantRole: string | undefined;
/**
* <p>The content of the transcript.</p>
*/
Content: string | undefined;
/**
* <p>The beginning offset in the contact for this transcript.</p>
*/
BeginOffsetMillis: number | undefined;
/**
* <p>The end offset in the contact for this transcript.</p>
*/
EndOffsetMillis: number | undefined;
/**
* <p>The sentiment of the detected for this piece of transcript.</p>
*/
Sentiment: SentimentValue | string | undefined;
/**
* <p>List of positions where issues were detected on the transcript.</p>
*/
IssuesDetected?: IssueDetected[];
}
/**
* <p>An analyzed segment for a real-time analysis session.</p>
*/
export interface RealtimeContactAnalysisSegment {
/**
* <p>The analyzed transcript.</p>
*/
Transcript?: Transcript;
/**
* <p>The matched category rules.</p>
*/
Categories?: Categories;
}
export interface ListRealtimeContactAnalysisSegmentsResponse {
/**
* <p>An analyzed transcript or category.</p>
*/
Segments: RealtimeContactAnalysisSegment[] | undefined;
/**
* <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>
* <ul>
* <li>
* <p>There are more segments so another call is required to get them.</p>
* </li>
* <li>
* <p>There are no more segments at this time, but more may be available later (real-time
* analysis is in progress) so the client should call the operation again to get new
* segments.</p>
* </li>
* </ul>
* <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>
*/
NextToken?: string;
}
/**
* <p>The specified resource was not found.</p>
*/
export class ResourceNotFoundException extends __BaseException {
readonly name: "ResourceNotFoundException" = "ResourceNotFoundException";
readonly $fault: "client" = "client";
Message?: string;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>) {
super({
name: "ResourceNotFoundException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
this.Message = opts.Message;
}
}
/**
* <p>The throttling limit has been exceeded.</p>
*/
export class ThrottlingException extends __BaseException {
readonly name: "ThrottlingException" = "ThrottlingException";
readonly $fault: "client" = "client";
Message: string | undefined;
/**
* @internal
*/
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>) {
super({
name: "ThrottlingException",
$fault: "client",
...opts,
});
Object.setPrototypeOf(this, ThrottlingException.prototype);
this.Message = opts.Message;
}
}
/**
* @internal
*/
export const ListRealtimeContactAnalysisSegmentsRequestFilterSensitiveLog = (
obj: ListRealtimeContactAnalysisSegmentsRequest
): any => ({
...obj,
});
/**
* @internal
*/
export const PointOfInterestFilterSensitiveLog = (obj: PointOfInterest): any => ({
...obj,
});
/**
* @internal
*/
export const CategoryDetailsFilterSensitiveLog = (obj: CategoryDetails): any => ({
...obj,
});
/**
* @internal
*/
export const CategoriesFilterSensitiveLog = (obj: Categories): any => ({
...obj,
});
/**
* @internal
*/
export const CharacterOffsetsFilterSensitiveLog = (obj: CharacterOffsets): any => ({
...obj,
});
/**
* @internal
*/
export const IssueDetectedFilterSensitiveLog = (obj: IssueDetected): any => ({
...obj,
});
/**
* @internal
*/
export const TranscriptFilterSensitiveLog = (obj: Transcript): any => ({
...obj,
});
/**
* @internal
*/
export const RealtimeContactAnalysisSegmentFilterSensitiveLog = (obj: RealtimeContactAnalysisSegment): any => ({
...obj,
});
/**
* @internal
*/
export const ListRealtimeContactAnalysisSegmentsResponseFilterSensitiveLog = (
obj: ListRealtimeContactAnalysisSegmentsResponse
): any => ({
...obj,
});