commonMain.com.atproto.sync.subscribeReposAccount.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky-jvm Show documentation
Show all versions of bluesky-jvm Show documentation
Bluesky Social API bindings for Kotlin.
The newest version!
@file:Suppress("DEPRECATION")
package com.atproto.sync
import kotlin.Boolean
import kotlin.Long
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.model.Timestamp
/**
* Represents a change to an account's status on a host (eg, PDS or Relay). The semantics of this
* event are that the status is at the host which emitted the event, not necessarily that at the
* currently active PDS. Eg, a Relay takedown would emit a takedown with active=false, even if the PDS
* is still active.
*
* @param active Indicates that the account has a repository which can be fetched from the host that
* emitted this event.
* @param status If active=false, this optional field indicates a reason for why the account is not
* active.
*/
@Serializable
public data class SubscribeReposAccount(
public val seq: Long,
public val did: Did,
public val time: Timestamp,
/**
* Indicates that the account has a repository which can be fetched from the host that emitted
* this event.
*/
public val active: Boolean,
/**
* If active=false, this optional field indicates a reason for why the account is not active.
*/
public val status: SubscribeReposStatus? = null,
)