{
  "lexicon": 1,
  "id": "com.atproto.temp.dereferenceScope",
  "defs": {
    "main": {
      "type": "query",
      "description": "Allows finding the oauth permission scope from a reference",
      "parameters": {
        "type": "params",
        "required": ["scope"],
        "properties": {
          "scope": {
            "type": "string",
            "description": "The scope reference (starts with 'ref:')"
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["scope"],
          "properties": {
            "scope": {
              "type": "string",
              "description": "The full oauth permission scope"
            }
          }
        }
      },
      "errors": [
        {
          "name": "InvalidScopeReference",
          "description": "An invalid scope reference was provided."
        }
      ]
    }
  }
}
