{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/truelist-io/json-schema/truelist-io-me-schema.json",
  "title": "me",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/truelist-io-openapi.yml#/components/schemas/me",
  "type": "object",
  "properties": {
    "email": {
      "type": "string",
      "format": "email",
      "description": "Email address of the user"
    },
    "name": {
      "type": "string",
      "description": "The full name of the user"
    },
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "A unique identifier for the user"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "last_login_at": {
      "type": "string",
      "description": "The last login date of the user",
      "format": "date-time"
    },
    "time_zone": {
      "type": "string",
      "description": "The time zone for the user"
    },
    "token": {
      "type": "string",
      "description": "The api token currently in use for the request"
    },
    "api_keys": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/api_key"
      }
    }
  },
  "$defs": {
    "api_key": {
      "type": "object",
      "properties": {
        "active": {
          "type": "boolean",
          "description": "Whether the api token is active or not"
        },
        "name": {
          "type": "string",
          "description": "The name of the api token"
        },
        "last_used_at": {
          "type": "string",
          "format": "date-time",
          "description": "The last time the api key was used"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "When the API key was created"
        }
      }
    }
  }
}