Module Cephalopod_models.App_Bsky_Actor_Defs

lexicon "app.bsky.actor.defs"

def profileViewBasic

type nonrec profileviewbasic = Types.app_bsky_actor_defs_profileviewbasic = {
  1. did : string;
    (*

    format: "Did"

    *)
  2. handle : string;
    (*

    format: "Handle"

    *)
  3. displayName : string option;
    (*

    maximum length: 640

    *)
  4. avatar : string option;
    (*

    format: "Uri"

    *)
  5. associated : Types.app_bsky_actor_defs_profileassociated option;
  6. viewer : Types.app_bsky_actor_defs_viewerstate option;
  7. labels : Types.com_atproto_label_defs_label list option;
  8. createdAt : string option;
    (*

    format: "Datetime"

    *)
  9. verification : Types.app_bsky_actor_defs_verificationstate option;
  10. status : Types.app_bsky_actor_defs_statusview option;
}

def profileView

type nonrec profileview = Types.app_bsky_actor_defs_profileview = {
  1. did : string;
    (*

    format: "Did"

    *)
  2. handle : string;
    (*

    format: "Handle"

    *)
  3. displayName : string option;
    (*

    maximum length: 640

    *)
  4. description : string option;
    (*

    maximum length: 2560

    *)
  5. avatar : string option;
    (*

    format: "Uri"

    *)
  6. associated : Types.app_bsky_actor_defs_profileassociated option;
  7. indexedAt : string option;
    (*

    format: "Datetime"

    *)
  8. createdAt : string option;
    (*

    format: "Datetime"

    *)
  9. viewer : Types.app_bsky_actor_defs_viewerstate option;
  10. labels : Types.com_atproto_label_defs_label list option;
  11. verification : Types.app_bsky_actor_defs_verificationstate option;
  12. status : Types.app_bsky_actor_defs_statusview option;
}

def profileViewDetailed

type nonrec profileviewdetailed = Types.app_bsky_actor_defs_profileviewdetailed = {
  1. did : string;
    (*

    format: "Did"

    *)
  2. handle : string;
    (*

    format: "Handle"

    *)
  3. displayName : string option;
    (*

    maximum length: 640

    *)
  4. description : string option;
    (*

    maximum length: 2560

    *)
  5. avatar : string option;
    (*

    format: "Uri"

    *)
  6. banner : string option;
    (*

    format: "Uri"

    *)
  7. followersCount : int64 option;
  8. followsCount : int64 option;
  9. postsCount : int64 option;
  10. associated : Types.app_bsky_actor_defs_profileassociated option;
  11. joinedViaStarterPack : Types.app_bsky_graph_defs_starterpackviewbasic option;
  12. indexedAt : string option;
    (*

    format: "Datetime"

    *)
  13. createdAt : string option;
    (*

    format: "Datetime"

    *)
  14. viewer : Types.app_bsky_actor_defs_viewerstate option;
  15. labels : Types.com_atproto_label_defs_label list option;
  16. pinnedPost : Types.com_atproto_repo_strongref_main option;
  17. verification : Types.app_bsky_actor_defs_verificationstate option;
  18. status : Types.app_bsky_actor_defs_statusview option;
}

def profileAssociated

type nonrec profileassociated = Types.app_bsky_actor_defs_profileassociated = {
  1. lists : int64 option;
  2. feedgens : int64 option;
  3. starterPacks : int64 option;
  4. labeler : bool option;
  5. chat : Types.app_bsky_actor_defs_profileassociatedchat option;
}

def profileAssociatedChat

type nonrec profileassociatedchat = Types.app_bsky_actor_defs_profileassociatedchat = {
  1. allowIncoming : string;
    (*

    known values: "all"; "none"; "following"

    *)
}

def viewerState

type nonrec viewerstate = Types.app_bsky_actor_defs_viewerstate = {
  1. muted : bool option;
  2. mutedByList : Types.app_bsky_graph_defs_listviewbasic option;
  3. blockedBy : bool option;
  4. blocking : string option;
    (*

    format: "AtUri"

    *)
  5. blockingByList : Types.app_bsky_graph_defs_listviewbasic option;
  6. following : string option;
    (*

    format: "AtUri"

    *)
  7. followedBy : string option;
    (*

    format: "AtUri"

    *)
  8. knownFollowers : Types.app_bsky_actor_defs_knownfollowers option;
}

def knownFollowers

type nonrec knownfollowers = Types.app_bsky_actor_defs_knownfollowers = {
  1. count : int64;
  2. followers : Types.app_bsky_actor_defs_profileviewbasic list;
    (*

    maximum length: 5 minimum length: 0

    *)
}

def verificationState

type nonrec verificationstate = Types.app_bsky_actor_defs_verificationstate = {
  1. verifications : Types.app_bsky_actor_defs_verificationview list;
    (*

    All verifications issued by trusted verifiers on behalf of this user. Verifications by untrusted verifiers are not included.

    *)
  2. verifiedStatus : string;
    (*

    The user's status as a verified account. known values: "valid"; "invalid"; "none"

    *)
  3. trustedVerifierStatus : string;
    (*

    The user's status as a trusted verifier. known values: "valid"; "invalid"; "none"

    *)
}

