{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentcreditdata-com/json-schema/agentcreditdata-com-agent-response-schema.json",
  "title": "AgentResponse",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentcreditdata-com-openapi.json#/components/schemas/AgentResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "subject",
    "snapshot_id",
    "as_of",
    "evidence_refs"
  ],
  "properties": {
    "subject": {
      "$ref": "#/$defs/Subject"
    },
    "snapshot_id": {
      "type": "string",
      "minLength": 1
    },
    "as_of": {
      "type": "string",
      "format": "date-time"
    },
    "evidence_refs": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    }
  },
  "$defs": {
    "ControlEpoch": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "starts_at",
        "ends_at",
        "continuity",
        "evidence_refs"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "starts_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "ends_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "continuity": {
          "enum": [
            "EVIDENCED",
            "UNKNOWN",
            "BROKEN"
          ]
        },
        "evidence_refs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        }
      }
    },
    "Identifier": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "kind",
        "value"
      ],
      "properties": {
        "kind": {
          "enum": [
            "WALLET",
            "ERC8004",
            "A2A",
            "MCP",
            "DOMAIN",
            "ENS",
            "DID",
            "ORGANIZATION"
          ]
        },
        "value": {
          "type": "string",
          "minLength": 1
        }
      }
    },
    "IdentityLink": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "from_identifier",
        "to_identifier",
        "predicate",
        "valid_from",
        "valid_until",
        "evidence_refs",
        "limitation"
      ],
      "properties": {
        "from_identifier": {
          "type": "string",
          "minLength": 1
        },
        "to_identifier": {
          "type": "string",
          "minLength": 1
        },
        "predicate": {
          "type": "string",
          "minLength": 1
        },
        "valid_from": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "valid_until": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ]
        },
        "evidence_refs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1
          }
        },
        "limitation": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "null"
            }
          ]
        }
      }
    },
    "Subject": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "id",
        "kind",
        "identifiers",
        "identity_links",
        "control_epochs"
      ],
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1
        },
        "kind": {
          "enum": [
            "REGISTERED_AGENT",
            "ECONOMIC_WALLET_AGENT_STATUS_UNKNOWN",
            "ORGANIZATION"
          ]
        },
        "identifiers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Identifier"
          }
        },
        "identity_links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/IdentityLink"
          }
        },
        "control_epochs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ControlEpoch"
          }
        }
      }
    }
  }
}