{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-user-session-schema.json",
  "title": "UserSession",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-users-api-openapi.yml#/components/schemas/UserSession",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Session id (not the session token, which is never returned)."
    },
    "createdAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "lastUsedAt": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO-8601 timestamp (UTC)."
        },
        {
          "type": "null"
        }
      ]
    },
    "expiresAt": {
      "type": "string",
      "description": "ISO-8601 timestamp (UTC)."
    },
    "userAgent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The browser or device that signed in."
    },
    "ipAddress": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "current": {
      "type": "boolean",
      "description": "This is the session making the call (always false for an API key)."
    }
  },
  "required": [
    "id",
    "createdAt",
    "lastUsedAt",
    "expiresAt",
    "userAgent",
    "ipAddress",
    "current"
  ]
}