{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/derive-to/json-schema/derive-to-artifact-domain-schema.json",
  "title": "ArtifactDomain",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/derive-to-domains-api-openapi.yml#/components/schemas/ArtifactDomain",
  "type": "object",
  "properties": {
    "host": {
      "type": "string",
      "description": "The hostname the artifact is served at."
    },
    "url": {
      "type": "string",
      "description": "That host with scheme, ready to link to."
    },
    "kind": {
      "type": "string",
      "enum": [
        "subdomain",
        "custom"
      ],
      "description": "\"subdomain\" = a vanity <label>.<base>; \"custom\" = a workspace custom domain."
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "pending",
        "error"
      ],
      "description": "\"active\" = serving; \"pending\" = awaiting DNS/cert; \"error\" = validation failed."
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "host",
    "url",
    "kind",
    "status",
    "created_at"
  ]
}