{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-user-update-dto-schema.json",
  "title": "PublicUserUpdateDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sifflet-users-api-openapi.yml#/components/schemas/PublicUserUpdateDto",
  "required": [
    "name",
    "role"
  ],
  "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"
        ]
      }
    },
    "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"
      ]
    }
  },
  "$defs": {
    "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"
    }
  }
}