{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sitegpt-ai/json-schema/sitegpt-ai-custom-response-schema.json",
  "title": "CustomResponse",
  "description": "A curated question-and-answer override.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sitegpt-ai-custom-responses-api-openapi.yml#/components/schemas/CustomResponse",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": "string"
    },
    "chatbotId": {
      "type": "string"
    },
    "messageId": {
      "type": [
        "string",
        "null"
      ]
    },
    "question": {
      "type": "string"
    },
    "answer": {
      "type": [
        "string",
        "null"
      ]
    },
    "originalAnswer": {
      "type": [
        "string",
        "null"
      ]
    },
    "updatedAnswer": {
      "type": [
        "string",
        "null"
      ]
    },
    "state": {
      "type": "string",
      "description": "Review state, for example APPROVED or PENDING."
    },
    "source": {
      "type": "string",
      "enum": [
        "DOWNVOTED_BY_USER",
        "MANUALLY_ADDED",
        "MARKED_BY_ADMIN"
      ]
    },
    "document": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "carbonFileId": {
          "type": [
            "number",
            "null"
          ]
        },
        "ragaasDocumentId": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "carbonCustomerId": {
      "type": [
        "string",
        "null"
      ]
    },
    "trainedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updatedById": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}