All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.atproto.sync.subscribeReposIdentity.kt Maven / Gradle / Ivy

The newest version!
@file:Suppress("DEPRECATION")

package com.atproto.sync

import kotlin.Long
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.Handle
import sh.christian.ozone.api.model.Timestamp

/**
 * Represents a change to an account's identity. Could be an updated handle, signing key, or pds
 * hosting endpoint. Serves as a prod to all downstream services to refresh their identity cache.
 *
 * @param handle The current handle for the account, or 'handle.invalid' if validation fails. This
 * field is optional, might have been validated or passed-through from an upstream source. Semantics
 * and behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.
 */
@Serializable
public data class SubscribeReposIdentity(
  public val seq: Long,
  public val did: Did,
  public val time: Timestamp,
  /**
   * The current handle for the account, or 'handle.invalid' if validation fails. This field is
   * optional, might have been validated or passed-through from an upstream source. Semantics and
   * behaviors for PDS vs Relay may evolve in the future; see atproto specs for more details.
   */
  public val handle: Handle? = null,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy