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

commonMain.com.atproto.server.getSession.kt Maven / Gradle / Ivy

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

package com.atproto.server

import kotlin.Boolean
import kotlin.String
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.JsonContent

/**
 * @param status If active=false, this optional field indicates a possible reason for why the
 * account is not active. If active=false and no status is supplied, then the host makes no claim for
 * why the repository is no longer being hosted.
 */
@Serializable
public data class GetSessionResponse(
  public val handle: Handle,
  public val did: Did,
  public val email: String? = null,
  public val emailConfirmed: Boolean? = null,
  public val emailAuthFactor: Boolean? = null,
  public val didDoc: JsonContent? = null,
  public val active: Boolean? = null,
  /**
   * If active=false, this optional field indicates a possible reason for why the account is not
   * active. If active=false and no status is supplied, then the host makes no claim for why the
   * repository is no longer being hosted.
   */
  public val status: GetSessionStatus? = null,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy