KnownLabelValue enum
The label values com.atproto.label.defs#labelValue declares as known.
Kept in step with that lexicon's knownValues by hand, so the two can
drift — see gore, which is here and no longer there.
Values
- hide → const KnownLabelValue
-
const KnownLabelValue('!hide') - warn → const KnownLabelValue
-
const KnownLabelValue('!warn') - noUnauthenticated → const KnownLabelValue
-
const KnownLabelValue('!no-unauthenticated') - porn → const KnownLabelValue
-
const KnownLabelValue('porn') - sexual → const KnownLabelValue
-
const KnownLabelValue('sexual') - nudity → const KnownLabelValue
-
const KnownLabelValue('nudity') - graphicMedia → const KnownLabelValue
-
const KnownLabelValue('graphic-media') - bot → const KnownLabelValue
-
Applied to accounts that post automatically.
In the lexicon's
knownValuesand, until now, missing here — so valueOf answered null for a value the protocol calls known, and a caller using this enum to tell a global label from a labeler-defined one got the wrong answer.It has no entry in kLabels or kLabelDefinitions: the lexicon declares the value but not how to interpret it, and inventing a severity and a blur here would be this package deciding moderation behaviour the protocol does not specify. A
botlabel therefore still flows through with no interpreted definition, exactly as before — this changes what the enum says, not what the moderation engine does.const KnownLabelValue('bot') - gore → const KnownLabelValue
-
No longer in the lexicon's
knownValues, and kept anyway.It was the earlier spelling of graphicMedia. Removing it would drop labels that are already applied to existing content on the floor, which is worse than carrying a value the protocol has moved past.
const KnownLabelValue('gore')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
String value) → KnownLabelValue?
Constants
-
values
→ const List<
KnownLabelValue> - A constant List of the values in this enum, in order of their declaration.