{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/twexapi-io/json-schema/twexapi-io-get-conversations-v3-response-schema.json",
  "title": "GetConversationsV3Response",
  "description": "Response for getting XChat conversation list",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/twexapi-io-dm-endpoints-api-openapi.yml#/components/schemas/GetConversationsV3Response",
  "properties": {
    "code": {
      "type": "integer",
      "title": "Code",
      "description": "Response code"
    },
    "msg": {
      "type": "string",
      "title": "Msg",
      "description": "Response message"
    },
    "data": {
      "items": {
        "$ref": "#/$defs/ConversationV3Model"
      },
      "type": "array",
      "title": "Data",
      "description": "Conversation list"
    }
  },
  "type": "object",
  "required": [
    "code",
    "msg",
    "data"
  ],
  "$defs": {
    "ConversationV3Model": {
      "properties": {
        "conversation_id": {
          "type": "string",
          "title": "Conversation Id",
          "description": "Conversation id"
        },
        "type": {
          "type": "string",
          "title": "Type",
          "description": "Conversation type: direct or group"
        },
        "is_muted": {
          "type": "boolean",
          "title": "Is Muted",
          "description": "Whether the conversation is muted"
        },
        "participants": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Participants",
          "description": "Participant user ids"
        }
      },
      "type": "object",
      "required": [
        "conversation_id",
        "type",
        "is_muted",
        "participants"
      ],
      "title": "ConversationV3Model",
      "description": "XChat conversation item"
    }
  }
}