Skip to content

Type definitions#

Index > ConnectContactLens > Type definitions

Auto-generated documentation for ConnectContactLens type annotations stubs module mypy-boto3-connect-contact-lens.

PointOfInterestTypeDef#

# PointOfInterestTypeDef definition

class PointOfInterestTypeDef(TypedDict):
    BeginOffsetMillis: int,
    EndOffsetMillis: int,

CharacterOffsetsTypeDef#

# CharacterOffsetsTypeDef definition

class CharacterOffsetsTypeDef(TypedDict):
    BeginOffsetChar: int,
    EndOffsetChar: int,

ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef#

# ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef definition

class ListRealtimeContactAnalysisSegmentsRequestRequestTypeDef(TypedDict):
    InstanceId: str,
    ContactId: str,
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

PostContactSummaryTypeDef#

# PostContactSummaryTypeDef definition

class PostContactSummaryTypeDef(TypedDict):
    Status: PostContactSummaryStatusType,  # (1)
    Content: NotRequired[str],
    FailureCode: NotRequired[PostContactSummaryFailureCodeType],  # (2)
  1. See PostContactSummaryStatusType
  2. See PostContactSummaryFailureCodeType

CategoryDetailsTypeDef#

# CategoryDetailsTypeDef definition

class CategoryDetailsTypeDef(TypedDict):
    PointsOfInterest: List[PointOfInterestTypeDef],  # (1)
  1. See PointOfInterestTypeDef

IssueDetectedTypeDef#

# IssueDetectedTypeDef definition

class IssueDetectedTypeDef(TypedDict):
    CharacterOffsets: CharacterOffsetsTypeDef,  # (1)
  1. See CharacterOffsetsTypeDef

CategoriesTypeDef#

# CategoriesTypeDef definition

class CategoriesTypeDef(TypedDict):
    MatchedCategories: List[str],
    MatchedDetails: Dict[str, CategoryDetailsTypeDef],  # (1)
  1. See CategoryDetailsTypeDef

TranscriptTypeDef#

# TranscriptTypeDef definition

class TranscriptTypeDef(TypedDict):
    Id: str,
    ParticipantId: str,
    ParticipantRole: str,
    Content: str,
    BeginOffsetMillis: int,
    EndOffsetMillis: int,
    Sentiment: SentimentValueType,  # (1)
    IssuesDetected: NotRequired[List[IssueDetectedTypeDef]],  # (2)
  1. See SentimentValueType
  2. See IssueDetectedTypeDef

RealtimeContactAnalysisSegmentTypeDef#

# RealtimeContactAnalysisSegmentTypeDef definition

class RealtimeContactAnalysisSegmentTypeDef(TypedDict):
    Transcript: NotRequired[TranscriptTypeDef],  # (1)
    Categories: NotRequired[CategoriesTypeDef],  # (2)
    PostContactSummary: NotRequired[PostContactSummaryTypeDef],  # (3)
  1. See TranscriptTypeDef
  2. See CategoriesTypeDef
  3. See PostContactSummaryTypeDef

ListRealtimeContactAnalysisSegmentsResponseTypeDef#

# ListRealtimeContactAnalysisSegmentsResponseTypeDef definition

class ListRealtimeContactAnalysisSegmentsResponseTypeDef(TypedDict):
    Segments: List[RealtimeContactAnalysisSegmentTypeDef],  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
    NextToken: NotRequired[str],
  1. See RealtimeContactAnalysisSegmentTypeDef
  2. See ResponseMetadataTypeDef