{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-knowledge-search-response-dto-success-response-schema.json",
  "title": "KnowledgeSearchResponseDtoSuccessResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/flowra-dev-knowledge-api-openapi.yml#/components/schemas/KnowledgeSearchResponseDtoSuccessResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Success message"
    },
    "data": {
      "type": "object",
      "properties": {
        "results": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "content": {
                "type": "string"
              },
              "preview": {
                "type": "string"
              },
              "score": {
                "type": "number",
                "description": "Similarity score"
              },
              "sourceKey": {
                "type": "string"
              },
              "sourceType": {
                "type": "string",
                "enum": [
                  "file",
                  "url",
                  "text"
                ]
              },
              "sourceLabel": {
                "type": "string"
              },
              "chunkIndex": {
                "type": "number"
              },
              "totalChunks": {
                "type": "number"
              }
            },
            "required": [
              "content",
              "preview",
              "score",
              "sourceKey",
              "sourceType",
              "sourceLabel"
            ]
          }
        }
      },
      "required": [
        "results"
      ]
    }
  },
  "required": [
    "success",
    "message",
    "data"
  ]
}