{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-page-dto-public-user-get-dto-schema.json",
  "title": "PublicPageDtoPublicUserGetDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sifflet-users-api-openapi.yml#/components/schemas/PublicPageDtoPublicUserGetDto",
  "required": [
    "data"
  ],
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicUserGetDto"
      }
    },
    "totalCount": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "PublicUserGetDto": {
      "required": [
        "authTypes",
        "email",
        "id",
        "name",
        "permissions",
        "role",
        "status",
        "teams"
      ],
      "type": "object",
      "properties": {
        "authTypes": {
          "uniqueItems": true,
          "type": "array",
          "description": "Authorized authentication type of the user",
          "items": {
            "type": "string",
            "description": "Authorized authentication type of the user",
            "enum": [
              "SAML2",
              "LOGIN_PASSWORD"
            ]
          }
        },
        "email": {
          "type": "string",
          "description": "Email of the user"
        },
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string",
          "description": "Name of the user"
        },
        "permissions": {
          "uniqueItems": true,
          "type": "array",
          "description": "Domain access permissions of the user",
          "items": {
            "$ref": "#/$defs/PublicUserPermissionAssignmentDto"
          }
        },
        "role": {
          "type": "string",
          "description": "System role of the user",
          "enum": [
            "ADMIN",
            "EDITOR",
            "VIEWER"
          ]
        },
        "status": {
          "type": "string",
          "description": "Status of the user",
          "enum": [
            "ENABLED",
            "DISABLED"
          ]
        },
        "teams": {
          "uniqueItems": true,
          "type": "array",
          "description": "Teams of the user",
          "items": {
            "$ref": "#/$defs/PublicUserTeamDto"
          }
        }
      }
    },
    "PublicUserPermissionAssignmentDto": {
      "required": [
        "domainId"
      ],
      "type": "object",
      "properties": {
        "domainId": {
          "type": "string",
          "description": "Id of the domain",
          "format": "uuid"
        },
        "domainRole": {
          "type": "string",
          "description": "Domain role assigned to the principal for accessing the referenced domain",
          "enum": [
            "EDITOR",
            "MONITOR_RESPONDER",
            "CATALOG_EDITOR",
            "VIEWER"
          ]
        }
      },
      "description": "Domain access permissions of the user"
    },
    "PublicUserTeamDto": {
      "required": [
        "teamId"
      ],
      "type": "object",
      "properties": {
        "teamId": {
          "type": "string",
          "description": "Id of the team",
          "format": "uuid"
        }
      },
      "description": "Teams of the user"
    }
  }
}