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

commonMain.com.atproto.repo.applyWritesCreate.kt Maven / Gradle / Ivy

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