{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "domainSummary": {
      "description": "Summary of a claimed domain for list views.",
      "properties": {
        "domain": {
          "maxLength": 253,
          "minLength": 3,
          "type": "string"
        },
        "kind": {
          "enum": [
            "wisp",
            "custom"
          ],
          "type": "string"
        },
        "lastCheckedAt": {
          "format": "datetime",
          "type": "string"
        },
        "siteRkey": {
          "format": "record-key",
          "type": "string"
        },
        "status": {
          "enum": [
            "pendingVerification",
            "verified"
          ],
          "type": "string"
        },
        "verified": {
          "type": "boolean"
        }
      },
      "required": [
        "domain",
        "kind",
        "status",
        "verified"
      ],
      "type": "object"
    },
    "main": {
      "description": "List domains for the authenticated DID (wisp subdomains + custom).",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "domains": {
              "description": "Domains owned by the caller DID.",
              "items": {
                "ref": "#domainSummary",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "domains"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "place.wisp.v2.domain.getList",
  "lexicon": 1
}
