{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clusterhack-dev/json-schema/clusterhack-dev-aievent-draft-response-schema.json",
  "title": "AIEventDraftResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clusterhack-dev-ai-api-openapi.yml#/components/schemas/AIEventDraftResponse",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "topic": {
      "type": "string",
      "maxLength": 100
    },
    "for_whom": {
      "type": "string",
      "maxLength": 700
    },
    "description": {
      "type": "string",
      "maxLength": 10000
    },
    "hashtag": {
      "type": "string",
      "maxLength": 100
    },
    "tracks": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 255
      }
    },
    "timeline": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AIEventDraftTimelineItem"
      }
    },
    "criteria": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AIEventDraftCriterion"
      }
    },
    "time_zone": {
      "type": "string",
      "default": "",
      "maxLength": 32
    },
    "duration_hours": {
      "type": [
        "integer",
        "null"
      ]
    },
    "source": {
      "$ref": "#/$defs/AIProvenanceEnum"
    },
    "model": {
      "type": "string",
      "maxLength": 120
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 500
      }
    }
  },
  "required": [
    "description",
    "for_whom",
    "source",
    "topic",
    "warnings"
  ],
  "$defs": {
    "AIEventDraftCriterion": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "maxLength": 200
        },
        "description": {
          "type": "string",
          "maxLength": 600
        },
        "weight": {
          "type": "integer",
          "maximum": 100,
          "minimum": 1
        },
        "max_score": {
          "type": "integer",
          "maximum": 100,
          "minimum": 1
        }
      },
      "required": [
        "max_score",
        "name",
        "weight"
      ]
    },
    "AIEventDraftTimelineItem": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "maxLength": 64
        },
        "time": {
          "type": "string",
          "maxLength": 40
        },
        "description": {
          "type": "string",
          "maxLength": 1000
        }
      },
      "required": [
        "title"
      ]
    },
    "AIProvenanceEnum": {
      "enum": [
        "openai",
        "fallback"
      ],
      "type": "string",
      "description": "* `openai` - openai\n* `fallback` - fallback"
    }
  }
}