{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sentfrom-ai/json-schema/sentfrom-ai-domain-schema.json",
  "title": "Domain",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sentfrom-ai-openapi.json#/components/schemas/Domain",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "hostname": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "system",
        "tenant_subdomain",
        "byo"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "verifying",
        "verified",
        "failed"
      ]
    },
    "mail_from_domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "mail_from_status": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "pending",
        "success",
        "failed"
      ]
    },
    "dmarc_policy": {
      "type": "string",
      "enum": [
        "none",
        "quarantine",
        "reject"
      ]
    },
    "verified_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}