{
  "openapi": "3.1.0",
  "info": {
    "title": "dubmash API",
    "version": "1.0.0",
    "description": "Dub videos from code. Create a key in the app (Developers, credit packs only) and send it as a Bearer token. Routes that spend credits need an Idempotency-Key header. Default limits per key: 60 requests a minute and 10 dubs an hour; over the limit the API answers RATE_LIMITED with a Retry-After header. A dm_test_ key makes test-mode dubs that run on mock providers."
  },
  "servers": [
    {
      "url": "/api/v1"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/config/public": {
      "get": {
        "operationId": "getPublicConfig",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "limits": {
                      "type": "object",
                      "properties": {
                        "freeMaxSeconds": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "paidMaxSeconds": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "maxSpeakers": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "maxUploadBytes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "uploadMimeTypes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "retentionDays": {
                          "type": "object",
                          "properties": {
                            "free": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "paid": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "free",
                            "paid"
                          ],
                          "additionalProperties": false
                        },
                        "fixLinesPerVideo": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "stretchBound": {
                          "type": "number",
                          "exclusiveMinimum": 0,
                          "maximum": 1
                        },
                        "freePrepJobsPerDay": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "lipMatchMinFaceRatio": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "enrollPhraseTtlMinutes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "inviteTtlDays": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "shareLinkMaxDays": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "idempotencyTtlHours": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "mcpDedupeMinutes": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "strikesToBlock": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "rateLimits": {
                          "type": "object",
                          "properties": {
                            "requestsPerMinute": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "dubsPerHour": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "requestsPerMinute",
                            "dubsPerHour"
                          ],
                          "additionalProperties": false
                        },
                        "publicRateLimits": {
                          "type": "object",
                          "properties": {
                            "reportsPerHour": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "eventsPerMinute": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "reportsPerHour",
                            "eventsPerMinute"
                          ],
                          "additionalProperties": false
                        },
                        "uploadBytesPerDay": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "linkFetchesPerDay": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "linkDownloadDeadlineSeconds": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "takedownRetentionDays": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "maxApiKeys": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "maxOwnVoices": {
                          "type": "object",
                          "properties": {
                            "free": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "paid": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "free",
                            "paid"
                          ],
                          "additionalProperties": false
                        },
                        "originalVoiceMonthlyOps": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "voiceOpsCycleDay": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 28
                        },
                        "originalSampleMaxSeconds": {
                          "type": "integer",
                          "minimum": 30,
                          "maximum": 300
                        }
                      },
                      "required": [
                        "freeMaxSeconds",
                        "paidMaxSeconds",
                        "maxSpeakers",
                        "maxUploadBytes",
                        "uploadMimeTypes",
                        "retentionDays",
                        "fixLinesPerVideo",
                        "stretchBound",
                        "freePrepJobsPerDay",
                        "lipMatchMinFaceRatio",
                        "enrollPhraseTtlMinutes",
                        "inviteTtlDays",
                        "shareLinkMaxDays",
                        "idempotencyTtlHours",
                        "mcpDedupeMinutes",
                        "strikesToBlock",
                        "rateLimits",
                        "publicRateLimits",
                        "uploadBytesPerDay",
                        "linkFetchesPerDay",
                        "linkDownloadDeadlineSeconds",
                        "takedownRetentionDays",
                        "maxApiKeys",
                        "maxOwnVoices",
                        "originalVoiceMonthlyOps",
                        "voiceOpsCycleDay",
                        "originalSampleMaxSeconds"
                      ],
                      "additionalProperties": false
                    },
                    "credits": {
                      "type": "object",
                      "properties": {
                        "billingStepSeconds": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "dubPerLanguageMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "lipMatchPerLanguageMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "lipMatchMinPerLanguage": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "freeMonthlyGrant": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "transcriptPerMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "captionTranslatePerMinute": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "referral": {
                          "type": "object",
                          "properties": {
                            "inviter": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "invitee": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "inviter",
                            "invitee"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "billingStepSeconds",
                        "dubPerLanguageMinute",
                        "lipMatchPerLanguageMinute",
                        "lipMatchMinPerLanguage",
                        "freeMonthlyGrant",
                        "transcriptPerMinute",
                        "captionTranslatePerMinute",
                        "referral"
                      ],
                      "additionalProperties": false
                    },
                    "packs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "credits": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "priceUsdCents": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "storeProductId": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "credits",
                          "priceUsdCents",
                          "storeProductId"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "plans": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "monthlyCredits": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "billing": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "monthly": {
                                    "type": "object",
                                    "properties": {
                                      "priceUsdCents": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "storeProductIds": {
                                        "type": "object",
                                        "properties": {
                                          "ios": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "android": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "ios",
                                          "android"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "stripeLookupKey": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    },
                                    "required": [
                                      "priceUsdCents",
                                      "storeProductIds",
                                      "stripeLookupKey"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "yearly": {
                                    "type": "object",
                                    "properties": {
                                      "priceUsdCents": {
                                        "type": "integer",
                                        "exclusiveMinimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "storeProductIds": {
                                        "type": "object",
                                        "properties": {
                                          "ios": {
                                            "type": "string",
                                            "minLength": 1
                                          },
                                          "android": {
                                            "type": "string",
                                            "minLength": 1
                                          }
                                        },
                                        "required": [
                                          "ios",
                                          "android"
                                        ],
                                        "additionalProperties": false
                                      },
                                      "stripeLookupKey": {
                                        "type": "string",
                                        "minLength": 1
                                      }
                                    },
                                    "required": [
                                      "priceUsdCents",
                                      "storeProductIds",
                                      "stripeLookupKey"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "monthly",
                                  "yearly"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "requiresFlag": {
                            "type": "string",
                            "const": "proAndLip"
                          },
                          "limits": {
                            "type": "object",
                            "properties": {
                              "visibleLabel": {
                                "type": "boolean"
                              },
                              "retentionDays": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maxSeconds": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "lipMatch": {
                                "type": "boolean"
                              },
                              "api": {
                                "type": "boolean"
                              },
                              "priorityQueue": {
                                "type": "boolean"
                              },
                              "maxShortSide": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "visibleLabel",
                              "retentionDays",
                              "maxSeconds",
                              "lipMatch",
                              "api",
                              "priorityQueue"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "monthlyCredits",
                          "billing",
                          "limits"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "languages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 2
                          },
                          "name": {
                            "type": "string"
                          },
                          "native": {
                            "type": "string"
                          },
                          "dir": {
                            "type": "string",
                            "enum": [
                              "ltr",
                              "rtl"
                            ]
                          },
                          "script": {
                            "type": "string"
                          },
                          "font": {
                            "type": "string",
                            "enum": [
                              "nastaliq",
                              "naskh",
                              "devanagari",
                              "default"
                            ]
                          },
                          "source": {
                            "type": "boolean"
                          },
                          "target": {
                            "type": "boolean"
                          },
                          "voiceEngine": {
                            "type": "string",
                            "enum": [
                              "cartesia",
                              "elevenlabs",
                              "deepinfra",
                              "modal",
                              "mock"
                            ]
                          },
                          "launch": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "native",
                          "dir",
                          "script",
                          "font",
                          "source",
                          "target",
                          "launch"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "features": {
                      "type": "object",
                      "properties": {
                        "lipMatch": {
                          "type": "boolean"
                        },
                        "voiceCloning": {
                          "type": "boolean"
                        },
                        "invitedSpeakers": {
                          "type": "boolean"
                        },
                        "pasteLink": {
                          "type": "boolean"
                        },
                        "publicApi": {
                          "type": "boolean"
                        },
                        "mcpServer": {
                          "type": "boolean"
                        },
                        "editorExtraSizes": {
                          "type": "boolean"
                        },
                        "twoLanguageCaptions": {
                          "type": "boolean"
                        },
                        "captionOptions": {
                          "type": "boolean"
                        },
                        "wordsToKeep": {
                          "type": "boolean"
                        },
                        "tone": {
                          "type": "boolean"
                        },
                        "inAppPurchases": {
                          "type": "boolean"
                        },
                        "originalVoice": {
                          "type": "boolean"
                        },
                        "proAndLip": {
                          "type": "boolean"
                        },
                        "reviewSignIn": {
                          "type": "boolean"
                        },
                        "legalV2": {
                          "type": "boolean"
                        },
                        "liveActivity": {
                          "type": "boolean"
                        },
                        "liveActivityPush": {
                          "type": "boolean"
                        },
                        "enginePreview": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "lipMatch",
                        "voiceCloning",
                        "invitedSpeakers",
                        "pasteLink",
                        "publicApi",
                        "mcpServer",
                        "editorExtraSizes",
                        "twoLanguageCaptions",
                        "captionOptions",
                        "wordsToKeep",
                        "tone",
                        "inAppPurchases",
                        "originalVoice",
                        "proAndLip",
                        "reviewSignIn",
                        "legalV2",
                        "liveActivity",
                        "liveActivityPush",
                        "enginePreview"
                      ],
                      "additionalProperties": false
                    },
                    "oauth": {
                      "type": "object",
                      "properties": {
                        "allowedClients": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "minLength": 1
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "redirectHosts": {
                                "minItems": 1,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "redirectHosts"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "allowedClients"
                      ],
                      "additionalProperties": false
                    },
                    "recipes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1
                          },
                          "seconds": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "languages": {
                            "minItems": 1,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 2
                            }
                          },
                          "tip": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "seconds",
                          "languages",
                          "tip"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "promos": {
                      "maxItems": 7,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
                          },
                          "title": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40
                          },
                          "subtitle": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "mediaUrl": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^(https:\\/\\/|\\/[^/])"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "posterUrl": {
                            "type": "string",
                            "pattern": "^(https:\\/\\/|\\/[^/])"
                          },
                          "focusY": {
                            "default": 0.5,
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "target": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "screen"
                              },
                              "id": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "kind",
                              "id"
                            ],
                            "additionalProperties": false
                          },
                          "active": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "subtitle",
                          "mediaUrl",
                          "posterUrl",
                          "focusY",
                          "target",
                          "active"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "signIn": {
                      "type": "object",
                      "properties": {
                        "google": {
                          "type": "boolean"
                        },
                        "apple": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "google",
                        "apple"
                      ],
                      "additionalProperties": false
                    },
                    "aiProviders": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "stage": {
                            "type": "string",
                            "enum": [
                              "transcribe",
                              "translate",
                              "voice",
                              "lipsync",
                              "safety"
                            ]
                          },
                          "name": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "stage",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "stockVoices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "previews": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "tags"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "voicePreviews": {
                      "type": "object",
                      "properties": {
                        "standIn": {
                          "type": "boolean"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "standIn",
                        "url"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "limits",
                    "credits",
                    "packs",
                    "plans",
                    "languages",
                    "features",
                    "oauth",
                    "recipes",
                    "promos",
                    "signIn",
                    "aiProviders",
                    "stockVoices",
                    "voicePreviews"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": []
      }
    },
    "/languages": {
      "get": {
        "operationId": "listLanguages",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "languages": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 2
                          },
                          "name": {
                            "type": "string"
                          },
                          "native": {
                            "type": "string"
                          },
                          "dir": {
                            "type": "string",
                            "enum": [
                              "ltr",
                              "rtl"
                            ]
                          },
                          "script": {
                            "type": "string"
                          },
                          "font": {
                            "type": "string",
                            "enum": [
                              "nastaliq",
                              "naskh",
                              "devanagari",
                              "default"
                            ]
                          },
                          "source": {
                            "type": "boolean"
                          },
                          "target": {
                            "type": "boolean"
                          },
                          "voiceEngine": {
                            "type": "string",
                            "enum": [
                              "cartesia",
                              "elevenlabs",
                              "deepinfra",
                              "modal",
                              "mock"
                            ]
                          },
                          "launch": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "native",
                          "dir",
                          "script",
                          "font",
                          "source",
                          "target",
                          "launch"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "languages"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": []
      }
    },
    "/quote": {
      "post": {
        "operationId": "quote",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "durationSec": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "targetLanguages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 2
                    }
                  },
                  "lipMatch": {
                    "default": false,
                    "type": "boolean"
                  }
                },
                "required": [
                  "durationSec",
                  "targetLanguages"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "dub": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "lipMatch": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "perLanguage": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "language": {
                                "type": "string"
                              },
                              "dub": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "lipMatch": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "language",
                              "dub",
                              "lipMatch"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "dub",
                        "lipMatch",
                        "perLanguage"
                      ],
                      "additionalProperties": false
                    },
                    "balance": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "balanceAfter": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "test": {
                      "type": "boolean",
                      "const": true
                    },
                    "captionOnly": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "language": {
                            "type": "string"
                          },
                          "credits": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "language",
                          "credits"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "credits",
                    "breakdown",
                    "balance",
                    "balanceAfter"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/me": {
      "get": {
        "operationId": "getMe",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "me": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ageConfirmedAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "aiConsentAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "prefs": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "referralCode": {
                          "type": "string"
                        },
                        "referredBy": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tier": {
                          "type": "string",
                          "enum": [
                            "free",
                            "credits"
                          ]
                        },
                        "plan": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "periodEnd": {
                              "anyOf": [
                                {
                                  "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)))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "grace": {
                              "type": "boolean"
                            },
                            "interval": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "monthly",
                                    "yearly"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "appstore",
                                    "playstore",
                                    "stripe"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cancelAtPeriodEnd": {
                              "type": "boolean"
                            },
                            "pendingPlanId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "periodEnd",
                            "grace",
                            "interval",
                            "source",
                            "cancelAtPeriodEnd",
                            "pendingPlanId"
                          ],
                          "additionalProperties": false
                        },
                        "defaultVoice": {
                          "type": "string"
                        },
                        "createdAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "displayName",
                        "ageConfirmedAt",
                        "aiConsentAt",
                        "country",
                        "prefs",
                        "referralCode",
                        "referredBy",
                        "tier",
                        "plan",
                        "defaultVoice",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "me"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "updateMe",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "displayName": {
                    "type": "string",
                    "minLength": 1
                  },
                  "ageConfirmed": {
                    "type": "boolean",
                    "const": true
                  },
                  "under18": {
                    "type": "boolean",
                    "const": true
                  },
                  "aiConsent": {
                    "type": "boolean",
                    "const": true
                  },
                  "referredBy": {
                    "type": "string",
                    "minLength": 1
                  },
                  "prefs": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  },
                  "defaultVoice": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "me": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ageConfirmedAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "aiConsentAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "prefs": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {}
                        },
                        "referralCode": {
                          "type": "string"
                        },
                        "referredBy": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "tier": {
                          "type": "string",
                          "enum": [
                            "free",
                            "credits"
                          ]
                        },
                        "plan": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "periodEnd": {
                              "anyOf": [
                                {
                                  "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)))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "grace": {
                              "type": "boolean"
                            },
                            "interval": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "monthly",
                                    "yearly"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "appstore",
                                    "playstore",
                                    "stripe"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cancelAtPeriodEnd": {
                              "type": "boolean"
                            },
                            "pendingPlanId": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "id",
                            "periodEnd",
                            "grace",
                            "interval",
                            "source",
                            "cancelAtPeriodEnd",
                            "pendingPlanId"
                          ],
                          "additionalProperties": false
                        },
                        "defaultVoice": {
                          "type": "string"
                        },
                        "createdAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "email",
                        "displayName",
                        "ageConfirmedAt",
                        "aiConsentAt",
                        "country",
                        "prefs",
                        "referralCode",
                        "referredBy",
                        "tier",
                        "plan",
                        "defaultVoice",
                        "createdAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "me"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/uploads": {
      "post": {
        "operationId": "createUpload",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "bytes": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "mime": {
                    "type": "string",
                    "minLength": 1
                  },
                  "filename": {
                    "type": "string",
                    "minLength": 1
                  },
                  "kind": {
                    "default": "source",
                    "type": "string",
                    "enum": [
                      "source",
                      "subtitle_source"
                    ]
                  }
                },
                "required": [
                  "bytes",
                  "mime",
                  "filename"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "mediaId": {
                      "type": "string",
                      "minLength": 1
                    },
                    "uploadUrl": {
                      "type": "string"
                    },
                    "headers": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "mediaId",
                    "uploadUrl",
                    "headers"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/uploads/{id}": {
      "delete": {
        "operationId": "deleteUpload",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/uploads/{id}/complete": {
      "post": {
        "operationId": "completeUpload",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "media": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "source",
                            "voice_audio",
                            "output",
                            "subtitle",
                            "subtitle_source",
                            "export",
                            "stem",
                            "preview",
                            "poster"
                          ]
                        },
                        "bytes": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "durationMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "width": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "height": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fps": {
                          "anyOf": [
                            {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mime": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "deleteAfter": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "bytes",
                        "durationMs",
                        "width",
                        "height",
                        "fps",
                        "mime",
                        "language",
                        "name",
                        "deleteAfter"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "media"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/uploads/from-link": {
      "post": {
        "operationId": "createUploadFromLink",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri"
                  },
                  "rightsConfirmed": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "required": [
                  "url",
                  "rightsConfirmed"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "media": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "source",
                            "voice_audio",
                            "output",
                            "subtitle",
                            "subtitle_source",
                            "export",
                            "stem",
                            "preview",
                            "poster"
                          ]
                        },
                        "bytes": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "durationMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "width": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "height": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fps": {
                          "anyOf": [
                            {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mime": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "language": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "deleteAfter": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "bytes",
                        "durationMs",
                        "width",
                        "height",
                        "fps",
                        "mime",
                        "language",
                        "name",
                        "deleteAfter"
                      ],
                      "additionalProperties": false
                    },
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "media",
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs": {
      "post": {
        "operationId": "createDub",
        "parameters": [
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sourceMediaId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "videoUrl": {
                    "type": "string",
                    "format": "uri"
                  },
                  "targetLanguages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 2
                    }
                  },
                  "options": {
                    "default": {},
                    "type": "object",
                    "properties": {
                      "keepBackground": {
                        "default": true,
                        "type": "boolean"
                      },
                      "captions": {
                        "default": true,
                        "type": "boolean"
                      },
                      "captionOptions": {
                        "type": "object",
                        "properties": {
                          "style": {
                            "default": "pop",
                            "type": "string",
                            "enum": [
                              "pop",
                              "karaoke",
                              "boxed",
                              "clean",
                              "subtle",
                              "outline"
                            ]
                          },
                          "languages": {
                            "default": "dub",
                            "type": "string",
                            "enum": [
                              "dub",
                              "original",
                              "both"
                            ]
                          },
                          "language": {
                            "default": "dub",
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "secondLanguage": {
                            "default": "original",
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "output": {
                            "default": "burned",
                            "type": "string",
                            "enum": [
                              "burned",
                              "srt",
                              "both"
                            ]
                          },
                          "position": {
                            "default": "bottom",
                            "type": "string",
                            "enum": [
                              "top",
                              "middle",
                              "bottom"
                            ]
                          },
                          "size": {
                            "default": "M",
                            "type": "string",
                            "enum": [
                              "S",
                              "M",
                              "L"
                            ]
                          },
                          "behind": {
                            "default": false,
                            "type": "boolean"
                          }
                        }
                      },
                      "lipMatch": {
                        "default": false,
                        "type": "boolean"
                      },
                      "keepAccent": {
                        "default": false,
                        "type": "boolean"
                      },
                      "tone": {
                        "default": "natural",
                        "type": "string",
                        "enum": [
                          "natural",
                          "casual",
                          "formal"
                        ]
                      },
                      "useMyVoice": {
                        "default": true,
                        "type": "boolean"
                      },
                      "visibleLabel": {
                        "default": true,
                        "type": "boolean"
                      },
                      "glossaryIds": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "postCaption": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "voiceFeel": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "speed": {
                        "type": "number",
                        "minimum": 0.85,
                        "maximum": 1.15
                      }
                    }
                  },
                  "rightsConfirmed": {
                    "type": "boolean",
                    "const": true
                  },
                  "speakerConsent": {
                    "type": "boolean",
                    "const": true
                  },
                  "srtMediaId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "trimStart": {
                    "type": "number",
                    "minimum": 0
                  },
                  "trimEnd": {
                    "type": "number",
                    "exclusiveMinimum": 0
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "autoStart": {
                    "type": "object",
                    "properties": {
                      "maxCredits": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "maxCredits"
                    ]
                  },
                  "replacesDubId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "targetLanguages",
                  "rightsConfirmed"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dub": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "title": {
                          "type": "string"
                        },
                        "sourceMediaId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceLanguage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "targetLanguages": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "options": {
                          "type": "object",
                          "properties": {
                            "keepBackground": {
                              "default": true,
                              "type": "boolean"
                            },
                            "captions": {
                              "default": true,
                              "type": "boolean"
                            },
                            "captionOptions": {
                              "type": "object",
                              "properties": {
                                "style": {
                                  "default": "pop",
                                  "type": "string",
                                  "enum": [
                                    "pop",
                                    "karaoke",
                                    "boxed",
                                    "clean",
                                    "subtle",
                                    "outline"
                                  ]
                                },
                                "languages": {
                                  "default": "dub",
                                  "type": "string",
                                  "enum": [
                                    "dub",
                                    "original",
                                    "both"
                                  ]
                                },
                                "language": {
                                  "default": "dub",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "secondLanguage": {
                                  "default": "original",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "output": {
                                  "default": "burned",
                                  "type": "string",
                                  "enum": [
                                    "burned",
                                    "srt",
                                    "both"
                                  ]
                                },
                                "position": {
                                  "default": "bottom",
                                  "type": "string",
                                  "enum": [
                                    "top",
                                    "middle",
                                    "bottom"
                                  ]
                                },
                                "size": {
                                  "default": "M",
                                  "type": "string",
                                  "enum": [
                                    "S",
                                    "M",
                                    "L"
                                  ]
                                },
                                "behind": {
                                  "default": false,
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "style",
                                "languages",
                                "language",
                                "secondLanguage",
                                "output",
                                "position",
                                "size",
                                "behind"
                              ],
                              "additionalProperties": false
                            },
                            "lipMatch": {
                              "default": false,
                              "type": "boolean"
                            },
                            "keepAccent": {
                              "default": false,
                              "type": "boolean"
                            },
                            "tone": {
                              "default": "natural",
                              "type": "string",
                              "enum": [
                                "natural",
                                "casual",
                                "formal"
                              ]
                            },
                            "useMyVoice": {
                              "default": true,
                              "type": "boolean"
                            },
                            "visibleLabel": {
                              "default": true,
                              "type": "boolean"
                            },
                            "glossaryIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "postCaption": {
                              "type": "string",
                              "maxLength": 300
                            },
                            "voiceFeel": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "speed": {
                              "type": "number",
                              "minimum": 0.85,
                              "maximum": 1.15
                            }
                          },
                          "required": [
                            "keepBackground",
                            "captions",
                            "lipMatch",
                            "keepAccent",
                            "tone",
                            "useMyVoice",
                            "visibleLabel"
                          ],
                          "additionalProperties": false
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "preparing",
                            "needs_review",
                            "dubbing",
                            "done",
                            "partly_failed",
                            "failed",
                            "blocked",
                            "cancelled"
                          ]
                        },
                        "currentJobId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "durationMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lipMatchEligibleMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "quoteCredits": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reservedCredits": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "deleteAfter": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "disabledAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "outputsRemoved": {
                          "type": "boolean"
                        },
                        "speakerConsent": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "attestedAt": {
                                  "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)))$"
                                },
                                "wordingVersion": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "attestedAt",
                                "wordingVersion"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "voiceUsed": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "own",
                                "dubmash",
                                "original",
                                "mixed"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "sourceMediaId",
                        "sourceLanguage",
                        "targetLanguages",
                        "options",
                        "status",
                        "currentJobId",
                        "durationMs",
                        "lipMatchEligibleMs",
                        "mode",
                        "quoteCredits",
                        "reservedCredits",
                        "createdAt",
                        "deleteAfter",
                        "disabledAt",
                        "outputsRemoved",
                        "speakerConsent"
                      ],
                      "additionalProperties": false
                    },
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "quote": {
                      "type": "object",
                      "properties": {
                        "credits": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "breakdown": {
                          "type": "object",
                          "properties": {
                            "dub": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "lipMatch": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "perLanguage": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "language": {
                                    "type": "string"
                                  },
                                  "dub": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  },
                                  "lipMatch": {
                                    "type": "integer",
                                    "minimum": -9007199254740991,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "language",
                                  "dub",
                                  "lipMatch"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "dub",
                            "lipMatch",
                            "perLanguage"
                          ],
                          "additionalProperties": false
                        },
                        "balance": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "balanceAfter": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "test": {
                          "type": "boolean",
                          "const": true
                        },
                        "captionOnly": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "language": {
                                "type": "string"
                              },
                              "credits": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "language",
                              "credits"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "credits",
                        "breakdown",
                        "balance",
                        "balanceAfter"
                      ],
                      "additionalProperties": false
                    },
                    "replacedDubId": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "dub",
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "get": {
        "operationId": "listDubs",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dubs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "title": {
                            "type": "string"
                          },
                          "sourceMediaId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceLanguage": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "targetLanguages": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          },
                          "options": {
                            "type": "object",
                            "properties": {
                              "keepBackground": {
                                "default": true,
                                "type": "boolean"
                              },
                              "captions": {
                                "default": true,
                                "type": "boolean"
                              },
                              "captionOptions": {
                                "type": "object",
                                "properties": {
                                  "style": {
                                    "default": "pop",
                                    "type": "string",
                                    "enum": [
                                      "pop",
                                      "karaoke",
                                      "boxed",
                                      "clean",
                                      "subtle",
                                      "outline"
                                    ]
                                  },
                                  "languages": {
                                    "default": "dub",
                                    "type": "string",
                                    "enum": [
                                      "dub",
                                      "original",
                                      "both"
                                    ]
                                  },
                                  "language": {
                                    "default": "dub",
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "dub",
                                          "original"
                                        ]
                                      },
                                      {
                                        "type": "string",
                                        "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                      }
                                    ]
                                  },
                                  "secondLanguage": {
                                    "default": "original",
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "dub",
                                          "original"
                                        ]
                                      },
                                      {
                                        "type": "string",
                                        "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                      }
                                    ]
                                  },
                                  "output": {
                                    "default": "burned",
                                    "type": "string",
                                    "enum": [
                                      "burned",
                                      "srt",
                                      "both"
                                    ]
                                  },
                                  "position": {
                                    "default": "bottom",
                                    "type": "string",
                                    "enum": [
                                      "top",
                                      "middle",
                                      "bottom"
                                    ]
                                  },
                                  "size": {
                                    "default": "M",
                                    "type": "string",
                                    "enum": [
                                      "S",
                                      "M",
                                      "L"
                                    ]
                                  },
                                  "behind": {
                                    "default": false,
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "style",
                                  "languages",
                                  "language",
                                  "secondLanguage",
                                  "output",
                                  "position",
                                  "size",
                                  "behind"
                                ],
                                "additionalProperties": false
                              },
                              "lipMatch": {
                                "default": false,
                                "type": "boolean"
                              },
                              "keepAccent": {
                                "default": false,
                                "type": "boolean"
                              },
                              "tone": {
                                "default": "natural",
                                "type": "string",
                                "enum": [
                                  "natural",
                                  "casual",
                                  "formal"
                                ]
                              },
                              "useMyVoice": {
                                "default": true,
                                "type": "boolean"
                              },
                              "visibleLabel": {
                                "default": true,
                                "type": "boolean"
                              },
                              "glossaryIds": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1
                                }
                              },
                              "postCaption": {
                                "type": "string",
                                "maxLength": 300
                              },
                              "voiceFeel": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "speed": {
                                "type": "number",
                                "minimum": 0.85,
                                "maximum": 1.15
                              }
                            },
                            "required": [
                              "keepBackground",
                              "captions",
                              "lipMatch",
                              "keepAccent",
                              "tone",
                              "useMyVoice",
                              "visibleLabel"
                            ],
                            "additionalProperties": false
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "preparing",
                              "needs_review",
                              "dubbing",
                              "done",
                              "partly_failed",
                              "failed",
                              "blocked",
                              "cancelled"
                            ]
                          },
                          "currentJobId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "durationMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "lipMatchEligibleMs": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "mode": {
                            "type": "string",
                            "enum": [
                              "live",
                              "test"
                            ]
                          },
                          "quoteCredits": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "reservedCredits": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "createdAt": {
                            "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)))$"
                          },
                          "deleteAfter": {
                            "anyOf": [
                              {
                                "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)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "disabledAt": {
                            "anyOf": [
                              {
                                "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)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "outputsRemoved": {
                            "type": "boolean"
                          },
                          "speakerConsent": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "attestedAt": {
                                    "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)))$"
                                  },
                                  "wordingVersion": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "attestedAt",
                                  "wordingVersion"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "posterUrl": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "voiceUsed": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "own",
                                  "dubmash",
                                  "original",
                                  "mixed"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "title",
                          "sourceMediaId",
                          "sourceLanguage",
                          "targetLanguages",
                          "options",
                          "status",
                          "currentJobId",
                          "durationMs",
                          "lipMatchEligibleMs",
                          "mode",
                          "quoteCredits",
                          "reservedCredits",
                          "createdAt",
                          "deleteAfter",
                          "disabledAt",
                          "outputsRemoved",
                          "speakerConsent"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "dubs",
                    "nextCursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}": {
      "get": {
        "operationId": "getDub",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1
                    },
                    "title": {
                      "type": "string"
                    },
                    "sourceMediaId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sourceLanguage": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "targetLanguages": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "options": {
                      "type": "object",
                      "properties": {
                        "keepBackground": {
                          "default": true,
                          "type": "boolean"
                        },
                        "captions": {
                          "default": true,
                          "type": "boolean"
                        },
                        "captionOptions": {
                          "type": "object",
                          "properties": {
                            "style": {
                              "default": "pop",
                              "type": "string",
                              "enum": [
                                "pop",
                                "karaoke",
                                "boxed",
                                "clean",
                                "subtle",
                                "outline"
                              ]
                            },
                            "languages": {
                              "default": "dub",
                              "type": "string",
                              "enum": [
                                "dub",
                                "original",
                                "both"
                              ]
                            },
                            "language": {
                              "default": "dub",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "dub",
                                    "original"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                }
                              ]
                            },
                            "secondLanguage": {
                              "default": "original",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "dub",
                                    "original"
                                  ]
                                },
                                {
                                  "type": "string",
                                  "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                }
                              ]
                            },
                            "output": {
                              "default": "burned",
                              "type": "string",
                              "enum": [
                                "burned",
                                "srt",
                                "both"
                              ]
                            },
                            "position": {
                              "default": "bottom",
                              "type": "string",
                              "enum": [
                                "top",
                                "middle",
                                "bottom"
                              ]
                            },
                            "size": {
                              "default": "M",
                              "type": "string",
                              "enum": [
                                "S",
                                "M",
                                "L"
                              ]
                            },
                            "behind": {
                              "default": false,
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "style",
                            "languages",
                            "language",
                            "secondLanguage",
                            "output",
                            "position",
                            "size",
                            "behind"
                          ],
                          "additionalProperties": false
                        },
                        "lipMatch": {
                          "default": false,
                          "type": "boolean"
                        },
                        "keepAccent": {
                          "default": false,
                          "type": "boolean"
                        },
                        "tone": {
                          "default": "natural",
                          "type": "string",
                          "enum": [
                            "natural",
                            "casual",
                            "formal"
                          ]
                        },
                        "useMyVoice": {
                          "default": true,
                          "type": "boolean"
                        },
                        "visibleLabel": {
                          "default": true,
                          "type": "boolean"
                        },
                        "glossaryIds": {
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "postCaption": {
                          "type": "string",
                          "maxLength": 300
                        },
                        "voiceFeel": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "speed": {
                          "type": "number",
                          "minimum": 0.85,
                          "maximum": 1.15
                        }
                      },
                      "required": [
                        "keepBackground",
                        "captions",
                        "lipMatch",
                        "keepAccent",
                        "tone",
                        "useMyVoice",
                        "visibleLabel"
                      ],
                      "additionalProperties": false
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "preparing",
                        "needs_review",
                        "dubbing",
                        "done",
                        "partly_failed",
                        "failed",
                        "blocked",
                        "cancelled"
                      ]
                    },
                    "currentJobId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "durationMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lipMatchEligibleMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "mode": {
                      "type": "string",
                      "enum": [
                        "live",
                        "test"
                      ]
                    },
                    "quoteCredits": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reservedCredits": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "createdAt": {
                      "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)))$"
                    },
                    "deleteAfter": {
                      "anyOf": [
                        {
                          "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)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "disabledAt": {
                      "anyOf": [
                        {
                          "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)))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "outputsRemoved": {
                      "type": "boolean"
                    },
                    "speakerConsent": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "attestedAt": {
                              "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)))$"
                            },
                            "wordingVersion": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "attestedAt",
                            "wordingVersion"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "posterUrl": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "voiceUsed": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "own",
                            "dubmash",
                            "original",
                            "mixed"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "currentJob": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "dubId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "prep",
                                "dub",
                                "redub_lines",
                                "export",
                                "enroll_voice",
                                "poster",
                                "behind_preview",
                                "fetch_link",
                                "webhook",
                                "caption_translate"
                              ]
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "separating",
                                "transcribing",
                                "diarizing",
                                "translating",
                                "awaiting_review",
                                "moderating",
                                "synthesizing",
                                "aligning",
                                "lipmatching",
                                "exporting",
                                "succeeded",
                                "failed",
                                "blocked",
                                "refunded",
                                "cancelled"
                              ]
                            },
                            "step": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "separate",
                                    "hear",
                                    "translate",
                                    "speak",
                                    "lineup",
                                    "finish"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "progress": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "languagesDone": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "partial": {
                              "type": "boolean"
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "live",
                                "test"
                              ]
                            },
                            "errorCode": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "errorMessage": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "createdAt": {
                              "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)))$"
                            },
                            "updatedAt": {
                              "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)))$"
                            }
                          },
                          "required": [
                            "id",
                            "dubId",
                            "type",
                            "state",
                            "step",
                            "progress",
                            "languagesDone",
                            "mode",
                            "errorCode",
                            "errorMessage",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "speakers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "dubId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "label": {
                            "type": "string"
                          },
                          "displayName": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "voiceId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "stockVoice": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "originalVoice": {
                            "type": "boolean"
                          },
                          "originalAllowed": {
                            "type": "boolean"
                          },
                          "mergedInto": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "totalMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "removed": {
                            "type": "boolean"
                          },
                          "voiceFallback": {
                            "type": "string",
                            "enum": [
                              "needs_in_app_consent"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "dubId",
                          "label",
                          "displayName",
                          "voiceId",
                          "stockVoice",
                          "originalVoice",
                          "originalAllowed",
                          "mergedInto",
                          "totalMs",
                          "removed"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "lines": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "dubId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "idx": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "speakerId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "startMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "endMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "sourceText": {
                            "type": "string"
                          },
                          "words": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "w": {
                                  "type": "string"
                                },
                                "startMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "w",
                                "startMs",
                                "endMs"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "edited": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "id",
                          "dubId",
                          "idx",
                          "speakerId",
                          "startMs",
                          "endMs",
                          "sourceText",
                          "words",
                          "edited"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "translations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "lineId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "language": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "fit": {
                            "type": "string",
                            "enum": [
                              "fits",
                              "trim",
                              "too_long"
                            ]
                          },
                          "edited": {
                            "type": "boolean"
                          },
                          "audioMediaId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "words": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "w": {
                                  "type": "string"
                                },
                                "startMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "w",
                                "startMs",
                                "endMs"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "lineId",
                          "language",
                          "text",
                          "fit",
                          "edited",
                          "audioMediaId",
                          "words"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "outputs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "language": {
                            "type": "string"
                          },
                          "mp4Url": {
                            "type": "string"
                          },
                          "srtUrl": {
                            "type": "string"
                          },
                          "vttUrl": {
                            "type": "string"
                          },
                          "mp4Name": {
                            "type": "string"
                          },
                          "srtName": {
                            "type": "string"
                          },
                          "vttName": {
                            "type": "string"
                          },
                          "expiresAt": {
                            "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)))$"
                          }
                        },
                        "required": [
                          "language",
                          "mp4Url",
                          "srtUrl",
                          "vttUrl",
                          "mp4Name",
                          "srtName",
                          "vttName",
                          "expiresAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "postCaptions": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "sourceUrl": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "originalRegionBlocked": {
                      "type": "boolean"
                    },
                    "refundedCredits": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "blockReasons": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "lineId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "language": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "category": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "lineId",
                          "language",
                          "category",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "captionTranslations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "lineId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "language": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "words": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "w": {
                                  "type": "string"
                                },
                                "startMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "w",
                                "startMs",
                                "endMs"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "lineId",
                          "language",
                          "text",
                          "words"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "id",
                    "title",
                    "sourceMediaId",
                    "sourceLanguage",
                    "targetLanguages",
                    "options",
                    "status",
                    "currentJobId",
                    "durationMs",
                    "lipMatchEligibleMs",
                    "mode",
                    "quoteCredits",
                    "reservedCredits",
                    "createdAt",
                    "deleteAfter",
                    "disabledAt",
                    "outputsRemoved",
                    "speakerConsent",
                    "currentJob",
                    "speakers",
                    "lines",
                    "translations",
                    "outputs",
                    "postCaptions",
                    "sourceUrl",
                    "blockReasons"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "updateDub",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "options": {
                    "type": "object",
                    "properties": {
                      "keepBackground": {
                        "type": "boolean"
                      },
                      "captions": {
                        "type": "boolean"
                      },
                      "captionOptions": {
                        "type": "object",
                        "properties": {
                          "style": {
                            "type": "string",
                            "enum": [
                              "pop",
                              "karaoke",
                              "boxed",
                              "clean",
                              "subtle",
                              "outline"
                            ]
                          },
                          "languages": {
                            "type": "string",
                            "enum": [
                              "dub",
                              "original",
                              "both"
                            ]
                          },
                          "language": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "secondLanguage": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "output": {
                            "type": "string",
                            "enum": [
                              "burned",
                              "srt",
                              "both"
                            ]
                          },
                          "position": {
                            "type": "string",
                            "enum": [
                              "top",
                              "middle",
                              "bottom"
                            ]
                          },
                          "size": {
                            "type": "string",
                            "enum": [
                              "S",
                              "M",
                              "L"
                            ]
                          },
                          "behind": {
                            "type": "boolean"
                          }
                        }
                      },
                      "lipMatch": {
                        "type": "boolean"
                      },
                      "keepAccent": {
                        "type": "boolean"
                      },
                      "tone": {
                        "type": "string",
                        "enum": [
                          "natural",
                          "casual",
                          "formal"
                        ]
                      },
                      "useMyVoice": {
                        "type": "boolean"
                      },
                      "visibleLabel": {
                        "type": "boolean"
                      },
                      "postCaption": {
                        "type": "string",
                        "maxLength": 300
                      },
                      "voiceFeel": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "speed": {
                        "type": "number",
                        "minimum": 0.85,
                        "maximum": 1.15
                      }
                    }
                  },
                  "targetLanguages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 2
                    }
                  },
                  "glossaryIds": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "sourceLanguage": {
                    "type": "string",
                    "minLength": 2
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dub": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "title": {
                          "type": "string"
                        },
                        "sourceMediaId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceLanguage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "targetLanguages": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "options": {
                          "type": "object",
                          "properties": {
                            "keepBackground": {
                              "default": true,
                              "type": "boolean"
                            },
                            "captions": {
                              "default": true,
                              "type": "boolean"
                            },
                            "captionOptions": {
                              "type": "object",
                              "properties": {
                                "style": {
                                  "default": "pop",
                                  "type": "string",
                                  "enum": [
                                    "pop",
                                    "karaoke",
                                    "boxed",
                                    "clean",
                                    "subtle",
                                    "outline"
                                  ]
                                },
                                "languages": {
                                  "default": "dub",
                                  "type": "string",
                                  "enum": [
                                    "dub",
                                    "original",
                                    "both"
                                  ]
                                },
                                "language": {
                                  "default": "dub",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "secondLanguage": {
                                  "default": "original",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "output": {
                                  "default": "burned",
                                  "type": "string",
                                  "enum": [
                                    "burned",
                                    "srt",
                                    "both"
                                  ]
                                },
                                "position": {
                                  "default": "bottom",
                                  "type": "string",
                                  "enum": [
                                    "top",
                                    "middle",
                                    "bottom"
                                  ]
                                },
                                "size": {
                                  "default": "M",
                                  "type": "string",
                                  "enum": [
                                    "S",
                                    "M",
                                    "L"
                                  ]
                                },
                                "behind": {
                                  "default": false,
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "style",
                                "languages",
                                "language",
                                "secondLanguage",
                                "output",
                                "position",
                                "size",
                                "behind"
                              ],
                              "additionalProperties": false
                            },
                            "lipMatch": {
                              "default": false,
                              "type": "boolean"
                            },
                            "keepAccent": {
                              "default": false,
                              "type": "boolean"
                            },
                            "tone": {
                              "default": "natural",
                              "type": "string",
                              "enum": [
                                "natural",
                                "casual",
                                "formal"
                              ]
                            },
                            "useMyVoice": {
                              "default": true,
                              "type": "boolean"
                            },
                            "visibleLabel": {
                              "default": true,
                              "type": "boolean"
                            },
                            "glossaryIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "postCaption": {
                              "type": "string",
                              "maxLength": 300
                            },
                            "voiceFeel": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "speed": {
                              "type": "number",
                              "minimum": 0.85,
                              "maximum": 1.15
                            }
                          },
                          "required": [
                            "keepBackground",
                            "captions",
                            "lipMatch",
                            "keepAccent",
                            "tone",
                            "useMyVoice",
                            "visibleLabel"
                          ],
                          "additionalProperties": false
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "preparing",
                            "needs_review",
                            "dubbing",
                            "done",
                            "partly_failed",
                            "failed",
                            "blocked",
                            "cancelled"
                          ]
                        },
                        "currentJobId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "durationMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lipMatchEligibleMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "quoteCredits": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reservedCredits": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "deleteAfter": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "disabledAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "outputsRemoved": {
                          "type": "boolean"
                        },
                        "speakerConsent": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "attestedAt": {
                                  "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)))$"
                                },
                                "wordingVersion": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "attestedAt",
                                "wordingVersion"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "voiceUsed": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "own",
                                "dubmash",
                                "original",
                                "mixed"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "sourceMediaId",
                        "sourceLanguage",
                        "targetLanguages",
                        "options",
                        "status",
                        "currentJobId",
                        "durationMs",
                        "lipMatchEligibleMs",
                        "mode",
                        "quoteCredits",
                        "reservedCredits",
                        "createdAt",
                        "deleteAfter",
                        "disabledAt",
                        "outputsRemoved",
                        "speakerConsent"
                      ],
                      "additionalProperties": false
                    },
                    "job": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "dubId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "prep",
                                "dub",
                                "redub_lines",
                                "export",
                                "enroll_voice",
                                "poster",
                                "behind_preview",
                                "fetch_link",
                                "webhook",
                                "caption_translate"
                              ]
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "separating",
                                "transcribing",
                                "diarizing",
                                "translating",
                                "awaiting_review",
                                "moderating",
                                "synthesizing",
                                "aligning",
                                "lipmatching",
                                "exporting",
                                "succeeded",
                                "failed",
                                "blocked",
                                "refunded",
                                "cancelled"
                              ]
                            },
                            "step": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "separate",
                                    "hear",
                                    "translate",
                                    "speak",
                                    "lineup",
                                    "finish"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "progress": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "languagesDone": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "partial": {
                              "type": "boolean"
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "live",
                                "test"
                              ]
                            },
                            "errorCode": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "errorMessage": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "createdAt": {
                              "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)))$"
                            },
                            "updatedAt": {
                              "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)))$"
                            }
                          },
                          "required": [
                            "id",
                            "dubId",
                            "type",
                            "state",
                            "step",
                            "progress",
                            "languagesDone",
                            "mode",
                            "errorCode",
                            "errorMessage",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "dub",
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "operationId": "deleteDub",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/speakers/{speakerId}": {
      "patch": {
        "operationId": "updateDubSpeaker",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "speakerId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "displayName": {
                    "type": "string",
                    "minLength": 1
                  },
                  "mergeInto": {
                    "type": "string",
                    "minLength": 1
                  },
                  "remove": {
                    "type": "boolean"
                  },
                  "stockVoice": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "voiceId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "voice": {
                    "type": "string",
                    "minLength": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "speaker": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "label": {
                          "type": "string"
                        },
                        "displayName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "voiceId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "stockVoice": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "originalVoice": {
                          "type": "boolean"
                        },
                        "originalAllowed": {
                          "type": "boolean"
                        },
                        "mergedInto": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "totalMs": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "removed": {
                          "type": "boolean"
                        },
                        "voiceFallback": {
                          "type": "string",
                          "enum": [
                            "needs_in_app_consent"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "label",
                        "displayName",
                        "voiceId",
                        "stockVoice",
                        "originalVoice",
                        "originalAllowed",
                        "mergedInto",
                        "totalMs",
                        "removed"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "speaker"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/lines/{lineId}": {
      "patch": {
        "operationId": "updateDubLine",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lineId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sourceText": {
                    "type": "string"
                  },
                  "translations": {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "line": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "idx": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "speakerId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "startMs": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "endMs": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "sourceText": {
                          "type": "string"
                        },
                        "words": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "w": {
                                "type": "string"
                              },
                              "startMs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "endMs": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "w",
                              "startMs",
                              "endMs"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "edited": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "idx",
                        "speakerId",
                        "startMs",
                        "endMs",
                        "sourceText",
                        "words",
                        "edited"
                      ],
                      "additionalProperties": false
                    },
                    "translations": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "lineId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "language": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          },
                          "fit": {
                            "type": "string",
                            "enum": [
                              "fits",
                              "trim",
                              "too_long"
                            ]
                          },
                          "edited": {
                            "type": "boolean"
                          },
                          "audioMediaId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "words": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "w": {
                                  "type": "string"
                                },
                                "startMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "w",
                                "startMs",
                                "endMs"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "id",
                          "lineId",
                          "language",
                          "text",
                          "fit",
                          "edited",
                          "audioMediaId",
                          "words"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "line",
                    "translations"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/quote": {
      "get": {
        "operationId": "getDubQuote",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "credits": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "dub": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "lipMatch": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "perLanguage": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "language": {
                                "type": "string"
                              },
                              "dub": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "lipMatch": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "language",
                              "dub",
                              "lipMatch"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "dub",
                        "lipMatch",
                        "perLanguage"
                      ],
                      "additionalProperties": false
                    },
                    "balance": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "balanceAfter": {
                      "type": "integer",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    },
                    "test": {
                      "type": "boolean",
                      "const": true
                    },
                    "captionOnly": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "language": {
                            "type": "string"
                          },
                          "credits": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "language",
                          "credits"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "credits",
                    "breakdown",
                    "balance",
                    "balanceAfter"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/start": {
      "post": {
        "operationId": "startDub",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "acceptQuote": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "speakerConsent": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "required": [
                  "acceptQuote"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dub": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "title": {
                          "type": "string"
                        },
                        "sourceMediaId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceLanguage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "targetLanguages": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "options": {
                          "type": "object",
                          "properties": {
                            "keepBackground": {
                              "default": true,
                              "type": "boolean"
                            },
                            "captions": {
                              "default": true,
                              "type": "boolean"
                            },
                            "captionOptions": {
                              "type": "object",
                              "properties": {
                                "style": {
                                  "default": "pop",
                                  "type": "string",
                                  "enum": [
                                    "pop",
                                    "karaoke",
                                    "boxed",
                                    "clean",
                                    "subtle",
                                    "outline"
                                  ]
                                },
                                "languages": {
                                  "default": "dub",
                                  "type": "string",
                                  "enum": [
                                    "dub",
                                    "original",
                                    "both"
                                  ]
                                },
                                "language": {
                                  "default": "dub",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "secondLanguage": {
                                  "default": "original",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "output": {
                                  "default": "burned",
                                  "type": "string",
                                  "enum": [
                                    "burned",
                                    "srt",
                                    "both"
                                  ]
                                },
                                "position": {
                                  "default": "bottom",
                                  "type": "string",
                                  "enum": [
                                    "top",
                                    "middle",
                                    "bottom"
                                  ]
                                },
                                "size": {
                                  "default": "M",
                                  "type": "string",
                                  "enum": [
                                    "S",
                                    "M",
                                    "L"
                                  ]
                                },
                                "behind": {
                                  "default": false,
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "style",
                                "languages",
                                "language",
                                "secondLanguage",
                                "output",
                                "position",
                                "size",
                                "behind"
                              ],
                              "additionalProperties": false
                            },
                            "lipMatch": {
                              "default": false,
                              "type": "boolean"
                            },
                            "keepAccent": {
                              "default": false,
                              "type": "boolean"
                            },
                            "tone": {
                              "default": "natural",
                              "type": "string",
                              "enum": [
                                "natural",
                                "casual",
                                "formal"
                              ]
                            },
                            "useMyVoice": {
                              "default": true,
                              "type": "boolean"
                            },
                            "visibleLabel": {
                              "default": true,
                              "type": "boolean"
                            },
                            "glossaryIds": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "postCaption": {
                              "type": "string",
                              "maxLength": 300
                            },
                            "voiceFeel": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "speed": {
                              "type": "number",
                              "minimum": 0.85,
                              "maximum": 1.15
                            }
                          },
                          "required": [
                            "keepBackground",
                            "captions",
                            "lipMatch",
                            "keepAccent",
                            "tone",
                            "useMyVoice",
                            "visibleLabel"
                          ],
                          "additionalProperties": false
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "preparing",
                            "needs_review",
                            "dubbing",
                            "done",
                            "partly_failed",
                            "failed",
                            "blocked",
                            "cancelled"
                          ]
                        },
                        "currentJobId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "durationMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lipMatchEligibleMs": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "quoteCredits": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reservedCredits": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "deleteAfter": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "disabledAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "outputsRemoved": {
                          "type": "boolean"
                        },
                        "speakerConsent": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "attestedAt": {
                                  "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)))$"
                                },
                                "wordingVersion": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "attestedAt",
                                "wordingVersion"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "voiceUsed": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "own",
                                "dubmash",
                                "original",
                                "mixed"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "title",
                        "sourceMediaId",
                        "sourceLanguage",
                        "targetLanguages",
                        "options",
                        "status",
                        "currentJobId",
                        "durationMs",
                        "lipMatchEligibleMs",
                        "mode",
                        "quoteCredits",
                        "reservedCredits",
                        "createdAt",
                        "deleteAfter",
                        "disabledAt",
                        "outputsRemoved",
                        "speakerConsent"
                      ],
                      "additionalProperties": false
                    },
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "voiceFallback": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "speakerId": {
                            "type": "string"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "needs_in_app_consent"
                            ]
                          }
                        },
                        "required": [
                          "speakerId",
                          "reason"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "dub",
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/redub-lines": {
      "post": {
        "operationId": "redubLines",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lineIds": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "speakerConsent": {
                    "type": "boolean",
                    "const": true
                  }
                },
                "required": [
                  "lineIds"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "fixesLeft": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "job",
                    "fixesLeft"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/caption-languages": {
      "post": {
        "operationId": "translateCaptions",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "minLength": 2
                  },
                  "acceptQuote": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "language",
                  "acceptQuote"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "dubId": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "prep",
                                "dub",
                                "redub_lines",
                                "export",
                                "enroll_voice",
                                "poster",
                                "behind_preview",
                                "fetch_link",
                                "webhook",
                                "caption_translate"
                              ]
                            },
                            "state": {
                              "type": "string",
                              "enum": [
                                "queued",
                                "separating",
                                "transcribing",
                                "diarizing",
                                "translating",
                                "awaiting_review",
                                "moderating",
                                "synthesizing",
                                "aligning",
                                "lipmatching",
                                "exporting",
                                "succeeded",
                                "failed",
                                "blocked",
                                "refunded",
                                "cancelled"
                              ]
                            },
                            "step": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "separate",
                                    "hear",
                                    "translate",
                                    "speak",
                                    "lineup",
                                    "finish"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "progress": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "languagesDone": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "partial": {
                              "type": "boolean"
                            },
                            "mode": {
                              "type": "string",
                              "enum": [
                                "live",
                                "test"
                              ]
                            },
                            "errorCode": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "errorMessage": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "createdAt": {
                              "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)))$"
                            },
                            "updatedAt": {
                              "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)))$"
                            }
                          },
                          "required": [
                            "id",
                            "dubId",
                            "type",
                            "state",
                            "step",
                            "progress",
                            "languagesDone",
                            "mode",
                            "errorCode",
                            "errorMessage",
                            "createdAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credits": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "job",
                    "credits"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/outputs": {
      "get": {
        "operationId": "getDubOutputs",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 2
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "outputs": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "language": {
                            "type": "string"
                          },
                          "mp4Url": {
                            "type": "string"
                          },
                          "srtUrl": {
                            "type": "string"
                          },
                          "vttUrl": {
                            "type": "string"
                          },
                          "mp4Name": {
                            "type": "string"
                          },
                          "srtName": {
                            "type": "string"
                          },
                          "vttName": {
                            "type": "string"
                          },
                          "expiresAt": {
                            "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)))$"
                          }
                        },
                        "required": [
                          "language",
                          "mp4Url",
                          "srtUrl",
                          "vttUrl",
                          "mp4Name",
                          "srtName",
                          "vttName",
                          "expiresAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "outputs"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/dubs/{id}/share": {
      "post": {
        "operationId": "shareDub",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "minLength": 2
                  },
                  "days": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 7
                  }
                },
                "required": [
                  "language"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "expiresAt": {
                      "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)))$"
                    }
                  },
                  "required": [
                    "url",
                    "expiresAt"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/jobs/{id}": {
      "get": {
        "operationId": "getJob",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/jobs/{id}/cancel": {
      "post": {
        "operationId": "cancelJob",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "refundedCredits": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "job",
                    "refundedCredits"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/voices": {
      "get": {
        "operationId": "listVoices",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "voices": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "self",
                              "invited"
                            ]
                          },
                          "displayName": {
                            "type": "string"
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "pending",
                              "verified",
                              "revoked"
                            ]
                          },
                          "createdAt": {
                            "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)))$"
                          },
                          "revokedAt": {
                            "anyOf": [
                              {
                                "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)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "isDefault": {
                            "type": "boolean"
                          },
                          "dubCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "consentAt": {
                            "anyOf": [
                              {
                                "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)))$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "waiting": {
                            "type": "object",
                            "properties": {
                              "stage": {
                                "type": "string",
                                "enum": [
                                  "checking",
                                  "not_recorded"
                                ]
                              },
                              "expiresAt": {
                                "anyOf": [
                                  {
                                    "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)))$"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "stage",
                              "expiresAt"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "displayName",
                          "status",
                          "createdAt",
                          "revokedAt",
                          "isDefault"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "voices"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/voices/{id}": {
      "patch": {
        "operationId": "updateVoice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "displayName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 40
                  },
                  "makeDefault": {
                    "type": "boolean",
                    "const": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "voice": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "self",
                            "invited"
                          ]
                        },
                        "displayName": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "verified",
                            "revoked"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "revokedAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "isDefault": {
                          "type": "boolean"
                        },
                        "dubCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "consentAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "waiting": {
                          "type": "object",
                          "properties": {
                            "stage": {
                              "type": "string",
                              "enum": [
                                "checking",
                                "not_recorded"
                              ]
                            },
                            "expiresAt": {
                              "anyOf": [
                                {
                                  "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)))$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "stage",
                            "expiresAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "kind",
                        "displayName",
                        "status",
                        "createdAt",
                        "revokedAt",
                        "isDefault"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "voice"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "delete": {
        "operationId": "deleteVoice",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "keepDoNotClonePrint": {
                    "type": "boolean"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/voices/{id}/revoke-preview": {
      "get": {
        "operationId": "getRevokePreview",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "dubCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "dubCount"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/glossary": {
      "get": {
        "operationId": "listGlossary",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "terms": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "term": {
                            "type": "string",
                            "minLength": 1
                          },
                          "translations": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {
                              "type": "string"
                            }
                          },
                          "dubId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "term",
                          "translations",
                          "dubId"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "terms"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "operationId": "createGlossaryTerm",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "term": {
                    "type": "string",
                    "minLength": 1
                  },
                  "translations": {
                    "default": {},
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {
                      "type": "string"
                    }
                  },
                  "dubId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "term"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "term": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "term": {
                          "type": "string",
                          "minLength": 1
                        },
                        "translations": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string"
                          },
                          "additionalProperties": {
                            "type": "string"
                          }
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "term",
                        "translations",
                        "dubId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "term"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/glossary/{id}": {
      "delete": {
        "operationId": "deleteGlossaryTerm",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    }
                  },
                  "required": [
                    "deleted"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/credits": {
      "get": {
        "operationId": "getCredits",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "balance": {
                      "type": "object",
                      "properties": {
                        "free": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "paid": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "plan": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "total": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "freeRenewsAt": {
                          "anyOf": [
                            {
                              "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)))$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "free",
                        "paid",
                        "total",
                        "freeRenewsAt"
                      ],
                      "additionalProperties": false
                    },
                    "entries": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "grant_free",
                              "expire_free",
                              "purchase",
                              "reserve",
                              "refund",
                              "referral",
                              "adjust",
                              "grant_plan",
                              "expire_plan",
                              "refund_plan"
                            ]
                          },
                          "bucket": {
                            "type": "string",
                            "enum": [
                              "free",
                              "paid"
                            ]
                          },
                          "amount": {
                            "type": "integer",
                            "minimum": -9007199254740991,
                            "maximum": 9007199254740991
                          },
                          "period": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "jobId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "purchaseId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "note": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "createdAt": {
                            "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)))$"
                          }
                        },
                        "required": [
                          "id",
                          "kind",
                          "bucket",
                          "amount",
                          "period",
                          "jobId",
                          "purchaseId",
                          "note",
                          "createdAt"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "balance",
                    "entries"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/edit-projects": {
      "get": {
        "operationId": "listEditProjects",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projects": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1
                          },
                          "dubId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "sourceMediaId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "editList": {
                            "type": "object",
                            "properties": {
                              "version": {
                                "type": "integer",
                                "exclusiveMinimum": 0,
                                "maximum": 9007199254740991
                              },
                              "trim": {
                                "type": "object",
                                "properties": {
                                  "startMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "endMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "startMs",
                                  "endMs"
                                ],
                                "additionalProperties": false
                              },
                              "aspect": {
                                "type": "string",
                                "enum": [
                                  "source",
                                  "9:16",
                                  "1:1",
                                  "4:5",
                                  "16:9"
                                ]
                              },
                              "crop": {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "scale": {
                                    "type": "number",
                                    "minimum": 1,
                                    "maximum": 4
                                  }
                                },
                                "required": [
                                  "x",
                                  "y",
                                  "scale"
                                ],
                                "additionalProperties": false
                              },
                              "speed": {
                                "type": "number",
                                "minimum": 0.5,
                                "maximum": 2
                              },
                              "captions": {
                                "type": "object",
                                "properties": {
                                  "enabled": {
                                    "type": "boolean"
                                  },
                                  "style": {
                                    "type": "string",
                                    "enum": [
                                      "pop",
                                      "karaoke",
                                      "boxed",
                                      "clean",
                                      "subtle",
                                      "outline",
                                      "two_language"
                                    ]
                                  },
                                  "highlight": {
                                    "type": "string",
                                    "pattern": "^#[0-9A-Fa-f]{6}$"
                                  },
                                  "position": {
                                    "type": "string",
                                    "enum": [
                                      "bottom",
                                      "middle",
                                      "top"
                                    ]
                                  },
                                  "size": {
                                    "type": "number",
                                    "minimum": 0.5,
                                    "maximum": 2
                                  },
                                  "language": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "dub",
                                          "original"
                                        ]
                                      },
                                      {
                                        "type": "string",
                                        "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                      }
                                    ]
                                  },
                                  "secondLanguage": {
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "enum": [
                                          "dub",
                                          "original"
                                        ]
                                      },
                                      {
                                        "type": "string",
                                        "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                      }
                                    ]
                                  },
                                  "behind": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "enabled",
                                  "style",
                                  "highlight",
                                  "position",
                                  "size"
                                ],
                                "additionalProperties": false
                              },
                              "texts": {
                                "maxItems": 10,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "string"
                                    },
                                    "text": {
                                      "type": "string",
                                      "maxLength": 120
                                    },
                                    "startMs": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "endMs": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "x": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 1
                                    },
                                    "y": {
                                      "type": "number",
                                      "minimum": 0,
                                      "maximum": 1
                                    },
                                    "style": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "text",
                                    "startMs",
                                    "endMs",
                                    "x",
                                    "y",
                                    "style"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "audio": {
                                "type": "object",
                                "properties": {
                                  "voiceVolume": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 2
                                  },
                                  "backgroundVolume": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 2
                                  },
                                  "keepBackground": {
                                    "type": "boolean"
                                  },
                                  "duckMusic": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "voiceVolume",
                                  "backgroundVolume",
                                  "keepBackground",
                                  "duckMusic"
                                ],
                                "additionalProperties": false
                              },
                              "exportSizes": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "enum": [
                                    "source",
                                    "9:16",
                                    "1:1",
                                    "4:5",
                                    "16:9"
                                  ]
                                }
                              },
                              "behindTitle": {
                                "type": "object",
                                "properties": {
                                  "text": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 40
                                  },
                                  "lookId": {
                                    "type": "string",
                                    "enum": [
                                      "classic",
                                      "tb_magazine",
                                      "tb_poster",
                                      "tb_sign",
                                      "tb_outline",
                                      "tb_glow"
                                    ]
                                  },
                                  "size": {
                                    "default": 1,
                                    "type": "number",
                                    "minimum": 0.5,
                                    "maximum": 1.5
                                  },
                                  "place": {
                                    "default": "auto",
                                    "anyOf": [
                                      {
                                        "type": "string",
                                        "const": "auto"
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "x": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 1
                                          },
                                          "y": {
                                            "type": "number",
                                            "minimum": 0,
                                            "maximum": 1
                                          }
                                        },
                                        "required": [
                                          "x",
                                          "y"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  },
                                  "startMs": {
                                    "default": 0,
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "endMs": {
                                    "default": 0,
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "rise": {
                                    "default": true,
                                    "type": "boolean"
                                  },
                                  "lineColours": {
                                    "maxItems": 3,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "pattern": "^#[0-9A-Fa-f]{6}$"
                                    }
                                  }
                                },
                                "required": [
                                  "text",
                                  "lookId",
                                  "size",
                                  "place",
                                  "startMs",
                                  "endMs",
                                  "rise"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "version",
                              "trim",
                              "aspect",
                              "crop",
                              "speed",
                              "captions",
                              "texts",
                              "audio",
                              "exportSizes"
                            ],
                            "additionalProperties": false
                          },
                          "updatedAt": {
                            "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)))$"
                          },
                          "posterUrl": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "id",
                          "dubId",
                          "sourceMediaId",
                          "editList",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "nextCursor": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "projects",
                    "nextCursor"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "post": {
        "operationId": "createEditProject",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "dubId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "sourceMediaId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "editList": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "trim": {
                        "type": "object",
                        "properties": {
                          "startMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "endMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "startMs",
                          "endMs"
                        ]
                      },
                      "aspect": {
                        "type": "string",
                        "enum": [
                          "source",
                          "9:16",
                          "1:1",
                          "4:5",
                          "16:9"
                        ]
                      },
                      "crop": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "scale": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 4
                          }
                        },
                        "required": [
                          "x",
                          "y",
                          "scale"
                        ]
                      },
                      "speed": {
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 2
                      },
                      "captions": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "style": {
                            "type": "string",
                            "enum": [
                              "pop",
                              "karaoke",
                              "boxed",
                              "clean",
                              "subtle",
                              "outline",
                              "two_language"
                            ]
                          },
                          "highlight": {
                            "type": "string",
                            "pattern": "^#[0-9A-Fa-f]{6}$"
                          },
                          "position": {
                            "type": "string",
                            "enum": [
                              "bottom",
                              "middle",
                              "top"
                            ]
                          },
                          "size": {
                            "type": "number",
                            "minimum": 0.5,
                            "maximum": 2
                          },
                          "language": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "secondLanguage": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "behind": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "enabled",
                          "style",
                          "highlight",
                          "position",
                          "size"
                        ]
                      },
                      "texts": {
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "text": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "startMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "endMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "x": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "y": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "style": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "text",
                            "startMs",
                            "endMs",
                            "x",
                            "y",
                            "style"
                          ]
                        }
                      },
                      "audio": {
                        "type": "object",
                        "properties": {
                          "voiceVolume": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2
                          },
                          "backgroundVolume": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2
                          },
                          "keepBackground": {
                            "type": "boolean"
                          },
                          "duckMusic": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "voiceVolume",
                          "backgroundVolume",
                          "keepBackground",
                          "duckMusic"
                        ]
                      },
                      "exportSizes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "source",
                            "9:16",
                            "1:1",
                            "4:5",
                            "16:9"
                          ]
                        }
                      },
                      "behindTitle": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40
                          },
                          "lookId": {
                            "type": "string",
                            "enum": [
                              "classic",
                              "tb_magazine",
                              "tb_poster",
                              "tb_sign",
                              "tb_outline",
                              "tb_glow"
                            ]
                          },
                          "size": {
                            "default": 1,
                            "type": "number",
                            "minimum": 0.5,
                            "maximum": 1.5
                          },
                          "place": {
                            "default": "auto",
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "auto"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  }
                                },
                                "required": [
                                  "x",
                                  "y"
                                ]
                              }
                            ]
                          },
                          "startMs": {
                            "default": 0,
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "endMs": {
                            "default": 0,
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rise": {
                            "default": true,
                            "type": "boolean"
                          },
                          "lineColours": {
                            "maxItems": 3,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^#[0-9A-Fa-f]{6}$"
                            }
                          }
                        },
                        "required": [
                          "text",
                          "lookId"
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "trim",
                      "aspect",
                      "crop",
                      "speed",
                      "captions",
                      "texts",
                      "audio",
                      "exportSizes"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceMediaId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "editList": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "trim": {
                              "type": "object",
                              "properties": {
                                "startMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "startMs",
                                "endMs"
                              ],
                              "additionalProperties": false
                            },
                            "aspect": {
                              "type": "string",
                              "enum": [
                                "source",
                                "9:16",
                                "1:1",
                                "4:5",
                                "16:9"
                              ]
                            },
                            "crop": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "y": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "scale": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 4
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "scale"
                              ],
                              "additionalProperties": false
                            },
                            "speed": {
                              "type": "number",
                              "minimum": 0.5,
                              "maximum": 2
                            },
                            "captions": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "style": {
                                  "type": "string",
                                  "enum": [
                                    "pop",
                                    "karaoke",
                                    "boxed",
                                    "clean",
                                    "subtle",
                                    "outline",
                                    "two_language"
                                  ]
                                },
                                "highlight": {
                                  "type": "string",
                                  "pattern": "^#[0-9A-Fa-f]{6}$"
                                },
                                "position": {
                                  "type": "string",
                                  "enum": [
                                    "bottom",
                                    "middle",
                                    "top"
                                  ]
                                },
                                "size": {
                                  "type": "number",
                                  "minimum": 0.5,
                                  "maximum": 2
                                },
                                "language": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "secondLanguage": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "behind": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "style",
                                "highlight",
                                "position",
                                "size"
                              ],
                              "additionalProperties": false
                            },
                            "texts": {
                              "maxItems": 10,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 120
                                  },
                                  "startMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "endMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "style": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "text",
                                  "startMs",
                                  "endMs",
                                  "x",
                                  "y",
                                  "style"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "audio": {
                              "type": "object",
                              "properties": {
                                "voiceVolume": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 2
                                },
                                "backgroundVolume": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 2
                                },
                                "keepBackground": {
                                  "type": "boolean"
                                },
                                "duckMusic": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "voiceVolume",
                                "backgroundVolume",
                                "keepBackground",
                                "duckMusic"
                              ],
                              "additionalProperties": false
                            },
                            "exportSizes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "source",
                                  "9:16",
                                  "1:1",
                                  "4:5",
                                  "16:9"
                                ]
                              }
                            },
                            "behindTitle": {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                },
                                "lookId": {
                                  "type": "string",
                                  "enum": [
                                    "classic",
                                    "tb_magazine",
                                    "tb_poster",
                                    "tb_sign",
                                    "tb_outline",
                                    "tb_glow"
                                  ]
                                },
                                "size": {
                                  "default": 1,
                                  "type": "number",
                                  "minimum": 0.5,
                                  "maximum": 1.5
                                },
                                "place": {
                                  "default": "auto",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "auto"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "y": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                "startMs": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "rise": {
                                  "default": true,
                                  "type": "boolean"
                                },
                                "lineColours": {
                                  "maxItems": 3,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^#[0-9A-Fa-f]{6}$"
                                  }
                                }
                              },
                              "required": [
                                "text",
                                "lookId",
                                "size",
                                "place",
                                "startMs",
                                "endMs",
                                "rise"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "version",
                            "trim",
                            "aspect",
                            "crop",
                            "speed",
                            "captions",
                            "texts",
                            "audio",
                            "exportSizes"
                          ],
                          "additionalProperties": false
                        },
                        "updatedAt": {
                          "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)))$"
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "sourceMediaId",
                        "editList",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "project"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/edit-projects/{id}": {
      "get": {
        "operationId": "getEditProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceMediaId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "editList": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "trim": {
                              "type": "object",
                              "properties": {
                                "startMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "startMs",
                                "endMs"
                              ],
                              "additionalProperties": false
                            },
                            "aspect": {
                              "type": "string",
                              "enum": [
                                "source",
                                "9:16",
                                "1:1",
                                "4:5",
                                "16:9"
                              ]
                            },
                            "crop": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "y": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "scale": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 4
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "scale"
                              ],
                              "additionalProperties": false
                            },
                            "speed": {
                              "type": "number",
                              "minimum": 0.5,
                              "maximum": 2
                            },
                            "captions": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "style": {
                                  "type": "string",
                                  "enum": [
                                    "pop",
                                    "karaoke",
                                    "boxed",
                                    "clean",
                                    "subtle",
                                    "outline",
                                    "two_language"
                                  ]
                                },
                                "highlight": {
                                  "type": "string",
                                  "pattern": "^#[0-9A-Fa-f]{6}$"
                                },
                                "position": {
                                  "type": "string",
                                  "enum": [
                                    "bottom",
                                    "middle",
                                    "top"
                                  ]
                                },
                                "size": {
                                  "type": "number",
                                  "minimum": 0.5,
                                  "maximum": 2
                                },
                                "language": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "secondLanguage": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "behind": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "style",
                                "highlight",
                                "position",
                                "size"
                              ],
                              "additionalProperties": false
                            },
                            "texts": {
                              "maxItems": 10,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 120
                                  },
                                  "startMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "endMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "style": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "text",
                                  "startMs",
                                  "endMs",
                                  "x",
                                  "y",
                                  "style"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "audio": {
                              "type": "object",
                              "properties": {
                                "voiceVolume": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 2
                                },
                                "backgroundVolume": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 2
                                },
                                "keepBackground": {
                                  "type": "boolean"
                                },
                                "duckMusic": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "voiceVolume",
                                "backgroundVolume",
                                "keepBackground",
                                "duckMusic"
                              ],
                              "additionalProperties": false
                            },
                            "exportSizes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "source",
                                  "9:16",
                                  "1:1",
                                  "4:5",
                                  "16:9"
                                ]
                              }
                            },
                            "behindTitle": {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                },
                                "lookId": {
                                  "type": "string",
                                  "enum": [
                                    "classic",
                                    "tb_magazine",
                                    "tb_poster",
                                    "tb_sign",
                                    "tb_outline",
                                    "tb_glow"
                                  ]
                                },
                                "size": {
                                  "default": 1,
                                  "type": "number",
                                  "minimum": 0.5,
                                  "maximum": 1.5
                                },
                                "place": {
                                  "default": "auto",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "auto"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "y": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                "startMs": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "rise": {
                                  "default": true,
                                  "type": "boolean"
                                },
                                "lineColours": {
                                  "maxItems": 3,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^#[0-9A-Fa-f]{6}$"
                                  }
                                }
                              },
                              "required": [
                                "text",
                                "lookId",
                                "size",
                                "place",
                                "startMs",
                                "endMs",
                                "rise"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "version",
                            "trim",
                            "aspect",
                            "crop",
                            "speed",
                            "captions",
                            "texts",
                            "audio",
                            "exportSizes"
                          ],
                          "additionalProperties": false
                        },
                        "updatedAt": {
                          "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)))$"
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "sourceMediaId",
                        "editList",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    "previews": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "previewBeds": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "behindPreviews": {
                      "default": {},
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "url": {
                            "type": "string"
                          },
                          "key": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "url",
                          "key"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "sourceUrl": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "durationMs": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "project",
                    "previews",
                    "previewBeds",
                    "behindPreviews",
                    "sourceUrl",
                    "durationMs"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      },
      "patch": {
        "operationId": "updateEditProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "editList": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "trim": {
                        "type": "object",
                        "properties": {
                          "startMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "endMs": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "startMs",
                          "endMs"
                        ]
                      },
                      "aspect": {
                        "type": "string",
                        "enum": [
                          "source",
                          "9:16",
                          "1:1",
                          "4:5",
                          "16:9"
                        ]
                      },
                      "crop": {
                        "type": "object",
                        "properties": {
                          "x": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "y": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 1
                          },
                          "scale": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 4
                          }
                        },
                        "required": [
                          "x",
                          "y",
                          "scale"
                        ]
                      },
                      "speed": {
                        "type": "number",
                        "minimum": 0.5,
                        "maximum": 2
                      },
                      "captions": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean"
                          },
                          "style": {
                            "type": "string",
                            "enum": [
                              "pop",
                              "karaoke",
                              "boxed",
                              "clean",
                              "subtle",
                              "outline",
                              "two_language"
                            ]
                          },
                          "highlight": {
                            "type": "string",
                            "pattern": "^#[0-9A-Fa-f]{6}$"
                          },
                          "position": {
                            "type": "string",
                            "enum": [
                              "bottom",
                              "middle",
                              "top"
                            ]
                          },
                          "size": {
                            "type": "number",
                            "minimum": 0.5,
                            "maximum": 2
                          },
                          "language": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "secondLanguage": {
                            "anyOf": [
                              {
                                "type": "string",
                                "enum": [
                                  "dub",
                                  "original"
                                ]
                              },
                              {
                                "type": "string",
                                "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                              }
                            ]
                          },
                          "behind": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "enabled",
                          "style",
                          "highlight",
                          "position",
                          "size"
                        ]
                      },
                      "texts": {
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            },
                            "text": {
                              "type": "string",
                              "maxLength": 120
                            },
                            "startMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "endMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "x": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "y": {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "style": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id",
                            "text",
                            "startMs",
                            "endMs",
                            "x",
                            "y",
                            "style"
                          ]
                        }
                      },
                      "audio": {
                        "type": "object",
                        "properties": {
                          "voiceVolume": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2
                          },
                          "backgroundVolume": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 2
                          },
                          "keepBackground": {
                            "type": "boolean"
                          },
                          "duckMusic": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "voiceVolume",
                          "backgroundVolume",
                          "keepBackground",
                          "duckMusic"
                        ]
                      },
                      "exportSizes": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "enum": [
                            "source",
                            "9:16",
                            "1:1",
                            "4:5",
                            "16:9"
                          ]
                        }
                      },
                      "behindTitle": {
                        "type": "object",
                        "properties": {
                          "text": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 40
                          },
                          "lookId": {
                            "type": "string",
                            "enum": [
                              "classic",
                              "tb_magazine",
                              "tb_poster",
                              "tb_sign",
                              "tb_outline",
                              "tb_glow"
                            ]
                          },
                          "size": {
                            "default": 1,
                            "type": "number",
                            "minimum": 0.5,
                            "maximum": 1.5
                          },
                          "place": {
                            "default": "auto",
                            "anyOf": [
                              {
                                "type": "string",
                                "const": "auto"
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  }
                                },
                                "required": [
                                  "x",
                                  "y"
                                ]
                              }
                            ]
                          },
                          "startMs": {
                            "default": 0,
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "endMs": {
                            "default": 0,
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "rise": {
                            "default": true,
                            "type": "boolean"
                          },
                          "lineColours": {
                            "maxItems": 3,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "pattern": "^#[0-9A-Fa-f]{6}$"
                            }
                          }
                        },
                        "required": [
                          "text",
                          "lookId"
                        ]
                      }
                    },
                    "required": [
                      "version",
                      "trim",
                      "aspect",
                      "crop",
                      "speed",
                      "captions",
                      "texts",
                      "audio",
                      "exportSizes"
                    ]
                  }
                },
                "required": [
                  "editList"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "project": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sourceMediaId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "editList": {
                          "type": "object",
                          "properties": {
                            "version": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "trim": {
                              "type": "object",
                              "properties": {
                                "startMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "startMs",
                                "endMs"
                              ],
                              "additionalProperties": false
                            },
                            "aspect": {
                              "type": "string",
                              "enum": [
                                "source",
                                "9:16",
                                "1:1",
                                "4:5",
                                "16:9"
                              ]
                            },
                            "crop": {
                              "type": "object",
                              "properties": {
                                "x": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "y": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 1
                                },
                                "scale": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 4
                                }
                              },
                              "required": [
                                "x",
                                "y",
                                "scale"
                              ],
                              "additionalProperties": false
                            },
                            "speed": {
                              "type": "number",
                              "minimum": 0.5,
                              "maximum": 2
                            },
                            "captions": {
                              "type": "object",
                              "properties": {
                                "enabled": {
                                  "type": "boolean"
                                },
                                "style": {
                                  "type": "string",
                                  "enum": [
                                    "pop",
                                    "karaoke",
                                    "boxed",
                                    "clean",
                                    "subtle",
                                    "outline",
                                    "two_language"
                                  ]
                                },
                                "highlight": {
                                  "type": "string",
                                  "pattern": "^#[0-9A-Fa-f]{6}$"
                                },
                                "position": {
                                  "type": "string",
                                  "enum": [
                                    "bottom",
                                    "middle",
                                    "top"
                                  ]
                                },
                                "size": {
                                  "type": "number",
                                  "minimum": 0.5,
                                  "maximum": 2
                                },
                                "language": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "secondLanguage": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "dub",
                                        "original"
                                      ]
                                    },
                                    {
                                      "type": "string",
                                      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]{2,8})?$"
                                    }
                                  ]
                                },
                                "behind": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "enabled",
                                "style",
                                "highlight",
                                "position",
                                "size"
                              ],
                              "additionalProperties": false
                            },
                            "texts": {
                              "maxItems": 10,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "string"
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 120
                                  },
                                  "startMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "endMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "x": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "y": {
                                    "type": "number",
                                    "minimum": 0,
                                    "maximum": 1
                                  },
                                  "style": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "id",
                                  "text",
                                  "startMs",
                                  "endMs",
                                  "x",
                                  "y",
                                  "style"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "audio": {
                              "type": "object",
                              "properties": {
                                "voiceVolume": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 2
                                },
                                "backgroundVolume": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 2
                                },
                                "keepBackground": {
                                  "type": "boolean"
                                },
                                "duckMusic": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "voiceVolume",
                                "backgroundVolume",
                                "keepBackground",
                                "duckMusic"
                              ],
                              "additionalProperties": false
                            },
                            "exportSizes": {
                              "type": "array",
                              "items": {
                                "type": "string",
                                "enum": [
                                  "source",
                                  "9:16",
                                  "1:1",
                                  "4:5",
                                  "16:9"
                                ]
                              }
                            },
                            "behindTitle": {
                              "type": "object",
                              "properties": {
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 40
                                },
                                "lookId": {
                                  "type": "string",
                                  "enum": [
                                    "classic",
                                    "tb_magazine",
                                    "tb_poster",
                                    "tb_sign",
                                    "tb_outline",
                                    "tb_glow"
                                  ]
                                },
                                "size": {
                                  "default": 1,
                                  "type": "number",
                                  "minimum": 0.5,
                                  "maximum": 1.5
                                },
                                "place": {
                                  "default": "auto",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "const": "auto"
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "x": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        },
                                        "y": {
                                          "type": "number",
                                          "minimum": 0,
                                          "maximum": 1
                                        }
                                      },
                                      "required": [
                                        "x",
                                        "y"
                                      ],
                                      "additionalProperties": false
                                    }
                                  ]
                                },
                                "startMs": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "endMs": {
                                  "default": 0,
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "rise": {
                                  "default": true,
                                  "type": "boolean"
                                },
                                "lineColours": {
                                  "maxItems": 3,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "pattern": "^#[0-9A-Fa-f]{6}$"
                                  }
                                }
                              },
                              "required": [
                                "text",
                                "lookId",
                                "size",
                                "place",
                                "startMs",
                                "endMs",
                                "rise"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "version",
                            "trim",
                            "aspect",
                            "crop",
                            "speed",
                            "captions",
                            "texts",
                            "audio",
                            "exportSizes"
                          ],
                          "additionalProperties": false
                        },
                        "updatedAt": {
                          "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)))$"
                        },
                        "posterUrl": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "sourceMediaId",
                        "editList",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "project"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/edit-projects/{id}/exports": {
      "get": {
        "operationId": "listEditExports",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "exports": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "jobId": {
                            "type": "string",
                            "minLength": 1
                          },
                          "state": {
                            "type": "string",
                            "enum": [
                              "queued",
                              "separating",
                              "transcribing",
                              "diarizing",
                              "translating",
                              "awaiting_review",
                              "moderating",
                              "synthesizing",
                              "aligning",
                              "lipmatching",
                              "exporting",
                              "succeeded",
                              "failed",
                              "blocked",
                              "refunded",
                              "cancelled"
                            ]
                          },
                          "createdAt": {
                            "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)))$"
                          },
                          "files": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "language": {
                                  "type": "string"
                                },
                                "aspect": {
                                  "type": "string",
                                  "enum": [
                                    "source",
                                    "9:16",
                                    "1:1",
                                    "4:5",
                                    "16:9"
                                  ]
                                },
                                "mp4Url": {
                                  "type": "string"
                                },
                                "mp4Name": {
                                  "type": "string"
                                },
                                "srtUrl": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "vttUrl": {
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              },
                              "required": [
                                "language",
                                "aspect",
                                "mp4Url",
                                "mp4Name",
                                "srtUrl",
                                "vttUrl"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "jobId",
                          "state",
                          "createdAt",
                          "files"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "exports"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/edit-projects/{id}/export": {
      "post": {
        "operationId": "exportEditProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/IdempotencyKey"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "languages": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 2
                    }
                  },
                  "sizes": {
                    "minItems": 1,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "source",
                        "9:16",
                        "1:1",
                        "4:5",
                        "16:9"
                      ]
                    }
                  }
                },
                "required": [
                  "languages",
                  "sizes"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "IDEMPOTENCY_CONFLICT: this Idempotency-Key was used with a different body.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/edit-projects/{id}/transcribe": {
      "post": {
        "operationId": "transcribeEditProject",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    },
    "/edit-projects/{id}/behind-preview": {
      "post": {
        "operationId": "previewBehind",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "language": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "language"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "job": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1
                        },
                        "dubId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "prep",
                            "dub",
                            "redub_lines",
                            "export",
                            "enroll_voice",
                            "poster",
                            "behind_preview",
                            "fetch_link",
                            "webhook",
                            "caption_translate"
                          ]
                        },
                        "state": {
                          "type": "string",
                          "enum": [
                            "queued",
                            "separating",
                            "transcribing",
                            "diarizing",
                            "translating",
                            "awaiting_review",
                            "moderating",
                            "synthesizing",
                            "aligning",
                            "lipmatching",
                            "exporting",
                            "succeeded",
                            "failed",
                            "blocked",
                            "refunded",
                            "cancelled"
                          ]
                        },
                        "step": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "separate",
                                "hear",
                                "translate",
                                "speak",
                                "lineup",
                                "finish"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "progress": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 1
                        },
                        "languagesDone": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "partial": {
                          "type": "boolean"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "live",
                            "test"
                          ]
                        },
                        "errorCode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "errorMessage": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "createdAt": {
                          "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)))$"
                        },
                        "updatedAt": {
                          "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)))$"
                        }
                      },
                      "required": [
                        "id",
                        "dubId",
                        "type",
                        "state",
                        "step",
                        "progress",
                        "languagesDone",
                        "mode",
                        "errorCode",
                        "errorMessage",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "job"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "400": {
            "description": "VALIDATION or RIGHTS_REQUIRED: the request isn't valid.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "UNAUTHENTICATED: the key is missing, wrong or revoked.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "NEEDS_CREDITS or INSUFFICIENT_CREDITS: the account needs a credit pack, or more credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "FORBIDDEN, FEATURE_OFF, AGE_REQUIRED, AI_CONSENT_REQUIRED or PLAN_REQUIRED (the plan in `needs` allows this).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "NOT_FOUND.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "dm_live_… or dm_test_…",
        "description": "An API key from the Developers page."
      }
    },
    "parameters": {
      "IdempotencyKey": {
        "name": "Idempotency-Key",
        "in": "header",
        "required": true,
        "description": "A unique value per request, required for API keys. The same key and body returns the stored response for 24 hours; the same key with a different body is IDEMPOTENCY_CONFLICT.",
        "schema": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        }
      }
    },
    "responses": {
      "RateLimited": {
        "description": "RATE_LIMITED: too many requests for this key.",
        "headers": {
          "Retry-After": {
            "description": "Seconds to wait before trying again.",
            "schema": {
              "type": "integer",
              "minimum": 1
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      }
    },
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "QUOTE_ABOVE_MAX",
                  "PHRASE_MISMATCH",
                  "UNAUTHENTICATED",
                  "FORBIDDEN",
                  "MFA_REQUIRED",
                  "SCOPE_FORBIDDEN",
                  "NOT_FOUND",
                  "VALIDATION",
                  "FEATURE_OFF",
                  "LIMIT_REACHED",
                  "NEEDS_CREDITS",
                  "PLAN_REQUIRED",
                  "INSUFFICIENT_CREDITS",
                  "TOO_LONG",
                  "UNSUPPORTED_MEDIA",
                  "RIGHTS_REQUIRED",
                  "AGE_REQUIRED",
                  "CONSENT_REQUIRED",
                  "AI_CONSENT_REQUIRED",
                  "LINK_NOT_ALLOWED",
                  "BLOCKED_BY_SAFETY",
                  "RATE_LIMITED",
                  "IDEMPOTENCY_CONFLICT",
                  "CONFLICT",
                  "BUSY",
                  "INTERNAL"
                ]
              },
              "message": {
                "type": "string"
              },
              "hint": {
                "type": "string"
              },
              "needs": {
                "type": "string"
              }
            },
            "required": [
              "code",
              "message"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      },
      "ErrorCode": {
        "type": "string",
        "enum": [
          "QUOTE_ABOVE_MAX",
          "PHRASE_MISMATCH",
          "UNAUTHENTICATED",
          "FORBIDDEN",
          "MFA_REQUIRED",
          "SCOPE_FORBIDDEN",
          "NOT_FOUND",
          "VALIDATION",
          "FEATURE_OFF",
          "LIMIT_REACHED",
          "NEEDS_CREDITS",
          "PLAN_REQUIRED",
          "INSUFFICIENT_CREDITS",
          "TOO_LONG",
          "UNSUPPORTED_MEDIA",
          "RIGHTS_REQUIRED",
          "AGE_REQUIRED",
          "CONSENT_REQUIRED",
          "AI_CONSENT_REQUIRED",
          "LINK_NOT_ALLOWED",
          "BLOCKED_BY_SAFETY",
          "RATE_LIMITED",
          "IDEMPOTENCY_CONFLICT",
          "CONFLICT",
          "BUSY",
          "INTERNAL"
        ]
      }
    }
  }
}
