{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://protocol.agiscorecard.com/input.schema.json",
  "title": "Protocol Ledger input structure",
  "description": "Structural contract. The engine additionally validates ranges, dates, amounts, uniqueness and cross-field constraints; passing this schema is not a complete validation.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "purpose",
    "status",
    "asOf",
    "maxAgeDays"
  ],
  "properties": {
    "purpose": {
      "type": "string",
      "enum": [
        "all",
        "payment",
        "identity",
        "token"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "all",
        "draft",
        "standard",
        "specification"
      ]
    },
    "asOf": {
      "type": "string"
    },
    "maxAgeDays": {
      "type": "number"
    }
  }
}
