{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nizlo-com/json-schema/nizlo-com-auth-context-schema.json",
  "title": "AuthContext",
  "x-generated": "2026-11-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nizlo-com-nizlo-rmm-api-openapi.yml#/components/schemas/AuthContext",
  "type": "object",
  "required": [
    "userId",
    "tenantId",
    "email",
    "displayName",
    "permissions"
  ],
  "properties": {
    "userId": {
      "type": "string",
      "format": "uuid"
    },
    "tenantId": {
      "type": "string",
      "format": "uuid"
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "displayName": {
      "type": "string"
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "authentication": {
      "type": "string",
      "enum": [
        "session",
        "access-token"
      ]
    },
    "accessTokenId": {
      "type": "string",
      "format": "uuid"
    }
  }
}