{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-api-response-of-ienumerable-of-workspace-user-dto-schema.json",
  "title": "ApiResponseOfIEnumerableOfWorkspaceUserDto",
  "description": "Standard v2 API response envelope for single-item responses.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-users-api-openapi.yml#/components/schemas/ApiResponseOfIEnumerableOfWorkspaceUserDto",
  "type": "object",
  "properties": {
    "data": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/WorkspaceUserDto"
      }
    },
    "meta": {
      "$ref": "#/$defs/ResponseMeta"
    }
  },
  "$defs": {
    "ResponseMeta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": [
            "null",
            "string"
          ]
        },
        "timestamp": {
          "type": [
            "null",
            "string"
          ]
        }
      }
    },
    "WorkspaceRole": {
      "enum": [
        "Owner",
        "ContentAdmin",
        "IncidentResponder",
        "IncidentAnalyst",
        "WorkspaceReader"
      ]
    },
    "WorkspaceUserDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "null",
            "string"
          ]
        },
        "displayName": {
          "type": [
            "null",
            "string"
          ]
        },
        "email": {
          "type": [
            "null",
            "string"
          ]
        },
        "workspaceId": {
          "type": [
            "null",
            "string"
          ]
        },
        "role": {
          "$ref": "#/$defs/WorkspaceRole"
        },
        "userId": {
          "type": [
            "null",
            "string"
          ]
        },
        "isAgentUser": {
          "type": "boolean",
          "description": "Whether the assignment belongs to an AI agent service identity. Agent assignments\nare immutable from IAM screens — agent requests authenticate through them."
        }
      }
    }
  }
}