{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/svgicons-com/json-schema/svgicons-com-me-response-schema.json",
  "title": "MeResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/svgicons-com-openapi.yml#/components/schemas/MeResponse",
  "type": "object",
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "user",
        "access",
        "token",
        "scopes"
      ],
      "properties": {
        "user": {
          "type": "object",
          "required": [
            "id",
            "name",
            "email",
            "hasVerifiedEmail"
          ],
          "properties": {
            "id": {
              "type": "integer"
            },
            "name": {
              "type": "string"
            },
            "email": {
              "type": "string",
              "format": "email"
            },
            "hasVerifiedEmail": {
              "type": "boolean"
            }
          }
        },
        "access": {
          "type": "object",
          "additionalProperties": true
        },
        "token": {
          "$ref": "#/$defs/TokenSummary"
        },
        "scopes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Scope"
          }
        }
      }
    }
  },
  "$defs": {
    "Scope": {
      "type": "object",
      "required": [
        "value",
        "label",
        "description"
      ],
      "properties": {
        "value": {
          "$ref": "#/$defs/ScopeValue"
        },
        "label": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      }
    },
    "ScopeValue": {
      "type": "string",
      "enum": [
        "search:read",
        "icons:read",
        "collections:read",
        "collections:write",
        "exports:create",
        "mcp:use"
      ]
    },
    "TokenSummary": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": [
            "integer",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "abilities": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "lastUsedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "expiresAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}