Package-level declarations

Types

Link copied to clipboard
data class Label(val cid: <Error class: unknown class>? = null, val cts: <Error class: unknown class>, val exp: <Error class: unknown class>? = null, val neg: Boolean? = null, val sig: ByteArray? = null, val src: <Error class: unknown class>, val uri: <Error class: unknown class>, val val: String, val ver: Long? = null)

Metadata tag on an atproto resource (eg, repo or record).

Link copied to clipboard
class LabelService(client: <Error class: unknown class>)
Link copied to clipboard
typealias LabelValue = String
Link copied to clipboard
data class LabelValueDefinition(val adultOnly: Boolean? = null, val blurs: String, val defaultSetting: String? = null, val identifier: String, val locales: List<LabelValueDefinitionStrings>, val severity: String)

Declares a label value and its expected interpretations and behaviors.

Link copied to clipboard
data class LabelValueDefinitionInput(val adultOnly: <Error class: unknown class><Boolean> = AtField.Missing, val blurs: String, val defaultSetting: <Error class: unknown class><String> = AtField.Missing, val identifier: String, val locales: List<LabelValueDefinitionStrings>, val severity: String)

Declares a label value and its expected interpretations and behaviors.

Link copied to clipboard
data class LabelValueDefinitionStrings(val description: String, val lang: <Error class: unknown class>, val name: String)

Strings which describe the label in the UI, localized into a specific language.

Link copied to clipboard
data class QueryLabelsRequest(val cursor: String? = null, val limit: Long? = null, val sources: List<<Error class: unknown class>>? = null, val uriPatterns: List<String>)

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.

Link copied to clipboard
data class QueryLabelsResponse(val cursor: String? = null, val labels: List<Label>)
Link copied to clipboard
data class SelfLabel(val val: String)

Metadata tag on an atproto record, published by the author within the record. Note that schemas should use #selfLabels, not #selfLabel.

Link copied to clipboard

Metadata tags on an atproto record, published by the author within the record.

Functions

Link copied to clipboard
fun LabelService.queryLabelsFlow(request: QueryLabelsRequest): <Error class: unknown class><Label>

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.

Link copied to clipboard
fun LabelService.queryLabelsPageFlow(request: QueryLabelsRequest): <Error class: unknown class><List<Label>>

Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.