{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/9bot-com-br/json-schema/9bot-com-br-json-rpc-client-payload-schema.json",
  "title": "JsonRpcClientPayload",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/9bot-com-br-openapi.json#/components/schemas/JsonRpcClientPayload",
  "oneOf": [
    {
      "$ref": "#/$defs/JsonRpcClientMessage"
    },
    {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/JsonRpcClientMessage"
      }
    }
  ],
  "$defs": {
    "JsonRpcClientMessage": {
      "oneOf": [
        {
          "$ref": "#/$defs/JsonRpcRequest"
        },
        {
          "$ref": "#/$defs/JsonRpcNotification"
        }
      ]
    },
    "JsonRpcId": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "integer"
        }
      ],
      "description": "A client-selected JSON-RPC request identifier."
    },
    "JsonRpcNotification": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "jsonrpc",
        "method"
      ],
      "properties": {
        "jsonrpc": {
          "type": "string",
          "const": "2.0"
        },
        "method": {
          "type": "string",
          "minLength": 1
        },
        "params": {
          "oneOf": [
            {
              "type": "object"
            },
            {
              "type": "array"
            }
          ],
          "description": "Method-specific parameters."
        }
      }
    },
    "JsonRpcRequest": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "jsonrpc",
        "id",
        "method"
      ],
      "properties": {
        "jsonrpc": {
          "type": "string",
          "const": "2.0"
        },
        "id": {
          "$ref": "#/$defs/JsonRpcId"
        },
        "method": {
          "type": "string",
          "minLength": 1
        },
        "params": {
          "oneOf": [
            {
              "type": "object"
            },
            {
              "type": "array"
            }
          ],
          "description": "Method-specific parameters."
        }
      }
    }
  }
}