commonMain.com.atproto.server.createSession.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 identifier Handle or other identifier supported by the server for the authenticating user.
*/
@Serializable
public data class CreateSessionRequest(
/**
* Handle or other identifier supported by the server for the authenticating user.
*/
public val identifier: String,
public val password: String,
public val authFactorToken: String? = null,
)
/**
* @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 CreateSessionResponse(
public val accessJwt: String,
public val refreshJwt: String,
public val handle: Handle,
public val did: Did,
public val didDoc: JsonContent? = null,
public val email: String? = null,
public val emailConfirmed: Boolean? = null,
public val emailAuthFactor: Boolean? = 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: CreateSessionStatus? = null,
)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy