Module Values.ItemSource

An item - message or event - that has been sent.

Sourcetype nonrec t = {
  1. absoluteTime : Instant.t option;
    (*

    The time when the message or event was sent. It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z.

    *)
  2. content : ChatContent.t option;
    (*

    The content of the message or event.

    *)
  3. contentType : ChatContentType.t option;
    (*

    The type of content of the item.

    *)
  4. id : ChatItemId.t option;
    (*

    The ID of the item.

    *)
  5. type_ : ChatItemType.t option;
    (*

    Type of the item: message or event.

    *)
  6. participantId : ParticipantId.t option;
    (*

    The ID of the sender in the session.

    *)
  7. displayName : DisplayName.t option;
    (*

    The chat display name of the sender.

    *)
  8. participantRole : ParticipantRole.t option;
    (*

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

    *)
  9. attachments : Attachments.t option;
    (*

    Provides information about the attachments.

    *)
  10. messageMetadata : MessageMetadata.t option;
    (*

    The metadata related to the message. Currently this supports only information related to message receipts.

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

    The contactId on which the transcript item was originally sent. This field is only populated for persistent chats when the transcript item is from the past chat session. For more information, see Enable persistent chat.

    *)
  12. contactId : ContactId.t option;
    (*

    The contactId on which the transcript item was originally sent. This field is populated only when the transcript item is from the current chat session.

    *)
}
Sourceval make : ?absoluteTime:??? -> ?content:??? -> ?contentType:??? -> ?id:??? -> ?type_:??? -> ?participantId:??? -> ?displayName:??? -> ?participantRole:??? -> ?attachments:??? -> ?messageMetadata:??? -> ?relatedContactId:??? -> ?contactId:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Enum of string | `String of ContentType.t ]) list ] list | `String of Instant.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `String of Instant.t ]) list ] list | `String of ChatItemId.t ]) list ]) 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