{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codeatlas-com-br/json-schema/codeatlas-com-br-agent-identity-schema.json",
  "title": "AgentIdentity",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codeatlas-com-br-openapi.yml#/components/schemas/AgentIdentity",
  "type": "object",
  "required": [
    "client_id",
    "audience",
    "scopes",
    "expires_at",
    "issued_at",
    "issuer",
    "registration_type",
    "sandbox",
    "email"
  ],
  "properties": {
    "client_id": {
      "type": "string"
    },
    "audience": {
      "type": "string",
      "format": "uri"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "expires_at": {
      "type": "string",
      "format": "date-time"
    },
    "issued_at": {
      "type": "string",
      "format": "date-time"
    },
    "issuer": {
      "type": "string",
      "format": "uri"
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "description": "Confirmed email for service_auth registrations, otherwise null."
    },
    "registration_type": {
      "type": "string",
      "enum": [
        "dynamic_client",
        "service_auth"
      ]
    },
    "sandbox": {
      "type": "boolean"
    }
  },
  "additionalProperties": false
}