{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.aep.foundation/schemas/platform-verification-response.schema.json",
  "title": "AEP Platform Verification Response",
  "type": "object",
  "required": ["reason", "service_did", "verified"],
  "additionalProperties": true,
  "properties": {
    "agent_did": {
      "type": "string",
      "pattern": "^did:"
    },
    "agent_identity_id": {
      "type": "string",
      "minLength": 1
    },
    "op": {
      "type": "string",
      "enum": ["enroll", "grant", "revoke", "status", "authenticate"]
    },
    "reason": {
      "type": "string",
      "enum": ["not_recognized", "verified"]
    },
    "service_did": {
      "type": "string",
      "pattern": "^did:"
    },
    "status": {
      "type": "string",
      "enum": ["active", "revoked", "suspended", "terminated"]
    },
    "verified": {
      "type": "boolean"
    }
  }
}
