Module Cephalopod_models.App_Bsky_Feed_Post

lexicon "app.bsky.feed.post"

def main

type main = {
  1. text : string;
    (*

    The primary post content. May be an empty string, if there are embeds. maximum length: 3000

    *)
  2. entities : Types.app_bsky_feed_post_entity list option;
    (*

    DEPRECATED: replaced by app.bsky.richtext.facet.

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

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

    *)
  4. reply : Types.app_bsky_feed_post_replyref option;
  5. embed : [ `App_bsky_embed_images_main of Types.app_bsky_embed_images_main | `App_bsky_embed_video_main of Types.app_bsky_embed_video_main | `App_bsky_embed_external_main of Types.app_bsky_embed_external_main | `App_bsky_embed_record_main of Types.app_bsky_embed_record_main | `App_bsky_embed_recordwithmedia_main of Types.app_bsky_embed_recordwithmedia_main | `Other of Cephalopod_dasl.Value.t ] option;
  6. langs : string list option;
    (*

    Indicates human language of post primary text content. maximum length: 3

    *)
  7. labels : [ `Com_atproto_label_defs_selflabels of Types.com_atproto_label_defs_selflabels | `Other of Cephalopod_dasl.Value.t ] option;
    (*

    Self-label values for this post. Effectively content warnings.

    *)
  8. tags : string list option;
    (*

    Additional hashtags, in addition to any included in post text and facets. maximum length: 8

    *)
  9. createdAt : string;
    (*

    Client-declared timestamp when this post was originally created. format: "Datetime"

    *)
}

Record containing a Bluesky post.

val make_main : text:string -> ?entities:Types.app_bsky_feed_post_entity list -> ?facets:Types.app_bsky_richtext_facet_main list -> ?reply:Types.app_bsky_feed_post_replyref -> ?embed: [ `App_bsky_embed_external_main of Types.app_bsky_embed_external_main | `App_bsky_embed_images_main of Types.app_bsky_embed_images_main | `App_bsky_embed_record_main of Types.app_bsky_embed_record_main | `App_bsky_embed_recordwithmedia_main of Types.app_bsky_embed_recordwithmedia_main | `App_bsky_embed_video_main of Types.app_bsky_embed_video_main | `Other of Cephalopod_dasl.Value.t ] -> ?langs:string list -> ?labels: [ `Com_atproto_label_defs_selflabels of Types.com_atproto_label_defs_selflabels | `Other of Cephalopod_dasl.Value.t ] -> ?tags:string list -> createdAt:string -> unit -> main
val main_to_value : main -> Cephalopod_dasl.Value.t

def replyRef

def entity

type nonrec entity = Types.app_bsky_feed_post_entity = {
  1. index : Types.app_bsky_feed_post_textslice;
  2. type_ : string;
    (*

    Expected values are 'mention' and 'link'.

    *)
  3. value : string;
}

def textSlice

type nonrec textslice = Types.app_bsky_feed_post_textslice = {
  1. start : int64;
    (*

    minimum: 0

    *)
  2. end_ : int64;
    (*

    minimum: 0

    *)
}