{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-chat-session-message-request-schema.json",
  "title": "ChatSessionMessageRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-chat-api-openapi.yml#/components/schemas/ChatSessionMessageRequest",
  "properties": {
    "message": {
      "type": "string",
      "maxLength": 32000,
      "minLength": 1,
      "title": "Message"
    },
    "idempotency_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Idempotency Key"
    },
    "context": {
      "anyOf": [
        {
          "$ref": "#/$defs/ChatPageContext"
        },
        {
          "type": "null"
        }
      ]
    },
    "stream": {
      "type": "boolean",
      "title": "Stream",
      "default": false
    },
    "provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    }
  },
  "type": "object",
  "required": [
    "message"
  ],
  "$defs": {
    "ChatPageContext": {
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "repository",
            "overview",
            "documentation",
            "architecture",
            "graph",
            "health",
            "refactoring",
            "file",
            "symbol",
            "module",
            "dependency",
            "commit",
            "contributor",
            "decision",
            "risk",
            "dead-code",
            "blast-radius",
            "security",
            "usage",
            "settings",
            "chat"
          ],
          "title": "Kind"
        },
        "label": {
          "type": "string",
          "maxLength": 120,
          "title": "Label"
        },
        "target": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 2000
            },
            {
              "type": "null"
            }
          ],
          "title": "Target"
        },
        "target_kind": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "path",
                "symbol",
                "module",
                "dependency",
                "commit",
                "person",
                "decision",
                "documentation"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Target Kind"
        }
      },
      "type": "object",
      "required": [
        "kind",
        "label"
      ],
      "title": "ChatPageContext",
      "description": "Navigation metadata supplied by a product chat surface."
    }
  }
}