{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/supermailos-com/json-schema/supermailos-com-domain-summary-schema.json",
  "title": "DomainSummary",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/supermailos-com-openapi.json#/components/schemas/DomainSummary",
  "type": "object",
  "required": [
    "id",
    "domain",
    "kind",
    "status",
    "canSend",
    "createdAt",
    "verifiedAt",
    "lastCheckedAt",
    "nextCheckAt",
    "problems"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "custom",
        "instant"
      ],
      "description": "`instant`: the workspace's free subdomain of ours, with nothing to set up."
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "verifying",
        "verified",
        "failed"
      ]
    },
    "canSend": {
      "type": "boolean",
      "description": "Mail can be sent from it (it's verified)."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "verifiedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastCheckedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "nextCheckAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "The next scheduled check, while it isn't verified."
    },
    "problems": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What's wrong, one line per failing required record."
    }
  }
}