{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sortance/json-schema/sortance-screen-response-schema.json",
  "title": "ScreenResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sortance-openapi.json#/components/schemas/ScreenResponse",
  "type": "object",
  "properties": {
    "email": {
      "type": "string"
    },
    "domain": {
      "type": "object",
      "properties": {
        "syntax": {
          "type": "string",
          "enum": [
            "pass",
            "fail"
          ]
        },
        "mx": {
          "type": "string",
          "enum": [
            "pass",
            "fail",
            "unknown"
          ]
        },
        "disposable": {
          "type": "boolean"
        }
      }
    },
    "screening": {
      "type": "object",
      "properties": {
        "typo_suggestion": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ]
        },
        "typo_source": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "name_match",
                "domain"
              ]
            },
            {
              "type": "null"
            }
          ]
        },
        "name_match": {
          "type": "string",
          "enum": [
            "match",
            "typo",
            "partial",
            "mismatch",
            "not_checked"
          ]
        },
        "fake_name": {
          "type": "string",
          "enum": [
            "likely",
            "unlikely",
            "uncertain",
            "not_checked"
          ]
        },
        "domain_check": {
          "type": "string",
          "enum": [
            "ok",
            "typo_like",
            "lookalike",
            "placeholder",
            "throwaway_like",
            "uncertain",
            "not_checked"
          ]
        },
        "placeholder": {
          "type": "boolean"
        },
        "recommendation": {
          "type": "string",
          "enum": [
            "allow",
            "review"
          ],
          "description": "Never deny."
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "syntax_invalid",
              "address_blocklisted",
              "domain_blocklisted",
              "domain_no_mx",
              "disposable_domain",
              "domain_allowlisted",
              "address_allowlisted",
              "domain_typo",
              "local_part_typo_of_name",
              "name_mismatch",
              "placeholder_address",
              "domain_suspicious",
              "address_fake_likely",
              "fake_name_likely",
              "name_email_inconsistent"
            ]
          }
        },
        "degraded": {
          "type": "boolean"
        }
      }
    },
    "cost_usd": {
      "type": "number"
    },
    "latency_ms": {
      "type": "integer"
    },
    "trace_id": {
      "type": "string",
      "description": "sc_-prefixed."
    }
  },
  "required": [
    "email",
    "domain",
    "screening",
    "cost_usd",
    "latency_ms",
    "trace_id"
  ]
}