Module Values_0.ChatEventSource

Chat integration event containing payload to perform different chat actions such as: Sending a chat message Sending a chat event, such as typing Disconnecting from a chat

Sourcetype nonrec t = {
  1. type_ : ChatEventType.t;
    (*

    Type of chat integration event.

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

    Type of content. This is required when Type is MESSAGE or EVENT. For allowed message content types, see the ContentType parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. For allowed event content types, see the ContentType parameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.

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

    Content of the message or event. This is required when Type is MESSAGE and for certain ContentTypes when Type is EVENT. For allowed message content, see the Content parameter in the SendMessage topic in the Amazon Connect Participant Service API Reference. For allowed event content, see the Content parameter in the SendEvent topic in the Amazon Connect Participant Service API Reference.

    *)
}
Sourceval context_ : string
Sourceval make : ?contentType:??? -> ?content:??? -> type_:ChatEventType.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of ChatContentType.t ]) 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