{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.connectcontactlens#AccessDeniedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.connectcontactlens#Message", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

You do not have sufficient access to perform this action.

", "smithy.api#error": "client", "smithy.api#httpError": 403 } }, "com.amazonaws.connectcontactlens#AmazonConnectContactLens": { "type": "service", "version": "2020-08-21", "operations": [ { "target": "com.amazonaws.connectcontactlens#ListRealtimeContactAnalysisSegments" } ], "traits": { "aws.api#service": { "sdkId": "Connect Contact Lens", "arnNamespace": "connect", "cloudFormationName": "ConnectContactLens", "cloudTrailEventSource": "connectcontactlens.amazonaws.com", "endpointPrefix": "contact-lens" }, "aws.auth#sigv4": { "name": "connect" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

Contact Lens for Amazon Connect enables you to analyze conversations between customer and agents,\n by using speech transcription, natural language processing, and intelligent search\n capabilities. It performs sentiment analysis, detects issues, and enables you to automatically\n categorize contacts.

\n

Contact Lens for Amazon Connect provides both real-time and post-call analytics of customer-agent\n conversations. For more information, see Analyze conversations using\n Contact Lens in the Amazon Connect Administrator Guide.

", "smithy.api#title": "Amazon Connect Contact Lens" } }, "com.amazonaws.connectcontactlens#Categories": { "type": "structure", "members": { "MatchedCategories": { "target": "com.amazonaws.connectcontactlens#MatchedCategories", "traits": { "smithy.api#documentation": "

The category rules that have been matched in the analyzed segment.

", "smithy.api#required": {} } }, "MatchedDetails": { "target": "com.amazonaws.connectcontactlens#MatchedDetails", "traits": { "smithy.api#documentation": "

The category rule that was matched and when it occurred in the transcript.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Provides the category rules that are used to automatically categorize contacts based on\n uttered keywords and phrases.

" } }, "com.amazonaws.connectcontactlens#CategoryDetails": { "type": "structure", "members": { "PointsOfInterest": { "target": "com.amazonaws.connectcontactlens#PointsOfInterest", "traits": { "smithy.api#documentation": "

The section of audio where the category rule was detected.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Provides information about the category rule that was matched.

" } }, "com.amazonaws.connectcontactlens#CategoryName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.connectcontactlens#CharacterOffset": { "type": "integer", "traits": { "smithy.api#range": { "min": 0 } } }, "com.amazonaws.connectcontactlens#CharacterOffsets": { "type": "structure", "members": { "BeginOffsetChar": { "target": "com.amazonaws.connectcontactlens#CharacterOffset", "traits": { "smithy.api#documentation": "

The beginning of the issue.

", "smithy.api#required": {} } }, "EndOffsetChar": { "target": "com.amazonaws.connectcontactlens#CharacterOffset", "traits": { "smithy.api#documentation": "

The end of the issue.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

For characters that were detected as issues, where they occur in the transcript.

" } }, "com.amazonaws.connectcontactlens#ContactId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.connectcontactlens#InstanceId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.connectcontactlens#InternalServiceException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.connectcontactlens#Message" } }, "traits": { "smithy.api#documentation": "

Request processing failed due to an error or failure with the service.

", "smithy.api#error": "server", "smithy.api#httpError": 500 } }, "com.amazonaws.connectcontactlens#InvalidRequestException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.connectcontactlens#Message" } }, "traits": { "smithy.api#documentation": "

The request is not valid.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.connectcontactlens#IssueDetected": { "type": "structure", "members": { "CharacterOffsets": { "target": "com.amazonaws.connectcontactlens#CharacterOffsets", "traits": { "smithy.api#documentation": "

The offset for when the issue was detected in the segment.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Potential issues that are detected based on an artificial intelligence analysis of each\n turn in the conversation.

" } }, "com.amazonaws.connectcontactlens#IssuesDetected": { "type": "list", "member": { "target": "com.amazonaws.connectcontactlens#IssueDetected" }, "traits": { "smithy.api#length": { "min": 0, "max": 20 } } }, "com.amazonaws.connectcontactlens#ListRealtimeContactAnalysisSegments": { "type": "operation", "input": { "target": "com.amazonaws.connectcontactlens#ListRealtimeContactAnalysisSegmentsRequest" }, "output": { "target": "com.amazonaws.connectcontactlens#ListRealtimeContactAnalysisSegmentsResponse" }, "errors": [ { "target": "com.amazonaws.connectcontactlens#AccessDeniedException" }, { "target": "com.amazonaws.connectcontactlens#InternalServiceException" }, { "target": "com.amazonaws.connectcontactlens#InvalidRequestException" }, { "target": "com.amazonaws.connectcontactlens#ResourceNotFoundException" }, { "target": "com.amazonaws.connectcontactlens#ThrottlingException" } ], "traits": { "smithy.api#documentation": "

Provides a list of analysis segments for a real-time analysis session.

", "smithy.api#http": { "method": "POST", "uri": "/realtime-contact-analysis/analysis-segments", "code": 200 }, "smithy.api#paginated": { "inputToken": "NextToken", "outputToken": "NextToken", "pageSize": "MaxResults" } } }, "com.amazonaws.connectcontactlens#ListRealtimeContactAnalysisSegmentsRequest": { "type": "structure", "members": { "InstanceId": { "target": "com.amazonaws.connectcontactlens#InstanceId", "traits": { "smithy.api#documentation": "

The identifier of the Amazon Connect instance.

", "smithy.api#required": {} } }, "ContactId": { "target": "com.amazonaws.connectcontactlens#ContactId", "traits": { "smithy.api#documentation": "

The identifier of the contact.

", "smithy.api#required": {} } }, "MaxResults": { "target": "com.amazonaws.connectcontactlens#MaxResults", "traits": { "smithy.api#documentation": "

The maximimum number of results to return per page.

" } }, "NextToken": { "target": "com.amazonaws.connectcontactlens#NextToken", "traits": { "smithy.api#documentation": "

The token for the next set of results. Use the value returned in the previous \nresponse in the next request to retrieve the next set of results.

" } } } }, "com.amazonaws.connectcontactlens#ListRealtimeContactAnalysisSegmentsResponse": { "type": "structure", "members": { "Segments": { "target": "com.amazonaws.connectcontactlens#RealtimeContactAnalysisSegments", "traits": { "smithy.api#documentation": "

An analyzed transcript or category.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.connectcontactlens#NextToken", "traits": { "smithy.api#documentation": "

If there are additional results, this is the token for the next set of results. If response includes nextToken there are two possible scenarios:

\n \n

If response does not include nextToken, the analysis is completed (successfully or failed) and there are no more segments to retrieve.

" } } } }, "com.amazonaws.connectcontactlens#MatchedCategories": { "type": "list", "member": { "target": "com.amazonaws.connectcontactlens#CategoryName" }, "traits": { "smithy.api#length": { "min": 0, "max": 150 } } }, "com.amazonaws.connectcontactlens#MatchedDetails": { "type": "map", "key": { "target": "com.amazonaws.connectcontactlens#CategoryName" }, "value": { "target": "com.amazonaws.connectcontactlens#CategoryDetails" }, "traits": { "smithy.api#length": { "min": 0, "max": 150 } } }, "com.amazonaws.connectcontactlens#MaxResults": { "type": "integer", "traits": { "smithy.api#range": { "min": 1, "max": 100 } } }, "com.amazonaws.connectcontactlens#Message": { "type": "string" }, "com.amazonaws.connectcontactlens#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 131070 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.connectcontactlens#OffsetMillis": { "type": "integer", "traits": { "smithy.api#range": { "min": 0 } } }, "com.amazonaws.connectcontactlens#ParticipantId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.connectcontactlens#ParticipantRole": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.connectcontactlens#PointOfInterest": { "type": "structure", "members": { "BeginOffsetMillis": { "target": "com.amazonaws.connectcontactlens#OffsetMillis", "traits": { "smithy.api#documentation": "

The beginning offset in milliseconds where the category rule was detected.

", "smithy.api#required": {} } }, "EndOffsetMillis": { "target": "com.amazonaws.connectcontactlens#OffsetMillis", "traits": { "smithy.api#documentation": "

The ending offset in milliseconds where the category rule was detected.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The section of the contact audio where that category rule was detected.

" } }, "com.amazonaws.connectcontactlens#PointsOfInterest": { "type": "list", "member": { "target": "com.amazonaws.connectcontactlens#PointOfInterest" }, "traits": { "smithy.api#length": { "min": 0, "max": 20 } } }, "com.amazonaws.connectcontactlens#RealtimeContactAnalysisSegment": { "type": "structure", "members": { "Transcript": { "target": "com.amazonaws.connectcontactlens#Transcript", "traits": { "smithy.api#documentation": "

The analyzed transcript.

" } }, "Categories": { "target": "com.amazonaws.connectcontactlens#Categories", "traits": { "smithy.api#documentation": "

The matched category rules.

" } } }, "traits": { "smithy.api#documentation": "

An analyzed segment for a real-time analysis session.

" } }, "com.amazonaws.connectcontactlens#RealtimeContactAnalysisSegments": { "type": "list", "member": { "target": "com.amazonaws.connectcontactlens#RealtimeContactAnalysisSegment" }, "traits": { "smithy.api#length": { "min": 0, "max": 100 } } }, "com.amazonaws.connectcontactlens#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.connectcontactlens#Message" } }, "traits": { "smithy.api#documentation": "

The specified resource was not found.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.connectcontactlens#SentimentValue": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "POSITIVE", "name": "POSITIVE" }, { "value": "NEUTRAL", "name": "NEUTRAL" }, { "value": "NEGATIVE", "name": "NEGATIVE" } ] } }, "com.amazonaws.connectcontactlens#ThrottlingException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.connectcontactlens#Message", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The throttling limit has been exceeded.

", "smithy.api#error": "client", "smithy.api#httpError": 429 } }, "com.amazonaws.connectcontactlens#Transcript": { "type": "structure", "members": { "Id": { "target": "com.amazonaws.connectcontactlens#TranscriptId", "traits": { "smithy.api#documentation": "

The identifier of the transcript.

", "smithy.api#required": {} } }, "ParticipantId": { "target": "com.amazonaws.connectcontactlens#ParticipantId", "traits": { "smithy.api#documentation": "

The identifier of the participant.

", "smithy.api#required": {} } }, "ParticipantRole": { "target": "com.amazonaws.connectcontactlens#ParticipantRole", "traits": { "smithy.api#documentation": "

The role of participant. For example, is it a customer, agent, or system.

", "smithy.api#required": {} } }, "Content": { "target": "com.amazonaws.connectcontactlens#TranscriptContent", "traits": { "smithy.api#documentation": "

The content of the transcript.

", "smithy.api#required": {} } }, "BeginOffsetMillis": { "target": "com.amazonaws.connectcontactlens#OffsetMillis", "traits": { "smithy.api#documentation": "

The beginning offset in the contact for this transcript.

", "smithy.api#required": {} } }, "EndOffsetMillis": { "target": "com.amazonaws.connectcontactlens#OffsetMillis", "traits": { "smithy.api#documentation": "

The end offset in the contact for this transcript.

", "smithy.api#required": {} } }, "Sentiment": { "target": "com.amazonaws.connectcontactlens#SentimentValue", "traits": { "smithy.api#documentation": "

The sentiment of the detected for this piece of transcript.

", "smithy.api#required": {} } }, "IssuesDetected": { "target": "com.amazonaws.connectcontactlens#IssuesDetected", "traits": { "smithy.api#documentation": "

List of positions where issues were detected on the transcript.

" } } }, "traits": { "smithy.api#documentation": "

A list of messages in the session.

" } }, "com.amazonaws.connectcontactlens#TranscriptContent": { "type": "string", "traits": { "smithy.api#length": { "min": 1 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.connectcontactlens#TranscriptId": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": ".*\\S.*" } } } }