Module Cephalopod_models.App_Bsky_Labeler_Defs

lexicon "app.bsky.labeler.defs"

def labelerView

type nonrec labelerview = Types.app_bsky_labeler_defs_labelerview = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. creator : Types.app_bsky_actor_defs_profileview;
  4. likeCount : int64 option;
    (*

    minimum: 0

    *)
  5. viewer : Types.app_bsky_labeler_defs_labelerviewerstate option;
  6. indexedAt : string;
    (*

    format: "Datetime"

    *)
  7. labels : Types.com_atproto_label_defs_label list option;
}

def labelerViewDetailed

type nonrec labelerviewdetailed = Types.app_bsky_labeler_defs_labelerviewdetailed = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. creator : Types.app_bsky_actor_defs_profileview;
  4. policies : Types.app_bsky_labeler_defs_labelerpolicies;
  5. likeCount : int64 option;
    (*

    minimum: 0

    *)
  6. viewer : Types.app_bsky_labeler_defs_labelerviewerstate option;
  7. indexedAt : string;
    (*

    format: "Datetime"

    *)
  8. labels : Types.com_atproto_label_defs_label list option;
  9. reasonTypes : Types.com_atproto_moderation_defs_reasontype list option;
    (*

    The set of report reason 'codes' which are in-scope for this service to review and action. These usually align to policy categories. If not defined (distinct from empty array), all reason types are allowed.

    *)
  10. subjectTypes : Types.com_atproto_moderation_defs_subjecttype list option;
    (*

    The set of subject types (account, record, etc) this service accepts reports on.

    *)
  11. subjectCollections : string list option;
    (*

    Set of record types (collection NSIDs) which can be reported to this service. If not defined (distinct from empty array), default is any record type.

    *)
}

def labelerViewerState

type nonrec labelerviewerstate = Types.app_bsky_labeler_defs_labelerviewerstate = {
  1. like : string option;
    (*

    format: "AtUri"

    *)
}

def labelerPolicies

type nonrec labelerpolicies = Types.app_bsky_labeler_defs_labelerpolicies = {
  1. labelValues : Types.com_atproto_label_defs_labelvalue list;
    (*

    The label values which this labeler publishes. May include global or custom labels.

    *)
  2. labelValueDefinitions : Types.com_atproto_label_defs_labelvaluedefinition list option;
    (*

    Label values created by this labeler and scoped exclusively to it. Labels defined here will override global label definitions for this labeler.

    *)
}