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.

Repository @whey.party did:plc:mn45tewwnse5btfftvd3powc not from the namespace authority
Details · procedure
Kindprocedure
Authoritywriteproxy.whey.party
Commit rev3n3m7ce4gzk2w
Indexed
cid bafyreifn2gvr6itombh4quibs62i3i4njiyxedzmovr76x5mj6wnagsrhe

Checks

Valid
  • missing-primary-description defs.mainThe procedure has no description.
  • unlimited-string defs.main.input.schema.properties.actions.itemsNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$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
}