commonMain.com.atproto.repo.applyWritesCreate.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.repo
import kotlin.String
import kotlin.Suppress
import kotlinx.serialization.Serializable
import sh.christian.ozone.api.Nsid
import sh.christian.ozone.api.model.JsonContent
/**
* Operation which creates a new record.
*/
@Serializable
public data class ApplyWritesCreate(
public val collection: Nsid,
public val rkey: String? = null,
public val `value`: JsonContent,
) {
init {
require(rkey == null || rkey.count() <= 512) {
"rkey.count() must be <= 512, but was ${rkey?.count()}"
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy