/ cloudformation-templates / node_modules / aws-cdk / node_modules / aws-sdk / clients / connectcontactlens.d.ts
connectcontactlens.d.ts
1 import {Request} from '../lib/request'; 2 import {Response} from '../lib/response'; 3 import {AWSError} from '../lib/error'; 4 import {Service} from '../lib/service'; 5 import {ServiceConfigurationOptions} from '../lib/service'; 6 import {ConfigBase as Config} from '../lib/config-base'; 7 interface Blob {} 8 declare class ConnectContactLens extends Service { 9 /** 10 * Constructs a service object. This object has one method for each API operation. 11 */ 12 constructor(options?: ConnectContactLens.Types.ClientConfiguration) 13 config: Config & ConnectContactLens.Types.ClientConfiguration; 14 /** 15 * Provides a list of analysis segments for a real-time analysis session. 16 */ 17 listRealtimeContactAnalysisSegments(params: ConnectContactLens.Types.ListRealtimeContactAnalysisSegmentsRequest, callback?: (err: AWSError, data: ConnectContactLens.Types.ListRealtimeContactAnalysisSegmentsResponse) => void): Request<ConnectContactLens.Types.ListRealtimeContactAnalysisSegmentsResponse, AWSError>; 18 /** 19 * Provides a list of analysis segments for a real-time analysis session. 20 */ 21 listRealtimeContactAnalysisSegments(callback?: (err: AWSError, data: ConnectContactLens.Types.ListRealtimeContactAnalysisSegmentsResponse) => void): Request<ConnectContactLens.Types.ListRealtimeContactAnalysisSegmentsResponse, AWSError>; 22 } 23 declare namespace ConnectContactLens { 24 export interface Categories { 25 /** 26 * The category rules that have been matched in the analyzed segment. 27 */ 28 MatchedCategories: MatchedCategories; 29 /** 30 * The category rule that was matched and when it occurred in the transcript. 31 */ 32 MatchedDetails: MatchedDetails; 33 } 34 export interface CategoryDetails { 35 /** 36 * The section of audio where the category rule was detected. 37 */ 38 PointsOfInterest: PointsOfInterest; 39 } 40 export type CategoryName = string; 41 export type CharacterOffset = number; 42 export interface CharacterOffsets { 43 /** 44 * The beginning of the issue. 45 */ 46 BeginOffsetChar: CharacterOffset; 47 /** 48 * The end of the issue. 49 */ 50 EndOffsetChar: CharacterOffset; 51 } 52 export type ContactId = string; 53 export type InstanceId = string; 54 export interface IssueDetected { 55 /** 56 * The offset for when the issue was detected in the segment. 57 */ 58 CharacterOffsets: CharacterOffsets; 59 } 60 export type IssuesDetected = IssueDetected[]; 61 export interface ListRealtimeContactAnalysisSegmentsRequest { 62 /** 63 * The identifier of the Amazon Connect instance. 64 */ 65 InstanceId: InstanceId; 66 /** 67 * The identifier of the contact. 68 */ 69 ContactId: ContactId; 70 /** 71 * The maximimum number of results to return per page. 72 */ 73 MaxResults?: MaxResults; 74 /** 75 * 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. 76 */ 77 NextToken?: NextToken; 78 } 79 export interface ListRealtimeContactAnalysisSegmentsResponse { 80 /** 81 * An analyzed transcript or category. 82 */ 83 Segments: RealtimeContactAnalysisSegments; 84 /** 85 * If there are additional results, this is the token for the next set of results. If response includes nextToken there are two possible scenarios: There are more segments so another call is required to get them. 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. If response does not include nextToken, the analysis is completed (successfully or failed) and there are no more segments to retrieve. 86 */ 87 NextToken?: NextToken; 88 } 89 export type MatchedCategories = CategoryName[]; 90 export type MatchedDetails = {[key: string]: CategoryDetails}; 91 export type MaxResults = number; 92 export type NextToken = string; 93 export type OffsetMillis = number; 94 export type ParticipantId = string; 95 export type ParticipantRole = string; 96 export interface PointOfInterest { 97 /** 98 * The beginning offset in milliseconds where the category rule was detected. 99 */ 100 BeginOffsetMillis: OffsetMillis; 101 /** 102 * The ending offset in milliseconds where the category rule was detected. 103 */ 104 EndOffsetMillis: OffsetMillis; 105 } 106 export type PointsOfInterest = PointOfInterest[]; 107 export interface RealtimeContactAnalysisSegment { 108 /** 109 * The analyzed transcript. 110 */ 111 Transcript?: Transcript; 112 /** 113 * The matched category rules. 114 */ 115 Categories?: Categories; 116 } 117 export type RealtimeContactAnalysisSegments = RealtimeContactAnalysisSegment[]; 118 export type SentimentValue = "POSITIVE"|"NEUTRAL"|"NEGATIVE"|string; 119 export interface Transcript { 120 /** 121 * The identifier of the transcript. 122 */ 123 Id: TranscriptId; 124 /** 125 * The identifier of the participant. 126 */ 127 ParticipantId: ParticipantId; 128 /** 129 * The role of participant. For example, is it a customer, agent, or system. 130 */ 131 ParticipantRole: ParticipantRole; 132 /** 133 * The content of the transcript. 134 */ 135 Content: TranscriptContent; 136 /** 137 * The beginning offset in the contact for this transcript. 138 */ 139 BeginOffsetMillis: OffsetMillis; 140 /** 141 * The end offset in the contact for this transcript. 142 */ 143 EndOffsetMillis: OffsetMillis; 144 /** 145 * The sentiment of the detected for this piece of transcript. 146 */ 147 Sentiment: SentimentValue; 148 /** 149 * List of positions where issues were detected on the transcript. 150 */ 151 IssuesDetected?: IssuesDetected; 152 } 153 export type TranscriptContent = string; 154 export type TranscriptId = string; 155 /** 156 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. 157 */ 158 export type apiVersion = "2020-08-21"|"latest"|string; 159 export interface ClientApiVersions { 160 /** 161 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version. 162 */ 163 apiVersion?: apiVersion; 164 } 165 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions; 166 /** 167 * Contains interfaces for use with the ConnectContactLens client. 168 */ 169 export import Types = ConnectContactLens; 170 } 171 export = ConnectContactLens;