Module Values_0.ContactSource

Contains information about a contact.

Sourcetype nonrec t = {
  1. arn : ARN.t option;
    (*

    The Amazon Resource Name (ARN) for the contact.

    *)
  2. id : ContactId.t option;
    (*

    The identifier for the contact.

    *)
  3. initialContactId : ContactId.t option;
    (*

    If this contact is related to other contacts, this is the ID of the initial contact.

    *)
  4. previousContactId : ContactId.t option;
    (*

    If this contact is not the first contact, this is the ID of the previous contact.

    *)
  5. contactAssociationId : ContactId.t option;
    (*

    This is the root contactId which is used as a unique identifier for all subsequent contacts in a contact tree.

    *)
  6. initiationMethod : ContactInitiationMethod.t option;
    (*

    Indicates how the contact was initiated.

    *)
  7. name : Name.t option;
    (*

    The name of the contact.

    *)
  8. description : Description.t option;
    (*

    The description of the contact.

    *)
  9. channel : Channel.t option;
    (*

    How the contact reached your contact center.

    *)
  10. queueInfo : QueueInfo.t option;
    (*

    If this contact was queued, this contains information about the queue.

    *)
  11. agentInfo : AgentInfo.t option;
    (*

    Information about the agent who accepted the contact.

    *)
  12. initiationTimestamp : string option;
    (*

    The date and time this contact was initiated, in UTC time. For INBOUND, this is when the contact arrived. For OUTBOUND, this is when the agent began dialing. For CALLBACK, this is when the callback contact was created. For TRANSFER and QUEUE_TRANSFER, this is when the transfer was initiated. For API, this is when the request arrived. For EXTERNAL_OUTBOUND, this is when the agent started dialing the external participant. For MONITOR, this is when the supervisor started listening to a contact.

    *)
  13. disconnectTimestamp : string option;
    (*

    The date and time that the customer endpoint disconnected from the current contact, in UTC time. In transfer scenarios, the DisconnectTimestamp of the previous contact indicates the date and time when that contact ended.

    *)
  14. lastUpdateTimestamp : string option;
    (*

    The timestamp when contact was last updated.

    *)
  15. lastPausedTimestamp : string option;
    (*

    The timestamp when the contact was last paused.

    *)
  16. lastResumedTimestamp : string option;
    (*

    The timestamp when the contact was last resumed.

    *)
  17. ringStartTimestamp : string option;
    (*

    The timestamp when ringing started for a campaign call.

    *)
  18. totalPauseCount : TotalPauseCount.t option;
    (*

    Total pause count for a contact.

    *)
  19. totalPauseDurationInSeconds : TotalPauseDurationInSeconds.t option;
    (*

    Total pause duration for a contact in seconds.

    *)
  20. scheduledTimestamp : string option;
    (*

    The timestamp, in Unix epoch time format, at which to start running the inbound flow.

    *)
  21. relatedContactId : ContactId.t option;
    (*

    The contactId that is related to this contact.

    *)
  22. wisdomInfo : WisdomInfo.t option;
    (*

    Information about Amazon Connect Wisdom.

    *)
  23. customerId : CustomerId.t option;
    (*

    The customer's identification number. For example, the CustomerId may be a customer number from your CRM. You can create a Lambda function to pull the unique customer ID of the caller from your CRM system. If you enable Amazon Connect Voice ID capability, this attribute is populated with the CustomerSpeakerId of the caller.

    *)
  24. customerEndpoint : EndpointInfo.t option;
    (*

    The customer or external third party participant endpoint.

    *)
  25. systemEndpoint : EndpointInfo.t option;
    (*

    The system endpoint. For INBOUND, this is the phone number or email address that the customer dialed. For OUTBOUND and EXTERNAL_OUTBOUND, this is the outbound caller ID number assigned to the outbound queue that is used to dial the customer. For callback, this shows up as Softphone for calls handled by agents with softphone.

    *)
  26. queueTimeAdjustmentSeconds : QueueTimeAdjustmentSeconds.t option;
    (*

    An integer that represents the queue time adjust to be applied to the contact, in seconds (longer / larger queue time are routed preferentially). Cannot be specified if the QueuePriority is specified. Must be statically defined and a valid integer value.

    *)
  27. queuePriority : QueuePriority.t option;
    (*

    An integer that represents the queue priority to be applied to the contact (lower priorities are routed preferentially). Cannot be specified if the QueueTimeAdjustmentSeconds is specified. Must be statically defined, must be larger than zero, and a valid integer value. Default Value is 5.

    *)
  28. tags : ContactTagMap.t option;
    (*

    Tags associated with the contact. This contains both Amazon Web Services generated and user-defined tags.

    *)
  29. connectedToSystemTimestamp : string option;
    (*

    The timestamp when customer endpoint connected to Amazon Connect.

    *)
  30. routingCriteria : RoutingCriteria.t option;
    (*

    Latest routing criteria on the contact.

    *)
  31. customer : Customer.t option;
    (*

    Information about the Customer on the contact.

    *)
  32. campaign : Campaign.t option;
  33. answeringMachineDetectionStatus : AnsweringMachineDetectionStatus.t option;
    (*

    Indicates how an outbound campaign call is actually disposed if the contact is connected to Amazon Connect.

    *)
  34. customerVoiceActivity : CustomerVoiceActivity.t option;
    (*

    Information about customer’s voice activity.

    *)
  35. qualityMetrics : QualityMetrics.t option;
    (*

    Information about the quality of the participant's media connection.

    *)
  36. chatMetrics : ChatMetrics.t option;
    (*

    Information about how agent, bot, and customer interact in a chat contact.

    *)
  37. disconnectDetails : DisconnectDetails.t option;
    (*

    Information about the call disconnect experience.

    *)
  38. additionalEmailRecipients : AdditionalEmailRecipients.t option;
    (*

    List of additional email addresses for an email contact.

    *)
  39. segmentAttributes : SegmentAttributes.t option;
    (*

    A set of system defined key-value pairs stored on individual contact segments using an attribute map. The attributes are standard Amazon Connect attributes and can be accessed in flows. Attribute keys can include only alphanumeric, -, and _ characters. This field can be used to show channel subtype. For example, connect:Guide or connect:SMS.

    *)
  40. recordings : Recordings.t option;
    (*

    If recording was enabled, this is information about the recordings.

    *)
  41. disconnectReason : String_.t option;
    (*

    The disconnect reason for the contact. For a list and description of all the possible disconnect reasons by channel, see DisconnectReason under ContactTraceRecord in the Amazon Connect Administrator Guide.

    *)
  42. contactEvaluations : ContactEvaluations.t option;
    (*

    Information about the contact evaluations where the key is the FormId, which is a unique identifier for the form.

    *)
  43. taskTemplateInfo : TaskTemplateInfoV2.t option;
    (*

    If this contact was created using a task template, this contains information about the task template.

    *)
  44. contactDetails : ContactDetails.t option;
    (*

    A map of string key/value pairs that contain user-defined attributes which are lightly typed within the contact. This object is used only for task contacts.

    *)
  45. outboundStrategy : OutboundStrategy.t option;
    (*

    Information about the outbound strategy.

    *)
  46. attributes : Attributes.t option;
    (*

    The attributes of the contact.

    *)
  47. nextContacts : NextContacts.t option;
    (*

    List of next contact entries for the contact.

    *)
  48. globalResiliencyMetadata : GlobalResiliencyMetadata.t option;
    (*

    Information about the global resiliency configuration for the contact, including traffic distribution details.

    *)
}
Sourceval make : ?arn:??? -> ?id:??? -> ?initialContactId:??? -> ?previousContactId:??? -> ?contactAssociationId:??? -> ?initiationMethod:??? -> ?name:??? -> ?description:??? -> ?channel:??? -> ?queueInfo:??? -> ?agentInfo:??? -> ?initiationTimestamp:??? -> ?disconnectTimestamp:??? -> ?lastUpdateTimestamp:??? -> ?lastPausedTimestamp:??? -> ?lastResumedTimestamp:??? -> ?ringStartTimestamp:??? -> ?totalPauseCount:??? -> ?totalPauseDurationInSeconds:??? -> ?scheduledTimestamp:??? -> ?relatedContactId:??? -> ?wisdomInfo:??? -> ?customerId:??? -> ?customerEndpoint:??? -> ?systemEndpoint:??? -> ?queueTimeAdjustmentSeconds:??? -> ?queuePriority:??? -> ?tags:??? -> ?connectedToSystemTimestamp:??? -> ?routingCriteria:??? -> ?customer:??? -> ?campaign:??? -> ?answeringMachineDetectionStatus:??? -> ?customerVoiceActivity:??? -> ?qualityMetrics:??? -> ?chatMetrics:??? -> ?disconnectDetails:??? -> ?additionalEmailRecipients:??? -> ?segmentAttributes:??? -> ?recordings:??? -> ?disconnectReason:??? -> ?contactEvaluations:??? -> ?taskTemplateInfo:??? -> ?contactDetails:??? -> ?outboundStrategy:??? -> ?attributes:??? -> ?nextContacts:??? -> ?globalResiliencyMetadata:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of TotalPauseCount.t | `List of [> `Structure of (string * [> `Enum of string | `String of RecordingLocation.t | `Structure of (string * [> `Structure of (string * [> `Enum of string | `String of ContactId.t | `Timestamp of string ]) list ]) list | `Timestamp of string ]) list ] list | `Long of QueuePriority.t | `Map of ([> `String of ContactTagKey.t ] * Awso.Botodata.value) list | `String of ARN.t | `Structure of (string * [> `Enum of string | `Integer of AgentPauseDurationInSeconds.t | `List of [> `Structure of (string * Awso.Botodata.value) list ] list | `String of QueueId.t | `Structure of (string * [> `Boolean of NullableBoolean.t | `Enum of string | `Integer of Count.t | `Long of DurationMillis.t | `String of PlatformName.t | `Structure of (string * [> `Float of AudioQualityScore.t | `List of [> `String of PotentialAudioQualityIssue.t ] list | `String of ARN.t | `Structure of (string * [> `List of [> `Enum of string ] list | `Structure of (string * [> `Integer of PostAcceptPreviewTimeoutDurationInSeconds.t ]) list ]) list ]) list | `Timestamp of string ]) list | `Timestamp of string ]) list | `Timestamp of string ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t