532681d5c0
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
67 lines
1.8 KiB
JSON
67 lines
1.8 KiB
JSON
{
|
|
"id": "com.atproto.repo.deleteRecord",
|
|
"defs": {
|
|
"main": {
|
|
"type": "procedure",
|
|
"input": {
|
|
"schema": {
|
|
"type": "object",
|
|
"required": [
|
|
"repo",
|
|
"collection",
|
|
"rkey"
|
|
],
|
|
"properties": {
|
|
"repo": {
|
|
"type": "string",
|
|
"format": "at-identifier",
|
|
"description": "The handle or DID of the repo (aka, current account)."
|
|
},
|
|
"rkey": {
|
|
"type": "string",
|
|
"format": "record-key",
|
|
"description": "The Record Key."
|
|
},
|
|
"collection": {
|
|
"type": "string",
|
|
"format": "nsid",
|
|
"description": "The NSID of the record collection."
|
|
},
|
|
"swapCommit": {
|
|
"type": "string",
|
|
"format": "cid",
|
|
"description": "Compare and swap with the previous commit by CID."
|
|
},
|
|
"swapRecord": {
|
|
"type": "string",
|
|
"format": "cid",
|
|
"description": "Compare and swap with the previous record by CID."
|
|
}
|
|
}
|
|
},
|
|
"encoding": "application/json"
|
|
},
|
|
"errors": [
|
|
{
|
|
"name": "InvalidSwap"
|
|
}
|
|
],
|
|
"output": {
|
|
"schema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"commit": {
|
|
"ref": "com.atproto.repo.defs#commitMeta",
|
|
"type": "ref"
|
|
}
|
|
}
|
|
},
|
|
"encoding": "application/json"
|
|
},
|
|
"description": "Delete a repository record, or ensure it doesn't exist. Requires auth, implemented by PDS."
|
|
}
|
|
},
|
|
"$type": "com.atproto.lexicon.schema",
|
|
"lexicon": 1
|
|
}
|