Module Cephalopod_models.Com_Atproto_Repo_ApplyWrites

lexicon "com.atproto.repo.applyWrites"

def main

type main_input = {
  1. repo : string;
    (*

    The handle or DID of the repo (aka, current account). format: "AtIdentifier"

    *)
  2. validate : bool option;
    (*

    Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.

    *)
  3. writes : [ `Com_atproto_repo_applywrites_create of Types.com_atproto_repo_applywrites_create | `Com_atproto_repo_applywrites_update of Types.com_atproto_repo_applywrites_update | `Com_atproto_repo_applywrites_delete of Types.com_atproto_repo_applywrites_delete ] list;
  4. swapCommit : string option;
    (*

    If provided, the entire operation will fail if the current repo commit CID does not match this value. Used to prevent conflicting repo mutations. format: "Cid"

    *)
}
val show_main_input : main_input -> Ppx_deriving_runtime.string
val main_input_to_value : main_input -> Cephalopod_dasl.Value.t
type main_output = {
  1. commit : Types.com_atproto_repo_defs_commitmeta option;
  2. results : [ `Com_atproto_repo_applywrites_createresult of Types.com_atproto_repo_applywrites_createresult | `Com_atproto_repo_applywrites_updateresult of Types.com_atproto_repo_applywrites_updateresult | `Com_atproto_repo_applywrites_deleteresult of Types.com_atproto_repo_applywrites_deleteresult ] list option;
}
val show_main_output : main_output -> Ppx_deriving_runtime.string
val main_output_of_value : main_output Cephalopod_dasl.Value.Util.conv
val main_output_to_value : main_output -> Cephalopod_dasl.Value.t
type main_error = [
  1. | `InvalidSwap
]
val show_main_error : main_error -> Ppx_deriving_runtime.string

Apply a batch transaction of repository creates, updates, and deletes. Requires auth, implemented by PDS.

def create

type nonrec create = Types.com_atproto_repo_applywrites_create = {
  1. collection : string;
    (*

    format: "Nsid"

    *)
  2. rkey : string option;
    (*

    NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility. format: "RecordKey" maximum length: 512

    *)
  3. value : Cephalopod_dasl.Value.t;
}

def update

type nonrec update = Types.com_atproto_repo_applywrites_update = {
  1. collection : string;
    (*

    format: "Nsid"

    *)
  2. rkey : string;
    (*

    format: "RecordKey"

    *)
  3. value : Cephalopod_dasl.Value.t;
}

def delete

type nonrec delete = Types.com_atproto_repo_applywrites_delete = {
  1. collection : string;
    (*

    format: "Nsid"

    *)
  2. rkey : string;
    (*

    format: "RecordKey"

    *)
}

def createResult

type nonrec createresult = Types.com_atproto_repo_applywrites_createresult = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. validationStatus : string option;
    (*

    known values: "valid"; "unknown"

    *)
}

def updateResult

type nonrec updateresult = Types.com_atproto_repo_applywrites_updateresult = {
  1. uri : string;
    (*

    format: "AtUri"

    *)
  2. cid : string;
    (*

    format: "Cid"

    *)
  3. validationStatus : string option;
    (*

    known values: "valid"; "unknown"

    *)
}

def deleteResult