{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-user-profile-response-schema.json",
  "title": "UserProfileResponse",
  "description": "Response for GET /auth/me.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-authentication-api-openapi.yml#/components/schemas/UserProfileResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "email": {
      "type": "string",
      "title": "Email"
    },
    "display_name": {
      "type": "string",
      "title": "Display Name"
    },
    "role": {
      "type": "string",
      "title": "Role"
    },
    "sso_provider": {
      "type": "string",
      "title": "Sso Provider"
    },
    "sso_groups": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Sso Groups"
    },
    "permissions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Permissions"
    }
  },
  "type": "object",
  "required": [
    "id",
    "email",
    "display_name",
    "role",
    "sso_provider",
    "sso_groups",
    "permissions"
  ]
}