{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gnosem-dev/json-schema/gnosem-dev-me-schema.json",
  "title": "Me",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gnosem-dev-openapi.json#/components/schemas/Me",
  "type": "object",
  "required": [
    "user_id",
    "plan",
    "memory_count"
  ],
  "properties": {
    "user_id": {
      "type": "string",
      "format": "uuid"
    },
    "email": {
      "type": [
        "string",
        "null"
      ],
      "format": "email"
    },
    "plan": {
      "type": "string",
      "enum": [
        "free",
        "pro"
      ]
    },
    "subscription_status": {
      "type": [
        "string",
        "null"
      ]
    },
    "subscription_period_end": {
      "type": [
        "integer",
        "null"
      ],
      "description": "ms epoch"
    },
    "memory_count": {
      "type": "integer"
    },
    "memory_limit": {
      "type": [
        "integer",
        "null"
      ],
      "description": "null on pro (unlimited)"
    }
  }
}