def verificationView

type nonrec verificationview = Types.app_bsky_actor_defs_verificationview = {
  1. issuer : string;
    (*

    The user who issued this verification. format: "Did"

    *)
  2. uri : string;
    (*

    The AT-URI of the verification record. format: "AtUri"

    *)
  3. isValid : bool;
    (*

    True if the verification passes validation, otherwise false.

    *)
  4. createdAt : string;
    (*

    Timestamp when the verification was created. format: "Datetime"

    *)
}

def preferences

type nonrec preferences = Types.app_bsky_actor_defs_preferences
val preferences_to_value : [ `App_bsky_actor_defs_adultcontentpref of Types.app_bsky_actor_defs_adultcontentpref | `App_bsky_actor_defs_bskyappstatepref of Types.app_bsky_actor_defs_bskyappstatepref | `App_bsky_actor_defs_contentlabelpref of Types.app_bsky_actor_defs_contentlabelpref | `App_bsky_actor_defs_feedviewpref of Types.app_bsky_actor_defs_feedviewpref | `App_bsky_actor_defs_hiddenpostspref of Types.app_bsky_actor_defs_hiddenpostspref | `App_bsky_actor_defs_interestspref of Types.app_bsky_actor_defs_interestspref | `App_bsky_actor_defs_labelerspref of Types.app_bsky_actor_defs_labelerspref | `App_bsky_actor_defs_mutedwordspref of Types.app_bsky_actor_defs_mutedwordspref | `App_bsky_actor_defs_personaldetailspref of Types.app_bsky_actor_defs_personaldetailspref | `App_bsky_actor_defs_postinteractionsettingspref of Types.app_bsky_actor_defs_postinteractionsettingspref | `App_bsky_actor_defs_savedfeedspref of Types.app_bsky_actor_defs_savedfeedspref | `App_bsky_actor_defs_savedfeedsprefv2 of Types.app_bsky_actor_defs_savedfeedsprefv2 | `App_bsky_actor_defs_threadviewpref of Types.app_bsky_actor_defs_threadviewpref | `App_bsky_actor_defs_verificationprefs of Types.app_bsky_actor_defs_verificationprefs | `Other of Cephalopod_dasl.Value.t ] list -> Cephalopod_dasl.Value.t

def adultContentPref

type nonrec adultcontentpref = Types.app_bsky_actor_defs_adultcontentpref = {
  1. enabled : bool;
    (*

    default: false

    *)
}

def contentLabelPref

type nonrec contentlabelpref = Types.app_bsky_actor_defs_contentlabelpref = {
  1. labelerDid : string option;
    (*

    Which labeler does this preference apply to? If undefined, applies globally. format: "Did"

    *)
  2. label : string;
  3. visibility : string;
    (*

    known values: "ignore"; "show"; "warn"; "hide"

    *)
}

def savedFeed

type nonrec savedfeed = Types.app_bsky_actor_defs_savedfeed = {
  1. id : string;
  2. type_ : string;
    (*

    known values: "feed"; "list"; "timeline"

    *)
  3. value : string;
  4. pinned : bool;
}

def savedFeedsPrefV2

def savedFeedsPref

type nonrec savedfeedspref = Types.app_bsky_actor_defs_savedfeedspref = {
  1. pinned : string list;
  2. saved : string list;
  3. timelineIndex : int64 option;
}

def personalDetailsPref

type nonrec personaldetailspref = Types.app_bsky_actor_defs_personaldetailspref = {
  1. birthDate : string option;
    (*

    The birth date of account owner. format: "Datetime"

    *)
}

def feedViewPref

type nonrec feedviewpref = Types.app_bsky_actor_defs_feedviewpref = {
  1. feed : string;
    (*

    The URI of the feed, or an identifier which describes the feed.

    *)
  2. hideReplies : bool option;
    (*

    Hide replies in the feed.

    *)
  3. hideRepliesByUnfollowed : bool option;
    (*

    Hide replies in the feed if they are not by followed users. default: true

    *)
  4. hideRepliesByLikeCount : int64 option;
    (*

    Hide replies in the feed if they do not have this number of likes.

    *)
  5. hideReposts : bool option;
    (*

    Hide reposts in the feed.

    *)
  6. hideQuotePosts : bool option;
    (*

    Hide quote posts in the feed.

    *)
}

def threadViewPref

type nonrec threadviewpref = Types.app_bsky_actor_defs_threadviewpref = {
  1. sort : string option;
    (*

    Sorting mode for threads. known values: "oldest"; "newest"; "most-likes"; "random"; "hotness"

    *)
  2. prioritizeFollowedUsers : bool option;
    (*

    Show followed users at the top of all replies.

    *)
}

def interestsPref

type nonrec interestspref = Types.app_bsky_actor_defs_interestspref = {
  1. tags : string list;
    (*

    A list of tags which describe the account owner's interests gathered during onboarding. maximum length: 100

    *)
}

def mutedWordTarget

type nonrec mutedwordtarget = Types.app_bsky_actor_defs_mutedwordtarget
val mutedwordtarget_to_value : string -> Cephalopod_dasl.Value.t

def mutedWord

type nonrec mutedword = Types.app_bsky_actor_defs_mutedword = {
  1. id : string option;
  2. value : string;
    (*

    The muted word itself. maximum length: 10000

    *)
  3. targets : Types.app_bsky_actor_defs_mutedwordtarget list;
    (*

    The intended targets of the muted word.

    *)
  4. actorTarget : string option;
    (*

    Groups of users to apply the muted word to. If undefined, applies to all users. known values: "all"; "exclude-following"

    *)
  5. expiresAt : string option;
    (*

    The date and time at which the muted word will expire and no longer be applied. format: "Datetime"

    *)
}

def mutedWordsPref

type nonrec mutedwordspref = Types.app_bsky_actor_defs_mutedwordspref = {
  1. items : Types.app_bsky_actor_defs_mutedword list;
    (*

    A list of words the account owner has muted.

    *)
}

def hiddenPostsPref

type nonrec hiddenpostspref = Types.app_bsky_actor_defs_hiddenpostspref = {
  1. items : string list;
    (*

    A list of URIs of posts the account owner has hidden.

    *)
}

def labelersPref

def labelerPrefItem

type nonrec labelerprefitem = Types.app_bsky_actor_defs_labelerprefitem = {
  1. did : string;
    (*

    format: "Did"

    *)
}

def bskyAppStatePref

type nonrec bskyappstatepref = Types.app_bsky_actor_defs_bskyappstatepref = {
  1. activeProgressGuide : Types.app_bsky_actor_defs_bskyappprogressguide option;
  2. queuedNudges : string list option;
    (*

    An array of tokens which identify nudges (modals, popups, tours, highlight dots) that should be shown to the user. maximum length: 1000

    *)
  3. nuxs : Types.app_bsky_actor_defs_nux list option;
    (*

    Storage for NUXs the user has encountered. maximum length: 100

    *)
}

def bskyAppProgressGuide

type nonrec bskyappprogressguide = Types.app_bsky_actor_defs_bskyappprogressguide = {
  1. guide : string;
    (*

    maximum length: 100

    *)
}

def nux

type nonrec nux = Types.app_bsky_actor_defs_nux = {
  1. id : string;
    (*

    maximum length: 100

    *)
  2. completed : bool;
    (*

    default: false

    *)
  3. data : string option;
    (*

    Arbitrary data for the NUX. The structure is defined by the NUX itself. Limited to 300 characters. maximum length: 3000

    *)
  4. expiresAt : string option;
    (*

    The date and time at which the NUX will expire and should be considered completed. format: "Datetime"

    *)
}

def verificationPrefs

type nonrec verificationprefs = Types.app_bsky_actor_defs_verificationprefs = {
  1. hideBadges : bool option;
    (*

    Hide the blue check badges for verified accounts and trusted verifiers. default: false

    *)
}

def postInteractionSettingsPref

type nonrec postinteractionsettingspref = Types.app_bsky_actor_defs_postinteractionsettingspref = {
  1. threadgateAllowRules : [ `App_bsky_feed_threadgate_mentionrule of Types.app_bsky_feed_threadgate_mentionrule | `App_bsky_feed_threadgate_followerrule of Types.app_bsky_feed_threadgate_followerrule | `App_bsky_feed_threadgate_followingrule of Types.app_bsky_feed_threadgate_followingrule | `App_bsky_feed_threadgate_listrule of Types.app_bsky_feed_threadgate_listrule | `Other of Cephalopod_dasl.Value.t ] list option;
    (*

    Matches threadgate record. List of rules defining who can reply to this users posts. If value is an empty array, no one can reply. If value is undefined, anyone can reply. maximum length: 5

    *)
  2. postgateEmbeddingRules : [ `App_bsky_feed_postgate_disablerule of Types.app_bsky_feed_postgate_disablerule | `Other of Cephalopod_dasl.Value.t ] list option;
    (*

    Matches postgate record. List of rules defining who can embed this users posts. If value is an empty array or is undefined, no particular rules apply and anyone can embed. maximum length: 5

    *)
}

def statusView

type nonrec statusview = Types.app_bsky_actor_defs_statusview = {
  1. status : string;
    (*

    The status for the account. known values: "app.bsky.actor.status#live"

    *)
  2. record : Cephalopod_dasl.Value.t;
  3. embed : [ `App_bsky_embed_external_view of Types.app_bsky_embed_external_view | `Other of Cephalopod_dasl.Value.t ] option;
    (*

    An optional embed associated with the status.

    *)
  4. expiresAt : string option;
    (*

    The date when this status will expire. The application might choose to no longer return the status after expiration. format: "Datetime"

    *)
  5. isActive : bool option;
    (*

    True if the status is not expired, false if it is expired. Only present if expiration was set.

    *)
}