commonMain.com.atproto.admin.updateSubjectStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluesky-jvm Show documentation
Show all versions of bluesky-jvm Show documentation
Bluesky Social API bindings for Kotlin.
The newest version!
@file:Suppress("DEPRECATION")
package com.atproto.admin
import com.atproto.repo.StrongRef
import kotlin.Suppress
import kotlin.jvm.JvmInline
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.runtime.valueClassSerializer
@Serializable
public sealed interface UpdateSubjectStatusRequestSubjectUnion {
public class AdminRepoRefSerializer : KSerializer by valueClassSerializer(
serialName = "com.atproto.admin.defs#repoRef",
constructor = ::AdminRepoRef,
valueProvider = AdminRepoRef::value,
valueSerializerProvider = { RepoRef.serializer() },
)
@Serializable(with = AdminRepoRefSerializer::class)
@JvmInline
@SerialName("com.atproto.admin.defs#repoRef")
public value class AdminRepoRef(
public val `value`: RepoRef,
) : UpdateSubjectStatusRequestSubjectUnion
public class RepoStrongRefSerializer : KSerializer by valueClassSerializer(
serialName = "com.atproto.repo.strongRef",
constructor = ::RepoStrongRef,
valueProvider = RepoStrongRef::value,
valueSerializerProvider = { StrongRef.serializer() },
)
@Serializable(with = RepoStrongRefSerializer::class)
@JvmInline
@SerialName("com.atproto.repo.strongRef")
public value class RepoStrongRef(
public val `value`: StrongRef,
) : UpdateSubjectStatusRequestSubjectUnion
public class AdminRepoBlobRefSerializer : KSerializer by valueClassSerializer(
serialName = "com.atproto.admin.defs#repoBlobRef",
constructor = ::AdminRepoBlobRef,
valueProvider = AdminRepoBlobRef::value,
valueSerializerProvider = { RepoBlobRef.serializer() },
)
@Serializable(with = AdminRepoBlobRefSerializer::class)
@JvmInline
@SerialName("com.atproto.admin.defs#repoBlobRef")
public value class AdminRepoBlobRef(
public val `value`: RepoBlobRef,
) : UpdateSubjectStatusRequestSubjectUnion
}
@Serializable
public sealed interface UpdateSubjectStatusResponseSubjectUnion {
public class AdminRepoRefSerializer : KSerializer by valueClassSerializer(
serialName = "com.atproto.admin.defs#repoRef",
constructor = ::AdminRepoRef,
valueProvider = AdminRepoRef::value,
valueSerializerProvider = { RepoRef.serializer() },
)
@Serializable(with = AdminRepoRefSerializer::class)
@JvmInline
@SerialName("com.atproto.admin.defs#repoRef")
public value class AdminRepoRef(
public val `value`: RepoRef,
) : UpdateSubjectStatusResponseSubjectUnion
public class RepoStrongRefSerializer : KSerializer by valueClassSerializer(
serialName = "com.atproto.repo.strongRef",
constructor = ::RepoStrongRef,
valueProvider = RepoStrongRef::value,
valueSerializerProvider = { StrongRef.serializer() },
)
@Serializable(with = RepoStrongRefSerializer::class)
@JvmInline
@SerialName("com.atproto.repo.strongRef")
public value class RepoStrongRef(
public val `value`: StrongRef,
) : UpdateSubjectStatusResponseSubjectUnion
public class AdminRepoBlobRefSerializer : KSerializer by valueClassSerializer(
serialName = "com.atproto.admin.defs#repoBlobRef",
constructor = ::AdminRepoBlobRef,
valueProvider = AdminRepoBlobRef::value,
valueSerializerProvider = { RepoBlobRef.serializer() },
)
@Serializable(with = AdminRepoBlobRefSerializer::class)
@JvmInline
@SerialName("com.atproto.admin.defs#repoBlobRef")
public value class AdminRepoBlobRef(
public val `value`: RepoBlobRef,
) : UpdateSubjectStatusResponseSubjectUnion
}
@Serializable
public data class UpdateSubjectStatusRequest(
public val subject: UpdateSubjectStatusRequestSubjectUnion,
public val takedown: StatusAttr? = null,
public val deactivated: StatusAttr? = null,
)
@Serializable
public data class UpdateSubjectStatusResponse(
public val subject: UpdateSubjectStatusResponseSubjectUnion,
public val takedown: StatusAttr? = null,
)