{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datagraph-city/json-schema/datagraph-city-user-response-schema.json",
  "title": "UserResponse",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/datagraph-city-openapi.json#/components/schemas/UserResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "tier": {
      "$ref": "#/$defs/UserTier"
    },
    "subscription_status": {
      "$ref": "#/$defs/SubscriptionStatus"
    },
    "queries_this_month": {
      "type": "integer",
      "title": "Queries This Month"
    },
    "queries_total": {
      "type": "integer",
      "title": "Queries Total"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "api_key_prefix": {
      "type": "string",
      "title": "Api Key Prefix"
    }
  },
  "type": "object",
  "required": [
    "id",
    "email",
    "tier",
    "subscription_status",
    "queries_this_month",
    "queries_total",
    "created_at",
    "api_key_prefix"
  ],
  "$defs": {
    "SubscriptionStatus": {
      "type": "string",
      "enum": [
        "active",
        "cancelled",
        "past_due",
        "paused"
      ],
      "title": "SubscriptionStatus"
    },
    "UserTier": {
      "type": "string",
      "enum": [
        "free",
        "starter",
        "pro",
        "enterprise"
      ],
      "title": "UserTier"
    }
  }
}