{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agent-accord.org/schemas/agent-accord/v1-draft/schema.json",
  "title": "Agent Accord Terms Template",
  "description": "Draft schema for /.well-known/agent-accord.json",
  "type": "object",
  "required": [
    "version",
    "status",
    "draft_label",
    "domain",
    "kind",
    "contact",
    "spec",
    "accepted_identity_methods",
    "permitted_purposes",
    "receipt_requirement",
    "transparency_log_expectation",
    "updated_at"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "status": {
      "enum": ["draft", "experimental", "stable"]
    },
    "draft_label": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "kind": {
      "const": "terms-template"
    },
    "contact": {
      "type": "string",
      "format": "email"
    },
    "spec": {
      "type": "string",
      "format": "uri"
    },
    "schemas": {
      "type": "object"
    },
    "accepted_identity_methods": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "permitted_purposes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "prohibited_purposes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "receipt_requirement": {
      "type": "object"
    },
    "transparency_log_expectation": {
      "type": "object"
    },
    "revocation_policy": {
      "type": "object"
    },
    "legal_posture": {
      "type": "object"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "additionalProperties": true
}
