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

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

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,
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy