{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "$id": "https://taxonmark.com/api/v1/types/inter-agent-contract",
    "title": "Inter-Agent Contract / Treaty",
    "type": "object",
    "required": [
        "party_agent_dois",
        "terms_hash",
        "effective_date"
    ],
    "properties": {
        "party_agent_dois": {
            "title": "Party agent IDs",
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "Taxonmark IDs (for example TM.AI.2026.7KQ2X) or DOIs registered elsewhere"
        },
        "terms_hash": {
            "title": "Terms hash",
            "type": "string",
            "pattern": "^(sha256:)?[A-Fa-f0-9]{64}$",
            "description": "SHA-256 hex (optionally prefixed sha256:)"
        },
        "terms_url": {
            "title": "Terms URL",
            "type": "string",
            "format": "uri"
        },
        "effective_date": {
            "title": "Effective date",
            "type": "string",
            "format": "date"
        },
        "termination_conditions": {
            "title": "Termination conditions",
            "type": "string",
            "x-widget": "textarea",
            "maxLength": 20000
        },
        "governing_law": {
            "title": "Governing law",
            "type": "string",
            "maxLength": 1000
        }
    },
    "additionalProperties": true
}