OBJECT

TextMessageEntity

link GraphQL Schema definition

  • type TextMessageEntity {
  • # Tells if the entity instance is protected against delete (Entities that need to
  • # be present in the system at any time). Delete action still may fail if entity is
  • # deletable, due some other additional validations.
  • isDeleteProtected: Boolean!
  • # Unique identifier of entity.
  • id: ID!
  • # Specifies if the entity is considered deleted.
  • isDeleted: Boolean
  • # Last modification time.
  • modified: DateTime
  • # Creation time.
  • created: DateTime
  • # Internal AI chat conversation this message belongs to, when applicable.
  • chatConversation: ChatConversationEntity
  • # Conversation this message belongs to. Empty for messages produced by AI chat
  • # that do not belong to a thread of customer conversation.
  • textMessageConversation: TextMessageConversationEntity
  • # Id of the chat conversation.
  • chatConversationId: ID
  • # Body of the message. May be plain text or a JSON payload (e.g. AI assistant
  • # examples / suggestions).
  • content: String!
  • # Timestamp the message was sent.
  • datetimeSent: DateTime
  • # Direction of the message (Incoming, Outgoing).
  • direction: EmailDirectionEnum!
  • # External message identifier from the SMS provider (e.g. Twilio Message SID).
  • messageSid: String
  • # Quality score given to the message by the user (e.g. for AI-suggested replies).
  • # Used to feed back into the suggestion engine.
  • score: Int
  • # Delivery status of the message (e.g. Sent, Delivered, Failed).
  • status: TextMessageStatusEnum
  • # Id of the conversation.
  • textMessageConversationId: ID
  • # Revision when entity was lastly changed.
  • revision: Int
  • # Files attached to the message (e.g. MMS attachments).
  • #
  • # Arguments
  • # filter: Filter CloudObject relations by target CloudObject
  • # attributes.
  • # filterEdge: Filter CloudObjectRelation relations by edge
  • # (relation) CloudObjectRelation attributes.
  • # orderBy: Order CloudObject relations by target CloudObject
  • # attributes.
  • # includeDeleted: Returns deleted target records as well. Default
  • # is true.
  • # before: Cursor until which to take entities to result set.
  • # after: Cursor after which to start taking entities to result
  • # set.
  • # first: Number of entities to return from beginning of the
  • # result set.
  • # last: Return only the "last" number of entities from result
  • # set.
  • attachments(
  • filter: CloudObjectFilterInput,
  • filterEdge: CloudObjectRelationFilterInput,
  • orderBy: [CloudObjectOrderByInput!],
  • includeDeleted: Boolean,
  • before: String,
  • after: String,
  • first: Int,
  • last: Int
  • ): CloudObjectRelationEntityConnection
  • # HTML-rendered version of the message body, ready for display in chat UIs.
  • contentAsHtml: String!
  • # Structured AI payload of the message (examples or suggestions). Empty for
  • # regular text messages.
  • data: AiMessageData
  • # List of suggested follow-up prompts produced by the AI for this message. Empty
  • # when the AI did not produce prompts.
  • topicPrompts: [String!]
  • # Checks which permissions current user has on concrete entity instance.
  • #
  • # Arguments
  • # permissions: [Not documented]
  • instancePermissions(permissions: [EntityPermsEnum!]!): [EntityPermsEnum!]!
  • creditInfo: AiCreditInfo
  • }