{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/ai-deployment-instance",
    "title": "AI Deployment Instance",
    "type": "object",
    "required": [
        "deployment_name",
        "system_release_doi",
        "deployer",
        "jurisdictions",
        "go_live_date",
        "risk_class"
    ],
    "properties": {
        "deployment_name": {
            "title": "Deployment name",
            "type": "string",
            "maxLength": 1000
        },
        "system_release_doi": {
            "title": "AI System Release ID (IsDeploymentOf)",
            "type": "string",
            "format": "doi",
            "description": "A Taxonmark ID (for example TM.AI.2026.7KQ2X) or a DOI registered elsewhere"
        },
        "deployer": {
            "title": "Deployer organisation",
            "type": "string",
            "maxLength": 1000
        },
        "deployer_ror": {
            "title": "Deployer ROR",
            "type": "string",
            "format": "ror"
        },
        "product": {
            "title": "Product / service",
            "type": "string",
            "maxLength": 1000
        },
        "jurisdictions": {
            "title": "Jurisdictions / regions (ISO 3166)",
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "configuration_hash": {
            "title": "Configuration hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "go_live_date": {
            "title": "Go-live date",
            "type": "string",
            "format": "date"
        },
        "end_of_life_date": {
            "title": "End-of-life date",
            "type": "string",
            "format": "date"
        },
        "sector": {
            "title": "Sector",
            "type": "string",
            "enum": [
                "finance",
                "health",
                "public-sector",
                "education",
                "employment",
                "media",
                "legal",
                "transport",
                "other"
            ]
        },
        "risk_class": {
            "title": "Risk class (deployment context)",
            "type": "string",
            "enum": [
                "minimal",
                "limited",
                "high",
                "unacceptable",
                "not-assessed"
            ]
        },
        "human_oversight": {
            "title": "Human oversight measures",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "fria_ref": {
            "title": "Fundamental-rights impact assessment reference",
            "type": "string",
            "format": "uri"
        },
        "monitoring_plan": {
            "title": "Post-deployment monitoring plan",
            "type": "string",
            "format": "uri"
        },
        "incident_contact_url": {
            "title": "Incident reporting URL",
            "type": "string",
            "format": "uri"
        }
    },
    "additionalProperties": true
}