commonMain.com.atproto.server.getSession.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky Show documentation
Show all versions of bluesky Show documentation
Bluesky Social API bindings for Kotlin.
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,
)