{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Answers where the caller stood before.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "org": {
              "description": "The organization.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "org"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "dev.knotless.removeOrgMember#removed",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Takes the caller out of an organization they left by deleting their dev.knotless.orgAcceptance record, through the gateway the organization delegated writes to: out of its records, its space and its private repositories' spaces, but for repositories shared with them on their own. The membership ended with the record; this takes back what the organization had let them read. Requires a service token from the caller's PDS, audience the gateway's DID, for this method.",
  "id": "dev.knotless.leaveOrg",
  "lexicon": 1
}
