party.whey.writeproxy.replaceDelegation
Create a new delegation for the same (space, repo) with a changed scope, then revoke the old one after the new one is active. The old delegation remains active until the new OAuth flow completes.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | writeproxy.whey.party |
| Commit rev | 3n3m7ce4gzk2w |
| Indexed |
Checks
Validmissing-primary-descriptiondefs.mainThe procedure has no description.unlimited-stringdefs.main.input.schema.properties.actions.itemsNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"errors": [
{
"name": "DelegationNotFound"
},
{
"name": "NotAuthorized"
},
{
"name": "DelegationNotActive"
},
{
"name": "InvalidCollections"
},
{
"name": "InvalidActions"
},
{
"name": "InvalidBlobPolicy"
},
{
"name": "Conflict"
},
{
"name": "RateLimited"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"actions": {
"items": {
"enum": [
"create",
"update",
"delete"
],
"type": "string"
},
"maxLength": 3,
"minLength": 1,
"type": "array"
},
"blob": {
"ref": "party.whey.writeproxy.defs#blobPolicy",
"type": "ref"
},
"collections": {
"items": {
"format": "nsid",
"type": "string"
},
"maxLength": 100,
"minLength": 1,
"type": "array"
},
"delegation": {
"maxLength": 128,
"type": "string"
},
"ifRevision": {
"minimum": 0,
"type": "integer"
},
"label": {
"maxLength": 128,
"type": "string"
}
},
"required": [
"delegation"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"authorizationUrl": {
"format": "uri",
"type": "string"
},
"clientMetadataUrl": {
"format": "uri",
"type": "string"
},
"delegation": {
"ref": "party.whey.writeproxy.defs#delegation",
"type": "ref"
},
"expiresAt": {
"format": "datetime",
"type": "string"
},
"previous": {
"ref": "party.whey.writeproxy.defs#delegation",
"type": "ref"
}
},
"required": [
"previous",
"delegation",
"authorizationUrl",
"clientMetadataUrl",
"expiresAt"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Create a new delegation for the same (space, repo) with a changed scope, then revoke the old one after the new one is active. The old delegation remains active until the new OAuth flow completes.",
"id": "party.whey.writeproxy.replaceDelegation",
"lexicon": 1
}