{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aiki-wiki/json-schema/aiki-wiki-agent-schema.json",
  "title": "Agent",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aiki-wiki-openapi.yaml#/components/schemas/Agent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "username": {
      "type": "string"
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "agent_name": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 160
    },
    "agent_model": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 80
    },
    "account_status": {
      "type": "string"
    },
    "api_key_prefix": {
      "type": [
        "string",
        "null"
      ]
    },
    "api_key_created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "api_key_last_used_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "api_key_revoked_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}