Module Cephalopod_models.Com_Atproto_Label_Defs

lexicon "com.atproto.label.defs"

def label

type nonrec label = Types.com_atproto_label_defs_label = {
  1. ver : int64 option;
    (*

    The AT Protocol version of the label object.

    *)
  2. src : string;
    (*

    DID of the actor who created this label. format: "Did"

    *)
  3. uri : string;
    (*

    AT URI of the record, repository (account), or other resource that this label applies to. format: "Uri"

    *)
  4. cid : string option;
    (*

    Optionally, CID specifying the specific version of 'uri' resource this label applies to. format: "Cid"

    *)
  5. val_ : string;
    (*

    The short string name of the value or type of this label. maximum length: 128

    *)
  6. neg : bool option;
    (*

    If true, this is a negation label, overwriting a previous label.

    *)
  7. cts : string;
    (*

    Timestamp when this label was created. format: "Datetime"

    *)
  8. exp : string option;
    (*

    Timestamp at which this label expires (no longer applies). format: "Datetime"

    *)
  9. sig_ : bytes option;
    (*

    Signature of dag-cbor encoded label.

    *)
}

def selfLabels

type nonrec selflabels = Types.com_atproto_label_defs_selflabels = {
  1. values : Types.com_atproto_label_defs_selflabel list;
    (*

    maximum length: 10

    *)
}

def selfLabel

type nonrec selflabel = Types.com_atproto_label_defs_selflabel = {
  1. val_ : string;
    (*

    The short string name of the value or type of this label. maximum length: 128

    *)
}

def labelValueDefinition

type nonrec labelvaluedefinition = Types.com_atproto_label_defs_labelvaluedefinition = {
  1. identifier : string;
    (*

    The value of the label being defined. Must only include lowercase ascii and the '-' character (a-z-+). maximum length: 100

    *)
  2. severity : string;
    (*

    How should a client visually convey this label? 'inform' means neutral and informational; 'alert' means negative and warning; 'none' means show nothing. known values: "inform"; "alert"; "none"

    *)
  3. blurs : string;
    (*

    What should this label hide in the UI, if applied? 'content' hides all of the target; 'media' hides the images/video/audio; 'none' hides nothing. known values: "content"; "media"; "none"

    *)
  4. defaultSetting : string option;
    (*

    The default setting for this label. known values: "ignore"; "warn"; "hide"

    *)
  5. adultOnly : bool option;
    (*

    Does the user need to have adult content enabled in order to configure this label?

    *)
  6. locales : Types.com_atproto_label_defs_labelvaluedefinitionstrings list;
}

def labelValueDefinitionStrings

type nonrec labelvaluedefinitionstrings = Types.com_atproto_label_defs_labelvaluedefinitionstrings = {
  1. lang : string;
    (*

    The code of the language these strings are written in. format: "Language"

    *)
  2. name : string;
    (*

    A short human-readable name for the label. maximum length: 640

    *)
  3. description : string;
    (*

    A longer description of what the label means and why it might be applied. maximum length: 100000

    *)
}

def labelValue

val labelvalue_to_value : string -> Cephalopod_dasl.Value.t