{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ethora-com/json-schema/ethora-com-chat-users-patch-batch-response-schema.json",
  "title": "ChatUsersPatchBatchResponse",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ethora-com-openapi.json#/components/schemas/ChatUsersPatchBatchResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "summary": {
      "$ref": "#/$defs/BatchSummary"
    },
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChatUsersPatchBatchDetail"
      }
    },
    "details": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChatUsersPatchBatchDetail"
      }
    }
  },
  "required": [
    "ok",
    "summary",
    "results",
    "details"
  ],
  "additionalProperties": false,
  "$defs": {
    "BatchSummary": {
      "type": "object",
      "properties": {
        "requested": {
          "type": "integer",
          "description": "How many items the client requested to process."
        },
        "byStatus": {
          "type": "object",
          "additionalProperties": {
            "type": "integer"
          }
        }
      },
      "required": [
        "requested",
        "byStatus"
      ],
      "additionalProperties": true
    },
    "ChatUsersPatchBatchDetail": {
      "type": "object",
      "properties": {
        "uuid": {
          "type": [
            "string",
            "null"
          ]
        },
        "xmppUsername": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string"
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "user": {
          "$ref": "#/$defs/UserPublic",
          "nullable": true
        }
      },
      "additionalProperties": true
    },
    "UserPublic": {
      "type": "object",
      "properties": {
        "_id": {
          "type": "string"
        },
        "uuid": {
          "type": [
            "string",
            "null"
          ]
        },
        "xmppUsername": {
          "type": "string"
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "firstName": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastName": {
          "type": [
            "string",
            "null"
          ]
        },
        "username": {
          "type": [
            "string",
            "null"
          ]
        },
        "profileImage": {
          "type": [
            "string",
            "null"
          ]
        },
        "profilePicture": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": true
    }
  }
}