
commonMain.tools.ozone.setting.upsertOption.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.
@file:Suppress("DEPRECATION")
package tools.ozone.setting
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Nsid
import sh.christian.ozone.api.model.JsonContent
@Serializable
public data class UpsertOptionRequest(
public val key: Nsid,
public val scope: UpsertOptionScope,
public val `value`: JsonContent,
public val description: String? = null,
public val managerRole: String? = null,
) {
init {
require(description == null || description.count() <= 2_000) {
"description.count() must be <= 2_000, but was ${description?.count()}"
}
}
}
@Serializable
public data class UpsertOptionResponse(
public val option: Option,
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy