Label

data class Label(val ver: Long? = null, val src: Did, val uri: Uri, val cid: Cid? = null, val val: String, val neg: Boolean? = null, val cts: Timestamp, val exp: Timestamp? = null, val sig: ByteArray? = null)

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

Parameters

ver

The AT Protocol version of the label object.

src

DID of the actor who created this label.

uri

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

cid

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

val

The short string name of the value or type of this label.

neg

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

cts

Timestamp when this label was created.

exp

Timestamp at which this label expires (no longer applies).

sig

Signature of dag-cbor encoded label.

Constructors

Link copied to clipboard
constructor(ver: Long? = null, src: Did, uri: Uri, cid: Cid? = null, val: String, neg: Boolean? = null, cts: Timestamp, exp: Timestamp? = null, sig: ByteArray? = null)

Properties

Link copied to clipboard
val cid: Cid? = null

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

Link copied to clipboard

Timestamp when this label was created.

Link copied to clipboard
val exp: Timestamp? = null

Timestamp at which this label expires (no longer applies).

Link copied to clipboard
val neg: Boolean? = null

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

Link copied to clipboard
val sig: ByteArray? = null

Signature of dag-cbor encoded label.

Link copied to clipboard
val src: Did

DID of the actor who created this label.

Link copied to clipboard
val uri: Uri

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

Link copied to clipboard
val val: String

The short string name of the value or type of this label.

Link copied to clipboard
val ver: Long? = null

The AT Protocol version of the label object.