{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/speakeroo-app/json-schema/speakeroo-app-refine-transcript-response-schema.json",
  "title": "RefineTranscriptResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/speakeroo-app-openapi.json#/components/schemas/RefineTranscriptResponse",
  "type": "object",
  "properties": {
    "callToAction": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "url": {
          "type": "string"
        }
      },
      "required": [
        "text",
        "url"
      ],
      "additionalProperties": false
    },
    "refinedVersion": {
      "type": "object",
      "properties": {
        "changesSummary": {
          "type": "string"
        },
        "coachingTip": {
          "type": "string"
        },
        "originalWordCount": {
          "type": "number"
        },
        "refinedWordCount": {
          "type": "number"
        },
        "sections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "label",
              "text"
            ],
            "additionalProperties": false
          }
        },
        "structure": {
          "type": "string",
          "enum": [
            "prep",
            "star",
            "problem_solution",
            "past_present_future",
            "story_arc",
            "rule_of_three",
            "compare_contrast",
            "cause_effect",
            "what_so_what_now_what",
            "local_to_global"
          ]
        },
        "structureName": {
          "type": "string"
        },
        "structureScore": {
          "type": "number",
          "description": "How well the original already followed it, 1-10"
        }
      },
      "required": [
        "changesSummary",
        "coachingTip",
        "originalWordCount",
        "refinedWordCount",
        "sections",
        "structure",
        "structureName",
        "structureScore"
      ],
      "additionalProperties": false
    },
    "wordCount": {
      "type": "number"
    }
  },
  "required": [
    "callToAction",
    "refinedVersion",
    "wordCount"
  ],
  "additionalProperties": false
}