commonMain.com.atproto.server.getAccountInviteCodes.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.Any
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlinx.collections.immutable.toImmutableList
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.model.ReadOnlyList
/**
* @param createAvailable Controls whether any new 'earned' but not 'created' invites should be
* created.
*/
@Serializable
public data class GetAccountInviteCodesQueryParams(
public val includeUsed: Boolean? = true,
/**
* Controls whether any new 'earned' but not 'created' invites should be created.
*/
public val createAvailable: Boolean? = true,
) {
public fun asList(): ReadOnlyList> = buildList {
add("includeUsed" to includeUsed)
add("createAvailable" to createAvailable)
}.toImmutableList()
}
@Serializable
public data class GetAccountInviteCodesResponse(
public val codes: ReadOnlyList,
)