{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/flowra-dev/json-schema/flowra-dev-knowledge-chunks-page-dto-success-response-schema.json",
  "title": "KnowledgeChunksPageDtoSuccessResponse",
  "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/KnowledgeChunksPageDtoSuccessResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean",
      "description": "Success status"
    },
    "message": {
      "type": "string",
      "description": "Success message"
    },
    "data": {
      "type": "object",
      "properties": {
        "chunks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "Chunk point ID"
              },
              "content": {
                "type": "string",
                "description": "Full chunk text content"
              },
              "preview": {
                "type": "string",
                "description": "Short preview of content"
              },
              "chunkIndex": {
                "type": "number",
                "description": "0-based chunk index within source document"
              },
              "totalChunks": {
                "type": "number",
                "description": "Total chunks in the source document"
              },
              "sourceKey": {
                "type": "string",
                "description": "Source key this chunk belongs to"
              },
              "sourceType": {
                "type": "string",
                "enum": [
                  "file",
                  "url",
                  "text"
                ]
              },
              "sourceLabel": {
                "type": "string",
                "description": "Source display label"
              },
              "createdAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "content",
              "preview",
              "sourceKey",
              "sourceType",
              "sourceLabel"
            ]
          }
        },
        "total": {
          "type": "number",
          "description": "Total matching chunks"
        },
        "nextOffset": {
          "type": [
            "string",
            "null"
          ],
          "description": "Pass as offset query for the next page (Qdrant scroll cursor)"
        }
      },
      "required": [
        "chunks",
        "total"
      ]
    }
  },
  "required": [
    "success",
    "message",
    "data"
  ]
}