dev.knotless.awaitDelegation

lexicons.knotless.dev

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Asks this appview's gateway whether the delegation is approved (dev.knotless.getDelegation), which waits a while for it before saying it is not yet: ask again until done. Once done, the appview remembers the gateway for the account, so that sharing a repository for writing from the pages names it. A procedure, since it writes that. Requires the session cookie the pages' login sets.",
      "errors": [
        {
          "description": "No such delegation waits, or the account refused the grant.",
          "name": "InvalidRequest"
        },
        {
          "description": "No account is logged in to the pages, or its session has ended.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "state": {
              "description": "The delegation, as dev.knotless.delegateWrites named it.",
              "maxLength": 256,
              "type": "string"
            }
          },
          "required": [
            "state"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "done": {
              "description": "Whether it was approved: false while it waits still.",
              "type": "boolean"
            },
            "gateway": {
              "description": "Once done, the gateway that now writes for the account.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "done"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Waits a while for the account logged in to this appview's pages to approve a delegation dev.knotless.delegateWrites started.",
  "id": "dev.knotless.awaitDelegation",
  "lexicon": 1
}

Validate Record

Validate a record against dev.knotless.awaitDelegation

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:yqsg7znbbhfmj3a2nrpnaerk
CID
bafyreidg5pmj3uer2bwn2cdn42yjscprwkxzavtlfa6glf3t7qkq5bvuky
Indexed At
2026-10-28 21:21 UTC
AT-URI
at://did:plc:yqsg7znbbhfmj3a2nrpnaerk/com.atproto.lexicon.schema/dev.knotless.awaitDelegation

Similar Lexicons

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Starts delegating the writes of the account logged in to this appview's pages to the appview's gateway, as `knotless delegate` does.

  • Waits, for a while, for a delegation the caller started with dev.knotless.putDelegation to be approved. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.

  • Starts delegating the caller's writes to a gateway. The gateway, an OAuth client of the caller's PDS, pushes an authorization request for the caller and answers with the page where the caller approves it; once they do, …

Lexicon Garden

@