{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://agentexec.dev/schemas/agentexec-auth-v1.schema.json",
  "title": "AgentExecExecutionAuthorizationV1",
  "type": "object",
  "additionalProperties": false,
  "required": ["version", "auth_id", "intent_hash", "expiry", "alg", "kid", "signature"],
  "not": { "required": ["expires_at"] },
  "properties": {
    "version": { "const": "agentexec-auth-v1" },
    "auth_id": { "type": "string", "minLength": 1 },
    "intent_hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
    "expiry": { "type": "integer", "minimum": 1 },
    "alg": { "enum": ["EdDSA", "ES256"] },
    "kid": { "type": "string", "minLength": 1 },
    "signature": { "type": "string", "minLength": 1 }
  }
}
