{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kinetune-com/json-schema/kinetune-com-music-video-plan-schema.json",
  "title": "MusicVideoPlan",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/kinetune-com-v1-openapi.json#/components/schemas/MusicVideoPlan",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "song_id": {
      "type": "string"
    },
    "draft": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "1 for the first plan, n+1 for a rewrite"
    },
    "revision_of": {
      "type": [
        "string",
        "null"
      ]
    },
    "note": {
      "type": [
        "string",
        "null"
      ]
    },
    "brief": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {},
      "description": "What it was planned from: model, category, style, aspect_ratio, trim, direction, on_screen, performer, cast"
    },
    "title": {
      "description": "The film's name, as the director titled it",
      "type": [
        "string",
        "null"
      ]
    },
    "concept": {
      "type": "string"
    },
    "style": {
      "type": "string"
    },
    "clips": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "character": {
      "description": "The character who performs (the brief's performer, else the artist's; list_characters; null when nobody performs): each outfit is drawn on it when the video is made, priced in the quote",
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "description": "The performer's name as shots read it",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ]
    },
    "people": {
      "description": "The other characters in its shots (mentioned by @handle in direction: the artist's own and those other artists shared), each in one outfit throughout",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "character": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "handle": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "handle"
            ],
            "additionalProperties": false
          },
          "name": {
            "type": "string"
          },
          "wardrobe": {
            "type": "string"
          },
          "outfit": {
            "description": "The kit outfit they wear throughout (drawn on their sheet by the lookbook, or picked in the brief); null: the director dresses them",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "handle": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "handle"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "index",
          "character",
          "name",
          "wardrobe"
        ],
        "additionalProperties": false
      }
    },
    "on_screen": {
      "description": "Who is on screen: the artist, a cast or no one",
      "type": "string",
      "enum": [
        "artist",
        "cast",
        "none"
      ]
    },
    "revision": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "video_id": {
              "type": "string"
            },
            "shots": {
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "asked": {
              "description": "The shots the artist asked to change, each rewritten from its note (shots adds those carried straight on from them)",
              "type": "array",
              "items": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            }
          },
          "required": [
            "video_id",
            "shots"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "A revision of a delivered music video (revise_music_video_shot): that video, and the shots made again (the others are reused as they were); null for a plan of a new video"
    },
    "world": {
      "type": "object",
      "properties": {
        "setting": {
          "type": "string"
        },
        "wardrobe": {
          "type": "string"
        },
        "light": {
          "type": "string"
        }
      },
      "required": [
        "setting",
        "wardrobe",
        "light"
      ],
      "additionalProperties": false,
      "description": "What every shot keeps"
    },
    "places": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "description": {
            "type": "string"
          },
          "kit": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "handle": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "name",
                  "handle"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "photo": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "stock_id": {
                    "type": "string"
                  },
                  "thumbnail_url": {
                    "type": "string"
                  },
                  "credit": {
                    "anyOf": [
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {}
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "stock_id",
                  "thumbnail_url",
                  "credit"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "index",
          "description",
          "kit",
          "photo"
        ],
        "additionalProperties": false
      },
      "description": "The real places it is set in: kit pieces (kit), or stock photos the director found (photo); neither: no usable photo was found, so it is imagined. Empty: every place is imagined"
    },
    "outfits": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "kit": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "handle": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "handle"
            ],
            "additionalProperties": false
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "index",
          "kit",
          "description"
        ],
        "additionalProperties": false
      },
      "description": "The kit outfits it uses"
    },
    "props": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "kit": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "handle": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name",
              "handle"
            ],
            "additionalProperties": false
          },
          "description": {
            "type": "string"
          }
        },
        "required": [
          "index",
          "kit",
          "description"
        ],
        "additionalProperties": false
      },
      "description": "The kit props it uses"
    },
    "joins": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991,
      "description": "In a continuous take, the joins drawn as pictures (priced per picture); 0 otherwise"
    },
    "shots": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "start_seconds": {
            "type": "number"
          },
          "end_seconds": {
            "type": "number"
          },
          "section": {
            "type": [
              "string",
              "null"
            ]
          },
          "lyrics": {
            "type": "string",
            "description": "What is sung in this clip, line breaks as \" / \""
          },
          "summary": {
            "type": "string",
            "description": "What we see"
          },
          "places": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "description": "The places it happens in (numbers into places)"
          },
          "outfit": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The kit outfit worn (a number into outfits), or null: the world's wardrobe (world.wardrobe)"
          },
          "props": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            },
            "description": "The kit props seen (numbers into props)"
          },
          "people": {
            "description": "The other characters in the shot, as they stand (numbers into people)",
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": -9007199254740991,
              "maximum": 9007199254740991
            }
          },
          "continues": {
            "type": "boolean",
            "description": "It carries straight on from the shot before (a continuous take), with no cut"
          },
          "performance": {
            "type": "string",
            "enum": [
              "sings",
              "plays",
              "over"
            ],
            "description": "sings: the artist sings it on camera (lip-synced); plays: they play an instrument to it; over: the song plays over the shot and nobody sings on camera. New values may be added"
          },
          "on_screen": {
            "type": "string",
            "enum": [
              "artist",
              "cast",
              "none"
            ],
            "description": "Who is in the shot: the artist, a cast (other people), or nobody. New values may be added"
          },
          "framing": {
            "type": "string",
            "enum": [
              "close",
              "wide"
            ],
            "description": "close: the artist sings it on camera, face and mouth large in frame; wide: the song plays over them (dancing, walking, the place). New values may be added"
          },
          "cue": {
            "description": "The moment the direction pinned a change to (on \"…\" or at m:ss) that this shot starts on; null when none",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "said": {
                    "description": "The words sung where it starts",
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "note": {
                    "type": "string",
                    "description": "The direction's sentence: what changes"
                  }
                },
                "required": [
                  "said",
                  "note"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "camera": {
            "description": "How the director framed its (first) shot: size (close, medium, wide), angle (front, three-quarter, side, low, high, over-shoulder, back) and move (push-in, pull-out, arc, tilt, dolly, handheld, locked-off). Null for plans made before it. New values may be added",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "size": {
                    "type": "string",
                    "enum": [
                      "close",
                      "medium",
                      "wide"
                    ]
                  },
                  "angle": {
                    "type": "string",
                    "enum": [
                      "front",
                      "three-quarter",
                      "side",
                      "low",
                      "high",
                      "over-shoulder",
                      "back"
                    ]
                  },
                  "move": {
                    "type": "string",
                    "enum": [
                      "push-in",
                      "pull-out",
                      "arc",
                      "tilt",
                      "dolly",
                      "handheld",
                      "locked-off"
                    ]
                  }
                },
                "required": [
                  "size",
                  "angle",
                  "move"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "index",
          "start_seconds",
          "end_seconds",
          "section",
          "lyrics",
          "summary",
          "places",
          "outfit",
          "props",
          "continues",
          "performance",
          "on_screen",
          "framing"
        ],
        "additionalProperties": false
      }
    },
    "outro": {
      "description": "The release card the director designed for this video: used only when the video is ordered with outro (create_music_video outro); no outro is added otherwise. null before outros",
      "anyOf": [
        {
          "type": "object",
          "properties": {},
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "created_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "song_id",
    "draft",
    "revision_of",
    "note",
    "brief",
    "title",
    "concept",
    "style",
    "clips",
    "revision",
    "world",
    "places",
    "outfits",
    "props",
    "joins",
    "shots",
    "created_at"
  ],
  "additionalProperties": {}
}