commonMain.tools.ozone.moderation.ModEventViewDetail.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 tools.ozone.moderation
import kotlin.Long
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmInline
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Did
import sh.christian.ozone.api.model.JsonContent
import sh.christian.ozone.api.model.Timestamp
import sh.christian.ozone.api.runtime.valueClassSerializer
@Serializable
public sealed interface ModEventViewDetailEventUnion {
public class ModEventTakedownSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventTakedown",
constructor = ::ModEventTakedown,
valueProvider = ModEventTakedown::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventTakedown.serializer() },
)
@JvmInline
@Serializable(with = ModEventTakedownSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventTakedown")
public value class ModEventTakedown(
public val `value`: tools.ozone.moderation.ModEventTakedown,
) : ModEventViewDetailEventUnion
public class ModEventReverseTakedownSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventReverseTakedown",
constructor = ::ModEventReverseTakedown,
valueProvider = ModEventReverseTakedown::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventReverseTakedown.serializer() },
)
@JvmInline
@Serializable(with = ModEventReverseTakedownSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventReverseTakedown")
public value class ModEventReverseTakedown(
public val `value`: tools.ozone.moderation.ModEventReverseTakedown,
) : ModEventViewDetailEventUnion
public class ModEventCommentSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventComment",
constructor = ::ModEventComment,
valueProvider = ModEventComment::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventComment.serializer() },
)
@JvmInline
@Serializable(with = ModEventCommentSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventComment")
public value class ModEventComment(
public val `value`: tools.ozone.moderation.ModEventComment,
) : ModEventViewDetailEventUnion
public class ModEventReportSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventReport",
constructor = ::ModEventReport,
valueProvider = ModEventReport::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventReport.serializer() },
)
@JvmInline
@Serializable(with = ModEventReportSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventReport")
public value class ModEventReport(
public val `value`: tools.ozone.moderation.ModEventReport,
) : ModEventViewDetailEventUnion
public class ModEventLabelSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventLabel",
constructor = ::ModEventLabel,
valueProvider = ModEventLabel::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventLabel.serializer() },
)
@JvmInline
@Serializable(with = ModEventLabelSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventLabel")
public value class ModEventLabel(
public val `value`: tools.ozone.moderation.ModEventLabel,
) : ModEventViewDetailEventUnion
public class ModEventAcknowledgeSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventAcknowledge",
constructor = ::ModEventAcknowledge,
valueProvider = ModEventAcknowledge::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventAcknowledge.serializer() },
)
@JvmInline
@Serializable(with = ModEventAcknowledgeSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventAcknowledge")
public value class ModEventAcknowledge(
public val `value`: tools.ozone.moderation.ModEventAcknowledge,
) : ModEventViewDetailEventUnion
public class ModEventEscalateSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventEscalate",
constructor = ::ModEventEscalate,
valueProvider = ModEventEscalate::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventEscalate.serializer() },
)
@JvmInline
@Serializable(with = ModEventEscalateSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventEscalate")
public value class ModEventEscalate(
public val `value`: tools.ozone.moderation.ModEventEscalate,
) : ModEventViewDetailEventUnion
public class ModEventMuteSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventMute",
constructor = ::ModEventMute,
valueProvider = ModEventMute::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventMute.serializer() },
)
@JvmInline
@Serializable(with = ModEventMuteSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventMute")
public value class ModEventMute(
public val `value`: tools.ozone.moderation.ModEventMute,
) : ModEventViewDetailEventUnion
public class ModEventUnmuteSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventUnmute",
constructor = ::ModEventUnmute,
valueProvider = ModEventUnmute::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventUnmute.serializer() },
)
@JvmInline
@Serializable(with = ModEventUnmuteSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventUnmute")
public value class ModEventUnmute(
public val `value`: tools.ozone.moderation.ModEventUnmute,
) : ModEventViewDetailEventUnion
public class ModEventMuteReporterSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventMuteReporter",
constructor = ::ModEventMuteReporter,
valueProvider = ModEventMuteReporter::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventMuteReporter.serializer() },
)
@JvmInline
@Serializable(with = ModEventMuteReporterSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventMuteReporter")
public value class ModEventMuteReporter(
public val `value`: tools.ozone.moderation.ModEventMuteReporter,
) : ModEventViewDetailEventUnion
public class ModEventUnmuteReporterSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventUnmuteReporter",
constructor = ::ModEventUnmuteReporter,
valueProvider = ModEventUnmuteReporter::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventUnmuteReporter.serializer() },
)
@JvmInline
@Serializable(with = ModEventUnmuteReporterSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventUnmuteReporter")
public value class ModEventUnmuteReporter(
public val `value`: tools.ozone.moderation.ModEventUnmuteReporter,
) : ModEventViewDetailEventUnion
public class ModEventEmailSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventEmail",
constructor = ::ModEventEmail,
valueProvider = ModEventEmail::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventEmail.serializer() },
)
@JvmInline
@Serializable(with = ModEventEmailSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventEmail")
public value class ModEventEmail(
public val `value`: tools.ozone.moderation.ModEventEmail,
) : ModEventViewDetailEventUnion
public class ModEventResolveAppealSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventResolveAppeal",
constructor = ::ModEventResolveAppeal,
valueProvider = ModEventResolveAppeal::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventResolveAppeal.serializer() },
)
@JvmInline
@Serializable(with = ModEventResolveAppealSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventResolveAppeal")
public value class ModEventResolveAppeal(
public val `value`: tools.ozone.moderation.ModEventResolveAppeal,
) : ModEventViewDetailEventUnion
public class ModEventDivertSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventDivert",
constructor = ::ModEventDivert,
valueProvider = ModEventDivert::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventDivert.serializer() },
)
@JvmInline
@Serializable(with = ModEventDivertSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventDivert")
public value class ModEventDivert(
public val `value`: tools.ozone.moderation.ModEventDivert,
) : ModEventViewDetailEventUnion
public class ModEventTagSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#modEventTag",
constructor = ::ModEventTag,
valueProvider = ModEventTag::value,
valueSerializerProvider = { tools.ozone.moderation.ModEventTag.serializer() },
)
@JvmInline
@Serializable(with = ModEventTagSerializer::class)
@SerialName("tools.ozone.moderation.defs#modEventTag")
public value class ModEventTag(
public val `value`: tools.ozone.moderation.ModEventTag,
) : ModEventViewDetailEventUnion
public class AccountEventSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#accountEvent",
constructor = ::AccountEvent,
valueProvider = AccountEvent::value,
valueSerializerProvider = { tools.ozone.moderation.AccountEvent.serializer() },
)
@JvmInline
@Serializable(with = AccountEventSerializer::class)
@SerialName("tools.ozone.moderation.defs#accountEvent")
public value class AccountEvent(
public val `value`: tools.ozone.moderation.AccountEvent,
) : ModEventViewDetailEventUnion
public class IdentityEventSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#identityEvent",
constructor = ::IdentityEvent,
valueProvider = IdentityEvent::value,
valueSerializerProvider = { tools.ozone.moderation.IdentityEvent.serializer() },
)
@JvmInline
@Serializable(with = IdentityEventSerializer::class)
@SerialName("tools.ozone.moderation.defs#identityEvent")
public value class IdentityEvent(
public val `value`: tools.ozone.moderation.IdentityEvent,
) : ModEventViewDetailEventUnion
public class RecordEventSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#recordEvent",
constructor = ::RecordEvent,
valueProvider = RecordEvent::value,
valueSerializerProvider = { tools.ozone.moderation.RecordEvent.serializer() },
)
@JvmInline
@Serializable(with = RecordEventSerializer::class)
@SerialName("tools.ozone.moderation.defs#recordEvent")
public value class RecordEvent(
public val `value`: tools.ozone.moderation.RecordEvent,
) : ModEventViewDetailEventUnion
@JvmInline
@Serializable
public value class Unknown(
public val `value`: JsonContent,
) : ModEventViewDetailEventUnion
}
@Serializable
public sealed interface ModEventViewDetailSubjectUnion {
public class RepoViewSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#repoView",
constructor = ::RepoView,
valueProvider = RepoView::value,
valueSerializerProvider = { tools.ozone.moderation.RepoView.serializer() },
)
@JvmInline
@Serializable(with = RepoViewSerializer::class)
@SerialName("tools.ozone.moderation.defs#repoView")
public value class RepoView(
public val `value`: tools.ozone.moderation.RepoView,
) : ModEventViewDetailSubjectUnion
public class RepoViewNotFoundSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#repoViewNotFound",
constructor = ::RepoViewNotFound,
valueProvider = RepoViewNotFound::value,
valueSerializerProvider = { tools.ozone.moderation.RepoViewNotFound.serializer() },
)
@JvmInline
@Serializable(with = RepoViewNotFoundSerializer::class)
@SerialName("tools.ozone.moderation.defs#repoViewNotFound")
public value class RepoViewNotFound(
public val `value`: tools.ozone.moderation.RepoViewNotFound,
) : ModEventViewDetailSubjectUnion
public class RecordViewSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#recordView",
constructor = ::RecordView,
valueProvider = RecordView::value,
valueSerializerProvider = { tools.ozone.moderation.RecordView.serializer() },
)
@JvmInline
@Serializable(with = RecordViewSerializer::class)
@SerialName("tools.ozone.moderation.defs#recordView")
public value class RecordView(
public val `value`: tools.ozone.moderation.RecordView,
) : ModEventViewDetailSubjectUnion
public class RecordViewNotFoundSerializer : KSerializer by valueClassSerializer(
serialName = "tools.ozone.moderation.defs#recordViewNotFound",
constructor = ::RecordViewNotFound,
valueProvider = RecordViewNotFound::value,
valueSerializerProvider = { tools.ozone.moderation.RecordViewNotFound.serializer() },
)
@JvmInline
@Serializable(with = RecordViewNotFoundSerializer::class)
@SerialName("tools.ozone.moderation.defs#recordViewNotFound")
public value class RecordViewNotFound(
public val `value`: tools.ozone.moderation.RecordViewNotFound,
) : ModEventViewDetailSubjectUnion
@JvmInline
@Serializable
public value class Unknown(
public val `value`: JsonContent,
) : ModEventViewDetailSubjectUnion
}
@Serializable
public data class ModEventViewDetail(
public val id: Long,
public val event: ModEventViewDetailEventUnion,
public val subject: ModEventViewDetailSubjectUnion,
public val subjectBlobs: List,
public val createdBy: Did,
public val createdAt: Timestamp,
)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy