{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Opens a sign-in link, once, within 15 minutes of sending, and starts the account session.",
      "errors": [
        {
          "name": "LinkExpired"
        },
        {
          "name": "EmailTaken"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "token": {
              "type": "string"
            }
          },
          "required": [
            "token"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "account": {
              "ref": "club.hellyeah.defs#accountView",
              "type": "ref"
            },
            "next": {
              "type": "string"
            },
            "outcome": {
              "knownValues": [
                "signedIn",
                "confirmed",
                "created",
                "claimed"
              ],
              "type": "string"
            }
          },
          "required": [
            "outcome",
            "account"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "club.hellyeah.account.useLink",
  "lexicon": 1
}
