Module Cephalopod_models.Chat_Bsky_Convo_Defs

lexicon "chat.bsky.convo.defs"

def messageRef

type nonrec messageref = Types.chat_bsky_convo_defs_messageref = {
  1. did : string;
    (*

    format: "Did"

    *)
  2. convoId : string;
  3. messageId : string;
}

def messageInput

type nonrec messageinput = Types.chat_bsky_convo_defs_messageinput = {
  1. text : string;
    (*

    maximum length: 10000

    *)
  2. facets : Types.app_bsky_richtext_facet_main list option;
    (*

    Annotations of text (mentions, URLs, hashtags, etc)

    *)
  3. embed : [ `App_bsky_embed_record_main of Types.app_bsky_embed_record_main | `Other of Cephalopod_dasl.Value.t ] option;
}

def messageView

type nonrec messageview = Types.chat_bsky_convo_defs_messageview = {
  1. id : string;
  2. rev : string;
  3. text : string;
    (*

    maximum length: 10000

    *)
  4. facets : Types.app_bsky_richtext_facet_main list option;
    (*

    Annotations of text (mentions, URLs, hashtags, etc)

    *)
  5. embed : [ `App_bsky_embed_record_view of Types.app_bsky_embed_record_view | `Other of Cephalopod_dasl.Value.t ] option;
  6. reactions : Types.chat_bsky_convo_defs_reactionview list option;
    (*

    Reactions to this message, in ascending order of creation time.

    *)
  7. sender : Types.chat_bsky_convo_defs_messageviewsender;
  8. sentAt : string;
    (*

    format: "Datetime"

    *)
}

def deletedMessageView

type nonrec deletedmessageview = Types.chat_bsky_convo_defs_deletedmessageview = {
  1. id : string;
  2. rev : string;
  3. sender : Types.chat_bsky_convo_defs_messageviewsender;
  4. sentAt : string;
    (*

    format: "Datetime"

    *)
}

def messageViewSender

type nonrec messageviewsender = Types.chat_bsky_convo_defs_messageviewsender = {
  1. did : string;
    (*

    format: "Did"

    *)
}

def reactionView

type nonrec reactionview = Types.chat_bsky_convo_defs_reactionview = {
  1. value : string;
  2. sender : Types.chat_bsky_convo_defs_reactionviewsender;
  3. createdAt : string;
    (*

    format: "Datetime"

    *)
}

def reactionViewSender

type nonrec reactionviewsender = Types.chat_bsky_convo_defs_reactionviewsender = {
  1. did : string;
    (*

    format: "Did"

    *)
}

def messageAndReactionView

def convoView

type nonrec convoview = Types.chat_bsky_convo_defs_convoview = {
  1. id : string;
  2. rev : string;
  3. members : Types.chat_bsky_actor_defs_profileviewbasic list;
  4. lastMessage : [ `Chat_bsky_convo_defs_messageview of Types.chat_bsky_convo_defs_messageview | `Chat_bsky_convo_defs_deletedmessageview of Types.chat_bsky_convo_defs_deletedmessageview | `Other of Cephalopod_dasl.Value.t ] option;
  5. lastReaction : [ `Chat_bsky_convo_defs_messageandreactionview of Types.chat_bsky_convo_defs_messageandreactionview | `Other of Cephalopod_dasl.Value.t ] option;
  6. muted : bool;
  7. status : string option;
    (*

    known values: "request"; "accepted"

    *)
  8. unreadCount : int64;
}

def logBeginConvo

type nonrec logbeginconvo = Types.chat_bsky_convo_defs_logbeginconvo = {
  1. rev : string;
  2. convoId : string;
}

def logAcceptConvo

type nonrec logacceptconvo = Types.chat_bsky_convo_defs_logacceptconvo = {
  1. rev : string;
  2. convoId : string;
}

def logLeaveConvo

type nonrec logleaveconvo = Types.chat_bsky_convo_defs_logleaveconvo = {
  1. rev : string;
  2. convoId : string;
}

def logMuteConvo

type nonrec logmuteconvo = Types.chat_bsky_convo_defs_logmuteconvo = {
  1. rev : string;
  2. convoId : string;
}

def logUnmuteConvo

type nonrec logunmuteconvo = Types.chat_bsky_convo_defs_logunmuteconvo = {
  1. rev : string;
  2. convoId : string;
}

def logCreateMessage

type nonrec logcreatemessage = Types.chat_bsky_convo_defs_logcreatemessage = {
  1. rev : string;
  2. convoId : string;
  3. message : [ `Chat_bsky_convo_defs_messageview of Types.chat_bsky_convo_defs_messageview | `Chat_bsky_convo_defs_deletedmessageview of Types.chat_bsky_convo_defs_deletedmessageview | `Other of Cephalopod_dasl.Value.t ];
}

def logDeleteMessage

type nonrec logdeletemessage = Types.chat_bsky_convo_defs_logdeletemessage = {
  1. rev : string;
  2. convoId : string;
  3. message : [ `Chat_bsky_convo_defs_messageview of Types.chat_bsky_convo_defs_messageview | `Chat_bsky_convo_defs_deletedmessageview of Types.chat_bsky_convo_defs_deletedmessageview | `Other of Cephalopod_dasl.Value.t ];
}

def logReadMessage

type nonrec logreadmessage = Types.chat_bsky_convo_defs_logreadmessage = {
  1. rev : string;
  2. convoId : string;
  3. message : [ `Chat_bsky_convo_defs_messageview of Types.chat_bsky_convo_defs_messageview | `Chat_bsky_convo_defs_deletedmessageview of Types.chat_bsky_convo_defs_deletedmessageview | `Other of Cephalopod_dasl.Value.t ];
}

def logAddReaction

type nonrec logaddreaction = Types.chat_bsky_convo_defs_logaddreaction = {
  1. rev : string;
  2. convoId : string;
  3. message : [ `Chat_bsky_convo_defs_messageview of Types.chat_bsky_convo_defs_messageview | `Chat_bsky_convo_defs_deletedmessageview of Types.chat_bsky_convo_defs_deletedmessageview | `Other of Cephalopod_dasl.Value.t ];
  4. reaction : Types.chat_bsky_convo_defs_reactionview;
}

def logRemoveReaction

type nonrec logremovereaction = Types.chat_bsky_convo_defs_logremovereaction = {
  1. rev : string;
  2. convoId : string;
  3. message : [ `Chat_bsky_convo_defs_messageview of Types.chat_bsky_convo_defs_messageview | `Chat_bsky_convo_defs_deletedmessageview of Types.chat_bsky_convo_defs_deletedmessageview | `Other of Cephalopod_dasl.Value.t ];
  4. reaction : Types.chat_bsky_convo_defs_reactionview;
}