{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scriptseen-com/json-schema/scriptseen-com-brief-schema.json",
  "title": "Brief",
  "description": "What a creator tells us. Bounds mirror ScriptRequest and the lab form.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scriptseen-com-openapi.json#/components/schemas/Brief",
  "properties": {
    "topic": {
      "type": "string",
      "maxLength": 4000,
      "minLength": 1,
      "title": "Topic"
    },
    "audience": {
      "type": "string",
      "maxLength": 500,
      "minLength": 1,
      "title": "Audience"
    },
    "platform": {
      "type": "string",
      "enum": [
        "tiktok",
        "reels",
        "youtube-shorts"
      ],
      "title": "Platform",
      "default": "tiktok"
    },
    "duration": {
      "type": "integer",
      "maximum": 180.0,
      "minimum": 10.0,
      "title": "Duration",
      "default": 45
    },
    "tone": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 300
        },
        {
          "type": "null"
        }
      ],
      "title": "Tone"
    },
    "temperature": {
      "type": "number",
      "maximum": 1.5,
      "minimum": 0.0,
      "title": "Temperature",
      "default": 0.8
    },
    "mode": {
      "type": "string",
      "title": "Mode",
      "default": "take"
    },
    "goal": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 20
        },
        {
          "type": "null"
        }
      ],
      "title": "Goal"
    },
    "request_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Request Id"
    },
    "recovery_key": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Recovery Key"
    }
  },
  "type": "object",
  "required": [
    "topic",
    "audience"
  ]
}