{
  "tong_image_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_reference_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_audio_reference_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_document_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_reference_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_lora_media_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_motion_video_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_motion_image_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_edit_upload": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_workflows": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_director_config": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_audio_config": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_video_editor_config": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_motion_config": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_lora_config": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_library_search": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "directorId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "unfiled": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "IMAGE",
              "VIDEO",
              "AUDIO"
            ]
          },
          "search": {
            "type": "string",
            "maxLength": 100
          },
          "cursor": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_asset_download": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "query": {
        "type": "object",
        "properties": {
          "resolve": {
            "type": "string",
            "const": "1"
          }
        },
        "required": [
          "resolve"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "query"
    ],
    "additionalProperties": false
  },
  "tong_workspace_list": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "search": {
            "type": "string",
            "maxLength": 100
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_workspace_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_workspace_create": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_conversation_create": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_conversation_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_conversation_messages": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_generation_reuse": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "messageId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id",
          "messageId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_generation_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "TEXT_TO_IMAGE",
              "IMAGE_EDIT",
              "CHARACTER_RECREATE",
              "CHARACTER_RECREATE_SPICY",
              "TEXT_TO_VIDEO",
              "IMAGE_TO_VIDEO",
              "CHARACTER_TO_VIDEO",
              "CHARACTER_TO_VIDEO_SPICY",
              "FIRST_LAST_TO_VIDEO"
            ]
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "resolution": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "480p",
                  "720p",
                  "768p",
                  "1080p",
                  "2k",
                  "4k"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 60
          },
          "durationSeconds": {
            "type": "integer",
            "minimum": 1,
            "maximum": 60
          },
          "inputAssetIds": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "characterProfileId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "annotationGuide": {
            "type": "boolean"
          },
          "routingParameters": {
            "type": "object",
            "properties": {
              "directorRequiredReferenceCount": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20
              },
              "recreateReferenceRoles": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "SCENE",
                    "CHARACTER"
                  ]
                }
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "21:9",
                  "16:9",
                  "4:3",
                  "1:1",
                  "3:4",
                  "9:16",
                  "adaptive"
                ]
              },
              "generateAudio": {
                "type": "boolean"
              },
              "promptExtend": {
                "type": "boolean"
              },
              "seed": {
                "type": "integer",
                "minimum": -1,
                "maximum": 2147483647
              },
              "negativePrompt": {
                "type": "string",
                "maxLength": 3000
              },
              "negativePromptMode": {
                "type": "string",
                "const": "REPLACE"
              }
            },
            "additionalProperties": false
          },
          "referenceRequest": {
            "type": "object",
            "properties": {
              "ratio": {
                "type": "string",
                "minLength": 1,
                "maxLength": 20
              },
              "generateAudio": {
                "type": "boolean"
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 20000
              },
              "direction": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "capabilityRevision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "keepVideoSound": {
                    "type": "boolean"
                  },
                  "seed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2147483647
                  },
                  "automaticShots": {
                    "type": "boolean"
                  },
                  "automaticDuration": {
                    "type": "boolean"
                  },
                  "outputResolution": {
                    "type": "string",
                    "enum": [
                      "720p-SR",
                      "1080p-SR",
                      "1440p-SR"
                    ]
                  },
                  "bitrate": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "high"
                    ]
                  },
                  "returnLastFrame": {
                    "type": "boolean"
                  },
                  "documentUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "subjectSequence": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 999
                  },
                  "subjects": {
                    "maxItems": 6,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^Subject[1-9]\\d{0,2}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "assetIds": {
                          "minItems": 1,
                          "maxItems": 4,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-f\\d]{24}$"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "assetIds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "shots": {
                    "minItems": 1,
                    "maxItems": 6,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "prompt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1800
                        },
                        "durationSeconds": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 15
                        }
                      },
                      "required": [
                        "id",
                        "prompt",
                        "durationSeconds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "references": {
                    "maxItems": 120,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "assetId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        },
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "label": {
                          "type": "string",
                          "pattern": "^(Image|Video|Audio|Document)[1-9]\\d{0,3}$"
                        }
                      },
                      "required": [
                        "id",
                        "assetId",
                        "field",
                        "label"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "version",
                  "capabilityRevision",
                  "references"
                ],
                "additionalProperties": false
              },
              "assetIds": {
                "maxItems": 120,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                }
              }
            },
            "required": [
              "prompt",
              "direction",
              "assetIds"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "operation",
          "model"
        ],
        "additionalProperties": false
      },
      "filmScene": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "shotId",
          "revision"
        ],
        "additionalProperties": false
      },
      "filmReference": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "entityId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "entityId",
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_generation_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 5000
          },
          "operation": {
            "type": "string",
            "enum": [
              "TEXT_TO_IMAGE",
              "IMAGE_EDIT",
              "CHARACTER_RECREATE",
              "CHARACTER_RECREATE_SPICY",
              "TEXT_TO_VIDEO",
              "IMAGE_TO_VIDEO",
              "CHARACTER_TO_VIDEO",
              "CHARACTER_TO_VIDEO_SPICY",
              "FIRST_LAST_TO_VIDEO"
            ]
          },
          "inputAssetIds": {
            "maxItems": 120,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "parameters": {
            "type": "object",
            "properties": {
              "directorRequiredReferenceCount": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20
              },
              "referenceDirection": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "capabilityRevision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "keepVideoSound": {
                    "type": "boolean"
                  },
                  "seed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2147483647
                  },
                  "automaticShots": {
                    "type": "boolean"
                  },
                  "automaticDuration": {
                    "type": "boolean"
                  },
                  "outputResolution": {
                    "type": "string",
                    "enum": [
                      "720p-SR",
                      "1080p-SR",
                      "1440p-SR"
                    ]
                  },
                  "bitrate": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "high"
                    ]
                  },
                  "returnLastFrame": {
                    "type": "boolean"
                  },
                  "documentUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "subjectSequence": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 999
                  },
                  "subjects": {
                    "maxItems": 6,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^Subject[1-9]\\d{0,2}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "assetIds": {
                          "minItems": 1,
                          "maxItems": 4,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-f\\d]{24}$"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "assetIds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "shots": {
                    "minItems": 1,
                    "maxItems": 6,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "prompt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1800
                        },
                        "durationSeconds": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 15
                        }
                      },
                      "required": [
                        "id",
                        "prompt",
                        "durationSeconds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "references": {
                    "maxItems": 120,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "assetId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        },
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "label": {
                          "type": "string",
                          "pattern": "^(Image|Video|Audio|Document)[1-9]\\d{0,3}$"
                        }
                      },
                      "required": [
                        "id",
                        "assetId",
                        "field",
                        "label"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "version",
                  "capabilityRevision",
                  "references"
                ],
                "additionalProperties": false
              },
              "autoEnhancePrompt": {
                "type": "boolean"
              },
              "promptEnhancementId": {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              "negativePromptMode": {
                "type": "string",
                "const": "REPLACE"
              },
              "cameraMotion": {
                "type": "string",
                "enum": [
                  "AUTO",
                  "ORBIT_RIGHT",
                  "ORBIT_LEFT",
                  "PUSH_IN",
                  "PULL_BACK",
                  "RISE"
                ]
              },
              "qualityPreset": {
                "type": "string",
                "enum": [
                  "REALISTIC",
                  "DRAFT"
                ]
              },
              "casualPhoneFinish": {
                "type": "boolean"
              },
              "recreateReferenceRoles": {
                "minItems": 2,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "SCENE",
                    "CHARACTER"
                  ]
                }
              },
              "characterVideoReferenceRoles": {
                "minItems": 1,
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "FACE",
                    "BODY",
                    "CHEST",
                    "REAR_HIPS",
                    "GENITAL_ANATOMY",
                    "STORYBOARD"
                  ]
                }
              },
              "imageModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "textToImageModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "videoModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "durationSeconds": {
                "type": "integer",
                "minimum": 2,
                "maximum": 30
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "480p",
                  "720p",
                  "768p",
                  "1080p",
                  "2k",
                  "4k"
                ]
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "21:9",
                  "16:9",
                  "4:3",
                  "1:1",
                  "3:4",
                  "9:16",
                  "adaptive"
                ]
              },
              "videoStyle": {
                "type": "string",
                "enum": [
                  "NATURAL_PHONE",
                  "CINEMATIC",
                  "FOLLOW_PROMPT"
                ]
              },
              "generateAudio": {
                "type": "boolean"
              },
              "seed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "promptExtend": {
                "type": "boolean"
              },
              "negativePrompt": {
                "type": "string",
                "maxLength": 2000
              }
            },
            "additionalProperties": false
          },
          "workspaceProjectId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "characterProfileId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "annotations": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "x": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "y": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "radius": {
                  "type": "number",
                  "minimum": 0.02,
                  "maximum": 0.5
                },
                "comment": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "required": [
                "x",
                "y",
                "radius",
                "comment"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "quoteId",
          "prompt",
          "operation",
          "inputAssetIds",
          "parameters"
        ],
        "additionalProperties": false
      },
      "filmScene": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "shotId",
          "revision"
        ],
        "additionalProperties": false
      },
      "filmReference": {
        "type": "object",
        "properties": {
          "projectId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "entityId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "projectId",
          "entityId",
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_continuity_read": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "query": {
        "type": "object",
        "properties": {
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "assetIds": {
            "type": "string",
            "maxLength": 500
          }
        },
        "required": [
          "shotId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "query"
    ],
    "additionalProperties": false
  },
  "tong_director_projects": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_director_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_director_video_attach": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "trimStart": {
            "type": "number",
            "minimum": 0
          },
          "trimEnd": {
            "type": "number",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "revision",
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_draft_create": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_script_save": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "brief": {
            "type": "string",
            "maxLength": 200000
          },
          "settings": {
            "type": "object",
            "properties": {
              "generationMode": {
                "type": "string",
                "enum": [
                  "TEXT_TO_VIDEO",
                  "FRAME_GUIDED"
                ]
              },
              "autoEnhancePrompt": {
                "type": "boolean"
              },
              "storyboardModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "negativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "storyboardNegativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "videoStyle": {
                "type": "string",
                "enum": [
                  "NATURAL_PHONE",
                  "CINEMATIC",
                  "FOLLOW_PROMPT"
                ]
              },
              "videoModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "480p",
                  "720p",
                  "768p",
                  "1080p",
                  "2k",
                  "4k"
                ]
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ]
              },
              "generateAudio": {
                "type": "boolean"
              }
            },
            "required": [
              "videoModel"
            ],
            "additionalProperties": false
          },
          "onboarding": {
            "type": "object",
            "properties": {
              "step": {
                "type": "string",
                "enum": [
                  "METHOD",
                  "SCRIPT",
                  "DURATION",
                  "MODELS",
                  "SETTINGS",
                  "REFERENCES",
                  "REVIEW",
                  "STUDIO"
                ]
              },
              "totalDurationSeconds": {
                "type": "integer",
                "minimum": 4,
                "maximum": 1800
              },
              "maxSceneSeconds": {
                "type": "integer",
                "minimum": 2,
                "maximum": 30
              },
              "documentName": {
                "type": "string",
                "maxLength": 200
              }
            },
            "required": [
              "step",
              "totalDurationSeconds",
              "maxSceneSeconds"
            ],
            "additionalProperties": false
          },
          "namedReferences": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assetId": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "CHARACTER",
                    "IMAGE"
                  ]
                }
              },
              "required": [
                "assetId",
                "name",
                "kind"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_planning_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_planning_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_planning_status": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_director_estimate": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_director_shots_reorder": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "shotIds": {
            "minItems": 1,
            "maxItems": 60,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,120}$"
            }
          }
        },
        "required": [
          "revision",
          "shotIds"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_shot_select": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "versionId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "revision",
          "versionId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_frame_approve": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_shot_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_shots_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "requests": {
            "minItems": 1,
            "maxItems": 120,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "shotId": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,120}$"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "START",
                    "END",
                    "VIDEO"
                  ]
                },
                "direction": {
                  "type": "object",
                  "properties": {
                    "prompt": {
                      "type": "string",
                      "maxLength": 2000
                    },
                    "sourceVersionId": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,120}$"
                    },
                    "annotations": {
                      "maxItems": 8,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "radius": {
                            "type": "number",
                            "minimum": 0.02,
                            "maximum": 0.5
                          },
                          "comment": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 500
                          }
                        },
                        "required": [
                          "x",
                          "y",
                          "radius",
                          "comment"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "prompt"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "shotId",
                "kind"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "revision",
          "requests"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_shots_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_resume": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_director_export": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "transition": {
            "type": "string",
            "enum": [
              "CUT",
              "SMOOTH"
            ]
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_reference_read": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_reference_import": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 2000,
            "format": "uri"
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_reference_direction": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "direction": {
            "type": "object",
            "properties": {
              "borrow": {
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "structure",
                    "pacing",
                    "visualMood",
                    "camera"
                  ]
                }
              },
              "premise": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              },
              "characters": {
                "type": "string",
                "maxLength": 2000
              },
              "setting": {
                "type": "string",
                "maxLength": 2000
              },
              "ending": {
                "type": "string",
                "maxLength": 2000
              },
              "tone": {
                "type": "string",
                "maxLength": 500
              },
              "include": {
                "type": "string",
                "maxLength": 2000
              },
              "duration": {
                "type": "integer",
                "minimum": 4,
                "maximum": 1800
              }
            },
            "required": [
              "borrow",
              "premise",
              "duration"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "revision",
          "direction"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_reference_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "task": {
            "type": "string",
            "enum": [
              "ANALYSIS",
              "DRAFT",
              "CAST"
            ]
          },
          "analysisId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "direction": {
            "type": "object",
            "properties": {
              "borrow": {
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "structure",
                    "pacing",
                    "visualMood",
                    "camera"
                  ]
                }
              },
              "premise": {
                "type": "string",
                "minLength": 1,
                "maxLength": 6000
              },
              "characters": {
                "type": "string",
                "maxLength": 2000
              },
              "setting": {
                "type": "string",
                "maxLength": 2000
              },
              "ending": {
                "type": "string",
                "maxLength": 2000
              },
              "tone": {
                "type": "string",
                "maxLength": 500
              },
              "include": {
                "type": "string",
                "maxLength": 2000
              },
              "duration": {
                "type": "integer",
                "minimum": 4,
                "maximum": 1800
              }
            },
            "required": [
              "borrow",
              "premise",
              "duration"
            ],
            "additionalProperties": false
          },
          "idea": {
            "type": "boolean"
          }
        },
        "required": [
          "task"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_reference_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "jobId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id",
          "jobId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_reference_script_edit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "jobId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id",
          "jobId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "editRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "script": {
            "type": "string",
            "maxLength": 200000
          }
        },
        "required": [
          "editRevision",
          "script"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_reference_script_accept": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "jobId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "script": {
            "type": "string",
            "minLength": 10,
            "maxLength": 200000
          }
        },
        "required": [
          "jobId",
          "revision",
          "script"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_cast_read": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_cast_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "characterIds": {
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Za-z0-9_-]{1,120}$"
            }
          },
          "guidance": {
            "type": "string",
            "maxLength": 2000
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          }
        },
        "required": [
          "characterIds",
          "model"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_cast_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_cast_select": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "characterId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "versionId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "revision",
          "characterId",
          "versionId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_cast_use": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_locations_prepare": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_locations_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "requests": {
            "minItems": 1,
            "maxItems": 240,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "locationId": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,120}$"
                },
                "guidance": {
                  "type": "string",
                  "maxLength": 2000
                },
                "shotId": {
                  "type": "string",
                  "pattern": "^[A-Za-z0-9_-]{1,120}$"
                }
              },
              "required": [
                "locationId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "revision",
          "requests"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_locations_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_location_select": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "locationId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "locationId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "versionId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "revision",
          "versionId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_video_edit_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "input": {
            "type": "object",
            "properties": {
              "sourceVersionId": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,120}$"
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "480p",
                  "720p",
                  "1080p"
                ]
              },
              "prompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "references": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\p{L}\\p{N}_-]{1,40}$"
                    }
                  },
                  "required": [
                    "assetId",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "sourceVersionId",
              "model",
              "resolution",
              "prompt"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "revision",
          "input"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_video_edit_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_source_prepare": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_selection_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "videoId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "start": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "end": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "frame": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          }
        },
        "required": [
          "videoId",
          "start",
          "end",
          "frame"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_edit_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "videoId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "start": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "end": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "frame": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "workspaceProjectId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "intent": {
            "type": "string",
            "enum": [
              "swap",
              "background",
              "add",
              "remove",
              "edit",
              "restyle"
            ]
          },
          "outputMode": {
            "type": "string",
            "enum": [
              "full",
              "clip"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "swap",
              "add",
              "remove",
              "edit",
              "restyle"
            ]
          },
          "modelSelection": {
            "type": "string",
            "enum": [
              "default",
              "manual"
            ]
          },
          "editModel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "swapEngine": {
            "type": "string",
            "enum": [
              "recast",
              "genjutsu",
              "swap",
              "modify"
            ]
          },
          "restyleEngine": {
            "type": "string",
            "enum": [
              "modify",
              "genjutsu",
              "grok"
            ]
          },
          "presetId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "resolution": {
            "type": "string",
            "enum": [
              "480p",
              "default",
              "768p",
              "1080p",
              "360p",
              "540p",
              "720p"
            ]
          },
          "keepAudio": {
            "type": "boolean"
          },
          "prompt": {
            "type": "string",
            "maxLength": 2500
          },
          "detectionId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "subjects": {
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "maskId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 150
                },
                "reference": {
                  "type": "object",
                  "properties": {
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\p{L}\\p{N}_-]{1,40}$"
                    }
                  },
                  "required": [
                    "assetId",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "description": {
                  "type": "string",
                  "maxLength": 2000
                }
              },
              "required": [
                "maskId"
              ],
              "additionalProperties": false
            }
          },
          "references": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assetId": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                },
                "name": {
                  "type": "string",
                  "pattern": "^[\\p{L}\\p{N}_-]{1,40}$"
                }
              },
              "required": [
                "assetId",
                "name"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "videoId",
          "start",
          "end",
          "frame"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_edit_route_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "videoId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "start": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "end": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "frame": {
            "type": "number",
            "minimum": 0,
            "maximum": 30
          },
          "workspaceProjectId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "intent": {
            "type": "string",
            "enum": [
              "swap",
              "background",
              "add",
              "remove",
              "edit",
              "restyle"
            ]
          },
          "outputMode": {
            "type": "string",
            "enum": [
              "full",
              "clip"
            ]
          },
          "mode": {
            "type": "string",
            "enum": [
              "swap",
              "add",
              "remove",
              "edit",
              "restyle"
            ]
          },
          "modelSelection": {
            "type": "string",
            "enum": [
              "default",
              "manual"
            ]
          },
          "editModel": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "swapEngine": {
            "type": "string",
            "enum": [
              "recast",
              "genjutsu",
              "swap",
              "modify"
            ]
          },
          "restyleEngine": {
            "type": "string",
            "enum": [
              "modify",
              "genjutsu",
              "grok"
            ]
          },
          "presetId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "resolution": {
            "type": "string",
            "enum": [
              "480p",
              "default",
              "768p",
              "1080p",
              "360p",
              "540p",
              "720p"
            ]
          },
          "keepAudio": {
            "type": "boolean"
          },
          "prompt": {
            "type": "string",
            "maxLength": 2500
          },
          "detectionId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "subjects": {
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "maskId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 150
                },
                "reference": {
                  "type": "object",
                  "properties": {
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\p{L}\\p{N}_-]{1,40}$"
                    }
                  },
                  "required": [
                    "assetId",
                    "name"
                  ],
                  "additionalProperties": false
                },
                "description": {
                  "type": "string",
                  "maxLength": 2000
                }
              },
              "required": [
                "maskId"
              ],
              "additionalProperties": false
            }
          },
          "references": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assetId": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                },
                "name": {
                  "type": "string",
                  "pattern": "^[\\p{L}\\p{N}_-]{1,40}$"
                }
              },
              "required": [
                "assetId",
                "name"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "videoId",
          "start",
          "end",
          "frame"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_selection_frame": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_video_selection_mask": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "maskId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,150}$"
          }
        },
        "required": [
          "id",
          "maskId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_video_edit_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_edit_job": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_motion_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_motion_job": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_lora_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_lora_job": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_motion_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "imageId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "videoId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "orientation": {
            "type": "string",
            "enum": [
              "video",
              "image"
            ]
          },
          "keepSound": {
            "type": "boolean"
          },
          "autoEnhancePrompt": {
            "type": "boolean"
          },
          "prompt": {
            "type": "string",
            "maxLength": 2500
          },
          "workspaceProjectId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "promptEnhancementId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "imageId",
          "videoId",
          "model",
          "orientation",
          "keepSound"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_lora_catalog": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "before": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "kind": {
            "type": "string",
            "enum": [
              "IMAGE",
              "VIDEO"
            ]
          },
          "family": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "q": {
            "type": "string",
            "maxLength": 160
          },
          "saved": {
            "type": "string",
            "const": "true"
          },
          "tag": {
            "type": "string",
            "enum": [
              "nsfw",
              "human-motion",
              "anime-motion",
              "motion-continuity",
              "spatial-physics",
              "action",
              "camera-motion",
              "effects",
              "lighting",
              "realism",
              "pixel",
              "toon",
              "mecha",
              "painter"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_lora_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "referenceDirection": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "capabilityRevision": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "keepVideoSound": {
                "type": "boolean"
              },
              "seed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2147483647
              },
              "automaticShots": {
                "type": "boolean"
              },
              "automaticDuration": {
                "type": "boolean"
              },
              "outputResolution": {
                "type": "string",
                "enum": [
                  "720p-SR",
                  "1080p-SR",
                  "1440p-SR"
                ]
              },
              "bitrate": {
                "type": "string",
                "enum": [
                  "standard",
                  "high"
                ]
              },
              "returnLastFrame": {
                "type": "boolean"
              },
              "documentUrl": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "subjectSequence": {
                "type": "integer",
                "minimum": 0,
                "maximum": 999
              },
              "subjects": {
                "maxItems": 6,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^Subject[1-9]\\d{0,2}$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 500
                    },
                    "assetIds": {
                      "minItems": 1,
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      }
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "assetIds"
                  ],
                  "additionalProperties": false
                }
              },
              "shots": {
                "minItems": 1,
                "maxItems": 6,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "prompt": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 1800
                    },
                    "durationSeconds": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 15
                    }
                  },
                  "required": [
                    "id",
                    "prompt",
                    "durationSeconds"
                  ],
                  "additionalProperties": false
                }
              },
              "references": {
                "maxItems": 120,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "field": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "label": {
                      "type": "string",
                      "pattern": "^(Image|Video|Audio|Document)[1-9]\\d{0,3}$"
                    }
                  },
                  "required": [
                    "id",
                    "assetId",
                    "field",
                    "label"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "version",
              "capabilityRevision",
              "references"
            ],
            "additionalProperties": false
          },
          "aspect": {
            "type": "string",
            "enum": [
              "1:1",
              "16:9",
              "9:16",
              "4:3",
              "3:4"
            ]
          },
          "duration": {
            "type": "integer",
            "minimum": 1,
            "maximum": 5
          },
          "imageId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "seed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2147483647
          },
          "negativePrompt": {
            "type": "string",
            "maxLength": 2000
          },
          "options": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "media": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "maxItems": 120,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              }
            }
          },
          "presets": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "scale": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4
                }
              },
              "required": [
                "key",
                "scale"
              ],
              "additionalProperties": false
            }
          },
          "loras": {
            "maxItems": 9,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "versionId": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                },
                "scale": {
                  "type": "number",
                  "minimum": -1,
                  "maximum": 4
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "style",
                    "high",
                    "low"
                  ]
                }
              },
              "required": [
                "versionId",
                "scale"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "model",
          "prompt",
          "loras"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_audio_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "voice": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "durationSeconds": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 600
          },
          "speed": {
            "type": "number",
            "minimum": 0.25,
            "maximum": 4
          },
          "lyrics": {
            "type": "string",
            "maxLength": 4096
          },
          "language": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32
          },
          "mode": {
            "type": "string",
            "const": "speech-reference"
          },
          "referenceAssetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "styleInstruction": {
            "type": "string",
            "maxLength": 1000
          },
          "referenceText": {
            "type": "string",
            "maxLength": 4096
          },
          "exaggeration": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "temperature": {
            "type": "number",
            "minimum": 0.05,
            "maximum": 2
          },
          "guidance": {
            "type": "number",
            "minimum": 0.1,
            "maximum": 1
          },
          "instrumental": {
            "type": "boolean"
          },
          "loop": {
            "type": "boolean"
          }
        },
        "required": [
          "model",
          "prompt"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_audio_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "conversationId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "quoteId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "workspaceProjectId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "conversationId",
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_remix_prepare": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetIds": {
            "minItems": 1,
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          }
        },
        "required": [
          "assetIds"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_remix_create": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "projectId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-f\\d]{24}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sourceConversationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-f\\d]{24}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "clips": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "start": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 36000
                    },
                    "end": {
                      "type": "number",
                      "minimum": 0.1,
                      "maximum": 36000
                    },
                    "muted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "assetId",
                    "start",
                    "end",
                    "muted"
                  ],
                  "additionalProperties": false
                }
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ]
              },
              "fit": {
                "type": "string",
                "enum": [
                  "contain",
                  "cover"
                ]
              },
              "audio": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "assetId": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      },
                      "volume": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "assetId",
                      "volume"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "title",
              "projectId",
              "sourceConversationId",
              "clips",
              "ratio",
              "fit",
              "audio"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "input"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_remix_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_remix_update": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "input": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "projectId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-f\\d]{24}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sourceConversationId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-f\\d]{24}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "clips": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "start": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 36000
                    },
                    "end": {
                      "type": "number",
                      "minimum": 0.1,
                      "maximum": 36000
                    },
                    "muted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "id",
                    "assetId",
                    "start",
                    "end",
                    "muted"
                  ],
                  "additionalProperties": false
                }
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ]
              },
              "fit": {
                "type": "string",
                "enum": [
                  "contain",
                  "cover"
                ]
              },
              "audio": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "assetId": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      },
                      "volume": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      }
                    },
                    "required": [
                      "assetId",
                      "volume"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "title",
              "projectId",
              "sourceConversationId",
              "clips",
              "ratio",
              "fit",
              "audio"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "revision",
          "input"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_remix_export": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "retry": {
            "type": "boolean"
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_remix_export_status": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_composition_config": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_composition_render": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "workspaceProjectId": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-f\\d]{24}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fps": {
                "type": "string",
                "enum": [
                  "24",
                  "25",
                  "30"
                ]
              },
              "width": {
                "type": "integer",
                "minimum": 160,
                "maximum": 1920
              },
              "height": {
                "type": "integer",
                "minimum": 160,
                "maximum": 1920
              },
              "fit": {
                "default": "contain",
                "type": "string",
                "enum": [
                  "contain",
                  "cover"
                ]
              },
              "clips": {
                "minItems": 1,
                "maxItems": 120,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_-]{1,80}$"
                    },
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "atFrame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1080000
                    },
                    "sourceInFrame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1080000
                    },
                    "sourceOutFrame": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1080000
                    },
                    "sourceAudio": {
                      "type": "string",
                      "enum": [
                        "keep",
                        "mute"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "assetId",
                    "atFrame",
                    "sourceInFrame",
                    "sourceOutFrame",
                    "sourceAudio"
                  ],
                  "additionalProperties": false
                }
              },
              "audio": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[a-zA-Z0-9_-]{1,80}$"
                    },
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "atMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 36000000
                    },
                    "sourceInMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 36000000
                    },
                    "sourceOutMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 36000000
                    },
                    "gain": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 2
                    },
                    "fadeInMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 36000000
                    },
                    "fadeOutMs": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 36000000
                    }
                  },
                  "required": [
                    "id",
                    "assetId",
                    "atMs",
                    "sourceInMs",
                    "sourceOutMs",
                    "gain",
                    "fadeInMs",
                    "fadeOutMs"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "title",
              "fps",
              "width",
              "height",
              "clips",
              "audio"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "input"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_composition_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_composition_lookup": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "requestKey": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "requestKey"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "query"
    ],
    "additionalProperties": false
  },
  "tong_composition_cancel": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_assets_list": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "IMAGE",
              "VIDEO"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "UPLOAD",
              "GENERATED"
            ]
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "cursor": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_asset_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_asset_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_assets_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "assetIds": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          }
        },
        "required": [
          "assetIds"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_workspace_rename": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "name",
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_workspace_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_workspace_attach": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "assetIds": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          }
        },
        "required": [
          "assetIds"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_workspace_detach": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id",
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_workspace_films": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_characters_list": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_character_create": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "identityNotes": {
            "type": "string",
            "maxLength": 1200
          },
          "references": {
            "minItems": 1,
            "maxItems": 7,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assetId": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "FACE_MASTER",
                    "FACE_ANGLE",
                    "BODY",
                    "CHEST",
                    "REAR_HIPS",
                    "GENITAL_ANATOMY",
                    "STYLE"
                  ]
                }
              },
              "required": [
                "assetId",
                "role"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "name",
          "references"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_character_update": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "identityNotes": {
            "type": "string",
            "maxLength": 1200
          },
          "references": {
            "minItems": 1,
            "maxItems": 7,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assetId": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "FACE_MASTER",
                    "FACE_ANGLE",
                    "BODY",
                    "CHEST",
                    "REAR_HIPS",
                    "GENITAL_ANATOMY",
                    "STYLE"
                  ]
                }
              },
              "required": [
                "assetId",
                "role"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "name",
          "references"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_character_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_subjects_list": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_subject_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_subject_create": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "description": {
            "type": "string",
            "maxLength": 500
          },
          "assetIds": {
            "minItems": 1,
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          }
        },
        "required": [
          "name",
          "assetIds"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_subject_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_conversations_list": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "beforeUpdatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          "beforeId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "search": {
            "type": "string",
            "maxLength": 100
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_conversation_update": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "archived": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_conversation_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_generation_alternative_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "messageId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id",
          "messageId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_generation_alternative_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "messageId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id",
          "messageId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_generation_retry": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "messageId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id",
          "messageId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_director_create": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "promptEnhancementId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "brief": {
            "type": "string",
            "minLength": 10,
            "maxLength": 5000
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 60
          },
          "duration": {
            "type": "integer",
            "minimum": 4,
            "maximum": 10
          },
          "settings": {
            "type": "object",
            "properties": {
              "generationMode": {
                "type": "string",
                "enum": [
                  "TEXT_TO_VIDEO",
                  "FRAME_GUIDED"
                ]
              },
              "autoEnhancePrompt": {
                "type": "boolean"
              },
              "storyboardModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "negativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "storyboardNegativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "videoStyle": {
                "type": "string",
                "enum": [
                  "NATURAL_PHONE",
                  "CINEMATIC",
                  "FOLLOW_PROMPT"
                ]
              },
              "videoModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "480p",
                  "720p",
                  "768p",
                  "1080p",
                  "2k",
                  "4k"
                ]
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ]
              },
              "generateAudio": {
                "type": "boolean"
              }
            },
            "required": [
              "videoModel"
            ],
            "additionalProperties": false
          },
          "referenceAssetIds": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          }
        },
        "required": [
          "title",
          "brief",
          "settings"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_update": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "brief": {
            "type": "string",
            "minLength": 10,
            "maxLength": 5000
          },
          "settings": {
            "type": "object",
            "properties": {
              "generationMode": {
                "type": "string",
                "enum": [
                  "TEXT_TO_VIDEO",
                  "FRAME_GUIDED"
                ]
              },
              "autoEnhancePrompt": {
                "type": "boolean"
              },
              "storyboardModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "negativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "storyboardNegativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "videoStyle": {
                "type": "string",
                "enum": [
                  "NATURAL_PHONE",
                  "CINEMATIC",
                  "FOLLOW_PROMPT"
                ]
              },
              "videoModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "480p",
                  "720p",
                  "768p",
                  "1080p",
                  "2k",
                  "4k"
                ]
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ]
              },
              "generateAudio": {
                "type": "boolean"
              }
            },
            "required": [
              "videoModel"
            ],
            "additionalProperties": false
          },
          "referenceAssetIds": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "continuity": {
            "type": "object",
            "properties": {
              "version": {
                "type": "number",
                "const": 1
              },
              "entities": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,120}$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "CHARACTER",
                        "LOCATION"
                      ]
                    },
                    "sourceAssetIds": {
                      "maxItems": 8,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[a-f\\d]{24}$"
                      }
                    },
                    "assetId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "kind",
                    "sourceAssetIds",
                    "assetId"
                  ],
                  "additionalProperties": false
                }
              },
              "scenes": {
                "maxItems": 60,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "shotId": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9_-]{1,120}$"
                    },
                    "entityIds": {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Za-z0-9_-]{1,120}$"
                      }
                    }
                  },
                  "required": [
                    "shotId",
                    "entityIds"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "version",
              "entities",
              "scenes"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_director_note": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1500
          },
          "targetShotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "revision",
          "note"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_method": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "generationMode": {
            "type": "string",
            "enum": [
              "TEXT_TO_VIDEO",
              "FRAME_GUIDED"
            ]
          }
        },
        "required": [
          "revision",
          "generationMode"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_models": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "settings": {
            "type": "object",
            "properties": {
              "generationMode": {
                "type": "string",
                "enum": [
                  "TEXT_TO_VIDEO",
                  "FRAME_GUIDED"
                ]
              },
              "autoEnhancePrompt": {
                "type": "boolean"
              },
              "storyboardModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "negativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "storyboardNegativePrompt": {
                "type": "string",
                "maxLength": 2000
              },
              "videoStyle": {
                "type": "string",
                "enum": [
                  "NATURAL_PHONE",
                  "CINEMATIC",
                  "FOLLOW_PROMPT"
                ]
              },
              "videoModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "480p",
                  "720p",
                  "768p",
                  "1080p",
                  "2k",
                  "4k"
                ]
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "16:9",
                  "9:16",
                  "1:1"
                ]
              },
              "generateAudio": {
                "type": "boolean"
              }
            },
            "required": [
              "videoModel"
            ],
            "additionalProperties": false
          },
          "replan": {
            "type": "boolean"
          }
        },
        "required": [
          "revision",
          "settings"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_shot_add": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "requestId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "afterShotId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{1,120}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "shot": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "action": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1800
              },
              "camera": {
                "type": "string",
                "maxLength": 400
              },
              "startPrompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1800
              },
              "endPrompt": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1800
              },
              "durationSeconds": {
                "type": "integer",
                "minimum": 2,
                "maximum": 30
              },
              "referenceAssetIds": {
                "maxItems": 5,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                }
              },
              "audio": {
                "type": "string",
                "maxLength": 1600
              },
              "negativePrompt": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "storyboardNegativePrompt": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "location": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1800
                  },
                  "continuity": {
                    "type": "string",
                    "enum": [
                      "NEW",
                      "REUSE",
                      "RELATED"
                    ]
                  },
                  "sourceScene": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 60
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "name",
                  "description",
                  "continuity",
                  "sourceScene"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "title",
              "action",
              "startPrompt",
              "endPrompt"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "revision",
          "shot"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_shot_update": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "action": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1800
          },
          "camera": {
            "type": "string",
            "maxLength": 400
          },
          "startPrompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1800
          },
          "endPrompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1800
          },
          "durationSeconds": {
            "type": "integer",
            "minimum": 2,
            "maximum": 30
          },
          "referenceAssetIds": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "audio": {
            "type": "string",
            "maxLength": 1600
          },
          "negativePrompt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "storyboardNegativePrompt": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "location": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1800
              },
              "continuity": {
                "type": "string",
                "enum": [
                  "NEW",
                  "REUSE",
                  "RELATED"
                ]
              },
              "sourceScene": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 60
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "name",
              "description",
              "continuity",
              "sourceScene"
            ],
            "additionalProperties": false
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "locationGuidance": {
            "type": "string",
            "maxLength": 2000
          },
          "trimStart": {
            "type": "number",
            "minimum": 0
          },
          "trimEnd": {
            "type": "number",
            "minimum": 0
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_frame_attach": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "kind": {
            "type": "string",
            "enum": [
              "START",
              "END"
            ]
          },
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "revision",
          "kind",
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_director_shot_release": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_cast_rename": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "projectRevision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "characterId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          }
        },
        "required": [
          "revision",
          "projectRevision",
          "characterId",
          "name"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_location_assign": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "shotId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "mode": {
            "type": "string",
            "enum": [
              "REUSE",
              "RELATED",
              "NEW"
            ]
          },
          "sourceLocationId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1800
          }
        },
        "required": [
          "revision",
          "mode",
          "name",
          "description"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_location_attach": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "locationId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "id",
          "locationId"
        ],
        "additionalProperties": false
      },
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "assetId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "shotId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,120}$"
          }
        },
        "required": [
          "revision",
          "assetId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params",
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_edit_jobs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "before": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_motion_jobs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "before": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_lora_jobs": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "before": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_video_edit_resume": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_motion_resume": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_motion_reuse_image": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "imageId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "imageId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_draft_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_video_draft_save": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "input": {
            "type": "object",
            "properties": {
              "videoId": {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              "start": {
                "type": "number",
                "minimum": 0,
                "maximum": 30
              },
              "end": {
                "type": "number",
                "minimum": 0,
                "maximum": 30
              },
              "frame": {
                "type": "number",
                "minimum": 0,
                "maximum": 30
              },
              "workspaceProjectId": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[a-f\\d]{24}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "intent": {
                "type": "string",
                "enum": [
                  "swap",
                  "background",
                  "add",
                  "remove",
                  "edit",
                  "restyle"
                ]
              },
              "outputMode": {
                "type": "string",
                "enum": [
                  "full",
                  "clip"
                ]
              },
              "mode": {
                "type": "string",
                "enum": [
                  "swap",
                  "add",
                  "remove",
                  "edit",
                  "restyle"
                ]
              },
              "modelSelection": {
                "type": "string",
                "enum": [
                  "default",
                  "manual"
                ]
              },
              "editModel": {
                "type": "string",
                "minLength": 1,
                "maxLength": 150
              },
              "swapEngine": {
                "type": "string",
                "enum": [
                  "recast",
                  "genjutsu",
                  "swap",
                  "modify"
                ]
              },
              "restyleEngine": {
                "type": "string",
                "enum": [
                  "modify",
                  "genjutsu",
                  "grok"
                ]
              },
              "presetId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "resolution": {
                "type": "string",
                "enum": [
                  "480p",
                  "default",
                  "768p",
                  "1080p",
                  "360p",
                  "540p",
                  "720p"
                ]
              },
              "keepAudio": {
                "type": "boolean"
              },
              "prompt": {
                "type": "string",
                "maxLength": 2500
              },
              "detectionId": {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              "subjects": {
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "maskId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    },
                    "reference": {
                      "type": "object",
                      "properties": {
                        "assetId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        },
                        "name": {
                          "type": "string",
                          "pattern": "^[\\p{L}\\p{N}_-]{1,40}$"
                        }
                      },
                      "required": [
                        "assetId",
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 2000
                    }
                  },
                  "required": [
                    "maskId"
                  ],
                  "additionalProperties": false
                }
              },
              "references": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "assetId": {
                      "type": "string",
                      "pattern": "^[a-f\\d]{24}$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "^[\\p{L}\\p{N}_-]{1,40}$"
                    }
                  },
                  "required": [
                    "assetId",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "revision",
          "input"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_video_presets": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_lora_reference_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_lora_image_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_lora_reference_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_lora_save": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_lora_unsave": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_lora_import": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "maxLength": 1500,
            "format": "uri"
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_lora_job_delete": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_lora_estimate": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 150
          },
          "options": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 2000
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                }
              ]
            }
          },
          "media": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "maxLength": 80
            },
            "additionalProperties": {
              "maxItems": 120,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              }
            }
          },
          "presets": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "scale": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 4
                }
              },
              "required": [
                "key",
                "scale"
              ],
              "additionalProperties": false
            }
          },
          "loras": {
            "maxItems": 9,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "versionId": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                },
                "scale": {
                  "type": "number",
                  "minimum": -1,
                  "maximum": 4
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "style",
                    "high",
                    "low"
                  ]
                }
              },
              "required": [
                "versionId",
                "scale"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "model"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_audio_preview": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "voice": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "model",
          "voice"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_remix_list": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "query": {
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "projectId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "additionalProperties": false
      }
    },
    "additionalProperties": false
  },
  "tong_enhancement_config": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_enhancement_get": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_enhancement_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 5000
          },
          "context": {
            "type": "object",
            "properties": {
              "referenceDirection": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "capabilityRevision": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "keepVideoSound": {
                    "type": "boolean"
                  },
                  "seed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 2147483647
                  },
                  "automaticShots": {
                    "type": "boolean"
                  },
                  "automaticDuration": {
                    "type": "boolean"
                  },
                  "outputResolution": {
                    "type": "string",
                    "enum": [
                      "720p-SR",
                      "1080p-SR",
                      "1440p-SR"
                    ]
                  },
                  "bitrate": {
                    "type": "string",
                    "enum": [
                      "standard",
                      "high"
                    ]
                  },
                  "returnLastFrame": {
                    "type": "boolean"
                  },
                  "documentUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "subjectSequence": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 999
                  },
                  "subjects": {
                    "maxItems": 6,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^Subject[1-9]\\d{0,2}$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 500
                        },
                        "assetIds": {
                          "minItems": 1,
                          "maxItems": 4,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[a-f\\d]{24}$"
                          }
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "assetIds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "shots": {
                    "minItems": 1,
                    "maxItems": 6,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "prompt": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 1800
                        },
                        "durationSeconds": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 15
                        }
                      },
                      "required": [
                        "id",
                        "prompt",
                        "durationSeconds"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "references": {
                    "maxItems": 120,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "assetId": {
                          "type": "string",
                          "pattern": "^[a-f\\d]{24}$"
                        },
                        "field": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "label": {
                          "type": "string",
                          "pattern": "^(Image|Video|Audio|Document)[1-9]\\d{0,3}$"
                        }
                      },
                      "required": [
                        "id",
                        "assetId",
                        "field",
                        "label"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "version",
                  "capabilityRevision",
                  "references"
                ],
                "additionalProperties": false
              },
              "workflow": {
                "type": "string",
                "enum": [
                  "TEXT_TO_IMAGE",
                  "IMAGE_EDIT",
                  "CHARACTER_RECREATE",
                  "CHARACTER_RECREATE_SPICY",
                  "TEXT_TO_VIDEO",
                  "IMAGE_TO_VIDEO",
                  "CHARACTER_TO_VIDEO",
                  "CHARACTER_TO_VIDEO_SPICY",
                  "FIRST_LAST_TO_VIDEO",
                  "DIRECTOR_BRIEF",
                  "MOTION_CONTROL"
                ]
              },
              "durationSeconds": {
                "type": "number",
                "minimum": 0.1,
                "maximum": 600
              },
              "ratio": {
                "type": "string",
                "enum": [
                  "21:9",
                  "16:9",
                  "4:3",
                  "1:1",
                  "3:4",
                  "9:16",
                  "adaptive"
                ]
              },
              "videoStyle": {
                "type": "string",
                "enum": [
                  "NATURAL_PHONE",
                  "CINEMATIC",
                  "FOLLOW_PROMPT"
                ]
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "referenceAssetIds": {
                "maxItems": 30,
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[a-f\\d]{24}$"
                }
              },
              "shotCount": {
                "type": "integer",
                "minimum": 1,
                "maximum": 20
              },
              "generateAudio": {
                "type": "boolean"
              }
            },
            "required": [
              "workflow",
              "model"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "prompt",
          "context"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_saved_job_follow": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "const": "saved-job"
          },
          "sourceKind": {
            "type": "string",
            "enum": [
              "text",
              "director"
            ]
          },
          "sourceId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          },
          "family": {
            "type": "string",
            "enum": [
              "text",
              "generation",
              "planning",
              "reference",
              "director-export"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "kind",
          "sourceKind",
          "sourceId",
          "family",
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_text_models": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "tong_text_history": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "params": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "query": {
        "type": "object",
        "properties": {
          "before": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "params"
    ],
    "additionalProperties": false
  },
  "tong_text_quote": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "conversationId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[a-f\\d]{24}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16000
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "maxOutputTokens": {
            "type": "integer",
            "minimum": 256,
            "maximum": 4096
          }
        },
        "required": [
          "prompt",
          "model",
          "maxOutputTokens"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_text_submit": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "body": {
        "type": "object",
        "properties": {
          "quoteId": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "quoteId"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "body"
    ],
    "additionalProperties": false
  },
  "tong_assistant_start": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "message": {
        "type": "string",
        "minLength": 1,
        "maxLength": 32000
      },
      "attachments": {
        "default": [],
        "maxItems": 30,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[a-f\\d]{24}$"
        }
      },
      "reference_bindings": {
        "maxItems": 30,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string",
              "pattern": "^(?:Image|Video|Audio|Document)[1-9]\\d?$"
            },
            "assetId": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "required": [
            "label",
            "assetId"
          ],
          "additionalProperties": false
        }
      },
      "mode": {
        "default": "guided",
        "type": "string",
        "enum": [
          "guided",
          "automatic"
        ]
      },
      "conversation_id": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "model_preferences": {
        "type": "object",
        "properties": {
          "image": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,149}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "video": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,149}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "image",
          "video"
        ],
        "additionalProperties": false
      },
      "source": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "director",
              "text"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "kind",
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "message"
    ],
    "additionalProperties": false
  },
  "tong_filmmaker_start": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "message": {
        "type": "string",
        "minLength": 1,
        "maxLength": 32000
      },
      "attachments": {
        "default": [],
        "maxItems": 30,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[a-f\\d]{24}$"
        }
      },
      "reference_bindings": {
        "maxItems": 30,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "label": {
              "type": "string",
              "pattern": "^(?:Image|Video|Audio|Document)[1-9]\\d?$"
            },
            "assetId": {
              "type": "string",
              "pattern": "^[a-f\\d]{24}$"
            }
          },
          "required": [
            "label",
            "assetId"
          ],
          "additionalProperties": false
        }
      },
      "mode": {
        "default": "guided",
        "type": "string",
        "enum": [
          "guided",
          "automatic"
        ]
      },
      "conversation_id": {
        "type": "string",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
      },
      "model_preferences": {
        "type": "object",
        "properties": {
          "image": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,149}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "video": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]{0,149}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "image",
          "video"
        ],
        "additionalProperties": false
      },
      "source": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "director",
              "text"
            ]
          },
          "id": {
            "type": "string",
            "pattern": "^[a-f\\d]{24}$"
          }
        },
        "required": [
          "kind",
          "id"
        ],
        "additionalProperties": false
      }
    },
    "required": [
      "message"
    ],
    "additionalProperties": false
  }
}
