{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ethora-com/json-schema/ethora-com-chat-user-chats-response-schema.json",
  "title": "ChatUserChatsResponse",
  "x-generated": "2026-11-07",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ethora-com-openapi.json#/components/schemas/ChatUserChatsResponse",
  "type": "object",
  "properties": {
    "results": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChatRecord"
      }
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ChatRecord"
      }
    },
    "pagination": {
      "type": "object",
      "properties": {
        "limit": {
          "type": "integer"
        },
        "offset": {
          "type": "integer"
        },
        "total": {
          "type": "integer"
        }
      },
      "additionalProperties": true
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    }
  },
  "required": [
    "results",
    "items",
    "pagination",
    "limit",
    "offset",
    "total"
  ],
  "$defs": {
    "ChatRecord": {
      "type": "object",
      "properties": {
        "_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "type": {
          "type": [
            "string",
            "null"
          ]
        },
        "picture": {
          "type": [
            "string",
            "null"
          ]
        },
        "appId": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "e2ee": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "reported": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "members": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/UserPublic"
          }
        },
        "createdAt": {
          "type": [
            "string",
            "null"
          ]
        },
        "updatedAt": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "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
    }
  }
}