Module Cephalopod_models.App_Bsky_Graph_Defs

lexicon "app.bsky.graph.defs"

def listViewBasic

type nonrec listviewbasic = Types.app_bsky_graph_defs_listviewbasic = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. name : string;
    (*

    maximum length: 64 minimum length: 1

    *)
  4. purpose : Types.app_bsky_graph_defs_listpurpose;
  5. avatar : string option;
    (*

    format: "Uri"

    *)
  6. listItemCount : int64 option;
    (*

    minimum: 0

    *)
  7. labels : Types.com_atproto_label_defs_label list option;
  8. viewer : Types.app_bsky_graph_defs_listviewerstate option;
  9. indexedAt : string option;
    (*

    format: "Datetime"

    *)
}

def listView

type nonrec listview = Types.app_bsky_graph_defs_listview = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. creator : Types.app_bsky_actor_defs_profileview;
  4. name : string;
    (*

    maximum length: 64 minimum length: 1

    *)
  5. purpose : Types.app_bsky_graph_defs_listpurpose;
  6. description : string option;
    (*

    maximum length: 3000

    *)
  7. descriptionFacets : Types.app_bsky_richtext_facet_main list option;
  8. avatar : string option;
    (*

    format: "Uri"

    *)
  9. listItemCount : int64 option;
    (*

    minimum: 0

    *)
  10. labels : Types.com_atproto_label_defs_label list option;
  11. viewer : Types.app_bsky_graph_defs_listviewerstate option;
  12. indexedAt : string;
    (*

    format: "Datetime"

    *)
}

def listItemView

type nonrec listitemview = Types.app_bsky_graph_defs_listitemview = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. subject : Types.app_bsky_actor_defs_profileview;
}

def starterPackView

type nonrec starterpackview = Types.app_bsky_graph_defs_starterpackview = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. record : Cephalopod_dasl.Value.t;
  4. creator : Types.app_bsky_actor_defs_profileviewbasic;
  5. list : Types.app_bsky_graph_defs_listviewbasic option;
  6. listItemsSample : Types.app_bsky_graph_defs_listitemview list option;
    (*

    maximum length: 12

    *)
  7. feeds : Types.app_bsky_feed_defs_generatorview list option;
    (*

    maximum length: 3

    *)
  8. joinedWeekCount : int64 option;
    (*

    minimum: 0

    *)
  9. joinedAllTimeCount : int64 option;
    (*

    minimum: 0

    *)
  10. labels : Types.com_atproto_label_defs_label list option;
  11. indexedAt : string;
    (*

    format: "Datetime"

    *)
}

def starterPackViewBasic

type nonrec starterpackviewbasic = Types.app_bsky_graph_defs_starterpackviewbasic = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. record : Cephalopod_dasl.Value.t;
  4. creator : Types.app_bsky_actor_defs_profileviewbasic;
  5. listItemCount : int64 option;
    (*

    minimum: 0

    *)
  6. joinedWeekCount : int64 option;
    (*

    minimum: 0

    *)
  7. joinedAllTimeCount : int64 option;
    (*

    minimum: 0

    *)
  8. labels : Types.com_atproto_label_defs_label list option;
  9. indexedAt : string;
    (*

    format: "Datetime"

    *)
}

def listPurpose

type nonrec listpurpose = Types.app_bsky_graph_defs_listpurpose
val listpurpose_to_value : string -> Cephalopod_dasl.Value.t

def modlist

type nonrec modlist = Types.app_bsky_graph_defs_modlist
val modlist_to_value : [ `App_bsky_graph_defs_modlist ] -> Cephalopod_dasl.Value.t

def curatelist

type nonrec curatelist = Types.app_bsky_graph_defs_curatelist
val curatelist_to_value : [ `App_bsky_graph_defs_curatelist ] -> Cephalopod_dasl.Value.t

def referencelist

type nonrec referencelist = Types.app_bsky_graph_defs_referencelist
val referencelist_to_value : [ `App_bsky_graph_defs_referencelist ] -> Cephalopod_dasl.Value.t

def listViewerState

type nonrec listviewerstate = Types.app_bsky_graph_defs_listviewerstate = {
  1. muted : bool option;
  2. blocked : string option;
    (*

    format: "AtUri"

    *)
}

def notFoundActor

type nonrec notfoundactor = Types.app_bsky_graph_defs_notfoundactor = {
  1. actor : string;
    (*

    format: "AtIdentifier"

    *)
  2. notFound : bool;
}

def relationship

type nonrec relationship = Types.app_bsky_graph_defs_relationship = {
  1. did : string;
    (*

    format: "Did"

    *)
  2. following : string option;
    (*

    if the actor follows this DID, this is the AT-URI of the follow record format: "AtUri"

    *)
  3. followedBy : string option;
    (*

    if the actor is followed by this DID, contains the AT-URI of the follow record format: "AtUri"

    *)
}